apktool issue - General Questions and Answers

Okay so here is my issue. im de-compiling and compiling fine with no errors. but when i push to the phone for instance SysemUI.apk i lose my status bar. i have all my frameworks installed and have used apktool's ranging from 1.3.0 -1.4.3.
Im not changing the apk etither just decompile , compile and push.
The final apk is generally bigger also.

Related

[Q] Modding Rosie.apk

Ok I'm trying to make Mods to the Rosie.apk. But everytime I load my Rosie.apk I continued FC on htc.sense.com, Even if I make no changes to the rosie it still does this...What I'm doing is.....
1) apktool d Rosie.apk
2) I make no changes and just recompile it
apktool b
I get no errors so It seems to build just fine
3)Then I sign the apk
java -jar signapk.jar testkey.x509.pem testkey.pk8 Rosie.apk Rosie2.apk
4)I put it in a flashable zip file(I know this isnt't the problem)
flash it and everything loads fine then nonstop FC
I am running Ubuntu if that makes a difference........ANyone got any Ideas
I know i was having issues similar to this, I think it depends on the rom you pulled rosie.apk from and it's dependancy's when you recompile? Virtuous is giving me fits in this area even without modding anything just decompile and recompile..
My issue is with com.htc.resources
Or is rosie.apk not a system app and dont need signing? I dont think you sign system apps
I do you have the right resources for apktool and I even tried flashing an unsigned version as well with no luck

[Theme] Red GB for 2.3.340 OTA

I am working on combining Draya's Red GB theme and stock OTA. I have run into trouble trying to make the 10% battery increments actually display the images. I was wondering if someone could offer assistance.
I have tried decompiling framework-res.apk with apk manager and recompiling it with the changes in stat_sys_battery.xml. Although for some reason when I recompile and install via update.zip I bootloop.
This update.zip currently works perfectly, although it only displays battery in increments of 20%.
Here is a link to the themes current update.zip. http://db.tt/LV6Y9i9
Sent from my DROIDX using Tapatalk
Are u recompiling as a system apk? If you try to recompile with just an apktool command for instance as if it
were an app, it wont recompile correctly.
Sorry if you already knew this, not trying to sound condescending in any way. Just ran into this same issue myself a while ago.
Sent from my DROIDX using XDA App
I actually didn't. I have just started trying to learn to do all if these modifications.
I have learned that I can do hex editing to change colors and change the .png's but I am still working on learning to compile my own .9.png's and trying to figure out how to decompile and recompile so that I can modify the xml in standard text vs. hex because I would have no idea how to add my own text to an xml while still in hex form and I believe I read somewhere that if you change the file to much you need to include a new resources file or something.
Do you have any directions in decompiling and recompiling system apk's so that they are editable?
The way I was trying was with apk manager 4.9 as a system apk I believe. I am thinking option 11 or option 9 if I remember right...
I had also switched the apktool version to 1.3.1 because of the issue in 1.3.2 that I read on the apktool page.
Sent from my DROIDX using Tapatalk

Framework-res and apktool errors?

I recently tried to de-compile and re-compile the framework-res.apk from an AOSP build but when I try to compile (even without modification to test if it was my fault of editing) right after I decompile, it still gives me a huge line of errors. The apk works just fine in my build but I cannot compile it after de-compiling it. Can I get apktool to ignore all errors and continue compiling or do I have to fix the errors in the apk file?
I looked over the line (119) and I did not find anything wrong, except that the line (and many lines after it) have the "%" symbol in them. Could this be causing the errors?
Thanks in advance

[Q] Need help themeing.......

This is my first attempt to theme my pico...
I have decompiled the systemui.apk of jaggy rom
replaced some status bar icons with the ones i wanted
and then recompiled it....
(I used apktool for these operations and offcourse after installing the necessary framework)
no errors till now...
but when i replace the old systemui.apk with the new one ..... the task bar just dissappeared
tried booting into recovery and fix permissions still no luck...
then i signed the apk(didn't sign earlier as i read signing was not necessary for system apk) and tried again still no luck....
but when the old apk was restored and the phone reboote and permissions fixed the status bar was restored (i mean the old state)
all i did was replace some status bar icons but when rebuilt the apk was about 300kb smaller
did this just to get the hang of themeing.....
i have attached the original and modified systemui.apk
can anyone enlighten me what went wrong...
is it the way i replaced the icons or the way i compiled and recompiled the apks....
....thank you in advance
Tried pushing using adb....
no luck
Thanx people I managed to do it without decompiling
Opened the apk using 7 zip and then replacing the necessary files.....
And it worked...
I guess this method is easier as it doesn't require much knowledge ..

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