Compile and Decompile SystemUI (Carbon ROM 4.4.4) - Galaxy S III Mini Q&A, Help & Troubleshooting

I'm trying to decompile the SystemUI.apk by TOOLKIT and APK Multitool or similar and I never can decompile without problems.
The issues start when I put the command (toolkit if framework-res.apk), here the program show me a lot of errors during the action.
Specifications:
- Windows 8.1 Pro
- JAVA (latest version)
- JAVA SE (latest version) = JDK
- Android SDK (latest verision)
- SGS3 mini (GT-i8190)
- Carbon ROM 4.4.4 (maclaw) - previous version from this new latest version

CrashOverride93 said:
I'm trying to decompile the SystemUI.apk by TOOLKIT and APK Multitool or similar and I never can decompile without problems.
The issues start when I put the command (toolkit if framework-res.apk), here the program show me a lot of errors during the action.
Specifications:
- Windows 8.1 Pro
- JAVA (latest version)
- JAVA SE (latest version) = JDK
- Android SDK (latest verision)
- SGS3 mini (GT-i8190)
- Carbon ROM 4.4.4 (maclaw) - previous version from this new latest version
Click to expand...
Click to collapse
for decompiling apk´s from KitKat Roms you need a special apktool. Those for JB and ICS don´t work.

moonryder said:
for decompiling apk´s from KitKat Roms you need a special apktool. Those for JB and ICS don´t work.
Click to expand...
Click to collapse
And.......... Could you tell me about which version if apktool is needed?

OK, thank you for your help...
I used Advanced ApkTool v2.0.0 based on the original APKTool 2.0.0 beta 9 and now I can decompile and compile with out any problems the SystemUI.apk (I tried with other APKs, like a simple program, no APKs of system and Advance ApkTool v2.0.0 works fine).
But the problem that I have now is when I put it again on the folder of the system to replace it by the original, with a little modifcation.
Always I get an error (SystemUI crash) and I have to replace this one by the original APK (without modifications).
I don't know why I can't install without problems this APK...
¿What I want to change on SystemUI of Carbon ROM 4.4.4?
- SystemUI.apk > res > drawable-hdpi > "stat_sys_signal_flightmode.png" (929 bytes) / (29x27 pixels)
I think these PNG file is used (I don't know, please let me if I'm wrong about it) by the icon figuring on the top of the nav-bar (white icon), when you enable the flight mode on (Settings > More > "Flight Mode").
¿Which files I used during the proccess?
- framework-res.apk (/system/framework)
- SystemUI.apk (/system/priv-app)
¿Which applications on Windows OS I used to sign or try to signing the SystemUI's APK?
- SignAPK
- Advanced ApkTool v2.0.0
- Without signing the APK
¿Any error during the previous and after compiling of decompiling of the APK?
- Nothing (all without errors)
¿Anything else?
I have installed on my PC:
- Windows 8.1 Pro (X86)
- JAVA (version 8 update 11)
- JAVA SE (jdk-8u11-windows-i586) = JDK
- JAVA SE (jre-8u11-windows-i586) = JRK
- Android SDK (22.6.2)
Other:
- SGS3 mini (GT-i8190)
- Carbon ROM 4.4.4 (maclaw) - carbon4.4_golden.nova.20140714

Here is link of "framework-res.apk" / "SystemUI.apk" / "PNG":
http://uloz.to/xi5t2qU9/crashoverride93-xdamember-rar
* I posted again it here, because I think I can't send you any message (PM), I don't what happends...

CrashOverride93 said:
Here is link of "framework-res.apk" / "SystemUI.apk" / "PNG":
http://uloz.to/xi5t2qU9/crashoverride93-xdamember-rar
* I posted again it here, because I think I can't send you any message (PM), I don't what happends...
Click to expand...
Click to collapse
Flash it in recovery (make a nandroid backup before - always recommended )
SystemUi_new
HTH
m.

moonryder said:
Flash it in recovery (make a nandroid backup before - always recommended )
SystemUi_new
HTH
m.
Click to expand...
Click to collapse
I flashed it and now the navbar doesn't appear anymore. I had to replace by recovery the original SystemUI.

