[Q] Some questions about going to custom ROMs - HTC One S

Hi!
Im about to jump into the world of custom ROMs on my One S. First I want to make couple of thing sure:
1. I have the official JB update on my S4 One S. In case I ever need to revert to stock, can I just restore a nandroid that make before flashing for the first time, fastboot flash the stock recovery and then relock the bootloader? I believe the RUU for JB does not yet exist and thus this feels the simplest way to do this.
2. I have quite a bit of app data that I want to preserve. I'm planning to do this: adb backup everything (already have the backup, a file just under 400MB), unlock the bootloader, adb restore everything, root, titanium backup the apps that I want, fastboot flash TWRP, flash custom ROM and finally restore apps from titanium backup. I have read the adb backup/restore not working with HTC One phones, but the backup at least went through without errors. Would this procedure work?
Im not a complete noob with custom roms, but this is my first HTC that I want to tinker with. Please, correct me of i have misunderstood something.
Thanks!
Sent from my HTC One S using xda app-developers app

1. You can restore the nandroid backup as long as you are on the same hboot. You do not need to install stock recovery.
2. Ive never used adb backup, I just make backups with titanium backup.
You dont have to format /sdcard/ to install a new rom, so you wont lose the backups. But if youre afraid, or just want to have a backup on your PC, just copy the titanium backup folder to your PC (either through adb pull or usb storage mode).
The steps to install a custom rom is:
1. unlock bootloader.
2. Install a recovery (TWRP)
3a. boot into recovery and make a backup
3b. You might want to root your stock rom while youre at it, before you make your backup.
4. copy the new rom .zip to your sdcard (either through adb push or usb storage mode), you can, of course, copy the rom .zip to your SD card whenever you want (inside your current system, in fastboot or in recovery, at any time), it doesnt do any harm being on your sdcard , except taking up space of course.
5. wipe system, data, cache and dalvik-cache.
6. Flash the new rom.
7. Wipe cache and dalvik again.
8*. boot into bootloader again and fastboot flash the boot.img from the rom
Reboot phone and it should start up your new rom
For details on how to perform each step, refer to the many guides available on this forum.
* some say this step can be done before flashing a new rom, I prefer to do it after though.

