Upgrade strategy for clean install of a new official rom prerooted - Xperia Z2 Q&A, Help & Troubleshooting

Hello
I would like your advice on this. I have already flash all the new revs since 2014 through PRF creator but I would like this time for the new 6.0.1 make this as cleanly as possible so ...
What do I need exactly to clear in TWRP ? Data, Dalvik ?
I mean, I want to remove everything to start fresh
As far as I know TWRP doesnt remove anything on the ExtSDcard so what folder do I need to delete on it ?
I think a tutorial on clean install before upgrade would be nice to clarify thins one for all
Thanks for your ideas, advices

ciberyan said:
Hello
I would like your advice on this. I have already flash all the new revs since 2014 through PRF creator but I would like this time for the new 6.0.1 make this as cleanly as possible so ...
What do I need exactly to clear in TWRP ? Data, Dalvik ?
I mean, I want to remove everything to start fresh
As far as I know TWRP doesnt remove anything on the ExtSDcard so what folder do I need to delete on it ?
I think a tutorial on clean install before upgrade would be nice to clarify thins one for all
Thanks for your ideas, advices
Click to expand...
Click to collapse
In TWRP Go to Wipe > Advanced Wipe, then select "Cache", "Dalvik Cache", and "Data". Wiping data only wipes user data and not internal storage or external sd card. Then after flashing, wipe Cache and Dalvik Cache again.

Thanks Hiredantispammer
But what about the EXT Sdcard ? Android create some directories on the ExtSD ?
What do we have to delete here ?

Related

Using CWM formats before flashing new roms?

