[prjkt.io] rohan_asthana:
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