CrashOverride93 said:
I flashed it and now the navbar doesn't appear anymore. I had to replace by recovery the original SystemUI.
Click to expand...
Click to collapse
strange, i only change the icon in the SystemUI.
extract SystemUI from zip and replace it - maybe updater-script of zip file has an error...

moonryder said:
strange, i only change the icon in the SystemUI.
Click to expand...
Click to collapse
Could you show me (writing) which is the directory where you changed the image?

CrashOverride93 said:
Could you show me (writing) which is the directory where you changed the image?
Click to expand...
Click to collapse
res > drawable-hdpi > "stat_sys_signal_flightmode.png" in SystemUI.apk

The script it's CORRECT, I saw.
I'm trying to edit in 8 bits and save as the same. Because this saved as 32 bits, maybe these was the problem I don't know...
I'm trying too, to modify the same image but now on CyanogenMod 4.4.4 (latest version).
-------------------
OK XD the proccess finished now.
So I can't modify this image without these problem that I tall you before, about that I cannot see the navbar on the top.
The issue happends on Carbon and CM 4.4.4
Please, if someone can help me!!!!

Or I need to change something else in framework-res.apk, because looking inside images folders of freamwork-res I founf anothers airplane mode icons.
Anyone can help me!!!???

Related

Gingerbread theme for froyo

This is a gingerbread framework for froyo to reproduce -work in Fresh Froyo and CM 6, took it from krispy.
The different from froyo is the animation after sliding the unlock screen and the pop up notification.
I have try it, and this is nice just for refreshing our froyo before the source is come out.
This is not an update package.
How to apply it ?
First post is intend for releaser, but i'll give you an update. This update is the one that installed on my vogue but not include the fonts. Only for Fresh Froyo based off -ie incubus/kyle build (i'm never make a theme for CM )
How to make it by yourself ?
simply open your framework ( /system/framework/framework-res.apk ) with winrar or 7zip ( dont extract it ).
Then extract my 1st attachment on 1st post, add it to your framework via winrar or 7zip.
Remember to follow the structure of its folder.
Don't worry! I already did make a theme for CM lol. I just pulled the animations and it looks great with CM.
lol, i know that CM guys is better than me. goodluck with the new rls.
Thank you guy. It looks very good
vellowax said:
First post is intend for releaser, but i'll give you an update. This update is the one that installed on my vogue but not include the fonts. Only for Fresh Froyo based off -ie incubus/kyle build (i'm never make a theme for CM )
How to make it by yourself ?
simply open your framework ( /system/framework/framework-res.apk ) with winrar or 7zip ( dont extract it ).
Then extract my 1st attachment on 1st post, add it to your framework via winrar or 7zip.
Remember to follow the structure of its folder.
Click to expand...
Click to collapse
vellowax said:
First post is intend for releaser, but i'll give you an update. This update is the one that installed on my vogue but not include the fonts. Only for Fresh Froyo based off -ie incubus/kyle build (i'm never make a theme for CM )
How to make it by yourself ?
simply open your framework ( /system/framework/framework-res.apk ) with winrar or 7zip ( dont extract it ).
Then extract my 1st attachment on 1st post, add it to your framework via winrar or 7zip.
Remember to follow the structure of its folder.
Click to expand...
Click to collapse
This update works quite well on any Froyo
Very cool animations and looks - Thanks!
I patched my framework and then reinstalled it via ADB shell (using root file manager caused a boot loop for some reason)
This theme looks fantastic, and I love the animations. My only problem is that I can no longer see my clock on the notification bar. I'm assuming it's because the numbers are still black therefor match the background.
Any way to change this? I can't make sense of the XML files, they don't look like anything I've ever seen before.
im guessing this doesnt work with odex'ed builds?
leoleotheiii said:
im guessing this doesnt work with odex'ed builds?
Click to expand...
Click to collapse
themes will never work on odex'd builds, its one of the few drawbacks to the odexing process

Need help by (de)compiling frameworkr-res.apk

