Can someone tell me why my decompiling is failing? - Android Q&A, Help & Troubleshooting

When I try to decompile SystemUI.apk only, my decompiling process fails.
I am using the latest version of APK Studio.
The log when I have framework installed: http://pastebin.com/Zc9NaKqB
The log when I don't have framework installed: http://pastebin.com/jEDU9G6c
I already tried deleting apktool/framework/1.apk
I already tried reinstalling Java/SDK/JDK... I have them installed correctly.
Would really be thankful if someone finds the error to this.
Regards,

RoyaLKurTx3 said:
When I try to decompile SystemUI.apk only, my decompiling process fails.
I am using the latest version of APK Studio.
The log when I have framework installed: http://pastebin.com/Zc9NaKqB
The log when I don't have framework installed: http://pastebin.com/jEDU9G6c
I already tried deleting apktool/framework/1.apk
I already tried reinstalling Java/SDK/JDK... I have them installed correctly.
Would really be thankful if someone finds the error to this.
Regards,
Click to expand...
Click to collapse
Framework Of which ROM u r installing ?
Hybrid ROM ?

The-Immortal said:
Framework Of which ROM u r installing ?
Hybrid ROM ?
Click to expand...
Click to collapse
I installed a mod without a framework-res, meaning the framework remained stock 4.4.2.

Related

[Q] Can someone decompile an ICS APK for me?

I want to mod my Phone.apk app (from Italian stock ROM XWLP7) to remove increasing ringtone like described here: http://forum.xda-developers.com/showpost.php?p=22950768&postcount=2
Because Phone.apk is an ICS apk, I can't decompile correctly with ApkTool, I tried many times, with this method too: http://forum.xda-developers.com/showthread.php?t=1511730 but I failed
Can someone decompile/mod/recompile my Phone.apk for me, please?
Here you can find Phone.zip file with Phone.apk and framework-res.apk: http://www.box.com/s/69ab3a5e0c2c69cb07bc, thank you!
Nobody can help me?!?
USe the below link to download apk tool (ics working version)
http://www.mediafire.com/download.php?d5ar526awpaxrls
do install your framework-res.apk and start decompiling , it should work definitely
bala_gamer said:
USe the below link to download apk tool (ics working version)
http://www.mediafire.com/download.php?d5ar526awpaxrls
do install your framework-res.apk and start decompiling , it should work definitely
Click to expand...
Click to collapse
I had already tried auto ApkTool v2.0.0 and did not work.

Can´t recompile framework-res.apk Help please.

Hello,
i have a problem recompiling framework-res.apk.
I can flawlessly decompile and change any other apk (also system apks).
Decompiling the framework-res.apk goes flawlessly as well...
But when i try to recompile apktool tells me
could not find sources
checking whether resources has changed
building ressourced
Click to expand...
Click to collapse
then it gives and incredible long error message that something is wrong in values/plurals (I have not even touched it!!) and some other **** that may be wrong..
Even if I don´t change anything I get this message..
First of all:
- i have installed the framework (java -jar apktool.jar if framework-res.apk)
- i have updated to the latest aapt.exe
- i am using apktool 1.4.8 but it also happens with all other versions (I tried it)
I don´t know what´s wrong since I can flawlessly change any other apks that way as i told..
I hope you can help me!
Thanks in advance!
Use apkmanager is best...... to install framework, put it in others folder use "apktool if framework-res.apk" cmd..... as ur error says, u r not installed framework correctly i think..... try this....
Sent from my Micromax A60 using xda premium
Well... apkmanager is like an automatic Version of apktool...
So I will get same Error...
Can´t anyone help me? Has no one ever discovered this Problem before?...
Can you post the long error message to track the issue copy it to paste bin or something
Sent from my GT-N7000 using xda premium
spartanier7 said:
Hello,
i have a problem recompiling framework-res.apk.
I can flawlessly decompile and change any other apk (also system apks).
Decompiling the framework-res.apk goes flawlessly as well...
But when i try to recompile apktool tells me
then it gives and incredible long error message that something is wrong in values/plurals (I have not even touched it!!) and some other **** that may be wrong..
Even if I don´t change anything I get this message..
First of all:
- i have installed the framework (java -jar apktool.jar if framework-res.apk)
- i have updated to the latest aapt.exe
- i am using apktool 1.4.8 but it also happens with all other versions (I tried it)
I don´t know what´s wrong since I can flawlessly change any other apks that way as i told..
I hope you can help me!
Thanks in advance!
Click to expand...
Click to collapse
same problem!
Try THIS and report back.
Well thanks
That ICS Apktool worked. Allthough i was editing a JB apk...
Thanks anyway I hop it will remain working Otherwise I´ll report on that here.
Thanks again. You saved my ass.
The funny thing is that SystemUI is not recompilable with that apktool. But it works fine with my old one..
It seems that it only works for framework-res.apk...
isn´t that strange somehow?
spartanier7 said:
isn´t that strange somehow?
Click to expand...
Click to collapse
It is a pain in the ass, try this one for it which is what I use for my SystemUI and other problem APKs, but keep the two separate, so have the first in it's own folder and this in it's own folder...

