(FAQ)(GUIDES) Place for aspiring devs-Added : HOW TO FOR BOOTANIMATIONS - Galaxy Y GT-S5360 Themes and Apps

This thread will be focussed on developing custom roms and modding apps to enhance its UI. There will be step by step tutorials and I will keep it noob friendly as much as possible. People can also share their problems coming while creating/modifying their roms/apps here and I or any other person can get provide you with best solutions as soon as possible. If you want to share your knowledge or if you think my methods are not working then you can PM me and I will update the posts below. I will start working on this thread tomorrow and will keep updating it frequently. Time to reserve
Sent from my GT-S5360 using xda app-developers app

Finally after some research I found a way to make UOT bootanimations work on our phone!
Requirements:
1.Boot Animation Creator
2. 5MB space
Instructions:
1.Go to uot.dakra.lt and get any bootanimation you want.
2.After it is made, download the package to wherever you want on your pc.
3.Open the package and go to /system/media, copy the sanim.zip to any folder. Name it bootanimation.
4.Extract sanim.zip here
5.Open Boot Animation Creator and browse to the folder where you extracted the contents of sanim.zip
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
6.Click next and you would see something like this.
7.Set the values as shown
8.Click on "add loop" . Choose folder in increasing order example:
part0 - first
part2 - second
partx-third
And set the loops to '1'
9.Finally it should be like this
10.Click next and put the location where you want the final result
Keep the name to be 'bootanimation'
11.Move this file obtained in the uot package you earlier download under the directory /system/media and delete sanim.zip
12.Flash it and it will work!!
Sent from my GT-S5360 using xda app-developers app

Modding status bar
Requirements:
1.Apk decompiler
2.Notepad++(recommended)
3.SystemUI.apk
4.Sharp eyes for smali editing
MANUAL TRANSPARENCY MOD
1.Decompile SystemUI.apk
2.Go to smali/com/android/systemui/statusbar/StatusBarService.smali and open it with Notepad++
3.Search for this line
Code:
new-instance v0, Landroid/view/WindowManager$LayoutParams;
4.Shortly after that you will see this line:
Change the highlighted value to
Code:
const/4 v5, -0x3
5.Save the file.
By doing the above procedure we have enabled TRANSPARENCY.
To put color in your status bar do this:
1.Go to res/layout/statusbar.xml
2.It would look like this:
Change the values of background to this: (Highlighted text)
3.Now go to res/drawable-ldpi/ and create a image named "statusbarbackground" remove "". The resolution should be 240x19(You can also use a full transparent image)
4.Compile apk
Sent from my GT-S5360 using xda app-developers app

Reserve for framework
Sent from my GT-S5360 using xda app-developers app

Modding apps
Requirements:
1.Apk decompiler
2.Notepad++(recommended)
3.Settigns.apk
4.Phone with spare parts installed.
MODDING SETTINS.APK
Over here I will show how to add more apps in settings.apk
1.Decompile settings.apk
2.Go to res/xml/settings.xml and open it with notepad++
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before editing something you need to know what all tags we would be dealing with:
a)android:title="PATH OF STRING" : Strings tell the system what name should be designated for that space.It would be something like "@string/xxxx" to know what this"xxxx" tells to the system go to values/strings.xml and find the string name. After the string name you will see what it actually means.Instead of putting a string in it, you can directly put the text you want but it should be in this format "xxx"
b)android:summary="xxx" :Is similar to string function but it shows the subtitle of the string and its optional to use.Over here also you can put anything you want but in "xxx"
c) <intent android:targetPackage="NAME OF PACKAGE" :It is used for directing any app to show in settings. It is like the internal name of the app
d)android:targetClass="FILE TO BE EXECUTED" :As you know a app has alot of files in it. This tag tells the system to execute 'x' command when the above tag is pressed.If you are going to use the tag I showed above then putting this is a MUST.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3.Decompile the app you want to add in settings. I take 'SpareParts' as an example.
4.Open the decompiled file and go to AndroidManifest.xml and look for something like this
"com.android.spare_parts" is the internal package name and every app has it.
5.Now we need the target class of the apk. For that download adw launcher and keep pressing anywhere on the background to open desktop settings.
6.Go to custom shortcut-->pick your activity-->Activity-->Find SpareParts and click on it.You will see something like this:
7.The things in the brackets is the class of the package. To convert it into target class you need to first copy the targetpackage and then add the things in brackets to it.The final targetclass would be "com.android.spare_parts.SpareParts"
8.We are now done with the difficult part.Now we need to put this in settings.xml. For that copy any COMPLETE tag over there are make the modifications in it.Here is how it should look:
Code:
Original code(I copied the last code)
- <com.android.settings.IconPreferenceScreen android:title="@string/about_settings" settings:icon="@drawable/ic_settings_about">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DeviceInfoSettings" />
</com.android.settings.IconPreferenceScreen>
And put the corresponding values to it:
Code:
- <com.android.settings.IconPreferenceScreen android:title="Spareparts" android:summary="Few modifications" settings:icon="@drawable/spareparts">
<intent android:targetPackage="com.android.spare_parts" android:action="android.intent.action.MAIN" android:targetClass="com.android.spare_parts.SpareParts" />
</com.android.settings.IconPreferenceScreen>
9.Place the modified code at last before /PreferenceScreen.After this put a icon for that app in drawable-ldpi folder with the name spareparts or whatever name you want
Compile it. If there are errors then post below I will provide solutions. If successfully compiled then copy the /res folder , resources.arsc in the original Settings.apk and flash it.
Sent from my GT-S5360 using xda app-developers app

Reserved for resources
For decompiling/compiling-APK MULTITOOL
Android sdk-SDK Installing
Sent from my GT-S5360 using xda app-developers app

Reserved for FAQ and troubleshooting
Sent from my GT-S5360 using xda app-developers app

Reserved just for fun.
Sent from my GT-S5360 using xda app-developers app

Now thats enough.
Sent from my GT-S5360 using xda app-developers app

Stop it!!!
Sent from my GT-S5360 using xda app-developers app

This is what i need..
Prove guide to sgy..
There's many guide out there but simetimes not work to sgy coz diff file/else..
Hope always update..

+1 for the objective and the intention of compiling things for ease of search for newbies :good:

A very promising thread! All at one place.. Nice approach! Thanx dude!

This is a big help for newbies!

ajbm6 said:
This is a big help for newbies!
Click to expand...
Click to collapse
There is a lot more to b added..
Sent from my GT-S5360 using xda app-developers app

Nice!! Add more Nd i will giv more thkns
Sent from my GT-S5360 using xda app-developers app

hey bro can u plzz upload a miui player with workin widget on the status bar...can u recompile it from stock player..till now no custom rom with this option
---------- Post added at 06:04 PM ---------- Previous post was at 05:59 PM ----------
and one more idea
if u can ..u cud upload videos and pics tooo as a step by step procedure
==================_______=========
press thanks if i speak right

Soul reaper said:
hey bro can u plzz upload a miui player with workin widget on the status bar...can u recompile it from stock player..till now no custom rom with this option
---------- Post added at 06:04 PM ---------- Previous post was at 05:59 PM ----------
and one more idea
if u can ..u cud upload videos and pics tooo as a step by step procedure
==================_______=========
press thanks if i speak right
Click to expand...
Click to collapse
i dont hav tym for videos.. i will upload pics for diff. steps

Exellent thread mate.Extremely useful.
sent while doin' some burnouts

Up topic, nice TUT.:good:

Related

[HOW TO] Use Apktool

So, here i'm again porting a tutorial based on DSM_'s Tut
What do you need:
JRE (Java Runtime Environment)
MOD EDIT: Download Removed.
Install:
Windows:
MOD EDIT: Download Removed.
MOD EDIT: Download Removed.
Unpack both pakages you will get three files, copy those files to your Windows directory i.e. C:\WINDOWS
Decoding files:
Open Command. Run>cmd
Type-
Quote
apktool d file.apk [directory]
Example - apktool d D:\nfsshift.apk D:\nfsshift
Done!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
FrameworkFiles
Apktool needs the framework files to decode and build apks.
Standard framework is embedded into apktool, so you don't need to do anything for most apk files. But some manufacturers, for example Samsung, add their own framework files and use them in system apps. To use apktool against such apps, you must pull framework from a device and install/register it to apktool.
For Example, you want to decode TouchWizLauncher.apk from Android v2.2 of Galaxy 5. If you try to do that, you will get an error message:
You need to install framework in apktool Type-
apktool if [framework location]
I have the got the framework-res.apk & twframework-res.apk by extracting the ROM. You can also copy it from your phone. But take care you must copy framework.apk from that ROM in which you got the Application file.
Then try again
Now is working.
How to build decoded files:
Just type
apktool b [directory in which you have decoded the files]
Example - apktool b D:\nfsshift
Done!
You will find the apk file inside the decoded directory, like I found it in - D:\nfsshift\dist\nfsshift.apk
Now you need to sign your APK file.
How to Sign APK files:
When publishing an application or a custom rom you need to sign the .apk or .zip files with a certificate using a private key. The Android system uses the certificate to identify the author of an application and establish trust relationship between applications. The classic way of doing this was to use keytool then sign it with jarsigner. In this tutorial i’ll explain an alternative method which is relatively easy to use for most people using a tool called SignApk.jar.
First download the SignAPK toolMOD EDIT: Download Removed.
Extract them to a directory you will remember. I have put them in C:\SignApk
Now just open cmd and type -
Quote
cd C:\SignApk
java -jar signapk.jar certificate.pem key.pk8 your-app.apk your-app-signed.apk
Example - java -jar signapk.jar certificate.pem key.pk8 D:\nfsshift\dist\nfsshift.apk D:\nfsshift\dist\nfsshift-signed.apk
Your APK is signed and can be installed.
Why I get errors when trying to decode some apk's from Xperia S? Apk's are okay, working on phone. Decompiling works on other apps.
I've registered framework-res.apk from my phone.
Theonewithideas said:
Why I get errors when trying to decode some apk's from Xperia S? Apk's are okay, working on phone. Decompiling works on other apps.
I've registered framework-res.apk from my phone.
Click to expand...
Click to collapse
You may require another one like the dhd has com.htc.resources.apk
sent from my dhd
i decompiled defaulthemes.apk from my Xperia neo v
now when i compile it again .. do i need to sign it? its a system apk!
and i am not able to build decode files( it means compiling right?).. please help!
Aarush said:
i decompiled defaulthemes.apk from my Xperia neo v
now when i compile it again .. do i need to sign it? its a system apk!
and i am not able to build decode files( it means compiling right?).. please help!
Click to expand...
Click to collapse
I think you need to replace it manually first time. But make a backup, just in case.
---------- Post added at 10:43 PM ---------- Previous post was at 10:18 PM ----------
I've decoded the system app (from Xperia S) (after registering the 2 framework files)
Edited the code inside. Compiled. Signed. But when I want to install it it gives me error. The usual icon doesn't show up either.
Is the error caused by changing something in code? I've only edited some TextSize values.
Theonewithideas said:
I think you need to replace it manually first time. But make a backup, just in case.
---------- Post added at 10:43 PM ---------- Previous post was at 10:18 PM ----------
I've decoded the system app (from Xperia S) (after registering the 2 framework files)
Edited the code inside. Compiled. Signed. But when I want to install it it gives me error. The usual icon doesn't show up either.
Is the error caused by changing something in code? I've only edited some TextSize values.
Click to expand...
Click to collapse
Can be with codes
Are u signing it.? Dont sign it if its a system apk
Sent from my Xperia neo V using SwiftKey!
Great tutorial
Sent from my Droid using Tapatalk
Why shouldn't you sign a system apk? I see people stating this everywhere, never any reason as to why though.
Basically, if I mess with a system apk I should just build it and then it's ready to adb push to /system/app/?
very helpful thanks
I've done all your steps but...
@hyztname
hi, how are you
I've done what you said in post #1 step by step, everything's ok with no error but when I push my new edited "SystemUI.apk" to the device, it doesn't work. I have the same issue when I use APKMultiTool
what do you think?
goldiecalypso said:
@hyztname
hi, how are you
I've done what you said in post #1 step by step, everything's ok with no error but when I push my new edited "SystemUI.apk" to the device, it doesn't work. I have the same issue when I use APKMultiTool
what do you think?
Click to expand...
Click to collapse
You have to sign ur new app. Google how to sign apks in google
Sent from my Droid using Tapatalk 2
cowsquad said:
You have to sign ur new app. Google how to sign apks in google
Sent from my Droid using Tapatalk 2
Click to expand...
Click to collapse
I signed it with "signapk" according to your talks and download link, but still nothing!
@goldiecalypso
SystemUi.apk isn't a simple package.
If I'm right you don't have to decompile sources.
apktool d -s SystemUI.apk
-s, --no-src (Will not decode sources)
could u plz tell me hw to do it in ubuntu
droidxpert said:
could u plz tell me hw to do it in ubuntu
Click to expand...
Click to collapse
What do you want to know?
Sent from my Galaxy Nexus using Tapatalk 2
sir i decompiled framework-res.apk and i have modded the pngs in drawable ldpi folder.but when i am trying to recompile it it shows errors in every png i modded..i modded using photoshop cs6...please help
droidxpert said:
sir i decompiled framework-res.apk and i have modded the pngs in drawable ldpi folder.but when i am trying to recompile it it shows errors in every png i modded..i modded using photoshop cs6...please help
Click to expand...
Click to collapse
What kind of error are you getting? Where you messing with 9.pngs?
Sent from my Galaxy Nexus using Tapatalk 2
ya i was editing .9 pngs.and one of xda member suggested me to flatten it before saving.This compiles successfully but creates a white background for all images
droidxpert said:
ya i was editing .9 pngs.and one of xda member suggested me to flatten it before saving.This compiles successfully but creates a white background for all images
Click to expand...
Click to collapse
Working with 9.pngs isn't easy to do. You must use 9.png tool to work with those. 9.pngs are pain in the ass. There are tutorials out there man
Sent from my Galaxy Nexus using Tapatalk 2
droidxpert said:
ya i was editing .9 pngs.and one of xda member suggested me to flatten it before saving.This compiles successfully but creates a white background for all images
Click to expand...
Click to collapse
You need to use the draw9patch.bat tool if you change the shape of anything in a 9.png. Check out http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch for some basics.

