Assistance going back to stock - Nexus 4 Q&A, Help & Troubleshooting

So I've tried all the custom ROMS under the sun and I'd like to go back to stock. Not AOSP, but stock retail Android. I downloaded the factory image from https://developers.google.com/android/nexus/images#occam however I'm wondering how I can go back to stock without:
1. Loosing Root
2. Erasing all my apps and settings
Is this even possible? If so, what's the best way to go back it?

itpromike said:
So I've tried all the custom ROMS under the sun and I'd like to go back to stock. Not AOSP, but stock retail Android. I downloaded the factory image from https://developers.google.com/android/nexus/images#occam however I'm wondering how I can go back to stock without:
1. Loosing Root
2. Erasing all my apps and settings
Is this even possible? If so, what's the best way to go back it?
Click to expand...
Click to collapse
1. Backup apps and app data using Titanium Backup, then copy the Titanium Backup folder to a PC
2. Flash back to stock using this guide
3. You will lose custom recovery and root by doing the above, so download a recovery and then use "fastboot boot recovery nameofrecovery.img" to temporarily boot into it
4. From there you can flash a root.zip
5. Reinstall Titanium Backup and copy the backup of the Titanium Backup folder from the PC back to the phone.
6. Use Titanium Backup to restore app and app data.

Related

"image" backup

I want to experiment with flashing different ROMs and kernels, but I would like a quick and easy way of restoring my stock 4.1.2 ROM with all my settings/apps if I need to. I tried to do this with Titanium Backup, but after flashing back to stock I had to wipe data and cache and when I reinstalled Titanium backup there was no apps/settings.
Is there any way to make an "image" of my default environment which I can then flash from recovery?
Create a backup(nandroid)
You will need a custom recovery installed, doing this will give you a complete system image and restoring it will put your phone back to the exact state it was in when you made the backup
slaphead20 said:
Create a backup(nandroid)
You will need a custom recovery installed, doing this will give you a complete system image and restoring it will put your phone back to the exact state it was in when you made the backup
Click to expand...
Click to collapse
Thanks, I have made a backup using CWM Recovery. I also selected the "create image.zip" option - I assume that I can flash that .zip and be back to the current state after playing with some ROMs?
Vlad_M said:
Thanks, I have made a backup using CWM Recovery. I also selected the "create image.zip" option - I assume that I can flash that .zip and be back to the current state after playing with some ROMs?
Click to expand...
Click to collapse
Not sure about that option as I use quote an old recovery that doesn't have that option unfortunately, so can't help you there
slaphead20 said:
Not sure about that option as I use quote an old recovery that doesn't have that option unfortunately, so can't help you there
Click to expand...
Click to collapse
Ok, I made both backups (the normal .tar and the image.zip). One more question though - the last time I flashed the stock ROM (using Odin), I had to wipe data and cache because the phone got stuck in a boot loop. If I restore from backup and have to wipe data and cache again, won't this render the whole restore useless (i.e. I will go back to default state)?

[Q] Couple of questions about ROM

