When installing a ROM why reboot before installing other mods? - Android Software/Hacking General [Developers Only]

Most ROM install instructions look basically like...
Boot into recovery
Wipe Data
Flash ROM
Reboot
Boot into recovery
Flash any Mods
Reboot
Done
My understanding is that Android builds the Cache and Dalvik Cache on boot. Why are steps 4 & 5 needed? Why not install all the code modifications and let the cache build once instead of multiple times?

I am curious as to where you saw that recomended. It reminds me of things like waiting "ten minutes after the first boot to allow the ROM to move in."
I have never rebooted after flashing only to reboot and flash more stuff, not intentionally at least. There's always the 'oh crap I forgot to flash such-and-such'.
Sent from my LG-P999 using xda premium

I've never successfully managed to install user apps (in /data) at the same time as installing a ROM. I always have to install them after the ROM has booted.
Sent from my Desire S

Волк said:
I am curious as to where you saw that recomended. It reminds me of things like waiting "ten minutes after the first boot to allow the ROM to move in."
I have never rebooted after flashing only to reboot and flash more stuff, not intentionally at least. There's always the 'oh crap I forgot to flash such-and-such'.
Click to expand...
Click to collapse
Thanks. That's what I thought.

Related

[Q] Process system is not responding. Would you like to close it?

I got this while replying to a text message...
I've been getting quite alot of these, from even various applications. It's driving me nuts!!!!
Is there any (permanent) solution for this??
ROM: Gummy
Kernel version: 3.1.10_IcyGlitch_V14-BS_I896-I897 [email protected] #1
Baseband version: T959TLJL3
I'd be forever grateful if this problem could be solved... I really love this ROM
First I would reboot to recovery, then wipe cache, in advanced wipe dalvik cache, then fix permissions. If the problem comes back , I would back up your apps, msgs, that you want, then, wipe system,cache, wipe data/factory reset, and reflash. Maybe a newer rom.
Sent from my SGH-I897 using Tapatalk 2
This is a bug firmware, also sometimes a problem when using swap. I recommend flash newest ROM, they are much better.
Sent from my SGH-I897 using xda premium
simple man said:
First I would reboot to recovery, then wipe cache, in advanced wipe dalvik cache, then fix permissions. If the problem comes back , I would back up your apps, msgs, that you want, then, wipe system,cache, wipe data/factory reset, and reflash. Maybe a newer rom.
Sent from my SGH-I897 using Tapatalk 2
Click to expand...
Click to collapse
I did the first thing you reommended, it didn't work and to make matters worse, ma phone doesn't pass the boot screen....
I quickly rebooted in recovery and made a nandroid backup - followed your second suggestion but i never made a backup of ma msgs because you didn't say so in the 1st suggestion... i can load new roms but can restore from ma nandroid backup
When you wipe dalvik cache, your phone can and will take several minutes to reboot, because it's rebuilding the dalvik cache. Secondly, wiping dalvik cache and fixing permissions wouldn't cause your phone to not boot. Between my wife's and my phone, I've flashed Roms, updated, experimented, fixed, stuff, etc... hundreds of times, and never has a dalvik cache wipe / fix permissions caused the phone to not boot. Hesitant to try to help, because you seem to be blaming me..... But if you can't restore a nandroid, it could be you're on a kernel in which the nandroid backup/restore feature doesn't work, you are running an earlier ICS build.
Sent from my SGH-I897 using Tapatalk 2.
aduka said:
This is a bug firmware, also sometimes a problem when using swap. I recommend flash newest ROM, they are much better.
Sent from my SGH-I897 using xda premium
Click to expand...
Click to collapse
Please elaborate... btw i have a friend tht has the same ROM and doesn't face the same issues like me :/
aduka said:
This is a bug firmware, also sometimes a problem when using swap. I recommend flash newest ROM, they are much better.
Sent from my SGH-I897 using xda premium
Click to expand...
Click to collapse
simple man said:
When you wipe dalvik cache, your phone can and will take several minutes to reboot, because it's rebuilding the dalvik cache. Secondly, wiping dalvik cache and fixing permissions wouldn't cause your phone to not boot. Between my wife's and my phone, I've flashed Roms, updated, experimented, fixed, stuff, etc... hundreds of times, and never has a dalvik cache wipe / fix permissions caused the phone to not boot. Hesitant to try to help, because you seem to be blaming me.
Sent from my SGH-I897 using Tapatalk 2.
Click to expand...
Click to collapse
I'm sorry if i came across like that...
just that the phone is driving me nuts
ALSO.... it's the second time i am seeing where reboot take way longer than usual after restoring from a nandroid backup. I av done quite a few and reboot takes less than 10mins. I attempted one the other day and 2hrs 30mins later all i saw was the splash screen and boot animation, phone HOTT!!
This evening again, it looked as if it was going to do the same thing thing... it passed 20mins, i can't sit around waiting for that again
It sounds like a flash to stock KK4 (Full Reparation) would be your best bet. If you're already on G. B. bootloaders, I would recommend the NO BOOTLOADER version, no use flashing bootloader unnecessarily. After that, I would flash the rom of your choice, following the instructions in the O. P. line by line.
Maybe a lot more current rom.
http://forum.xda-developers.com/showthread.php?t=1300843
Sent from my SGH-I897 using Tapatalk 2
duwii said:
Please elaborate... btw i have a friend tht has the same ROM and doesn't face the same issues like me :/
Click to expand...
Click to collapse
Then I recommend re-flash the stock kk4 NO BOOTLOADER, format the internal sd, install the ROM again and install all the programs manually, not with the nandroid backup.
Sent from my SGH-I897 using xda premium

