Related
I've been looking everywhere all weekend for this. Where do i locate the lockscreen slider image in order to replace with a custom one? looked all through internal memory and i know it's in a .apk file but which one? i hope somebody can help me with this, thanks in advance.
you have to pull the framework-res.apk file. You also have to be rooted to do this. It should be in system/framework
That should be in /system/framework/framework-res.apk. Once you get that you will need to decompile it with a program like apk Manager, edit the draw-9 pngs, then recompile it with apk Manager.
The reason that you should decompile it is that the lockscreen images that you want to edit are draw-9 png images. Draw-9 pngs are resizable by the system because they have an outer border on all images that tell it how to stretch. When you simply extract them from the framework-res.png, with a program like winzip, they lose that outer border. You need to decompile them in order to maintain that border when you edit them. Recompile them afterwards and then you can put that framework-res.apk on the phone with the new lockscreen.
Download apk Manager
Now here is what I've learned about apk Manager:
put framework-res.apk in the place-apk-here-for-modding folder
run the script
enter 22 to select an apk, then 1 to select your apk
press 9 to decompile the apk
go into the projects/framework-res.apk/res/drawable-hdpi folder and edit your pngs (maintain the border)
go back to the script once your done editing and enter 11 to compile
when asked if it is a system apk enter y
when asked if you want to extract other files too enter y
go into the keep folder that was created and delete any pngs that you changed in the projects folder
if you change any xml files, you will also need to delete the resources.arsc file from the keep folder
go back to the script and press any key to continue
your recompiled framework-res will be in the place-apk-here-for-modding as unsigned-framework-res.apk
extract unsigned-framework-res.apk using winzip, or similar program (this is being it is compressed incorrectly)
go into the folder where you just unzipped the framework and zip it up with the compression mode set to Store - call it framework-res.apk
you are ready to go with a properly editing framework-res.apk, put it on your phone any way you like
Make sure that you have no errors when de-compiling or re-compiling. It might seem like everything is going ok, but you could end up soft bricking your phone if you don't check the log.txt in the apk Manager main folder. Check the log.txt after every decompile and recompile to ensure that you don't have a damaged framework-res.apk.
The output in log.txt should like like this for a proper decompile:
Code:
--------------------------------------------------------------------------
|Sun 05/01/2011 -- 20:11:47.57|
--------------------------------------------------------------------------
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
Could Not Find C:\Users\jbush\Documents\Custom Atrix\Programs\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
And like this for a proper recompile:
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
(skipping index file 'C:\Users\jbush\Documents\Custom Atrix\Programs\apk_manager_4.9\other\..\projects\framework-res.apk\assets\images\Thumbs.db')
(skipping index file 'C:\Users\jbush\Documents\Custom Atrix\Programs\apk_manager_4.9\other\..\projects\framework-res.apk\assets\webkit\Thumbs.db')
The system cannot find the file specified.
If you get any errors about your images then you need to fix them before you can recompile.
thanks, gettin to work on it now.
Replace lockscreen image
I did not use any special software for this. Just copied (using Root explorer on device) file \system\framework\framework-res.apk to sdcard, then easily copied it to PC desktop. Opened the file with Winzip, extracted image zzzzzzzz_default_lockscreenw.jpg (may be the image name is different on your device, so it's better you preview it in order to compare with your lockscreen image) just to notice the image size. Removed the image from apk. Without closing the winzip window I made an image of the same size and name. Then I dragged it inside the Winzip window. Then used reverse steps to put it back in \system\framework.
That's it!
I'm trying to decompile a few apks for modifying the dialer on an ICS rom. When I go to decompile I get an empty folder and this error:
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
I'm using this ver: http://forum.xda-developers.com/showthread.php?p=22845681
All I would like to do is edit a few xml files to change the color on text. Anyone have any idea on what the issue is? Could I just rename the apk to .zip and extract the files to be edited?
There's another you can edit APK's.
- Extract the apk
- Modify the files in the folder you get after extracting
- Right click on the original APK and open it with 7zip ( click on "open archive " )
- Drag the edited file from the folder to the original APK and overwrite it.
With this method you don't need to decompile and then recompile !
Sent from my GT-I9003 using xda premium
Use the proper one, not an auto tool. download the latest apktool and make sure you add the framework files needed
thanks! it turned out I needed to use a different jar file from here http://forum.xda-developers.com/showthread.php?p=23483528 for the new ICS roms. So far so good but I'll definitely try the ways you mentioned. seems abit easier. appreciate the feedback.
New issue: when I try and compile it, all I get is a classes.dex file so I tried copying the files to the original apk with 7zip and whenever I flash the zip and try and access the dialer/phone app, i get an acore.process error and it force closes. All I did was edit some pngs and change some color values in a few xml's.
killerb777 said:
New issue: when I try and compile it, all I get is a classes.dex file so I tried copying the files to the original apk with 7zip and whenever I flash the zip and try and access the dialer/phone app, i get an acore.process error and it force closes. All I did was edit some pngs and change some color values in a few xml's.
Click to expand...
Click to collapse
I never had a problem doing this method!
What I did was :
After changing the files and putting them on the original APK
I just replaced it with the original one by going in System/App
And rebooted!
It worked everytime!
Don't flash, just replace it!
But take a backup of the original one before you replace!
Hi guys i want to know is anyone who can help me to change color of clock,i really don't like,i changed the color for signal,wireless and battery but with clock i have no ideea were to go to change,thanks in advance,i put the systemUI.apk if anyone like this.
mariox26 said:
Hi guys i want to know is anyone who can help me to change color of clock,i really don't like,i changed the color for signal,wireless and battery but with clock i have no ideea were to go to change,thanks in advance,i put the systemUI.apk if anyone like this.
Click to expand...
Click to collapse
Inside "ROM Control" or "AOKP Settings", go to clock and change the color as you want.
mariox26 said:
Hi guys i want to know is anyone who can help me to change color of clock,i really don't like,i changed the color for signal,wireless and battery but with clock i have no ideea were to go to change,thanks in advance,i put the systemUI.apk if anyone like this.
Click to expand...
Click to collapse
just PM this guy's @ vegeta1 or @kroz46 they will do the needfull for u
delawalla said:
Inside "ROM Control" or "AOKP Settings", go to clock and change the color as you want.
Click to expand...
Click to collapse
he is on stock firmware where that option is not available if i am right
I have 4.1.2 stock XXLSJ and no option for what you said
i have no s2 if you can decompile the systemUI and send me then i can surely help mate
vegeta1 said:
i have no s2 if you can decompile the systemUI and send me then i can surely help mate
Click to expand...
Click to collapse
here:https://www.box.com/shared/37ofclatfjpyc2xgpzlb thanks a lot
mariox26 said:
here:https://www.box.com/shared/37ofclatfjpyc2xgpzlb thanks a lot
Click to expand...
Click to collapse
mate recompile this and lemme know if this works
SystemUI_decompiled_changed
vegeta1 said:
mate recompile this and lemme know if this works
SystemUI_decompiled_changed
Click to expand...
Click to collapse
what i do wrong,i recompiled the .apk i signed the apk,copy to phone restart and after i get fc UI,when i recompiled i get error for translation ....can be this the problem?
here is how it's done
1) decompile the systemUI.apk
2) open "\res\layout\status_bar.xml"
3) search for "com.android.systemui.statusbar.policy.Clock"
4) at the end of the line you add " android:textColor="#ff33b5e5" "
5) compile it, but don't sign it
6) put it in /preload/symlink/system/app
7) restart phone
8) done
karotti said:
here is how it's done
1) decompile the systemUI.apk
2) open "\res\layout\status_bar.xml"
3) search for "com.android.systemui.statusbar.policy.Clock"
4) at the end of the line you add " android:textColor="#ff33b5e5" "
5) compile it, but don't sign it
6) put it in /preload/symlink/system/app
7) restart phone
8) done
Click to expand...
Click to collapse
nice guide,thanks but i have a problem when i try to compile,is give me allways this error:
Recompiling SystemUI.apk folder...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/drawable-sw360dp-hdpi
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/drawable-sw600dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/drawable-sw720dp-hdpi
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/layout-sw600dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/layout-sw720dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/layout-sw800dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw320dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw360dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw600dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw600dp-land
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw600dp-port
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw720dp
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw720dp-port
invalid resource directory name: C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res/values-sw800dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\mariox26\AppData\Local\Temp\APKTOOL1873502715595648032.tmp, -I, C:\Users\mariox26\apktool\framework\1.apk, -S, C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\mariox26\AppData\Local\Temp\APKTOOL1873502715595648032.tmp, -I, C:\Users\mariox26\apktool\framework\1.apk, -S, C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\mariox26\Desktop\xdaAutoTool\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Done!
really i search a lot for this problem with no result.
try decompiling with dependencies firt so framework-res is installed.
then compile again. this should work
the needed images have to be in drawable-hdpi before compiling.
here is the systemui.apk with the mod.
karotti said:
try decompiling with dependencies firt so framework-res is installed.
then compile again. this should work
the needed images have to be in drawable-hdpi before compiling.
here is the systemui.apk with the mod.
Click to expand...
Click to collapse
I used this systemui only cange i see it is for battery
another percentage
vegeta1 said:
mate recompile this and lemme know if this works
SystemUI_decompiled_changed
Click to expand...
Click to collapse
I compiled but no result, clock color is same grey.i tried to change color in layout/color.xml and no effect, i change color in status.bar.xml no effect, i tried to change in value folder and is always same color is don't want to change
Sent from my GT-I9100 using xda app-developers app
I can say the same here. Tried all the same locations were I see that the Clock color might be set, then change the value and recompile, transfer contents from recompiled into the SystemUI.apk using archive manager and load it up through recovery. I just cannot find how it is done. I have ask this questions to devs that have different then stock AOSP color and no reply yet. Hope one of them will guide and I will be glad to pass that info along. I am trying this on my Tablet, but the source is just about the same when it comes down to it.
mariox26 said:
I used this systemui only cange i see it is for battery
another percentage
I compiled but no result, clock color is same grey.i tried to change color in layout/color.xml and no effect, i change color in status.bar.xml no effect, i tried to change in value folder and is always same color is don't want to change
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Alright bro I stay true to my word and figured out my issue with my ROM which is a AOSP 4.1.2 build as with yours. I was able to change the color of the clock on the Status Bar as well and some others that use the same color hex as the clock. They are within the framework-res.apk and not the SystemUI.apk like other ROMS are. 4.1.2 is a bit different when it comes to these changes. After setting up apktool with framework-res.apk go ahead and Decompile it and guide your way to this path, framework-res/res/value/color. You will see a nice list there with hex colors settings. The ones you need to change are (<color name="holo_blue_light">#ff33b5e5</color>) and (<color name="holo_blue_dark">#ff0099cc</color>). The hex color settings on these examples are for the stock blue that everyone is custom too, but can be changed to any color you wish. After change is complete using texted editor save changes and make sure that you can see hidden files. Some text editor tools will create a backup on the Hidden files and you need to delete that backup before compiling the apk back. To recompile I went ahead and used this command to just compile it back (apktool b framework-res AlmostDone.apk). When complete all you need to do is Open up current framework.res.apk in archive as well as AlmostDone.apk, don't extract either one. Drag and drop the resources.arsc file from AlmostDone.apk over to framework.res.apk. Then load up your framework.res.apk back to your phone using recovery or what ever means you like to use and your all done.
nobe1976 said:
Alright bro I stay true to my word and figured out my issue with my ROM which is a AOSP 4.1.2 build as with yours. I was able to change the color of the clock on the Status Bar as well and some others that use the same color hex as the clock. They are within the framework-res.apk and not the SystemUI.apk like other ROMS are. 4.1.2 is a bit different when it comes to these changes. After setting up apktool with framework-res.apk go ahead and Decompile it and guide your way to this path, framework-res/res/value/color. You will see a nice list there with hex colors settings. The ones you need to change are (<color name="holo_blue_light">#ff33b5e5</color>) and (<color name="holo_blue_dark">#ff0099cc</color>). The hex color settings on these examples are for the stock blue that everyone is custom too, but can be changed to any color you wish. After change is complete using texted editor save changes and make sure that you can see hidden files. Some text editor tools will create a backup on the Hidden files and you need to delete that backup before compiling the apk back. To recompile I went ahead and used this command to just compile it back (apktool b framework-res AlmostDone.apk). When complete all you need to do is Open up current framework.res.apk in archive as well as AlmostDone.apk, don't extract either one. Drag and drop the resources.arsc file from AlmostDone.apk over to framework.res.apk. Then load up your framework.res.apk back to your phone using recovery or what ever means you like to use and your all done.
Click to expand...
Click to collapse
Sorry bro but i don't understead.If this is the stock blue color: (<color name="holo_blue_light">#ff33b5e5</color>) and (<color name="holo_blue_dark">#ff0099cc</color>),why my clock on status bar is still grey?and i look to the file you did and has this setting color,this is the color i am looking.I tried another thing to change in framework this line <color name="darker_gray">#ffaaaaaa</color> to <color name="darker_gray">#ff33b5e5</color> and same color to clock
the file framework.apk need to be signed after i make change?
No after you make your adjustments just recompile as instructed and open both apk files in archive. Then drag and drop the resources.arsc file over only unless you changed any of the files in the res folder then you can drag and drop that into the archived framework-res.apk. The original signature will be fine.
Sent from the Darkside Via ME.
Already make this and not working.The same grey color.The color.xml has the default color blue how you said,so i make no change to this xml.because this is color i like,and why is not changing?
http://forum.xda-developers.com/showthread.php?p=37448994#post37448994
Here
hello i tried modding my settings.apk using this guide to add rom name and devloper name
http://forum.xda-developers.com/showthread.php?t=2341389
my device is xperia c
i edited the strings.xml and device info settings.xml to modify
then i tried to compile got a xml parsing error
then copied the resources.arsc to decompiled folder
then tried compiling and app compiled but did not install in phone
then i copied the meta inf and androidmanifest.xml to decompile folder and compiled again
app succesfully installed to system but o opening it says "unfortunately settings has stopped"
what am i doing wrong??
i also set correct permission..
I HAVE ALREADY INSTALLED FRAMEWORK
@marcussmith2626
@SpaceCaker
@hnkotnis
@serajr
@iSiddharth
@stryder001
You have incorrectly modified the xml hence the error
You don't need to copy any other file into the decompiled folder from the original apk - I have never done that
Just resign the apk with a platform key
Your main problem is incorrect modification of the xml
You should always decompile & recompile the apk without making any changes just to test you have the environment setup correctly - if it recompiles you know it's your changes that are wrong - if it doesn't it's the environment eg wrong framework loaded
Can't help you with making the mod - apktool will tell you which line the error is on
abhishekr700 said:
hello i tried modding my settings.apk using this guide to add rom name and devloper name
Click to expand...
Click to collapse
Visit THIS
iSiddharth said:
I tried the method given in the thread link that you have posted and that worked perfectly for me. This might be helpful to you.
Here I am writing a very detailed guide on what is told there.
Step 1 : Download Advanced APK Tools, 7-Zip, Notepad++
Step 2 : Get your settings.apk and framework-res.apk
Step 3 : Place your settings.apk and framework-res.apk in 2-IN folder of advanced apk tools folder.
Step 4 : open advancel apk tools.exe and select the option to install firmware, select your framework-res.apk here.
Step 5 : After firmware is installed, select the option to deceompile file and decompile the settings.apk
Step 6 : Go to 3-OUT folder and open Setings.apk folder.
Step 7 : Go to res>>xml and open the file "device_info_settings.xml" using Notepad++.
Step 8 : Now go to bottom of the file and add lines like these :
Code:
<Preference android:title="@string/rom_header" android:key="rom_header" android:summary="@string/rom_name" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/author_header" android:key="author_header" android:summary="@string/author_name" style="?android:preferenceInformationStyle" />
Step 9 : Now go to res>>values and open the "strings.xml" file using Notepad++
Step 10 : Now go to bottom of the file and add lines like these :
Code:
<string name="rom_header">Rom Name</string>
<string name="rom_name">nameofyourromhere</string>
<string name="author_header">Developed By</string>
<string name="author_name">yournamehere</string>
Step 11 : Save both the files and get out of all the open folders.
Step 12 : Now in advanced apk toos select the option of recompile files and then recompile the Settings.apk.
Step 13 : Now open 4-OUT folder and there you will see new settings.apk.
Step 14 : Extract this settings.apk using 7-Zip.
Step 15 : Open 3-out>>Settings.apk>>original and copy everything from there.
Step 16 : Open 4-done and paste all the files where you have extracted the settings.apk. Replace the files when asked.
Step 17 : Select all the files and using 7-Zip add all of them in a archive and replace the .zip extension be .apk when making the archive.
Step 18 : Press the thanks button below if I helped you!!
Done! You now have the ROM NAME and DEVELOPED BY in your setting>>about phone.
Click to expand...
Click to collapse
during compile it gives error
0: error: Multiple substitutions specified in non-positional format; did you mea
n to add the formatted="false" attribute?
D:\apk tools\apktool-install-windows-r05-ibot\settings\res\values-bg\strings.xml
:110: error: Unexpected end tag string
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.Br
utException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-s
dk-version, 17, -F, C:\Users\ABHISHEK\AppData\Local\Temp\APKTOOL6105431854394950
70.tmp, -0, arsc, -I, C:\Users\ABHISHEK\apktool\framework\1.apk, -S, D:\apk tool
s\apktool-install-windows-r05-ibot\settings\res, -M, D:\apk tools\apktool-instal
l-windows-r05-ibot\settings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\ABHISHEK\AppData\Local\Temp\APKTOOL610543185439495070.tmp, -0, arsc, -I,
C:\Users\ABHISHEK\apktool\framework\1.apk, -S, D:\apk tools\apktool-install-wind
ows-r05-ibot\settings\res, -M, D:\apk tools\apktool-install-windows-r05-ibot\set
tings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\ABHISHEK\AppData\Local\Tem
p\APKTOOL610543185439495070.tmp, -0, arsc, -I, C:\Users\ABHISHEK\apktool\framewo
rk\1.apk, -S, D:\apk tools\apktool-install-windows-r05-ibot\settings\res, -M, D:
\apk tools\apktool-install-windows-r05-ibot\settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
abhishekr700 said:
during compile it gives error
Click to expand...
Click to collapse
Did you use Advanced Apk Tools only?
This software is made specially for Xperia Devices...
marcussmith2626 said:
You have incorrectly modified the xml hence the error
You don't need to copy any other file into the decompiled folder from the original apk - I have never done that
Just resign the apk with a platform key
Your main problem is incorrect modification of the xml
You should always decompile & recompile the apk without making any changes just to test you have the environment setup correctly - if it recompiles you know it's your changes that are wrong - if it doesn't it's the environment eg wrong framework loaded
Can't help you with making the mod - apktool will tell you which line the error is on
Click to expand...
Click to collapse
at first i tried without copying anything then on compiling i got error ie parsing error..
abhishekr700 said:
at first i tried without copying anything then on compiling i got error ie parsing error..
Click to expand...
Click to collapse
Then what ever you have modified is incorrect - Most likely the syntax or layout
If Gingerbread use apktool 1.5.2 https://code.google.com/p/android-apktool/downloads/list
If KitKat/lollipop use the new beta apktools
https://bitbucket.org/iBotPeaches/apktool/downloads
marcussmith2626 said:
Then what ever you have modified is incorrect - Most likely the syntax or layout
If Gingerbread use apktool 1.5.2 https://code.google.com/p/android-apktool/downloads/list
If KitKat/lollipop use the new beta apktools
https://bitbucket.org/iBotPeaches/apktool/downloads
Click to expand...
Click to collapse
I have jellybean
And I have given link in first post I did the same way he did
Also I wanna know that whether changes in res/xml and res/values are integrated into resources.arsc or somewhere else
abhishekr700 said:
I have jellybean
And I have given link in first post I did the same way he did
Also I wanna know that whether changes in res/xml and res/values are integrated into resources.arsc or somewhere else
Click to expand...
Click to collapse
Like I said - Iv never copied resources - I just sign with platform key
Can't give you any other help - if you get a compile error it's user error - Most likely incorrect syntax or you have missed something
Apktool will tell you which line the error is on
Can't help you anymore than that
marcussmith2626 said:
Like I said - Iv never copied resources - I just sign with platform key
Can't give you any other help - if you get a compile error it's user error - Most likely incorrect syntax or you have missed something
Apktool will tell you which line the error is on
Can't help you anymore than that
Click to expand...
Click to collapse
At first I tried without copying anything
But I got error while compiling..is that because resources.arsc not there or that file just gets decompiled and the error is not due to that
abhishekr700 said:
At first I tried without copying anything
But I got error while compiling..is that because resources.arsc not there or that file just gets decompiled and the error is not due to that
Click to expand...
Click to collapse
No like I keep saying - nothing to do with resources - I have never copied that
It's because most likely a syntax error - ie what you have typed in the xml is wrong or is missing something or the layout is wrong eg you have opened a layout but not closed it
I can't help you with that - apktool tells you what the error is and on what line of the file
I can't help you write in the mod for you - that's your job to understand what you are doing - what changes you are making & why you are making them - unless youunderstand what you are doing then you will not be able to solve the error apktool is telling you there is
Awww. So sad bro. But I have a solution! You need to root your phone first! I'm sure you backed up the original settings.apk to your sd card right? If is not. I don't know to fix that. Btw, if you backed up, Install Root Explorer. Replace the original settings.apk to Root explorer/System/App. Just paste the settings.apk. Once done, Your phone will automatic reboot. And now your phone is fixed. This is based on my experiences.
marcussmith2626 said:
No like I keep saying - nothing to do with resources - I have never copied that
It's because most likely a syntax error - ie what you have typed in the xml is wrong or is missing something or the layout is wrong eg you have opened a layout but not closed it
I can't help you with that - apktool tells you what the error is and on what line of the file
I can't help you write in the mod for you - that's your job to understand what you are doing - what changes you are making & why you are making them - unless youunderstand what you are doing then you will not be able to solve the error apktool is telling you there is
Click to expand...
Click to collapse
Okk I will try decompile without any changes to any file to check
BTW im using the basic apltoll version not the custom ones which provides a user interface I hope that isnt causing problem
And u said u sign apk with platform keys wont that lead to signature mismatches with other system apps and finally app not being installed??
AkcezzInc said:
Awww. So sad bro. But I have a solution! You need to root your phone first! I'm sure you backed up the original settings.apk to your sd card right? If is not. I don't know to fix that. Btw, if you backed up, Install Root Explorer. Replace the original settings.apk to Root explorer/System/App. Just paste the settings.apk. Once done, Your phone will automatic reboot. And now your phone is fixed. This is based on my experiences.
Click to expand...
Click to collapse
Brother im not a noob
I know the basics we r having a little hifi talk here..btw thanks u tried helping
A game I really liked only worked on old phones, not on "new" ones (from 2014). I made a thread asking how to make them work and they said to edit the apk's SDK number.
Hyoretsu said:
A game I really liked only worked on old phones, not on "new" ones (from 2014). I made a thread asking how to make them work and they said to edit the apk's SDK number.
Click to expand...
Click to collapse
Hi...
In order to do this, u need to decompile the app with apktool, then edit the line "min sdk version" in Android Manifest file with notepad++ and just recompile the apk.
Note: If the line is not found in Android Manifest file, it would be in apktool.yml file of same directory.
Check this tool to easily decompile and recompile APK file.
Sent from my ONE A2005 using Tapatalk
Brandon Indar said:
Hi...
In order to do this, u need to decompile the app with apktool, then edit the line "min sdk version" in Android Manifest file with notepad++ and just recompile the apk.
Note: If the line is not found in Android Manifest file, it would be in apktool.yml file of same directory.
Check this tool to easily decompile and recompile APK file.
Sent from my ONE A2005 using Tapatalk
Click to expand...
Click to collapse
Somehow it's missing a classes.dex, so apktool gives
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
when trying to decompile it and http://www.javadecompilers.com gives
"Job Outputcode: -1
Job Output:
File not found: com.vpet_source_from_JADX/classes.dexcom.vpet_source_from_JADX/classes.dex"
Hyoretsu said:
Somehow it's missing a classes.dex, so apktool gives
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
when trying to decompile it and http://www.javadecompilers.com gives
"Job Outputcode: -1
Job Output:
File not found: com.vpet_source_from_JADX/classes.dexcom.vpet_source_from_JADX/classes.dex"
Click to expand...
Click to collapse
Can u send me the APK file.
I will check it out.
There must be a classes.dex file in the APK.
Sent from my ONE A2005 using Tapatalk
Brandon Indar said:
Can u send me the APK file.
I will check it out.
There must be a classes.dex file in the APK.
Sent from my ONE A2005 using Tapatalk
Click to expand...
Click to collapse
This is the one I'm using: https://www.apk20.com/apk/4553/
Hey, did you solve your problem?