Is it possible to have a rooted AND encrypted device? - G4 Q&A, Help & Troubleshooting

I have tried several ROMs (Genesys, Imperial, RR, CM, stock) and can not seem to be able to encrypt my phone. I have done the
Code:
su
pkill -KILL daemonsu
exit
thing and the phone reboots but does not encrypt. I have even gone as far as installing the unrooted stock ROM and setting it up, then encrypting it, THEN rooting it. However, I get tons of FC's and can not enter in the password to decrypt the device.
Does anyone have any ideas on getting encryption working with a rooted device? And no, running pure unrooted stock is not an option.

It can be tricky. Very tricky. Try disabling/freezing SuperSU. Also try going into safemode, then try. I've done it before, it just took a ton of trying. Hold the power off button until you get to the menu. Then press and hold the off option. You should see an option for safe mode in a second or two.

Since SuperSU is a system app, I believe it still starts in SAFE MODE. Also, I couldn't find SuperSU in Titanium Backup even when "System" apps were checked so I couldn't freeze it.
I think I might have succeeded. Here's how I did it:
Download Genisys 3.8 & Genisys Theme 3.6
Reboot to recovery
Wipe system, data, cache, and dalvik (3 times)
Flash Genisys 3.8
Boot up and sign in
*OPTIONAL* Reboot to recovery and flash Genisys Theme 3.6 and reboot system
Open SuperSU and under Settings ---> Full Unroot (should reboot automatically, if not reboot manually)
Encrypt phone ---> Full encryption ---> set pin (DO NOT set boot up pin/password, only unlock pin/password/knock/pattern)
Verify encryption by going to Settings --> Security ---> Encrypt Phone (Should say "Encrypted")
*OPTIONAL* Encrypt SD Card
Reboot to recovery and flash UPDATE-SuperSU-v2.46.zip.
Reboot System
No guarantees, but this worked for me. Remember, DO NOT set the boot up pin because there are tons of FC's preventing you from entering your pin/password on this screen. Just set the lockscreen pin/password/knock/pattern.

Related

How To re-encrypt my OnePlus 3 ?

Hello,
I am a happy owner of OnePlus 3 and at the beginning when I got this Smartphone and run it, I had to set-up a Pin which was also used for Encryption,
due to the decision that I wanted to change it, I have tried numerous things to do this, either via System -> Security, System -> Lock Screen or TWRP Recovery.
Then I have stumbled upon a wiping feature in TWRP. (TWRP Menu -> Wipe) where there was a couple of options like Advanced Wipe, Format Data and Swipe to Factory Reset. So I have
decided to see what Format Data does which showed me the following statement before I continued with it "Format Data will wipe all of your apps, backups, pictures, videos, media and
removes encryption on internal storage". Well when it said it removes the encryption I have proceeded because at this point where all of the methods failed I wanted to remove and
re-encrypt my OnePlus 3 again in order to change my encrypting pin. Ok, cool this worked perfectly except that now I can't restore my original rom or encrypt my OnePlus 3 again ....
Then I have flashed CyanogenMod 13 Nightly from August (The latest one on the CyanogenMod website) and when I went into System -> Security there was Encrypt button instead of saying
Encrypted at the top of the menu then I have played around with setting up a new Pin/Password and when I went throug all the process at the end the following happens within a few
seconds: a green dissasembled android shows then screen turns black and returns to lock screen. I checked if OnePlus 3 is encrypted and is not. This is not the normal as usually
encrypting takes some time.
Also, I have tried to restore my original rom which came with my smartphone and was encrypted, when I restored it, OnePlus 3 stucks on the first screen showing OnePlus logo on the
middle of the screen and text "Powered by Android" on the bottom of the screen.
I presume that CyanogenMod 13 encryption is broken or that I shouldn't have format Data ?
Is there any way that I can encrypt my smartphone again ?
P.S I know that OnePlus 3 encryption is handled by Hardware.
You can try downloading the official OxygenOS ROM, flashing it and trying to encrypt again. Last I tried doing it on Sultan's CM13, it didn't work, so it might be a CM problem.
As per my knowledge, if you flash stock OxygenOS rom and also be on stock oneplus recovery. Performing a Factory Reset will automatically encrypt your device again. But you must be on stock recovery + stock kernel + stock rom in order for it to work.
abhibnl said:
As per my knowledge, if you flash stock OxygenOS rom and also be on stock oneplus recovery. Performing a Factory Reset will automatically encrypt your device again. But you must be on stock recovery + stock kernel + stock rom in order for it to work.
Click to expand...
Click to collapse
Why do I need to be on stock recovery ?
Won't TWRP work just fine ?
formating data with TWRP -28 will decrypt your phone, it's madethis way so it can work on beta 9 and f2fs ...
that said i had encrypted device before on CM
so if you're not using beta 9 and your data partition is not f2fs, you can have an ecrypted device, the easiest way is to sideload official rom 3.2.8 (make sure you're on stock recovery and start adb sideload from there) , after the sideload the phone will be encrypted, if you're staying at MM, fastboot TWRP .22 or 23 or just the official in case .28 decrypts the phone.
Gliop022 said:
Why do I need to be on stock recovery ?
Won't TWRP work just fine ?
Click to expand...
Click to collapse
Well man i want you be on as much safe side as possible. When you perform factory data reset on stock recovery, it will wipe and reformat your internal memory as well. TWRP only wipes data partition, and you need to format whole internal memory manually. But stock is recommended for full compatibility.
Ok, I have finally re-encrypted my smartphone.
So for the future people who have the same problem as I have, do the following:
SIDE NOTE: You don't need to unroot anything, just re-flash original Oxygen OS and go forwards from there
1) Download Oxygen OS from official website (downloads.oneplus.net)
2) Copy it over to internal storage
3) Enter Recovery Mode => Volume Down + Power Button
4) Flash downloaded .zip file via Recovery Mode (SIDE NOTE: The flashing progress might look like it have a loop but it takes a little bit of time to flash it, more than CyanogenMod anyway).
5) Now, after you have flashed the system .zip file and rebooted your smarpthone, it will take some time to load so don't panic that you have stuck in bootloop as it again, takes some time to load the first time.
SIDE NOTE: My suspicions are that it takes some time to flash and run the first time because it needs to set-up some encryption parameters or something like that but I might be wrong.
6) Then when you finally get to the wizard screen and go through the initial setup like wi-fi, sim card etc, the system will ask you if you want to protect device before it turns on, you choose yes and type your PIN or Password. After that step your smartphone is successfully encrypted again, enjoy !
Gliop022 said:
Ok, I have finally re-encrypted my smartphone.
So for the future people who have the same problem as I have, do the following:
SIDE NOTE: You don't need to unroot anything, just re-flash original Oxygen OS and go forwards from there
1) Download Oxygen OS from official website (downloads.oneplus.net)
2) Copy it over to internal storage
3) Enter Recovery Mode => Volume Down + Power Button
4) Flash downloaded .zip file via Recovery Mode (SIDE NOTE: The flashing progress might look like it have a loop but it takes a little bit of time to flash it, more than CyanogenMod anyway).
5) Now, after you have flashed the system .zip file and rebooted your smarpthone, it will take some time to load so don't panic that you have stuck in bootloop as it again, takes some time to load the first time.
SIDE NOTE: My suspicions are that it takes some time to flash and run the first time because it needs to set-up some encryption parameters or something like that but I might be wrong.
6) Then when you finally get to the wizard screen and go through the initial setup like wi-fi, sim card etc, the system will ask you if you want to protect device before it turns on, you choose yes and type your PIN or Password. After that step your smartphone is successfully encrypted again, enjoy !
Click to expand...
Click to collapse
Hello Gliop022,
Do you know if flashing OxygenOs stock from TWRP 3.1.0 encrypts the phone or do I have to be on stock recovery?
Then once the phone is encrypted, are you able to flash an OOS based ROM (e.g. FreedomOs) and keep the encryption?

