I'm still trying to work this out... Do you always need to flash GApps after dirty flashing a new ROM update? I've done it with latest PAC Nightly + kernel + Volume mod, and it gave me "com.android.systemui has stopped", but when I've dirty flashed the ROM and kernel separately, it doesn't crash anymore, and my GApps weren't wiped by the ROM update.
I always used to flash GApps after dirty flashing, but some people say it's not necessary. Although, once whilst on DroidKang, some of my GApps ended up getting wiped.
lol I've been wondering the same thing as well. Sometimes dirty flashing an update for my rom completely removes my gapps, sometimes it doesn't. Recently I've been flashing gapps with each update but haven't gotten any problems yet.
would love to see an explanation for this
It depends on the ROM.
AOSP ROMs do not contain GAPPs. When you look inside the zip file of the ROM /META-INF/com/google/android/ you will find the updater-script.
This script is what determines what needs to be done. A flashable zip will contain the same directory structure as the internal memory of your device. For example, the zip will have /system/app the same as your ROM on the device has /system/app.
Within the updater-script, you will see something like this in a ROM zip.
Code:
package_extract_dir("system", "/system");
This is telling the recovery to extract everything in the system directory of the zip and put it in /system of the Internal memory. Any file of the same name on the internal memory will be overwritten by the file in the zip. However, if an app exists on the internal memory but NOT in the zip, it will not be overwritten. (Example, you have /system/app/chrome.apk in your ROM because you previously flashed GAPPs, but as the ROM does not include this, it will not be overwritten)
Most updater-scripts should get around this by formatting /system first to clean it of anything before flashing:
Code:
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");
This is certainly best practice and I think if any updater-script that is flashing an entire ROM does not do this, it is a mistake.
Now obviously, some GAPPs live in either /system/app or /system/priv-app, so if formatted correctly this should no longer exist, however - don't forget that some GAPPs update from the play store too. ...and when they do, those updates actually go into /data/app too.
I would suggest if you get force closes after flashing GAPPs, it would be best to wipe. "dirty flashing" or Flashing without a wipe is sometimes fine, but sometimes updates are sufficiently different from the previous version that a wipe may e necessary so please always be bbacked up via titanium or whatever and be prepared to wipe if you have to.
@rootSU That's a perfect explanation! I'm guessing PAC doesn't wipe the GApps, but DroidKang did hence why there were two different results with it.
I've done a fullwipe recently actually, last week. I had the same error, and restoring my backup failed (/data wouldn't restore), so I just relied on the Titanium Backup + full wipe.
Regardless, thanks for the info. Perfect answer.
MrCatalyst said:
@rootSU That's a perfect explanation! I'm guessing PAC doesn't wipe the GApps, but DroidKang did hence why there were two different results with it.
I've done a fullwipe recently actually, last week. I had the same error, and restoring my backup failed (/data wouldn't restore), so I just relied on the Titanium Backup + full wipe.
Regardless, thanks for the info. Perfect answer.
Click to expand...
Click to collapse
Cool. Glad I could help.
Related
If you want to do an update (e.g., no wipe, keeps data) of a ROM instead of a full installation, is there anything you need to do in CWM recovery other than selected update instead of install zip? Does the name of the zip need to be update?
I'm asking because I like the Phoenix ROM, but updates are coming quickly, and I don't want to have to set up everyting every few hours...
Thanks.
Unless it is indicated by the dev, you don't need to do a full wipe. It is always good to wipe cache, and dalvik cache when doing an update, patch, or add-on. There is no need to rename it, unless for some reason that makes it easier for you to remember what file it is.
Pretty sure that Rom has data wipe written into the update script so you would have to modify that.
does it do a data wipe or does it format /system
Thanks, and should I select update or install in CWM recovery? What is the difference?
Update is looking for a specific file named that, I believe. Correct me if I'm wrong, but I believe you can always run Install Zip, regardless of what it is as long as it's a flashable zip file.
Four-Fifty-X said:
If you want to do an update (e.g., no wipe, keeps data) of a ROM instead of a full installation, is there anything you need to do in CWM recovery other than selected update instead of install zip? Does the name of the zip need to be update?
I'm asking because I like the Phoenix ROM, but updates are coming quickly, and I don't want to have to set up everyting every few hours...
Thanks.
Click to expand...
Click to collapse
the rom developer should specify if a full wipe is needed. if not, you dont have to wipe or backup or anything and you wont lose your data.
i know people hate resetting up their phone, but 99.9% of the GPS and other random problems in here are from not wiping /data before the install. If you can stand it at all, do a full wipe. It seems these phones are VERY picky about what's left in /data after you wipe. Anytime I release a rom that wipes, there's usually no problems, if it doesn't wipe, there's GPS/data speed issues galore.
Ok I got my G2x last month, have it rooted w/ OneSuperClick...(they said, to make sure you're rooted, check to see if u have the superuser icon in your phone, it's there.
So I'm rooted, nandroid backed-up and have the recoverymod flashed too.....
I have tried to flash a few nightly roms (p99_46.zip is the latest) as well as the Eagleblood 1.0.4. None of the install......they start w/:
-- Installing: /sdcard/EagleBlood1.04.zip
Finding update package...
Opening update package...
E:Can't open /sdcard/EalgleBlood1.04.zip (bad)
Installation aborted.
(( so I'm forced to restore my stock back up.....
anyone have any suggestions...
I'm rooted, Have CWM recovery v3.0.2.7 installed...
Have clear davik's chache, have wiped cache partition, have wiped data/factory reset, tried installing any nightly ROMs from 44 and up and still nothing.....pls help...
GTLuver said:
Ok I got my G2x last month, have it rooted w/ OneSuperClick...(they said, to make sure you're rooted, check to see if u have the superuser icon in your phone, it's there.
So I'm rooted, nandroid backed-up and have the recoverymod flashed too.....
I have tried to flash a few nightly roms (p99_46.zip is the latest) as well as the Eagleblood 1.0.4. None of the install......they start w/:
-- Installing: /sdcard/EagleBlood1.04.zip
Finding update package...
Opening update package...
E:Can't open /sdcard/EalgleBlood1.04.zip (bad)
Installation aborted.
(( so I'm forced to restore my stock back up.....
anyone have any suggestions...
I'm rooted, Have CWM recovery v3.0.2.7 installed...
Have clear davik's chache, have wiped cache partition, have wiped data/factory reset, tried installing any nightly ROMs from 44 and up and still nothing.....pls help...
Click to expand...
Click to collapse
P.S... also....I heared about "gapps"...what is it and do I need it at all? When is the official 2.3.x (gingerbread) coming from Tmobile? I just want GB on my g2x
make sure u flashed clockwork recovery via NVflasher to TRULY gain a mod recovery. I always put the roms I wanna flash onto my phone's memory and NOT the microSD card. maybe that'll help.
Looks like a corrupt download. Delete the zip and try downloading again.
Sent from my LG-P999 using XDA App
Thnx for the reply. I tought I heard to have the ROMS in external memory card. Cuz, for example that's where clockworkmod backs up your nandroid.
Where do you place the ROMS(most roms have like 3 files in a compressed zip format.......i.e example.....the eagleblood ROM name is EagleBlood1.04.zip when u download it....inside the zip, theres two folders.....META-INF and "system".....a file called "boot.img" and another one called "installbusybox"...so where in the internal phone memory do u put the whole zip folder......?
put the WHOLE rom.zip on your memory. don't unzip anything.
+1 on the post above. redownload the rom and try flashing again.
after you flash the rom, flash gapps (this is the installer that includes market, gmail, etc.) You need it in order to get access to the market
Your steps should be as follows
1. Wipe Data
2. Wipe Dalvik cache
3. Flash Rom
4. Flash gapps
5. fix permissions
6. reboot
EDIT: and don't unzip anything. Place the WHOLE eaglesblood.zip file on your SD Card
Smurphjw said:
Looks like a corrupt download. Delete the zip and try downloading again.
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
They all say the same....I got them from the cyanogenmod website......even Eagleblood1.04 from here.
funny thing i noticed tho, after I tried installing a rom, but of course it fails, I connect the phone to USB, go to external memory card, try to open the ROM zip file, it wont open....says "X:\EagleBlood1.04.zip The archive is either in unknown format or damaged"
Maybe it gets damaged or currupted during the time its trying to flash the files to the phone???
cybereclipse said:
+1 on the post above. redownload the rom and try flashing again.
after you flash the rom, flash gapps (this is the installer that includes market, gmail, etc.) You need it in order to get access to the market
Your steps should be as follows
1. Wipe Data
2. Wipe Dalvik cache
3. Flash Rom
4. Flash gapps
5. fix permissions
6. reboot
EDIT: and don't unzip anything. Place the WHOLE eaglesblood.zip file on your SD Card
Click to expand...
Click to collapse
thanks....where do I get gapps and how do i go about installing it....I need to install it AFTER sucessfully flashing a rom, right?
Kinda new to the whole android thing, but not to modding devices...I started it when I got the $500+ moto RAZR when it came out, the psp, wii, ps3, itouch, etc. enuff about me....lets stay on topic
hehe me too, started with my verizon razr as well.
You can get gapps from here:
http://wiki.cyanogenmod.com/index.php?title=Latest_Version/Google_Apps
You install it AFTER successfully flashing a rom
and there is a thanks button
Have you ever installed a ROM that AUTOMATICALLY wiped your data when you installed it? Some ROM's have commands in their updater scripts that will AUTOMATICALLY wipe your data during the ROMs install process regardless if you chose not to wipe data before the install. This was frustrating to me because I did not want to have to go through the process of resetting up my device when I was only updating to the current version of the ROM I already had on my device.
It is always better to wipe completely before installing a new ROM, however there may be instances when you do not want to do that (i.e. upgrading from ROM version 1.1 to version 1.2, etc.). I recommend doing a full wipe when installing a new ROM however, I like to have the option to not do a full wipe and preserve my data and my system setup and not have the ROM automatically wipe my data.
If my ROM runs fine without wiping data then I like the convenience of not having to re-install all of my apps and system settings. If I find that the ROM is not behaving correctly after updating then I will go back and do a fresh install with a full wipe.
So if you have a ROM that AUTOMATICALLY wipes your data then this is how to modify the ROM so that it will not automatically wipe your data upon installing. It is very easy to do. Follow these instructions:
Navigate to the directory where your ROM is saved on your computer.
Open the ROM zip file with a zip application of your choice.
Navigate to the "META-INF>com>google>android" folder.
Extract the "updater-script" file.
Open this file with the Notepad application in Windows.
Locate this line in the text *format("ext3", "EMMC", "/dev/block/mmcblk0p26");*. It is usually somewhat near the beginning of all of the text in file.
Delete that line (note: the line will not have the * symbols before and after so just delete the line in between *'s)
Save the file but do not choose "Save as". Make note of the directory where the file was saved.
If your zip application does not ask to save the edited file automatically into the ROM zip file then re-add that file back into the ROM zip file in the original directory/folder where the file existed in the ROM zip file.
Copy the ROM zip file to your phone SD card.
Boot into recovery and install the ROM zip without manually wiping data.
Do not remove any other text lines or text characters from this file other than what is in between the *'s from the above instructions. There are no spaces in between any of the commands in the updater-script so keep the same character formatting in the file. Also, use Notepad in Windows (or a text editor in Mac; I do not know what that application is called on a Mac) for editing this file and do not use a word processing application (such as Word). Word processing applications can sometimes add hidden formatting in the text that you do not want.
This is for use with custom ROM's for the Thunderbolt. I do not know if this will work for other devices. Always make a backup before using this mod/change.
This mod/change only prevents the ROM itself from AUTOMATICALLY formatting and wiping your data upon installing. It does nothing else other than that. If the ROM itself does not AUTOMATICALLY wipe data during the install process then there is no need to use this. I have tested this successfully multiple times without issue.
The usual disclaimer applies to making this or any other modification to your device. I am not responsible for any damage this may cause to your device. Use at your own risk. However, if you made a backup then you should be fine.
I have searched the internet and the forums and did not find any instructions on how to do this so I made this post. If something like this has been posted before I apologize for cluttering the forum. Also, if I posted in the wrong forum I also apologize.
Hope this helps anyone who has this issue.
Very nice. Although I've had bad luck not wiping.
Sent from my ADR6400L using Tapatalk
Have had random issues not wiping I always do now even if rom says it will do it...
Sent from my BURNTH3ORYX using Tapatalk
If wiping is to much of a hassle for you then you shouldn't be flashing roms. The only time not flashing work is an update to a Rom. If its to much of a hassle to set things up then its going to be a bigger hassle when you run into problems and have to re-flash you Rom and wipe data, or just restore Nandroid because your to lazy (sometime you just don't have the time, I've been in this situation. What you do is just wait until you do, problem solved)
eraursls1984 said:
If wiping is to much of a hassle for you then you shouldn't be flashing roms. The only time not flashing work is an update to a Rom. If its to much of a hassle to set things up then its going to be a bigger hassle when you run into problems and have to re-flash you Rom and wipe data, or just restore Nandroid because your to lazy (sometime you just don't have the time, I've been in this situation. What you do is just wait until you do, problem solved)
Click to expand...
Click to collapse
Sometimes I have had the pleasure of screwing something up while toying with settings, where a quick install of the same rom over the current install is an easy fix. This makes that possible on roms that auto wipe... its a GOOD thing.
Morkai Almandragon said:
Sometimes I have had the pleasure of screwing something up while toying with settings, where a quick install of the same rom over the current install is an easy fix. This makes that possible on roms that auto wipe... its a GOOD thing.
Click to expand...
Click to collapse
I see your point, and I have flashed an untouched Rom over one that I themed and something got screwy, many times. I guess I haven't stuck with any Rom that had auto wipe for more than a day before I'm back to a better Rom.
Awesome and thanks... definitely use for me.
Chingy provides similar instructions for his ROMs on his site. It's useful if you, say tweak a kernel setting or fat finger something and the ROM goes unstable and all you really want to do is reflash the kernel, but the kernel, like Ziggy's, is only available in the ROM itself. Flashing one ROM over the exact same ROM shouldn't cause problems and this does have practical use in fixing problems. I'm gonna also the thanks button for it on behalf of someone that didn't know this, used it, and didn't thank back.
snicklet said:
Have you ever installed a ROM that AUTOMATICALLY wiped your data when you installed it? Some ROM's have commands in their updater scripts that will AUTOMATICALLY wipe your data during the ROMs install process regardless if you chose not to wipe data before the install. This was frustrating to me because I did not want to have to go through the process of resetting up my device when I was only updating to the current version of the ROM I already had on my device.
It is always better to wipe completely before installing a new ROM, however there may be instances when you do not want to do that (i.e. upgrading from ROM version 1.1 to version 1.2, etc.). I recommend doing a full wipe when installing a new ROM however, I like to have the option to not do a full wipe and preserve my data and my system setup and not have the ROM automatically wipe my data.
If my ROM runs fine without wiping data then I like the convenience of not having to re-install all of my apps and system settings. If I find that the ROM is not behaving correctly after updating then I will go back and do a fresh install with a full wipe.
So if you have a ROM that AUTOMATICALLY wipes your data then this is how to modify the ROM so that it will not automatically wipe your data upon installing. It is very easy to do. Follow these instructions:
Navigate to the directory where your ROM is saved on your computer.
Open the ROM zip file with a zip application of your choice.
Navigate to the "META-INF>com>google>android" folder.
Extract the "updater-script" file.
Open this file with the Notepad application in Windows.
Locate this line in the text *format("ext3", "EMMC", "/dev/block/mmcblk0p26");*. It is usually somewhat near the beginning of all of the text in file.
Delete that line (note: the line will not have the * symbols before and after so just delete the line in between *'s)
Save the file but do not choose "Save as". Make note of the directory where the file was saved.
If your zip application does not ask to save the edited file automatically into the ROM zip file then re-add that file back into the ROM zip file in the original directory/folder where the file existed in the ROM zip file.
Copy the ROM zip file to your phone SD card.
Boot into recovery and install the ROM zip without manually wiping data.
Do not remove any other text lines or text characters from this file other than what is in between the *'s from the above instructions. There are no spaces in between any of the commands in the updater-script so keep the same character formatting in the file. Also, use Notepad in Windows (or a text editor in Mac; I do not know what that application is called on a Mac) for editing this file and do not use a word processing application (such as Word). Word processing applications can sometimes add hidden formatting in the text that you do not want.
This is for use with custom ROM's for the Thunderbolt. I do not know if this will work for other devices. Always make a backup before using this mod/change.
This mod/change only prevents the ROM itself from AUTOMATICALLY formatting and wiping your data upon installing. It does nothing else other than that. If the ROM itself does not AUTOMATICALLY wipe data during the install process then there is no need to use this. I have tested this successfully multiple times without issue.
The usual disclaimer applies to making this or any other modification to your device. I am not responsible for any damage this may cause to your device. Use at your own risk. However, if you made a backup then you should be fine.
I have searched the internet and the forums and did not find any instructions on how to do this so I made this post. If something like this has been posted before I apologize for cluttering the forum. Also, if I posted in the wrong forum I also apologize.
Hope this helps anyone who has this issue.
Click to expand...
Click to collapse
thanks for posting this. I have to different format commands, one that is 26 and one that is 25. Do I only delete the 26 one?
You always always need to Wipe for best performance.... Always. Period
Sent from my GT-I9100 using Tapatalk
ajftl said:
You always always need to Wipe for best performance.... Always. Period
Click to expand...
Click to collapse
If your running the same EXACT version, not even a minor update, then its fine to flash without a wipe, but that's the only time you can do so.
Only the 26.
nrfitchett4 said:
thanks for posting this. I have to different format commands, one that is 26 and one that is 25. Do I only delete the 26 one?
Click to expand...
Click to collapse
Only the 26. Leave all the others.
snicklet said:
Only the 26. Leave all the others.
Click to expand...
Click to collapse
thanks, guesses that was the way to go. Worked without problems.
So recently I've flashed Euphoria and its included gapps from bpear96.
But that's given me issues with updating Play Games, constant error -505
After looking around the given solution was to flash Gapps 5.1, but I can't seem to flash TKs pack over.
Is there a possible way to wipe just gapps and relflash them? Or wipe gapps and system but keeping data and apps I've downloaded?
Sent from my A0001 using Tapatalk
Yup. You could just wipe the /system partition (to get rid of the old gapps's addon.d scripts and stuff) and reflash your ROM and gapps. If that doesn't cure your problem, I'm afraid your only option is a clean wipe (backup with Titanium Backup, or make a Nandroid and restore with Nandroid Manager)
I just flashed Lineage OS on my OPO. Y was previously running stock, rooted CyanogenOS.
After flashing, I accidentally booted the system (before flashing Gapps). I rebooted into recovery, and once there I tried flashing Gapps. However, I got a message (not an error in red font) saying I haven't enough space in my system partition.
Any idea on how to fix this? I already tried wiping dav/cache/system and flashing LOS again, no dice. Also I deleted several Gbs from the file manager.
E: The error was #70, and I was using Nano Gapps.
Try nano or pico gapps.
Betoqp said:
I just flashed Lineage OS on my OPO. Y was previously running stock, rooted CyanogenOS.
After flashing, I accidentally booted the system (before flashing Gapps). I rebooted into recovery, and once there I tried flashing Gapps. However, I got a message (not an error in red font) saying I haven't enough space in my system partition.
Any idea on how to fix this? I already tried wiping dav/cache/system and flashing LOS again, no dice. Also I deleted several Gbs from the file manager.
E: The error was #70, and I was using Nano Gapps.
Click to expand...
Click to collapse
Use a lower size gapps or aroma gapps so that you can choose required apps to install.
Also,flash rom+gapps together because of changes from MM you can't reboot to system and then flash gapps,that will give you fc's..
However if you anytime forget to flash Gapps(always case with me ),and say you setup everything and you don't want to do it all over again,you can just take a nandroid backup of your current rom and then restore it again and then flash gapps and reboot.
Hope this helps.
Mr.Ak said:
Use a lower size gapps or aroma gapps so that you can choose required apps to install.
Also,flash rom+gapps together because of changes from MM you can't reboot to system and then flash gapps,that will give you fc's..
However if you anytime forget to flash Gapps(always case with me ),and say you setup everything and you don't want to do it all over again,you can just take a nandroid backup of your current rom and then restore it again and then flash gapps and reboot.
Hope this helps.
Click to expand...
Click to collapse
Thanks! I'll try with the pico one, although I'm concerned I might be missing something? Can I flash the aroma package using TWRP?
Betoqp said:
Thanks! I'll try with the pico one, although I'm concerned I might be missing something? Can I flash the aroma package using TWRP?
Click to expand...
Click to collapse
Yes you can,just make sure you don't select too much apps as you'll again see errors.
Lately ROM's zips are getting bigger, the system partition is not. Fotunatly OpenGapps zipps are modular through a .txt config file easily editable. Have a look here.
You can place the gapps-config file in /sdcard/Open-GApps/gapps-config.txt
Click to expand...
Click to collapse
I am using this one with stock package so that aosp apps gets removed (attachment below)