So it turns out that you can easily enable theme support on the stock N3 launcher that is the same as what you get on the S5 launcher
Let's get started.
[SIZE=+1]NOTE: Make sure to install SecThemeChooser.apk and themes (duh) or this mod will be useless!![/SIZE]
Let's get started.
Items you will need
- apktool or baksmali+smali
- SecLauncher4.apk from /system/priv-app
Modding SecLauncher4.apk
- Decompile SecLauncher4.apk
- Navigate to com/android/launcher2
- Open Launcher.smali and look for the following method
Code:.method static constructor <clinit>()V
- Take a look at the constants at the very beginning of this method, it should look something like this:
Code:const/4 v1, -0x1 const/4 v3, 0x1 const/4 v2, 0x0
- Take note of the register which holds the value 0x1. In the snippet above, this register would be v3
- Now in this same method, scroll down until you find a line similar to the following:
Code:sput-boolean [color=red]v2[/color], Lcom/android/launcher2/Launcher;->CSCFEATURE_LAUNCHER_HOMESCREENEDITMODE:Z
- Replace v2 (or whatever register is used in your code) with the register that you took note of in the previous step. (Would be the v3 register using my snippet of code as an example). Your final code should look like this:
Code:sput-boolean [color=blue]v3[/color], Lcom/android/launcher2/Launcher;->CSCFEATURE_LAUNCHER_HOMESCREENEDITMODE:Z
- Now continue to scroll down in this same method until you find the first occurrence of CSCFEATURE_LAUNCHER_THEME_ENABLE. Code should look similar to this:
Code:sput-boolean [color=red]v2[/color], Lcom/android/launcher2/Launcher;->CSCFEATURE_LAUNCHER_THEME_ENABLE:Z
- Replace the register with the 0x1 register as you did for CSCFEATURE_LAUNCHER_HOMESCREENEDITMODE. Final code should look like this (v3 is the 0x1 register from my example code):
Code:sput-boolean [color=blue]v3[/color], Lcom/android/launcher2/Launcher;->CSCFEATURE_LAUNCHER_THEME_ENABLE:Z
- Save and close Launcher.smali
- Recompile SecLauncher4.apk
- Install SecThemeChooser.apk (you can grab it HERE) and that's it! You now have theme chooser support on your launcher. You can find themes in THIS THREAD as well as in the zip attached to this post. Enjoy!
[SIZE=+1]NOTE: Make sure to install SecThemeChooser.apk and themes (duh) or this mod will be useless!![/SIZE]
Attachments
Last edited: