Issue with Havoc ROM installation - OnePlus 7 Pro Questions & Answers

Guys, having a lot of trouble getting the Havoc ROM on my device. I am new to this slot A/B thing so please bear with me. I am coming from OOS 9.5.13 with unofficial twrp 3.3.1-70. Active slot is B. I rebooted to recovery, it asked me for my password, entered password, wipe data, flash rom, flash twrp installer, and when I reboot recovery I can't access my sd storage!! I see a 0 folder with random folders inside. So I figured TWRP is unable to decrypt the other slot. I start from scratch, i.e, format data and let it boot, strangely OOS boots with again like a fresh install To prevent encryption again, I don't go throught the setup, reboot to bootloader, then select recovery, inside twrp again (note: wasn't asked for password this time; I assumed because I didn't go through the OOS initial setup (no PIN etc) the storage in currently decrypted), connect to PC for transferring ROM back onto the phone again, disconnect from PC, wipe data, flash rom, flash installer, revoot recovery, reboots to slot A, and AGAIN no access to the SD card contents (folder 0 with random folders inside again). So my questions are:
1) Can someone please explain to me what's going on...?
2) Is there a way to permanently disable encryption on the device? (no-verity, etc)
3) Can I read something to get up to speed with this two slot thing and how things are supposed to work with OnePlus devices (was a long time Samsung user)
I am terribly frustrated with this; I have gone through this process a ridiculous number of times. I have fastboot flashed stock OOS several times. Even did the MSMTool to get back to as-stock-as-possible (somehow frying my SIM in the process, which I also suspect has something to do with Magisk modules). I am absolutely loosing my marbles over this.. Someone please help me!!
My device is retail Indian unlocked OP7P.

Why are you so hellbent on disabling encryption?
Format data, install rom over adb sideload, boot the rom, profit?

Related

New to Android Rooting looking for information on Verizon HTC One M8 rooting

Hello all, as the title says, I'm new, both to the site and android rooting in general.
I used the latest sunshine to s-off, although now i read that that wasn't necessary. What I'm trying to do is get rid of the bloatware on my phone and gain a little more control over the device itself. It is a verizon phone on the tmobile network and things like verizon vm and the verizon cloud apps and such are really just taking up space.
So the question is, now that I have s-off'd the device, where do I go next? I managed to get TWRP on there, but I just don't know where to go from there. Yes, I searched the site, Yes I searched Google, and yes, I prayed to the Skating Droid of Legend.
Any advice would be great. All of the information i have found on my own is about 2 years old.
If you already S-OFF'd it, and even got twrp going, I recommend the only thing left to do is downloading a ROM from the Android Development section (in ZIP format), saving it to your phone's internal memory or external sd card, then flashing it via twrp. That way you will have a rooted, pre-de-bloated phone. In my case, the ROM I liked best and that worked fine for me was S-ROM-JW-5.2.5 (doanloaded from this thread http://forum.xda-developers.com/ver...ment/romthe-worlds-100-m9-1-32-401-8-t3065304).
I personally selected "Global" during the flashing options, as I do not use Verizon network (I live in Brazil currently). But even so, you can change to/from Global and Verizon (and something else) in the Android settings after you are already set up.
To flash, first place the ZIP file in your phone (do not unzip it). Either internal storage or external sd-card. Then turn the phone off, unplug it (make sure you have plenty of battery like 40% or more just to be safe). Then turn the phone back on booting into twrp (power + down vol, then select Recovery, then Power). Then select "Flash ZIP" and navigate to your ROM ZIP file select it and follow the prompts. Choose "full wipe" when prompted (this will only wipe internal storage system files and apps and such and not your external sd card). After flashing finishes, just let the phone reboot (you can select Reboot while still in the twrp recovery mode).
Do not panic during first boot, it takes several minutes in the HTC logo (like some 5 or 10 minutes) until Android itself shows up and starts building itself into your phone and booting up properly.
Please proceed carefully and just to be safe, before flashing the ROM, make a full BACKUP (theres the Backup utility inside twrp) and save the backup to your external sd card or PC. That way you can recover using that backup if needed (but you should be ok).
gamekill said:
If you already S-OFF'd it, and even got twrp going, I recommend the only thing left to do is downloading a ROM from the Android Development section (in ZIP format), saving it to your phone's internal memory or external sd card, then flashing it via twrp. That way you will have a rooted, pre-de-bloated phone. In my case, the ROM I liked best and that worked fine for me was S-ROM-JW-5.2.5 (doanloaded from this thread http://forum.xda-developers.com/ver...ment/romthe-worlds-100-m9-1-32-401-8-t3065304).
I personally selected "Global" during the flashing options, as I do not use Verizon network (I live in Brazil currently). But even so, you can change to/from Global and Verizon (and something else) in the Android settings after you are already set up.
To flash, first place the ZIP file in your phone (do not unzip it). Either internal storage or external sd-card. Then turn the phone off, unplug it (make sure you have plenty of battery like 40% or more just to be safe). Then turn the phone back on booting into twrp (power + down vol, then select Recovery, then Power). Then select "Flash ZIP" and navigate to your ROM ZIP file select it and follow the prompts. Choose "full wipe" when prompted (this will only wipe internal storage system files and apps and such and not your external sd card). After flashing finishes, just let the phone reboot (you can select Reboot while still in the twrp recovery mode).
Do not panic during first boot, it takes several minutes in the HTC logo (like some 5 or 10 minutes) until Android itself shows up and starts building itself into your phone and booting up properly.
Please proceed carefully and just to be safe, before flashing the ROM, make a full BACKUP (theres the Backup utility inside twrp) and save the backup to your external sd card or PC. That way you can recover using that backup if needed (but you should be ok).
Click to expand...
Click to collapse
That's extremely helpful, thank you very much.
It turns out that Verizon is much better in my area than T-Mobile, so I wont be removing all the stuff I originally wanted to, however anything that gives me more options and power should I choose to wield it, is a welcome addition.
Thanks again.

How can I definitely check whether or not rooted S7 is encrypted

Hey people,
I'm getting mixed signals from my phone on whether it is encrypted or not and I would like to know how to find that out for sure.
My goal is to have a stock rom android 8 on my S7, rooted, with encryption.
I recently flashed the latest stock oreo build with odin, I don't remember if I let it boot once before the next step, but I think I did (I read the following thread only after I did this: https://forum.xda-developers.com/galaxy-s7/help/to-magisk-data-encryption-s7-t3667007)
Then, I installed TWRP via odin, booted into TWRP, formated /data, copied the magisk v16.0 installer zip to the now mounted /data and installed it.
Next, I booted the phone and set up all my accounts and apps.
Finally, I looked into how to get Samsung Health running on the rooted phone and manually set the ro.config.tima property in build.prop to 0 (and I still have no trouble restarting the phone).
The result is, that the phone is rooted, TWRP can not mount /data anymore (which seems to be a hint that the phone is encrypted), but in the android settings, I still have the option to encrypt the device (right above the option to encrypt the sd card) and changing the tima property did not cause any trouble, which again seems to be a hint the phone is not encrypted.
Does anyone know how to check if the phone is now encrypted or not?
If /data can be mounted in TWRP, you aren't encrypted. I'm trying to do the same thing only in an S8, with no luck getting encryption working. If I try to encrypt using settings, the phone reboots after a few minutes on the encrypting splash screen without encrypting anything. It worked fine on an S7 with Nougat stock.
danielwbn said:
Hey people,
I'm getting mixed signals from my phone on whether it is encrypted or not and I would like to know how to find that out for sure.
My goal is to have a stock rom android 8 on my S7, rooted, with encryption.
I recently flashed the latest stock oreo build with odin, I don't remember if I let it boot once before the next step, but I think I did (I read the following thread only after I did this: https://forum.xda-developers.com/galaxy-s7/help/to-magisk-data-encryption-s7-t3667007)
Then, I installed TWRP via odin, booted into TWRP, formated /data, copied the magisk v16.0 installer zip to the now mounted /data and installed it.
Next, I booted the phone and set up all my accounts and apps.
Finally, I looked into how to get Samsung Health running on the rooted phone and manually set the ro.config.tima property in build.prop to 0 (and I still have no trouble restarting the phone).
The result is, that the phone is rooted, TWRP can not mount /data anymore (which seems to be a hint that the phone is encrypted), but in the android settings, I still have the option to encrypt the device (right above the option to encrypt the sd card) and changing the tima property did not cause any trouble, which again seems to be a hint the phone is not encrypted.
Does anyone know how to check if the phone is now encrypted or not?
Click to expand...
Click to collapse
First thing first. When following old guides, sometimes they still work, often a security patch has closed the loop. So it is always preferable you look for a guide which specifically mentions OREO and the firmware versions your using.
Secondly, flash latest stock Oreo for your region (preferably unbranded) then root via any Oreo root guide on the forum and job done. Phone on stock, rooted and encrypted. Encryption is enabled by default on INTERNAL storage of stock ROM, rooting or TWRP doesn't change that. SD card remains open until you encrypt.
TWRP reporting internal storage at 0mb because it's encrypted yay!

help!!twrp get my all data lost

https://forum.xda-developers.com/one...2/post77736661
i lost all data after flash this twrp!
1 i get into the oneplus offically recovery and it shows the password,and i wrongly typed many times,it says i should wait.i didnt think this would have the relationship with the following situation
2 i fastboot the img , it crashed at the boot interface,and it try fastboot boot again,it worked,and i get into the recovery startup footage,but it didnt show the decrypt password,and all the folder name is mess,and the sd size is about 60GB (but my phone is 256g)
i reboot again and fastboot again
3 it didn't show the decrypt password when i fastboot boot this img
but it shows the folder name normally,but the folder is empty
and it shows a 10GB sd storage and i use pc to transfer the zip to the sd / twrp folder ,then i flash the .zip
and i reboot it automaticlly factory reset!!!
whats wrong with that
how can i save my data
i don't think there's much to do, unless you can get into os and decrypt.. always remove screenlock before flashing!
there are also some rom jumps(i.e down a security patch and i think going beta to stable?) that will require a full wipe, screenlock in place or not. unless you decrypt it(will also require a full wipe)
Just wipe already and recover. Simple advice: Don't keep things on your phone that you aren't comfortable with losing if you're going to flash things on your phone that could brick it.

Question about A/B paritions, TWRP, flashing order and rebooting

I've read many threads about the A/B parition scheme and I'm not new to flashing so I do know how it works. But some things still confuse me:
1) Which is the correct flashing order for ROM/TWRP/Magisk/Open GApps/Kernel? Like this?
Clean: ROM & TWRP, reboot, Open GApps & Magisk & custom kernel, done?
Dirty: ROM & TWRP, reboot, Magisk & custom kernel, done?
So after a reboot Magisk and after that the custom kernel?
2) Why is it necessary to reboot after ROM & TWRP flash?
3) When is slot A and B switched? After every reboot or what triggers the switching mechanism?
4) AFAIK there is no firmware zip or something similar like with the OnePlus 5T am I correct? When I have OOS installed and want to switch to a custom ROM how should i format /data or internal storage or is this even necessary? Do they all use the same encryption? Do I need to flash the custom ROM twice or shall I wait for the first OTA update? Because that would mean I have to boot to TWRP, flash ROM & TWRP, reboot, flash Gapps, Magisk and custom ROM, reboot to the other slot and do the same?
5) Do I need to wipe internal storage when encrypted and switching ROMs or is it unaffected (so only wipe /data)?
6) Is there any way to know which partition is used when booting the ROM or only in TWRP?
Thanks in advance!
Macusercom said:
I've read many threads about the A/B parition scheme and I'm not new to flashing so I do know how it works. But some things still confuse me:
Click to expand...
Click to collapse
1. Follow instructions on the custom rom OP, but that order will usually work.
2. Rebooting makes sure you are on the active slot, which will change with a full OOS flash.
3. Only when flashing the full OOS package or installing an update through the update engine. Some roms might also switch the slot, though I am not familiar with which ones. Again, just be sure you follow the installation instructions for that rom.
4. Varies by rom. Normally not necessary to format unless rolling back to an earlier security patch.
6. There are apps like DevCheck that will show you which slot is active.
So if I’m on slot A and go to the recovery, flashing the ROM changes slot B and then triggers the switch so that rebooting to recovery results in me being at slot B. From there Gapps etc. if flashed on the same slot so tafter a reboot everything is done? Is that correct? Makes it more clear to me now.
Any issues or changes with keymaster aren’t an issue now? So switching between ROMs without wiping would be possible (although with some issues after boot) but it would boot? Or would you need to format /system, /data and internal storage?
Wiping internal storage never is recommended which makes me ask why? On the 5T a full wipe was required as different ROMs use different keymaster versions etc. Was kinda a bit annoying.

So many years on forum, still many times i manage to brick/bootloop my phone.. Help!

I need some explanation to make things clear..
1) First and most important. If you want to make a clean install, what you have to wipe? Should you format data also, and why? Format data affects system? Can you format data and still boot into rom? When you format/wipe all, is there something left in the phone? If no, then why still i can see in mount settings, that the folders still have Mb/Gb inside them? What are they? I guess you can';t delete everything from the phone? For example now i am stuck on custom animation bootloop. So there is still data left.
2) Format data make your encrypted or decrypted? Or just removes all encryption and if a) you install a rom you go automatically encrypted, b) you install a rom and flash no_verity you go decrypted?
3) If i go decrypted, the only way to go encypted is to install stock OS and why?
4) When is necessary to have the stock rom flashed in order to flash custom rom afterwards? If you want to install a different android version from the one that you have? Any other reason? Is it necessary to install the whole stock image, or just enough to install firmware + radio?
5) If you wipe/format all, the phone has some firmware,radio,vendor etc stored inside or it's empty 100%?
6) Is it 100% safe to install a TWRP through TWRP?
And now let's say the problem i had. But i think i know where was the problem.. I had installed android pie + xXx no_limits on my oneplus5 and i was decrypted. Some months later i decided to try something else, so i installed an AOSP android 10 version. I just wipe/format system,data,dalvik,cache then flashed rom, gapps, magisk. But i had some bugs on this version, lags and huge battery drain. Also whenever i was booting into TWRP it moved me on Mount --> Decrypt screen.. And i don't know why?
Now that i try to figure i know that the problem was i install a custom android 10 rom, without first installing the android 10 stock rom? In order to get the proper firmware etc? Or what? The instructions for installing the rom are the following, which i followed them 100% :
NOTE:
WE ARE ENCRYPTED (FILE BASED FORCED ENCRYPTION). So if you are unencrypted format data partition or use any no_verity solution you want. We don't support it.
1. Download the ROM and GApps and transfer them to your device.
2. Boot to recovery (TWRP recommended). Bluspark twrp recovery recommended.
3. Wipe the System, Cache, and Data (you might need to format the data partition in some cases!).
4. Flash firmware. Actual one is 9.0.11. Download.
5. Flash the ROM Zipfile.
6. Reboot to TWRP recovery.
7. Flash the GApps (optional, needed for e.g. Google Playstore to work) and Magisk (optional too if you want a root solution).
8. Reboot and set up your device.
Click to expand...
Click to collapse
The ROM should contain everything you need to enjoy Android Q. You don't need to install any Add-ons, simply download the latest ROM and GApps, then follow the flashing instructions and go!
If you want the device to run the ROM "rooted", you can flash a root solution of your choice after the ROM Zipfile.
It is STRONGLY recommended to fully wipe your device before flashing and please avoid restoring system apps and system data with Titanium Backup (or with any backup/restore app) as this can cause stability issues that are very hard to debug, restoring regular apps is fine though.
Click to expand...
Click to collapse
The only system app i restored was the Vanced youtube, but i don't this is the source of my problems.
Thanks in advance!
Guys i think i cleared some things on my mind..
When you install a rom you go encrypted. So you have to FORMAT data RIGHT AFTER installing the rom and then flashing no_verity? Am i right? When you format data do you lose Magisk also?
lazostat said:
I need some explanation to make things clear..
1) First and most important. If you want to make a clean install, what you have to wipe? Should you format data also, and why? Format data affects system? Can you format data and still boot into rom? When you format/wipe all, is there something left in the phone? If no, then why still i can see in mount settings, that the folders still have Mb/Gb inside them? What are they? I guess you can';t delete everything from the phone? For example now i am stuck on custom animation bootloop. So there is still data left.
2) Format data make your encrypted or decrypted? Or just removes all encryption and if a) you install a rom you go automatically encrypted, b) you install a rom and flash no_verity you go decrypted?
3) If i go decrypted, the only way to go encypted is to install stock OS and why?
4) When is necessary to have the stock rom flashed in order to flash custom rom afterwards? If you want to install a different android version from the one that you have? Any other reason? Is it necessary to install the whole stock image, or just enough to install firmware + radio?
5) If you wipe/format all, the phone has some firmware,radio,vendor etc stored inside or it's empty 100%?
6) Is it 100% safe to install a TWRP through TWRP?
And now let's say the problem i had. But i think i know where was the problem.. I had installed android pie + xXx no_limits on my oneplus5 and i was decrypted. Some months later i decided to try something else, so i installed an AOSP android 10 version. I just wipe/format system,data,dalvik,cache then flashed rom, gapps, magisk. But i had some bugs on this version, lags and huge battery drain. Also whenever i was booting into TWRP it moved me on Mount --> Decrypt screen.. And i don't know why?
Now that i try to figure i know that the problem was i install a custom android 10 rom, without first installing the android 10 stock rom? In order to get the proper firmware etc? Or what? The instructions for installing the rom are the following, which i followed them 100% :
The only system app i restored was the Vanced youtube, but i don't this is the source of my problems. Formatting data does not effect system in most cases.
Thanks in advance!
Click to expand...
Click to collapse
1) a clean install involves wiping system, data, cache and dalvik cache. All of these partitions must be wiped in order to remove data things that might conflict with the new software that you intend to flash. Yes, you can wipe data and still boot into your ROM. Yes, there are things still on the phone even after wiping the device, but, the things left behind are in partitions that are separate from what you can actually wipe, these other, separate partitions contain all the other stuff that is essential for your device to be able to function. These parts have nothing to do with the ROM that you are using and have nothing to do with what you have installed in your data partition. TWRP does not wipe /data/media partition(internal storage), /data/media is where your personal user data is stored, such as, photos, videos, downloaded files, data from apps such as games, etc. Basically, /data/media contains things that you have stored that are not apps. Your internal storage will still have all the files and folders that were there before you did the wipe. If you want to wipe internal storage, you have to specifically select your internal storage when you use TWRP to wipe the device, it will not wipe internal storage by default. If you still have a custom animation even after wiping the device, it is probably because the boot animation is in your system partition, that can only be removed by selecting the /system partition when using TWRP to wipe the device.
2) Formatting data "should" remove encryption. No, flashing a new ROM after removing encryption will not encrypt the device again unless you specifically choose to encrypt the device in its settings. Flashing no verity only eliminates issues involved with rooting a device and getting root to actually work without corrupting the device.
3)I'm not sure but I think you can encrypt a device without using stock.
4) It depends on which device you have, what your current firmware version is and what you are trying to flash. Some devices require a certain firmware to be installed before flashing certain custom ROMs but it is a case by case scenario. There is no specific answer to this, there is only the question of whether your specific device requires this or a question of whether the custom ROM that you are trying to flash requires this. This is best answered by reading the thread where the ROM is posted, if your device requires installing a certain stock firmware before flashing the custom ROM, it will tell you that somewhere in the thread for that ROM. Whether you need to install the entire firmware or just parts of the firmware also depends on which device you are using in some cases, you might only need the modem or only the bootloader or maybe both, or maybe none, or maybe the complete firmware.
5) As I stated above, there are partitions on the device that do not get wiped when using TWRP to wipe the device. If it wiped EVERYTHING, the device would no longer function at all, it wouldn't be able to power on, it wouldn't be able to boot into any of its modes and you wouldn't be able to flash anything at all on the device, not even it's original stock firmware. There are software elements that MUST remain on the device in order for it to continue to function.
6) It is perfectly safe to use your existing version of TWRP to flash another TWRP version, assuming the new TWRP is also built for your specific model number.
If you have installed a custom ROM and you are having issues, you need to go to the thread where you got the ROM and post your issues/questions there. The users there will know more about your device and what you actually need to do and the developer may also need to fix things in their ROM to solve the issues that you are experiencing.
Sent from my SM-S767VL using Tapatalk

Categories

Resources