Issue of APKTOOL - Samsung Galaxy Nexus

Has anybody workable apktool on JB 4.2? I tried many versions, 1.5.1/1.5.0, but failed to compiled.
What tools do you use to mod phone.apk / systemui.apk / framework-res.pak now?

350d said:
Has anybody workable apktool on JB 4.2? I tried many versions, 1.5.1/1.5.0, but failed to compiled.
What tools do you use to mod phone.apk / systemui.apk / framework-res.pak now?
Click to expand...
Click to collapse
HAve you got aapt from the latest sdk? that is most likely the issue. I just tried decompiling and recompiling of a few 4.2 files with no problem. I used a apktool snapshot I compiled from the git.

thanks! I tried different aapt.exe and I think it is problem. Could you share me your aapt.exe?

tristan202 said:
HAve you got aapt from the latest sdk? that is most likely the issue. I just tried decompiling and recompiling of a few 4.2 files with no problem. I used a apktool snapshot I compiled from the git.
Click to expand...
Click to collapse
I can use apktool 1.5.1 pre with the latest aapt.exe(size:5972K) to install framework-res.apk and decompiled phone.apk (both from Cataclysm ROM or stock jelly bean 4.2 deodexed) successfully. But never can I compile them! Enclosed screenshot... What must I missing?

For me I get error when trying to decompile JB apk so I use FJ-apktools and then I sign and decompile + recompile modified apk + zipalign with Android kitchen then it works well..
This may be good: http://forum.xda-developers.com/showthread.php?t=1053227 I have not tested this yet.

I tried FJ-APKTOOLS yesterday, failed...

350d said:
I tried FJ-APKTOOLS yesterday, failed...
Click to expand...
Click to collapse
APKTOOL for JB4.2.x
http://www.mediafire.com/?v46a04y74i7zb5q

I used this aapt and apktool.jar to successfully decompile and recompile 4.2 framework
http://forum.xda-developers.com/showpost.php?p=34806981&postcount=265

hi
APKTOOL_JB4.2 no work recompile GalleryGoogle.apk
sorry for google translate.

Try this one before modding your gallery. Copy your browser.apk to your tools folder then apktool if browser.apk. Some of the apps requires the browser to be installed on your apktool folder in order for them to decompile and recompile.
Sent from my Galaxy Nexus

rustyjay said:
I used this aapt and apktool.jar to successfully decompile and recompile 4.2 framework
http://forum.xda-developers.com/showpost.php?p=34806981&postcount=265
Click to expand...
Click to collapse
Thanks Bro! It really does work!

None of this work. All failed. Any other fixes?

F4M0U569 said:
None of this work. All failed. Any other fixes?
Click to expand...
Click to collapse
No fixes required. All you need to do is get the latest sdk, and a snapshot of apktool 1.5.1.
Sent from my Galaxy Nexus using xda premium

It works!
rustyjay said:
I used this aapt and apktool.jar to successfully decompile and recompile 4.2 framework
http://forum.xda-developers.com/showpost.php?p=34806981&postcount=265
Click to expand...
Click to collapse
Thank you for the link!

Related

[Q] need help with decompilling

every time i'm trying to decompile an APK i get this error:
Code:
Decompiling Apk
testCan't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
"An Error Occured, Please Check The Log (option 24)"
can someone help me?:crying:
someone? anyone?
:crying:
make sure you installed correct framework apps..and then decompile again
arpith.fbi said:
make sure you installed correct framework apps..and then decompile again
Click to expand...
Click to collapse
I already installed the framework-res.apk and the systemui.apk
Sent from my LT18i using xda premium
can you post the 4-5 previous lines in the code before getting error?
arpith.fbi said:
can you post the 4-5 previous lines in the code before getting error?
Click to expand...
Click to collapse
i used used apk multi tool, so i selected a project, chose to decompile, and that are all the lines i get.
install original stock framework-res.apk including other frameworks
First try decompiling and re-compiling the original stock apk before decompiling & recompiling apk of some other roms.
but i still feel framework-res.apk isnt properly installed
Code:
apktool install-framework framework-res.apk
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Erhany said:
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Click to expand...
Click to collapse
thanks, it worked
now i can't compile the apk:crying:
Code:
The system cannot find the file specified.
what can i do to fix that?
please, can someone help me with that?

[Q]How to decompile framework.apk?

