[TUT][MOD][Rom Logo In Settings/About] - Android Themes

Hello Xda Members Today I Bring You A Tutorial On How To Add Rom Logo To Settings About Phone
Okay Let's Start
What You Will Need:
Knowledge How To Decompile/Recompile Apk's
Apktool
Notepad++
Winrar
Settings.Apk
Framework-res.apk <From Rom>
Firstly, Move your Settings.apk and framework-res.apk to your "APKTOOL" Folder , And start the below steps
Open Apktool Folder And Type:
HTML:
apktool if framework-res.apk
For Xperia Devices:
HTML:
apktool if taframeworkname.apk
For Samsung:
HTML:
apktool if twframework-res.apk
Then Type
HTML:
apktool d Settings.apk
Download logo_row.xml file from This Link and put it in Settings/res/layout
Now go to xml folder.Search device_info_settings.xml and open it via Notepad++
Find Those Lines:
HTML:
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
And Below Them Paste This:
HTML:
<PreferenceScreen android:key="rom_logo" android:layout="@layout/logo_row" />
Than Save the file and close it
After This, you need to have a romlogo in specific resolutions of your device,
Put the file into:- drawable-(your device resolution)
The Banner/logo should be named as "romlogo" {Without Double inverted commas- " ")
After you pasted the rom logo into the drawable(your resolution here)
Go to apktool and open cmd command prompt again and type
HTML:
apktool b (settings)
Or whatever your folder is called
Now We Need To Sign Apk
Now with Winzip/WinRar/7-zip, Open Original Settings.apk and Copy "Meta-inf" folder and "AndroidManifest" file
to settings/build/apk
After This, Come back to apktool folder and type the below code to Recompile apk
HTML:
apktool b (settings)
Now go to settings/dist and there you have your settings.apk with your logo
Press Thanks If This Guide Was Helpfull

Related

[GUIDE] Creating Transparent Statusbars for CM7 based and most other ROM

Reading the next couple of paragraphs will help you to yourself create a Transparent Statusbar for CM7 based and also most other ROMs. I feel that despite some good programs available for doing this, for example the excellent patcher from ZduneX25, users face quite a bit of difficulty in creating their own transparent statusbars. So here is a detaild guide based on my experience. I have prepared status bars at least for 20 different ROMs using this process with zero fails. Hope it helps people out here.
Prerequisites:
Properly configured Apktool - http://code.google.com/p/android-apktool/
7-zip - http://www.7-zip.org/
Framework-res.apk and SystemUI.apk of the ROM for which you wish to create the statusbar
SystemUI.apk from an existing ROM or theme having transparent statusbar from which you want to copy the transparent images. I have attached the one I am using currently. Use it if you want.
Steps to create the statusbar:
Step 1 – Edit the SystemUI.apk to enable transparency
Open command prompt and go to the directory where you have installed Apktool
Install Framework-res.apk
Code:
apktool if Framework-res.apk
Decompile SystemUI.apk
Code:
apktool d /path/to/SystemUI.apk /path/to/decompiled_files
Now in the decompiled_files folder, open the following file ina a text editor
Code:
/path/to/decompiled_files/smali/com/android/systemui/statusbar/StatusBarService.smali
Search and Find the following string:
Code:
new-instance v0, Landroid/view/WindowManager$LayoutParams;
Three or four lines below this string you will find the following:
Code:
const/4 v5, 0x2
Replace it with
Code:
const/4 v5, -0x3
Now open the following file in a text editor
Code:
/path/to/decompiled_files/res/layout/status_bar.xml
You will find the following code at the end of the file
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="@drawable/statusbar_background" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Replace it with
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center|center" android:id="@id/date" android:background="@drawable/statusbar_background2" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
Save and close the file
Browse to
Code:
/path/to/decompiled_files/drawable-mdpi or drawable-hdpi
Copy
Code:
statusbar_background.9.png
and paste it again as
Code:
statusbar_background2.9.png
in the same folder. You can also copy-paste and rename the file.
Recompile the SystemUI.apk
Code:
apktool b /path/to/decompiled_files
The new SystemUI.apk is saved to
Code:
/path/to/decompiled_files/dist/SystemUI.apk
Step 2 – Add the transparent images
Open the new SystemUI.apk in 7-zip and browse to the following locations depending on your device resolution
Code:
\res\drawable-mdpi\ or \res\drawable-hdpi\
Open the other SystemUI.apk (no. 4 in the prerequisites above) also in 7-zip and browse to the same folder,
Code:
\res\drawable-mdpi\ or \res\drawable-hdpi\
depending on your device resolution. Select the following files
statusbar_background.9.png
statusbar_background2.9.png
shade_bg.png (if you want a transparent pull down as well. Make sure the shade_bg.png is a transparent image.)
Drag and drop these files over to the other open 7-zip window containing your new SystemUI.apk. 7-zip will ask for confirmation, click OK.
Step 3 – Sign SystemUI.apk
You can use a number of signing tools to sign your files but in my experience it results in error many times, specially on Windows. The alternative way is use the signed files of the original apk.
Open the new SystemUI.apk in 7-zip
Open the original SystemUI.apk in 7-zip. This is the original SystemUI.apk from the ROM for which you want to create the statusbar, the one you decompiled.
Drag and drop the META-INF folder and AndroidManifest.xml file from the original to the new SystemUI.apk.
Close all files. That’s it. You just signed your APK with zero chances of any error.
Now push this final SystemUI.apk to /system/app on you phone and reboot.
Of course the risk is your own here. If something bad happens just push your original SystemUI.apk to the phone and you should be good.
Also in case you find any error here, please inform me and I will try to correct it.
Click the Thanks button if this writeup helped you.
wow !! gonna try it dude
can you make another guide on changing font colors,for example the font color in the settings menu screen?
dyetheskin said:
can you make another guide on changing font colors,for example the font color in the settings menu screen?
Click to expand...
Click to collapse
I will have a go at it next time.
Awesome thanx for explaining it so nicely
Sent from my GT-S5570 using xda premium
Very nice tutorial up there, but is there any solution for overlapping date when there are many notification icon on dropped down status bar?
@Cortiis
i tried but failed many times..so will u plzzz do it for me...here are the files..the 1st two are from the rom in which i want trans s.bar...3rd one(renamed) is from the rom which already has trans s.bar..
btw all the files here are not from my phone but from respective rom zips in my comp..
This worked for me but only on the lockscreen and when I have holo launcher running. Samsung home (touchwiz i presume) still has black status bar. search for solution to that with no success... anyone know what else needs to be modded for the transparent status bar in touchwiz? btw thanks to ccgh for pointing me to this thread
Will it work with 4.1?
(Cm10)
Sent from my Slim Jelly phone

{Tutorial} How To Decompile/Compile Apk

Okay So Alot Of People Asking On How To Decompile/Compile .APK ITS EASY!! You Are Just Too Lazy To Read And Learn it the Proper way
No Offense The First Thing You Need to Do is Download Boudz-Filezzz.zip in Attachments you will find aapkt apktool.jar and apktool.bat and baksmaali
Okay So Extract
The First Thing To DO is :
--First Get framework-res.apk From System/Framework/Framework-res.apk,And SystemUI From System/App/SystemUI.apk And TWframework-res.apk From System/Framework/TWFramework-res.apk And Place With The File You Extracted..
--Next Press Shift+Alt and Right Click on An the white space in the File (Boudz-Filezz)
and Press open Command Prompt
Now Type ::
Code:
apktool if framework-res.apk
Now it Will Install the Framework
Next is To Install SystemUI,its the same just replace framework-res.apk with SystemUI.apk (IT IS IMPORTANT TO MENTION THE APK)
Code:
apktool if SystemUI.apk
And
apktool if twframework-res.apk
Click to expand...
Click to collapse
Okay Now We Installed The Files Now I Want To Decompile SystemUI.apk For Example With Half Of Ace i Users Fail in..
open Command Prompt by Pressing Shift+Alt and Right Click on An the white space in the File (if its open no need)
And Type
Code:
apktool d SystemUI.apk Test
Okay So Lemme explain The Code apktool is the file and D stands For Decompile And SystemUI.apk Which is the apkname And Test Is the Folder that the SystemUI.apk will be Decompiled To.
That Wasn't Bad Wasn't it?
Now Edit Something in test folder (Decomplied SystemUI.apk) Change Some 9.PNG From Some ROM TO your SystemUI and Xml is Also readable edit some codes ... :silly::silly:
Now After Doing That we Need To Compile It Back to An APK this is Easy... just Type in Command Prompt
Code:
apktool b test
Okay So apktool is the file itself and B Stands For Compile And Test is the Folder that i Want to Compile it To a APK so press enter and Open the test>systemUI>dist SystemUI.apk Thats It You Successively Modded A SystemUI Okay So I Wont Provide Any Credits Because i Wrote all This myself and Didn't Need any help all was done by me Please If I Helped You In This Tutorial Dont Forget To Hit The Thanks Button
Boudz-FILEZZ:[URL="http://www.mediafire.com/?qq3zf5yw1mwy5o8"]http://www.mediafire.com/?qq3zf5yw1mwy5o8[/URL]​
I always get an error

