Flashing ROMs with TWRP - G2 Q&A, Help & Troubleshooting

I'm coming from the Droid Razr Maxx. With that phone there was an internal and external sd card. I saved everything important on the ext sd card and never had to worry about losing data. Plus with Safestrap I could create up to 4 virtual Rom slots. Yes that system had a modified TWRP system... but it was highly modified.
So, I rooted my VZN g2 just now and installed TWRP via Flashify. I'd like to flash Malladus 1.2.2 but before I do I want to be sure I know which files are safe when I wipe data. I'd like to know how I'm supposed to back up my data since this system is different than what I'm used to. Any help or links would be very useful. Also, is it possible to switch between different ROMs the way I could with Safestrap? Thanks in advance.
Sent from my LG G2 android phone

jagman96 said:
I'm coming from the Droid Razr Maxx. With that phone there was an internal and external sd card. I saved everything important on the ext sd card and never had to worry about losing data. Plus with Safestrap I could create up to 4 virtual Rom slots. Yes that system had a modified TWRP system... but it was highly modified.
So, I rooted my VZN g2 just now and installed TWRP via Flashify. I'd like to flash Malladus 1.2.2 but before I do I want to be sure I know which files are safe when I wipe data. I'd like to know how I'm supposed to back up my data since this system is different than what I'm used to. Any help or links would be very useful. Also, is it possible to switch between different ROMs the way I could with Safestrap? Thanks in advance.
Sent from my LG G2 android phone
Click to expand...
Click to collapse
When you wipe data/factory reset from recovery your /sdcard contents are fine. No there's no sdcard but the folder is still named so.
I don't know about safe strap. But if you make a nandroid you can flash back and forth between ROMs. Its good to have a nandroid anyways

Related

[Q] Cleaning out the main storage/new beginning