Hi, planning on rooting the device and installing PA (sticking with PA's kernel). New to this area, I hope the questions are fine.
1. What's the difference between Carbon Backup and WugFresh Toolkit backup?
2. How can I avoid bricking the device?
3. Does the toolkit offers an option to unroot the device? If so, will I have to do something else instead of unrooting with the toolkit?
4. If I decided to unroot and go back to what I have right now (all the apps etc.), how would I do that (restore all the data)?
5. Is unrooting wiping the device?
6. Should I update the ROM via GOOManager directlry or should I download from GOOManager and then flash via the recovery?
7. What do you recommend - PA's built in kernel or Franco's?
8. Do I need the SuperSU app? (PA ROM)
9. From SuperSU description:
NOTICE: A SPECIAL PROCEDURE IS NEEDED FOR UNINSTALLATION. IF YOU DO NOT LIKE THE APP, DO *NOT* JUST UNINSTALL IT, YOU *WILL* LOSE ROOT.
Click to expand...
Click to collapse
It doesn't say how to uninstall it.
Thanks in advance!
[email protected] said:
Hi, planning on rooting the device and installing PA (sticking with PA's kernel). New to this area, I hope the questions are fine.
1. What's the difference between Carbon Backup and WugFresh Toolkit backup?
2. How can I avoid bricking the device?
3. Does the toolkit offers an option to unroot the device? If so, will I have to do something else instead of unrooting with the toolkit?
4. If I decided to unroot and go back to what I have right now (all the apps etc.), how would I do that (restore all the data)?
5. Is unrooting wiping the device?
6. Should I update the ROM via GOOManager directlry or should I download from GOOManager and then flash via the recovery?
7. What do you recommend - PA's built in kernel or Franco's?
8. Do I need the SuperSU app? (PA ROM)
9. From SuperSU description:
It doesn't say how to uninstall it.
Thanks in advance!
Click to expand...
Click to collapse
XDA Rule 1, use the search button and try finding the answers yourself first. This is not a covenience store where you can order what you want. Don`t want to be rude but lazyness is not apreciated around here
superSU can be set as default superuser app by converting superSU to a system file from within the app and then redownload the superSU app from Play.
Some advice: learn how to use adb instead of toolkits, look here https://www.google.com/url?q=http:/...ds-cse&usg=AFQjCNEEKsh9DfW_LuvfJlEbDsWBeAoe1Q
gee2012 said:
XDA Rule 1, use the search button and try finding the answers yourself first. This is not a covenience store where you can order what you want. Don`t want to be rude but lazyness is not apreciated around here
Click to expand...
Click to collapse
I have searched alot but couldn't find exact answers for the questions I've listed here (some of them).
[email protected] said:
Hi, planning on rooting the device and installing PA (sticking with PA's kernel). New to this area, I hope the questions are fine.
1. What's the difference between Carbon Backup and WugFresh Toolkit backup?
2. How can I avoid bricking the device?
3. Does the toolkit offers an option to unroot the device? If so, will I have to do something else instead of unrooting with the toolkit?
4. If I decided to unroot and go back to what I have right now (all the apps etc.), how would I do that (restore all the data)?
5. Is unrooting wiping the device?
6. Should I update the ROM via GOOManager directlry or should I download from GOOManager and then flash via the recovery?
7. What do you recommend - PA's built in kernel or Franco's?
8. Do I need the SuperSU app? (PA ROM)
9. From SuperSU description:
It doesn't say how to uninstall it.
Thanks in advance!
Click to expand...
Click to collapse
1. Pretty much all backup apps are the same, just with some different features, carbon lets you back up to the cloud I know, Titanium backup is also a pretty good/common one. Main difference is just the features, check the play store descriptions for specifics.
2. With a nexus device you don't really have to worry about bricking, you can always just use google's factory images off of their site to restore your phone from the bootloader/fastboot. It is really easy to do and plenty of guides available on it.
3. I don't know for sure if the toolkit will do it or not, but unrooting is pretty easy, just go into the system/apps portion of the internal storage and delete the superuser app that you have.
4. Just restore all your apps with the backup app that you picked, then once they are restored, delete the superuser app like i explained in the last one.
5. Nope, unrooting just removes the superuser app, nothing else
6. Doesn't matter, I use the same rom and I download on my computer then manually flash it in recovery mode, because the rom downloads faster that way. Remember to flash the gapps every time after you install the rom though!
7. I use PA's kernal, I have heard some people get better battery with Franco, but I can get like 2 and a half to 3 hours everyday on the PA one, and the color settings on the PA one look really nice. It is really a personal preference though, try both
8. Nope, it comes installed with PA already, don't have to worry about that.
9. If you go back to stock, you have to wipe the data before you install the stock aosp rom anyways, which will delete the superuser app for you. but just fyi, PA uses superuser, not superSU, it is newer and works a little bit better
Hope this helped, I love everything about PA! you won't be disappointed!
Happy flashing
klinkdawg24 said:
1. Pretty much all backup apps are the same, just with some different features, carbon lets you back up to the cloud I know, Titanium backup is also a pretty good/common one. Main difference is just the features, check the play store descriptions for specifics.
2. With a nexus device you don't really have to worry about bricking, you can always just use google's factory images off of their site to restore your phone from the bootloader/fastboot. It is really easy to do and plenty of guides available on it.
3. I don't know for sure if the toolkit will do it or not, but unrooting is pretty easy, just go into the system/apps portion of the internal storage and delete the superuser app that you have.
4. Just restore all your apps with the backup app that you picked, then once they are restored, delete the superuser app like i explained in the last one.
5. Nope, unrooting just removes the superuser app, nothing else
6. Doesn't matter, I use the same rom and I download on my computer then manually flash it in recovery mode, because the rom downloads faster that way. Remember to flash the gapps every time after you install the rom though!
7. I use PA's kernal, I have heard some people get better battery with Franco, but I can get like 2 and a half to 3 hours everyday on the PA one, and the color settings on the PA one look really nice. It is really a personal preference though, try both
8. Nope, it comes installed with PA already, don't have to worry about that.
9. If you go back to stock, you have to wipe the data before you install the stock aosp rom anyways, which will delete the superuser app for you. but just fyi, PA uses superuser, not superSU, it is newer and works a little bit better
Hope this helped, I love everything about PA! you won't be disappointed!
Happy flashing
Click to expand...
Click to collapse
I appreciate your answer, thank you very much!
So now all I worry about is the backup - There are three ways I know:
1. Carbon Backup
2. Toolkit backup
3. Drag and drop from the SDCard
I just want the apps + app settings to be the same after unlocking the bootloader. Which option is the best?
Thanks again!
BTW
About question 4, the locking of the bootloader wipes the device, so how can I unroot and keep the apps? Also, should I do a Nandroid backup before or after I restore all the apps from Carbon?
[email protected] said:
I appreciate your answer, thank you very much!
So now all I worry about is the backup - There are three ways I know:
1. Carbon Backup
2. Toolkit backup
3. Drag and drop from the SDCard
I just want the apps + app settings to be the same after unlocking the bootloader. Which option is the best?
Thanks again!
Click to expand...
Click to collapse
It would be appreciative and descent to hit the thanks button of klinkdawg24 after answering your questions That`s how we do things around here.
You are absolutely right. Not used to a Thanks button, usually I just say thanks
[email protected] said:
I appreciate your answer, thank you very much!
So now all I worry about is the backup - There are three ways I know:
1. Carbon Backup
2. Toolkit backup
3. Drag and drop from the SDCard
I just want the apps + app settings to be the same after unlocking the bootloader. Which option is the best?
Thanks again!
BTW
About question 4, the locking of the bootloader wipes the device, so how can I unroot and keep the apps? Also, should I do a Nandroid backup before or after I restore all the apps from Carbon?
Click to expand...
Click to collapse
Use carbon backup or titanium backup I would say, I have never used carbon, but there should be a batch option to backup all your apps at once. Also, since the unlocking or locking of the bootloader will wipe all your data, including what is on the phone, make sure you copy the backup to your computer or something after you have completed it.
What I do for nandroid is just to run it before i flash a new rom, that way i always have a restore point that i can get back to.
So I:
1.) reboot to recovery, preform nandroid
2.) factory reset
3.) flash PA and gapps
then after you boot into PA, you can restore your apps and data, then if you wish, you can do another nandroid, but I wouldn't worry about it at that point, just do it before you flash a new rom or update if you would like. That way your nandroid will have all your current app data, not the app data from when you started using the rom. That just works better for me, but again, it is completely up to you
So couple of things I still do not understand:
1. You mean I should do a nandroid backup before I restore all the apps? (right after the root)
2. Right now my bootloader is locked. How can I backup my apps + app's settings so I will recover them after unlocking the bootloader?
3. After I make a nandroid backup, can I just move the whole backup to the computer and when I need it I return it to the SD Card?
Help please? These are the only question I need answer for before I root. I just don't want to be stuck without a backup.
[email protected] said:
So couple of things I still do not understand:
1. You mean I should do a nandroid backup before I restore all the apps? (right after the root)
2. Right now my bootloader is locked. How can I backup my apps + app's settings so I will recover them after unlocking the bootloader?
3. After I make a nandroid backup, can I just move the whole backup to the computer and when I need it I return it to the SD Card?
Click to expand...
Click to collapse
1. Make a backup after you rooted and installed the apps and data (passwords etc)
2. Use Helium Backup or Appmonster (Pro) or adb command: adb backup –apk –noshared –nosystem –f /backup/mybackup.ab
3. Yes.
I wouldn't use a toolkit (apart from backing up) especially if it's your first time rooting, it's always best to do it manually in my opinion; it may take a little longer, but then you'll know the ins and outs of what really happens and it will help if anything goes wrong.
Sent from my CM10.1 Nexus 4
gee2012 said:
1. Make a backup after you rooted and installed the apps and data (passwords etc)
2. Use Helium Backup or Appmonster (Pro) or adb command: adb backup –apk –noshared –nosystem –f /backup/mybackup.ab
3. Yes.
Click to expand...
Click to collapse
1. But then I will have to install all the apps after the root, make a nandroid backup and then factory reset again to install PA rom. Shouldn't I just make a nandroid backup right after I root with no apps and stuff?
2. With adb backup, is it safe to restore to a different ROM than I used when I took the backup?
EDIT:
For some reason, I backed up with "adb backup" and the backup's size is 500MB. When I backed up with Carbon (Helium), I got 40MB. I think I'll unlock bootloader + root, then restore the adb backup, then backup with Titanium and then flash PA rom. Is that the right process?

[Q] TWRP Recovery- How to use?

So I am currently on Paranoid Android and wish to switch to another ROM (most likely AOKP or PACman just to try). In TWRP recovery, what would I select to just back up my app data and NOT my ROM, and after that is possible, what must I restore to get it back and in what order of flashing alon with my new ROM and GAPPS???:silly:
You can go into TWRP and backup and choose what partitions you want to backup. However, I'd suggest you backup everything and don't try to restore the data to another ROM.
I use Titanium to backup all app data as well as MMS history, WiFi networks etc then do a full backup in TWRP. Then wipe everything and flash the new ROM. Then boot up and reconfigure accounts and restore apps + data with titanium.
It may be a little more effort but this way you can always roll back to the previous setup if anything goes wrong and you're less likely to run into any weird issues from moving data around between ROMs.
Or you could try something like app2zip off the play store to make a flashable zip of only selected apps and data which is probably safer than the whole partition. If you do a full backup first you can always rollback if something goes wrong.
When using Titanium Backup, when I hit run backup, where does it go and how do I restore it after I flash my new ROM. Or do I do the update.zip option and flash that when I'm doing my new ROM?
GraysonB said:
When using Titanium Backup, when I hit run backup, where does it go and how do I restore it after I flash my new ROM. Or do I do the update.zip option and flash that when I'm doing my new ROM?
Click to expand...
Click to collapse
It goes into a folder on /sdcard called TitaniumBackup. When you flash a new rom, you will need to redownload titanium backup. When you redownload it, it will find the backups and you can click on the app to restore it.
Theres no need to use the update.zip method. Do it like this ^

Jumping from AOKP to Stock. How?

I'm stuck on AOKP 4.2, and would like to upgrade to stock 4.4 + xposed (been hearing great things about it). And I have a bunch of questions before I do the deed.
1. Can I just wipe apps + data and flash the stock image? Will that preserve my recovery (TWRP) and root?
2. Should I also get a 4.4-specific baseband?
3. I'd like to backup my contacts, along with the merged/linked data. How do I do that?
You don't need to wipe anything beforehand. If you want to preserve recovery, you'll have to flash each image separately instead of doing the flash all or remove the recovery image from the stock package, as that will prevent it from being overwritten. No, root can't be preserved because you are flashing a new system partition. You can simply flash superuser.zip afterwards, or TWRP may offer to root for you.
You don't necessarily need a new radio. Personally, I'm still using an older hybrid, for LTE purposes.
The best way would be having your contacts synced with Google. Otherwise, you'll need Titanium Backup for contacts and all other data anyway.
Sent from my Nexus 4 using XDA Premium 4 mobile app
1) how are you flashing? if you use the autoflash through fastboot, youll lose everything. however, if you flash each partition manually through fastboot, you can preserve your current recovery.
2) if you aren't having issues now, i would stay with the radio you are currently using. radios are cross compatible between android versions.
3) there are a few root apps in the play store for contacts backup. if you have a google account, they should all be auto backed up (provided that you saved every contact to your google account and not your sim card)
exchequer598 said:
I'm stuck on AOKP 4.2, and would like to upgrade to stock 4.4 + xposed (been hearing great things about it). And I have a bunch of questions before I do the deed.
1. Can I just wipe apps + data and flash the stock image? Will that preserve my recovery (TWRP) and root?
2. Should I also get a 4.4-specific baseband?
3. I'd like to backup my contacts, along with the merged/linked data. How do I do that?
Click to expand...
Click to collapse
I recommend you to use an official stock ROM, and install it. It will not preserve anything, so you should export your contacts, and restore them later.
After restoring stock ROM, you can install any recovery and root from fresh.
https://developers.google.com/android/nexus/images
sent from nexus4 pa4beta2

[Q] How do I revert to stock?

I'm a newbie when it comes to all things Android. I have a T-Mobile Galaxy Note 4 which I've rooted.
I've installed a flashable zip via TWRP and I think it may be causing some problems. Due to lack of forsight, I did not make a backup.
So, how do I get everything back to stock so I can start from scratch and make a backup the right way? Can I use the factory reset option in TWRP?
The zip I flashed was supposed to unlock my wifi tethering, but it didn't work. I think it altered some system files.. If I use TWRP which boxes would i want checked?
Reflash stock rom of your device. It will be back to complete stock with no root what so ever
Sent from my SM-N910C using Tapatalk
lmills.117 said:
I'm a newbie when it comes to all things Android. I have a T-Mobile Galaxy Note 4 which I've rooted.
I've installed a flashable zip via TWRP and I think it may be causing some problems. Due to lack of forsight, I did not make a backup.
So, how do I get everything back to stock so I can start from scratch and make a backup the right way? Can I use the factory reset option in TWRP?
The zip I flashed was supposed to unlock my wifi tethering, but it didn't work. I think it altered some system files.. If I use TWRP which boxes would i want checked?
Click to expand...
Click to collapse
Factory reset does not help to revert back to stock.
Install Phone INFO ★Samsung★ app > Menu > 'Firmware Browser' to find and download stock firmware for your device.
Then boot into download mode and flash via Odin software.
vndnguyen said:
Factory reset does not help to revert back to stock.
Install Phone INFO ★Samsung★ app > Menu > 'Firmware Browser' to find and download stock firmware for your device.
Then boot into download mode and flash via Odin software.
Click to expand...
Click to collapse
Just checked it out on the Play store; looks like it redirects to sammobile for firmware downloads. I already tried to download my firmware via sammobile on the PC and it seems like the link is currently broken. However, I found it over on samsung-updates. Hopefully that's a reputable site as well.
My plan is to re-flash with stock, re-root, install TWRP, and then immediately make a backup. Is that a solid plan, or should I use titanium backup before/instead of TWRP backup?
Also, are the default options in TWRP backup good enough? Is Titanium backup redundant if I use TWRP?
A TWRP makes a full backup of the ROM, so its more useful if you mess up and its is highly recommended you make one.
Titanium Backup is useful if you wanna change ROMs, but keep your apps and app data
Tom540 said:
A TWRP makes a full backup of the ROM, so its more useful if you mess up and its is highly recommended you make one.
Titanium Backup is useful if you wanna change ROMs, but keep your apps and app data
Click to expand...
Click to collapse
So for example, let's say that I want to install some mods on top of the stock firmware (like this one that supposedly unlocks my wifi tethering). But then I change my mind and I want to revert back to stock -- I can restore my TWRP backup to revert back to before the mods were installed (with default backup options checked?) and then use titanium backup to restore my apps and app data?
What exactly happens if I back up with TWRP using default options and then restore? What will be different? I'm assuming that all of the apps that I installed since the backup will no longer be there?
lmills.117 said:
So for example, let's say that I want to install some mods on top of the stock firmware (like this one that supposedly unlocks my wifi tethering). But then I change my mind and I want to revert back to stock -- I can restore my TWRP backup to revert back to before the mods were installed (with default backup options checked?) and then use titanium backup to restore my apps and app data?
What exactly happens if I back up with TWRP using default options and then restore? What will be different? I'm assuming that all of the apps that I installed since the backup will no longer be there?
Click to expand...
Click to collapse
Yep you are correct! Restoring the TWRP backup will restore the ROM, data, apps etc that were there when you made the backup; you can, however, use TB to backup any apps or data and then restore them when you restore the TWRP backup
Tom540 said:
Yep you are correct! Restoring the TWRP backup will restore the ROM, data, apps etc that were there when you made the backup; you can, however, use TB to backup any apps or data and then restore them when you restore the TWRP backup
Click to expand...
Click to collapse
So, I just re-flashed the stock firmware and all of my apps are still there. The recovery mode went back to stock so I put TWRP back on. Then I rooted again and TWRP was gone again! What is going on..
lmills.117 said:
Just checked it out on the Play store; looks like it redirects to sammobile for firmware downloads. I already tried to download my firmware via sammobile on the PC and it seems like the link is currently broken. However, I found it over on samsung-updates. Hopefully that's a reputable site as well.
My plan is to re-flash with stock, re-root, install TWRP, and then immediately make a backup. Is that a solid plan, or should I use titanium backup before/instead of TWRP backup?
Also, are the default options in TWRP backup good enough? Is Titanium backup redundant if I use TWRP?
Click to expand...
Click to collapse
In short, TWRP creates a backup of whole partition, e.g system partition - where Android OS is stored, userdata partition - where user data is stored (including all installed apps and their data, settings), etc...
While Titanium creates a backup of individual apps inside the userdata partition.

Categories

Resources