Thank you for your answer!
About backing up the apps: I believe the phone resets to factory setup when I unlock the bootloader. That's why I'm planning using the adb backup as titanium backup requires root (which I don't have before unlocking the bootloader). Or is there any other way to backup apps without root? Or is unlocking the bootloader possible without losing data?
Sent from my HTC One S using xda app-developers app

Oh right, I forgot the small detail about root lol.
Yea, ADB is probably your best bet then, copy everything from /data/app/, /data/data/ and /sdcard/Android/. I think that covers all apps and their settings.
Im not sure you can aquire root through adb without the phone being rooted though... Maybe you can still pull files even without root though (never tried). "adb shell ls /data/" without root doesnt work any way. gives "permission denied".
If that doesnt work, I think youre out of luck . A non-rooted phone sucks lol

Ok. Simply pulling files from /data/ probably will not work without root, but using the "adb backup" should. Here's one guide for doing it: http://forum.xda-developers.com/showthread.php?t=1420351.
I guess I'll just try my luck with it. I rather set up some apps again by hand (and lose my airline one Pocket Planes ) than run stock forever.
Thanks for your advice!
Sent from my HTC One S using xda app-developers app

Related

[Q] (i9020a, 2.3.4) Unlock bootloader & Restore apps/system settings

Hi,
I have already unlocked the bootloader and rooted my Nexus S and am very happy with the result. My girlfriend has now seen all of the customization that I can do and is interested in doing the same. The thing that she's really worried about, however, is losing all of her settings, messages and apps, and having to re-install everything manually.
Usually I would just use Titanium Backup or do a NAND backup with clockworkmod, but to use TB effectively, the phone needs to be rooted. She has 2.3.4 on her phone, so (I believe) you can't root it without unlocking the bootloader, and unlocking the bootloader will wipe the phone. You also can't flash clockworkmod without the bootloader being unlocked.
Is there another method that I am unaware of that can reliably and completely restore all apps and settings after the phone is formatted? Or is there a way to root the phone without unlocking the bootloader so that I can install Titanium Backup and back everything up before I unlock it?
Any help is appreciated. Feel free to get as technical as you want.
Ok. The android market does not like to restore or really keep track of our free apps. I use appbrain and it keeps a list of all phones and apps. Yes you have to install one by one. Then there is two apps that back up sms and call log to your sd card. As for settings, your adding a new rom so there will be things different anyways. Plus it will have more of them. Just an idea.
Sent from my Nexus S 4G using XDA App
I'm not 100% sure, but you might be able to flash a custom recovery without unlocking the phone. Then you can
1) perform a nandroid backup
2) mount usb
3) copy your backup to your computer (make a note of the origin folder)
4) root your phone
5) go back into custom recovery
6) mount usb
7) copy your backup back to the right folder
8) restore
Your phone is rooted, and back to it's original state. You can now perform Titanium backup.
I recommend this recovery image:
http://forum.xda-developers.com/showthread.php?t=988686
You will need to use fastboot to flash the recovery image
fastboot flash recovery recovery.img
assuming that you rename whatever recovery image you've downloaded to "recovery.img" and place it in the tools folder of your android-sdk.
bigtoysrock said:
Ok. The android market does not like to restore or really keep track of our free apps. I use appbrain and it keeps a list of all phones and apps. Yes you have to install one by one. Then there is two apps that back up sms and call log to your sd card. As for settings, your adding a new rom so there will be things different anyways. Plus it will have more of them. Just an idea.
Click to expand...
Click to collapse
I know that I can restore the apps from the market, but I'm looking for a way to keep the data. She's not needing a custom ROM. The things that she's wanting to do can be done just with root access, so that's all I'm looking to do. To that end, I'm looking for the easiest way to unlock and root the phone, and then restore all of the apps and settings to exactly how they were.
Also, you mention that there are two apps to back up SMS and call logs, but you don't say what they are.
bedalus said:
I'm not 100% sure, but you might be able to flash a custom recovery without unlocking the phone.
Click to expand...
Click to collapse
Unfortunately you can't flash the recovery without unlocking. I tried to do it before I unlocked my phone, and it denied access to the recovery until I unlocked it. If I could, I would just have done a nandroid backup, unlocked, restored nandroid and then rooted, but I can't get nandroid backups without unlocking =(
Um search the market for sms and call log backup. Same person makes both.
Sent from my Nexus S 4G using XDA App

[Q] How to make a full system backup for Galaxy S plus ?

I just bought and Samsung Galaxy S plus , I upgraded it and Updated it to the latest version .
I'm new to this android kind of stuff, and wanted to root it to get the SuperUser / BlackMarket App, but before that to avoid my phone getting brick I was told to do a system backup for my phone but I dont have a clue how to do a system backup.
Can anyone here kindly assist me ?
Thanks.
solution
You can go into settings and back up thru ur device but if you do the steps right you can back up everything thru clockwork mod when u root you don't lose anything when you unroot you dooo but once you rooted download titanium backup and you'll be good
Hi new member...we have SGS+ subforum where you can find more info,roms,whatever about our phone: http://forum.xda-developers.com/forumdisplay.php?f=1270
I have made backup w/ Titanium backup. Find it from market.
titanium backup without root?
That's what I'm wondering since the requirements is phone need to be rooted first.
What should I do to do a full system backup ( not apps ) Just the system to avoid bricked phones.
I think he's asking for an actual backup of the whole stock rom with everything on it. I wouldn't deal with Titanium Backup for that since it'll only copy changes you have like your own apps and settings when you've used the phone for a while. I would use Clockworkmod Recovery to make a nandroid backup of your rom so you may return to it when a problem with a rom arises.
EDIT
Razsus said:
That's what I'm wondering since the requirements is phone need to be rooted first.
What should I do to do a full system backup ( not apps ) Just the system to avoid bricked phones.
Click to expand...
Click to collapse
Yeah just root and install ROM manager, and from there install ClockWorkMod Recovery, and then say "Backup Current ROM" or something like that and it should do a full system backup
ChpStcksRlz said:
Yeah just root and install ROM manager, and from there install ClockWorkMod Recovery, and then say "Backup Current ROM" or something like that and it should do a full system backup
Click to expand...
Click to collapse
indeed.... a nandroid backup via CW Recovery is the best thing you can do
just make sure the backup is verified and not corrupted, after the backup has completed
But I'm wondering how if when I'm rooting that time something screwed up my phone is bricked without any backup?
Is there anyway to backup the system before rooting?
Thanks you guys for replying
U can't mate. But I don't think u can brick a phone while rooting it
Hit THANKS if I helped you
Meaning I root my phone then I do a system backup with those they mention on top, if there's any problem I do a System Restore then use the Unroot method? To claim and warranty back from Samsung or even Unroot my warranty will be gone?
recovery
if you have recovery in the cell is easy to just start looking at recovery and backup and restore
alanloax said:
if you have recovery in the cell is easy to just start looking at recovery and backup and restore
Click to expand...
Click to collapse
What do you mean?
If with my phone backup it's just for recovery files,apps,images,etc..
I dont need those I just want the system so I will be safe
Razsus said:
What do you mean?
If with my phone backup it's just for recovery files,apps,images,etc..
I dont need those I just want the system so I will be safe
Click to expand...
Click to collapse
Well in all honesty, when rooting your phone you're just adding stuff into the stock ROM to allow more freedom. But this depends on your root method. Just like with my G2, you install Visionary and run the temp root (no harm there) and then on to the permanent root (there's the harm) but it's fairly safe. Just follow your instructions and you shouldn't have any problems. In the case that you do mess up your stock ROM through rooting, the manufacturer includes a built in recovery (which you'll replace with CWM later on), the manufacturer's recovery menu is able to flash SIGNED roms which you may be able to acquire from somewhere here or the manufacturer's website
Ur system can be backed up via cwm. And yes u can unroot after flashing a stock rom to regain warranty
Hit THANKS if I helped
Sent from my Blade using xda premium

[Q] Install new ROM AND keep data?

Hello, long time lurker here. Thinking about finally making the plunge to a custom rom.
I have a lot of apps with my saved data, high scores, etc.
Wondering if it's possible to unlock, root, install custom rom and retain my apps and their data.
Will Titanium Backup do this, or should I suck it up and reinstall everything?
Titanium is perfect for such things. But TB requires root. If you are on the 2.20 firmware, I'm not sure whether the new temp root exploit will allow you to run TB or not. If not, your data will be wiped out when you unlock the bootloader (before permanent root is achieved).
unlock --> root --> backup all apps including app data using tit backup batch mode --> flash custom ROM --> restore apps including app data using tit backup batch restore.. jsut ensure that you are not trying to backup & restore /system apps
redpoint73 said:
Titanium is perfect for such things. But TB requires root. If you are on the 2.20 firmware, I'm not sure whether the new temp root exploit will allow you to run TB or not. If not, your data will be wiped out when you unlock the bootloader (before permanent root is achieved).
Click to expand...
Click to collapse
Telus version, so don't need to exploit, but I know unlocking the bootloader will factory reset my device, trying to see if there's a way to do this before I unlock
kancherlapraneeth said:
unlock --> root --> backup all apps including app data using tit backup batch mode --> flash custom ROM --> restore apps including app data using tit backup batch restore.. jsut ensure that you are not trying to backup & restore /system apps
Click to expand...
Click to collapse
That won't work. Unlocking the bootloader wipes data.
redpoint73 said:
That won't work. Unlocking the bootloader wipes data.
Click to expand...
Click to collapse
thanks for correcting
Oh wait, forgot about this little gem: http://forum.xda-developers.com/showthread.php?t=1671746
Follow that procedure, unlock the bootloader, restore data.
Now the trick is, on your version to get root you need to flash a rooted ROM (if I understand correctly). If you flash a stock rooted ROM, you may be able to do so without wiping data (which is normally recommended). Then you can run Titanium, and backup your app data.
Wiping data (factory reset) is normally advised when flashing ROMs. But if you flash a stock rooted ROM, it might be similar enough that it won't cause any serious bugs. Enough to get Titanium running. Then wipe, and flash a ROM of your choice.
That's just my thought anyway. Not 100% on any of that, since I didn't have to do it this way, personally.
Thanks! That sounds exactly like what I'm looking for.
Does it matter which stock rooted rom I use?
Such as: http://forum.xda-developers.com/showthread.php?t=1920424
So I would unlock, install recovery, install this rom. run titanium backup. install custom rom, restore with titanium backup?
area51avenger said:
Telus version, so don't need to exploit, but I know unlocking the bootloader will factory reset my device, trying to see if there's a way to do this before I unlock
Click to expand...
Click to collapse
I guess not a nandroid data backup. Since it requires twrp or cwm but u can use apps for backup that dont require root. Such as share cloud backup. Backup all apps and transfer them to pc the do what u have 2 do and then use apk manager app to batch install the apk files. But this backs up apps only not data not files.

Proper way to update ROM

I was just wondering what steps I need to take in order to install an updated version of my rom. Currently I use the aokp jb version 4. Want to update to the new milestone. Can someone help me out with the procedure? Will I lose any data?
Sent from my One X using xda app-developers app
dan798 said:
I was just wondering what steps I need to take in order to install an updated version of my rom. Currently I use the aokp jb version 4. Want to update to the new milestone. Can someone help me out with the procedure? Will I lose any data?
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
. First thing you should do is a nand backup in recovery (so you have something to go back to if all else fails)
. backup your SD card
. move your nand backup and sd card backup to your computer (that way if your sd gets corrupted you can reformat and push your backups to your device)
. you can also backup your apps + data with something like titanium backup (although now at least in JB if you have chosen this option Google will restore your apps, does not always work for me though so beware)
! Note that Tibu is quite controversial some people love it and swear by it and some people claim that it creates lots of issues, if you decide to use it, only use it to backup/restore user apps and not system apps. I personally use the pro version since it can sync backups to my Box and Dropbox account.
in addition to all of this I backup my sms, call log and custom launcher settings (but that's just me i'm a bit paranoid and I love redundancy)
When you're staying with the same rom you typically don't have to factory reset/clean install (unless of course the dev recommends it), just wipe cache and dalvik in recovery and flash your new rom.zip (don't forget to fastboot flash the boot.img if you're on the latest hboot) in recovery.
If you do not factory reset/clean install you will not loose data fingers-crossed. if you start encountering a lot of weirdness after a dirty flash well you will have to factory reset/clean install. I like to clean install most of the time so that I don't have to try to troubleshoot a bunch of stuff when s**T goes wrong plus it's easier to get support for obvious reasons.
In this particular case Milestone release of AOKP (milestone is a "stable" release and this is the first one) I would ABSOLUTELY do a clean install and I believe Rohan requires it because of kernel changes and the likes.
Hope all this makes sense and I did not forget anything.
Crappyvate said:
. First thing you should do is a nand backup in recovery (so you have something to go back to if all else fails)
. backup your SD card
. move your nand backup and sd card backup to your computer (that way if your sd gets corrupted you can reformat and push your backups to your device)
. you can also backup your apps + data with something like titanium backup (although now at least in JB if you have chosen this option Google will restore your apps, does not always work for me though so beware)
! Note that Tibu is quite controversial some people love it and swear by it and some people claim that it creates lots of issues, if you decide to use it, only use it to backup/restore user apps and not system apps. I personally use the pro version since it can sync backups to my Box and Dropbox account.
in addition to all of this I backup my sms, call log and custom launcher settings (but that's just me i'm a bit paranoid and I love redundancy)
When you're staying with the same rom you typically don't have to factory reset/clean install (unless of course the dev recommends it), just wipe cache and dalvik in recovery and flash your new rom.zip (don't forget to fastboot flash the boot.img if you're on the latest hboot) in recovery.
If you do not factory reset/clean install you will not loose data fingers-crossed. if you start encountering a lot of weirdness after a dirty flash well you will have to factory reset/clean install. I like to clean install most of the time so that I don't have to try to troubleshoot a bunch of stuff when s**T goes wrong plus it's easier to get support for obvious reasons.
In this particular case Milestone release of AOKP (milestone is a "stable" release and this is the first one) I would ABSOLUTELY do a clean install and I believe Rohan requires it because of kernel changes and the likes.
Hope all this makes sense and I did not forget anything.
Click to expand...
Click to collapse
Sounds excellent!! Yes this helps a ton, I was not sure of what I needed to wipe if anything. Thanks!
dan798 said:
Sounds excellent!! Yes this helps a ton, I was not sure of what I needed to wipe if anything. Thanks!
Click to expand...
Click to collapse
no problem..
Could you define a clean install and the steps?
RC196 said:
Could you define a clean install and the steps?
Click to expand...
Click to collapse
Clean install: The partitions are empty
Proper steps
Wipe System
Factory Reset
Wipe Cache (Optional, Factory reset should have done it already)
Wipe Dalvik Cache (optional, I usually dont wipe and problems dont occur)
RC196 said:
Could you define a clean install and the steps?
Click to expand...
Click to collapse
1.boot into recovery (twrp)
2. go into wipe menu and hit factory reset (DO NOT FACTORY RESET in FASTBOOT) this will wipe everything so backup first (see above post
3. flash the boot.img taken from your rom.zip of choice (this is if you are on latest version of HBOOT)
4. flash your rom.zip
5. reboot in system
Crappyvate said:
1.boot into recovery (twrp)
2. go into wipe menu and hit factory reset (DO NOT FACTORY RESET in FASTBOOT) this will wipe everything so backup first (see above post
3. flash the boot.img taken from your rom.zip of choice (this is if you are on latest version of HBOOT)
4. flash your rom.zip
5. reboot in system
Click to expand...
Click to collapse
Before I did any flashing, I made a backup of my phone of the latest HTC Sense. It was only unlocked and not rooted. That back up is still there. If I wanted I could wipe and restore this backup correct? I would not have to flash anything right?
RC196 said:
Before I did any flashing, I made a backup of my phone of the latest HTC Sense. It was only unlocked and not rooted. That back up is still there. If I wanted I could wipe and restore this backup correct? I would not have to flash anything right?
Click to expand...
Click to collapse
You will have to flash the boot.IMG from your backup and then restore the backup if you want to revert back to it
Sent from my HTC One XL
absolutelygrim said:
You will have to flash the boot.IMG from your backup and then restore the backup if you want to revert back to it
Sent from my HTC One XL
Click to expand...
Click to collapse
How would I get that boot image from the backup on my phone?
RC196 said:
How would I get that boot image from the backup on my phone?
Click to expand...
Click to collapse
You have to extract the boot.IMG to your computer and flash it with fastboot. Then restore the backup
Sent from my HTC One XL
This is what is in the backup folder in TWRP.
RC196 said:
This is what is in the backup folder in TWRP.
Click to expand...
Click to collapse
You can get the boot.IMG from the ruu zip or a 2.20 stock rooted Rom, which is in the one x pinup sticky in the android development section
Edit: boot.emmc.win is the boot.IMG. just rename it to boot.IMG and flash it from fastboot
Sent from my HTC One XL
absolutelygrim said:
You can get the boot.IMG from the ruu zip or a 2.20 stock rooted Rom, which is in the one x pinup sticky in the android development section
Edit: boot.emmc.win is the boot.IMG. just rename it to boot.IMG and flash it from fastboot
Sent from my HTC One XL
Click to expand...
Click to collapse
Oh OK thanks. So I actually didn't screw this part up LOL.:laugh:
absolutelygrim said:
You can get the boot.IMG from the ruu zip or a 2.20 stock rooted Rom, which is in the one x pinup sticky in the android development section
Edit: boot.emmc.win is the boot.IMG. just rename it to boot.IMG and flash it from fastboot
Sent from my HTC One XL
Click to expand...
Click to collapse
yep just rename boot.emmc as boot.img and now you can use this on one xl http://forum.xda-developers.com/showthread.php?t=1963896
makes it a lot friendlier, you don't need to extract the boot.img from the rom.zip, the app does for you and also you don't need a computer, you can do it all from your device

How to backup ''untouched system'' before I root?

So before I unlock,root and install TWRP how can I backup my stock system so I can use it later for OTA needs?
I passed perhaps 2 hours searching for a tutorial for how to backup but all I have found is how to restore a backup and not how to do build one.
Should I use adb for backup? Should I unlock the phone with HTC then flash TWRP to backup the system using TWRP itself??
vegetaleb said:
Should I unlock the phone with HTC then flash TWRP to backup the system using TWRP itself??
Click to expand...
Click to collapse
That's actually the way they recommend in the TWRP thread(s). Obviously unlocking the phone and just installung TWRP doesn't void OTAs. The trouble with OTA starts with rooting the system - at least that's how I understood all I read about it. But I'm not 100% sure, did it that way anyway. Take care to pick the 'image backup' (or similar) in the TWRP backup options. I selected all possible backup 'creations' and have a huge backup now, didn't need it yet though .
Edit: Did you read this: http://forum.xda-developers.com/showpost.php?p=64003115&postcount=2
Beeing new to the A9 myself I found that a valuable source of infos about the abobe.

Categories

Resources