[Tutorial] Decompile and recompile APK's using ApKManager

IMPORTANT - APK decompilation is needed only when you are going to edit some xml's or other stuff. If you want edit or replace png's, you need to extract the apk instead of decompiling it.
If you want to extract an apk for theming, read this tutorial - http://forum.xda-developers.com/showthread.php?t=1665674
1) Download apkmanager ( http://www.apkmultitool.com/?q=node/5 ) and install it.
2) Put the apk you want to decompile in 'place-apk-here-for-modding' folder.
3) Double click on 'script'
4) Ignore the 'adb not found' command and press enter
5) Type 22 i.e. 'set current project' and press enter.
6) Type 1 and press enter
7) Type 9 and press enter to decompile apk.
8) Wait until the decompilation finishes.
9) Minimize command line and go to projects -> filename.apk -> make the required changes
10) Switch back to command-line, type 11 and press enter.
11) After sometime you'll get a message 'is this a system apk?', type y and press enter.
12) You'll get another message 'aside from......... of errors', type y and press enter.
13) Wait until you get this message - 'In the apk manager.... this script' , dont do anything, minimize command-line, go to keep folder and delete resources.arsc
14) Switch back to command-line and press enter.
15) Wait until the command-line comes back to its initial look.
16) Go to 'place-apk-here-for-modding' folder, your new file will be unsignedfilename.apk
Read step 17 if you have modded framework-res.apk, otherwise skip it.
17) Open framework-res.apk and unsignedframework-res.apk using 7-zip or winrar or any other archive manager. Drag and drop resources.arsc from unsignedframework-res.apk into framework-res.apk (do not extract them, just open them using any archive manager and do the drag-drop stuff)
18) Copy the file to SD card, rename it and remove 'unsigned' from file's name.
19) Push the file to original folder using root explorer and set proper permissions.
EG - If you modded framework-res.apk, push your old file ( first move resources.arsc from new to old framework and then move the old framework) to /system folder. Set permissions to rw-r--r-- and then move the file to /system/framework folder.
PS - Make a nandroid backup before doing this if you modded framework.
Sent from my GT-S5830 using Tapatalk 2
Fr
I'll update this with more info when I get access to my PC
Sent from my GT-S5830 using Tapatalk 2
Huh, finally. Thanks a lot dev. This is much better than all those crap tutorials I found when I searched on Google. If you copied from someone, please give credits
Sent from my GT-S5830 using xda premium
Rishris said:
lIf you copied from someone, please give credits
Click to expand...
Click to collapse
No, I did not copy. I wrote on my own :beer:
Sent from my GT-S5830 using Tapatalk 2
Why no one uses apktool and 7-zip
Sent from my GT-i9070 using xda premium
tj_droid said:
....19) Push the file to original folder using root explorer and set proper permissions.
EG - If you modded framework-res.apk, push your new file to /system folder. Set permissions to rw-r--r-- and then move the file to /system/framework folder.
Click to expand...
Click to collapse
This part is very important. Push directly to /system/framework folder may will be end with bootloop, FC...
(from my exprience)
btw good tutorial.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i did it like 10 times! dont have resource.arsc after compiling
here is the log http://dl.dropbox.com/u/54790911/New%20Text%20Document%20%282%29.txt
When i decompile framework-res from Miracle v4, i get a lot of errors with png, how do i fix this?
R4Ck said:
When i decompile framework-res from Miracle v4, i get a lot of errors with png, who do i fix this?
Click to expand...
Click to collapse
He might use bad pngs like .9.pngs that arent .9.png build
Sent from my GT-i9070 using xda premium
CoolCatGetHome said:
He might use bad pngs like .9.pngs that arent .9.png build
Sent from my GT-i9070 using xda premium
Click to expand...
Click to collapse
Yeah, in the log shows some message with .9 png, but i can extract them with winrar, the problem is when i compile
R4Ck said:
Yeah, in the log shows some message with .9 png, but i can extract them with winrar, the problem is when i compile
Click to expand...
Click to collapse
You should follow the tutorial by music.soul on patching .9.png s. U cant just edit them like normal pngs.
And, sorry , thanked u by mistake.ENJOY
Sent from my GT-S5830 using Tapatalk 2 Beta-5
Apk tool is better.100%.
Apk manager doesn't compile right.
paravoz.98 said:
Apk tool is better.100%.
Apk manager doesn't compile right.
Click to expand...
Click to collapse
+1
when you edit .9.png (I'm using Photoshop CS5)
after flatten image & save for existing image, it not save with .9.png.
for example:
filename.9.png it will be save to filename.png.
you must manually put .9.png
paravoz.98 said:
Apk tool is better.100%.
Apk manager doesn't compile right.
Click to expand...
Click to collapse
I know its better. Even I use apktool. But many people think apktool is confusing and they cant understand how to go about this decompiling and compiling stuff. That's why I wrote this guide so that people who cant understand apktool can try APKmanager
I am thinking of writing an apktool guide also
Sent from my GT-S5830 using Tapatalk 2
tj_droid said:
I know its better. Even I use apktool. But many people think apktool is confusing and they cant understand how to go about this decompiling and compiling stuff. That's why I wrote this guide so that people who cant understand apktool can try APKmanager
I am thinking of writing an apktool guide also
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
I prefered apktool. Both tools are better it defend on how we using it.
Both are can't functions properly if our give wrong commands, wrong prefix...etc
thanks tj_droid now i don't need to request anyone to edit apk's for me thanks a tonne
vaibhavx said:
thanks tj_droid now i don't need to request anyone to edit apk's for me thanks a tonne
Click to expand...
Click to collapse
My pleasure
Sent from my GT-S5830 using Tapatalk 2
i also use apk manager only recently i edited mms app and did many modifications in that like transparent background, new notification logo
but this gave me fc also while editing keyboard AxT9IME ( i was changing background ) thats why i asked CoolCatGetHome for help, dont know what he used but then it worked fine.
i think he used apktool
while Decompiling AxT9IME.apk i got this error hope CoolCatGetHome or someone can help on this.
here is the log file also Download
mor_1228 said:
i also use apk manager only recently i edited mms app and did many modifications in that like transparent background, new notification logo
but this gave me fc also while editing keyboard AxT9IME ( i was changing background ) thats why i asked CoolCatGetHome for help, dont know what he used but then it worked fine.
i think he used apktool
while Decompiling AxT9IME.apk i got this error hope CoolCatGetHome or someone can help on this.
here is the log file also Download
Click to expand...
Click to collapse
Actually apkmanager is outdated now. I read somewhere that the dev has fixed bugs and added new features and renamed it to APK Multi-tool
Sent from my GT-S5830 using Tapatalk 2
tj_droid said:
Actually apkmanager is outdated now. I read somewhere that the dev has fixed bugs and added new features and renamed it to APK Multi-tool
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
u have links for that ? if yes then can u post tutorial.
i need to learn how to edit xml files androidmanifest.xml because i want to change the name of a app. can u do that for me ?
like app name is abc but i want xyz. this the name which we see in app drawer or manage applications.

[TUTORIAL]Create your own MIUI ROM![BOTH BL'S]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So, i learnt how to make my MIUI rom out of this tutorial (all credits to sandy7), but with time the tut got old due to some bugs in miui rom, and if you use that, the rom will probably boot but with some bugs like reboots, launcher fc, etc etc. So i will make a complete guide including the tutorial by sandy with the additional files to make a fully working MIUI rom. Enjoy!
Click to expand...
Click to collapse
Code:
[SIZE="3"][FONT="System"][COLOR="Red"][I][B]*I'm not responsible for any damage you do to your device, however i will provide full support.[/B][/I][/COLOR][/FONT][/SIZE]
The basics!​
Things you'll need
Notepad++ - the notepad we will use to edit basically all files. Normal one won't work so don't even think about it
Base LT18i MIUI rom we will use this to get apps, fonts, etc
7-zip used to rebuild the rom
APKTool used to install apks in the PC so you won't get errors decompiling
ApkManager used to decompile and build apks
base MIUI rom! this is the base, i already fixed some bugs on it and deleted stuff
Click to expand...
Click to collapse
Let's get started with this!
1-Unrar the MIUI base rom i gave up in some folder you like, and open the lt18i one with winrar or 7zip.
2-Copy the folders app, fonts, framework and media from the LT18i ROM to the MIUI base. Don't worry if it doesn't ask you to replace anything. Delete SemcHdmiControlService.apk in miui base after copying
3-Open lib folders in both base and lt18i, and copy this from lt18i to base:
content-types.properties
liblbesec.so
liblocSDK_2.5OEM.so
libshell.so
libshell_jni.so
libshellservice.so
4-Open etc folders, and do the same as step 3 but with these files:
yellowpage.db
telocation.td
5-Open permissions foder in /etc, and same as step 3 with these files:
miui-framework.xml
com.google.android.media.effects.xml
com.google.widevine.software.drm.xml
com.google.android.maps.xml
6-Open xbin in both base and lt18i, and copy from lt18i to base:
shelld
Build.prop mods! Make your own!
In MIUI base, there's a folder named dev. If you don't know what that is, i'll try to give you a brief explanation: there are 4 xperia mdpis. In order to make a ROM that works on all of them with aroma, you need some files they require (like camera lib files) that are flashed right after the rom. There are 4 build.props in total, each in one dev folder, you can edit all or just the one that suits your phone, if rom is for personal use.
Open the build.prop you want, and edit the red lines with whatever you want:
Code:
ro.build.id=[COLOR="Red"]4.1.B.0.587[/COLOR]
ro.build.display.id=[COLOR="red"]MIUIAndroid 3.1.18[/COLOR]
ro.build.version.incremental=[COLOR="red"]3.1.18[/COLOR]
ro.rommanager.developerid=[COLOR="red"]miuiandroid[/COLOR]
ro.modversion=[COLOR="red"]MIUIAndroid-3.1.18-EN-WT19i[/COLOR]
ro.goo.rom=[COLOR="red"]MIUIAndroid-EN-WT19i[/COLOR]
Note: after ## Project Fluid™ ## in build.prop, you can delete everything, those are tweaks i forgot to remove, you just delete them and add the ones you like
Decompiling! Take that stupid black bar!
First of all, you need to install 3 files in order to make this work. Search for this files in /framework (MIUI base rom, not lt18i) and move them to apktool folder:
framework-res.apk
framework-miui-res.apk
SemcGenericUxpRes.apk
1-Shift-Right-click any blank space in APKTool folder, and click "Open command window here"
2-Copy and paste these 3 lines separed by enter (copy one, press enter, copy another, blabla):
apktool if framework-res.apk
apktool if framework-miui-res.apk
apktool if SemcGenericUxpRes.apk
Disabling auto-brightness and make the leds work
1-Copy framework-res.apk from miui base to apkmanager folder called place-apk-here-for-modding and open Script.bat
2-In the script, select 22, then select framework-res.apk, and then select 9 (decompile apk)
3-Once it's done, go to projects folder in apkmanager, open framework-res.apk, and go to res/values/bools.xml (right click, edit with notepad++)
4-Change this line:
Code:
<bool name="config_automatic_brightness_available">[COLOR="Red"]true[/COLOR]</bool>
to this:
Code:
<bool name="config_automatic_brightness_available">[COLOR="red"]false[/COLOR]</bool>
5-Go back to script.bat and choose option 11 (build apk)
It will ask "Is this a system app?" say yes to that
Then it'll ask "Do you wanna copy over any additional content..." say no to that
And we're done with framework-res.
Click to expand...
Click to collapse
Remove SystemUI black bar
1-Copy MiuiSystemUi.apk from miui base to apkmanager folder called place-apk-here-for-modding and open Script.bat
2-In the script, select 22, then select MiuiSystemUi.apk, and then select 9 (decompile apk)
3-Once it's done, go to projects folder in apkmanager, open MiuiSystemUi.apk, and go to res/values/drawables.xml (right click, edit with notepad++)
4-Delete this line:
Code:
<item type="drawable" name="notification_header_bg">#ff000000</item>
5-Go back to script.bat and choose option 11 (build apk)
It will ask "Is this a system app?" say yes to that
Then it'll ask "Do you wanna copy over any additional content..." say yes to that
It will pop-up a dialog, DO NOT PRESS ENTER!, go to keep folder in apkmanager and delete resources.arsc. Now, go to script.bat and press enter. Recompiling is done with no errors
And we're done with black bar
Click to expand...
Click to collapse
META-INF changing! Your ROM, not mine!
1-Go to META-INF/com/google/android and open aroma-config with notepad++
2-Edit these lines adding anything you want:
Code:
ini_set("rom_name", "[COLOR="Red"]MIUIv4[/COLOR]");
ini_set("rom_version", "[COLOR="red"]3.1.18[/COLOR]");
ini_set("rom_author", "[COLOR="red"]anerik[/COLOR]");
ini_set("rom_device", "[COLOR="red"]Xperia MDPI[/COLOR]");
ini_set("rom_date", "[COLOR="red"]18 jan 2013[/COLOR]");
3-Go to META-INF/com/google/android/aroma and open changelog.txt, write anything you want.
Now you have everything setted up, select all 4 folders and make a zip out of it with 7-zip. This will be 100% clean MIUI, in the next posts (tomorrow, sleep time now) i will add more addons like scripts, supercharger, etc! Just flash the ROM, it should boot fine, no launcher FC, no themes working bad, nothing.​
anerik said:
1-Right-click any blank space in APKTool folder, and click "Open command window here"
Click to expand...
Click to collapse
I don't know about linux but in windows it should be Shift+Right-Click...
BTW thanks for the tut....really helpful...will press the thanks button afterwards because this 8-thanks limit will not let me press it....
Regards,
AJ
alokbina said:
I don't know about linux but in windows it should be Shift+Right-Click...
BTW thanks for the tut....really helpful...will press the thanks button afterwards because this 8-thanks limit will not let me press it....
Regards,
AJ
Click to expand...
Click to collapse
lol such a noob error, my bad, thanks for pointing out
anerik said:
lol such a noob error, my bad, thanks for pointing out
Click to expand...
Click to collapse
Ur welcome buddy....
---------- Post added at 01:34 PM ---------- Previous post was at 01:03 PM ----------
So it is for all mdpi or a single device??
alokbina said:
Ur welcome buddy....
---------- Post added at 01:34 PM ---------- Previous post was at 01:03 PM ----------
So it is for all mdpi or a single device??
Click to expand...
Click to collapse
all mdpi!
:good::good::good::good::good:
sandy7 said:
:good::good::good::good::good:
Click to expand...
Click to collapse
:laugh:
Thanks in advance BRO! :good:
Really good tuturial.
kovacslaszlo13 said:
Thanks in advance BRO! :good:
Really good tuturial.
Click to expand...
Click to collapse
Thanks!!
Bugfixes!​
Bad keyboard!
-Yes, i forgot to replace keyboard. To fix:
1-Go to /system/app delete LatinImeGoogle.apk
2-Download this or any keyboard you like, and flash it or just unpack it on your ROM. Don't forget to hit thanks to the autor.
No wi-fi!
-This might just be kernel problem, but in any case, here are the modules, just unpack and copy folder lib to your system folder, replace if asked. Then flash
FC's!
-Kernel problem, i am unable to fix since i am on stock with locked bl. Just change your kernel
When i switch bluetooth on, bootloop?
-I believe kernel problem aswell, tested that a hundred times with no bootloop, stock talking.
cool thread dude.. is it possible to use a stock-rom as base for miui??
kulas1987 said:
cool thread dude.. is it possible to use a stock-rom as base for miui??
Click to expand...
Click to collapse
Yep the base he provided was of stock only just apps, fonts, framework and media folder was deleted
Best Regards,
AJ
alokbina said:
Yep the base he provided was of stock only just apps, fonts, framework and media folder was deleted
Best Regards,
AJ
Click to expand...
Click to collapse
yeh he right!
Thanks for the nice tutorial bro:good::good:
I'm using micromax A100.So far only one custom rom for it.I would like to port a miui rom for it..how do i select the appropriate version making sure that it will work on my phone?..I'm a noob.I'm sorry if i'm confusing you.:silly:
looks like not work for me,anyway thank for the tutorial
want to create latest miui rom for karbonn s5
I want to create latest version of miui rom for my karbon s5 titanium. So which version of miui can i used as a port ram.....?
and also ri8 now i m using miui v5 3.8.9, it working fine for my mobile, so can i use this rom as a base rom
Many thanks. Really helpful for me )
Sent from my ST18i using XDA Free mobile app
want to make/port a miui v5 rom for Nokia X2 dual sim...plz help
can i make a miui v5 rom for nokia x2 dual (android v4.3) using your tutorial?
plz give me some specific suggestions... there are no custom roms for this device.so, i want to make one..plz help.
this will mean a lot.
Any one ported MIUI 6 ?
how to repack MIUI rom then ?

[TUTORIAL][How-To] Edit .jar or .apk files using VTS

----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
PREFACE
Hello guys, first of all I want to say thanks to all the real developers (and not just rom-modder like me) that are here, helping us to get better performance and features everyday, so thanks to FXP, CosmicDan, DooMLorD, wedgess, smokerman, krisdee, Spizzy, Keiran, fareneith, Pizza_Dox, Bakisha, and many, many others.​
This guide is intended for those who want to make some mods, for example touchpads fix to their rom, and it's not too hard to understand how to do it (we will just use an IDE to achieve that, so it'll be pretty simple).
Let's start!​
Click to expand...
Click to collapse
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
DECOMPILING .APK AND .JAR FILES
without custom framework
Make sure you have installed NetFramework 4.5,
if not download it from here and then install ;
You can now install Virtuous Ten Studio (VTS):
download it from here and follow the passages to install it ;
Run VTS (you could easily find it under Start) ;
Now you can create a new Project:
simply click on File (on the left top) and select New Project ;
Projects can be of 4 kinds: apk, jar, m10 and boot.
Select apk if you want to edit an apk; select jar if you want to edit a jar ;
Compile the fields on the bottom (Solution and Project name) ;
Wait for VTS to create the folders...;
Now you can import the file you want to edit:
simply right-click on the project you have created (you can find it under Solution Explorer bar, on the left)
and select Import File, then find and select the file you want to edit ;
Here we go! VTS will now decompile our file, and when it finishes,
Solution Explorer bar will be updated to show you what your file contains (smali files and whatever) ;
Now you can make every modification you want to do;
When you have finished, you can recompile that file by right-clicking your project and selecting Build Project:
you can easily find your modded file, just click Binary (under Home tab on the top) and select your file project name;
Here we are! If you've got some questions, just ask here!
Click to expand...
Click to collapse
​​
Click to expand...
Click to collapse
​​
​
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
DECOMPILING .APK FILES
with custom framework
first of all, you must know what to do: just take a look at the guide above and follow the steps (from 1 to 7) ;
now you must take the custom resources needed from the apk you want to decompile to work (that resources file is another apk, generally located under /system/framework and its name contains always something like Res or Resources - for example SemcGenericUxpRes -) then place it wherever you want ;
once you've done that you can create your project (DON'T import now the app you want to modify, because you'll get errors related to missing resources) and set-up a custom framework: just right-click on your project and go under Properties ;
find External tools on the left and click on apktool: select Add single framework, import the custom-resources apk that you took from your rom ( see first step ) and set a Tag (the name you want to assign to that file) ;
now you must select that framework to be used instead of the default one: right-click on your project and go under properties; here you can find a selector called Framework tag: select the one you've just setted ;
that's it! Now you can import your custom-framework-based apk ( if you don't know how just take a look at the guide above - step 8 ) .
​
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------​
When i have the time, i really have to give this program a chance. Tnx for tutorial
Sent from my R800i using xda app-developers app
Good job, I've used vts.for awile now.its a great program.
Dark Lords Development Team
Needed to learn Apk Decompiling, now i can!,
simpler than apk tool..and easy to use in small changes..comes handy. nice post.
i have a problem with decompiling resource files can anyone help plz???
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and this is my log
raminta said:
and this is my log
View attachment 2048601
Click to expand...
Click to collapse
It seems apktool is missing, maybe an incorrect installation? Have you tried reinstalling?
CriGiu said:
It seems apktool is missing, maybe an incorrect installation? Have you tried reinstalling?
Click to expand...
Click to collapse
Yes but nothing has changed
Sent from my R800i using xda premium
raminta said:
Yes but nothing has changed
Sent from my R800i using xda premium
Click to expand...
Click to collapse
try using an older version of VTS, but I can't promise anything
it's clearly related to missing binary, and that's strange. does this happen just with that specific apk, or with all of them?
And keep in mind that you're decompiling an apk with a custom framework, so before you can decompile it, you must add its resources by right-clicking on your project, selecting properties, going under External tools and clicking on Apktool, selecting Add single framework (here you must place your resources apk file: it's generally located under /system/framework folder of your rom - the rom from which you're taking the apk you're modifing - it's something having for name SonyResources or something like that).
Then you must set that framework to be used instead of the "stock" one by right-clicking on your project and going under properties; here you can find a selector called Framework tag: select the one you've just placed in.
CriGiu said:
try using an older version of VTS, but I can't promise anything
it's clearly related to missing binary, and that's strange. does this happen just with that specific apk, or with all of them?
And keep in mind that you're decompiling an apk with a custom framework, so before you can decompile it, you must add its resources by right-clicking on your project, selecting properties, going under External tools and clicking on Apktool, selecting Add single framework (here you must place your resources apk file: it's generally located under /system/framework folder of your rom - the rom from which you're taking the apk you're modifing - it's something having for name SonyResources or something like that).
Then you must set that framework to be used instead of the "stock" one by right-clicking on your project and going under properties; here you can find a selector called Framework tag: select the one you've just placed in.
Click to expand...
Click to collapse
Ok thanks for replying:thumbup:
Sent from my R800i using xda premium

