[Q] Decompiled/Recompiled apk using APKtool - Galaxy S II Q&A, Help & Troubleshooting

I'm trying to decompile the android gingerbred keyboard so I can make a custom layout. I used apktool to decompile and recompile it, and got no errors. When I tried to install it onto my phone the apk manager app simply said "application not installed" I tried signing it with Android Commander, and no dice. How can I get a recompiled app from apktool to install successfully on my phone?

System apps must not be (re-)signed!
Assuming you're talking about a deodexed firmware:
Just push it back via adb after you modified it. Don't forget to check for the right owner and permission settings. Clear caches and reboot the device and it should work

Related

[Q] Decompiling and Recompiling an Email.apk?

Hi,
I'm attempting to decompile and recompile the Email.apk application on
MIUI 1.11.18 on Samsung Galaxy SII
This is the method I am using:
1) Obtain original Email.apk from phone using root explorer
2) use apktool to extract it
3) make minor changes
4) recompile using apktool
5) sign apk using signapk
6) delete email.apk from /system/apps and replace with above copy
The application installs correctly, however when I launch it, it FCs. I thought it may be something wrong with what I was modifying so I followed the above process again but missed out step 3 (so as to only decompile and recompile without changes), however I still got exactly the same issue.
Log file says:
shortMsg: java.lang.RuntimeException
longMsg: java.lang.RuntimeException: Binary XML file line #15: You must supply a layout_width attribute
Any ideas what I'm doing wrong?
Cheers,
For anyone else that might get this in the future, I seem to have resolved the issue by using the -r flag in apktool when decompiling.

Replacing png in apk

Hi everyone,
From my understanding, if we want to change the pngs in an apk, we can simply open it with 7zip, then replace the pngs, it's done.
I took EventStreamPluginCallLog.apk from arc s which is updated to ICS.
The apk can be installed in xperia s and it is working fine.
However, when I change the png named icon in res > drawable-hdpi > icon.png
The apk can no longer be installed.
So I go with decompiling and recompiling the apk using apktool, no error shown but I still can't install it
Any idea? Thanks
did you sign it after recompiling?
System apps don't need to be signed. What i did for system apps is:
Decompile app
Replace png
Recompile app
Use TickleMyAndroid -> Prepare files for pushing.
realfelix said:
did you sign it after recompiling?
Click to expand...
Click to collapse
I thought the same even it says no need for system apk, I still do it and get the same problem, can't install
Felimenta97 said:
System apps don't need to be signed. What i did for system apps is:
Decompile app
Replace png
Recompile app
Use TickleMyAndroid -> Prepare files for pushing.
Click to expand...
Click to collapse
I tried everything I know. Apk Multi Tool, simply apktool only, direct replace PNG with 7zip (compression changed to deflate), direct replace with winrar (compression method retained as store), it just doesn't want to install.
I have tried TickyMyAndroid, I am not sure if I done thing correctly but I see no error when recompiling yet can't be installed. My goodness. Time to forget about this stuff

Cannot install apps by copying apk's to /app

Hi
Ever since I've upgraded to new Sammy JB, I cannot simply install any app by CWM zip or manually by copying the apk to /data/app or /system/app
If I copy the apk and restart it won't install. If I use root explorer and go to the apk location (i.e /data/app/) I see it has a generic android icon. If I click on it and select install, It the parse error.. However, if I copy or move this apk to anywhere on the sdcard, the original apk's icon will restore and i can now install it by clicking it... I tried changing permissions but it did not help... I tried full factory reset and installing another JB based rom (LS8 or LSD WanamLite or NeatROM) but I always get the same problem. Placing the apk on /preload/symlink/app did not work either...
Any ideas what could be the problem?
Thanks

[Q] Editing Apk with Apktool

I've edited a few of my apks with apktool and I have one that has me stumped. The apk is a paid apk not obtained through the market. To install it, you have to download the installer and then the apk. I can edit the apk but that doesn't help. It installs but without running the installer first, it doesn't work. It the apk is installed with you run the installer, it makes you remove the "old" version and install "the new" version. Is there any way to get the installer to install the version I edited?

[Q] How to decompile and compile apk file on Mac os

I'm using Apk manager tool but can't decompile system apk file like: lock screen, SemMusic... They allways get error when i try decompile them.
How to fix it? And how to install framework-res.apk by apk manager? Thanks for reply.

Categories

Resources