Hi everyone! I'm trying to port this lockscreen: http://forum.xda-developers.com/showthread.php?p=32385441 to stock JB but I have some problems
The mod basically replace the stock aosp lockscreen editing files in framework.jar and android.policy.jar. ICS_XD told me that it's only for aosp but maybe he's worng.I think he's wrong because of this thread : http://forum.xda-developers.com/showthread.php?t=1538828
How to change the Samsung Circle lockscreen to the Ice Cream Sandwich lockscreen on XXLPH:
1) Decompile android.policy.jar
2) Edit the file called: LockPatternKeyguardView.smali
3) change the line:
iput-boolean v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->CIRCLELOCK_MODE:Z
to
iput-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->CIRCLELOCK_MODE:Z
it's in the beginning of the init contructor (about line 152)
What this does is that it tells the createLockScreen method to use the Lockscreen class instead of the CircleLockscreen class.
4) Compile the android.policy.jar again and you are done.
Click to expand...
Click to collapse
So if it's posible to change the createLockscreen method use LockScreen instead of the stock sammy lockscreen the mod probably work
I'm not a developer and I don't know much about java programming but I am reading a lot and I need some help
There's no iput-boolean v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->CIRCLELOCK_MODE:Z on LockPatternKeyguardView, I'm sure it's because it's ics and not jb, and I don't know what to change on similar lines so that's basically what I'm asking
This is my LockPatternKeyguardView : https://www.dropbox.com/s/bkv8uztpfsntutt/LockPatternKeyguardView.smali
the createLock method that I've changed it's on line 1319
All the help will be rewarded with smile faces and many thanks
Of course ICS_XD is wrong!!! Lol! How do I know?....
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
...thats on LSJ.
I cant view your lockpatternkeygyardview. Dropbox says i dont belong there!
You need a logcat of the error.
Sent from my GT-I9100 using Tapatalk 2
Goldieking said:
Of course ICS_XD is wrong!!! Lol! How do I know?....
View attachment 1519712
...thats on LSJ.
I cant view your lockpatternkeygyardview. Dropbox says i dont belong there!
You need a logcat of the error.
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Here's a logcat ; https://www.dropbox.com/s/kur11w8lwi3q89a/logcat-default.txt
I've found this line on the logcat:
W/LockPatternKeyguardView( 2158): Couldn't find transport control widget
Click to expand...
Click to collapse
at the end of the createLockScreen method :
.line 1325
.local v0, lockView:Landroid/view/View;
invoke-direct {p0, v0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->initializeTransportControlView(Landroid/view/View; )V
Click to expand...
Click to collapse
And here ends my knowledge
Hmmm....not much help. When you get a loop you get dumpstate_sys_error.txt.gz in data/log. That will help more
Sent from my GT-I9100 using Tapatalk 2
Goldieking said:
Hmmm....not much help. When you get a loop you get dumpstate_sys_error.txt.gz in data/log. That will help more
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Here you go good sir I've flashed the lockscreen, end in bootloop, restored and then pulled out the files it's ok?
https://www.dropbox.com/s/xvufn9iungkfvd4/dumpstate_sys_error.txt.gz
This one was also on /data/log, I don't know if it helps
https://www.dropbox.com/s/xvqb7zqmyrth80c/dumpstate_app_error.txt.gz
Looks to me like your Lockscreen smali is already modified and not compatible
Sent from my GT-I9100 using Tapatalk 2
Goldieking said:
Looks to me like your Lockscreen smali is already modified and not compatible
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Should I leave it unmodified? I've changed only 3 or 4 things from the patch file on de nexus thread.
I've seen a lot of these lines to:
"11-29 17:00:41.825 1852 1852 I dalvikvm: DexOpt: mismatch dep signature for '/data/dalvik-cache/[email protected]@[email protected]'"
Perhaps I just messed up a lot of smalis Maybe I'll wait to JB AllianceROM
Related
I can't find a clear guide on how to modify policy.jar to incorporate reboot options. Anyone know where I can look?
[email protected] said:
I can't find a clear guide on how to modify policy.jar to incorporate reboot options. Anyone know where I can look?
Click to expand...
Click to collapse
if your already rooted just download quick boot, it's what i use for a fast reboot
A2CKilla said:
if your already rooted just download quick boot, it's what i use for a fast reboot
Click to expand...
Click to collapse
Thanks I was aware of other options what I was really looking for is how the android policy jar needs to be modified to add the option to the reboot menu.
[email protected] said:
Thanks I was aware of other options what I was really looking for is how the android policy jar needs to be modified to add the option to the reboot menu.
Click to expand...
Click to collapse
I too would like to see this implemented. Similar to what the Epic or Evo had on it's custom roms. If you ever figure it out...could ya pass it along?
Nerorising said:
I too would like to see this implemented. Similar to what the Epic or Evo had on it's custom roms. If you ever figure it out...could ya pass it along?
Click to expand...
Click to collapse
Sure. Work is a pita right now but afterwords I am going to try and tackle this.
[email protected] said:
Sure. Work is a pita right now but afterwords I am going to try and tackle this.
Click to expand...
Click to collapse
Greetings and Salutations Max
Are there any apps for rebooting your phone if you're not rooted?
I would love to see something like this done to the Photon!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[email protected] pull some XML files from CyanogenMod and compare them to ones from the Photon. CM has reboot options built in.
mrinehart93 said:
[email protected] pull some XML files from CyanogenMod and compare them to ones from the Photon. CM has reboot options built in.
Click to expand...
Click to collapse
I found this guide here, but its for the Vibrant I think. Maybe I can pull CM from a MOTO phone and figure it out... I will try this this weekend.
[email protected] said:
I found this guide here, but its for the Vibrant I think. Maybe I can pull CM from a MOTO phone and figure it out... I will try this this weekend.
Click to expand...
Click to collapse
That was pretty sick. What do you use to open/edit XML files?
KTT16 said:
That was pretty sick. What do you use to open/edit XML files?
Click to expand...
Click to collapse
you can use any text editor. I use Gedit in linux
Boot/Reboot/Recovery Options in Power Off Menu
[email protected] said:
I found this guide here, but its for the Vibrant I think. Maybe I can pull CM from a MOTO phone and figure it out... I will try this this weekend.
Click to expand...
Click to collapse
Any luck with this Mod and/or creating a .zip file for it? I would love to see this option modded in Magnifier!!!!
I used the vibrant guide when I ported it to the echo I had to edit policy.jar framework.jar and framework.apk also had add the options to the powercontrol file I can try to tackle this if no one has got it yet
Sent from my MB855 using XDA App
chrystal0925 said:
I used the vibrant guide when I ported it to the echo I had to edit policy.jar framework.jar and framework.apk also had add the options to the powercontrol file I can try to tackle this if no one has got it yet
Sent from my MB855 using XDA App
Click to expand...
Click to collapse
Please go for it!
ok guys i got it working im on skinny rev unlocked with dark fire theme so that is the framework apk i used but its easy to modify for the developers wanting to add this to there theme or rom.. just use my files android.policy.jar and framework.jar
to do this decompile and edit this xml in your framework.apk
"framework-res.apk\res\values\strings.xml"
add
Reboot
Recovery
next add png icons here
"framework-res.apk\res\drawable-hdpi"
make sure they are named
"ic_lock_reboot.png
"ic_lock_recovery.png
then recompile/build etc.. after you have build apk decompile it again
go here
frameworkres.apk\res\values\public.xml
you will see this with different id #s
and
these are what you need to change in the android.policy.jar
com\android\internal\policy\impl\GlobalActions.smali"
at line 661
const v3, 0x1080501 (reboot icon)
const v4, 0x10404ed (reboot string)
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$10;->(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
const/4 v1, 0x5
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$11;
const v3, 0x1080502 (recovery icon)
const v4, 0x10404ee (recovery string)
the first set of icon ids are for reboot
first # is drawable icon second is string #
second set is recovery as in the ( ) 's
so now change these numbers to those in the public.xml as i described above
next recompile your android.policy.jar and its ready to add
thanks!
screenie here http://dl.dropbox.com/u/46879286/20120214113758.jpeg
colors are off sorry
Hi... I don't know if this already has been posted but here it goes...
How to change the Samsung Circle lockscreen to the Ice Cream Sandwich lockscreen on XXLPH:
1) Decompile android.policy.jar
2) Edit the file called: LockPatternKeyguardView.smali
3) change the line:
iput-boolean v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->CIRCLELOCK_MODE:Z
to
iput-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->CIRCLELOCK_MODE:Z
it's in the beginning of the init contructor (about line 152)
What this does is that it tells the createLockScreen method to use the Lockscreen class instead of the CircleLockscreen class.
4) Compile the android.policy.jar again and you are done.
I have included the odexed and the deodexed CWM files ready to flash.
Have fun...
Please NOTE: Menu key will unlock your phone unless you edit framework-res.apk and change the boolean value of 'config_disableMenuKeyInLockScreen' to true in the bools.xml
Thanks for sharing, man. Like always you are first
Very great work mate!
Best regards,
Big!
Work in Resurrection Remix ics v9.6?
Works on WanamLite 9.1 LPH, but the menu softkey unlocks the phone. This is unwanted actually...
Michael2207 said:
Works on WanamLite 9.1 LPH, but the menu softkey unlocks the phone. This is unwanted actually...
Click to expand...
Click to collapse
Thanks! Yeah it's not perfect.... yet.... In my upcoming JKay Deluxe I will included this ICS lockscreen.... but modded to fix this and included music widgets, live wallpaper etc, etc...
What you need to do is this:
Edit framework-res.apk and change the boolean value of 'config_disableMenuKeyInLockScreen' to true in the bools.xml
Thanks a million JKay!!!!
sachs said:
Work in Resurrection Remix ics v9.6?
Click to expand...
Click to collapse
Yes it does!!!!! Attached!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thx Jkay your work is wonderful
Who else
Bravo JKAY!
Thanks!!!very good!!!
Sent from my GT-I9100 using xda premium
great job mate.
now all we need is jkay deluxe to allow modding it. like for example select from2 / 4 or 8 unlock options and manual attrib an app to each one.
Really nice to have aosp lockscreen.
Now i just want an official ics build
Sent from my iPad using Tapatalk
thats what im talking about !!jkay fantastic ....
Amazing JKay, like always. I have no words. Simply remarkable, thank you alot.
westcrip said:
thats what im talking about !!jkay fantastic ....
Click to expand...
Click to collapse
Wes, please add this to your ROM, and also this:
_JKay_ said:
What you need to do is this:
Edit framework-res.apk and change the boolean value of 'config_disableMenuKeyInLockScreen' to true in the bools.xml
Click to expand...
Click to collapse
Hi JKAY
U R awesome. Keep up the good work.
Wish u all the best man
Working in WanamLite 9.1 LPH. Thanks JKay!
Great work , many Thanks to JKay. It work perfect on Simplystic Rom
Works fine for me on Wanamlite 8.9.
Menu button doesn't unlock my phone, works like it should!
Many Thanks JKay, working fine on Wanam 9.1
And the "unlock via menu" is quite fine for me: you still have to press home button ant then menu to unlock the phone, so there is no risk of any unwanted unlock...
Finally I get rid of the horrible "Trascina il dito sullo schermo per sbloccare" that plagued the original unlock screen
Hello,this is my second attempt of modding my phone.This time i "ported" smart rotation.But I'm not sure if it's working because I don't see the eye icon when turning the screen.
I used mr.harsh's ROM as base because I'm using it.So if you want to use this mod without HarshJelly,please unpack the archive,take the app from the hidden folder,paste in system folder,and set permissions.
Download it from here.
For flashing in System partition download from here.
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
To get yourself it working do this:
Decompile SecSettings.apk,go to smali/com/android/settings,locate DisplaySettings.smali and open it with Notepad++.
Locate the following lines...
.line 406
invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v10
iget-object v11, p0, Lcom/android/settings/DisplaySettings;->mSmartRotation:Landroid/preference/CheckBoxPreference;
invoke-virtual {v10, v11}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/PreferenceZ
Click to expand...
Click to collapse
...and delete them.
ionescugeo9942 said:
Hello,this is my second attempt of modding my phone.This time i "ported" smart rotation.But I'm not sure if it's working because I don't see the eye icon when turning the screen.
I used mr.harsh's ROM as base because I'm using it.So if you want to use this mod without HarshJelly,please unpack the archive,take the app from the hidden folder,paste in system folder,and set permissions.
Download it from here.
Screenshots:
Click to expand...
Click to collapse
Can you post a zip file which only pushes the Smart Rotation into system?
Sent from my GT-I9070 using Tapatalk 4 Beta
Jeroenvk94 said:
Can you post a zip file which only pushes the Smart Rotation into system?
Sent from my GT-I9070 using Tapatalk 4 Beta
Click to expand...
Click to collapse
See the updated OP.:victory:
Its will not work I have done it earlier...more dependence files are required. In this way you can get multiwindow option also in setting. Just search in the same smali and delete the multiwindow lines (which has removePreference)
Jeroenvk94 said:
Can you post a zip file which only pushes the Smart Rotation into system?
Sent from my GT-I9070 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Please do not quote big ass OPs in your reply. There's a simple post reply button at the bottom. :banghead:
P123456 said:
Its will not work I have done it earlier...more dependence files are required. In this way you can get multiwindow option also in setting. Just search in the same smali and delete the multiwindow lines (which has removePreference)
Click to expand...
Click to collapse
S2 has them?
Can i revert it back ?
Divyashwar said:
Can i revert it back ?
Click to expand...
Click to collapse
pass the apk secsettings, some deodex
I have a question
Is it possible to port smart stay???
We was supposed to have it,but Samsung was bad with us
Can we port it from the s3 mini??
Shiningb said:
I have a question
Is it possible to port smart stay???
We was supposed to have it,but Samsung was bad with us
Can we port it from the s3 mini??
Click to expand...
Click to collapse
I really don't know.I looked for Smart Stay files in the settings and framework-res files,but didn't find any.
ionescugeo9942 said:
I really don't know.I looked for Smart Stay files in the settings and framework-res files,but didn't find any.
Click to expand...
Click to collapse
Its funny that, both the s advance and the s3 mini are in almost same price range
And each one has something that the other doesn't have!!
The s advance with auto brightness and see mini with smart stay
Hopefully there is a way we can come across all of the s advance weakness!!
it's very simple ...
1. decompile SystemUI
SystemUI\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali
2 find and change 0x7e1 (sola ICS have it line 5101 and 5189) on 0x7de
3 find .method updateExpandedViewPos(I)V and delete this
Code:
.line 1936
iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
invoke-virtual {v8}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->getHeight()I
move-result v3
and lower find
Code:
.line 1948
:cond_1
const/16 v8, -0x2711
if-ne p1, v8, :cond_5
and insert const/4 v3, 0x0 after line :cond_1 must be so:
Code:
.line 1948
:cond_1
const/4 v3, 0x0
const/16 v8, -0x2711
if-ne p1, v8, :cond_5
result like in JB and I'm sorry for the my English
modified SystemUI.apk from stok ICS rom
Anyway to hide it by double tapping n make it reappear again if u double tap again?
Kaushik.Vapiwala said:
Anyway to hide it by double tapping n make it reappear again if u double tap again?
Click to expand...
Click to collapse
it's working on this systemui
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
There is already a guide howto for ICS by @ZN6
Verstuurd van mijn LT22i met Tapatalk
M using Xperia Sola. Can you provide me link to the systemui?
Pandemic said:
There is already a guide howto for ICS by @ZN6
Verstuurd van mijn LT22i met Tapatalk
Click to expand...
Click to collapse
i thinks its different coz wallpaper is static, not auto resizing
@garynych thanks a lot, worked for me. :highfive: Xperia U
inunxelex said:
it's working on this systemui
Click to expand...
Click to collapse
mind sharing it?
sorry i don't know how to decopile apks .
Edit: forgot one line xD. its working perfectly
How do i make the statusbar all black? on mine, the icons is visible in the clock portion due to it being semi transparent
thanks for share,, it's works
menonita_rocker said:
mind sharing it?
sorry i don't know how to decopile apks .
Click to expand...
Click to collapse
thats not mind, check this thread http://forum.xda-developers.com/showthread.php?t=2345681&highlight=ics+quick+settings
inunxelex said:
thats not mind, check this thread http://forum.xda-developers.com/showthread.php?t=2345681&highlight=ics+quick+settings
Click to expand...
Click to collapse
i meant if you could share your systemui since im a completly noob at compiling apks ,
garynych said:
...
Click to expand...
Click to collapse
Thinking about this idea is great, but when I applied it on my sola ICS SystemUI.apk, it looked like the attached screenshot (a layer is covering the notifications and quick settings toggles ). Tell me did I missed something??
(I have to tell you that when I edited PhoneStatusBar.smali, the ".line xxxx" were not like that you have. I found the places which I should edit with different numbers).
menonita_rocker said:
i meant if you could share your systemui since im a completly noob at compiling apks ,
Click to expand...
Click to collapse
i think you dont like it, coz battery percent and clock are removed
JohnHK said:
Thinking about this idea is great, but when I applied it on my sola ICS SystemUI.apk, it looked like the attached screenshot (a layer is covering the notifications and quick settings toggles ). Tell me did I missed something??
(I have to tell you that when I edited PhoneStatusBar.smali, the ".line xxxx" were not like that you have. I found the places which I should edit with different numbers).
Click to expand...
Click to collapse
Give me your unedited phonestatusbar.smali, i edit for you
TakuyaZ said:
Give me your unedited phonestatusbar.smali, i edit for you
Click to expand...
Click to collapse
Hi! i have the same problem, can you modify my PhoneStatusBar.smali please?
You can download here my original phonestatusbar.smali
Ghabryyl said:
Hi! i have the same problem, can you modify my PhoneStatusBar.smali please?
You can download here my original phonestatusbar.smali
Click to expand...
Click to collapse
Sure
Sent from my SO-04E using XDA Premium 4 mobile app
Ghabryyl said:
Hi! i have the same problem, can you modify my PhoneStatusBar.smali please?
You can download here my original phonestatusbar.smali
Click to expand...
Click to collapse
Done, rename to PhoneStatusBar.smali and compile
TakuyaZ said:
Give me your unedited phonestatusbar.smali, i edit for you
Click to expand...
Click to collapse
If you want to help me in that, take my unedited PhoneStatusBar.smali in the attachments area. After editing successfully, please give the method that you made (I like to learn ). Thanks in advance. :good:
JohnHK said:
If you want to help me in that, take my unedited PhoneStatusBar.smali in the attachments area. After editing successfully, please give the method that you made (I like to learn ). Thanks in advance. :good:
Click to expand...
Click to collapse
Replaced 0x7e1 to 0x7de in line 5181 and 5273
Removed
Code:
.line 2006
iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
invoke-virtual {v8}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->getHeight()I
move-result v3
line 6776. added
Code:
const/4 v3, 0x0
between
Code:
:cond_1
const/16 v8, -0x2711
And done, Smali in rar file in attachment
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
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Let's get started.
Items you will need
apktool or baksmali+smali
SecLauncher4.apk from /system/priv-app
Click to expand...
Click to collapse
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!
Click to expand...
Click to collapse
[SIZE=+1]NOTE: Make sure to install SecThemeChooser.apk and themes (duh) or this mod will be useless!![/SIZE]
Or this http://forum.xda-developers.com/showthread.php?t=2722650
But still nice work
I like your flashlight mod from here http://forum.xda-developers.com/showthread.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/showthread.php?t=2188503
Walter.White said:
Or this http://forum.xda-developers.com/showthread.php?t=2722650
But still nice work
I like your flashlight mod from here http://forum.xda-developers.com/showthread.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/showthread.php?t=2188503
Click to expand...
Click to collapse
Yeah but I hate xposed with a passion. Whenever mods can be implemented natively I prefer to go that route
CNexus said:
Yeah but I hate xposed with a passion. Whenever mods can be implemented natively I prefer to go that route
Click to expand...
Click to collapse
I agree, I hate xposed in my roms....
I want to say thanks for this, awesome work....very cool indeed.
Again, thank you sir!
Walter.White said:
Or this http://forum.xda-developers.com/showthread.php?t=2722650
But still nice work
I like your flashlight mod from here http://forum.xda-developers.com/showthread.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/showthread.php?t=2188503
Click to expand...
Click to collapse
4.4 already has the hide show brightness bar mod implemented,
you just need to broadcast 'notification_panel_brightness_adjustment' as your android id
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
Lol I know I'm late af on this. But how do we do this on lollipop? Seclauncher4 isn't there