G2X can't load custom roms, freezes at flash screen

No matter what custom rom I try to load on my G2X, it will go through, install the rom, and then when it reboots past the LG screen, it gets to whatever custom boot screen in on the rom, and just locks up. The only way I can get it to boot after that point is to NVFlash back to stock.
Tried searching through this site and google, but can't find a solution.
You need to say what the process is that you attempted to do. Wipes and what not.
Sent from my SGH-T999 using xda premium
mt3g said:
You need to say what the process is that you attempted to do. Wipes and what not.
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Rooted phone, added Clockwork, booted into CW recovery, did data and cache wipes, installed CM7 from SD card, rebooted, phone froze at custom boot screen. Reboot, still frozen. Would not boot at all.
Used NVFlash to reinstall stock image on phone, rooted phone, CW recovery, data and cache wipes, installed a different rom for my phone model, same result. Back to stock using same process, tried a third rom using same process, same result, frozen phone that won't go beyond boot screen.
Using this same process on my old T-Mobile Samsung Vibrant, it worked perfectly on several different roms.
It sounds like you may have a ROM for a different model phone. Can you send a link to the ROM that you downloaded for us to see?
Also, is your phone a T-Mobile G2x or an LG Optimus 2x (O2x).
cyansky_1 said:
It sounds like you may have a ROM for a different model phone. Can you send a link to the ROM that you downloaded for us to see?
Also, is your phone a T-Mobile G2x or an LG Optimus 2x (O2x).
Click to expand...
Click to collapse
It is a T-mobile G2X, LG-P999DW.
The CM7 link was straight from the CM7 site, it wasn't an experimental mod or anything, it was the stable one listed under the G2X.
http://www.cyanogenmod.com/devices/t-mobile-g2x
ParanoidAndroid via this thread on here: http://forum.xda-developers.com/showthread.php?t=1762647
Domination via this thread: http://forum.xda-developers.com/showthread.php?t=1570017&highlight=domination
Considering cm roms are supposed to wipe system prior to flash, I couldn't imagine what is going on. Try wiping system just in case and after that, try installing from internal as well. Other options would be download other ways, like on PC or from phone transfer the files differently. Other then that can't really help you.
Sent from my SGH-T999 using xda premium
mt3g said:
Considering cm roms are supposed to wipe system prior to flash, I couldn't imagine what is going on. Try wiping system just in case and after that, try installing from internal as well. Other options would be download other ways, like on PC or from phone transfer the files differently. Other then that can't really help you.
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
The last time I pulled it directly on my phone, the other times I downloaded via my PC and then copied the file. Had been via external so I tried internal that last time too. I'm close to madness, but I'm also too stubborn to give up.
I was thinking maybe I need to replace the kernel, but I'm not sure whether that's the problem or which Kernel to try if I did need to.
I had a similar issue on a tablet of mine. What version of CWM are you using? Are you using the touch version? The touch version has had some boot problems. Did you try partition the SDCard in the advanced settings? I forget which I used on my phone. Has anyone else partitioned theirs?
Well, not knowing which peice is broken let me just recap my process for you and see how it works:
1. Use OneClick NVFlash from http://forum.xda-developers.com/showthread.php?t=1056847 and select Flash CWM 5.0.2.0
2. Boot to CWM
3. format cache
4. format data
5. format system
6. format Dalvik cache
7. flash ROM from external/internal memory
8. flash kernel (optional, not required unless doing kernel testing)
9. flash gapps-package
10. fix permissions
11. reboot
I have not had this process screw up once for me so far. If this process does not work for you then you leave me really be scratching my skull...
Sooper1138 said:
Rooted phone, added Clockwork, booted into CW recovery, did data and cache wipes, installed CM7 from SD card, rebooted, phone froze at custom boot screen. Reboot, still frozen. Would not boot at all.
Used NVFlash to reinstall stock image on phone, rooted phone, CW recovery, data and cache wipes, installed a different rom for my phone model, same result. Back to stock using same process, tried a third rom using same process, same result, frozen phone that won't go beyond boot screen.
Using this same process on my old T-Mobile Samsung Vibrant, it worked perfectly on several different roms.
Click to expand...
Click to collapse
don't root and then try. mostly roms come with super user access so try without rooting it manually.
Sent from my LG-P999
cyansky_1 said:
Well, not knowing which peice is broken let me just recap my process for you and see how it works:
1. Use OneClick NVFlash from http://forum.xda-developers.com/showthread.php?t=1056847 and select Flash CWM 5.0.2.0
2. Boot to CWM
3. format cache
4. format data
5. format system
6. format Dalvik cache
7. flash ROM from external/internal memory
8. flash kernel (optional, not required unless doing kernel testing)
9. flash gapps-package
10. fix permissions
11. reboot
I have not had this process screw up once for me so far. If this process does not work for you then you leave me really be scratching my skull...
Click to expand...
Click to collapse
Using this method in exactly this order worked perfectly. Thank you very much.
Sooper1138 said:
Using this method in exactly this order worked perfectly. Thank you very much.
Click to expand...
Click to collapse
Did you notice what he didn't do.
Sent from my LG-P999

