Decompiling error of some apks - General Questions and Answers

I'm using apktool quite some time. But can't figure out why I'm always unable to decompile some app like Nova launcher, Solid Explorer and most of play store app like them. The errors don't even leave any trace on log file. They just stopped decompile. So far, I've successfully decompiled framework-res, system apks & Whatsapp without any error. I'm using latest apktool & my device's framework-res & system-UI already added. By the way, I'm adding a little apk which I failed to decompile. Thanks.

Related

[Q] APKMultiTool and system APK's

Hello,
I'm trying to change a system application on my phone using the APKMultiTool utility but am having problems. The resulting APK will crash my phone which complains about 1,000 permissions are not understood: Unknown permission android.permission...
Steps I've taken.
- Downloaded APKMultiTool
- (9) De-compiled the system framework-res.apk
- Edited the arrays.xml file
- (10) Compiled the APK
- (11) Signed the APK
- Pushed the APK back to the device
The result is an unstable system which will just crash often. Does anyone have the correct procedure for editing system apk's using the new APKMultiTool?
1.Never sign a system apk
2. Use APK manager not apk multitool
3.After compiling, open the apk using winrar and take out resources.arsc and put it back again but with compression level set to store
And then push it to phone.
you must not compiled framework-res.apk
answer Yes to both questions
delete resources.arsc in the keep folder and done

[Q] question about (de)compile...

I'm getting this issue:
I got Settings.apk and framework.apk from a rom, then i opened apktool and
1) imported fw: apktool if framework.apk
2) decompiled apk: apktool d Settings.apk
3)edited a string in a xml
4) rebuilt all: apktool b Settings Settings.apk
5)pushed it into system/app
6) fix permissions and reboot.
Settings now should work, but it doesnt. Can somebody tell me where i do a mistake?
Thank you
(I used win8, but i could use macos or ubuntu as well)
sign it first
ej8989 said:
sign it first
Click to expand...
Click to collapse
I did it. same result. maybe the application I used is not good (Auto-Sign v0.65). what application i've to use?
I didnt write it before, however the rom is on 4.2.1 (cyanogen 10.1)
put your re-complied apk to your phone's sd card and use zipsigner2 from playstore to sign it.
ej8989 said:
put your re-complied apk to your phone's sd card and use zipsigner2 from playstore to sign it.
Click to expand...
Click to collapse
Nothing. Maybe this is not good for 4.2.1? (I've used it lots of times with 4.1)
Well, apktool is using smali/baksmali to compile/decompile classes.dex/apk_name.odex file.
The problem can occur when you use different baksmali version when you decompile and also not the right version to compile (as the system expects it to be). You can also experience issues if the apk is not zipaligned properly (check down who to do that)
apktool has the smali/baksmali code inside it so you will need to get the newest version for it for JB for example.
You can check why the status bar is not there when you monitor the logcat and look for DEX related logs in the beginning.
You can also use smali/baksmali on your own: http://code.google.com/p/smali/wiki/DeodexInstructions
and just place the generated classes.dex in the apk
then zipalign -f 4 filein.apk fileout.apk (http://developer.android.com/tools/help/zipalign.html)
then push back fileout.apk (sytemui.apk in your case)
Sent from my Galaxy Nexus using xda premium

[Q] how to decompile Non-System Apks ?

When i am trying to decompile non-system apks like holo launcher it gives me error ...........
how to decompile any apk from the market without errors ?

[Q] Help compilling and decompiling error

Hello everybody i tried multi apktool to decompile apks but when i recompile those apps and try to install app on my phone its shows app not installed. Even when i don'T EDIT any file in the app. Please give me simple and best way to edit apk files.
Thanks.!!!

Decompiling CM12S APK Files

I am having some issues getting CM12S apk files decompiled. I am a pretty experienced when it comes to this kind of stuff but for whatever reason I cannot get it to properly function.
I decompile the Settings.apk file from CM12S and all goes well and all, but when I push it to the device it just crashes immediately and displays the generic android icon. It is not the modifications I have done because I have tested just decompiling and recompiling the apk to see if it would work and no luck :/

Categories

Resources