[Q]Ensure clean ROM install - Xperia Z1 Compact Q&A, Help & Troubleshooting

Found similar topic, but 2 years old, i dont want to rely on it in such fast-paced moving forward branch as smartphone software.
I installed few ROMS to root my phone, now when I install desired ROM i have a feeling maybe some thrash left over, since i have problems in my desired ROM.
In 'CWM Recovery v6.0.4.7' i did:
1.wipe data/factory reset
2.wipe cache partition
3.mounts and storage: format /system
After that i install my desired ROM (http://forum.xda-developers.com/showthread.php?t=2671363) without rebooting in CWM:
1. install zip (choose zip location everything goes fine, get confirmation installation completed)
2. reboot system now.
Is there any way im doing it wrong or/and i can delete more leftovers from past ROMS?
please help

Wipe your SD too, everything else looks fine.
Sent from my D5503 using XDA Premium 4 mobile app

Thanks to you sir, topic closed i guess

Related

Issues with various ROMs

Hey Guys,
So I've been having some issues with various ROMs on my LTE Galaxy Nexus. I first tried flashing to bigxie's build last week and that was yielding various bug reports. I flashed again with the same results (even without loading my backed up apps from Titanium Backup).
So I went back to stock... all was well again.
I just flashed to axi0m's ROM with Apex kernel. It has awesome performance but I keep getting force closes for random apps: Chrome to Phone, Trebuchet, etc.
I feel like at this point, its something I'm doing wrong or something wrong with my phone. I have followed the instructions to the T for each ROM install...
My order or process is as follows:
-Format data
-Erase partition cache
-Erase mount & storage /system (for axi0m)
-Load ROM
-Load GAPPS (applicable to bigxie's ROM)
-Reboot
Anyone have any ideas for me?
Well, I'll start by saying that I have ALWAYS run into issues when trying to use custom kernels. I've resorted to sticking with the kernel that comes with whatever ROM I install. This always seems to provide the most stability for me.
Next time you flash a ROM I recommend following the process that's worked extremely well for me on all my previous phones, including this one...
1. Put the ROM on your SD card
2. Reboot into Recovery
3. Do a Nandroid backup of your current ROM
4. Wipe Data/Factory Reset
5. Wipe Cache Partition
6. Go into Mounts
7. Format /system
8. Flash new ROM
9. Go into Advanced and Wipe Dalvik Cache
10. Fix Permissions (Also in Advanced)
11. Reboot phone
12. Sign into your Google account (1st step in the setup screen)
13. Let the phone sit for 10 full minutes without touching it
14. Reboot phone again
You don't need to format data, erase partition.
All you really need to do is:
1. Download the ROM, Kernel (if desired), gapps (if required)
2. Verify its MD5 hash [optional... but I recommend doing it, google HashTab]
3. Put the files onto your phone's internal storage.
4. Reboot into recovery mode.
5. If its a new ROM, wipe data(factory settings),cache,dalvik. If its the same ROM but upgrading, then just skip this step.
6. Flash ROM, Kernel (if you downloaded one.. verify its compatible, meaning don't flash franco kernel on a 4.0.2 ROM), gapps
7. Reboot.
Having FC problems? boot into Clockwork and fix permissions.
Afraid something might not go well? do a nandroid, but I'm pretty experienced at flashing so I've avoided at doing nandroid but since you're still not familiar with the steps. Nandroid backup can be very useful.
I definitely agree with checking the MD5 sum. That should be step 1 after downloading the ROM. I know you don't 'have' to format /system but it's just an extra precaution I've always taken and I have never had a problem with it.
sn0warmy said:
I definitely agree with checking the MD5 sum. That should be step 1 after downloading the ROM. I know you don't 'have' to format /system but it's just an extra precaution I've always taken and I have never had a problem with it.
Click to expand...
Click to collapse
Oh, I didn't know you mentioned it too. I only looked at the OP. I guess it couldn't hurt, why not?
Another thing to mention, when you flash a new kernel.. it's best to wipe dalvik cache (before or after.. preferably before) then flash the kernel.
zephiK said:
Oh, I didn't know you mentioned it too. I only looked at the OP. I guess it couldn't hurt, why not?
Another thing to mention, when you flash a new kernel.. it's best to wipe dalvik cache (before or after.. preferably before) then flash the kernel.
Click to expand...
Click to collapse
I didn't mention checking the MD5 sum, I was just agreeing that it is an extremely important step.
Ok, so I seemed to have resolved a lot of issues by wiping the davlik cache. I was flashing to the stock launcher w/ 4x5 grid (without search) and it required a wipe of the davlik cache. This seemed to clear up the force closes. So far, i have been loving my axi0m ROM.
Now if Samsung/Google can push a new update to fix the radio issues w/ data :|

[Q] Rooted stock recovery to CM10 M2, are these the right steps?

Finally looking to try a non-stock ROM. Heard good things about latest CM10 M2.
Current setup: Stock recovery, stock ROM, rooted, I747UCLEM
Steps already done:
1. do a full imei backup
Steps I'm planning on taking this evening:
1. download Rom Manager
2. use Rom Manager to flash CWM Recovery (should I do normal or CWM Touch?)
3. do a nandroid backup (never done one before)
3. download zip of CM10 M2 rom and google apps (where do i put them on the int or ext SD?)
4. boot into recovery, do factory reset/wipe, wipe cache
5. install CM10 from zip
6. ?? do i install google apps as well now, or do i wait til after CM10 is done/rebooted and then go into recovery again?
6. sign into google to get contacts/gmail/etc synced back up
7. anything else? i'm not going to restore from TB, I want to start fresh.
jhc5 said:
Finally looking to try a non-stock ROM. Heard good things about latest CM10 M2.
Current setup: Stock recovery, stock ROM, rooted, I747UCLEM
Steps already done:
1. do a full imei backup
Steps I'm planning on taking this evening:
1. download Rom Manager
2. use Rom Manager to flash CWM Recovery (should I do normal or CWM Touch?)
3. do a nandroid backup (never done one before)
3. download zip of CM10 M2 rom and google apps (where do i put them on the int or ext SD?)
4. boot into recovery, do factory reset/wipe, wipe cache
5. install CM10 from zip
6. ?? do i install google apps as well now, or do i wait til after CM10 is done/rebooted and then go into recovery again?
6. sign into google to get contacts/gmail/etc synced back up
7. anything else? i'm not going to restore from TB, I want to start fresh.
Click to expand...
Click to collapse
2 up to you i prefer twrp you can get it from goomanager in the play store
3 easy to do in recovery best insurence you can have for a bad flash
3. internal is best
6 i have done it both ways with no problem
7 nope looks like you got the steps right but you do know m2 is a experamental build
#2 do normal unless you want to buy touch, don't think it's free
#3 once in recovery choose backup, it will take a bit, let it finish
#4 put it on your internal and this should be done before you boot into clockworkmod recovery
#5 steps in recovery are: 1 install zip from sd card
2 choose zip from sd card
3 navigate to the zip,
4 install
#6 you can install them right after the ROM
#7 reboot when finished, let phone fully boot THEN
#8 reboot phone, helps settle things a little (you just made a big change to your system lol)
#9 sign into google and let things sync
Troubleshooting, gapps may force close on you a couple times, don't worry, if it happens continuously then reboot into recovery and wipe cache and dalvik cache and reflash just the gapps (they are finicky) If you experience multiple force closes and stuff not working right, boot into recovery and under advanced find fix permissions and let that run.
If all else fails then boot into recovery and do it all over again, coming from stock to aosp your MAY have to flash a couple times to avoid errors while flashing a completely different os(usually not an issue but you never know)
Good Luck
edit--->dang I'm slow tonight lmao
Thanks to both of you! Very much appreciate the detailed responses.
your welcome and @jethro650 the more people willing to help the better the forum
jerrycoffman45 said:
your welcome and @jethro650 the more people willing to help the better the forum
Click to expand...
Click to collapse
Always try to help but I forgot the factory data reset wipe cache wipe dalvik before the flash ROM.
Just not on the ball tonight
jethro650 said:
Always try to help but I forgot the factory data reset wipe cache wipe dalvik before the flash ROM.
Just not on the ball tonight
Click to expand...
Click to collapse
So my nandroid backup just finished, and the folder is only 20MB in size. Is that normal? I guess I expected it to be bigger. I have about 70 apps, all installed to their default location, no music, no photos, no videos, on rooted stock AT&T. I did the backup by booting into CWM Touch Recovery from Rom Manager, going to 'backup and restore', 'backup to external SD card'. Took about 20 minutes to complete, it said completed successfully, and I hit 'go back', then 'reboot system now'. When I moved the backup folder to my pc and checked the size, it only shows as 6 files are 20.9mb.
Files are as follows:
boot.img 10,240kb
cache.ext4.dup 1kb
data.ext4.dup 760kb
nandroid.md5 1kb
recovery.img 10,240kb
system.ext4.dup 228kb
Thanks!
Whoops. Figured it out. The whole blob folder is part of it too. Sorry

[Q] Proper way to completely format a galaxy nexus in preparation for a custom rom?

What is the proper way to format a galaxy nexus? I want to clear everything possible and start fresh in an attempt to solve the abysmal write speeds I've been getting recently and I don't want to wind up bricking the thing in the process since I know certain partitions store the boot loader and more.
Other attempts to fix the write speed including fstrim, changing the mount command to enable trimming deleted files automatically, completely filling all free space with zeros then removing it, and none have helped yet. It gets approximately 0.10-0.15KB/s on random write with androbench, 2.0-5.5MB/s for sequencial write. I've never had anything less than 12GB free space, except when I tried filling all the free space
I want to format before reinstalling cyanogenmod and I understand there are risks involved that could brick my device so any instruction for what should and should not be touched would be greatly appreciated.
You need custom recovery installed (twrp or cwm). I have twrp. You need from recovery, for example twrp, wipe cache, dalvik cache, data and system from advanced wipe menu. After that, you should put in queue rom (which you are installing in zip format), then gapps(not all rom's need gapps, read install description for current rom) and custom kernel (not necessarily). After you just swipe on menu to proceed with installation and thats it
marko207 said:
You need custom recovery installed (twrp or cwm). I have twrp. You need from recovery, for example twrp, wipe cache, dalvik cache, data and system from advanced wipe menu. After that, you should put in queue rom (which you are installing in zip format), then gapps(not all rom's need gapps, read install description for current rom) and custom kernel (not necessarily). After you just swipe on menu to proceed with installation and thats it
Click to expand...
Click to collapse
Make sure yu don't wipe "sdcard data" (there's a difference in System Data and SDCard Data). Marco207 mentioned that yu will have to wipe System Data. Rest yu may wipe anything, in fact, everything in case yu want a whole fresh ROM.

Virus that cannot be deleted

Hi everyone I am the biggest fool in the world. Today I installed one app thinking that it is a game. Unfortunatelying it turned out it is a virus which installs milo ons of apps and spams with adds no matter what I am doing with my phone. I have tried to factory reset my phone but it is still there, then tried to wipe cash and wipe all user data from the recovery but it is still here.. I've tried to use my phone without Google account but the virus is there. It is in my system and I don't know what to do. Anti virus software can't find it and I don't know what to do.
My phone is note 2 it runs 4.4.2 kit kat stock Rom without root access. Thanks in advance
Reinstall stock using odin and download mode
And btw that virus have already rooted your phone without your permission and injected itself into your system directory, so no matter what you do with your current rom through wiping will be useless!
Good luck!
Inatall TWRP and wipe everything with rm-rf ON. Flash Stock or any other ROM after, it should be gone.
Hi again, i decided to root my phone and install custom rom. I've chosen rom "one and only V3" i've rooted my phone and wiped everything cache, system,data,preload,dalvik cache,factory reset, partition. Then i installed the rom, everything was fine but phone stucks on bootscreen at the Samsung logo and cannot start, i've done all the procedure again but nothing changes. Then downloaded other ROM but now i can't connect my phone to my computer when i plug the cable and click on Mounts and storage then on mount USB storage, nothing happens i can't see my phone and i can't upload another rom.. Thanks in advance.
P.S. The author of the ROM has given this installation information:
Installation Instructions for v1.0 & v3.0:
USE TWRP RECOVERY
First Nandroid your current ROM.
1. Download ROM
2. Verify MD5
3. Place the ROM in your internal/external sd card
4. Reboot to Recovery
5. Wipe system, cache, dalvik cache, data, preload if applicable,
6. Flash the ROM
7. Reboot and Setup Device.
Note: With root file manager, go to /data/media/0 and delete folders that begin with the name "vrtheme
I am using CWM recovery v6 and i don't know what "First Nandroid your current ROM." and "2. Verify MD5 " means..
1- First Nandroid your current ROM = make a backup of your rom that you are using
2- Verify MD5 = its a unique number and litter for Verify that you are use the same file that the maker uploaded

Clean Flash Custom Rom

I know I saw this process in a recent thread but I've misplaced it. If anyone can point me to it, I would be grateful.
I want to clean flash CM 13 on my OP3.
From what I remember, I'm supposed to store the CM 13 zip file and gapps file in the SD Card folder. Is that truly correct? The OP3 doesn't have an SD Card though I did find a folder.
If I do a factory reset and wipe everything, won't that folder also get wiped? Then how would I install the ROM from the phone?
Sorry, I know this is a straightforward process for many of you, and dirty flashing is easy. But I think a clean flash is better and I'd rather not guess and end up with a bricked phone I have to fuss with.
Again, I know this exact process is in a thread somewhere but I can't find it.
the phone storage is /sdcard/
u can use something like ES File Explorer and create a folder called CM13 or whatever u want
u do have ur bootloader unlocked and twrp installed, correct?
yes u will just the get cm zip file and put it in a folder (ex. /sdcard/CM13/)
i put the gapps in the same folder
create a nandroid backup
wipe/advance wipe - wipe caches/data/system !!!!Do NOT WIPE - INTERNAL STORAGE OR OTG!!!
then flash cm zip and gapps
Hi, thank you. Yes, bootloader unlocked, twrp installed and I've done it in the past on a different phone but couldn't sort out clean flashing from dirty flashing. I've done it correctly in the past, and it's also gone very wrong for me. I think I mistakenly wiped internal storage once and that was a disaster.
Somewhere I've also read about a factory reset through trwp.
I don't need to do that, or wiping caches/data/system is the same thing?
.
digger16309 said:
Hi, thank you. Yes, bootloader unlocked, twrp installed and I've done it in the past on a different phone but couldn't sort out clean flashing from dirty flashing. I've done it correctly in the past, and it's also gone very wrong for me. I think I mistakenly wiped internal storage once and that was a disaster.
Somewhere I've also read about a factory reset through trwp.
I don't need to do that, or wiping caches/data/system is the same thing?
.
Click to expand...
Click to collapse
If you wipe internal storage, you will lose the zips for your ROM and GAPPS. You can connect your device and have it recognized on your PC from within TWRP if you do accidentally wipe your internal storage.
Factory reset doesn't wipe the system partition as that would remove your OS. Most Roms will wipe your system partition before it installs itself so generally you don't have to wipe the system partition manually, but it's good practice.
Clean flash = wipe dalvik, cache, data; then install ROM (which will wipe system before it installs, or manually wipe system before the ROM install for good measure).
Dirty flash = flash ROM, then wipe dalvik and cache. The only time you should do this if the ROM you're looking to flash says it can be done (ie. CM nightlies).

Categories

Resources