[HOW TO] Install any font - Droid Incredible Themes and Apps

Okay, folks this is my first tutorial on xda. I am a loyal member that gets most of his info from searching and rarely needs to post. But, I just spent the last few hours figuring out how to install a specific font. I thought I would compile that info here so it is a lot easier for folks in the future.
You will need:
-Basic understanding of cmd and adb
-A file called UnSigner.exe (thanks baniaczek http://forum.xda-developers.com/showthread.php?t=329160)
There are many free fonts you can find online and for many of them you will not need to follow the directions pertaining to UnSigner. For the sake of this tutorial, lets assume you want to use a font from windows. You should pick 2 variations of the same font file; one for regular and one for bold.
1. Find the font file. On Windows 7, C:\Windows\Fonts
2. Copy the font file to a folder on your desktop called "Fonts"
3. Download and extract UnSigner.exe to the same folder called "Fonts". Download from the link above.
Now, in the Fonts folder you should have the desired font file(s) and the UnSigner.exe.
4. Rename the font file(s) to DroidSans and DroidSans-Bold, respectively.
5. Open cmd. In Vista and above; hit windows key, then type "cmd". Right click on "cmd" & run as administrator.
6. Change directories to the Fonts folder on your desktop.
Code:
cd c:\users\NAME\desktop\fonts
7. Run the UnSigner.exe on the desired font file
Code:
UnSigner.exe DroidSans.ttf
(Repeat for every font file desired)
For the following you should be in Unrevoked Recovery and already have made a backup.
8. In command prompt, start adb shell
Code:
cd c:\sdk\tools
adb shell
9. Mount system directory on your phone
Code:
mount /system
10. Copy font file from your sd card to the system directory overwriting the current one
Code:
cp /sdcard/DroidSans.ttf /system/fonts/
*It may be wise to backup the current fonts before overwriting them. I never worry tho, because every ROM has them & I can just pull it out and do the above for them, too.
(Repeat for every font file variation)
Tips: I use a light variation of the font for DroidSans.ttf & the regular variation for DroidSans-Bold.ttf, Clocktopia.ttf, gcsh00d-hkscs.ttf, & ucsh00d_c.ttf. The last two are the htc fonts in the widgets and such, I think. Also, a font file degrades with each copy that is made. It is best to make one copy of each font file desired and then rename them accordingly.
Have fun!

Or you could just put them all in one folder named fonts in sdk and adb push to system/fonts. That way you don't have to do all of them individually. Just my 2 cents.thanks for the tutorial though.

coolingout said:
Also, a font file degrades with each copy that is made.
Click to expand...
Click to collapse
Wut? Doh, the unsinger requirement. Even that should only make a difference the first time it's run on a file. Running it again shouldn't modify the file any more -- anything else is a bug.
Do you have links to any fonts that this actually does something with?
I installed Microsoft's Calibri, Cambria, and Consolas fonts (the Windows 7 versions) on my phone w/ Type Fresh without using that and they work fine. (Looks awesome too!)
I tried running unsigner.exe on those and some other fonts I had on my system that the font viewer say have digital signatures and it didn't modify them at all. They have the same MD5 hash.

Related

[GUIDE] How to create a your own ROM

How to create your own ROM update.zip for the T-Mobile MyTouch 3G
Things you will need to perform this:
Java SE Dev Kit from Sun. java.sun.com
May need Cygwin with zlib0 package, from cygwin.com
This will give you Android 1.6 with all the Google applications, Root access.
I never found one place where all this information is all together, so that is why I compiled this together.
Now anyone can do this themselves.
Thanks to all the hard work others have done before this.
1.
First Root your phone and install a new Recovery image, either Amon Ra or Cyanogens Recovery image.
Instructions for one-click root: http://theunlockr.com/2009/08/22/how-to-root-the-mytouch-3g-or-g1-in-one-click/
2.
Download the Android 1.6 System image from
http://developer.htc.com/google-io-device.html
extract the contents of signed-google_ion-img-14721.zip.
3.
You now need to extract the contents of system.img using a tool called unyaffs. The source code is here:
http://code.google.com/p/unyaffs/downloads/list
Or download a prebuilt win32 version here.
http://jiggawatt.org/badc0de/android/index.html
Note you may also need cygwin1.dll and cygz.dll (zlib0 package). Found at cygwin.com
Of course if you already have Cygwin installed with the GCC packages, you can just compile it yourself. Then also
if you comment out the line 67 to "// symlink(oh->alias, full_path_name);"
then it will not create the copies of the symbolic link file, and you will not have to worry about deleting duplicate
symbolic link files later.
Now in the directory where system.img exists, create a new directory called "system"
go into the "system" directory.
type the following command:
unyaffs ..\system.img
That should extract all the files from the system.img file into the system directory.
4.
Now we just need to clean up some items. Since the system.img is a linux file system, it has symbolic
links built into it, but when we extracted it, it just created duplicate files, if you used the prebuilt unyaffs.exe.
So we can just delete the duplicates and have a script recreate the symlink on install.
So we need to delete some extra files from the system\bin directory.
Run the attached DeleteExtras.bat file from the same directory where system.img is in.
If you notice, all the files it deletes are 28 byte files, and if you open them in notepad only contain:
"!<symlink>toolbox..."
And we will remake the symbolic link when it is installed.
5.
Now from the directory where the system.img is, enter the following commands
mkdir META-INF
mkdir META-INF\com
mkdir META-INF\com\google
mkdir META-INF\com\google\android
Now copy the included file "update-script.txt" into the "META-INF\com\google\android" directory
and RENAME it to just "update-script".
This update-script gets run to recreate the symbolic links.
Not sure if these two are needed but they are in some custom ROMs here:
Copy the two files "fix_permissions" and "flash_image" to the "system\bin" directory.
6.
-- Optional --
These add root and Superuser access to the ROM, plus the Terminal Emulator application.
Copy the file "su" from Cyanogen's rom to the folder "system\bin"
Copy the file "Superuser.apk" to the folder "system\app"
Copy the file "Term.apk" to the folder "system\app"
You can also replace the "system\etc\apns-conf.xml" with a more complete one from here:
http://forum.xda-developers.com/showthread.php?t=547718
or here
http://docs.google.com/Doc?docid=0AZNbAmKkmakoZGZxZHNwMnpfMjJkaHg3ejN3eg&hl=en
Turn data roaming off by default by editing line in the build.prop file:
ro.com.android.dataroaming=false
Also to fix the Market program to show "Protected" applications change the ro.build.fingerprint line to the following:
ro.build.fingerprint=tmobile/opal/sapphire/sapphire:1.5/COC10/150449:user/ota-rel-keys,release-keys
Only phones with a fingerprint of a "released" device can access some market applications.
--------------
7.
Now we just need to create a ZIP file for the final ROM
Zip up the following file and two folders:
boot.img
META-INF
system
8.
Now sign the zip file.
See here how to sign a ZIP file for flashing it.
http://androidforums.com/developer-101/8665-how-signing-roms.html
9.
Copy it to your SD card, boot into recovery, wipe, apply the update, Reboot.
You are now running Android 1.6!
the finger print is found in build.prop is this correct and what app do you use to edit your build.prop
Yes the fingerprint is in build.prop
Make sure to use an advanced text editor like TextPad, UltraEdit, or EditPlus. It has to handle UNIX text files.
Also use this for the update_script.
how abt kernel parameters?
How would one go about customizing this with Hero? Or is that not possible at this point?
detox702 said:
How would one go about customizing this with Hero? Or is that not possible at this point?
Click to expand...
Click to collapse
Would like more info on hot to incorporate senseui
Thanks for sharing... Got nothing to do today, so I experimented on my phone... I gotta say, I'm pretty amazed w/ this feature. Was able to sort out and organize my files.
Kudos!
How does one create the system.img file once one has the system files...
What I want to do is use some of the custom roms here and put it on an AVD emulator system.
Can someone help with this please.
NOTE: I dont have linux. So if there is an alternative to mkbootimg, it will be excellent.
the ion is the 32b if I'm not mistaken?
Is there an image for the 32a or do we always have to use the ion and throw a patch over it?
Sorry if this is a stupid question
in step 5. it says
Not sure if these two are needed but they are in some custom ROMs here:
Copy the two files "fix_permissions" and "flash_image" to the "system\bin" directory.
Where do i copy the files from or download please?
thanks in advance
P.S. any tips on changing the splash screen would be much appreciated.
DeleteExtras.txt or DeleteExtras.bat doesn't work. I have to delete the extra files by myself - one by one.
codysoloman said:
DeleteExtras.txt or DeleteExtras.bat doesn't work. I have to delete the extra files by myself - one by one.
Click to expand...
Click to collapse
check this: http://forum.xda-developers.com/showthread.php?t=633246
Perhaps someone here knows or could point me to the right resources, but if the phone isn't supported by Cyanogen, how would a custom rom be made in that case?
How is a custom rom made from scratch? Since android is just linux, is it simply a matter of building it with the right drivers for the phone and installing it? How can an image be manually copied to the phone if it isn't supported by Clockwork recovery? How can it's steps be manually done?
ping pong...
Can i install my own rom on samsung ace?????
anybody knows how to make a ROM customized and make a "update.img" to run on a un-rootable device? I know when you backup a linux image for example ubuntu, this image will run on all other PCs, the image will automatically knows the new PC's drivers and adapt everything with that, is it what happening to an android too ?
---------- Post added at 08:36 AM ---------- Previous post was at 08:33 AM ----------
and pls let me know how to open/edit a "update.img" file, thnx
Question
androidcustomrom said:
How to create your own ROM update.zip for the T-Mobile MyTouch 3G
Things you will need to perform this:
Java SE Dev Kit from Sun. java.sun.com
May need Cygwin with zlib0 package, from cygwin.com
This will give you Android 1.6 with all the Google applications, Root access.
I never found one place where all this information is all together, so that is why I compiled this together.
Now anyone can do this themselves.
Thanks to all the hard work others have done before this.
1.
First Root your phone and install a new Recovery image, either Amon Ra or Cyanogens Recovery image.
Instructions for one-click root: http://theunlockr.com/2009/08/22/how-to-root-the-mytouch-3g-or-g1-in-one-click/
2.
Download the Android 1.6 System image from
http://developer.htc.com/google-io-device.html
extract the contents of signed-google_ion-img-14721.zip.
3.
You now need to extract the contents of system.img using a tool called unyaffs. The source code is here:
http://code.google.com/p/unyaffs/downloads/list
Or download a prebuilt win32 version here.
http://jiggawatt.org/badc0de/android/index.html
Note you may also need cygwin1.dll and cygz.dll (zlib0 package). Found at cygwin.com
Of course if you already have Cygwin installed with the GCC packages, you can just compile it yourself. Then also
if you comment out the line 67 to "// symlink(oh->alias, full_path_name);"
then it will not create the copies of the symbolic link file, and you will not have to worry about deleting duplicate
symbolic link files later.
Now in the directory where system.img exists, create a new directory called "system"
go into the "system" directory.
type the following command:
unyaffs ..\system.img
That should extract all the files from the system.img file into the system directory.
4.
Now we just need to clean up some items. Since the system.img is a linux file system, it has symbolic
links built into it, but when we extracted it, it just created duplicate files, if you used the prebuilt unyaffs.exe.
So we can just delete the duplicates and have a script recreate the symlink on install.
So we need to delete some extra files from the system\bin directory.
Run the attached DeleteExtras.bat file from the same directory where system.img is in.
If you notice, all the files it deletes are 28 byte files, and if you open them in notepad only contain:
"!<symlink>toolbox..."
And we will remake the symbolic link when it is installed.
5.
Now from the directory where the system.img is, enter the following commands
mkdir META-INF
mkdir META-INF\com
mkdir META-INF\com\google
mkdir META-INF\com\google\android
Now copy the included file "update-script.txt" into the "META-INF\com\google\android" directory
and RENAME it to just "update-script".
This update-script gets run to recreate the symbolic links.
Not sure if these two are needed but they are in some custom ROMs here:
Copy the two files "fix_permissions" and "flash_image" to the "system\bin" directory.
6.
-- Optional --
These add root and Superuser access to the ROM, plus the Terminal Emulator application.
Copy the file "su" from Cyanogen's rom to the folder "system\bin"
Copy the file "Superuser.apk" to the folder "system\app"
Copy the file "Term.apk" to the folder "system\app"
You can also replace the "system\etc\apns-conf.xml" with a more complete one from here:
http://forum.xda-developers.com/showthread.php?t=547718
or here
http://docs.google.com/Doc?docid=0AZNbAmKkmakoZGZxZHNwMnpfMjJkaHg3ejN3eg&hl=en
Turn data roaming off by default by editing line in the build.prop file:
ro.com.android.dataroaming=false
Also to fix the Market program to show "Protected" applications change the ro.build.fingerprint line to the following:
ro.build.fingerprint=tmobile/opal/sapphire/sapphire:1.5/COC10/150449:user/ota-rel-keys,release-keys
Only phones with a fingerprint of a "released" device can access some market applications.
--------------
7.
Now we just need to create a ZIP file for the final ROM
Zip up the following file and two folders:
boot.img
META-INF
system
8.
Now sign the zip file.
See here how to sign a ZIP file for flashing it.
http://androidforums.com/developer-101/8665-how-signing-roms.html
9.
Copy it to your SD card, boot into recovery, wipe, apply the update, Reboot.
You are now running Android 1.6!
Click to expand...
Click to collapse
Could you tell me where I can correct the fake data in the phone like the real RAM is 512 MB but it say 1GB ,can you tell me how to
correct it thanks in advance:good:

[Fonts] Darkstar, Zune, Comfortaa, Stock

Metamorph theme that includes these four fonts:
Darkstar
Zune
Comfortaa
Stock
To use with MetaMorph:
Download MetaMorph from the market (FREE version, this will not work with MetaMorph PRO)
Place attached .zip on sdcard in a folder called AndroidThemes
Open MetaMorph, run the checks, "Pick Theme", select Fonts
Select the font you want to use
MetaMorph will ask you to reboot, click Yes. If you click YES and nothing happens (the popup asking you to reboot keeps coming up), just click NO and reboot manually.
If for some reason you are adamantly against MetaMorph, you can still use these:
Open the attached .zip
Extract the folder with the name of the fonts you want to use
Put said folder in your tools directory
Open your command prompt and navigate to your tools folder and type:
Code:
adb remount
adb push [B]<name of font folder you're using>[/B] /system/fonts/
adb reboot

[Q] doubt about boot animation

Hi, im using cm7 , and just flashed trinity 1.1uv
the boot animation changed for the trinity one.
but the one that comes with cm7 is way better!
how can i change it?
do i need to delete the bootanimation.zip from the kernel before flashing it?
thx for the attention
hamtar0 said:
Hi, im using cm7 , and just flashed trinity 1.1uv
the boot animation changed for the trinity one.
but the one that comes with cm7 is way better!
how can i change it?
do i need to delete the bootanimation.zip from the kernel before flashing it?
thx for the attention
Click to expand...
Click to collapse
Sorry for thanks ^^
1. extract your downloaded cm build and go to system/media copy bootanimation.zip
2. copy to your sdcard
3. push to system/media on phone & delete /system/media/audio/poweron
4. reboot
5. enjoy
Actually, you can extract the bootanimation.zip from the rom, and then directly use adb, skipping the sdcard altogether:
adb remount
adb push bootanimation.zip /system/media/
The above works provided your copy of adb is included in your PATH system variable and that you're running it from the directory you've extracted bootanimation.zip. Otherwise, type bootanimation.zip's full path in the push command, and type the command in the directory where adb is installed.
Voilà!
Now, some extra tips:
You can rename files as you push them with adb, which means you could have multiple boot animations in a directory on your computer, and push whichever one you want on a whim, ie:
adb push bootanimation_somethingelse.zip /system/media/bootanimation.zip
There are many articles out there on making your own animation, I'll just add that 7zip works pretty well to make the archive (use the "store" method), optipng might repair images that don't seem to work otherwise, also make sure you have a text editor that can handle Unix-style line returns for the desc.txt file.
I personally use the stock Nexus boot animation, but with one addition: I put contact information in case the phone is found.
Goodbye,
Darkshado
Darkshado said:
Actually, you can extract the bootanimation.zip from the rom, and then directly use adb, skipping the sdcard altogether:
adb remount
adb push bootanimation.zip /system/media/
The above works provided your copy of adb is included in your PATH system variable and that you're running it from the directory you've extracted bootanimation.zip. Otherwise, type bootanimation.zip's full path in the push command, and type the command in the directory where adb is installed.
Voilà!
Now, some extra tips:
You can rename files as you push them with adb, which means you could have multiple boot animations in a directory on your computer, and push whichever one you want on a whim, ie:
adb push bootanimation_somethingelse.zip /system/media/bootanimation.zip
There are many articles out there on making your own animation, I'll just add that 7zip works pretty well to make the archive (use the "store" method), optipng might repair images that don't seem to work otherwise, also make sure you have a text editor that can handle Unix-style line returns for the desc.txt file.
I personally use the stock Nexus boot animation, but with one addition: I put contact information in case the phone is found.
Goodbye,
Darkshado
Click to expand...
Click to collapse
My Version is more noob like so see what he will choose D
Hey guys,
i've found another 'very' good kernel which, i think, does not change your boot animation. It has bln-support and voodoo, it works for both 9020 and 9023 users. Just check it out:
http://forum.xda-developers.com/showthread.php?t=1100448
thank you guys!

[HOWTO][TUT] Create a Custom ROM for Samsung Galaxy i9003

Hey there,
This is a guide on How to create a ROM
For boot sound, boot animation and themeing
Installing cygwin and Setting the kitchen up!
Finalizing , de-odexing, additional option and packing the ROM
Things you will need
-Cygwin
-Android Kitchen
-Patience
-Base ROM
--All files attached at the end--
-MagicISO
PS-> WIndows 7 users set the UAC level to minimum until you finish the whole thing. And also, make sure that nothing wxcept the META-INF folder in your ROM ins capital in letters! Just a small obseravtion in my third ROM! =P
First of all, let us extract the ROM files:
As you can see, In the folder of the XXKPH ROM, you have a system.rfs file. Copy that out to a seperate folder. In case, of any other base ROM, you can find it in the PDA file.
Now use MagicISO in order to extract the system.rfs into a seperate folder!
After that, you may find something with folders like, : app, vendor,etc,media and xbin.
Adding your apps!
Step 2
You are done with the first step!
Now, rename the folder where you have extracted system.rfs to “System” (without quotes) and move it to another folder. Call the new folder as “Custom FW”. Now create a folder called data, in which you create a sub-folder “app”. All the apps what you want to be pre-installed and can be deleted by the user go in here. (only .apk format). If you want apps which the user can not un-install, put the .apk in system/app.
Step 3
You may want to add custom boot sound and some themes,right? Okay! So here is the method.
Cutom Boot sound
First, navigate to /system/etc and find PowerOn.wav. This will enable you to change the boot sound. Replace it with a short tone of .wav format only. Now you,have changed the boot sound
To change the boot animation
1) Download the bootanimation and samsungani file attached below.
2) Put them in the /system/bin folder and replace the existing files there
3) Now download any boot animation, and rename the bootanimation to “sanim.zip”.
4) Now, navigate to /system/media and replace the “ODEanim” with “sanim.zip”
You are done with the bootanimation change
TO change the theme
Just replace the framework-res.apk and twframework-res.apk in the /system/framework folder
Installing Cygwin
Installing the Cygwin and Setting up the Kitchen
Download the Cygwin files attached below. Extract the zip to a folder. Now, you can see 3 icons, a read-me,a setup, and a folder. Choose the setup. Here You will choose install from local directory. Next, Navigate to the the folder of extraction of cygwin and choose the folder Cygwin_packages inside the cygwin extraction folder. Wait for some time. Then, You will come across a list of file. Click the 2-circle-arrows,untill, it displays “install”
After the procedure is complete, run the batch file. Now, minimise it and extract the android kitchen.
Keep it in some location like C:\Kitchen
Now, open the batch file window and type
cd C:\Kitchen
Wait for some time and then when the location the changed, type
./menu
As this is a HTC kitchen, you can't use all the features,
Now, go back to the folder “custom FW” and create a zip ( I repeat zip and NOT rar) of all the folder in the “Custom FW”. After that is done, navigate to the kitchen folder (C:\Ktichen) and palce the .zip in the “original_update” folder
Come back to the Cygwin Batch window. Now you select 1 (i.e. the first option and press enter.
Then, again press 1 twice!
Now after this is done, you can also use option 2 (rooting). You can change the ROM's name using option 8.
Step 5
De-odexing the FW.
In the batch window, choose option 0 and then choose 1.
Using this you can de-odex your FW.
Next, choose 99 to build and pack you ROM
And you are done with the custom ROM
---------------------------------------------------
Thanks to @sakindia123
Extracting and odin build
Code:
xvf ODIN_FILE.tar.md5
NOTE:.md5 is optional
Rebuilding
Code:
$ tar -H ustar -c amss boot.img csc.rfs recovery.img system.rfs >ODIN_FILE.tar
$ md5sum -t ODIN_FILE.tar >>ODIN_FILE.tar (signing the file)
$ mv ODIN_FILE.tar ODIN_FILE.tar.md5
Of course,u Have to put the name of ur file in place of ODIN_FILE
Mounting rfs(on linux)
Code:
mkdir system_mount
$ mount -o loop system.rfs system_mount
$ cp /folder/application.apk system_mount/app/ (adding aplications)
$ rm system_mount/app/application.apk (removing applications)
$ cp /folder/application.apk system_mount/app/application.apk (replacing aplications)
$ umount system_mount
Regards,
Rohan Mallya! =D
The essential files!
For the Kitchen ( thanks to dsixida)
For cygwin
Remeber to thank and vote in the POLL!!
Custom booting files ( one you have to replace for the bootanimation before you add sanim.zip!)(samsungani and bootanimation files)
MagicISO
Credits -.-
Misledz
Ganaboy
ronhoover88
Namaless
Vivek
Erahgon
Very informative posts. I hope this will lead to more ROM for our cellphone.
More things! ☻☻
You can zipalign and sign the ROM in HTC Android Kitchen itself! While COmpiling your ROM, Just select the interactive method! You can do it all there!
If you want to changes the build date and all, you can open the build.prop(present in /system folder) and change the values!
Reserved for future
If I may ask, do you have a source link for this or is it from you?
I typed it WHOLE? So..?? I did not get you well?
No worries, it's just I like to read the comments which are usually a good complement for every tut/info, so if it were from elsewhere I would have been happy to read them, that's all
can i use this port the miui rom?
r u sure u hav not copied this from elsewhere....bcoz the boot ani thing is wrong......i9003 has different format.....(i mayb wrong)
What boot ini,sak? Elaborate please??
You could also use the link below
http://forum.xda-developers.com/showthread.php?t=1168916
Sent from my GT-I9003 using XDA App
@ronhoover88 I went through it now. But, I think you cant use that meta-inf folder, the kernel adn the root script from that guide..If you feel this is thread is a WASTE OF TIME..Please tell me..I will make an attempt to delete it!
You dont have to delete...you have put a lot of effort...what i feel is, its better if you have created a rom using this guide and got it working...
Sent from my GT-I9003 using XDA App
Dude combined all this info in a single post
Sent from my GT-I9003 using XDA Premium App
The bootanimation thing is totally from vivek's thread..try it! It woooorks!

[SUBSTRATUM][FULL guide] Change accent colors of non-system apps

FULL GUIDE TO CHANGE ACCENT COLORS
Hello everybody, This is my first post on xda. This guide is for those who want to change accent colors of non-system apps manually using substratum.
PREREQUISITIES
1.Rooted Android Phone
2.substratum theme engine(download from playstore)
3.Android Studio
4.Git installed on PC
5.APK tool (You can find easily on google)
6.Notepad++
STEPS
1.First of all, clone Substratum Theme Project from git into your Android Studio project
https:github.com/substratum/template (Add //)
2. Then change Theme Name,Email that is used for queries and other details in theme_configurations.xml
3.Then connect your device with the PC. Make sure ADB is installed in your computer and your phone has USB Debugging enabled.( Device Drivers should be installed too)
4.Go to the folder where ADB is installed(where adb.exe is located) and open a cmd window there(shift+right click)
5. Confirm that your device is connected properly by typing "adb devices"(without double quotes)
6.Once your device has been connected properly,you will see your device in List Of Devices
8. Then open root browser on your mobile and navigate to data/app/
9.Locate the android app folder you want to theme.(App must be installed on your phone)
Then type adb pull /data/app/com.android.yourapp/base.apk (Here change the app folder and app name accordingly.Copy the base.apk to apktool folder
7.Then open an another cmd window in to folder where apktool(jar) is located.
10.Then go to the cmd you opened in apktool folder,Type apktool_2.3.0.jar d base.apk
11.Then a folder will be created in that directory.
12.Then open the app in your phone with the device connected to pc and leave the phone with screen open(idle)
13.Go to tools->Android->Android Device Monitor->Dump View Hierarchy for UI Automator
14.Then a screenshot will get opened.
15.Moving the mouse will create a certain red boundary
16.Point it to any element you want to theme and check its resource-id
17.Then go to the folder which you created while decompiling the apk using apktool
18. Copy the path to that directory
19.Open Notepad++ and press Ctrl+Shift+F
20. Enter the resource-id you saw in "Find what" and directory in "Directory"
21.Notepad++ will search for this name in all the files of all the folders.
22. Then you will get some search results
23.Open the search result wherever you see background color code
24. Copy the line you want to change
(YOU CAN ALSO CHANGE THE COLORS USING COLORS.XML PRESENT IN res/values/colors.xml)
25.Then open Android studio and delete all the folders INSIDE the OVERLAYS FOLDER
26.In overlays folder,create a folder named com.android.(yourapp) and inside that folder create the whole directory of the file you edited) For example-> If you edited colors.xml,then create res folder and inside it create values then create a xml file named colors.xml
27. Inside that XML file inside the resources tag, paste the line you copied (The one you want to edit).
28. Compile and run the project on your phone(You will see the substratum theme installed on your phone with your app as a option)
29. Apply it and see the difference
(TIP: If you want to interchange white and black colors of the app, edit colors.xml and change all the white colors to black.After doing this,check whether all the colors are as desired. If not,change the color of a specific element manually as in this tutorial)
30. VOILA.!! You just made your first Substratum Theme. Good luck Themer...!!
(This method works on most apps)
Do ask if u have any query
Dosen't work
rohan_asthana said:
FULL GUIDE TO CHANGE ACCENT COLORS
Hello everybody, This is my first post on xda. This guide is for those who want to change accent colors of non-system apps manually using substratum.
PREREQUISITIES
1.Rooted Android Phone
2.substratum theme engine(download from playstore)
3.Android Studio
4.Git installed on PC
5.APK tool (You can find easily on google)
6.Notepad++
STEPS
1.First of all, clone Substratum Theme Project from git into your Android Studio project
https:github.com/substratum/template (Add //)
2. Then change Theme Name,Email that is used for queries and other details in theme_configurations.xml
3.Then connect your device with the PC. Make sure ADB is installed in your computer and your phone has USB Debugging enabled.( Device Drivers should be installed too)
4.Go to the folder where ADB is installed(where adb.exe is located) and open a cmd window there(shift+right click)
5. Confirm that your device is connected properly by typing "adb devices"(without double quotes)
6.Once your device has been connected properly,you will see your device in List Of Devices
8. Then open root browser on your mobile and navigate to data/app/
9.Locate the android app folder you want to theme.(App must be installed on your phone)
Then type adb pull /data/app/com.android.yourapp/base.apk (Here change the app folder and app name accordingly.Copy the base.apk to apktool folder
7.Then open an another cmd window in to folder where apktool(jar) is located.
10.Then go to the cmd you opened in apktool folder,Type apktool_2.3.0.jar d base.apk
11.Then a folder will be created in that directory.
12.Then open the app in your phone with the device connected to pc and leave the phone with screen open(idle)
13.Go to tools->Android->Android Device Monitor->Dump View Hierarchy for UI Automator
14.Then a screenshot will get opened.
15.Moving the mouse will create a certain red boundary
16.Point it to any element you want to theme and check its resource-id
17.Then go to the folder which you created while decompiling the apk using apktool
18. Copy the path to that directory
19.Open Notepad++ and press Ctrl+Shift+F
20. Enter the resource-id you saw in "Find what" and directory in "Directory"
21.Notepad++ will search for this name in all the files of all the folders.
22. Then you will get some search results
23.Open the search result wherever you see background color code
24. Copy the line you want to change
(YOU CAN ALSO CHANGE THE COLORS USING COLORS.XML PRESENT IN res/values/colors.xml)
25.Then open Android studio and delete all the folders INSIDE the OVERLAYS FOLDER
26.In overlays folder,create a folder named com.android.(yourapp) and inside that folder create the whole directory of the file you edited) For example-> If you edited colors.xml,then create res folder and inside it create values then create a xml file named colors.xml
27. Inside that XML file inside the resources tag, paste the line you copied (The one you want to edit).
28. Compile and run the project on your phone(You will see the substratum theme installed on your phone with your app as a option)
29. Apply it and see the difference
(TIP: If you want to interchange white and black colors of the app, edit colors.xml and change all the white colors to black.After doing this,check whether all the colors are as desired. If not,change the color of a specific element manually as in this tutorial)
30. VOILA.!! You just made your first Substratum Theme. Good luck Themer...!!
(This method works on most apps)
Do ask if u have any query
Click to expand...
Click to collapse
It doesn't work on xposed installer .
substratum isn't showing xposed installer in it's overlays.
Thanks for the post.

Categories

Resources