hello
i cant figure out how to decompile and compile framework-res.apk from free optimus project nightly 6
i tried many versions of apktool and apkmanager some of them works if i change the version for compiling and decompiling and i have one version which is extra for ics and this works without changing
but if i include a framework-res.apk in the rom.zip which is successfully decompiled and compiled (without errors) the phone gets into a bootloop.
can anybody teach me how to do this correctly?
i already have tried to sign the apk and repackaged the whole rom
Müllname said:
hello
i cant figure out how to decompile and compile framework-res.apk from free optimus project nightly 6
i tried many versions of apktool and apkmanager some of them works if i change the version for compiling and decompiling and i have one version which is extra for ics and this works without changing
but if i include a framework-res.apk in the rom.zip which is successfully decompiled and compiled (without errors) the phone gets into a bootloop.
can anybody teach me how to do this correctly?
i already have tried to sign the apk and repackaged the whole rom
Click to expand...
Click to collapse
Means you are missing a software.
And please post in the appropriate category.
THANK ME
CM10 P970 - SouLMoD - TD
SoulExertz said:
Means you are missing a software.
And please post in the appropriate category.
THANK ME
CM10 P970 - SouLMoD - TD
Click to expand...
Click to collapse
if i'm missing any software apktool won't compile without errors or it won't finally start cause it checks all needed sources before starting.
which category do u think is right? q&a - this is not just a question, there's an simple answer 4. dev - i haven't developed anything and want to publish it - theming apps - nothing to do with this.. :cyclops:

[how to]stock radio,check box in all apps

after i install some apps like Andriod tweaker,pimp my rom and ... i notice that radio button and check box are stock andriod version so today i want change them to sony stock one like below screenshot sry for bad English:silly:
you need apk tool for decompile and recompiling
Lets do it:
decopmile framework-res.apk from framwork folder in system and go to:res/drawableand find all of XML that begin with semc_ like semc_bg_new.xml and copy them to other folder in you PC(not in framework-res.apk) so delete semc_ from all xml's(Except:semc_scrubber_x_x_x.xml )and replace them to drawable folder. After recopiling flash them to your phone(XV.XTX.XT)
befor flashing backup your files
press thanks
Behnamrend said:
after i install some apps like Andriod tweaker,pimp my rom and ... i notice that radio button and check box are stock andriod version so today i want change them to sony stock one like below screenshot sry for bad English:silly:
you need apk tool for decompile and recompiling
Lets do it:
decopmile framework-res.apk from framwork folder in system and go to:res/drawableand find all of XML that begin with semc_ like semc_bg_new.xml and copy them to other folder in you PC(not in framework-res.apk) so delete semc_ from all xml's(Except:semc_scrubber_x_x_x.xml )and replace them to drawable folder. before recopiling flash them to your phone(XV.XTX.XT)
After flashing backup your files
press thanks
Click to expand...
Click to collapse
Ok, thanks mate.
If you notice remarkable improvements using these tweaks, perharps could you create a new thread to share your experience.
nreuge said:
Ok, thanks mate.
If you notice remarkable improvements using these tweaks, perharps could you create a new thread to share your experience.
Click to expand...
Click to collapse
yep.but not this time.LOL

[[Guide]] Apktool Mobile (Setup/Decompile-Recompile/Theme/Sign)

