Apk multitool problem - Android Q&A, Help & Troubleshooting

Greetings XDA, Im new here and i need some help regarding apk multi tool.. Ive searched the forums but i couldnt find any suitable answers
So I am trying to decompile the framework-res.apk and edit the styles.xml in values folder .. but everytime i compile it back and push it to my sytem/framework, and restart my phone bootloops..
this happens even if i donot mod anything in the apk and just decompile - recompile - push..
Any ideas ?
Thanks in advance

You have to sign the APK after you decompile!
Follow This Page for more instructions on how to sign APK's.
Sent from my GT-I9003 using xda premium

PlusAndroid said:
You have to sign the APK after you decompile!
Follow This Page for more instructions on how to sign APK's.
Sent from my GT-I9003 using xda premium
Click to expand...
Click to collapse
This is wrong. Never sign a system framework file. You only sign user apps and a very small number of system apps.
What changes are you making? For what OS?

zelendel said:
This is wrong. Never sign a system framework file. You only sign user apps and a very small number of system apps.
What changes are you making? For what OS?
Click to expand...
Click to collapse
ohhk! It happened to me as well and someone told me its because I haven't signed the APK.
Anyways, Thanks for correcting me

Try by making compression level to 0 and heap size to 512
This solved my problem though.
Also be sure that u don't get any errors while compiling the apk.
Hit thanks if helped

I can't even get it to compile!

Post ur error from log
Sent from my Micromax_A70 using Tapatalk 2 Beta-4

Related

Trying to Modify launcher2.apk super slim less then 500kb help

Ok not sure if this is the correct place to post so if its not op please move it.
Ok im trying to mod the launcher2.apk to remove default wallpapers and some homescreen widgets i have used apktool to decompile and i have removed wallpapers and widgets plus all references then i compile using apktool if i push the file to my system dir and reboot all works fine but the problem is if i add this new launcher2.apk to my custom oxygen rom then flash the phone boots up but launcher2.apk does not load im sure this is a sign problem. Does any one know how to solve this problem and what sign keys does the oxygen system apks use.
The reason im trying to do this is i dont use any default wallpapers and i can get the launcher2.apk from 4.68mb to less then 500kb i will share the apk after its done. Thanks in advance.
Did you try installing it as a normal app ?
Forever living in my Galaxy Ace using XDA App
Yes it just says application not installed.
Sent from my HTC Desire using Tapatalk
Any one?
Sent from my HTC Desire using Tapatalk
If you recompiled the app, try resigning it.
With what ?i tryed sign it with testkeys and platform and still does the same thing.
Please delete.
Sent from my chameleonized SGS2 using my brain.
I was under the impression that if you're going to make changes to an .apk file, you had to decompile the .apk and make your changes, then take the folders you changed and push it to the regular launcher2.apk instead of recompiling and using the recompiled .apk. Doing it that way keeps the original signature intact.
I could be completely wrong though, so I would appreciate it if someone could confirm or deny this.
Edit: Just realized this thread was from 2011... My bad.
U shud have just zipaligned and batch optimized lol
Sent from my PG86100 using xda app-developers app

Improperly compiled theme after compiling and installing (tmobile theme)

so i compiled my own cm7 theme..i have the apk and i signed it..but when i try to install it,i get "problem parsing package"....does anyone know how to fix this issue?? ive been searching high and low but i cant figure out how to fix this issue...thanks guys!
anyone???????
Mikekelso421 said:
so i compiled my own cm7 theme..i have the apk and i signed it..but when i try to install it,i get "problem parsing package"....does anyone know how to fix this issue?? ive been searching high and low but i cant figure out how to fix this issue...thanks guys!
Click to expand...
Click to collapse
The parsing package problem has nothing to do with the apk being signed. There's a problem with the compression method or how the compilation of the app. If there was an issue with the signing of the apk then it would just say app not installed.
Sent from my GT-I9100 using xda premium
Waddle said:
The parsing package problem has nothing to do with the apk being signed. There's a problem with the compression method or how the compilation of the app. If there was an issue with the signing of the apk then it would just say app not installed.
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
how would i go about fixing this problem??im at a standstill on this theme.cant even test it without installing.lol
also,thanks for the response
Mikekelso421 said:
how would i go about fixing this problem??im at a standstill on this theme.cant even test it without installing.lol
also,thanks for the response
Click to expand...
Click to collapse
Did you make this theme from scratch, or did you base it off an already existing one? Try recompiling the apk again and see if that works.
Sent from my SGH-I777 using xda premium
Waddle said:
Did you make this theme from scratch, or did you base it off an already existing one? Try recompiling the apk again and see if that works.
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
made it from scratch..(downloaded from source)..so i imported the source into eclipse and compiled using that..now the theme installs but im getting (this theme was improperly compiled.please contact the themes author) error. i removed the preview.png from the drawable-hdpi folder and just kept the preview.png in the drawable folder..but its still giving me the same error..just cant figure out why??
also,i read somewhere that the API minlevel but either be removed or adjusted to the right level for the OS your using (10 for GB i assume) but i cant find anywhere in the manifest for the API level...i cant think of any other reason for this error.
thanks for the help also!

How do I edit png files for 3rd party Android apk?