Hi
When you want to do a clean install of Windows OS, you all know that the right way to go is to format the primary partition first..
I was wondering: why can't we do the "same" in Android?
I've noticed that in CWM recovery there are many format options in addition to just doing Wipes...
So what if instead of doing the old Wipe data/cache and factory reset before flashing new rom, especially when migrating from Sammy to AOSP, we use the FORMAT function of the CWM recovery console?
So this bring up my new line of questions:
Which Formats are safe (as in terms of not bricking only, since we all know that we must backup first)?
Is Format data safe and recommended before flashing?
Is Format system safe and recommended before flashing?
Is Format SD card safe and recommended before flashing?
Does Format system erases the entire OS, meaning the ROM with it's kernel? If kernel is wiped does it mean that CWM will be lost upon next boot?
Same goes for Format SDCARD. Will this erase the entire internal memory? So the new ROM.ZIP should be placed in the external SD first?
I'd really appreciate if someone could answer all of the above questions
Many thanks
EB
If you don't have bad chip then all are safe. If you have bad chip then make sure you have safe kernel.
General steps before flashing a new ROM.
1. Backup your present ROM just incase
1. Wipe data/ factory reset
2. Wipe cache partition
3. Wipe dalvik cache (under advanced)
4. Format /system (under mount)
5. Flash your desired Rom/zips
6. Fix permissions (under advanced)
Notes:
- If you are moving from from an AOSP ROM to Samsung (vice versa), perform all the steps above.
- If you are upgrading / downgrading from one android version to another e.g ICS to jellybean or 4.0.3 to 4.0.4, also perform all the steps above.
- If you are upgrading from a Samsung ROM to another wipe the same android version, you may skip step 1.
- if you are upgrading your Aosp/aokp Rom with another with the same android version e.g 4.0.4 Aosp to 4.0.4 aokp, you may also skip step 1.
*******Important******
If you are presently running a Samsung based 4.0.4 Rom that is using Samsung based kernel e.g CF-ROOT or stock kernel, please flash Siyah kernel before performing any of the above steps. You will end up with ash unusable device if you don't adhere to this important information.
Swyped from my Samsung Galaxy SII
Jokesy said:
General steps before flashing a new ROM.
1. Backup your present ROM just incase
1. Wipe data/ factory reset
2. Wipe cache partition
3. Wipe dalvik cache (under advanced)
4. Format /system (under mount)
5. Flash your desired Rom/zips
6. Fix permissions (under advanced)
Notes:
- If you are moving from from an AOSP ROM to Samsung (vice versa), perform all the steps above.
- If you are upgrading / downgrading from one android version to another e.g ICS to jellybean or 4.0.3 to 4.0.4, also perform all the steps above.
- If you are upgrading from a Samsung ROM to another wipe the same android version, you may skip step 1.
- if you are upgrading your Aosp/aokp Rom with another with the same android version e.g 4.0.4 Aosp to 4.0.4 aokp, you may also skip step 1.
*******Important******
If you are presently running a Samsung based 4.0.4 Rom that is using Samsung based kernel e.g CF-ROOT or stock kernel, please flash Siyah kernel before performing any of the above steps. You will end up with ash unusable device if you don't adhere to this important information.
Swyped from my Samsung Galaxy SII
Click to expand...
Click to collapse
Thanks
Just 2 more questions:
1. what about format Format SDcard (internal)? Is it also safe/recommended? What does it do exactly?
2. can any of the the above formats delete the IMIE? Where i it stored? On internal SDcard? Will formatting it delete it?
Thanks
EB10000 said:
Thanks
Just 2 more questions:
1. what about format Format SDcard (internal)? Is it also safe/recommended? What does it do exactly?
2. can any of the the above formats delete the IMIE? Where i it stored? On internal SDcard? Will formatting it delete it?
Thanks
Click to expand...
Click to collapse
Formatting the Internal Sd card wipes all your data (music, photos, videos) on the internal memory of the phone.
Doing all those wipes doesnt affect the IMEI as far as I know...
Sent from my Galaxy S2 GT i9100
EB10000 said:
Thanks
Just 2 more questions:
1. what about format Format SDcard (internal)? Is it also safe/recommended? What does it do exactly?
2. can any of the the above formats delete the IMIE? Where i it stored? On internal SDcard? Will formatting it delete it?
Thanks
Click to expand...
Click to collapse
1. You're first question has been answered in the post before mine.
2. About IMEI:
-Your IMEI is stored in your root folder /efs inn your system reserved partition.
-Flashing Roms and kernel shouldn't mess with this folder but sometimes it happens.
-most of the Roms Agnes kernels made by recognized developers will backup your efs folder before flashing.
-too be on a safer side though, you can visit the thread below to backup your efs (imei) folder yourself before messing with your phone.
Look here: forum.xda-developers.com/showthread.php?t=1308546
Swyped from my Samsung Galaxy SII
Jokesy said:
1. You're first question has been answered in the post before mine.
2. About IMEI:
-Your IMEI is stored in your root folder /efs inn your system reserved partition.
-Flashing Roms and kernel shouldn't mess with this folder but sometimes it happens.
-most of the Roms Agnes kernels made by recognized developers will backup your efs folder before flashing.
-too be on a safer side though, you can visit the thread below to backup your efs (imei) folder yourself before messing with your phone.
Look here: forum.xda-developers.com/showthread.php?t=1308546
Swyped from my Samsung Galaxy SII
Click to expand...
Click to collapse
Thanks again
My problem is that I keep thinking in MS Windows terms.. I was sure that "Format SDCARD" is the parallel to formatting the entire "Hard drive", just like to delete the system partition..
Know let me see if I got everything right:
Format system is like deleting the Windows folder - no more OS (ROM)
Format data is like deleting all user account = deleting the "Programs data" folder in Windows - no more app data
Formatting SDCARD is like deleting the "Users" folder including "my documents" - no more user private data
So by using the 3 above formats, there is no need to do a Factory reset. But what about Wipe cache and Dalvik? shouldn't System format take care of those two caches? Or perhaps Cache and Dalvik are to separate partitions?
And for the few last question, so I can finally declare myself an Android expert :
(1) Format boot is a very bad idea right? It will delete the bootloader, meaning one must flash a rom that includes one of it's own?
(2) Are all roms intended for CWM flashing come with their own boot partition?
(3) So if Format boot is risky, I can conclude that the CWM recovery must be part of the boot partition right?
Many thanks for all the help. Once I get all of this right, I will feel confidant to start flashing roms on my own for the first time (I already got my phone rooted and CWMed by flashing Siyah kernel using Odin
EB10000 said:
Thanks again
My problem is that I keep thinking in MS Windows terms.. I was sure that "Format SDCARD" is the parallel to formatting the entire "Hard drive", just like to delete the system partition..
Know let me see if I got everything right:
Format system is like deleting the Windows folder - no more OS (ROM)
Format data is like deleting all user account = deleting the "Programs data" folder in Windows - no more app data
Formatting SDCARD is like deleting the "Users" folder including "my documents" - no more user private data
So by using the 3 above formats, there is no need to do a Factory reset. But what about Wipe cache and Dalvik? shouldn't System format take care of those two caches? Or perhaps Cache and Dalvik are to separate partitions?
And for the few last question, so I can finally declare myself an Android expert :
(1) Format boot is a very bad idea right? It will delete the bootloader, meaning one must flash a rom that includes one of it's own?
(2) Are all roms intended for CWM flashing come with their own boot partition?
(3) So if Format boot is risky, I can conclude that the CWM recovery must be part of the boot partition right?
Many thanks for all the help. Once I get all of this right, I will feel confidant to start flashing roms on my own for the first time (I already got my phone rooted and CWMed by flashing Siyah kernel using Odin
Click to expand...
Click to collapse
1) As far as I know, the boot partition is reserved for kernel. So, if you format it, phone won't be able to boot further than the initial Sgs2 logo. But it will still be flashable in Download mode.
2) If kernel is a part of boot partition, and most roms come with their own kernels, the you could say that the come with their own boot data.
3) If you format boot, you will also loose Cwm as it is a part of the kernel. Download mode would be still accessible as it is a part of the (secondary) bootloader which can be only overriden with Odin.
But again, I'm not 100% sure about this.
Sent from my Galaxy S2 GT i9100
Thanks
Jokesy said:
General steps before flashing a new ROM.
1. Backup your present ROM just incase
1. Wipe data/ factory reset
2. Wipe cache partition
3. Wipe dalvik cache (under advanced)
4. Format /system (under mount)
5. Flash your desired Rom/zips
6. Fix permissions (under advanced)
Notes:
- If you are moving from from an AOSP ROM to Samsung (vice versa), perform all the steps above.
- If you are upgrading / downgrading from one android version to another e.g ICS to jellybean or 4.0.3 to 4.0.4, also perform all the steps above.
- If you are upgrading from a Samsung ROM to another wipe the same android version, you may skip step 1.
- if you are upgrading your Aosp/aokp Rom with another with the same android version e.g 4.0.4 Aosp to 4.0.4 aokp, you may also skip step 1.
*******Important******
If you are presently running a Samsung based 4.0.4 Rom that is using Samsung based kernel e.g CF-ROOT or stock kernel, please flash Siyah kernel before performing any of the above steps. You will end up with ash unusable device if you don't adhere to this important information.
Swyped from my Samsung Galaxy SII
Click to expand...
Click to collapse
You saved a noob a whole lot of troble:cyclops:
I want to erase all my previous data in internal storage. More specifically, erase the OS and data (app data, user data, media, etc), then I'm gonna flash new ROM.
But of course, I don't want to erase boot system and recovery system.
1. Can I do above by using CWM - Mounts : format /sdcard ?
2. Does format /sdcard include format /system, /data, /cache, and wipe dalvik cache?
3. Is format /sdcard safe to do?
The answer !!!
immanuel77 said:
I want to erase all my previous data in internal storage. More specifically, erase the OS and data (app data, user data, media, etc), then I'm gonna flash new ROM.
But of course, I don't want to erase boot system and recovery system.
1. Can I do above by using CWM - Mounts : format /sdcard ?
2. Does format /sdcard include format /system, /data, /cache, and wipe dalvik cache?
3. Is format /sdcard safe to do?
Click to expand...
Click to collapse
I've found the answer here:
http ://www .addictivetips. com/mobile/android-partitions-explained-boot-system-recovery-data-cache-misc/
(eliminate all spaces, as I cannot post URL yet)
Now we know what to wipe or format (and what to not format)
immanuel77 said:
I want to erase all my previous data in internal storage. More specifically, erase the OS and data (app data, user data, media, etc), then I'm gonna flash new ROM.
But of course, I don't want to erase boot system and recovery system.
1. Can I do above by using CWM - Mounts : format /sdcard ?
2. Does format /sdcard include format /system, /data, /cache, and wipe dalvik cache?
3. Is format /sdcard safe to do?
Click to expand...
Click to collapse
To install a new rom, you don't have to wipe the internal sdcard, just wipe data & cache and navigate to advanced and wipe dalvik cache, and then to mount and format system, then flash your rom, or use TWRP it's easier, press wipe then advanced wipe and mark (data, cache, dalvik cache, system) and swipe to wipe, then flash your rom.
Ps: all app data is removed from internal storage (data in sdcard\android) when you wipe data, so you don't have to wipe internal storage

