Hi guys
Apologies if this has been posted in the wrong section.
I have recently inherited a Galaxy S2 (GT-I9100) running the CyanogenMod 12.1, Android Version 5.1.1
I have spent the last two day trying to and failing miserably to install Xposed Installer V3.0 Alpha 2, I have searched Google and read through numerous forums on how to resolve this, but the more I read the more confusing it becomes. I would really appreciate any help/assistance in helping me fix the problem, so that I can run the app without any issues. When I access the app's log it states:
data/data/de.robv,android,xposed.installer/log/error.logpen failed. ENOENT (No such file or directory)
Also, when I try to run Titanium Backup 6.1.0, I get an error stating:
Sorry, I could not acquire root privileges. This application will *not* work! Please very that your ROM is rooted, and try again.
This attempt was made using the "/system/xbin/su" command.
I have gone into Developer Options and set Root Access to Apps and ADB.
As I new to Android my understanding (please correct me if I am wrong) that the CyanogenMod 12.1 was actually a ROM and therefore Titanium Backup should work. FYI SD Maid not working.
Any help on both of these issues would be most appreciate, please bear in mind I am a noob where Android and Galaxy S2 are concerned.
Thanks in advance.
The forum for the i9100 is located here, but because it's so close to the i777 we can probably help a bit.
Sounds to me like your phone isn't rooted, as none of the apps you mention will work without root privileges. Install the latest SuperSU; you should be getting access prompts if you're correctly rooted.
If you are not prompted for root access when opening apps such as Titanium Backup, you'll need to install Framaroot and use the Aragorn exploit in order to easily root your device. Let us know if either of these work for you.
Hi Steve
Thanks for the reply.
I should have mentioned that I already have Super SU installed and for certain apps it does ask me to grant access. If open Super SU it displays the following apps:
Titanium Backup
Root Explorer
pops1368 said:
Hi Steve
Thanks for the reply.
I should have mentioned that I already have Super SU installed and for certain apps it does ask me to grant access. If open Super SU it displays the following apps:
Titanium Backup
Root Explorer
Click to expand...
Click to collapse
Strange. In that case have you tried doing a complete wipe in recovery, then reinstalling the ROM? In your case you would boot into recovery, wipe /system and dalvik cache, then install ROM and gapps. Just make absolutely certain you're running a custom recovery before doing this, such as CWM (ClockworkMOD) or TWRP (TeamWin), or you could damage your device if you're on stock recovery. And, of course, make sure you have the ROM/gapps already on your device before wiping everything!
Because you inherited the device the best method would normally be to flash back to stock and start all over - if for nothing else it's a good learning experience. Hope this helps.
Hi Steve
Thanks for the reply and your advice/information, very informativinformativ.
I was trying to avoid a complete wipe and reinstalling the ROM again, as Android is new to me and I don't want to mess up the installation and wreck the phone, even it was free. However, I think I have no choice and will have to bite the bullet and do it.
Thanks once again.
pops1368 said:
Hi Steve
Thanks for the reply and your advice/information, very informativinformativ.
I was trying to avoid a complete wipe and reinstalling the ROM again, as Android is new to me and I don't want to mess up the installation and wreck the phone, even it was free. However, I think I have no choice and will have to bite the bullet and do it.
Thanks once again.
Click to expand...
Click to collapse
As long as you have a custom recovery there's very little that can go wrong with a full wipe. I would suggest booting into recovery first (power button + both volume keys, then release at the Samsung logo) and make sure you're running either CWM or TWRP. While in recovery do a backup first, as a "just in case". You can always restore your device fully from a backup.
The next thing to remember is to make sure your ROM/gapps are compatible with one another. For instance, if you're installing a CM12 (Android 5.0+) ROM make sure your gapps are also 5.0+.
Best of luck!
When I attempt to go into Recovery Mode it does so, but opens a CyanogenMod screeb, it dies not show any options to backup/restore, it foes however have the complete wipe option. When I run ROM Manager I have done the following Recovery Setup, which now shows Recovery Already Installed:
ClockworkMod Recovery
TWRP
But I don't understand what I'm doing wrong, for neither option to be available in Recovery Mode?
pops1368 said:
When I attempt to go into Recovery Mode it does so, but opens a CyanogenMod screeb, it dies not show any options to backup/restore, it foes however have the complete wipe option. When I run ROM Manager I have done the following Recovery Setup, which now shows Recovery Already Installed:
ClockworkMod Recovery
TWRP
But I don't understand what I'm doing wrong, for neither option to be available in Recovery Mode?
Click to expand...
Click to collapse
Best option for you is to go to the i9100 forum and download a kernel for your phone that is compatible with the OS version you want to install (CM12, which is 5.1. in your case). With your device (as well as our i777), the kernel and recovery are fused together, so you cannot use ROM Manager to install a recovery to a separate partition.
Once you have an i9100 5.1 kernel downloaded on your phone you can flash it through the current recovery you have, then immediately reboot back into recovery. You'll then have the correct recovery and can proceed as normal with the ROM installation.
CWM absolutely has a backup/restore option, but it's hidden in a sub menu. My personal recommendation is to use TWRP recovery, as it's still being developed and is more robust/user friendly.
So as a general rule stay away from ROM Manager for system specific changes.
Thank you so much for the information/advice, I really do appreciate all of it.
Related
Hello, I had some general questions about the recoveries and how they work.
I have recently unlocked my bootloader and did the "recoveryinstallerfornoobs" process and then flashed the superuser zip file to gain root, which all worked, which is great.
So just for my understanding I had some questions:
-I guess I got some after market recovery program from the install process I did above?
-Can you only have 1 recovery program on your phone at a time
-I see in the app market there is a clockwork mod app there called "rom manager", is the same recovery app that some of this programs like Xboarder and such offer you the ability to flash (e.g. flash ClockworkMod 5.0.2.7) or is it different? With the app in the market place you can can make back ups of your current ROM but it is also the recovery app?
-The recovery app if my understanding is right is the app you boot into when you want to flash a new rom, wipe data, dalvik cache, battery stats, factory reset ...?
-Once you have root access why would you use a program to flash the clockwork recovery vs just installing it via the marketplace if they are the same?
-I just powered up in bootloader mode and then booted into recovery and notice that it says cwm based recovery v5.0.2.7 so I think I have the newest version from CWM, even newer than what is available in the market?
-I see and "X" watermarked in the back though so i believe this is "xboarder" I am surprised to see that if this app is from CWM
-How do I update this recovery in the future?
-I also don't see the app in my list of apps for ROM manager so I am starting to think the recovery and the clockwork app in the market place are different and do different things
Sorry for the long email and nood questions, however, any answers anyone can provide would be greatly appreciated.
windcan said:
Hello, I had some general questions about the recoveries and how they work.
I have recently unlocked my bootloader and did the "recoveryinstallerfornoobs" process and then flashed the superuser zip file to gain root, which all worked, which is great.
So just for my understanding I had some questions:
-I guess I got some after market recovery program from the install process I did above?
-Can you only have 1 recovery program on your phone at a time
-I see in the app market there is a clockwork mod app there called "rom manager", is the same recovery app that some of this programs like Xboarder and such offer you the ability to flash (e.g. flash ClockworkMod 5.0.2.7) or is it different? With the app in the market place you can can make back ups of your current ROM but it is also the recovery app?
-The recovery app if my understanding is right is the app you boot into when you want to flash a new rom, wipe data, dalvik cache, battery stats, factory reset ...?
-Once you have root access why would you use a program to flash the clockwork recovery vs just installing it via the marketplace if they are the same?
-I just powered up in bootloader mode and then booted into recovery and notice that it says cwm based recovery v5.0.2.7 so I think I have the newest version from CWM, even newer than what is available in the market?
-I see and "X" watermarked in the back though so i believe this is "xboarder" I am surprised to see that if this app is from CWM
-How do I update this recovery in the future?
-I also don't see the app in my list of apps for ROM manager so I am starting to think the recovery and the clockwork app in the market place are different and do different things
Sorry for the long email and nood questions, however, any answers anyone can provide would be greatly appreciated.
Click to expand...
Click to collapse
I got a headache reading so many questions. Felt like I was taking a final lol.
Long story short.
ROM Manager - Lets you make a backup on the entire phone. Allows you to flash ROMS.
CWM - The actual recovery. ROM Manager will go into CWM to flash the ROM or create a Nandroid backup.
Backing up Apps - I recommend using MyBackupPro.
"flash a new rom, wipe data, dalvik cache, battery stats, factory reset" - That's all done in CWM.
If you wanna update CWM, there will be a thread with the update. Usually you can flash it through ADB or flashing a zip file in CWM (same way as flashing a ROM
5.0.2.7 is the latest version of CWM
windcan said:
Hello, I had some general questions about the recoveries and how they work.
I have recently unlocked my bootloader and did the "recoveryinstallerfornoobs" process and then flashed the superuser zip file to gain root, which all worked, which is great.
So just for my understanding I had some questions:
-I guess I got some after market recovery program from the install process I did above?
-Can you only have 1 recovery program on your phone at a time
yes only 1
-I see in the app market there is a clockwork mod app there called "rom manager", is the same recovery app that some of this programs like Xboarder and such offer you the ability to flash (e.g. flash ClockworkMod 5.0.2.7) or is it different? With the app in the market place you can can make back ups of your current ROM but it is also the recovery app?
rom manager is the name of the program for android, clockwork recovery is the name of the recovery provided by rom manager. clockworkmod 5.0.2.7 is a recovery based on clockwork i believe (was made by xboarder)
-The recovery app if my understanding is right is the app you boot into when you want to flash a new rom, wipe data, dalvik cache, battery stats, factory reset ...?
yes correct. usually you can also flash kernels, but only if you have s-off...only some phones come with s-off by the luck of draw and there is no way at this moment to make s-on into s-off..you must flash kernels seperately and cannot be flashed through recovery.
-Once you have root access why would you use a program to flash the clockwork recovery vs just installing it via the marketplace if they are the same?
because the latest rom manager recovery does not have the 5.0.2.7 version from xboarder right now.
-I just powered up in bootloader mode and then booted into recovery and notice that it says cwm based recovery v5.0.2.7 so I think I have the newest version from CWM, even newer than what is available in the market?
like i said this version is based on clockwork recovery made by xboarder I believe. actually clockwork recovery is at 4.0.0.4 or something like that. do not use that recovery
-I see and "X" watermarked in the back though so i believe this is "xboarder" I am surprised to see that if this app is from CWM
like i said again it is made by xboarder and it is BASED ON clockwork Recovery
-How do I update this recovery in the future?
Same way you did now.
-I also don't see the app in my list of apps for ROM manager so I am starting to think the recovery and the clockwork app in the market place are different and do different things
I believed I have answered these questions above.
Sorry for the long email and nood questions, however, any answers anyone can provide would be greatly appreciated.
Click to expand...
Click to collapse
I think I passed my final
Thanks very much for both replies
To confirm, the app in the market place, ROM Manager, does not work with the clockworkMod 5.0.2.7 as they are developed by different individuals?
right now it is a bit of a pain as I have to take out the battery, and of course the back cover, in order to boot into recovery (I guess the phone just goes into a sleep mode when I power down and not a fulls shut down?)
I suppose with a matching app and recovery you can use the app to boot into recovery without needing to take the battery out?
Thanks very much and I hope I can return the favor to other noobs at some point
Here's a better answer...
Make backups of anything and everything.
Do anything and everything to get some experience for yourself.
If you break something, restore and try again.
Try different recoveries, try different roms, try different methods!
Nobody needs to ask for permission before doing anything. Just do it and learn from it! Don't be afraid of damaging your phone because with the exception of physical modification, I haven't heard of a way to break it yet. But... there's always a first.
windcan said:
Thanks very much for both replies
To confirm, the app in the market place, ROM Manager, does not work with the clockworkMod 5.0.2.7 as they are developed by different individuals?
right now it is a bit of a pain as I have to take out the battery, and of course the back cover, in order to boot into recovery (I guess the phone just goes into a sleep mode when I power down and not a fulls shut down?)
I suppose with a matching app and recovery you can use the app to boot into recovery without needing to take the battery out?
Thanks very much and I hope I can return the favor to other noobs at some point
Click to expand...
Click to collapse
your phone goes into sleep mode because you probably have it set on fastboot. Go under power settings and check fastboot off, this way you don't have to take out the battery. Also there are other ways of getting into recovery mode...read binary's first thread in the general section about how to root your phone.
Hi! I've just rooted my device (Nexus 5) with Chainfire auto setup and I've downloaded Superuser by Clockworkmod. When I opened it up, it showed a message saying that I needed to update the SU binary, I went back to the Play Store, I read the description and I found a link, that allows me to install it from a recovery files. Once I downloaded it I opened the app again using the recovery files, Android crashed and rebooted itself, but during the boot it showed a dead android image (the one with the red triangle). I've turned off my device (Nexus 5) and then I've reboot it, now all works fine. I'm terribly scared, what the hell happened? It's my fault or Superuser just crashed?
SimoPiersi said:
Hi! I've just rooted my device (Nexus 5) with Chainfire auto setup and I've downloaded Superuser by Clockworkmod. When I opened it up, it showed a message saying that I needed to update the SU binary, I went back to the Play Store, I read the description and I found a link, that allows me to install it from a recovery files. Once I downloaded it I opened the app again using the recovery files, Android crashed and rebooted itself, but during the boot it showed a dead android image (the one with the red triangle). I've turned off my device (Nexus 5) and then I've reboot it, now all works fine. I'm terribly scared, what the hell happened? It's my fault or Superuser just crashed?
Click to expand...
Click to collapse
You didn't do any damage to your device. What it seems like is that you only have root access and not a custom recovery like ClockWorkMod or TWRP so when you went back to the app it went to boot you to recovery to install them and it rebooted you to the stock recovery which does not allow installation of files that aren't signed with a specific factory key. You should be able to update the binary with the normal install mode on the Nexus without issues. If you want a custom recovery, there are various ways to do it, but the easiest would be with the GooManager app (free in the Play Store) where you grant it SU access, hit Menu > Install OpenRecoveryScript and let it do it's thing. Then when you boot to recovery, you will have a version of TWRP. This is a great custom recovery. Touch based, Fast. Allows you to back up all the important parts of the phone so you have a system backup - called a nandroid (which you should do and save to a safe spot) as well as install custom versions of android, themes, kernels, and all types of other mods as well as a way to do a complete factory and /sdcard wipe if ever needed.
Thanks GOD!
es0tericcha0s said:
You didn't do any damage to your device. What it seems like is that you only have root access and not a custom recovery like ClockWorkMod or TWRP so when you went back to the app it went to boot you to recovery to install them and it rebooted you to the stock recovery which does not allow installation of files that aren't signed with a specific factory key. You should be able to update the binary with the normal install mode on the Nexus without issues. If you want a custom recovery, there are various ways to do it, but the easiest would be with the GooManager app (free in the Play Store) where you grant it SU access, hit Menu > Install OpenRecoveryScript and let it do it's thing. Then when you boot to recovery, you will have a version of TWRP. This is a great custom recovery. Touch based, Fast. Allows you to back up all the important parts of the phone so you have a system backup - called a nandroid (which you should do and save to a safe spot) as well as install custom versions of android, themes, kernels, and all types of other mods as well as a way to do a complete factory and /sdcard wipe if ever needed.
Click to expand...
Click to collapse
That's why I love XDA Developers, because there are people that knows what they are saying! Thank you so much. Now I'm wondering if I should install a recovery mod as you suggested. Do you think I have to install Tasker as well? My first idea was to install Xposed modules, after rooting my device, but when they say "be careful it could **** UP your device" I wonder "Why the hell you should say that when I want to install them?", so I still think about that. Thank you again!
SimoPiersi said:
That's why I love XDA Developers, because there are people that knows what they are saying! Thank you so much. Now I'm wondering if I should install a recovery mod as you suggested. Do you think I have to install Tasker as well? My first idea was to install Xposed modules, after rooting my device, but when they say "be careful it could **** UP your device" I wonder "Why the hell you should say that when I want to install them?", so I still think about that. Thank you again!
Click to expand...
Click to collapse
Tasker is not necessary for any of this. Tasker is for automating your phone to do certain tasks under specific conditions you set up. Such as setting your phone to turn on wifi based on location. You certainly don't NEED a custom recovery, but if you like to play with your phone, then it is a great way to be able to make a complete backup to restore in case of emergency. When you install and activate the Xposed framework, it will also create a zip file on your storage that will disable it while flashed through a custom recovery. If things go super wrong, you can also restore the phone via PC using fastboot tools and factory img files from Google. What I like to do is:
Download factory img files and set up adb and fastboot
Root
Recovery
Nandroid
Backup Nandroid and complete storage to PC
Flash whatever roms or mods
If it completely bricks and you lose access to storage then restore system from PC then redo recovery, copy files and nandroid back to storage and restore backup
bam - back in business.
Hi all
How exciting it is to see that so many people are so involved in improving or fixing their mobile devices.
I got some sort of a virus on my Samsung Galaxy S3 so decided to try to wipe it clean and load a more up-to-date version of Android on it. It had 4.3.?. On a Windows 7 PC, I downloaded the Skipsoft Unified Android Toolkit (version 1.4.5). I think now I didn't need to but probably succeeded in rooting my S3 with Kingo ROOT.
Next, using the toolkit and Odin, I think I succeeded in flashing the recovery-twrp-2.7.1.0-i9300.tar custom recovery.
My phone would only boot up with the stock Android.
I took me a while before I learnt about entering the recovery mode by holding the volume up, home and power-on buttons simulateously.
In the recovery mode, I used Wipe, Advanced, ticked all of the boxes and wiped everything on the phone.
Then, using the toolkit and Odin again, I flashed the same recovery-twrp-2.7.1.0-i9300.tar custom recovery I'd flashed before.
I still can't boot my phone. If I choose Reboot from twrp (v2.7.1.0) and then either System or Recovery, I just get, "No OS installed! Are you sure you wish to reboot?"
I can still enter either download or recovery modes but the latter is something of a hit and miss affair.
Using File Manager in the twrp I can see lots of files and directories so guess I managed to flash something.
Also, using Terminal Command I see that my prompt is a "#"so think I'm still rooted.
I know something about Unix and programming mainframe computers but am not an expert with mobile devices. I'd be so grateful if someone could please advise me as to what to do?
Mike
You wiped system partition ;-;
If you want stock rom you need to flash the stock rom by odin.
I recommend you to install a custom rom like Temasek or CM13, it's real easy just flash the zip.
Haha yes^ this guy is right
You might have to flash stock rom if you somehow wiped efs, most of the time custom roms doesn't include efs with them
Turga said:
You wiped system partition ;-;
If you want stock rom you need to flash the stock rom by odin.
I recommend you to install a custom rom like Temasek or CM13, it's real easy just flash the zip.
Click to expand...
Click to collapse
Thanks for your response, Turga and snkmv, below. I didn't know what efs was so looked it up on the net and found this worrying but expert explanation from ryanrazer and Rukbat in androidcentral ( http://forums.androidcentral.com/as...erstanding-cwm-backups-efs-partition-etc.html )
In twrp's recovery mode on my phone and using File Manager, I see that the directory /efs is empty (all files are shown in File Manager, right, including invisible files?)
I'd prefer to try to flash a custom ROM which includes efs rather than the stock ROM. Do Temasek or CM13 include efs or does another, reliable custom ROM?
Thanks again folks
Mike
Dear All,
Sorry if am re-posting the same, and as am new here and need an urgent help, started this thread.
1. My Samsung Galaxy SIII International (I9300) was rooted and I had CM11 stable/snapshot version there since last 2-3 weeks.
2. Yesterday, I tried upgrading the latest CM13 nightly for my device.
3. While doing so, and rebooting, it asked me the normal message "root possibly lost, fix, yes or no". I accidentally pressed no.
4. Then I noticed after CM13 was flashed, that I do not have root access anymore. Please note that at this point in time, I was not aware that it has to be explicitly enabled in developer options.
5. I came to know that I lost root when I tried to boot in to recovery (CWM) to install gapps.
6. Now, under the impression that I do not have root anymore, I tried to root again with Odin as I had been doing all these days.
- By doing that, ODIN removed my custom recovery (CWM) and flashed it with stock recovery.
- Though ODIN said PASS after reboot, I still do not have root access.
7. Removed cache, wipe data, and factory reset, multiple times but no help.
8. Enabled root for both apps and adb in Developer options, but no use.
9. I also tried KINGO root ( a very popular tool for SGS3 these days) but in vain.
10. Now, am stuck with CM13 and stock recovery and unable to do anything with ROM manager or anything else as I do not have root anymore.
11. Am able to install few apks for whatsapp and facebook for now and living with it, but it wouldn't let me install playstore apk too anymore.
Highly appreciate any quick feedback.
Many Thanks,
BR,
Shiva
I belive you need to flash the stock 4.3 jellybean rom with odin, and root it afterwards.
Silviu_gs3 said:
I belive you need to flash the stock 4.3 jellybean rom with odin, and root it afterwards.
Click to expand...
Click to collapse
Many Thanks, seems to be a good option and I will try that.
You need a recent version of twrp recovery
rchtk said:
You need a recent version of twrp recovery
Click to expand...
Click to collapse
TWRP 3.0.0..???????????
First of all.. Update TWRP to 3.0.2, you are NOT supposed to see the message that tells you that root is gone, as (official) CM13 includes root from now on.
For root, inside Android go to Settings > Developer Options > Root > Only apps.
Do it via Odin as only 3.0.2 is available in a .tar file (latest version), should not be hard.
Not only that, but upgrading from CM11 to CM13 is not recommended, as it causes multiple compatibility issues with installed apps (afaik).
You are better off with wiping it all and install CM13 Clean, and if you decide to; you must also flash Gapps (optional) directly after CM13 (no reboot).
Read more on the official thread: http://forum.xda-developers.com/gal...t/rom-cyanogenmod-13-nightlies-i9300-t3272811
SGS3 I9300: Root and Custom Recovery lost after CM13 - SOLVED
Dear All,
Thank you for your valuable advice and suggestions. I used ODIN to flash back to stock ROM and now everything works as it is like out of the box. I will root again perhaps in a few days and the flash the stable release of CyanogenMod. Will keep you posted. I wish the Android M snapshot is released by then.
Thanks again,
Cheers,
Shiva
Hi guys. I've been using custom ROMs for a few years now and I always used TWRP.
But lately, my banking app and some other important apps simply won't work because of my custom recovery.
Having that said, can I keep my LineageOS AND flash via Odin JUST the stock recovery to "bypass" the security these apps need? I'm using Magisk and I'm hiding root access from these apps.
What would happen if I flash the stock?
Thanks in advance!
This sounds like a device specific issue, as I use TWRP and LOS on my V20 with no issues. I'd say the banking apps aren't working because you are rooted which means MagiskHide might not be working properly.
This can also happen if you fail the SafetyNet test in Magisk depending on certain apps.
I'm not aware of a way for you to use a custom ROM with a stock recovery. It may be possible but hasn't been as far as I've seen.
I recommend asking this question in the proper Q/A section for your device (which I assume is a Samsung since you mentioned ODIN) to see if other users of that device can help you. Then, report this thread to have it closed/deleted once you have done so.
Also: Backing up with Titanium Backup isn't enough, in almost any case. Do a FULL backup from TWRP of your device, store it somewhere else like an SD card or PC and then mess around.
Redline said:
This sounds like a device specific issue, as I use TWRP and LOS on my V20 with no issues. I'd say the banking apps aren't working because you are rooted which means MagiskHide might not be working properly.
This can also happen if you fail the SafetyNet test in Magisk depending on certain apps.
I'm not aware of a way for you to use a custom ROM with a stock recovery. It may be possible but hasn't been as far as I've seen.
I recommend asking this question in the proper Q/A section for your device (which I assume is a Samsung since you mentioned ODIN) to see if other users of that device can help you. Then, report this thread to have it closed/deleted once you have done so.
Also: Backing up with Titanium Backup isn't enough, in almost any case. Do a FULL backup from TWRP of your device, store it somewhere else like an SD card or PC and then mess around.
Click to expand...
Click to collapse
Thanks for that. I wiped the whole thing and installed a stock ROM. Will only root now and see where it goes.
Titanium backup crashes on this phone (yes, it's a Samsung J7 Prime) if I use Magisk anyway.
I trusted my Google syncing and I kinda got a lot of backups back from the cloud. Not perfect, but acceptable.
yea you can use it
Following is the procedure :
A Nandroid Backup
The quickest way to revert your phone back to its stock ROM is to restore your Nandroid backup. Assuming you have an up-to-date one available it shouldn’t result in much — or any — data loss.
A Nandroid backup creates a complete snapshot of your phone: the operating system, apps, data, and everything else. Restoring it, therefore, restores the ROM you were using at the time. If you have a backup you took when using the stock ROM, then you’re set.
How to Restore a Nandroid Backup
Boot your phone into your custom recovery. We recommend TWRP.
Select Restore. You’ll see a list of all the available backups.
Pick a backup made using the stock ROM.
Select the partitions you want to restore. Normally this means you should check all the boxes.
Finally, swipe the bar labelled Swipe to Restore. It takes a few minutes to complete, then you can reboot.
Flash a Stock ROM
If restoring a Nandroid backup isn’t a viable option, then the next best bet is to flash a stock ROM. This comes with the added inconvenience that you will probably need to perform a factory reset along the way
There are benefits, too. You might be able to find a version of the ROM that is pre-rooted. Flashing ROMs is also really easy to do.
How to Flash a Stock ROM
Find a stock ROM for your phone. Go to forum.xda-developers.com and locate the forum for your device. Stock ROMs are often found in stickied posts at the top of the development boards.
Download the ROM to your phone.
Backup all your data.
Boot into recovery.
Select Wipe to reset your phone. This is optional (if you don’t want to bother with backing up and restoring), but you may encounter bugs or even get stuck in a bootloop if you don’t do it. Swipe the bar to begin the wipe.
From the recovery home screen, select Install and navigate your way to the stock ROM you downloaded.
Swipe the bar to begin installation. You can reboot your phone when it’s finished.
Flash a Factory Image
The ultimate method for getting your phone back to stock is to flash a factory image. This reverts your phone almost to the state it was in when you first unboxed it. All you need to do afterwards is lock the bootloader, and your device will be completely factory fresh.
How to Flash a Factory Image
The procedure to flash a factory image can differ from one device to another. In the case of a Pixel, the steps are simple:
Download and setup the ADB and Fastboot tools.
Download the factory image from the Android website. Unzip the download on your desktop.
Connect your phone via USB and boot into Fastboot mode.
Launch the command line or terminal app.
At the command prompt run flash-all.bat on Windows, or flash-all.sh on Mac or Linux.
Wait for it to finish, then reboot.