Error while recompiling APK

Hello XDA brothers.
I am running Android APK MULTI TOOL for recompiling and decompiling an APK. When I decompile it, it goes smoothly. But when I attempt recompiling, it gives A LOT of errors stating at the end "... is not defined". This is not an after-mod error because I tried recompiling it right after decompiling, without even opening the decompiled folder. It still gives the same error. Kind of frustrating. So, can anyone help?¿
dominator96 said:
Hello XDA brothers.
I am running Android APK MULTI TOOL for recompiling and decompiling an APK. When I decompile it, it goes smoothly. But when I attempt recompiling, it gives A LOT of errors stating at the end "... is not defined". This is not an after-mod error because I tried recompiling it right after decompiling, without even opening the decompiled folder. It still gives the same error. Kind of frustrating. So, can anyone help?¿
Click to expand...
Click to collapse
comform that you have install proper framework and systemui
Vaibhav Chauhan said:
comform that you have install proper framework and systemui
Click to expand...
Click to collapse
I am not decompiling a system file. Its YA weather apk app. Do I still want the system ui and framework? Btw my phone's not rooted so is it possible to pull these files from phone?
dominator96 said:
I am not decompiling a system file. Its YA weather apk app. Do I still want the system ui and framework? Btw my phone's not rooted so is it possible to pull these files from phone?
Click to expand...
Click to collapse
you need to deodex this files and then install it to the tool then it will compile according to this apks
Vaibhav Chauhan said:
you need to deodex this files and then install it to the tool then it will compile according to this apks
Click to expand...
Click to collapse
Deodex a normal app which is available at PlayStore? :/ Is it possible?
dominator96 said:
Deodex a normal app which is available at PlayStore? :/ Is it possible?
Click to expand...
Click to collapse
nope its not contain odex files
Vaibhav Chauhan said:
nope its not contain odex files
Click to expand...
Click to collapse
But you just said to deodex them files -.- Hold on, lets start again.
I want to decompile a non-system apk file and then recompile. Decompile goes smooth but while recompiling, it states a BUNCH of errors saying "........ is not defined". This is what I want to fix about
dominator96 said:
But you just said to deodex them files -.- Hold on, lets start again.
I want to decompile a non-system apk file and then recompile. Decompile goes smooth but while recompiling, it states a BUNCH of errors saying "........ is not defined". This is what I want to fix about
Click to expand...
Click to collapse
no no
understand properly
firstvyou need to deodex systemui app and framework app
tthen install it to the multitool
then compile the other apps
it will be compile
Vaibhav Chauhan said:
no no
understand properly
firstvyou need to deodex systemui app and framework app
tthen install it to the multitool
then compile the other apps
it will be compile
Click to expand...
Click to collapse
Oh so that's it,
But my phone is not rooted. Can I use any system ui and framework or do I have to use only my phone's system ui and fframewok?
Vaibhav Chauhan said:
no no
understand properly
firstvyou need to deodex systemui app and framework app
tthen install it to the multitool
then compile the other apps
it will be compile
Click to expand...
Click to collapse
hey, can I use your system ui and framework to compile apps?
dominator96 said:
Oh so that's it,
But my phone is not rooted. Can I use any system ui and framework or do I have to use only my phone's system ui and fframewok?
Click to expand...
Click to collapse
yes can use non rooted phones apps but first deodex it
if you will use my phone's apps then it will run on my phone not in yours
Vaibhav Chauhan said:
yes can use non rooted phones apps but first deodex it
if you will use my phone's apps then it will run on my phone not in yours
Click to expand...
Click to collapse
I want to modify an APK and then share it with everyone. How can I make it applicable on all phones?
dominator96 said:
I want to modify an APK and then share it with everyone. How can I make it applicable on all phones?
Click to expand...
Click to collapse
sorry but it can not run on all phones
it will run in that phone on which you sign app or the similar phones

