[Q] need help with decompilling - Xperia Arc Q&A, Help & Troubleshooting

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?

Related

Issue of APKTOOL

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!

[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!

[GUIDE][MOD] Enable navigation bar 4.2.2

This is a quick dev guide to enable navigation bar for S4.
Decompile SystemUI.apk go to res/values/drawables and add:
Code:
[COLOR=#8b008b]<item [COLOR=#ff0000]type[/COLOR][COLOR=#0000ff]="drawable"[/COLOR] [COLOR=#ff0000]name[/COLOR][COLOR=#0000ff]="tw_navigationbar_bg"[/COLOR]>[/COLOR]#ff000000[COLOR=#8b008b]</item>[/COLOR]
Now download attached files and copy files to corresponding folders in SystemUI.apk if folder does not exist(drawables-xhdpi) create it.
Compile SystemUI.apk and push to device (nothing will happen yet) Just to check device boots fine.
Now use any buil.prop editor and add line:
Code:
qemu.hw.mainkeys=0
You can also enable it now through framework-res method.
Reboot and your done.
Please hit thanks and give credits.
Hi OP,
This looks just what I've been waiting for - if only there was a way to disable the stock menu and back buttons; my only gripe with the S4 is that I'm always touching one of theses buttons accidentally
JibbaJoy said:
Hi OP,
This looks just what I've been waiting for - if only there was a way to disable the stock menu and back buttons; my only gripe with the S4 is that I'm always touching one of theses buttons accidentally
Click to expand...
Click to collapse
This can easily be done when I find time I will add how to.
Sent from my GT-I9505 using xda premium
works perfect but no text under buttons below could you add them
I can´t find the /values/drawables after extracted the SystemUI.apk ? And where to add the following code please.
<item type="drawable" name="tw_navigationbar_bg">#ff000000</item>
missing /values/drawables
https://dl.dropboxusercontent.com/u/41923164/Untitled.png
janjan said:
I can´t find the /values/drawables after extracted the SystemUI.apk ? And where to add the following code please.
<item type="drawable" name="tw_navigationbar_bg">#ff000000</item>
missing /values/drawables
https://dl.dropboxusercontent.com/u/41923164/Untitled.png
Click to expand...
Click to collapse
you have to put <item type="drawable" name="tw_navigationbar_bg">#ff000000</item> inside drawables.xml, you can find it under decompiled SystemUI.apk /res/values
edit: copy the files to SystemUI.apk/res and add the line qemu.hw.mainkeys=0 with root explorer (text editor mode) in build.prop
bruzski said:
you have to put <item type="drawable" name="tw_navigationbar_bg">#ff000000</item> inside drawables.xml, you can find it under decompiled SystemUI.apk /res/values
edit: copy the files to SystemUI.apk/res and add the line qemu.hw.mainkeys=0 with root explorer (text editor mode) in build.prop
Click to expand...
Click to collapse
But after decompiled SystemUI.apk. /res/values is missing. Se the picture which i post above. thanks
janjan said:
But after decompiled SystemUI.apk. /res/values is missing. Se the picture which i post above. thanks
Click to expand...
Click to collapse
decompiled SystemUI.apk doesn't seem complete !! do you get errors while decompiling ? what version of apktool do you use?
I am using APK-Multi-Tool-Stable-RELEASE which is the latest version. no error during decompiling.. Which version do you use? Iam going to decompile it once again.
Edit.. still missing https://dl.dropboxusercontent.com/u/41923164/missing.png
i use ApkManager V6.1, works great!
Deleted
it seems this method is not working for me. i followed the instructions on the OP
include framework-res.apk, twframework-res.apk with "apktool if"
decomplie systemui.apk
modify res/values/drawables.xml to include <item type="drawable" name="tw_navigationbar_bg">#ff000000</item>
copy and replace files from the Navigation.zip into the res folder
recompile systemui.apk
i get a lot of @Styles errors and no default warnings when i try to compile
I tried using both latest version of apktool v152 and aapt from feb 2013 method and apkmanager v6.1 method and the results are the same
after i cleared the @style warnings with the "+" solution I am able to compile systemui.apk but when I copy it onto my device I lost the status bar and I still cant enable the navigation bar.
anyone else getting the same results?
TIA
Decompile errors
I'm trying to decompile SystemUI.apk (copied it from my phone "system\app" to "\place-apk-here-for-modding" folder) using ApkManager V6.1.
I'm getting an error message. Can somebody help please ? Log is attached.
Thanks!
Ok. I was able to decompile SystemUI.apk using ApkManager V6.1. The problem was in missing framework-res.apk and twframework-res.apk in "apktool" folder.
Now I'm getting errors on apk compilation. Please take a look at the attached log file. What am I missing now ?
Thank you!
hocgwai said:
it seems this method is not working for me. i followed the instructions on the OP
include framework-res.apk, twframework-res.apk with "apktool if"
decomplie systemui.apk
modify res/values/drawables.xml to include <item type="drawable" name="tw_navigationbar_bg">#ff000000</item>
copy and replace files from the Navigation.zip into the res folder
recompile systemui.apk
i get a lot of @Styles errors and no default warnings when i try to compile
I tried using both latest version of apktool v152 and aapt from feb 2013 method and apkmanager v6.1 method and the results are the same
after i cleared the @style warnings with the "+" solution I am able to compile systemui.apk but when I copy it onto my device I lost the status bar and I still cant enable the navigation bar.
anyone else getting the same results?
TIA
Click to expand...
Click to collapse
I just noticed that I have exactly the same problem as you are. Were you able to get it working ?
Its is more difficult decompiling and recompiling S4 SystemUI and I don't have time to write a tut now so 2 options
Use this you can turn nav bar on off with settings app or
Use this SystemUI.apk I have done the work for you it will recompile as normal and the only mod is %battery apart from that it is stock.
gharrington said:
Its is more difficult decompiling and recompiling S4 SystemUI and I don't have time to write a tut now so 2 options
Use this you can turn nav bar on off with settings app or
Use this SystemUI.apk I have done the work for you it will recompile as normal and the only mod is %battery apart from that it is stock.
Click to expand...
Click to collapse
Thank you !
One question before I proceed with your advice. I have Canadian SGH-I337M version with rooted stock I337MUMUAMDJ rom.
Can I use your SystemUI.apk (%battery mode) with my ROM ?
fmark said:
Thank you !
One question before I proceed with your advice. I have Canadian SGH-I337M version with rooted stock I337MUMUAMDJ rom.
Can I use your SystemUI.apk (%battery mode) with my ROM ?
Click to expand...
Click to collapse
People have reported this working but just make a backup first nothing ventured nothing gained
All I do is have 2 zips on my sdcard the original and the modded one if the mod fails simply boot into recovery and reflash original it takes 1 min to be up and running again
fmark said:
Ok. I was able to decompile SystemUI.apk using ApkManager V6.1. The problem was in missing framework-res.apk and twframework-res.apk in "apktool" folder.
Now I'm getting errors on apk compilation. Please take a look at the attached log file. What am I missing now ?
Thank you!
Click to expand...
Click to collapse
If you get an error in decompiling the apk, remove the "system_bar_settings_view.xml" and "system_bar_notification_panel_title.xml" from the layout folder
(SystemUI.apk\res\layout\). Don't forget to put the files back after compiling the modded statusbar.
:fingers-crossed:
bruzski said:
If you get an error in decompiling the apk, remove the "system_bar_settings_view.xml" and "system_bar_notification_panel_title.xml" from the layout folder
(SystemUI.apk\res\layout\). Don't forget to put the files back after compiling the modded statusbar.
:fingers-crossed:
Click to expand...
Click to collapse
Decompiling is fine - no errors. I'm getting errors when compiling.
---------- Post added at 07:29 AM ---------- Previous post was at 07:26 AM ----------
gharrington said:
People have reported this working but just make a backup first nothing ventured nothing gained
All I do is have 2 zips on my sdcard the original and the modded one if the mod fails simply boot into recovery and reflash original it takes 1 min to be up and running again
Click to expand...
Click to collapse
No, unfortunately your systemui.apk is not compatible with my Rom.
I need to solve compilation errors. Any advice on that?
Thank you!

[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:

Categories

Resources