[GUIDE][GB]How to place a custom icon on the title bar of a certain app

Hey guys!
After some of @SpaceCaker 's modifications, we found out how to place a custom icon on the title bar of any app. Its not a style method but a whole new different method which is much workingproof. You can use your app's icon for reference. So, one of the synonyms that could be said for this guide is JellyBean Title Bar. The modification is very easy though, but the hard part is whether you find the right file which controls the title bar on a specified window. But, I can help you in this.
After following the guide, if you didn't understand it properly, just give me the app and I will place the custom JB title bar on it as per your request.
Requirments :
- Basic XML knowledge
- APK Multi TOOL/Whichever decompiling tool
- Sources on attachments
Click to expand...
Click to collapse
There are 2 different methods to make this.
First method means that the custom windows are located on layouts folder.
Second method means that the windows are located on XML folder.
The first method is very good and is bugfree, but unfortunately it depends on the app. If whether he has the windows located
on layouts folder or XML folder
The second method is not fully bugfree. If the app's windows are located on XML folder then the title bar is going to be scrolled with the chooserboxes too. The only way to fix it is to create a layout for the window.
Click to expand...
Click to collapse
Screenshots of both methods:
One of HelpCentre (1st method) example given below and the second of DSP manager (2nd method).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
1. Decompile the app you want to place the custom title bar. I will take a custom built app "HelpCentre.apk"
2. Download the sources on the attachments and place the layout "title" on the layout folder
and the custom id on ids.xml file on values folder.
Code:
<item type="id" name="imageView1">false</item>
Click to expand...
Click to collapse
3.
a) In the first method the windows are located on the layouts. So see the following :
Go to layouts folder and now find the layout which is responsible for the first window
Let's use an example :
I have credits.xml file on the layout folder. Now on this window, i want to place a custom title bar.
To do this i should include the custom title on layout folder on the first lines.
To make this, paste this code after xmlns:android="http://schemas.android.com/apk/res/android">
Code:
<include android:layout_width="fill_parent" android:layout_height="50.0dip" layout="@layout/title" />
Be sure to place it on the correct order.
I also, have FAQ.xml too. If i want edit this file too, there will be no title bar as on the end of the guide we will add
NoTitleBar theme on AndroidManifest.xml So, therefore i have to place the same value on it too.
Again, after the code xmlns:android="http://schemas.android.com/apk/res/android"> place this one :
Code:
<include android:layout_width="fill_parent" android:layout_height="50.0dip" layout="@layout/title" />
What if you want to use a custom title for the another window?
Easy, we are going to create another exact file as title.xml just that we will rename it different, like titleFAQ.xml.
On this XML we will change the android:icon value. We can use whatever value for the icon. For example,
"@drawable/ic_credits" Then, we will paste the png you want to place on the drawable-ldpi.
Now in the FAQ.xml file you want to place another icon title we should change the layout target so according to what I did so far on the file, this is the target i should place.
Code:
<include android:layout_width="fill_parent" android:layout_height="50.0dip" layout="@layout/titleFAQ" />
Click to expand...
Click to collapse
b) In the second method the windows are located on the XML folder. So follow below :
Go to XML folder and now find the XML which is responsible for the window.
So I will use the same example.
So let's say that the Credits.xml is on the XML folder. Now instead of including <include android:layout_width="fill_parent"......
you should include this code below xmlns:android="http://schemas.android.com/apk/res/android">
Code:
<CheckBoxPreference android:layout="@layout/title" android:title="Help Centre" android:key="Help_title_Centre" />
Android:title is the name of the title bar. You can set it to whatever name you want. Same goes with android:key.
To use another icon for the another title bar which is located on FAQ.xml like i mentioned before, change
Code:
<CheckBoxPreference android:layout="@layout/titleFAQ" android:title="Help Centre" android:key="Help_title_Centre" />
Click to expand...
Click to collapse
4. Now the final step is to go to AndroidManifest.xml and after the specified activity place the NoTitleBar theme
I edited Credits.xml and FAQ.xml so let's find their activity in there.
Code:
<activity android:name="Credits">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity android:name="FAQ">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
I now will add the theme value on both activities. This is the code
Code:
android:theme="@*android:style/Theme.Black.NoTitleBar"
After all it will look like this
Code:
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="Credits">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="FAQ">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
Now we're done working.
5. Recompile the apk
6. Sign it (Always sign if you edit AndroidManifest.xml)
Click to expand...
Click to collapse
Credits :
Full credits goes to the most amazing themer I have ever seen, @SpaceCaker!
He made many works for Touchwiz Resurrection ROM and I have based the guide upon that modifications just that I have edited
the code and fully explained it.
Also, Touchwiz Resurrection Team members @Vishnu pv and @radichification for their support!
Click to expand...
Click to collapse
Enjoy!
Regards,
Teddy
B]If you want to change the background target you should change something on title.xml or any other title xml you have created for your window.[/B]
Find :
Code:
<LinearLayout android:gravity="center_vertical"
Change :
Code:
android:background="@drawable/title_background"
to a different png target like :
Code:
android:background="@drawable/ics_title_background"
or :
Code:
android:background="@drawable/touchwiz_title_background"
And put the png on drawable-ldpi.
Also, I have included a normal icon for the title bar, but you can change it anytime, just replace it with another icon.
If you want to change the target of the icon find :
Code:
<ImageView android:id="@id/imageView1"
Change :
Code:
android:background="@drawable/title_icon"
To :
Code:
android:background="@drawable/ics_title_icon"
Or :
Code:
android:background="@drawable/touchwiz_title_icon"
And then like I mentioned before put the png on drawable-ldpi
I don't exactly know the title bar's size on LDPI but i think 50.0dip is alright. If someone tries it and the title bar is overlapped just reduce its size on the layout or XML on xml folder that you have edited.
Currently on the zip source I have included a Touchwiz title background as that's what I have atm, but you can get another one ICS or JB themed. I will provide them later. As per now, only touchwiz title background is available.
Download ZIP on attachments.
Don't forget to put correct credits if you are going to include this into your ROM/MOD/Theme.
Great Job Bro. Awesome Guide
Reserved. Awesome guide. Nice
Sent from my GT-S5360 using xda app-developers app
Very nice guide. Expecting more from you..
Sent from my GT-S5360 using Tapatalk 2
Wow! Very nice guide... Btw you have stated that "Download ZIP on attachments" but i dont find any zip attached here.
MuSaddiq said:
Wow! Very nice guide... Btw you have stated that "Download ZIP on attachments" but i dont find any zip attached here.
Click to expand...
Click to collapse
Whut?
I thought I uploaded xD
Or maybe it just is unavailable on tapatalk to be downloaded. Let me check it.
EDIT : Oh damn.. Internet had might been the problem. Wait will add the source as soon as possible. Sorry for the inconvience"
EDIT 2 : Added attachments. Sorry for inconvience again!
Sent from my GT-S5830i using Tapatalk 2
Good good good !!!
Sent from my GT-S5830i using Tapatalk 2
Hello!
Thank you for this guide. I was looking exactly for something like this because I've added a title_bar, on framework-res.apk, with the "Settings.apk" icon that, not only, added the title bar on Settings.apk but other apps receive the same title bar icon as well, which is lame.
And so, I've decided to follow your guide, not to change the title bar on every app that received the same title bar, because of the cahnges I've made on on framework, but simply to change it on Settings.apk, because that was my primary goal since the beginning.
All windows xml files are on xml folder. So I had to go with second method. Faced the expected bug (title bar scrolls with the window).
Sniper Killer said:
The second method is not fully bugfree. If the app's windows are located on XML folder then the title bar is going to be scrolled with the chooserboxes too. The only way to fix it is to create a layout for the window.
Click to expand...
Click to collapse
Err...could you be more specific? I'm sorry but I didn't quite understand how to fix it.
Can you help me?
Thank you!
Typhus_ said:
Hello!
Thank you for this guide. I was looking exactly for something like this because I've added a title_bar, on framework-res.apk, with the "Settings.apk" icon that, not only, added the title bar on Settings.apk but other apps receive the same title bar icon as well, which is lame.
And so, I've decided to follow your guide, not to change the title bar on every app that received the same title bar, because of the cahnges I've made on on framework, but simply to change it on Settings.apk, because that was my primary goal since the beginning.
All windows xml files are on xml folder. So I had to go with second method. Faced the expected bug (title bar scrolls with the window).
Err...could you be more specific? I'm sorry but I didn't quite understand how to fix it.
Can you help me?
Thank you!
Click to expand...
Click to collapse
Actually, creating a new layout for a random window tab requires creating new smalis something not easy to do. You could try to do some experiments and tests and follow any possible guide for it. I cannot help at the moment as I have really been busy with school and my personal stuff. Sorry! :/
OK Sniper.
Thanks anyway.
I'll try to figure it out.
How to place the icon on all apps ?
GSculerlor said:
How to place the icon on all apps ?
Click to expand...
Click to collapse
You should replace the icon with activity_title_bar.9.png on framework-res.apk/res/drawable-xdpi/. The png which you are going to replace must be a 9 patch png and also must be renamed to "activity_title_bar".
Sniper Killer said:
You should replace the icon with activity_title_bar.9.png on framework-res.apk/res/drawable-xdpi/. The png which you are going to replace must be a 9 patch png and also must be renamed to "activity_title_bar".
Click to expand...
Click to collapse
In our case its deawable-ldpi or mdpi in most of the roms instead of xdpi.:thumbup::thumbup::thumbup:
Sent from my GT-S5360 using Tapatalk 2
san122 said:
In our case its deawable-ldpi or mdpi in most of the roms instead of xdpi.:thumbup::thumbup::thumbup:
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
I wrote xdpi so it could be every density. X -> l, m, h.
Sent from my GT-S5830i using Tapatalk 2
Sniper Killer said:
I wrote xdpi so it could be every density. X -> l, m, h.
Sent from my GT-S5830i using Tapatalk 2
Click to expand...
Click to collapse
Oh sorry i took it as xhdpi
Sent from my GT-S5360 using Tapatalk 2
actually it doesnt really matter if u place pngs in xhdpi or hdpi.
only they need the proper size ofhdpi
this way we can also use a lot of xhdpi pngs on our little devices without resizing
why?
android very clever
they have their own resizing already inside only png needs proper size for its dpi.
Sent from my S500 using xda app-developers app
How to resize title bar ?
Sent from my GT-S5360 using xda app-developers app
GSculerlor said:
How to resize title bar ?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
If you placed rhis title bar only in settings then you need to add attribute windowtitlesize in your style.
If you did this via framework then open res/values/styles.xml abd search windowtitlesize and increase its value.
50.0 dip will look good for your titlebar.
Sent from my GT-S5360 using Tapatalk 2

Categories

Resources