problem with Signing kitkat apk

Hello,I have problem with recompiling any system apk for kitkat firmware,tried to decompile and recompile framework-res as the usual way of any 4.3 firmware and lower,it does decompile and recompile successfully but when I replace it back instead of the original one I got it stuck at sprint screen for NOTE3 SPRINT .also when I try with SecSettings ,the settings icon disappear after replacing the original one,I even tried building the apk without any modification and I got the same thing.
there is must be something with signing kitkat apk different than 4.3 and lower firmware.
I used the same method of signing A System apk of taking META-INF and AndroidManifest.xml and inserting them into the new APK.
apktool version 1.5.3
phone:NOTE3 SPRINT N900P 4.4.2 STOCK FIRMWARE.
THANK YOU
motiam4 said:
Hello,I have problem with recompiling any system apk for kitkat firmware,tried to decompile and recompile framework-res as the usual way of any 4.3 firmware and lower,it does decompile and recompile successfully but when I replace it back instead of the original one I got it stuck at sprint screen for NOTE3 SPRINT .also when I try with SecSettings ,the settings icon disappear after replacing the original one,I even tried building the apk without any modification and I got the same thing.
there is must be something with signing kitkat apk different than 4.3 and lower firmware.
I used the same method of signing A System apk of taking META-INF and AndroidManifest.xml and inserting them into the new APK.
apktool version 1.5.3
phone:NOTE3 SPRINT N900P 4.4.2 STOCK FIRMWARE.
THANK YOU
Click to expand...
Click to collapse
you shoul install framework and systemui of kitkat and then compile and decompile it
Vaibhav Chauhan said:
you shoul install framework and systemui of kitkat and then compile and decompile it
Click to expand...
Click to collapse
thank you for your reply,but I have already tried that,I did install framework-res.apk and twframework-res.apk and SystemUI.apk
but it fails,tried this time with SecContacts_OSup.apk but it does disappear after replacing it too.
any idea?
motiam4 said:
thank you for your reply,but I have already tried that,I did install framework-res.apk and twframework-res.apk and SystemUI.apk
but it fails,tried this time with SecContacts_OSup.apk but it does disappear after replacing it too.
any idea?
Click to expand...
Click to collapse
which tool you are using??
Vaibhav Chauhan said:
which tool you are using??
Click to expand...
Click to collapse
APKTOOL Version 1.5.3
Ok.thank you.I tried to do it on linux and got it working.
thank you.
motiam4 said:
Ok.thank you.I tried to do it on linux and got it working.
thank you.
Click to expand...
Click to collapse
:good:

HELP! How to decomplie (smali), edit and recompile .APK (OREO)

I'm trying to decompile a system .APK file for editing from a stock Oreo rom (for Galaxy S7 G930F, extracted from ROM using Kitchen).
The problem is when I try to decompile the APK, I do not get the Smali-files, but if I deodex the file I can properly see and edit the smali-files.
However, when I try to recompile it I get alot of errors. Even if I don't edit the files just decompile/recompile. (odex'd and deodex'd ones)
I've tried several softwares including ApkTool, Advanced APK Tool, Android MultiTool etc.
How can I do this right? Have I missed something?
Windows 10 x64
JRE & JDK installed
Framework-res.apk installed in software (odex for odex, and deodex for deodex)
Thanks in advance!
try batch apktool also install other special frameworks if there are any ( like mediatek-res.apk or cyanogenmod-res.apk)
Trex2017 said:
try batch apktool also install other special frameworks if there are any ( like mediatek-res.apk or cyanogenmod-res.apk)
Click to expand...
Click to collapse
Thanks, I will try it later tonight! Do you know specifically if/what frameworks needed for Galaxy roms? I've only read about "Framework-res.apk" so that's the one I've been trying with.
mrd0pe said:
Thanks, I will try it later tonight! Do you know specifically if/what frameworks needed for Galaxy roms? I've only read about "Framework-res.apk" so that's the one I've been trying with.
Click to expand...
Click to collapse
open framework folder and check , touchwiz modding topics , tuts can also be a good place to find help

Categories

Resources