When I flash a MOD

When do I flash a mod in the flashing process? After the ROM, obviously... Do I need to boot the phone up at all before flashing a mod?
Thanks for the patience when you answer. I looked but didn't see my question asked before... I know it's a noob question.
Sent from my SCH-I535
Hmm, I always prefer to flash them separately. When I used to flash mods, I would flash the rom, boot to make sure it runs ok (aka no crazy force closes), then flash the mod. I'm sure that you can flash both at once but I rarely did on my last phone.
Sent from my SCH-I535 using xda app-developers app
SlimSnoopOS said:
Hmm, I always prefer to flash them separately. When I used to flash mods, I would flash the rom, boot to make sure it runs ok (aka no crazy force closes), then flash the mod. I'm sure that you can flash both at once but I rarely did on my last phone.
Sent from my SCH-I535 using xda app-developers app
Click to expand...
Click to collapse
This right here. It honestly is hit or miss though. Sometimes I would have zero issues flashing the rom , kernel, and mod all at once back to back. Other times u would be in hell doing that. I have honestly noticed best performance flashing the ROM clean (complete wipe) the. Rebooting... once the ROM settles I go back to recovery and wipe cache and dalvik flash the kernel. Reboot and once that settles, I do the same thing as the kernel. Recovery, wipe cache and dalvik, flash mod and fix permissions. Then boot and done. May seem redundant but it works best for me and I get zero issues
Sent from my SCH-I535 using Tapatalk 2
I flash rom, kernel, restore data if wanted, flash mods, flash themes all at once with TWRP with no problems. Never have fixed permissions. If have to fix permissions you flashed something that UID didn't match. Usually happens when flashing over data.
I've only had problems when I flash ROM then MOD before booting up once.
Thanks so much!
Sent from my SCH-I535

Phone won't boot after new ROM flash

I would post this in the Android Development section, but as I am new I will post here till then.
I am installing the new Viper 2.0 ROM, and after installing the ROM and rebooting for the first time the white screen with the green htc logo pops up and then the screen goes black. I'm worried I have bricked my phone and was wondering if there was any way to get it back to its original state.
Using CWM and came from Viper 1.2 ROM. I have made a CWM backup of the Viper 1.2 ROM before flashing.
You need to do factory data wipe
Sent from my GT-P3113 using XDA Premium HD app
Lookin4Twinkies said:
You need to do factory data wipe
Sent from my GT-P3113 using XDA Premium HD app
Click to expand...
Click to collapse
I selected 'Full Wipe' from the options given
And as a heads up do not...absolutely do not post a new thread in dev section unless it's something you actually developed. Posting in an already created rom thread in regards to a question about it is however acceptable :beer:
Sent from my HTC VLE_U using xda app-developers app
Spastic909 said:
And as a heads up do not...absolutely do not post a new thread in dev section unless it's something you actually developed. Posting in an already created rom thread in regards to a question about it is however acceptable :beer:
Sent from my HTC VLE_U using xda app-developers app
Click to expand...
Click to collapse
That's what I was planning to do: ask a question under the rom thread but I need 10 posts or more
Anyone have any ideas? I'm really desperate now
I flashed Viper One S 2.0 and everything works absolutely flawlessly :laugh:
First of all, take TWRP instead of CWM. CWM hasn't been developed for the last six months. Then you have to do the following steps
1. Put Rom on SD card
2. Extract the Rom on your computer and put the boot.img in your fastboot folder
3. Boot into recovery
4. Wipe System
5. Instal Viper
6. Reboot into bootloader and flash boot.img with the command fastboot flash boot boot.img
7. Reboot again into recovery
8. Clean Cache and Dalvik
9. Boot into sytem and have fun with Viper One S 2.0:laugh:
struppex said:
I flashed Viper One S 2.0 and everything works absolutely flawlessly :laugh:
First of all, take TWRP instead of CWM. CWM hasn't been developed for the last six months. Then you have to do the following steps
1. Put Rom on SD card
2. Extract the Rom on your computer and put the boot.img in your fastboot folder
3. Boot into recovery
4. Wipe System
5. Instal Viper
6. Reboot into bootloader and flash boot.img with the command fastboot flash boot boot.img
7. Reboot again into recovery
8. Clean Cache and Dalvik
9. Boot into sytem and have fun with Viper One S 2.0:laugh:
Click to expand...
Click to collapse
After installing viper, my phone just gets stuck on the white HTC screen, then i have to reset to get back into the boot loader. I can't even get into the Viper ROM
BiGDav3 said:
After installing viper, my phone just gets stuck on the white HTC screen, then i have to reset to get back into the boot loader. I can't even get into the Viper ROM
Click to expand...
Click to collapse
Need to fastboot the boot.img thats in the rom zip.
Darknites said:
Need to fastboot the boot.img thats in the rom zip.
Click to expand...
Click to collapse
I've tried that, I used cmd and the flash script both didnt work. It keeps trying to boot into recovery but just freezes.
Also another quick question: how long does it take to install the ROM? It takes less than a minute for the 'Reboot' button to appear yet it still says installing at the top of the screen.
Should I just keep waiting or has the install actually finished?
EDIT: it just says 'Executing Full Wipe' then it erases and formats the cache, system and data as EXT4
BiGDav3 said:
I've tried that, I used cmd and the flash script both didnt work. It keeps trying to boot into recovery but just freezes.
Also another quick question: how long does it take to install the ROM? It takes less than a minute for the 'Reboot' button to appear yet it still says installing at the top of the screen.
Should I just keep waiting or has the install actually finished?
Click to expand...
Click to collapse
What do you mean by not work?
About a min but not used CWM in a long time because its buggy.
The time it takes to install a rom varies quite a lot. A dirty-flash (no wiping) seems to take a minute or two, but a full flash can take up to 5min.
Darknites said:
What do you mean by not work?
About a min but not used CWM in a long time because its buggy.
Click to expand...
Click to collapse
I've switched over to TWRP and the full wipe is done in around 1 minute or less after which the reboot button appears yet it still says 'Installing' at the top of the screen.
BiGDav3 said:
I've switched over to TWRP and the full wipe is done in around 1 minute or less after which the reboot button appears yet it still says 'Installing' at the top of the screen.
Click to expand...
Click to collapse
Hmm do the wipes and do system one too then reboot TWRP back into TWRP then try flashing the rom.
Darknites said:
Hmm do the wipes and do system one too then reboot TWRP back into TWRP then try flashing the rom.
Click to expand...
Click to collapse
I did a factory reset in bootloader, didnt seem to change anything
BiGDav3 said:
I did a factory reset in bootloader, didnt seem to change anything
Click to expand...
Click to collapse
Just looking back but did you fastboot the boot.img?
Darknites said:
Just looking back but did you fastboot the boot.img?
Click to expand...
Click to collapse
Yeah I did
AW: Phone won't boot after new ROM flash
Don't do a full wipe in the aroma menu. You did it before. The result would be that the installation is very fast but nothing is installed.
Boot your phone in the recovery, then wipe system, afterwards do a clean instal. In the aroma menu take the option Installation without wiping. The installation should now take a few minutes. And then follow my other points or take a good look in the op
Gesendet von meinem GT-P5100 mit Tapatalk 2
struppex said:
Don't do a full wipe in the aroma menu. You did it before. The result would be that the installation is very fast but nothing is installed.
Boot your phone in the recovery, then wipe system, afterwards do a clean instal. In the aroma menu take the option Installation without wiping. The installation should now take a few minutes. And then follow my other points or take a good look in the op
Gesendet von meinem GT-P5100 mit Tapatalk 2
Click to expand...
Click to collapse
Thanks for the reply, I'll try this now and get back to you asap.
EDIT: Also what do you mean by clean install? just re install the ROM again or?
Just a comment, I ran into a similar situation and thought my ROM didn't flash and after a basic reboot at full battery it finally booted up into the theme but not saying it will solve ur issue.
Sent from my HTC One S using xda premium

