Post Reply

OnePlus One [Lockscreen]

OP M4rt1n94

View First Unread
16th August 2014, 05:00 AM   |  #101  
Senior Member
Panama
Thanks Meter: 119
 
252 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by jamesst20

1. If you compare the AndroidManifest.xml from OP and original, you notice the intents and etc. are differents (com.android.... instead of com.cyngn). You can also check in original Keyguard.apk from CyanogenMod.
2. Edit the smali folder to correspond to com.android.... instead of com.cyngn
3. Edit all classes for same reason
4. Edit all res for same reason
5. Recompile
6. It will work if signature checks is disabled on your phone, otherwise you need META-INF folder & AndroidManifest.xml from the OP APK because their signatures matches with SystemUI. signature. Otherwise, resigning all system apps is required.

It is quite complicated but this is basically that.


Tested on latest CM11 build and works flawlessly. I will look if I can port it over other ROMs such as ParanoidAndroid or AOKP.

Edit 2 :

Figured out why it doesn't work on Paranoid android. It seems the CMKeyguard is looking for "Profile" things and also it doesn't find this :com.android.internal.util.cm.QuietHoursUtils.inQu ietHours. There might be a few others, didn't check afterwards. I wont dig deeper into this.

A few questions.
Is this zip only for the OnePlus One? 'Cause I flashed the one from the OP and it worked perfectly in the latest CM11 Mako's nightly.
After flashing I got System UI FC. Any advice?
I'm on ART but the with the zip from the OP I don't have any problem with ART.

Thanks in advance. [emoji4]
16th August 2014, 12:00 PM   |  #102  
Senior Member
Thanks Meter: 18
 
339 posts
Join Date:Joined: Dec 2009
Quote:
Originally Posted by jamesst20

1. If you compare the AndroidManifest.xml from OP and original, you notice the intents and etc. are differents (com.android.... instead of com.cyngn). You can also check in original Keyguard.apk from CyanogenMod.
2. Edit the smali folder to correspond to com.android.... instead of com.cyngn
3. Edit all classes for same reason
4. Edit all res for same reason
5. Recompile
6. It will work if signature checks is disabled on your phone, otherwise you need META-INF folder & AndroidManifest.xml from the OP APK because their signatures matches with SystemUI. signature. Otherwise, resigning all system apps is required.

It is quite complicated but this is basically that.


Tested on latest CM11 build and works flawlessly. I will look if I can port it over other ROMs such as ParanoidAndroid or AOKP.

Edit 2 :

Figured out why it doesn't work on Paranoid android. It seems the CMKeyguard is looking for "Profile" things and also it doesn't find this :com.android.internal.util.cm.QuietHoursUtils.inQu ietHours. There might be a few others, didn't check afterwards. I wont dig deeper into this.

hi, so far it works flawlessly. I'll try after Poweramp because the random reboot was when there was music and the widget on the screen lock switch

GT-I9505 - Tapatalk
The Following User Says Thank You to krz_ayman For This Useful Post: [ View ]
16th August 2014, 11:25 PM   |  #103  
Senior Member
Thanks Meter: 2,127
 
1,502 posts
Join Date:Joined: Jan 2012
Donate to Me
Quote:
Originally Posted by Icarus1391

A few questions.
Is this zip only for the OnePlus One? 'Cause I flashed the one from the OP and it worked perfectly in the latest CM11 Mako's nightly.
After flashing I got System UI FC. Any advice?
I'm on ART but the with the zip from the OP I don't have any problem with ART.

Thanks in advance. [emoji4]

I really sadly can't tell what's going on without a logcat. Also, did you try flashing very latest CM11 nightly as this apk is very recent.

Thanks
17th August 2014, 06:15 AM   |  #104  
Senior Member
St. Lorenzen am Wechsel
Thanks Meter: 121
 
1,067 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Running on latest CM nightly ... was working perfect till i flashed a Color Mod from the other thread ... so they're not working with this, am i right?
17th August 2014, 07:02 AM   |  #105  
Recognized Developer
Des Moines, IA
Thanks Meter: 8,778
 
3,793 posts
Join Date:Joined: Dec 2009
Donate to Me
More
No...the mods I made are not for the nightlies. I am staying stable. I am old and have no need to be bleeding edge...I will wait til the edge has coagulated.

Anyway...I took the zip that jamesst20 posted earlier and made the gradient mod for you. Please let me know if it works as I cannot test.
Attached Files
File Type: zip OnePlusNightlyKGGradient.zip - [Click for QR Code] (1.48 MB, 151 views)
The Following 6 Users Say Thank You to NunHugger For This Useful Post: [ View ]
17th August 2014, 07:19 AM   |  #106  
Senior Member
St. Lorenzen am Wechsel
Thanks Meter: 121
 
1,067 posts
Join Date:Joined: Jul 2010
Donate to Me
More


Man, you're the best [emoji111]

why did you know, i'd like the gradient? [emoji23] [emoji16]
17th August 2014, 07:21 AM   |  #107  
Recognized Developer
Des Moines, IA
Thanks Meter: 8,778
 
3,793 posts
Join Date:Joined: Dec 2009
Donate to Me
More
Quote:
Originally Posted by MultiCulti



Man, you're the best [emoji111]

why did you know, i'd like the gradient? [emoji23] [emoji16]

Shibby!
17th August 2014, 03:27 PM   |  #108  
Member
Thanks Meter: 19
 
74 posts
Join Date:Joined: Jun 2013
Argh, would be so awesome if we could use it on AOSP Roms
The Following User Says Thank You to Klarooo For This Useful Post: [ View ]
17th August 2014, 04:25 PM   |  #109  
Senior Member
Kildare
Thanks Meter: 131
 
851 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by NunHugger

No...the mods I made are not for the nightlies. I am staying stable. I am old and have no need to be bleeding edge...I will wait til the edge has coagulated.

Anyway...I took the zip that jamesst20 posted earlier and made the gradient mod for you. Please let me know if it works as I cannot test.

Wow its so beautiful!

Because the security settings on the lock screen, I am wondering, does anyone know a way to have this lockscreen as the default with no security and when it is unlocked, to call the system pattern lock - but after the lockscreen has been unlocked.

This is how it looks with security settings enabled. I love the screen but need the security...

(FYI you guys are amazing)

Sent from my Nexus 4 running CM11 (KK 4.4.4) using Tapatalk
18th August 2014, 12:26 PM   |  #110  
Member
Thanks Meter: 17
 
86 posts
Join Date:Joined: Sep 2013
More
Flashed it on my Oppo Find 7 (NamelessROM), didn't work. Tried to flash the undo version, and the normal lockscreen doesn't work either any help? Also for some reason my home button stopped working.

edit: reflashed my current nightly and all is well. Weird that the revert .zip didn't work though.
Last edited by fabripav; 18th August 2014 at 12:33 PM.

Post Reply Subscribe to Thread

Tags
lockscreen, one lockscreen, oneplus one, oneplus one lockscreen, opo lockscreen
Previous Thread Next Thread


Top Threads in ONE Themes and Apps by ThreadRank