Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,770,713 Members 39,330 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
CNexus
Old
(Last edited by CNexus; 15th May 2014 at 03:44 AM.)
#1  
CNexus's Avatar
Recognized Contributor - OP
Thanks Meter 13546
Posts: 9,033
Join Date: May 2012
Location: /home/cnexus/android

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

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.

Quote:
Items you will need
  • apktool or baksmali+smali
  • SecLauncher4.apk from /system/priv-app
Quote:
Modding SecLauncher4.apk
  1. Decompile SecLauncher4.apk
  2. Navigate to com/android/launcher2
  3. Open Launcher.smali and look for the following method
    Code:
    .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:
    Code:
        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:
    Code:
    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:
    Code:
    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:
    Code:
    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):
    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 SecThemeChooser_themes.zip - [Click for QR Code] (18.40 MB, 1158 views)
Sign up for the new Copy file storage service with this link and get both of us an extra 5 GB!
Or sign up for Dropbox with this link and we can both grab some extra storage!

The Following 24 Users Say Thank You to CNexus For This Useful Post: [ Click to Expand ]
 
Walter.White
Old
(Last edited by Walter.White; 16th May 2014 at 12:35 AM.)
#2  
Walter.White's Avatar
Senior Member
Thanks Meter 1021
Posts: 786
Join Date: Nov 2013

 
DONATE TO ME
Or this http://forum.xda-developers.com/show....php?t=2722650

But still nice work

I like your flashlight mod from here http://forum.xda-developers.com/show....php?t=2617552

I wish you could update this brightness toggle mod for 4.4 (I'll really appreciate it) http://forum.xda-developers.com/show....php?t=2188503
 
CNexus
Old
#3  
CNexus's Avatar
Recognized Contributor - OP
Thanks Meter 13546
Posts: 9,033
Join Date: May 2012
Location: /home/cnexus/android

 
DONATE TO ME
Quote:
Originally Posted by Walter.White View Post
Or this http://forum.xda-developers.com/show....php?t=2722650

But still nice work

I like your flashlight mod from here http://forum.xda-developers.com/show....php?t=2617552

I wish you could update this brightness toggle mod for 4.4 (I'll really appreciate it) http://forum.xda-developers.com/show....php?t=2188503
Yeah but I hate xposed with a passion. Whenever mods can be implemented natively I prefer to go that route
Sign up for the new Copy file storage service with this link and get both of us an extra 5 GB!
Or sign up for Dropbox with this link and we can both grab some extra storage!

The Following 6 Users Say Thank You to CNexus For This Useful Post: [ Click to Expand ]
 
AxAtAx
Old
#4  
AxAtAx's Avatar
Senior Member
Thanks Meter 12196
Posts: 10,451
Join Date: Mar 2011
Location: ViSiONViLLE

 
DONATE TO ME
Quote:
Originally Posted by CNexus View Post
Yeah but I hate xposed with a passion. Whenever mods can be implemented natively I prefer to go that route
I agree, I hate xposed in my roms....

I want to say thanks for this, awesome work....very cool indeed.

Again, thank you sir!

The Following 2 Users Say Thank You to AxAtAx For This Useful Post: [ Click to Expand ]
 
maskerwsk
Old
#5  
maskerwsk's Avatar
Senior Member
Thanks Meter 1477
Posts: 1,246
Join Date: Dec 2011
Location: Sheffield

 
DONATE TO ME
Quote:
Originally Posted by Walter.White View Post
Or this http://forum.xda-developers.com/show....php?t=2722650

But still nice work

I like your flashlight mod from here http://forum.xda-developers.com/show....php?t=2617552

I wish you could update this brightness toggle mod for 4.4 (I'll really appreciate it) http://forum.xda-developers.com/show....php?t=2188503
4.4 already has the hide show brightness bar mod implemented,
you just need to broadcast 'notification_panel_brightness_adjustment' as your android id

GalactusMOD + Galactus Shortcuts and ROM Control

https://www.paypal.com/cgi-bin/websc...=KRRF69SYRRNDJ
If you like my work and would like to buy me a beer
 
bmwh0r3
Old
#6  
Senior Member
Thanks Meter 165
Posts: 450
Join Date: Apr 2014
Location: pa
Anyone have a flash able zip? I'm too scared to mess something up lol

Sent from my SM-N900V using XDA Premium 4 mobile app
The Following User Says Thank You to bmwh0r3 For This Useful Post: [ Click to Expand ]
Tags
n3 launcher themes, n3 theme support, n3 themes, secthemechooser, themes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes