[Guide] Android Theming and Porting UI apps - Android General

[Guide] Porting UI Apks
This is a small tutorial showing about porting UI Apps (Theming)
Necessary tools
-Apktool
-Copy-Paste Knowledge
-Root Explorer
-A little respect
Its very easy no need of development skills...
So lets start
Porting SystemUI.apk
Of a rom to another..
At first decompile ur Stock Systemui.apk and custom Systemui.apk which u wanna port.
Now find the folder in custom SystemUI.apk name "res" then open it and search for "drawable-hdpi" open it and you will see a lot of png image replace all them to your stock systemui.apk! If you find any xml file then don't copy them. Then recompile the modded stock SystemUI.apk and replace with original one by root explorer..
Porting framework-res.apk
Your device must be of the same resolution with the custom framework-res device (ex: qhd>qhd) .... If not then u may face dpi bugs.
decompile both stock and custom framework-res.apk.. Same as before find "res" open and find "drawable-hdpi" copy all the png to ur stock framework.. don't copy any xmls.. and recompile the modded stock framework-res.apk and replace with ur original by root explorer..
Written By - Snigdho Hasan
Don't forget to-
HIT A THANKS IF I HAVE HELPED YOU!

Help
Snigdho said:
[Guide] Porting UI Apks
This is a small tutorial showing about porting UI Apps (Theming)
Necessary tools
-Apktool
-Copy-Paste Knowledge
-Root Explorer
-A little respect
Its very easy no need of development skills...
So lets start
Porting SystemUI.apk
Of a rom to another..
At first decompile ur Stock Systemui.apk and custom Systemui.apk which u wanna port.
Now find the folder in custom SystemUI.apk name "res" then open it and search for "drawable-hdpi" open it and you will see a lot of png image replace all them to your stock systemui.apk! If you find any xml file then don't copy them. Then recompile the modded stock SystemUI.apk and replace with original one by root explorer..
Porting framework-res.apk
Your device must be of the same resolution with the custom framework-res device (ex: qhd>qhd) .... If not then u may face dpi bugs.
decompile both stock and custom framework-res.apk.. Same as before find "res" open and find "drawable-hdpi" copy all the png to ur stock framework.. don't copy any xmls.. and recompile the modded stock framework-res.apk and replace with ur original by root explorer..
Written By - Snigdho Hasan
Don't forget to-
HIT A THANKS IF I HAVE HELPED YOU![/QUOTEভাইয়া সিস্টেম ইউয়াই মোডেড টা আমার ওয়ালটন প্রিমো সি ২ তে ইউজ করতে চাই। এর জন্য বাংলা লেখা টিপস চাই। প্লিজ হেল্প।
Click to expand...
Click to collapse

Ok
Saheyd Sik said:
Snigdho said:
[Guide] Porting UI Apks
This is a small tutorial showing about porting UI Apps (Theming)
Necessary tools
-Apktool
-Copy-Paste Knowledge
-Root Explorer
-A little respect
Its very easy no need of development skills...
So lets start
Porting SystemUI.apk
Of a rom to another..
At first decompile ur Stock Systemui.apk and custom Systemui.apk which u wanna port.
Now find the folder in custom SystemUI.apk name "res" then open it and search for "drawable-hdpi" open it and you will see a lot of png image replace all them to your stock systemui.apk! If you find any xml file then don't copy them. Then recompile the modded stock SystemUI.apk and replace with original one by root explorer..
Porting framework-res.apk
Your device must be of the same resolution with the custom framework-res device (ex: qhd>qhd) .... If not then u may face dpi bugs.
decompile both stock and custom framework-res.apk.. Same as before find "res" open and find "drawable-hdpi" copy all the png to ur stock framework.. don't copy any xmls.. and recompile the modded stock framework-res.apk and replace with ur original by root explorer..
Written By - Snigdho Hasan
Don't forget to-
HIT A THANKS IF I HAVE HELPED YOU![/QUOTEভাইয়া সিস্টেম ইউয়াই মোডেড টা আমার ওয়ালটন প্রিমো সি ২ তে ইউজ করতে চাই। এর জন্য বাংলা লেখা টিপস চাই। প্লিজ হেল্প।
Click to expand...
Click to collapse
Ok bro I will try..
Click to expand...
Click to collapse

I want to port full Systemui.apk
Because it got many awesome features
please make a guide for it too

Related

14 Toggles for any ROM

Could someone have a look at this http://forum.xda-developers.com/showthread.php?t=1289896 and try to do it for stock Indian ROM (XWKI5) rooted.....I have attached the SystemUI apk from my ROM. I tried this but am stuck with no status bar at all. Can someone try to get it to work for the stock roms plzzzzz...will be really grateful:fingers-crossed:
saurabh.khare1000 said:
Could someone have a look at this http://forum.xda-developers.com/showthread.php?t=1289896 and try to do it for stock Indian ROM (XWKI5) rooted.....I have attached the SystemUI apk from my ROM. I tried this but am stuck with no status bar at all. Can someone try to get it to work for the stock roms plzzzzz...will be really grateful:fingers-crossed:
Click to expand...
Click to collapse
Follow the guide carefully, you should be able to do this.
If you have got Android SDK installed
then copy the attached apktool.jar file to
C:\Program Files\Android\android-sdk\platform-tools\
make sure you have set the correct PATH variables
then use the following commands to compile/decompile
COMPILE:
Code:
apktool d <filename>
<filename> can be .apk or .jar
DECOMPILE:
Code:
apktool b <folder name> <filename>
where <foldername> is the previously decompiled apk/jar
I've attached NEO ROMs SystemUI.apk that you can use as reference.
I can easily compile and decompile the systemui.apk but the smali folder in the decompiled systemui.apk does not contain the statusbarservice.smali file....so I end up with no status bar...I have followed the guide exactly....any suggestions..
saurabh.khare1000 said:
I can easily compile and decompile the systemui.apk but the smali folder in the decompiled systemui.apk does not contain the statusbarservice.smali file....so I end up with no status bar...I have followed the guide exactly....any suggestions..
Click to expand...
Click to collapse
Did you copy .smali files from LidroidSystemUI.apk to your SystemUI.apk?
Also you need to push lidroid-res.apk to /system/framework folder.
EDIT: I decompiled your SystemUI.apk
It showed me error on decompiling.
SystemUI.apk must be deodexed & since you are on stock, so it seems you have got ODEXED one.
You need to deodex first.
pankaj88 said:
Did you copy .smali files from LidroidSystemUI.apk to your SystemUI.apk?
Also you need to push lidroid-res.apk to /system/framework folder.
EDIT: I decompiled your SystemUI.apk
It showed me error on decompiling.
SystemUI.apk must be deodexed & since you are on stock, so it seems you have got ODEXED one.
You need to deodex first.
Click to expand...
Click to collapse
I have copied the smali files and also pushed the lidroid-res.apk, however I haven't deodexed, how am I supposed to do that? Plz explain
saurabh.khare1000 said:
I have copied the smali files and also pushed the lidroid-res.apk, however I haven't deodexed, how am I supposed to do that? Plz explain
Click to expand...
Click to collapse
I am unable to decompile your SystemUI.apk
since it is framework-dependent, framework-res as well as twframework are aslo required.
Can you upload decompiled zip file for your SystemUI.apk
stock one.. without having the lidroidsystemui smali files??
Use dsixda's kitchen for deodexing
I've posted a guide in dev section.
pankaj88 said:
I am unable to decompile your SystemUI.apk
since it is framework-dependent, framework-res as well as twframework are aslo required.
Can you upload decompiled zip file for your SystemUI.apk
stock one.. without having the lidroidsystemui smali files??
Use dsixda's kitchen for deodexing
I've posted a guide in dev section.
Click to expand...
Click to collapse
Here are all the files that you may require....meanwhile I'll try deodexing through dsixda's kitchen....but I was just thinking...wouldn't deodexing just the SystemUI.apk cause problems, considering that my other system files are still in the stock odexed form??
saurabh.khare1000 said:
Here are all the files that you may require....meanwhile I'll try deodexing through dsixda's kitchen....but I was just thinking...wouldn't deodexing just the SystemUI.apk cause problems, considering that my other system files are still in the stock odexed form??
Click to expand...
Click to collapse
yeah.. you need to deodex both /system/app as well as /system/framework folder.
pankaj88 said:
yeah.. you need to deodex both /system/app as well as /system/framework folder.
Click to expand...
Click to collapse
Hey, I'm waiting for your help....can you guide me through deodexing a stock rooted ROM? also did you have a look at the attached files? I had a look at dsixda's kitchen but there isn't a proper deodexing guide. Since you are the creator of the NEO ROM...I feel you would know the exact procedure for deodexing a stock Galaxy R ROM using dsixda's kitchen...plz help me out with the process...I trying to implement the 14toggles and overscroll glow mods which obviously requires deodexing
saurabh.khare1000 said:
Hey, I'm waiting for your help....can you guide me through deodexing a stock rooted ROM? also did you have a look at the attached files? I had a look at dsixda's kitchen but there isn't a proper deodexing guide. Since you are the creator of the NEO ROM...I feel you would know the exact procedure for deodexing a stock Galaxy R ROM using dsixda's kitchen...plz help me out with the process...I trying to implement the 14toggles and overscroll glow mods which obviously requires deodexing
Click to expand...
Click to collapse
ok. tomorrow I will post a guide about deodexing stock odexed ROM.
Sent from my GT-I9103 using xda app-developers app
pankaj88 said:
ok. tomorrow I will post a guide about deodexing stock odexed ROM.
Sent from my GT-I9103 using xda app-developers app
Click to expand...
Click to collapse
Oh boy....thanx a lot.....This is really going to be helpful....:good::good:
saurabh.khare1000 said:
Hey, I'm waiting for your help....can you guide me through deodexing a stock rooted ROM? also did you have a look at the attached files? I had a look at dsixda's kitchen but there isn't a proper deodexing guide. Since you are the creator of the NEO ROM...I feel you would know the exact procedure for deodexing a stock Galaxy R ROM using dsixda's kitchen...plz help me out with the process...I trying to implement the 14toggles and overscroll glow mods which obviously requires deodexing
Click to expand...
Click to collapse
Overscroll glow mod can be applied to stock ODEXED ROM.
But 14 toggles require deodexed ROM.
pankaj88 said:
Overscroll glow mod can be applied to stock ODEXED ROM.
But 14 toggles require deodexed ROM.
Click to expand...
Click to collapse
I tried searching for a guide to implement the overscroll glow mod on stock odexed ROM....but couldn't find any....If you have come across a guide please redirect me to the appropriate thread...that would be very helpful.
saurabh.khare1000 said:
I tried searching for a guide to implement the overscroll glow mod on stock odexed ROM....but couldn't find any....If you have come across a guide please redirect me to the appropriate thread...that would be very helpful.
Click to expand...
Click to collapse
UOT kitchen supports stock ODEXED ROM
see here, I myself implemented overscroll glow using uot for stock ZSLE5 odexed.
Also I think 14 toggles can be implemented on odexed ROM too.
click here
you can download odexed version and compare it with yours.
pankaj88 said:
UOT kitchen supports stock ODEXED ROM
see here, I myself implemented overscroll glow using uot for stock ZSLE5 odexed.
Also I think 14 toggles can be implemented on odexed ROM too.
click here
you can download odexed version and compare it with yours.
Click to expand...
Click to collapse
Thanx for the links bud....now the only problem is that though I can compare the SystemUI.apk file with my modded file for 14toggles...I cannot do the same for SystemUI.odex file since I'm not aware how to decompile it. I'm assuming that both the SystemUI.apk and SystemUI.odex files would be different for our Galaxy R ROM and that I wont be able to directly flash the CWM package from the link. In short I can easily obtain a updater-script and can also mod my SystemUI.apk by following lidroid's guide, but the main problem is modding the SystemUI.odex file. Please guide.
saurabh.khare1000 said:
Thanx for the links bud....now the only problem is that though I can compare the SystemUI.apk file with my modded file for 14toggles...I cannot do the same for SystemUI.odex file since I'm not aware how to decompile it. I'm assuming that both the SystemUI.apk and SystemUI.odex files would be different for our Galaxy R ROM and that I wont be able to directly flash the CWM package from the link. In short I can easily obtain a updater-script and can also mod my SystemUI.apk by following lidroid's guide, but the main problem is modding the SystemUI.odex file. Please guide.
Click to expand...
Click to collapse
http://www.jordanhotmann.com/2011/09/android-hacking-101-compiling-and.html
http://forum.xda-developers.com/showthread.php?t=841287

[Q] Theming galaxy y

Hey guys i want to ask if anybody of you can theme my phone so it look like jellybean in the status bar. Also i want to add lidroid toogle
How it is ? Without recompiling and decompiling because im not admin at my pc thank you :highfive: :fingers-crossed:
Mranggapo said:
Hey guys i want to ask if anybody of you can theme my phone so it look like jellybean in the status bar. Also i want to add lidroid toogle
How it is ? Without recompiling and decompiling because im not admin at my pc thank you :highfive: :fingers-crossed:
Click to expand...
Click to collapse
For the status bar to look like Jellybean, all you need to do is extract your SystemUI.apk and open it with 7zip and change the icons found in drawable folder with that of any Jellybean based SystemUI.apk. Note that you may need to resize the images into LDPI based resolution, not a big deal though.
For adding toggles, there is no way other than decompiling and recompiling.
coolsandie said:
For the status bar to look like Jellybean, all you need to do is extract your SystemUI.apk and open it with 7zip and change the icons found in drawable folder with that of any Jellybean based SystemUI.apk. Note that you may need to resize the images into LDPI based resolution, not a big deal though.
For adding toggles, there is no way other than decompiling and recompiling.
Click to expand...
Click to collapse
Can i just install lidroid parts or lidroid res apk ?
Mranggapo said:
Can i just install lidroid parts or lidroid res apk ?
Click to expand...
Click to collapse
You might wanna ask in Galaxy Y forum whether its supported by the device.
Galaxy Y Q&A Help/Troubleshooting
U can download framework-res.apk base JB or from cusrom like JB
decompile/extract fw.apk via root explorer.apk (u can download it on PS) and u get link "go to extracted file"
build folder fw.apk (extracted folder) and u can mod .png (NOT mod 9.png for Noobs)
if u finnished mod
u can re-build apk with marks all in folder framework-res.apk/
there are META-INF , Andromanifest, etc
click "zip" >> rename framework-res.apk
- go to zipped file >> u can see framework-res.apk.zip (custom apk, ur mod apk)
- rename to framework-res.apk <<
- pull it to system/framework
** lidroid-res u can do same it

[Q] twframework

i cant find twframework-res.apk in lewa rom .
is this important for using apk multi tool ?
i have framework-res.apk and systemui.apk

smali help

hello everyone
i searched a lot but couldnt find anything so postiong here
i was trying to add some featues to home.apk and i got some errors while recompiling
so i tried decompile and recompile without editing anything...i didnt even open the decompiled home apk folder LOL
but i am getting lots of smali errors only in styles.xml
i think that apktool removes some templates from styles.xml i dont know what it means i just got it from my search
so can someone help me in fixing that error....
@serajr
 @SpaceCaker
 @marcussmith2626
 @iSiddharth
Either wrong framework loaded or using wrong apktool version
And please stop abusing the mention system - I won't reply to anymore mentions
marcussmith2626 said:
Either wrong framework loaded or using wrong apktool version
And please stop abusing the mention system - I won't reply to anymore mentions
Click to expand...
Click to collapse
Ah sorry
But what do u mean by WRONG apktool version??
abhishekr700 said:
Ah sorry
But what do u mean by WRONG apktool version??
Click to expand...
Click to collapse
use
gingerbread/ics/jb 1.5.2
https://code.google.com/p/android-apktool/downloads/list
jb/kitkat/lolipop apktool rc3
https://bitbucket.org/iBotPeaches/apktool/downloads
use correct framework-res
plus any other framework eg tw-framework
Use Advanced APK Tools for decompiling the APK files and you can also use the Attached Dex Editor to edit classes.dex files.....
Advanced APK tools is specially made for Xperia devicex. (use your "framework-res.apk" to install firmware in Advanced APK Tools)
(Drag and drop classes.dex in "Quick-Baksmali.cmd" to decompile and drag and drop the output folder is "Quick-Smali.cmd" to recompile.
Advanced APK Tools : http://forum.xda-developers.com/showthread.php?t=2639400

[Guide] How To Deodex Jar Files Without Deodexing Rom

Note:- Select aapt version same as your android version
like for jb 4.1.2 aapt = 4.1
for jb 4.2 aapt = 4.2
Requirements:-
Apktool 1.5.2 (mobile apktool)
Busybox installed
framework.jar
framework.odex
Patience.apk
Brain.jar
Procedure:-
1) Create A folder named Deodex in your sdcard.
2) Copy framework.jar and framework.odex to it.
3) Now using apktool decompile framework.odex
4) When it gets decompiled recompile it again.
5) When it gets recompiled , it will either form framework.dex or classes.dex ,,,, click on it and select add to the jar of same name.
6) Now your jar file is completely deodexed.
I have taken the example of framework.jar but you can do it with other jars also with same procedure.
Dont forget to hit thanks
Credits:- Apktool Developer and Apps Developer
eboybasit said:
Note:- Select aapt version same as your androidversion
like for jb 4.1.2 aapt = 4.1
for jb 4.2 aapt = 4.2
Requirements:-
Apktool 1.5.2 (mobile apktool)
SystemUI.apk
SystemUI.odex
Patience.apk
Brain.jar
Procedure:-
1) Create A folder named Deodex in your sdcard.
2) Copy SystemUI.apk and SystemUI.odex to it.
3) Now using apktool decompile SystemUI.odex
4) When it gets decompiled recompile it again.
5) When it gets recompiled , it will either form SystemUI.dex or classes.dex ,,,, click on it and select add to the apk of same name.
6) Now your apk is completely deodexed.
I have taken the example of systemui.apk but you can do it with other apks also with same procedure.
Dont forget to hit thanks
Credits:- Apktool Developer and Apps Developer
Click to expand...
Click to collapse
http://forum.xda-developers.com/android/development/guide-how-to-deodex-app-pcfully-t2979042
For your information I already posted this guide here..... That also around 5 months ago
sdeepb said:
http://forum.xda-developers.com/android/development/guide-how-to-deodex-app-pcfully-t2979042
For your information I already posted this guide here..... That also around 5 months ago
Click to expand...
Click to collapse
oh sorry i didn't it saw
sdeepb said:
http://forum.xda-developers.com/android/development/guide-how-to-deodex-app-pcfully-t2979042
For your information I already posted this guide here..... That also around 5 months ago
Click to expand...
Click to collapse
I changed my guide now its for jar files
eboybasit said:
oh sorry i didn't it saw
Click to expand...
Click to collapse
It's okay..... So what you'll do now
sdeepb said:
It's okay..... So what you'll do now
Click to expand...
Click to collapse
My thread applicable to jar files now ,,,, so no issues with your thread
Okay....
sdeepb said:
Okay....
Click to expand...
Click to collapse
Okay
Thread closed.
We already have an apk tool thread
http://forum.xda-developers.com/android/development/guide-how-to-deodex-app-pcfully-t2979042

Categories

Resources