[Q] Randomly stopped booting?

I have had flashed the newest Mokee rom around a month ago. It has been working ever since fine. Lately it would freeze up and id have to take the battery out and reboot and it would be fine. But yesterday, it froze and I tried rebooting then it just wont boot. I left it for around 10 minutes and its still booting. I don't want to factory reset because I dont wanna lose all my stuff on the phone. Is there anything I can do?
d1eharddan said:
I have had flashed the newest Mokee rom around a month ago. It has been working ever since fine. Lately it would freeze up and id have to take the battery out and reboot and it would be fine. But yesterday, it froze and I tried rebooting then it just wont boot. I left it for around 10 minutes and its still booting. I don't want to factory reset because I dont wanna lose all my stuff on the phone. Is there anything I can do?
Click to expand...
Click to collapse
reflash a different rom your not going to get it to boot
Reboot your device to BMM recovery and wipe cache/delvic and fix permission.
Sent from my MB865 using xda app-developers app
minhajlk said:
Reboot your device to BMM recovery and wipe cache/delvic and fix permission.
Sent from my MB865 using xda app-developers app
Click to expand...
Click to collapse
It didnt work. So do I have any other option than to wipe it?
d1eharddan said:
It didnt work. So do I have any other option than to wipe it?
Click to expand...
Click to collapse
Reflash the rom and gapps
atrix2man said:
Reflash the rom and gapps
Click to expand...
Click to collapse
Didnt work either. Thanks though
d1eharddan said:
Didnt work either. Thanks though
Click to expand...
Click to collapse
There is a release version in mokee thread, download it and make a clean flash. Follow these steps;
Wipe cache, delvic and data
Flash mokee rom and reboot (do not flash GApps)
Let the ROM settle for about 20-30 minutes
Reboot to recovery and wipe cache and flash GApps.
Good luck.
minhajlk said:
There is a release version in mokee thread, download it and make a clean flash. Follow these steps;
Wipe cache, delvic and data
Flash mokee rom and reboot (do not flash GApps)
Let the ROM settle for about 20-30 minutes
Reboot to recovery and wipe cache and flash GApps.
Good luck.
Click to expand...
Click to collapse
It worked, thanks. I have that on system 3 and on system 4, the new slimKat and its really nice.

Categories

Resources