[MOD][HOW-TO] Even more toggles! Lockscreen + Screen Timeout [4.3 | 4.4 coming ASAP]

talkingmonkeys

Recognized Contributor / Themer
May 15, 2013
2,644
4,411
0
Can you pastebin and link me to the screentimeout smali that works?
The one in the op works for me. I think they could of messed up an edit somewhere else. Also you didn't update the settings edit in the op yet just a heads up so you don't end up getting other people asking why that toggle disappears. ;)

Everythings working 100%. Great work man
 

CNexus

Senior Member
May 17, 2012
9,009
13,993
263
~/android
The one in the op works for me. I think they could of messed up an edit somewhere else. Also you didn't update the settings edit in the op yet just a heads up so you don't end up getting other people asking why that toggle disappears. ;)

Everythings working 100%. Great work man
I did update the secsettings edit part actually...only the smali needs to updated, not the strings.xml addition ;)
 
  • Like
Reactions: talkingmonkeys

talkingmonkeys

Recognized Contributor / Themer
May 15, 2013
2,644
4,411
0
I did update the secsettings edit part actually...only the smali needs to updated, not the strings.xml addition ;)
Ahh thats where I got confused. Thank you now its working as intended

Sent from my SAMSUNG-SGH-I747 using XDA Premium 4 mobile app
 

LeoDeos

Senior Member
Dec 23, 2012
919
1,341
0
Santeramo in Colle (Ba)
Ok this should work, make sure you're using apktool 1.5.2

http://pastebin.com/cj5PL1mb
I use Apktool 2.0.0-Beta9...
However now i try this new smali file.

i did another test: i used old screentimeout smali and new locksceen smali.
i haven't fc..seems to work well but, if lockscreen toggle is enabled and reboot the phone, is disabled sim lock and can't use phone app: emergency call only - Not registerd on network.
i have to disable lockscreen toggle, turn off display and after turn on again, the display and i have sim lock enabled.


Edit: even this last file does not work
but dont worry, i use the old file that works well :)

Thanks
 
Last edited:

talkingmonkeys

Recognized Contributor / Themer
May 15, 2013
2,644
4,411
0
Getting a force close in settings now when I goto edit notification panel. Attatched a logcat for you to look at

Edit: Silly me I forgot the images when I redid it to update the smali file. All working now.
 

Attachments

Last edited:

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
0
TampaBay
Hey Cnexus, is there a way to combine the sql file in the OP with the extra toggles sql file in MOAR? I'm trying to make this flashable and use rom control to update the sql database for us.
 
  • Like
Reactions: bilgerryan

CNexus

Senior Member
May 17, 2012
9,009
13,993
263
~/android
Hey Cnexus, is there a way to combine the sql file in the OP with the extra toggles sql file in MOAR? I'm trying to make this flashable and use rom control to update the sql database for us.
Yeah, open the sql from MOAR and just append ";LockScreen;ScreenTimeout" to the list of toggles, it'll be obvious where they are listed because they're semicolon delimited
 

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
0
TampaBay
Sweet! :thumbup:

I had these toggles done for MOAR, but for an older version so that's why I didn't link you :eek:
No problem. I see you're on a Guide kick, keep them coming.
I haven't done any mods in a while so I was getting a little cross-eyed by the time I got to doing this one. The MOAR update is nearly finished now though. Just toying with a couple more toggles.
 

CNexus

Senior Member
May 17, 2012
9,009
13,993
263
~/android
Just jealous. :rolleyes:
All is working perfect now btw. Got the database file updating just fine for MOAR and the toggles appear and work great! :)
Would you mind if I snag your screenshots for the OP? I've had this mod done for over a month, but.finding the time to write it up is another thing haha...getting screenshots myself would probably take another month :eek:
 
  • Like
Reactions: talkingmonkeys