Stock kernel and remove root without loosing data - Huawei P9 Lite Guides, News, & Discussion

Hi everybody, few days ago I flashed elite kernel and magisk root over stock ROM c432b393. Now i'd like to go back to stock kernel and remove root without loosing data. Do I simply have to extract boot.img from the stock rom and flash it through fastboot? Thanks.

You can use the stock back up app just incase you might loose data you can use a pc, SD card or a usb, i'm not sure about the usb one as I've never used it but if you do go through with it atleast you have a back up.

Related

What are the issues doing this

With all of the really good roms now a days...that is..
1) Rooting...doing a back up of the stock rom..and then using that backup to return to stock without having to flash through Odin?
I'm guessing here...but..wouldn't you have to have disable any lag fix..going back to rfs..disable any voodoo..changing any oc/uc settings to stock..prior to doing this ?
2) Pulling a copy of the entire EFS folder from stock to your PC before doing any flashing new roms and then prior to un-rooting dropping it back in with root explorer...Won't this do the same thing without having to use a terminal or hex editor to have the original imei # and product code #? If #1 is a complete copy..would #2 be even needed ?
Just looking for a easy way to do this on a brand new phone
Thanks
Mac
Mac11700 said:
With all of the really good roms now a days...that is..
1) Rooting...doing a back up of the stock rom..and then using that backup to return to stock without having to flash through Odin?
I'm guessing here...but..wouldn't you have to have disable any lag fix..going back to rfs..disable any voodoo..changing any oc/uc settings to stock..prior to doing this ?
2) Pulling a copy of the entire EFS folder from stock to your PC before doing any flashing new roms and then prior to un-rooting dropping it back in with root explorer...Won't this do the same thing without having to use a terminal or hex editor to have the original imei # and product code #? If #1 is a complete copy..would #2 be even needed ?
Just looking for a easy way to do this on a brand new phone
Thanks
Mac
Click to expand...
Click to collapse
1) You should basically be doing this everytime you flash a new rom. I've flashed my cappy probly 50 times and everytime except once I went back to stock first. 0 issues -- the 1 time I didn't have a pc at hand and had to disable the lagfix then flash rom. But. going back to stock with Odin3 1 click is easy as long as you can get into download mode. Make sure you can get into dload mode before even attempting to flash a rom.
You only have to disable lagfix if you are not going back to stock prior to flashing a new rom (don't ever flash a rom over another rom without first disabling the lagfix or going back to stock).
2) I never backup my sdcard when flashing rom or master clear (I'm lazy I guess and don't want to wait for the files to transfer). I also keep update.zip as the clockwork recovery update.zip file. So after going back to stock, all I have to do is go into stock recovery and reinstall packages to install clockwork recovery, then I can flash the new rom and any add ons.
mod777 said:
1) You should basically be doing this everytime you flash a new rom. I've flashed my cappy probly 50 times and everytime except once I went back to stock first. 0 issues -- the 1 time I didn't have a pc at hand and had to disable the lagfix then flash rom. But. going back to stock with Odin3 1 click is easy as long as you can get into download mode. Make sure you can get into dload mode before even attempting to flash a rom.
You only have to disable lagfix if you are not going back to stock prior to flashing a new rom (don't ever flash a rom over another rom without first disabling the lagfix or going back to stock).
2) I never backup my sdcard when flashing rom or master clear (I'm lazy I guess and don't want to wait for the files to transfer). I also keep update.zip as the clockwork recovery update.zip file. So after going back to stock, all I have to do is go into stock recovery and reinstall packages to install clockwork recovery, then I can flash the new rom and any add ons.
Click to expand...
Click to collapse
I guess I am wording this wrong...I know how to flash..and I know how to odin back...but I was curious if I could eliminate doing some of that by just using the back up of the stock rom that is rooted..I don't think that can be done with out flashing stock via Odin first (because of the kernels if not using a Captivate kernel )...but if you are using one... I haven't read anything about...cause I really don't know..
I am trying to see if all the EFS files are replaced with the correct #s without having to do and terminal work or use a hex editor..once the back up from Rom manager is put back on and used..Just trying to make a real easy check list about it..
Mac
mod777 said:
(don't ever flash a rom over another rom without first disabling the lagfix or going back to stock).
Click to expand...
Click to collapse
I guess I got lucky cuz one day I was too lazy and away from the PC, but I have a couple of ROMs on my SD so I just flashed Assonance on top of Perception and worked fine.. that is the only time I did that, I always go back to stock with one click ODIN before flashing a new rom
dq13 said:
I guess I got lucky cuz one day I was too lazy and away from the PC, but I have a couple of ROMs on my SD so I just flashed Assonance on top of Perception and worked fine.. that is the only time I did that, I always go back to stock with one click ODIN before flashing a new rom
Click to expand...
Click to collapse
the lagfixes may not have been installed...i think you have to manually install them with the roms you mentioned

[Q] ICS on Rooted Captivate (stock 2.3.5)

First off i am kind of a noob and haven't flashed any rom ext.
I have a rooted captivate on stock 2.3.5 and wanted to know how to get ICS.
Any advice on the easiest way to do this or ROMs that you recommend would be great
Thanks
If you have cwm...ask you need to do is, factory reset and format /system in recovery and flash the ROM, when that's done it'll probably boot back into recovery (which will probably look different because its the ics kernel recovery) and flash the Rom once more, and you're done.
Thanks, but what is cwm and how do I get the ics rom on my phone
Also how do I back up the phone so I don't lose all of my data?
Sent from my SAMSUNG-SGH-I897 using xda premium
Cwm= clockwork mod recovery.
How did you root, a custom kernel swap? If so that's got cwm.
you can transfer the ROM via usb...or download it directly to your phone.
backup your contacts to your gmail and/or Sim card (i do both)
Download and run titanium backup to backup your apps.
Cdevine8 said:
Thanks, but what is cwm and how do I get the ics rom on my phone
Also how do I back up the phone so I don't lose all of my data?
Sent from my SAMSUNG-SGH-I897 using xda premium
Click to expand...
Click to collapse
First, back everything up like studa recommended. If you are not on a custom kernel, download the speedmod kernel and odin in my attachments. Then download an ICS rom that you like. Put the rom on your phone. Open Odin on your computer, and select the speedmod kernel in the PDA section. Put your phone into download mode and flash the kernel. After the flash is done and your phone reboots, remove your battery to turn off your phone. Reboot into recovery and navigate to install zip/install custom zip and navigate to your chosen rom. After it installs, install it again from the new ICS recovery screen (it's probably different colored). Then, reboot your device and wait a few minutes for your rom to start. Afterwards, the apps, contacts, etc. can be restored.

Need to make my phone stock through CWM?

Hi everyone,
Recently my Ace has stopped charging through the USB port. I tried every cable I could find, even the PC cable, but none charge (and the PC doesn't recognize the phone), so I've come to the conclusion that my phone's port is faulty. I'm still under warranty, so normally I would just send it in.
Here's the tricky part. I have cyanogen mod 7.2 flashed on the phone, and I'd rather send it in stock. Before anyone asks, I DID make a backup of stock the moment I got the phone, but in the 6 months I had it, somethings happened and now it won't go back to it (it recovers up to 'data' then fails)
Anyway, I have an external battery charger which lets me charge just the battery, so I'm not on some weird doomclock, and have a 16 gb SD card, and an adapter which lets me load stuff onto it directly from a computer. My ace is the Telstra variant which runs on the S5830TDVKQ3 ## rom, but to be honest I'll be happy to get any ace stock rom onto it.
I was thinking that I could go back to stock by flashing stock kernel, then bootloader, and then rom, then stock recovery? The only problem is, I have no idea how to split up the firmware from SamMobile into those parts and have them flash-able. I've seen a similar thread to this on about a galaxy nexus but not for the ace, can anyone help me out?
so you mean to say, you want to know how a firmware can be converted to a flashable zip.. right ?
download any of the stock based custom roms
get 7-zip, open up the custom rom zip file
navigate to /system/bin
delete the su binary
then go to /system/app
delete superuser.apk
then repack the zip file and flash
this much should be enough to satisfy them at the service center
btw take a backup of your current rom in case something goes wrong
Nandroid backup first.
Try using ext4 manager app which you can get from cf-root post or cf-root flashable zip (open the zip, take the app, put it in system/app with rw-r-r permissions).
Use ext4 manager to convert your file system to rfs. After its done you should be able to restore your stock backup without errors.
Good luck.

[Q] Restore to stock from WCX

I loaded WCX some months back and want to go back to the stock ICS that I had. No need to unroot, just to go back and try stock again. I have S-off and a nandroid backup of my original stock and all the drivers, rootkit on the computer . I want to make sure I am doing this right. My plan is:
1. Wipe phone, davlick etc
2. Use rootkit to fastboot the old boot.img back to the phone.
3. Reboot
4. install old nandroid recovery on sd card
5. boot into recovery and restore nandroid from sd card.
I think I should then have my old ICS stock back and running and "only" have to re-install the apps.
Does that seem right?
Thanks ahead of time for all the help
Why dont you just use an RUU

Need a bit of help, not sure what to do

So I was running Ultimate PureXSP v2.1 and it was starting to get really bogged down and slow so I figured id try and reinstall the ROM over the existing install, so I went into TWRP and installed it, the install said failed but because of the touch debug messages, I couldnt see the error message.
Anyway, TWRP has always had erratic screen movements and general weirdness, it would keep going back to the homescreen when trying to flash. So I rebooted and it got stuck in a bootloop!
I used flashtool to put a stock 201 firmware on and now its runnning okay again. But I have lost root and recovery and I dont think 201 can be rooted unless I downgrade first but I will probably run into data problems, I cant use titanium backup or a nandroid to back up my data.
What should I do? I dont have any backup software that works without root and I cannot root without downgrading and losing data.
Can I unlock the bootloader from 201 and then add recovery and root? I already have a TA backup and my unlock key.
Any help would be great!
Sent from my C5303 using XDA Premium 4 mobile app
Yup, that's what I did.
Unlocked the bootloader. Then can flash any custom kernel. I flashed DoomLord's Adv Stock kernel, which has an inbuilt recovery. Then flash chainfire's SuperSU update through recovery to get root. Then can install any other recovery and flash stock .201 kernel back. One problem though.. [highlight]YOU WILL LOSE ALL YOUR DATA (INCLUDING WIPING OF INTERNAL SDCARD) WHEN UNLOCKING THE BOOTLOADER.[/highlight] So, do you have any cwm data backup done before?
Edit: Backup&Restore app that comes with stock Rom is supposed to backup and restore data without root. But it never worked for me when restoring things. Other option is to use 'ADB backup' commands from a pc. It also didn't do restore properly for me. Can try those as last resorts.

Categories

Resources