I am about to give my AT&T Samsung GS4 a new beginning. I have had issues with my current stock ROM and restoring to a previous recovery is giving me issues. I am ready for a new start. The device is rooted, and I have TWRP 2.6.3.0 installed. I don't mind switching to CWM (Jeboo v1.1 is already on my flash list). I am leaning toward Graviton 1.4 ROM. Maybe Goldeneye.
I have just over 2 GB free on my internal storage, which I see getting used up pretty quick with photos of kids and other stuff. I have looked into a few folders, not knowing if they are important. I would like a fresh start with a new ROM and a clean internal storage. I'm even starting anew with a new empty SD card.
What can I do to clean out this internal storage and still keep TWRP (or CWM) recovery intact so I can install a new ROM? My goal is to have a fresh start on a new ROM with no junk files in the internal. Will wiping the internal storage from recovery wipe out my recovery?
In the interest of avoiding catastrophic meltdown and loss of everything, I have indeed made a copy of my internal drive, the sd card, and a few Nandroid backkups, which are all stored on a flash and/or PC.
Device config: Rooted stock ROM, UCUAMDL, stock kernel 3.4.0-453947.
duckredbeard said:
I am about to give my AT&T Samsung GS4 a new beginning. I have had issues with my current stock ROM and restoring to a previous recovery is giving me issues. I am ready for a new start. The device is rooted, and I have TWRP 2.6.3.0 installed. I don't mind switching to CWM (Jeboo v1.1 is already on my flash list). I am leaning toward Graviton 1.4 ROM. Maybe Goldeneye.
I have just over 2 GB free on my internal storage, which I see getting used up pretty quick with photos of kids and other stuff. I have looked into a few folders, not knowing if they are important. I would like a fresh start with a new ROM and a clean internal storage. I'm even starting anew with a new empty SD card.
What can I do to clean out this internal storage and still keep TWRP (or CWM) recovery intact so I can install a new ROM? My goal is to have a fresh start on a new ROM with no junk files in the internal. Will wiping the internal storage from recovery wipe out my recovery?
In the interest of avoiding catastrophic meltdown and loss of everything, I have indeed made a copy of my internal drive, the sd card, and a few Nandroid backkups, which are all stored on a flash and/or PC.
Device config: Rooted stock ROM, UCUAMDL, stock kernel 3.4.0-453947.
Click to expand...
Click to collapse
Reset Flash Counter
http://www.youtube.com/watch?v=2FXULkN5rAU
Reflash Stock
http://www.youtube.com/watch?v=ZpdWLPaJpiQ
What is the purpose of resetting the flash counter? As far as I know my bootloader is still locked.
Returning to stock? Wont i ose root and recovery? Wont I risk ending up with MF3 instead of the MDL that can be rooted?
On-On and Beer Near
If you've got everything backed up, a nandroid, the new ROM, a custom kernel (if you so desire) and the loki-doki zip (if not flashing a loki'd ROM or kernel) all on your micro SD card, then you're ready to begin.
In recovery, wipe everything except the external sd card. I've heard of users having problems after wiping/formatting data in twrp. May want to look into that. I think some users reverted to an older version of TWRP to avoid that. I use cwm. Check out the I337 guide in my signature. It details everything to wipe for a clean slate (system, data, etc).
Cheers
I have one each of a TWRP and CWM backup and recovery. Can a CWM be restored in TWRP?
On-On and Beer Near
duckredbeard said:
I am about to give my AT&T Samsung GS4 a new beginning. I have had issues with my current stock ROM and restoring to a previous recovery is giving me issues. I am ready for a new start. The device is rooted, and I have TWRP 2.6.3.0 installed. I don't mind switching to CWM (Jeboo v1.1 is already on my flash list). I am leaning toward Graviton 1.4 ROM. Maybe Goldeneye.
I have just over 2 GB free on my internal storage, which I see getting used up pretty quick with photos of kids and other stuff. I have looked into a few folders, not knowing if they are important. I would like a fresh start with a new ROM and a clean internal storage. I'm even starting anew with a new empty SD card.
What can I do to clean out this internal storage and still keep TWRP (or CWM) recovery intact so I can install a new ROM? My goal is to have a fresh start on a new ROM with no junk files in the internal. Will wiping the internal storage from recovery wipe out my recovery?
In the interest of avoiding catastrophic meltdown and loss of everything, I have indeed made a copy of my internal drive, the sd card, and a few Nandroid backkups, which are all stored on a flash and/or PC.
Device config: Rooted stock ROM, UCUAMDL, stock kernel 3.4.0-453947.
Click to expand...
Click to collapse
You have the answers already, but I will advice one thing, do not do any twrp over version 2.5.0.2, or you will for sure be starting over again at some point. Those versions have issues.
good luck.
TheAxman said:
You have the answers already, but I will advice one thing, do not do any twrp over version 2.5.0.2, or you will for sure be starting over again at some point. Those versions have issues.
good luck.
Click to expand...
Click to collapse
TWRP 2.6.0.0 is why we are having this conversation...
I have TWRP on my Asus TF700 tablet...not sure which version. Perhaps I need to get CWM on that device also.
Now I'm thinking the SD card that I was using at the time was the problem. I have not been able to write any files to that card using a PC. I have found another card from a different manufacturer. I have clockworkmod installed. My sd card contains recovery files and a new ROM.
I think all I need to do now is go into recovery, wipe everything including internal storage but not the external SD. Flash the new rom and kernel then reboot.
I believe this is all I need to do. Sound good to you?
On-On and Beer Near

[Q] formatting internal SD card