PLEASE Help | DM-Verity and PASSWORD when loading

Hello. OnePlus 3. Strange problems. I can see DM-Verity 50/50. And 50/50 need type password to start system. Need press "BACK" or type password from system (standard android, pin-code/graphical key, etc.)
I flash stock OxygenOS via stock recovery with full wipe (erase everything) but have bootloop, if force reboot - loading successful, but reboot next time, modem(connection) don't working.
I tried this method and deleted DM verity, but entering the password is also required.
Next reboot DM-Verity remains.
https://forum.xda-developers.com/oneplus-3t/how-to/fix-dm-verity-warning-final-fix-4-0-3-t3555094
Also i tried mega unbrick method, using programm (1GB)
https://forum.xda-developers.com/oneplus-3/how-to/guide-mega-unbrick-guide-hard-bricked-t3405700
This installed OxygenOS ~3.1.2. But problems remains.
TWRP now. I can't flash stock recovery via fastboot flash recovery recovery_op3.img
Ok it's flashes, but when i try enter - black screen and smartphone off.
What need make, that would completely remove DM-Verity and password. And flash latest stock recovery and OxygenOS.
Mega Please Help.
GO!
SunEpicMist said:
Hello. OnePlus 3. Strange problems. I can see DM-Verity 50/50. And 50/50 need type password to start system. Need press "BACK" or type password from system (standard android, pin-code/graphical key, etc.)
I flash stock OxygenOS via stock recovery with full wipe (erase everything) but have bootloop, if force reboot - loading successful, but reboot next time, modem(connection) don't working.
I tried this method and deleted DM verity, but entering the password is also required.
Next reboot DM-Verity remains.
https://forum.xda-developers.com/oneplus-3t/how-to/fix-dm-verity-warning-final-fix-4-0-3-t3555094
Also i tried mega unbrick method, using programm (1GB)
https://forum.xda-developers.com/oneplus-3/how-to/guide-mega-unbrick-guide-hard-bricked-t3405700
This installed OxygenOS ~3.1.2. But problems remains.
TWRP now. I can't flash stock recovery via fastboot flash recovery recovery_op3.img
Ok it's flashes, but when i try enter - black screen and smartphone off.
What need make, that would completely remove DM-Verity and password. And flash latest stock recovery and OxygenOS.
Mega Please Help.
Click to expand...
Click to collapse
try this
https://forum.xda-developers.com/oneplus-3/how-to/fix-device-mapper-verity-simple-trick-t3530685
Restore to latest Marshmallow firmware.
Be sure to have locked bootloader (both from ADB and developer settings), then upgrade via OTA.
You just have to check and confirm for update.
It worked for me