Hi
Sorry If I've posted in the wrong forum.
I'm new to Android.
I have a android apk which I installed on my Samsung Galaxy Ace 2.
I backed the app up so I could download the apk to my Windows PC.
I'd like to edit the .png files in it, I've followed a tutorial on here using the apktool, decompiled ok and recompiled it, but when I transfer it back to my phone to re install it I get a message saying the application cannot be installed.
Any help would be much appreciated.
Mark
You are most likely not signing the apk. Also some apks break when decompiled. This is something done by the developer on purpose
Wayne Tech S-III
Copy it to /data/apps
Then go to the file properties and tick all the rwx permissions, then reboot.
That pretty "Thanks" button's waiting for U, in case I helped
∫εทт ƒя๑๓ α ∫нαкεท บρ нтς ∫εทรαтï๑ท жξ บรïทg... พнαтενεя! Dεяร?!
How do i sign the apk zeiendel? I'll have a go at your suggestion ashkan and let you know.
Sent from my GT-I8160 using xda app-developers app
hypuk said:
How do i sign the apk zeiendel? I'll have a go at your suggestion ashkan and let you know.
Sent from my GT-I8160 using xda app-developers app
Click to expand...
Click to collapse
Hi zeiendel
It worked I've signed the apk and installed it to my device.
Thanks for your help.
Mark
hypuk said:
Hi zeiendel
It worked I've signed the apk and installed it to my device.
Thanks for your help.
Mark
Click to expand...
Click to collapse
No problem. I figured you would figure out how to sign it as there are hundreds of ways to do it and not all work for everyone.
Issue resolved. Thread Closed

[Q] *Strange* Error when recompiling -none system apk-

Hi Guys ,
I've a Strange problem when i recompile
I'm getting this error when i recompile -without modification- :
http://pastebin.com/S8Td4QxV
Then i've searched about the error and found some answer that said delete public.xml , i do that then i've got this error :
http://pastebin.com/tRechubZ
Then i've searched about the error and found some answer that said add @+ before drawable in xml in drawable , i do that then the error message has gone and i recompiled and signed apk without errors but after install apk in device i got force close , so what's problem exactly
BTW i've tired recompiling other apks without any problems
apk in Attach
How i do fix that please
MPooZD said:
How i do fix that please
Click to expand...
Click to collapse
Hmm seems weird.. It's like it needs certain framework to pull the correct public ids.. is this a system app? Or what rom did you get it from? If you pulled it from a rom..try installing that roms frameworks in apk tool. .then decompile it..
If not..pull a log and see what errors it's throwing at you when it fcs. .If you want post it here..and I'll see if I can help you at all
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
Hmm seems weird.. It's like it needs certain framework to pull the correct public ids.. is this a system app? Or what rom did you get it from? If you pulled it from a rom..try installing that roms frameworks in apk tool. .then decompile it..
If not..pull a log and see what errors it's throwing at you when it fcs. .If you want post it here..and I'll see if I can help you at all
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Thanks for respond
it's none system app
[quote name="lacoursiere18" post=51624609]Hmm seems weird.. It's like it needs certain framework to pull the correct public ids.. is this a system app? Or what rom did you get it from? If you pulled it from a rom..try installing that roms frameworks in apk tool. .then decompile it..
If not..pull a log and see what errors it's throwing at you when it fcs. .If you want post it here..and I'll see if I can help you at all
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Thanks for respond
it's none system app[/QUOTE]
Looks like it is not installing correctly.. Also what Android version are you on? Does this app support it?
It is also requesting to write to internal storage which I know something in 4.4 have changed with that.
? Why are you decompiling it?
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
Looks like it is not installing correctly.. Also what Android version are you on? Does this app support it?
It is also requesting to write to internal storage which I know something in 4.4 have changed with that.
? Why are you decompiling it?
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
i'm on 4.4.2 , yes support and works fine
But I got lots of error when i tried to decompile it without modified or changes !!
I'd change colors in xml
BTW all apps i had decompiled working fine , but had an error in this one
UP UP
BumpUp!
Is there any solutions

Settings Apk Recompiling error pls. help

I decompiled settings.apk of Micromax A110 using apktool.I installed framework-res.I did not even touch any file of the decompiled directory.i recompiled it.and it is showing the following error.I cannot even add my name in the ROM i created and it is my first rom .is it any problem with apktool or java.i can get the output apk and it donot get installed in the rom.There is no settings in the app drawer.You people are awesome rom developers .pls help me.i just want to add this. developer name sabeeh. . Thanks in advance.
sabeeh102 said:
I decompiled settings.apk of Micromax A110 using apktool.I installed framework-res.I did not even touch any file of the decompiled directory.i recompiled it.and it is showing the following error.I cannot even add my name in the ROM i created and it is my first rom .is it any problem with apktool or java.i can get the output apk and it donot get installed in the rom.There is no settings in the app drawer.You people are awesome rom developers .pls help me.i just want to add this. developer name sabeeh. . Thanks in advance.
Click to expand...
Click to collapse
have you installed proper deodexed framework and systemui apk?
I installed the frameworks for framework-res ,system ui,and even mediatek-res but no use. plss. help sir
sabeeh102 said:
I installed the frameworks for framework-res ,system ui,and even mediatek-res but no use. plss. help sir
Click to expand...
Click to collapse
These are just warnings the apk will compile fine...
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
These are just warnings the apk will compile fine...
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
I would say the same thing, with a side note that while warnings are often dismissed because you can still compile and it MAY work, they are there for a reason. In this case, as far as I see, there are missing translations. It may or may not be pertinent, but it should be dismissed upon inspection, not upon realizing that "it compiles".

Categories

Resources