[GUIDE] Decompiling/Recompiling Apk's using Apktool

Hello Guys, this is for the one who wanna learn how to decompile recompile apk's I created this thread here because for desire c user.. easily find..
Requirements:
-Java Link
-Winrar Link
-Notepad++ Link
-and Apktool Link (Credits Rizal Lovins)
-Common Sense/Brain
Extract it on C:/Apktool (Create a Apktool Folder)
Method
1.Go to C:/Apktool (Where you put tha jar files) also copy your framework-res.apk to C:/Users/(Name)/apktool/(here) and rename it to 1.apk
2.And Put the Apk you want.. put the apk to C:/Apktool
3.Then press SHIFT+Right Click there inside Apktool folder
4.Then CMD will pop-up then type apktool d (name).apk then enter... ex. apktool d Settings.apk (then enter)
5.Then A Folder will Pop-up on C:/Apktool named Settings (if you decompile Settings.apk)
6.Now Sign your output... (if needed)
7.Go to decompiled Folder-dist- press SHIFT+Right Click CMD pop up type... java -jar SignApk.jar testkey.x509.pem testkey.pk8 (decompiled).apk (decompiled)_signed.apk
Optional : Zipalign
Go to decompiled Folder-dist- press SHIFT+Right Click CMD pop up type zipalign -fv 4 (decompiled)_signed.apk (decompiled)_signed_zipaligned.apk
Have Fun Guys...

[FULL][Procedure] How To Decompile Recompile apk and How to Setup Apktool

