Jump to content


- - - - -

Decompiling Jellybean apk's for Themeing?


  • Please log in to reply

#1 Detonation (OP)

Detonation

    Average Android

  • Members
  • 485 posts

Posted 28 June 2012 - 08:36 AM

Anyone have success decompiling any of the Jellybean apks (SystemUI, Framework-res, etc) for themeing? I tried with apktool but I just get errors. I did install the JB framework. Is it even possible yet, or do we need a new version of apktool?

#2 Schoat333

Schoat333

    Themer

  • 1,071 posts

Posted 28 June 2012 - 08:42 AM

I am able to decompile framework-res, but nothing else so far.

If you just want to edit images, make a copy of the apk, rename it to .zip, and then extract it. You can then edit non .9 images, and then use 7zip to drag them back into the original apk.

#3 Detonation (OP)

Detonation

    Average Android

  • Members
  • 485 posts

Posted 29 June 2012 - 05:10 AM

Bump. So is this just not possible yet? Anyone know why? Was really hoping to make a 1% battery mod for JB.

#4 Smcdo123

Smcdo123

    A Chosen One

  • Site Contributor
  • 783 posts

Posted 29 June 2012 - 06:12 AM

View PostDetonation, on 29 June 2012 - 05:10 AM, said:

Bump. So is this just not possible yet? Anyone know why? Was really hoping to make a 1% battery mod for JB.

Well vanirbean has 1% battery mods. So must be possible see. Win.

Sent from my Galaxy Nexus using RootzWiki

Attached Thumbnails

  • uploadfromtaptalk1340979153210.png

*AOKP "CrackFlashers Anonymous"
*Always Minimal
*My Deviant Art. Walls & Minimalism
http://smcdo123.deviantart.com/

#5 Schoat333

Schoat333

    Themer

  • 1,071 posts

Posted 29 June 2012 - 06:36 AM

It can be done by using an old ICS apk, 7zip, and a bit of hacking.

Heres what you need to do. (Make sure you have installed the JB framework-res.apk using "apktool if framework-res.apk")

1. Open both the JB and ICS apks in separate 7zip windows.
2. Drag the resources.arsc, AndroidManifest.Xml, and Res folder from the JB apk, into the ICS apk
3. decompile your modified ICS APK
4. make your changes
5. Recompile modified ICS apk
6 move whatever you changed back into the JB apk using 7zip.

Edited by Schoat333, 29 June 2012 - 06:42 AM.


#6 bouchigo

bouchigo

    Android Enthusiast

  • Members
  • 657 posts

Posted 29 June 2012 - 07:00 AM

View PostSchoat333, on 28 June 2012 - 08:42 AM, said:

I am able to decompile framework-res, but nothing else so far.

If you just want to edit images, make a copy of the apk, rename it to .zip, and then extract it. You can then edit non .9 images, and then use 7zip to drag them back into the original apk.

I was able to decompile and modify just fine.

I modified framework-res.apk and SystemUI.apk; added 1% and changed the nav bar, and centered the lockscreen:

Posted ImagePosted Image


I was also able to make mods to Launcher2.apk until I decided to use Nova Launcher because my go to Laucher (Apex Launcher) isn't working on jellybean, at least not for me.
Current Phone: SGS3 - LiquidSmooth v2.3.1 Nightly w/ latest ktoonsez kernel
Previous Phone: Galaxy Nexus - No more - Sold and shipped on 4-6-13
Tablet: Nexus 7 (16GB) - CM10.1 M3

#7 Detonation (OP)

Detonation

    Average Android

  • Members
  • 485 posts

Posted 29 June 2012 - 07:02 AM

Did you use the method posted by Schoat333 to get SystemUI to decompile?


Alternatively, would you mind sharing your mods? The only thing I'm really missing on JB is 1% battery and a dedicated menu button, which you've evidently both done.

Edited by Detonation, 29 June 2012 - 07:04 AM.


#8 bouchigo

bouchigo

    Android Enthusiast

  • Members
  • 657 posts

Posted 29 June 2012 - 07:07 AM

View PostDetonation, on 29 June 2012 - 07:02 AM, said:

Did you use the method posted by Schoat333 to get SystemUI to decompile?

No, that's too much work for me.....lol

I just downloaded the latest sdk and took the new aapt.exe file and placed it in the "other" folder in APK Manager/APK Multi-Tool. I then added framework-res.apk to apktool as Schoat333 said ("apktool if framework-res.apk").

That was it, decompile and compile with ease.

Edited by bouchigo, 29 June 2012 - 07:09 AM.

Current Phone: SGS3 - LiquidSmooth v2.3.1 Nightly w/ latest ktoonsez kernel
Previous Phone: Galaxy Nexus - No more - Sold and shipped on 4-6-13
Tablet: Nexus 7 (16GB) - CM10.1 M3

#9 Schoat333

Schoat333

    Themer

  • 1,071 posts

Posted 29 June 2012 - 07:10 AM

View Postbouchigo, on 29 June 2012 - 07:07 AM, said:

No, that's too much work for me.....lol

I just downloaded the latest sdk and took the new aapt.exe file and placed it in the "other" folder in APK Manager/APK Multi-Tool. I then added framework-res.apk to apktool as Schaot said ("apktool if framework-res.apk").

That was it, decompile and compile with ease.

Weird, I got the new aapt, but that doesn't work for me. What OS are you in? I'm using crappy XP on my work computer, so that may be why.

#10 bouchigo

bouchigo

    Android Enthusiast

  • Members
  • 657 posts

Posted 29 June 2012 - 07:20 AM

View PostSchoat333, on 29 June 2012 - 07:10 AM, said:

Weird, I got the new aapt, but that doesn't work for me. What OS are you in? I'm using crappy XP on my work computer, so that may be why.

I'm on Windows 7 64-bit.
Current Phone: SGS3 - LiquidSmooth v2.3.1 Nightly w/ latest ktoonsez kernel
Previous Phone: Galaxy Nexus - No more - Sold and shipped on 4-6-13
Tablet: Nexus 7 (16GB) - CM10.1 M3