When I recompile framework-res.apk,the apktool notice "aapt:...".And the framework-res.apk still be builded.But I replace the resources.arsc and put it in the phone,reboot and always in bootanimation.I used apktool 1.4.10,1.5.0,1.5.1... and so on.I can not solve this problem,I need help.
Sent from my lt28h use sony fw.
kin912 said:
When I recompile framework-res.apk,the apktool notice "aapt:...".And the framework-res.apk still be builded.But I replace the resources.arsc and put it in the phone,reboot and always in bootanimation.I used apktool 1.4.10,1.5.0,1.5.1... and so on.I can not solve this problem,I need help.
Sent from my lt28h use sony fw.
Click to expand...
Click to collapse
I am not clear from what you did. But you need to do it this way.
apktool if ion SemcGenericUxRes.apk
apktool d -t ion framework-res.apk out
make changes to decompiled source
apktool b out new.framework-res.apk
Now open both framework-res.apk and new.framework-res.apk side by side using an archiver. Do not use windows open.
Now you will notice one thing that the new framework does not contain META-INF folder.
Delete the resources.arsc file from the original framework-res. Drag the resources.arsc from the new framework-res and dump it on to the original framework-res. Close both the files.
Now you are ready to use the updated original framework-res.apk
ganeshbiyer said:
I am not clear from what you did. But you need to do it this way.
apktool if ion SemcGenericUxRes.apk
apktool d -t ion framework-res.apk out
make changes to decompiled source
apktool b out new.framework-res.apk
Now open both framework-res.apk and new.framework-res.apk side by side using an archiver. Do not use windows open.
Now you will notice one thing that the new framework does not contain META-INF folder.
Delete the resources.arsc file from the original framework-res. Drag the resources.arsc from the new framework-res and dump it on to the original framework-res. Close both the files.
Now you are ready to use the updated original framework-res.apk
Click to expand...
Click to collapse
No need to install framework-res.apk only just SemcGenericUxpRes.apk?
ganeshbiyer said:
I am not clear from what you did. But you need to do it this way.
apktool if ion SemcGenericUxRes.apk
apktool d -t ion framework-res.apk out
make changes to decompiled source
apktool b out new.framework-res.apk
Now open both framework-res.apk and new.framework-res.apk side by side using an archiver. Do not use windows open.
Now you will notice one thing that the new framework does not contain META-INF folder.
Delete the resources.arsc file from the original framework-res. Drag the resources.arsc from the new framework-res and dump it on to the original framework-res. Close both the files.
Now you are ready to use the updated original framework-res.apk
Click to expand...
Click to collapse
I try to decompile this mod and it's sucessful.--->http://forum.xda-developers.com/showthread.php?t=2047999
Once I do the original framework-res I fail to make it use.
kin912 said:
I try to decompile this mod and it's sucessful.--->http://forum.xda-developers.com/showthread.php?t=2047999
Once I do the original framework-res I fail to make it use.
Click to expand...
Click to collapse
How are you trying to use it. Tell me the steps.
ganeshbiyer said:
How are you trying to use it. Tell me the steps.
Click to expand...
Click to collapse
1.Install framework about framework-res.apk and SemcGenericUxpRes.apk.
2.Decompile framework-res.apk and make change of the source.
3.Recompile framework-res.apk and build the new framework-res.apk.
4.Take the resources.arsc and the raw which I changed from the new framework-res.apk to the original framework-res.apk.
5.Replace the final framework-res.apk in my phone with 644 permission.
I reboot and loop in the bootanimation.
kin912 said:
1.Install framework about framework-res.apk and SemcGenericUxpRes.apk.
2.Decompile framework-res.apk and make change of the source.
3.Recompile framework-res.apk and build the new framework-res.apk.
4.Take the resources.arsc and the raw which I changed from the new framework-res.apk to the original framework-res.apk.
5.Replace the final framework-res.apk in my phone with 644 permission.
I reboot and loop in the bootanimation.
Click to expand...
Click to collapse
What are the sizes of the frameworks-res.apk's
ganeshbiyer said:
What are the sizes of the frameworks-res.apk's
Click to expand...
Click to collapse
Original:21MB
Decompile:14.9MB
If I do nothing change only recompile the frameworks-res.apk,it still has the bug.
kin912 said:
Original:21MB
Decompile:14.9MB
If I do nothing change only recompile the frameworks-res.apk,it still has the bug.
Click to expand...
Click to collapse
If you have followed pepitos tutorial from themes section then it should be ok.
There is nothing else to do.
Sent from my LT28i using xda premium
ganeshbiyer said:
If you have followed pepitos tutorial from themes section then it should be ok.
There is nothing else to do.
Sent from my LT28i using xda premium
Click to expand...
Click to collapse
I make sure the steps are ok because I can decompile the framework.apk of miui.Anyway,thanks a lot!

[Q] Recompiling SystemUI.apk or any other apks Error