[Q] Format internal sd

Hello
I recently rooted and flashed LiquidSmooth onto my SG3 I747M and i would like to get rid of all the junk on my internal harddrive. I was wondering what the procedure would be to wipe my internal harddrive (So i do not have any random folders or old app files) on TWRP without losing my custom rom and root. Would i have to save the backup (just incase), custom rom and root on my sd card and just install it right after I wipe my harddrive?
Any help with this would be greatly appreciated
Thank you!
Wipe cache and go to /system/app and /data/app and delete unwanted apps. That should be enough.
Astu04 said:
Wipe cache and go to /system/app and /data/app and delete unwanted apps. That should be enough.
Click to expand...
Click to collapse
Id like to just format my internal harddrive completely. Is there anyway of doing this without losing my custom rom, root and bricking my phone? Ive been searching everywhere and i havent been able to find a clear answer.
2trainz said:
Id like to just format my internal harddrive completely. Is there anyway of doing this without losing my custom rom, root and bricking my phone? Ive been searching everywhere and i havent been able to find a clear answer.
Click to expand...
Click to collapse
boot into twrp, go to the wipe menu, and wipe everysingle thing. Then reflash your rom. That will wipe everything, and reinstall liquid smooth.
Doing this wont brick your phone or make you lose root.
chromium96 said:
boot into twrp, go to the wipe menu, and wipe everysingle thing. Then reflash your rom. That will wipe everything, and reinstall liquid smooth.
Doing this wont brick your phone or make you lose root.
Click to expand...
Click to collapse
Thank you! This is exactly what i was looking for. What would i be wiping though? Obviously Cache, Dalvik and Factory Reset but do i have to wipe System, Internal storage and format data? (What does format data do)?
2trainz said:
Thank you! This is exactly what i was looking for. What would i be wiping though? Obviously Cache, Dalvik and Factory Reset but do i have to wipe System, Internal storage and format data? (What does format data do)?
Click to expand...
Click to collapse
yeah wipe everything including system, and internal storage. format data formats the data partition of the phone, which is also necessary.
The only thing you dont have to wipe is your external sd card (if you even have one). Press thanks if i helped.

