07-28-2020, 06:27 PM
(07-23-2020, 04:31 PM)pine_usr Wrote: Hello everyone,
I just have a quick question. Just got my new Pine64 UBports edition phone and after booting the phone first time I was prompted to enter a screen lock pin, which I did and chose 4 digits pin. After I boot into the UBPorts system, played around, opened terminal and went ahead and changed password for the main user by passwd command. After a while the screen was locked and in order to unlock it, you get a prompt to enter password. The initial 4 digit pin is not accepted, since I changed password. But, there is no way to enter new password (letters and digits) as the prompt only has digits option. There is no way to enter a new password which contains letters. I wasn't aware that the new password for the user will also apply as a screen unlock PIN. Now, I am stuck with no way to enter the system and need to reset it. What is the fastest way to factory reset UBports without full reinstall? Pressing Up Volume + Power Button get me "Installing update" screen which never disappear. In regular Androind phone you login to a bootloader and just factory reset system. Could anyone suggest how to factory reset UT system instead of full reinstall? Also, why screen lock pin is the same as a user password?
Thank you.
Hey @pine_usr ,
I did the same thing!
Easy fix if it is an sdcard OS:
- 1st turn off phone.
- Take out sdcard.
- insert/mount sdcard for editing
- backup /etc/shadow by renaming it /etc/shadow.bak or something similar
- move /etc/shadow- to /etc/shadow to replace (/etc/shadow- is a backup of original)
- put sdcard back into phone
- login with original default number
Outside that you can try to do the same remotely logging in if not running off sdcard.
- RTP
"In the beginner's mind there are many possibilities, in the expert's mind there are few." -Shunryu Suzuki
[ Pinephone Original | Pinetab v1 / v2 Enjoyer ]
Linux Device Privacy / Security Playlist
"In the beginner's mind there are many possibilities, in the expert's mind there are few." -Shunryu Suzuki
[ Pinephone Original | Pinetab v1 / v2 Enjoyer ]
Linux Device Privacy / Security Playlist