Everytime i try to compile system apps i get this error, i have latest sdk installed, latest jdk and last version of apktool. I did apktool if framework-res.apk then apktool if semcgenericuxp.apk and decompiled systemui.apk, i have it done. I edited things, when i try to recompile it, gives me this error. I searched a lot but nothing helped, so if there is anyone who's facing this issue and then solved it, please help me. This is really eating me inside
federico rotundi said:
Everytime i try to compile system apps i get this error, i have latest sdk installed, latest jdk and last version of apktool. I did apktool if framework-res.apk then apktool if semcgenericuxp.apk and decompiled systemui.apk, i have it done. I edited things, when i try to recompile it, gives me this error. I searched a lot but nothing helped, so if there is anyone who's facing this issue and then solved it, please help me. This is really eating me inside
Click to expand...
Click to collapse
Try deconpiling then recompiling without any changes
If it still shows error change the semcgeneric or framework
Sent from my LT18i
Sahaab said:
Try deconpiling then recompiling without any changes
If it still shows error change the semcgeneric or framework
Sent from my LT18i
Click to expand...
Click to collapse
It showed that error, i changed it showed that again, i tried it again with framework and semcgenericuxpres from your rom.
federico rotundi said:
It showed that error, i changed it showed that again, i tried it again with framework and semcgenericuxpres from your rom.
Click to expand...
Click to collapse
Where is the systemUI from?
Is it a port?
Sent from my LT18i
Sahaab said:
Where is the systemUI from?
Is it a port?
Sent from my LT18i
Click to expand...
Click to collapse
Yes it's from MXY1997's thread.
federico rotundi said:
Yes it's from MXY1997's thread.
Click to expand...
Click to collapse
Then I suggest u PM him
But I will give u a suggestion
Use the framework-res and semcgeneric from DdcCabuslay's Xperia Z theme
Sent from my LT18i
Sahaab said:
Then I suggest u PM him
But I will give u a suggestion
Use the framework-res and semcgeneric from DdcCabuslay's Xperia Z theme
Sent from my LT18i
Click to expand...
Click to collapse
It is not about the SystemUI, there is something wrong about java, i can't recompile any other system app with apktool as i said, i used lots of versions of apktool and this problem still remains, maybe it is something to do with Windows 8?
federico rotundi said:
It is not about the SystemUI, there is something wrong about java, i can't recompile any other system app with apktool as i said, i used lots of versions of apktool and this problem still remains, maybe it is something to do with Windows 8?
Click to expand...
Click to collapse
Ya maybe windows 8 isnt supported yet
Sent from my LT18i

[Q]Problem With SemcGenericUxp.apk & Apk-Multi-Tool

Hello XDA,
I am trying to decompile settings.apk from stock GB rom to modify it as ICS settings & i know how to do it because i have done it before on other phones. My problem is Apk-Multi-Tool won't let me install SemcGenericUxp.apk, i installed framework-res.apk & SystemUI.apk.
When i try to decompile settings.apk with just framework-res.apk & SystemUI.apk install its says "Can't find framework resources...."
I tried to decompile with dependee apk using option "10" & drag the SemcGenericUxp.apk but i says "Sorry its not a dependee apk...."
Anyone having any type of knowledge please input some!
Thanks!!
Did you set up the frameworks (framework-res.apk and SemcGenericUxpRes.apk, if I recall correctly) with apktool using command
Code:
apktool if name-of-file.apk
Someguyfromhell said:
Did you set up the frameworks (framework-res.apk and SemcGenericUxpRes.apk, if I recall correctly) with apktool using command
Code:
apktool if name-of-file.apk
Click to expand...
Click to collapse
Thanks for the reply.
I am not using apk-tool but apk-multi-tool because its easy to do decompile/recompile with it & also chances of errors also decreases due to straight forward steps.
Any other help?
Try using framework-res.apk as dependee APK
Someguyfromhell said:
Try using framework-res.apk as dependee APK
Click to expand...
Click to collapse
Nope,
it says "Sorry its not a dependee file..." for both SemcGenericUxp.apk & framework-res.apk
Someguyfromhell said:
Try using framework-res.apk as dependee APK
Click to expand...
Click to collapse
Nope,
it says "Sorry its not a dependee file..."
I tried moding E10i Settings.apk from stock rom using apk-multi-tool and all went good, see http://forum.xda-developers.com/showthread.php?t=2754168
whats wrong with our SemcGenericUxp.apk?:crying:
I just found a work around!:laugh:

Theming / Editing Settings.apk

Hi,
i have themed/edited Settings.apk, then i recompiled/signed/zipaligned without warnings with ApkTool, but once overwritten original Settings.apk and chmoded to 0644 i can't restart the phone, it is stuck on "Android starting" or "updating" (i can't remember the correct text showing). Now i resored the original Settings.apk and all is working fine.
Am i missing something? I have used framework-res and framework-res-htc.
I'm on rooted stock rom latest firmware, no xposed.
Thanks and sorry for my bad english.
which version of apktool?
you need to manually resign the rebuild apk in newer apktool versions
In order to run a rebuilt application. You must resign the application. Android documentation can help with this.
Click to expand...
Click to collapse
and why the double post?
peteter said:
which version of apktool?
you need to manually resign the rebuild apk in newer apktool versions
and why the double post?
Click to expand...
Click to collapse
I'm using "Advanced ApkTool v4.2.0", apktool.jar is a compatible version for marshmallow but i don't remember the version number, previously i themed various xperia themes for marshmallow without issues.
What do you mean with "you need to manually resign the rebuild apk in newer apktool versions"? Like i said i'm using Advanced ApkToo and it has sign command.
Double post is an error, i have requested the deletion.
Thank you
ah ok, thought you were using the standalone apktool from ibotpeaches, there you have to resign the rebuild apk yourself.
just check the link in the quote

Categories

Resources