Hey Guys,
After doing some reading about Folder & partition structure of Android, I am totally confused & in worse condition.
My question is simple;
Flashing a new ROM does not reset/delete the folder in the internal SD card. Since I have capacity problem, I would like to delete those folders and make fresh start. How can I do this? Is is safe to delete /android/data folder?
Under setting/storage, the sum of all folders is around 5.2 GB, while it shows the total as 8.8 GB. Where is the rest of my space?
Best Regards
I have a GT-I9500, running Arrow ROM 11.0 (android 4.3)
Philz recovery has an option to format the device internal memory.
Sent from my GT-I9505 using XDA Premium 4 mobile app
9505 has 9.13gb
in recovery before flashing a rom you have to wipe data, system, cache, dalvkit cache, etc
i wist phyl recovery sayd wike internal memory, but there is no option like that, only wipe sdcard1 (external)
Okay this is what you need to do.
First download official firmware through SamMobile, then flash the .tar file through Odin, the boot into recovery, factory reset, the flash the same .tar file again. This will wipe out ALL your data on internal storage and give you a true fresh start. Of course after that if you're not happy you can always flash a custom recovery and flash a ROM.
Thanks for the replies. Going back to original firmware, seems like a tough route.
When I connect my device to windows, it simply allows me to format the SD card. What would happen IF I just do that? Would I brick the phone or loose an irrecoverable important data? (I don't care, If some bloatware does not work or loose its data)
xhuttra said:
Thanks for the replies. Going back to original firmware, seems like a tough route.
When I connect my device to windows, it simply allows me to format the SD card. What would happen IF I just do that? Would I brick the phone or loose an irrecoverable important data? (I don't care, If some bloatware does not work or loose its data)
Click to expand...
Click to collapse
I'm pretty sure if you format the internal card from a Terminal prompt, you will brick your phone.
we already told you you have to WIPE though recovery
maurocds said:
we already told you you have to WIPE though recovery
Click to expand...
Click to collapse
When wiping through recovery will that wipe/erase my efs folder?
That contance my imei and other...
marcel112 said:
When wiping through recovery will that wipe/erase my efs folder?
That contance my imei and other...
Click to expand...
Click to collapse
No. wiping through philz does not erase your efs directory.
However, you can always backup your efs to be totally safe

[Q] Questions About Backing up ROM with TWRP

I am new to the G2 and smartphones without removable SD cards. I had some questions before I plunge ahead with flashing Roms on the G2. I have not flashed a rom yet because I want to be sure I have a working backup just in case I screw something up. I have flashed roms on other phones, but they all had removable SD cards.
So, I have TWRP installed on my phone. If I backup the stock ROM, do I lose that backup if I do the factory reset/cache dalvik wipes? Would I also lose the roms I have placed on my G2?
Thanks. I have done exhaustive searches to no avail.
alouden said:
I am new to the G2 and smartphones without removable SD cards. I had some questions before I plunge ahead with flashing Roms on the G2. I have not flashed a rom yet because I want to be sure I have a working backup just in case I screw something up. I have flashed roms on other phones, but they all had removable SD cards.
So, I have TWRP installed on my phone. If I backup the stock ROM, do I lose that backup if I do the factory reset/cache dalvik wipes? Would I also lose the roms I have placed on my G2?
Thanks. I have done exhaustive searches to no avail.
Click to expand...
Click to collapse
No, The back up is stored in the Internal Storage partition, As long as you just wipe, /Data /System /cache and/dalvik cache and leave /internal storage alone, you will be fine. So in short, the answer to your question is no.
MalignantQuechnitlan said:
No, The back up is stored in the Internal Storage partition, As long as you just wipe, /Data /System /cache and/dalvik cache and leave /internal storage alone, you will be fine. So in short, the answer to your question is no.
Click to expand...
Click to collapse
Thanks very much. I just started the backup and now see where the backup is stored in internal storage.

TWRP backup question

If I backup my system on tw recovery, and flash a new rom, will wiping my phone delete the tw recovery backup in case I have to restore my phone? Feel free to correct me on this, but to my understanding teamwin has it's own partition, and wiping does not mess with this partition?
matthewbhass said:
If I backup my system on tw recovery, and flash a new rom, will wiping my phone delete the tw recovery backup in case I have to restore my phone? Feel free to correct me on this, but to my understanding teamwin has it's own partition, and wiping does not mess with this partition?
Click to expand...
Click to collapse
I think TWRP backups are normally stored on your internal storage partition, so if you perform a (EDIT full factory reset doesnt wipe this, thanks Silesh) or wipe your internal storage, your backups will be erased too. The TWRP itself does install to the recovery partition (which will only be affected by a flash to the recovery, which a wipe will not perform), you're correct on that but the backups are held separately to that. You can copy your backups to another computer or SD card, I found my backup under /SDcard/TWRP/BACKUPS - you could either copy the folder with a root browser or use the ADB pull command (with the ADB terminal), though the TWRP backup may not show on a Windows desktop even if it's been copied correctly. However, if copied back to your phone, the TWRP backup should function.
Edit: thanks Silesh for correcting me, I was thinking of app data rather than user data!
echo92 said:
I think TWRP backups are normally stored on your internal storage partition, so if you perform a full factory reset or wipe your internal storage, your backups will be erased too. The TWRP itself does install to the recovery partition (which will only be affected by a flash to the recovery, which a wipe will not perform), you're correct on that but the backups are held separately to that. You can copy your backups to another computer or SD card, I found my backup under /SDcard/TWRP/BACKUPS - you could either copy the folder with a root browser or use the ADB pull command (with the ADB terminal), though the TWRP backup may not show on a Windows desktop even if it's been copied correctly. However, if copied back to your phone, the TWRP backup should function.
Click to expand...
Click to collapse
Thanks for replying. I can't transfer files from my computer to my phone, but I have thought about using the ADB sideload option from recovery. Is there a way that I can move my backup from my phone to my computer (and to my phone from my computer) using the sideload option, just in case I need the backup? I refuse to flash a new ROM without access to my complete backup, lol.
Internal storage is not formatted during a normal wipe. You have to specifically go into the advanced wipe and select internal storage to wipe it completely. So there is no issue while flashing a new rom if you don't choose the advanced wipe option.
You could also create the twrp backup in your external sdcard. That way your backup stays even if you wipe your phone using a factory reset or by mistake.
Strange. What's the problem of making backups to external SD? The function is right there (as Silesh mentioned). BTW: the very last version of TWRP is able to make backups straight to pc. This needs to be done FROM a pc though. TWRP is capable to work with fastboot now (using special command though, or with this GUI for pc: https://forum.xda-developers.com/android/software-hacking/tool-twrp-backup-restore-tool-pc-t3572241 )
You can choose whether you want to use internal storage or SD card when making a backup. It doesn't matter which you choose as long as you (and I learned this the hard way) pay attention to what you are doing and DO NOT WIPE internal storage or your SD card. Advantages of SD card is you won't lose your backup if you decide to flash stock. Disadvantage: if your card craps out on you backup is lost unless you have copied to PC or saved on cloud.
My Solution
I solved my problem by using the pull command in adb. Now if I decide to flash a new ROM, I can push my TWRP recovery back to my phone using adb and then recover it in my TWRP recovery.. I also backup using adb backup which backs it up directly to my computer anyways.
I knew about storing my TWRP backup on an sd card, but I haven't made time to get one. . I recently switched to the Motorola G4 Plus after my iPhone 6s decided to turn off and not turn back on. I eventually grew tired of the iPhone anyways due to lack of accessibility and freedom. Back in the day I owned androids but never rooted one or had one that was rooted. I did jailbreak my 4th generation iPod a few years ago. But I went through an iPhone 5s, and upgraded to a 6s and had that for a few months. I eventually just switched back to android after the longest time and I can't say that I regret it.
My Moto G4 Plus has been an amazing phone. I've only had it for a few weeks now, but I rooted it the day after I got it . So I'm a bit of a noob in the rooting community, . Since then it's been a pretty smooth transition. I've only got root access and xposed framework as of now. I was thinking about flashing a ROM so I made backups just in case, but I don't plan on making any major changes to the kernel or flashing another ROM. I'm satisfied with the stock ROM since Motorola pretty much made it as minimal as possible. I would recommend this phone to anyone. It's the most solid phone I've had yet.

file corruption.

hi, i have a sm-t510 with android 9, and im trying to install twrp but everytime i try i get some kind of wierd file corruption. all my files in sdcar are named with random numbers and letters and there is nothing in it. the tablet boot normaly, but i cant install anything or acces any of my normal file. is there anyway to fix that, or does anyone has a data back up i can use for that version XAC-T510XXU2ASK5. thank you.
cwarrow said:
hi, i have a sm-t510 with android 9, and im trying to install twrp but everytime i try i get some kind of wierd file corruption. all my files in sdcar are named with random numbers and letters and there is nothing in it. the tablet boot normaly, but i cant install anything or acces any of my normal file. is there anyway to fix that, or does anyone has a data back up i can use for that version XAC-T510XXU2ASK5. thank you.
Click to expand...
Click to collapse
Didn't read the instructions very carefully, now did you? The very FIRST thing you need to do when booting to TWRP is to FORMAT THE DATA PARTITION. Not wipe, but FORMAT. The data partition is encrypted and TWRP can't read it. That is why everything looks weird. Also, that is why you need to backup any pictures, downloads or anyting else you want to save because formating the partition will erase EVERYTHING and not just system stuff that wiping deletes.
lewmur said:
Didn't read the instructions very carefully, now did you? The very FIRST thing you need to do when booting to TWRP is to FORMAT THE DATA PARTITION. Not wipe, but FORMAT. The data partition is encrypted and TWRP can't read it. That is why everything looks weird. Also, that is why you need to backup any pictures, downloads or anyting else you want to save because formating the partition will erase EVERYTHING and not just system stuff that wiping deletes.
Click to expand...
Click to collapse
I have been rooting phones and tablet for the past 10 years its the first time it happens. Maybe its something new. Thanks for the info. But i already format the data and evwrything disapeared beside a file named twrp. And i cant reatore the data, cause i didnt have twrp to back them up. So if you have another sugestion, i am all ear
cwarrow said:
I have been rooting phones and tablet for the past 10 years its the first time it happens. Maybe its something new. Thanks for the info. But i already format the data and evwrything disapeared beside a file named twrp. And i cant reatore the data, cause i didnt have twrp to back them up. So if you have another sugestion, i am all ear
Click to expand...
Click to collapse
My post pointed out that formatting would erase everything and that you should backup prior to doing it. And there are several other methods of backing up data and apps besides TWRP. Yes, it leaves the data partition blank, but flashing a ROM and gapps will put the directories back. Of course, they will still be empty. If you used a Google Account, then that should have at least backed up your apps and some settings. When you setup a new ROM, it should let you restore them.
BTW, yes it was the first time it happened for most of us. Samsung keeps trying to improve "security" and adding encryption, by default, to the data partition is in all of their new tablets and phones.
lewmur said:
My post pointed out that formatting would erase everything and that you should backup prior to doing it. And there are several other methods of backing up data and apps besides TWRP. Yes, it leaves the data partition blank, but flashing a ROM and gapps will put the directories back. Of course, they will still be empty. If you used a Google Account, then that should have at least backed up your apps and some settings. When you setup a new ROM, it should let you restore them.
BTW, yes it was the first time it happened for most of us. Samsung keeps trying to improve "security" and adding encryption, by default, to the data partition is in all of their new tablets and phones.
Click to expand...
Click to collapse
my point is that i want to keep the stock rom, i was able to install a costum rom no problem after. but it doesnt work with the stock rom
cwarrow said:
my point is that i want to keep the stock rom, i was able to install a costum rom no problem after. but it doesnt work with the stock rom
Click to expand...
Click to collapse
You can't backup a stock ROM with TWRP because it can't handle the encryption. But you can use TWRP to root a stock ROM. In that case you just ignore the wierd internal data and put what you want to flash only on the external SD. IOW, if your reason for flashing TWRP is to use its backup function on a stock, don't bother, it won't work. But if your intent is to ROOT the stock ROM, then go ahead, but DON'T format data. Just put the files needed to root on the external SD and flash from there. You format the data partition in order to flash a custom ROM.
lewmur said:
You can't backup a stock ROM with TWRP because it can't handle the encryption. But you can use TWRP to root a stock ROM. In that case you just ignore the wierd internal data and put what you want to flash only on the external SD. IOW, if your reason for flashing TWRP is to use its backup function on a stock, don't bother, it won't work. But if your intent is to ROOT the stock ROM, then go ahead, but DON'T format data. Just put the files needed to root on the external SD and flash from there.
Click to expand...
Click to collapse
yeah but, i stil have the same problem though, i still cant use my tablette properly. i cant install new games and other app. but anyway i already rooted my stock firmware using magisk. but thanks anyway for the help
its just that i dont like the custom firware we have for it, and the stock firmware is slow af. but ill end up probably falshing a custom firmware anyway. have a good day.

Categories

Resources