Verizon Pixel XL- Toggling the oem unlock switch *SOLVED*

blueyes

Senior Member
Dec 1, 2014
1,217
777
0
Baton Rouge
I have the Verizon Pixel XL and can now toggle the oem unlock switch in developers settings. Annoyed with the "grey out" I have done several things to make the switch useable. Well... Something worked. Now it's time to figure out what did the trick.


Solved. Using a root file explorer, got to /data/system/users/ 0.xml Open it up and edit it to reflect no restrictions. Or clone mine, might wanna remove my name though.. One requirement for this to work, all testing shows it will not work on stock kernel. Not sure if its a selinux issue or not but the modified ElementalX I made does boot up permissive and removes forceencryption. And using it Confirmed working..
 

Attachments

Last edited:

death2all110

Senior Member
Sep 21, 2010
515
295
0
Illinois
I'm guessing one of the unlock properties is what did it. I think something on the phone is recognizing it as a VZW model and is setting one of the properties to 0 and graying it out. I'll do some digging this weekend
 

blueyes

Senior Member
Dec 1, 2014
1,217
777
0
Baton Rouge
Sorry to be a bit off-topic but do you plan to document how you did the decrypt and permissive mode anywhere?
To decrypt you must fastboot format userdata. Flash a kernel the does NOT force encryption. Don't know if any are available so I edited the radial my self , on both kernel and boot-to-root images. To run permissive you simply add androidboot.selinux=permissive. I can upload the edited images later if your unfamiliar with modifications
 

jjayzx

Senior Member
Apr 14, 2011
595
181
73
Just added it to the kernel cmdline
Thanks. I'll be back in a moment.

Update: It didn't work that way. Trying something a little different.
Update 2: Managed to change cid but still 0 for unlock support and grey. Going to try 1 more thing.
 
Last edited:

blueyes

Senior Member
Dec 1, 2014
1,217
777
0
Baton Rouge
Thanks. I'll be back in a moment.

Update: It didn't work that way. Trying something a little different.
Update 2: Managed to change cid but still 0 for unlock support and grey. Going to try 1 more thing.
The kernel cmdline has to be edited before flashing. Try adding the persist.sys.oem_unlock... Line. Before run su , then set enforce 0
 

jjayzx

Senior Member
Apr 14, 2011
595
181
73
I lost my ability of changing the cid but then i remembered it was after i had did the supercid. So when i put them both back my cid is now changed but my unlock support is still 0. I tried adding persist to default.prop but it didn't take or i did it wrong.
 
  • Like
Reactions: cam30era

treIII

Senior Member
Jul 10, 2012
3,175
581
0
To decrypt you must fastboot format userdata. Flash a kernel the does NOT force encryption. Don't know if any are available so I edited the radial my self , on both kernel and boot-to-root images. To run permissive you simply add androidboot.selinux=permissive. I can upload the edited images later if your unfamiliar with modifications
Did you do the kernel command on the phone? How do I edit default. Prop? I feel like that's where the transformation takes place since it's not editable like the build prop
 

blueyes

Senior Member
Dec 1, 2014
1,217
777
0
Baton Rouge
I lost my ability of changing the cid but then i remembered it was after i had did the supercid. So when i put them both back my cid is now changed but my unlock support is still 0. I tried adding persist to default.prop but it didn't take or i did it wrong.
Did you add the line persist.sys.oem_unlock_supported=1.
Persists seems to be equivalent to a system override