Nexus & Cookies: A More Focused Direction?

It is that time of the year again, and we are approaching the day where Android fans all over … more

LG G4 US Carrier Release Dates

The LG G4 was announced on April 29th with its Snapdragon 808 SoC, a welcomed change from its higher-end … more

Microsoft Reaches Pre-Install Agreement With New OEMs

As of late, Microsoft has been making a subtle but widespread play into the … more

Discover XDA: Discover Greater

We’ve all been there at some point in our XDA lives; we used to spend hours browsing over the … more
Thread Deleted Subscribe to Thread Email Thread

[MOD][HOW-TO] Enable theme support on N3 launcher

Prev Previous Post   Next Post Next
15th May 2014, 02:42 AM |#1  
CNexus's Avatar
OP Recognized Contributor
Flag ~/android
Thanks Meter: 13,829
Donate to Me
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.


Items you will need

  • apktool or baksmali+smali
  • SecLauncher4.apk from /system/priv-app


Modding SecLauncher4.apk

  1. Decompile SecLauncher4.apk
  2. Navigate to com/android/launcher2
  3. Open Launcher.smali and look for the following method
    .method static constructor <clinit>()V
  4. Take a look at the constants at the very beginning of this method, it should look something like this:
        const/4 v1, -0x1
        const/4 v3, 0x1
        const/4 v2, 0x0
  5. Take note of the register which holds the value 0x1. In the snippet above, this register would be v3
  6. Now in this same method, scroll down until you find a line similar to the following:
    sput-boolean v2, Lcom/android/launcher2/Launcher;->CSCFEATURE_LAUNCHER_HOMESCREENEDITMODE:Z
  7. 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:
    sput-boolean v3, Lcom/android/launcher2/Launcher;->CSCFEATURE_LAUNCHER_HOMESCREENEDITMODE:Z
  8. 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:
    sput-boolean v2, Lcom/android/launcher2/Launcher;->CSCFEATURE_LAUNCHER_THEME_ENABLE:Z
  9. 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):
    sput-boolean v3, Lcom/android/launcher2/Launcher;->CSCFEATURE_LAUNCHER_THEME_ENABLE:Z
  10. Save and close Launcher.smali
  11. Recompile SecLauncher4.apk
  12. 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!

NOTE: Make sure to install SecThemeChooser.apk and themes (duh) or this mod will be useless!!
Attached Files
File Type: zip - [Click for QR Code] (18.40 MB, 2539 views)
Last edited by CNexus; 15th May 2014 at 03:44 AM.
The Following 27 Users Say Thank You to CNexus For This Useful Post: [ View ]
Subscribe to Thread

n3 launcher themes, n3 theme support, n3 themes, secthemechooser, themes
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes