Re-rooting while having a CROM and custom recovery installed - OnePlus X Q&A, Help & Troubleshooting

Hi. I tried rooting my phone a few months ago, and installed TWRP and ashwin007's CyanogenMod. The rooting seems to have failed (I think I accidentally wiped something when I installed TWRP/CyanogenMod/GApps, causing me to lose the root or something. I'm not exactly sure what went wrong), but I managed to install TWRP v2.8.7.0 and CyanogenMod (on the 10th August nightly) successfully. Now I want to try rooting my phone again properly (with superuser access), and change my CROM to probably http://forum.xda-developers.com/one...m-kernel-unofficial-cyanogenmod-13-0-t3375221 (This also includes a newer version of TWRP right?)(I also want GApps!). I'm not sure which order I should do these tasks.
Should I just follow the instructions in the link?:
Installation instructions (for first-time installation):
First, perform a backup of your existing setup, and then perform a clean install (wipe /data and /system; TWRP is recommended).
If you plan on using encryption with this ROM, then flash the custom TWRP build in the Downloads section below before flashing the ROM. This custom TWRP build is needed if you want to be able to access data encrypted using this ROM while booted into recovery. Otherwise, you will not be able to access your encrypted data while your phone is in recovery mode.
Then, flash the ROM, flash a Google apps package, SuperSU if you want root access (ONLY v2.65 OR HIGHER), and then reboot.
Click to expand...
Click to collapse
A few things I want to clarify:
1. The SuperSU installation page says it requires a rooted device. As stated earlier, I'm not 100% sure whether my device is rooted or not. What should I do? Root my device (What's the best way also, KingoRoot or something else?), then follow quoted instructions?
2. For the clean install I just wipe /data and /system? Not System, Data, Cache & Dalvik?
3. After I finish wiping and installing all of those, is there any way I can restore all of my apps and associated data that I had? (I've heard something about using TitaniumBackup?)
From what I've read, I probably should:
Use my TWRP to backup all the other things (system and stuff)->
Root phone (using KingoRoot?) ->
Download and use Titanium Backup to backup Apps ->
Wipe /data and /system (or System, Data, Cache & Dalvik?)->
Flash new custom TWRP (Can I flash it using my old TWRP? The TWRP official website says you can do this with TWRP versions v2.8.4 and above, mine is v2.8.7, but that was for the official TWRP)[or should I use the android SDK tools bootloader thing?] ->
Flash new custom ROM with TWRP ->
Flash GApps with TWRP ->
Flash SuperSU with TWRP ->
Reboot phone->
Restore apps with Titanium Backup
Could someone confirm? I don't want to brick my phone Thanks a lot!

Just follow the guides for rooting and custom Recovery's. If you follow the steps you won't have any problems. First thing you must do is update your twrp. Assuming you have already unlocked your bootloader.

Related

[Q] How to safely update an installed rom - RR

Hi,
I've recently rooted my phone and installed my first ROM - Resurrection Remix - and it's notified my of an update (v3.1.3) and downloaded the zip for me. My question is how do I safely update RR?
When I first installed it I had to perform a number of steps wiping and clearing things before installing from a zip using CWM. Hopefully I don't have to do all of these as I don't want to have to completely reinstall every update, but do I have to do any of them still or do I just install from the zip in CWM without any other steps?
abc.mikey said:
Hi,
I've recently rooted my phone and installed my first ROM - Resurrection Remix - and it's notified my of an update (v3.1.3) and downloaded the zip for me. My question is how do I safely update RR?
When I first installed it I had to perform a number of steps wiping and clearing things before installing from a zip using CWM. Hopefully I don't have to do all of these as I don't want to have to completely reinstall every update, but do I have to do any of them still or do I just install from the zip in CWM without any other steps?
Click to expand...
Click to collapse
Have you read the first posts of the ROM thread?
Maybe there is a description of how to install the update.
If not, then you can just flash the update zip file in CWM recovery and try to reboot normally.
If everything works fine ... that's it.
If you have issues, boot into recovery, wipe cache and Dalvik cache and reboot normally again.
If that does not help, then you might have to wipe data (do a factory reset) in recovery.
But I think that these steps are not needed as you are already on this custom ROM.
(Usually you only have to do the complete wipe steps when coming from another / stock ROM - and the other way round.)
Good luck !
P.S.: Always create a nandroid backup before flashing. So you are able to "go back" if needed.

CyanogenMod Instructions

Instructions
Make sure that your SM-G850W has the Lollipop bootloader and modem (The last installed stock ROM must be 5.0.2).
Flash TWRP recovery via Odin.
Boot to TWRP recovery (Vol UP + Home + Power).
Optional: Do nandroid backup
Wipe data / Factory Reset
Install the ROM (CM zip).
Install the Google Apps.
After you wipe the data
how exactly do you install the ROM (CM zip))
Do i do it via Odin?
Just need clarification on that step...
After you install twrp, you can make backups and also install software.
As suggested you better make a backup in TWRP it's called a nandroid backup. After that you have to do a factory reset, thats the wipe in TWRP. Then you can go to the install button, and choose the rom.zip. For Cyanogenmod you also need to install Gapps, because its not included in ROM.
But to be clear: everything is in TWRP.

Stuck in bootscreen after rooting.

Hi Everyone,
I just followed the instruction and unlocked my bootloader.
I am in marshmallow and then used twrp to flash supersu 2.64.
When i was flashing to root twrp asked me about the partition change which i dont understand so swiped it and now i cant get past the htc one bootscreen. I have tried factory reset and wipe dalvik cache.
What do i do?
kisshell99 said:
Hi Everyone,
I just followed the instruction and unlocked my bootloader.
I am in marshmallow and then used twrp to flash supersu 2.64.
When i was flashing to root twrp asked me about the partition change which i dont understand so swiped it and now i cant get past the htc one bootscreen. I have tried factory reset and wipe dalvik cache.
What do i do?
Click to expand...
Click to collapse
Go back and change partition to read and write in twrp (I think), sounds like you set it to read only if you are getting stuck at that screen. If all else fails I'd try running the RUU then re flashing twrp , but are you s off? I've been s off since sunshine came out (which I highly recommend) and don't know how things work being s-on. Also which version of twrp are you using?
Go read up about how twrp works , that way when you are prompted with things that could prevent you from obtaining root you will know what to do. #4 in the link below might be able to help you... but once again read all the information provided.
http://forum.xda-developers.com/showpost.php?p=59745198&postcount=3
you need to update your TWRP to 3.0.0. Flash it through CMD or sdcard way, reboot to recovery, "Mount as Read Only" message swipe to right. You want it to be that way for an untouch system backup(if you wanted to do). Reflash MM ROM.
got it
The problem was twrp was asking to flash the supersu from itself even after i had flashed the su manually from twrp. i just installed badboyz and then flashed the su and did not accept the twrp option to flash supersu again and it is working again. To add more, i think i even got it dsu with the recent guide posted here which saved me few bucks. I love xda!

Updating lineageOS from the android menu, is it safe?

Hello everybody,
i was finally able to upgrade my i9100 to the latest lineageOS from a samsung stock 4.1.2, i've been using it for a week and it works beautifully, i really thank the developers for their big effort!
Now, i received a notification telling me that there is an update available, version 2017-10-04. I tried to download it from the phone, but the download keeps failing as soon as it starts. Did it happen with you too? I could download the .zip package on my pc and reboot into recovery again, but i'd like to ask all of you what's the best way to proceed, is it going to wipe all of my data? Do i just need to install the custom rom without any additional package?
Thanks in advance
Everything is updated in different ways. I'm through OTA, someone through the recovery.
Install in TWRP ROM lineage-14.1-20171004-nightly-i9100-signed.zip, make "Wipe Cache / Dalvik" and reboot.
Do not worry, it will not erase your data.
Good luck to you.
Everything is updated in different ways. I'm through OTA, someone through the recovery.
Install in TWRP ROM lineage-14.1-20171004-nightly-i9100-signed.zip, make "Wipe Cache / Dalvik" and reboot.
Do not worry, it will not erase your data.
Good luck to you.
Click to expand...
Click to collapse
thank you very much for your answer,i have one question left:
in order to upgrade to lineageOS, i 've been following a youtube guide, and i'm having some doubts about these steps:
[...]
5) INSTALL ROM, GAPPS, ROOT and KERNEL
Still under TWRP Home screen -> go to Install zip and set Storage to External-Storage.
We need to install files 1 by 1.
Select lineage-14.1-*.zip and Swipe to flash,
Then select addonsu-arm-signed.zip, and Swipe to flash,
### You get this error : Updater process ended with signal: 4, Error installing zip file '/sdcard/Download/addonsu-arm-signed.zip'
### -> Just don't care Root is correctly installed.
then open_gapps-arm-7.1*.zip, and Swipe to flash,
then CustomKernel-[v1.3]*.zip and Swipe to flash.
Then wipe cache/dalvik,
then reboot system.
Do i need to install addonsu-arm-signed.zip and customKernel again after upgrading lineageOS? I dont' usee google apps so i don't care about that part, but the kernel step is bothering me, does the kernel get overwritten when i update? Thanks again
Don't worry about the custom kernel at all, just use the Lineage one. It will come with the rom and be updated with each update.
You need to flash addonsu for root, but it will keep you rooted persistently so you don't have to flash after updates.
In summary, since you're going gapp-less, all you need is LOS zip and addonsu.
thanks! I did as you suggested and it worked perfectly!

Cubot x18 plus - mt6750t

Okay. I am tired of constantly bricking and reinstalling my stock rom onto my Cubot. If not for Titanium Backup i would be so frustrated. So i have decided to ask for help with flashing the Phhusson ROM.
The problem i have is that i do not know the proper steps to install the ROM.
I have unlocked bootloader, installed TWRP, cleared cache, data, vendor, dalvik and installed system.img and magisk for root, but no luck.
I keep getting NO OS installed.
Anyone who successfully installed a CUSTOM ROM for their Cubot X18 Plus please give a tutorial here. Preferably a video tutorial. :good:
Also, if you have any pointers for restoring base band (i have tried flashing stock, copying emmc to root, having driver issues with magic box) i would love help on that but you can private message me if you wanna help (ill pay if you want to be paid, but not much)
You don have to whipe vendor because this is the base folder of the phone its like the kernel but in treble.
You habe to search a pre tested rom on cubot x18 pluss Like AOSP 9.0 from PHHUSSON on GitHub
i wish you good luck, im going to install it to in my cubot, and sorry for my english because im Chilean.
kene200 said:
Okay. I am tired of constantly bricking and reinstalling my stock rom onto my Cubot. If not for Titanium Backup i would be so frustrated. So i have decided to ask for help with flashing the Phhusson ROM.
The problem i have is that i do not know the proper steps to install the ROM.
I have unlocked bootloader, installed TWRP, cleared cache, data, vendor, dalvik and installed system.img and magisk for root, but no luck.
I keep getting NO OS installed.
Anyone who successfully installed a CUSTOM ROM for their Cubot X18 Plus please give a tutorial here. Preferably a video tutorial. :good:
Also, if you have any pointers for restoring base band (i have tried flashing stock, copying emmc to root, having driver issues with magic box) i would love help on that but you can private message me if you wanna help (ill pay if you want to be paid, but not much)
Click to expand...
Click to collapse
Hi, I was able to useflash phh GSI (works just great btw). This is how I ended up doing it:
1. Flash TWRP.
2. In TWRP you'll see errors due to the encryption of the partitions. To resolve this you have to format the userdata partition either with fastboot either with TWRP
3. After fixing the encryption problems in TWRP mount and transfer Magisk to the phone and flash it using TWRP.
4. Transfer the GSI image (A only) and flash it using TWRP. At this stage you could flash it with fastboot as well if you reboot to the bootloader, but don't boot into the system yet. As I said before I used PHH AOSP 9 GSI image.
5. Wipe using TWRP and reboot to system.
The first time I tried to flash it I used the stock recovery wipe function which wipes out the IMEI and stuff, this forced me to reinstall stock rom to set the IMEI with the MTK engineering tools and restart the whole process.

Categories

Resources