wierd reboot

Got a wierd issues. Don't think it's rom related because it has persisted through the last few updates.
I'm 5T Encrypted running 10.5a beta, Blu spark recovery, and stock kernel. No xposed only navbar substratum.
So whenever I reboot my phone it boots up to the pin unlock screen, I put in my pin then starts to load up but then reboots back to bootanimation. Then back at pin screen I reenter my pin and everything loads fine. Only happens once per reboot. Any ideas???
Remove PIN & other security.
Copy youre stuff to PC.
Format Data in recovery (this will whipe ALL in youre phone). Restart to Recovery.
Copy rom to internal memory. Flash rom.
Copy back youre stuff.

Data Encrypted - Never setup any encryption

The so far...
Installed TWRP
Noticed I could not boot into factory ROM - TWRP boot loop?
Tried to factory reset from TWRP - failed; Data could not be mounted.
Changed the file system of Data to extf2; Repaired Data; Changed Data back to extf4
Factory Reset - completed
Still could not enter factory ROM - TWRP boot loop?
ADB sideload PixelExperience Custom ROM - allowed TRP to push app; boots into ROM to initial setup (G with progress bar) but doesn't advance after 15 minutes
Vol down + power -> Menu > Recovery
TWRP asks for password to decrypt data (**Edit - this is TWRP's initial screen after Logo)
*Edit* at no point in the life of this device (I bought it brand new) was it ever encrypted
At no point did I ever set a password or try to encrypt data. How do I fix this?
OvrTehBottm said:
The so far...
Installed TWRP
Noticed I could not boot into factory ROM - TWRP boot loop?
Tried to factory reset from TWRP - failed; Data could not be mounted.
Changed the file system of Data to extf2; Repaired Data; Changed Data back to extf4
Factory Reset - completed
Still could not enter factory ROM - TWRP boot loop?
ADB sideload PixelExperience Custom ROM - allowed TRP to push app; boots into ROM to initial setup (G with progress bar) but doesn't advance after 15 minutes
Vol down + power -> Menu > Recovery
TWRP asks for password to decrypt data (**Edit - this is TWRP's initial screen after Logo)
*Edit* at no point in the life of this device (I bought it brand new) was it ever encrypted
At no point did I ever set a password or try to encrypt data. How do I fix this?
Click to expand...
Click to collapse
TWRP Asking for password. Please help. I've never set a password
TWRP is asking for password. I've never set a password. Please help me.
forum.xda-developers.com
.
Did not work.
Take a breathe...
In TWRP mount internal storage and select all toggles... Back to TWRP main menu select wipe / format data - type ´yes´
To wipe the rest go back to wipe / select all toggles and wipe it
Now you can flash like your way... If you want to sideload you must activate it in TWRP by Sideload /ADB... otherwise you can flash from external storage i.e. USB stick or whatever you want....
Format data partition is important to decrypt and wipe possible encryptions...
In future pls don´t change the data formats i.e. extf2 / exft4 or let repair them in TWRP in case you can´t handle it via ADB... TWRP is a nice tool but too many ppl bricked several devices by using this method or use unofficial shady versions...
If you try to flash PE you can push the rom on internal storage after fullwipe and after a recovery restart you can install it from internal storage...
I remember some strange TWRP times where we have to mount internal storage and partitions - and yes - before installing some stuff I´ve take a look on mounting points

Question Stuck on "Pixel is starting"

Had to do a factory reset, and all was good. Using LSposed with Magisk and reinstalled several mondules. Upon reboot, the screen hangs at "Pixel is starting." So I rebooted into safe mode, knowing the Magisk modules would be disabled, but the same thing happens, even in safe mode. Booted again. I can access all my settings, and adb works fine. But I'm clueless as to what I should do, even with adb and settings access.
Will appreciate any help. Everything is backed up, I'm just trying to avoid the nuisance of having to factory reset again and all that entails.
Thanks.
You can try Official Google Android Flash Tool and uncheck the wipe data option (and don't force flash all partitions, either, which will also wipe), and don't forget to uncheck the option to re-lock the bootloader.
That official site has solved many weird issues where even manually flashing the full factory image hasn't solved the problem. Good luck, let us know if that's what you do and how it goes.
my old go-to for boot issues was last_kmsg. I recentlky found abou about boot-chart, which logs what happens during boot, and may log an error for you. You will have to run this in recovery if yopu are in a non-booting state
To enable it:
Code:
mkdir -p /data/bootchart;
touch /data/bootchart/enabled;
try a reboot, which fails. Reboot to recovery and retrieve the logs
init/grab-bootchart.sh - platform/system/core - Git at Google
I havent had to use it "in anger" yet, but it will be my tool of choice.

Categories

Resources