Yo guys! Here I come up with a brief tutorial for using Apktool Mobile! Let's begin!
Requirements:
1.A rooted device
2.Apktool 4.4 : https://storage.googleapis.com/goog.../code.google.com/apktool/apktool4.4_armhf.zip
3.A deodexed app of your phone.
How to deodex? Watch my video tutorial here: https://www.youtube.com/watch?v=n0sfERSqLgA
4.Root explorer and Busybox
5.Brain.apk
6.Patience.jar
How to setup apktool?
1.) Unzip apktool4.4_armhf.zip using root explorer.
2.) Navigate to sdcard0/speedsoftware/extracted/apktool4.4_armhf/apktool folder and install apktool 4.4
3.) Open apktool app,grant root access. Now goto settings and select apktool version 1.5.2. Come back.
4.) Navigate to storage/sdcard0/speedsoftware/apktool4.4armhf folder.
5.) Long press on apktool folder and select Set as apktool data folder.
6.) Navigate to system/framework
7.) Click on framework-res.apk and select import as framework.
8.) In the same folder find twframework-res.apk(for samsung devices) or mediatek-res.apk, click on it->import as framework
9.) Now navigate to system/app, find systemui.apk->click on it and select
10.) Import as framework.
11.) Done.
How to theme SystemUI?
1.) Using root explorer, create a folder named 'A' in apktool folder.
2.) Copy SystemUI.apk to that folder.
3.) Open apktool app, navigate to that A folder, click on SystemUI.apk and select decompile all. Wait till it gets decompiled.
4.) After it gets decompiled, you will get a folder named SystemUI_src
5.) Now minimize apktool, go to root explorer, navigate to SystemUI_src folder, and do any type of modifications you want.
For example, colour the battery icons using Picsay Pro and save with the original name.
6.) After you are done, open apktool app, click on SystemUI_src folder, recompile. Wait till it gets recompiled. Now you will get an app named SystemUI_src.apk. That's your modded apk.
How to Sign SystemUI/Any System app?
1.) Using root explorer, goto A folder, and extract SystemUI.apk and SystemUI_src.apk one by one.
2.) Now navigate to sdcard0/speedsoftware/extracted/SystemUI folder.
3.) Copy Androimanifest.xml and Meta-inf folder from there. Press back and open SystemUI_src folder. Paste those two files there. Click replace when you see the popup.
4.) Come back. Long press on SystemUI_src folder and select zip this folder. Then select goto zip once its finished. Rename the SystemUI_src.zip to SystemUI.apk.
5.) Done. Now you can your push own modified UI to system/app!
Good luck!
Regards,
Aniruddha B.Pathak.
HIT THANKS IF I HELPED YOU!! :laugh:
Thanks to @Ibuprophen for providing me the updated link to apktool.
Nice guide
KeeP it up ..
Thanks for the guide ...... I have apk tool 4.6 can i use it in same way???
arun.negi004 said:
KeeP it up ..
Thanks for the guide ...... I have apk tool 4.6 can i use it in same way???
Click to expand...
Click to collapse
Thanks for the compliment
Of course you can but I personally recommend 4.4 as it has more options is quite faster
Still go ahead with 4.6 :angel:
Ok thanks BRO
Aniruddha_Pathak said:
Thanks for the compliment
Of course you can but I personally recommend 4.4 as it has more options is quite faster
Still go ahead with 4.6 :angel:
Click to expand...
Click to collapse
Ok i also have 4.4 version :3
But why this step secting apk tool version 1.5.2
Ahh...thats for smali
Apktool when set to 2.0 gives errors sometimes while recompiling if you edit smali files hence, set it to 1.5.2 so that you won't face any problem
Thanks...
Aniruddha_Pathak said:
Apktool when set to 2.0 gives errors sometimes while recompiling if you edit smali files hence, set it to 1.5.2 so that you won't face any problem
Click to expand...
Click to collapse
Ok thanks BRO for help..
I m getting this error while recompiling system ui..
[Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Click to expand...
Click to collapse
---------- Post added at 08:27 AM ---------- Previous post was at 08:17 AM ----------
Does it needs system deodexed?
Follow the guide again
Setup apktool again, then follow the guide carefully
Hi! I'm on a rooted kk tablet running ApkTool mobile v5.
Is this version stable and bugfree? or should I install an older one (e.g. v4.4)
An other question,what should I do to have a signed and/or working app after:
Decompiling>>Adding files>> ??
Because when I add files to the apk and try to compile, errors, errors,...errors!!
Older version would work faster
Wolf Tatoo said:
Hi! I'm on a rooted kk tablet running ApkTool mobile v5.
Is this version stable and bugfree? or should I install an older one (e.g. v4.4)
An other question,what should I do to have a signed and/or working app after:
Decompiling>>Adding files>> ??
Because when I add files to the apk and try to compile, errors, errors,...errors!!
Click to expand...
Click to collapse
1. I would recommend older version of apktool as it would work faster on your tab.
2. Install busybox if its not already installed.
3. If you are replacing a png, then keep in mind that you must replace those pngs with "SAME NAME" as they were before in the SystemUI.
4. Donot touch .9.pngs if you don't know how to play with them.
Aniruddha_Pathak said:
1. I would recommend older version of apktool as it would work faster on your tab.
2. Install busybox if its not already installed.
3. If you are replacing a png, then keep in mind that you must replace those pngs with "SAME NAME" as they were before in the SystemUI.
4. Donot touch .9.pngs if you don't know how to play with them.
Click to expand...
Click to collapse
Thanks for replying.
I already know how to replace pngs inside an apk,and I know that .9.PNG are not. png. But what I can't do is to successfully compile and sign the app after adding-not just replacing-new files to the existing ones inside_let's say package/res/drawable_apk.
Umm...if you want to ADD pngs, then you need to make some changes in xmls, otherwise it won't recompile
Aniruddha_Pathak said:
Umm...if you want to ADD pngs, then you need to make some changes in xmls, otherwise it won't recompile
Click to expand...
Click to collapse
Yes I know, but which ones should I modify?
How about editing xml's using phone, what tool to use?
ApkTool v4.8 Mod (Professional)
by Stewe, full creds to him
Mod Info:
♣ Added ApkTool v2.0.0 RC4.
♣ Added Smali/Baksmali v2.0.5.
♣ Added New Icons.
♣ Apk + Data.
http://www34.zippyshare.com/v/mVx5n21p/file.html
Wolf Tatoo said:
Yes I know, but which ones should I modify?
Click to expand...
Click to collapse
Search around XDA for the guides, you may find one
Notepad++
datsoy said:
How about editing xml's using phone, what tool to use?
Click to expand...
Click to collapse
I use Notepad++, which is a great tool
Link: https://code.google.com/p/openintents/downloads/detail?name=Notepad-1.4.0.7.apk
Thanks for sharing
berryman13 said:
ApkTool v4.8 Mod (Professional)
by Stewe, full creds to him
Mod Info:
Added ApkTool v2.0.0 RC4.
Added Smali/Baksmali v2.0.5.
Added New Icons.
Apk + Data.
http://www34.zippyshare.com/v/mVx5n21p/file.html
Click to expand...
Click to collapse
Thanks for sharing it sir but I personally has used all versions of apktool, from 4.1 to 5.0 and I find 4.4 more useful
Still, thanks for sharing the link, again
Are there any tutorials on how to change the status bar icons (sounds, vibrate, wifi,signal)?
Thanks in advance!
Should I make one?
kushpancake said:
Are there any tutorials on how to change the status bar icons (sounds, vibrate, wifi,signal)?
Thanks in advance!
Click to expand...
Click to collapse
Should I make a guide on it? Or should I tell you here?

[Guide][Xhdpi][4.0+]Xperia switch animation

Hi friends I want to share my new work
Yes its xperia switch animation for 4.0+
After searching in xperia framework after lots of errors in xmls and changing codes hex color values im finally able to port this mod so let's begin
Tools you need
Your framework-res.apk
Apktool
Text editor
My resource file
1) Decompile your framework
2) replace and merge my resources in your framework
3)recompile your framework
Download
http://www89.zippyshare.com/v/VCxIcTIP/file.html
Screenshots
http://imgur.com/TAxujjR
http://imgur.com/FQaIoXf
http://imgur.com/BYKFVmT
http://imgur.com/uqaITFW
Credits
Google
Sony
Apktool for android
Jota+
Axel
And me @akashpillai
Don't forget to hit thanks button
akashpillai said:
Hi friends I want to share my new work
Yes its xperia switch animation for 4.0+
After searching in xperia framework after lots of errors in xmls and changing codes hex color values im finally able to port this mod so let's begin
Tools you need
Your framework-res.apk
Apktool
Text editor
My resource file
1) Decompile your framework
2) replace and merge my resources in your framework
3)recompile your framework
Download
http://www89.zippyshare.com/v/VCxIcTIP/file.html
Screenshots
http://imgur.com/TAxujjR
http://imgur.com/FQaIoXf
http://imgur.com/BYKFVmT
http://imgur.com/uqaITFW
Credits
Google
Sony
Apktool for android
Jota+
Axel
And me @akashpillai
Don't forget to hit thanks button
Click to expand...
Click to collapse
where is the ss sir ?
eboybasit said:
where is the ss sir ?
Click to expand...
Click to collapse
See post again you can find it easily They are imgur links

Categories

Resources