Here i tells you. How to use apktool & Multitool
Step 1: Necessay files (Download From XDA-Developers.com)
Step 2: How to enter commands for .apk Files
Step 3: How to setup apktool
Step 4: Themeing & Modding
--> Step 1- /Java (Install java first)
/Apktool
OR
/Multi Tool (Download attachment with multitool name as visualbasic(VisualBasicPowerPacksSetup)_without this file it not work)
/.netFramework v4.5 or Higher (For Multitool)
/7zip (Extracting .apk and other archieve or extention)
/Notepad++(used to read .xml files in decompiled apk)
--> Step 2- 1/ For systemui.apk
/commands
cd..
cd..
cd android/apktool
/apktool if framework-res.apk
/apktool if systemui.apk
/apktool d systemui.apk (d- for Decompiling apk)
/Themeing (Dont messup Here and there without any reason or you get uncompiled apk)
/apktool b systemui systemui-new.apk (b- For Re-Compiling apk)
Sign your new apk in order to working.
after compiling apk your new apk looks like / systemui-new.apk
Now Decompile It with 7zip & also place original apk of the current rom in desktop into a folder(decompile it also)
/Take two files from original Decompiled apk / 1.META INF 2.Android Mainfest.xml
/Add these two files into extracted /systemui-new.apk/Recompile it with 7zip/Now you use your new apk
---------------------------> Done
2/ For Framework-res.apk
/commands
cd..
cd..
cd android/apktool
/apktool if framework-res.apk
/apktool if Twframework-res.apk
/apktool d framework-res.apk (d- for Decompiling apk)
/Themeing (Dont messup Here and there without any reason or you get uncompiled apk)
/apktool b framework-res framework-res-new.apk (b- For Re-Compiling apk)
Sign your new apk in order to working.
after compiling apk your new apk looks like / framework-res-new.apk
Now Decompile It with 7zip & also place original apk of the current rom in desktop into a folder(decompile it also)
/Take two files from original Decompiled apk / 1.META INF 2.Android Mainfest.xml
/Add these two files into extracted /framework-res-new.apk/Recompile it with 7zip/Now you use your new apk
---------------------------> Done
Note : if this command not work in order to recompile your framework/only this line /apktool b framework-res framework-res-new.apk
than use new command /apktool d framework-res.apk framework1 (d- for Decompiling apk)
/apktool b framework-res.apk framework1 (b- For Re-Compiling apk)
others / settings.apk (recompile,decompile like systemui.apk)
cd..
cd..
cd android/apktool
/apktool if framework-res.apk
/apktool if Twframework-res.apk
/apktool d settings.apk (d- for Decompiling apk)
/Themeing (Dont messup Here and there without any reason or you get uncompiled apk)
/apktool b settings (b- For Re-Compiling apk)
Sign your new apk in order to working.
For checking compiled settings.apk/ dist/settings.apk
after compiling apk your new apk looks like / build/apk/here
Now Decompile It with 7zip & also place original apk of the current rom in desktop into a folder(decompile it also)
/Take two files from original Decompiled apk / 1.META INF 2.Android Mainfest.xml
/Add these two files into extracted /settings.apk(check in build folder)/Recompile it with 7zip/Now you use your new apk
---------------------------> Done
--> Step 3- A)Setuping Apktool
/only apktool not multitool (both are different)
open your laptop/desktop/ Drive c: make folder named/ android/apktool (inside android folder make apktool folder)
locate where you save apktool/unpack it with winrar or 7zip and copy whole files/paste it into/
c:/android/apktool(paste here)
Now Add three files of your ROM/Systemyui.apk , Framework-res.apk , Twframework-res.apk
after this/ just open apktool folder of c: drive where you add files in small window
You see window button in taskbar /click on it/search/cmd/ when you see / hit enter
Type commands <--------------------------------------------------------------------------------------
cd..
cd..
cd android/apktool (this command locate your apktool folder in c:drive)
/apktool if framework-res.apk (add 1.apk >c:/user/hp/apktool/ 1.apk
/apktool if systemui.apk (add 127.apk >c:/user/hp/apktool/ 127.apk
/apktool d systemui.apk (Decompile your apk>see decompiled apk in / c:/android/apktool
/apktool b systemui.apk (Recompile your apk)
--> Done
--> Step - B)Setuping MultiTool(Also type of apktool - Easy to use
Unpack your multitool.zip
Looks like AndroidMultitool_3.0_win7/AndroidMultitool
cut AndroidMultitool / directly paste it to
c:/AndroidMultitool(inside folder and where to add files)
/Compiled_apk
/Compiled_jar
/Decompiled_apk
/Decompiled_jar
/Files
/Log
/Program_Files
/Signed_apk
/Android Multitool.exe
Add these files in /Files folder/Systemyui.apk , Framework-res.apk , Twframework-res.apk
Now Run Android MultiTool.exe
I think you know much very well after run Android Multitool.exe /how to decompile , recompile etc.
Save my time.......
--> Done
--> Step 4 - After Decompile theme your self or what ever.
--> Done
I Dont Know The Developers Name..!!! Who Develop APKTOOL AND MULTITOOL
Credits -
1.Developer Of Apktool
2.Developer Of Multitool
Credits - To Me Kartik [email protected]
Better To Use Advanced Apk Tool..Its So Fast and Easy To Use and User friendly...

[GUIDE][AOSP/MTK]Theming Guide For MT65XX Devices

Hello Guyzzz.....This Is My First Theming Guide Fro Mt65XX Devices
In This Guide I Will Tell You How To Do The Following Things:-
##Making Settings Holo Light##
##Changing The Switch##
##Changing The Spinners##
Requirements:-
##APKTOOL##
##NOTEPAD++##
##Knowledge About Decompiling And Recompiling##
##Time,Patience And Most Important Of All............A Working Brain--------- ##
OK......So Lets Get Started.......
For Making Settings Holo Light​
Decompile Settings.apk
Open Android Manifest.xml Using NotePad++
Search For This Line
Code:
<application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher_settings" android:label="@string/settings_label" android:supportsRtl="true" android:taskAffinity="" android:theme="@android:style/Theme.Holo" android:uiOptions="splitActionBarWhenNarrow">
Change
Code:
android:theme="@android:style/Theme.Holo"
TO
Code:
android:theme="@android:style/Theme.Holo.Light"
Save And Exit Android Manifest.xml
Recompile Your Settins
Sign It Manually
MOVING ONNNN.......
For Changing The Switch
Decompile framework-res.apk
Download Any Switch Resource From Below
Copy The Items From The "res/drawable" Folder Of The Downloaded Folder And Replace Those Files In framework-res "res/drawable" Folder
Now Goto drawable-hdpi{depending on ur device}And Delete All The Switch Pngs Present There{NORMALLY THE NAME STARTS WITH "switch_...9.png"}
Thats IT.....Now Recompile And Sign framework-res
AGAIN......MOVING ONNNN.......
For Changing The Spinners
Decompile framework-res.apk
Download Any Of The Spinner Resources From The Second Post
Extract The File And Open the Folder
Copy All The Contents from The Drawable Folder And Paste It In Your Folder{You Will be Asked To Replace The Files....Just Do It}
Now Open The Downloaded Resource Folder And Copy All The PNG'S In The FOlder And Paste It In "drawable-hdpi" Folder Of Your framework-res{Replace All The Files.....IF ASKED!!}
Thats IT.....Now Recompile And Sign The APK
ENJOY.....-HIT THANKS IF YOU LIKE MY WORK!!
Chetan Lodha said:
Hello Guyzzz.....This Is My First Theming Guide Fro Mt65XX Devices
In This Guide I Will Tell You How To Do The Following Things:-
##Making Settings Holo Light##
##Changing The Switch##
##Changing The Spinners##
Requirements:-
##APKTOOL##
##NOTEPAD++##
##Knowledge About Decompiling And Recompiling##
##Time,Patience And Most Important Of All............A Working Brain--------- ##
OK......So Lets Get Started.......
For Making Settings Holo Light​
Decompile Settings.apk
Open Android Manifest.xml Using NotePad++
Search For This Line
Code:
<application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher_settings" android:label="@string/settings_label" android:supportsRtl="true" android:taskAffinity="" android:theme="@android:style/Theme.Holo" android:uiOptions="splitActionBarWhenNarrow">
Change
Code:
android:theme="@android:style/Theme.Holo"
TO
Code:
android:theme="@android:style/Theme.Holo.Light"
Save And Exit Android Manifest.xml
Recompile Your Settins
Sign It Manually
MOVING ONNNN.......
For Changing The Switch
Decompile framework-res.apk
Download Any Switch Resource From Below
Copy The Items From The "res/drawable" Folder Of The Downloaded Folder And Replace Those Files In framework-res "res/drawable" Folder
Now Goto drawable-hdpi{depending on ur device}And Delete All The Switch Pngs Present There{NORMALLY THE NAME STARTS WITH "switch_...9.png"}
Thats IT.....Now Recompile And Sign framework-res
AGAIN......MOVING ONNNN.......
For Changing The Spinners
Decompile framework-res.apk
Download Any Of The Spinner Resources From The Second Post
Extract The File And Open the Folder
Copy All The Contents from The Drawable Folder And Paste It In Your Folder{You Will be Asked To Replace The Files....Just Do It}
Now Open The Downloaded Resource Folder And Copy All The PNG'S In The FOlder And Paste It In "drawable-hdpi" Folder Of Your framework-res{Replace All The Files.....IF ASKED!!}
Thats IT.....Now Recompile And Sign The APK
ENJOY.....-HIT THANKS IF YOU LIKE MY WORK!!
Click to expand...
Click to collapse
Good Job Bro I Think It Will Be Hard But It's Easy Good Job :laugh:
lol... this is all so NOT easy.
you missed few important parts in between your Simple Guide.
But Catchy Topic Header...
Add more Basic But important Steps
Dude.. you missed a lot of things in that tutorial ! i Hope in futute you will add more Things in that tutorial !
dare2know said:
lol... this is all so NOT easy.
you missed few important parts in between your Simple Guide.
But Catchy Topic Header...
Add more Basic But important Steps
Click to expand...
Click to collapse
SDShukla said:
Dude.. you missed a lot of things in that tutorial ! i Hope in futute you will add more Things in that tutorial !
Click to expand...
Click to collapse
I Dont Think bro...bcoz i followed these steps and everything worked!!
@chetan ,
it was jUST A POINTER nothing to make u feel bad,
Screenshots?
download from below!?!?!?
There is no resources to download in the 2nd post !!!

Categories

Resources