Using TWRP....

Hi Everbody!
This is my first post, so i apologise if i do something wrong...
Here it is my problem...
Last week i buy a S3 I9300. I flash Sentinel Rom 4.XX. Before that i did make root and did intall TWRP, since is less problematic than Recovery...(in opinion of the developer).
Now comes my problem....
The developer says in their instructions:
5 Factory Reset and wipe Cache and Dalvik Cache
6 Format System Partition
Im looking at TWRP at this moment...and i have no doubts about Wipe Cache and Dalvik Cache.Ok.
Format System Partition.....now, here it is my big problem. Do i press System? Do i Wipe System?
Or do i press: Internal Storage?
What i want is a FULL Clean of the S3. I really don`t care about backups, programs, since i have all on my PC......i want a ROM clean without any trash from previous room...
I have some experience with flashing, with 3ยบ party softwares, but this room uses a zip file...with is for me more complicated, since i never now if im making a fresh install, or a "mix" of files....
Resuming:
On TWRP, except the SD EXTERNAL where i have some backups, and the ROM.zip, what is the best option do format/Clean ALL internal storage?
And yes i read the tread about 4.2.2 new system of data lost..(wich i still think is to confuse, but that`s another question).
Thank you in advance!:good:
P.S: - I don`t have (or don`t see) the famous /data/media/0.......
Im using at this moment Sentinel 4.50. No problems.
What i want is a FULL Clean of the S3. I really don`t care about backups, programs, since i have all on my PC......i want a ROM clean without any trash from previous room...
TWRP / wipe cache dalvik system internal sd card and data .
jje
JJEgan said:
What i want is a FULL Clean of the S3. I really don`t care about backups, programs, since i have all on my PC......i want a ROM clean without any trash from previous room...
TWRP / wipe cache dalvik system internal sd card and data .
jje
Click to expand...
Click to collapse
Hi.
Hi didn`t understand your statement. I forget to tell that i also do/did Factory Reset.
I says this because one of the occasions, making this 3 steps, didn`t erase previous files from the previous ROM....
What`s the best opcion to erase internal and SD Card, with exception of external card?
Thks in advance.

Need to put rom on internal memory!

So I don't have working rom installed and I don't know how to connect my phone to pc to put some new rom zip to internal memory? please help if someone knows :/ I have Xperia P
With an USB cable -__-
Send from my XZ with 4.4.2 to your eyes !
Flash kernel which has the ability to mount sd card in recovery. For example, TWRP recovery in AOSX has that ability. From there on you will be able to flash any rom zip.
evildev said:
Flash kernel which has the ability to mount sd card in recovery. For example, TWRP recovery in AOSX has that ability. From there on you will be able to flash any rom zip.
Click to expand...
Click to collapse
I have some confusion regarding ROM installation. The usual step to install rom, for eg is
How to Install:
1. Download the ROM
2. Extract boot.img and flash it
3. Copy the ROM to your SD Card
4. Boot into recovery
5. Wipe data, cache, dalvik cache, and system
6. Install the ROM
7. Reboot
Click to expand...
Click to collapse
in the 3rd step i copy ROM to my SD card, and when i run 5th step wont it delete the ROM that i copied to my SD on 3rd step? How can i install it as it says on 6th step if it gets deleted at the end of 5th step?
thanks
h325190 said:
I have some confusion regarding ROM installation. The usual step to install rom, for eg is
in the 3rd step i copy ROM to my SD card, and when i run 5th step wont it delete the ROM that i copied to my SD on 3rd step? How can i install it as it says on 6th step if it gets deleted at the end of 5th step?
thanks
Click to expand...
Click to collapse
because it doesn't get deleted that way, it won't wipe internal memory (or in other words, our virtual SD card), you will ipe data, cache, dalvik cache, and system
evildev said:
because it doesn't get deleted that way, it won't wipe internal memory (or in other words, our virtual SD card), you will ipe data, cache, dalvik cache, and system
Click to expand...
Click to collapse
thanks a lot...i was really confused on that step. Now i need to learn about flashing and booting into recovery etc etc ...

Can't wipe system partition

Hi, I recently unlocked the bootloader of my Redmi Note 9S, and I wanted to install xiaomi.eu. When I was trying to do the necessary wipes in TWRP, I found out that I couldn't wipe the system partition, I mean, the system partition doesn't show in the wipe menu. So everytime I need to install a new ROM I have to perform a format data. Which is botering me because I have a lot of things in the internal storage.
I have already tried another recovery but is the same thing. Can anyone help me?
Sorry for my bad english, I'm not a native speaker
Piusak said:
Hi, I recently unlocked the bootloader of my Redmi Note 9S, and I wanted to install xiaomi.eu. When I was trying to do the necessary wipes in TWRP, I found out that I couldn't wipe the system partition, I mean, the system partition doesn't show in the wipe menu. So everytime I need to install a new ROM I have to perform a format data. Which is botering me because I have a lot of things in the internal storage.
I have already tried another recovery but is the same thing. Can anyone help me?
Sorry for my bad english, I'm not a native speaker
Click to expand...
Click to collapse
Formatting data is needed if your previous rom was encrypted (usually Miui and its derivatives). Find a rom you're going to stick with to do the data format just once.

Categories

Resources