Please Help
I use windows 7 64-Bit.
I have installed
JDK 7 update 5 (64 Bit)
Android SDK
Java
But I can not decompile anything.
Using autoapktool, apktool, apkmanager, blabla.
I won't make a thread before I search on google. So many threads I follow the steps. But nothing.
Here are the errors when I try to unpack Gmail.apk:
1. I try to decompile with autoapktool2.0.4A, but it stuck on"I: Copying assets and libs..."
2. Errors when decompile with ApkManager5.0.2
Code:
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
Could Not Find E:\Master\Android\PC tools\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedGmail.apk
Could Not Find E:\Master\Android\PC tools\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedGmail.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f090000 integer/dialog_animationDefaultStartOffset, config=-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
3. When I use apkchanger to decompile, it does not have any errors, but when compile it :
Code:
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
I: Copying raw classes.dex file...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Ridho\apktool\framework\1-api15.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Could Not Find C:\Users\Ridho\Downloads\Compressed\Apk-Changer_alpha9\other\app\Gmail.conf
I: Copying classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
The system cannot find the file specified.
Please help. I am getting sick with this thing.
No one?
Ridho1 said:
No one?
Click to expand...
Click to collapse
Try apk manager
Avilove.Cullen said:
Try apk manager
Click to expand...
Click to collapse
I have tried. As you can see, I have an error when recompile it.
Make sure u dont change any of the apk mamager files from the original foulder leave everythun you extracted together in the same foalder. If you continue having errors you might have to try diffrent versions of apk manager to get it to work.
Sent from my PC36100 using Xparent Blue Tapatalk 2
Ridho1 said:
I have tried. As you can see, I have an error when recompile it.
Click to expand...
Click to collapse
Have you installed the framework?
Avilove.Cullen said:
Have you installed the framework?
Click to expand...
Click to collapse
What framework?
Ridho1 said:
What framework?
Click to expand...
Click to collapse
system framework..
in apk manager . You will see a folder named "other",there open CMD and type "apktool if framework-res.apk"
U can post any of ur systemui decompiling problems here....
Do you use apktool??
Best Regards
..:: [email protected]€m!c ::..
Pandemic said:
Do you use apktool??
Best Regards
..:: [email protected]€m!c ::..
Click to expand...
Click to collapse
yup i use apktool....the apktool is working fine for all my apks except the systemui and framework-res....
i have also posted the error
the errors are there even if i decompile and compile the apk without any changes..
salsreloded said:
yup i use apktool....the apktool is working fine for all my apks except the systemui and framework-res....
i have also posted the error
the errors are there even if i decompile and compile the apk without any changes..
Click to expand...
Click to collapse
Use ics apktool I see your log I had same prob few month back
Use yours to decompjle and ICS to compil bro
Sent from my Xperia Neo using xda premium
kormatoes said:
Use ics apktool I see your log I had same prob few month back
Use yours to decompjle and ICS to compil bro
Sent from my Xperia Neo using xda premium
Click to expand...
Click to collapse
Sorry for the late reply korm but had 2 exams today so was kinda busy....
but yes i tried ics apktool also apktool 1.5 also but it is still returning the same errors...
i decompiled using original one and uses various apktool to build it but no success
Hmm, I have tried to decompile systemUI from purenes build 13.
I am using apk manager and have placed framework-res and system ui in the correct folder.
I get this error log when decompiling framework res..
Code:
|28/09/2012 -- 19:16:50.15|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
Could Not Find D:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find D:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01040342 string/web_user_agent_target_content, config=[DEFAULT]
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Sou
rce)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Press any key to continue . . .
I have set java in my path, so thats not it, and i can extract apks no problem. But I have never managed to decompile a single apk ever....any help!!!
PS, sorry for adding to this thread more problems and no solutions, but the errors look similar to me...
gregbradley said:
Hmm, I have tried to decompile systemUI from purenes build 13.
I am using apk manager and have placed framework-res and system ui in the correct folder.
I get this error log when decompiling framework res..
Code:
|28/09/2012 -- 19:16:50.15|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
Could Not Find D:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find D:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01040342 string/web_user_agent_target_content, config=[DEFAULT]
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Sou
rce)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Press any key to continue . . .
I have set java in my path, so thats not it, and i can extract apks no problem. But I have never managed to decompile a single apk ever....any help!!!
PS, sorry for adding to this thread more problems and no solutions, but the errors look similar to me...
Click to expand...
Click to collapse
no problem man...we shoud always not prefer to create separate threads for similar problems...
salsreloded said:
no problem man...we shoud always not prefer to create separate threads for similar problems...
Click to expand...
Click to collapse
Thanks, But i cannot even decompile....i have been researching this for months on and off but never found a solution...., It may be because my laptop is a works machine, but I cant take it to them because I am hacking admin rights to get things installed on here in the first place....
This is my error if i use apktool followin these instructions
Code:
C:\apktool>java -jar apktool.jar if framework-res.apk
Error: Unable to access jarfile apktool.jar
C:\apktool>if framework-res.apk
The syntax of the command is incorrect.
C:\apktool>apktool if framework-res.apk
Error: Unable to access jarfile C:\apktool\\apktool.jar
C:\apktool>
gregbradley said:
Thanks, But i cannot even decompile....i have been researching this for months on and off but never found a solution...., It may be because my laptop is a works machine, but I cant take it to them because I am hacking admin rights to get things installed on here in the first place....
This is my error if i use apktool followin these instructions
Code:
C:\apktool>java -jar apktool.jar if framework-res.apk
Error: Unable to access jarfile apktool.jar
C:\apktool>if framework-res.apk
The syntax of the command is incorrect.
C:\apktool>apktool if framework-res.apk
Error: Unable to access jarfile C:\apktool\\apktool.jar
C:\apktool>
Click to expand...
Click to collapse
can u tell me all the names of the file u have in the c:\apktool folder...
salsreloded said:
can u tell me all the names of the file u have in the c:\apktool folder...
Click to expand...
Click to collapse
aapt.exe
apktool.bat
apktool.jar.1.4.2
apktool.jar.1.4.3
framework-res.apk
systemUI.apk
rename ur file apktool.jar.1.4.3 to apktool.jar and remove the other apktool.jar file and then try....
geting closer
Code:
C:\apktool>java -jar apktool.jar if framework-res.apk
I: Framework installed to: \\hpserver2\home\staff\g.bradley\apktool\framework\1.
apk
C:\apktool>java -jar apktool.jar d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\apktool>java -jar apktool.jat if sysyemUI.apk
Error: Unable to access jarfile apktool.jat
C:\apktool>
My aim is to decompile the systemUI.apk in order to add the time back into the status bar,
I have read that you cannot decmpile sysyenui without first decompiling framework-res....why is it failaing now?
However, kudos, this is the first time decompile has ever worked for me, thanks +1 to you
First of all dont add the systemui.apk using the if statement...
i see u have added the framework-res.apk to the framework folder...
next just write this statement to decompile Systemui.apk
java -jar apktool.jar d SystemUI.apk
Further it was failing coz u wrote .jat instead of .jar
salsreloded said:
First of all dont add the systemui.apk using the if statement...
i see u have added the framework-res.apk to the framework folder...
next just write this statement to decompile Systemui.apk
java -jar apktool.jar d SystemUI.apk
Click to expand...
Click to collapse
Code:
:\apktool>java -jar apktool.jar d SystemUI.apk
: Baksmaling...
estI: Loading resource table...
: Loaded.
: Loading resource table from file: \\hpserver2\home\staff\g.bradley\apktool\fr
mework\1.apk
: Loaded.
: Decoding file-resources...
: Cant find 9patch chunk in file: "drawable-hdpi/status_bar_close_on.9.png". Re
aming it to *.png.
: Cant find 9patch chunk in file: "drawable-hdpi/status_bar_hr.9.png". Renaming
it to *.png.
: Decoding values*/* XMLs...
: Done.
: Copying assets and libs...
:\apktool>
many thanks.
I will now spend some time messing with these files....if i have any more trouble i will post it here.
THANKS!!
---------- Post added at 08:51 PM ---------- Previous post was at 08:51 PM ----------
salsreloded said:
Further it was failing coz u wrote .jat instead of .jar
Click to expand...
Click to collapse
Thats because i have had too much wine
i am glad i helped u...
yup if u face any more trouble u can post it here..
I use stock .587. I can decompile SystemUI.apk but getting error in Home.apk
Hmm, I have been having a play with this but cant get my head round it.
I am on oureness build 13 and am trying to get the time to show in the status bar. I have searched through the systemUI.apk but I dont know where to begin to edit systemUI.apk to get the time back.
I have tried to compare it to other systemUI.apk files that do show the time, but there is too much to go through.
If can anyone give me clue on how to edit the smali files to show the time I would be grateful
Greg
a1b2c99 said:
I use stock .587. I can decompile SystemUI.apk but getting error in Home.apk
Click to expand...
Click to collapse
No body knows solution to this. Or no want to show up in the forum. I never get answer.
a1b2c99 said:
No body knows solution to this. Or no want to show up in the forum. I never get answer.
Click to expand...
Click to collapse
have you loaded the appropriate framework-res.apk?
Sent from my MT15i using xda premium
I decompile an apk (an ordinary TSF Shell theme) without any problem but when it comes to recompiling. Its always the same error. Trying this for a week with apktool, tickle my android and with apk multi tool. When I send my decompiled files to my friends they can compile it but on my computer at home or at work I get the same error forever. I have Windows 7 Ultimate 64 bit installed. You can see installed java version on the code.
Please somebody say something about this or Im gonna loose my mind.
Code:
|16.05.2013 -- 23:22:52,12|
--------------------------------------------------------------------------
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
[14,0] No enum const class org.jf.dexlib.AnnotationVisibility.RUNT¦ME
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: C:\APK-Multi-Tool-Stable-RELEASE\projects\unsignedcom.jenizaro.theme.marinethe
mehd.apk\smali\android\annotation\SuppressLint.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:256)
at brut.androlib.Androlib.buildSources(Androlib.java:217)
at brut.androlib.Androlib.build(Androlib.java:208)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
at brut.apktool.Main.main(Main.java:79)
Devam etmek için bir tuşa basın . . .
A Solution ?
did you find a solution for this problem ? i Have the same !
meanwhile, if you change your langage settings to En/US it works for me, but i can't do that for my project, i need multi-language support...
When i want to compile ill get an error, i have install framework and the newest java jdk version.
I trying to compile Whatsapp.apk. Pls i need help
Code
--------------------------------------------------------------------------
|za 04-03-2017 -- 20:38:48,21|
--------------------------------------------------------------------------
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
Could Not Find C:\Users\Jarno\Desktop\ApkEditor2.2.0\place-apk-here-for-modding\../place-apk-here-for-modding/signedWhatsapp.apk
Could Not Find C:\Users\Jarno\Desktop\ApkEditor2.2.0\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedWhatsapp.apk
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:58)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:516)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:267)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:108)
at brut.apktool.Main.cmdDecode(Main.java:163)
at brut.apktool.Main.main(Main.java:81)
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:258)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:105)
at brut.androlib.Androlib.readMetaFile(Androlib.java:254)
... 4 more
Press any key to continue . . .
Hi Guys
Im really new to this. OK so i have a 3rd party apk i need to modify for personal use. I am trying to use apk multi tool CLI version.
i have
Java 2 Runtime Environment SE v1.41_07 ( installed on pc already)
Java 8 UPdate 121
Java 8 update 131
Java SDK Kit 8 update 131
ANdroid sutdio with Android SDK
Phone is galaxy s7 edge with Android 7.0, USB debugging is enabled in developer options.
I get to the point in multi tool where i can pull the framework-res.apk from the phone, but when i try to install with "apktool if framework-res.apk" i get this error..
C:\APK-Multi-Tool-Stable-RELEASE\other>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:611)
at brut.androlib.Androlib.installFramework(Androlib.java:469)
at brut.apktool.Main.cmdInstallFramework(Main.java:260)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:43)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
0)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 5 more
I have no idea what to do now. help please.. thank you
Matt
OK it seems i was using an old apktool.jar file. I am now using apktool_2.2.2.jar... I have managed to decompile the apk and modified what i need to, but when i try and compil i get this message
at brut.androlib.Androlib.readMetaFile(Androlib.java:254)
... 4 more
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:258)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
105)
at brut.androlib.Androlib.readMetaFile(Androlib.java:254)
... 4 more
Press any key to continue . . .
It seems to be refering to a missing apktool.yml but the file is there and readable buy notepad++ so the decompile worked ok
resolved