Related
smeone has probably already thought of this, but incase not i wanted to throw it out there, back on windows mobile we had the ability to set up SDconfig to instal our cab files after we flashed a new rom, saving us time on doing it ourselves. has anyone started to write a script to automatically grab apps from the market if we have to wipe our phone, i have had to wipe my phone 3 times in less than the month thati've had it and it's a bit of a hassle to try and find all the apps from the market again. just wondering if anyone had any idea on how to do this. i'm not that good at the whole coding thing but it would be great if this was implemented somehow.
You could always copy the apk files and do an "adb install x.apk" after a wipe.
The other option right now is to use ASTRO to back up all your apps. Download it in the market, it will copy all of your apps to your SD. Unfortunately you have to reinstall one at a time, but it puts them all in a list. Between this and Mybackup I don't lose anything when I wipe my phone except for data created by individual apps. I am sure I could back this info up too, but it just isn't important to me. Hope this helps.
trmacdonal said:
The other option right now is to use ASTRO to back up all your apps. Download it in the market, it will copy all of your apps to your SD. Unfortunately you have to reinstall one at a time, but it puts them all in a list. Between this and Mybackup I don't lose anything when I wipe my phone except for data created by individual apps. I am sure I could back this info up too, but it just isn't important to me. Hope this helps.
Click to expand...
Click to collapse
So make an update.zip with all your apks and favorite theme rolled-up. This way you can image your phone and then apply the update and you are set...
Or you can simply roll your own build of your image with your applications/themes already applied so you have a "live" image (so to speak).
First Note: These apps will become uninstallable! (much like any other stock rom apk) and must be deleted using the console, somehow.. anybody care to shed some light on how?
Hopefully someone can add more to this or use this info to build a much more thorough how-to, but for now here's what I've got...
Instead of building your own update.zip you can modify your alt+w wipe data to reinstall the downloaded/backed-up apks of your choice. This can also be used to install 3rd party apks without having access to any other installer, for instance if you wipe then find yourself without any access to the internet/market or a computer.
To do this you must first have the apps on the sd. I used astro to backup apps which puts the apks in /sdcard/backups/apps
I'm doing this on IonR2, your system apps may be elsewhere, mine are located in /system/app, you'll need to know where they are for this to work.
Power off your phone and do this (enter the bold stuff only, replace my directories with yours):
home+power (enter recovery)
alt+x (to go to console)
hit enter (cause the prompt says so..)
/ # mount sdcard
/ # mount system
/ # cd sdcard/backups/apps (or cd to where ever your backed up apks are)
/sdcard/backups/apps # ls *appname* (this may be useful for finding the exact *.apk name)
/sdcard/backups/apps # install -cp org.appName.com.apk /system/app (remember to capitalize where necessary)
at this point it should hang for a second then return to the "/sdcard/backups/apps #" prompt, if so the apk has successfully been added.
/sdcard/backups/apps # reboot (or install more apks if you like)
home+power then alt+w to test if you so desire. now your backed up apk should reinstall itself if you ever have to do an alt+w wipe again..(weather the apk is on the sd card or not)
I know, not very thorough but wth, I figured someone might find this as useful as I did(or be able to expand on it a bit, data, app settings etc). Also cool if you happen to have no net connection, no pc access and a wiped phone with no real useful/fun apps...
u only have to do this once, and it'll flash the new roms WITH these apps installed? how do we 'clear' these apps if we don't want to have them installed when we wipe?
Is it possible to install all the apps in your backup directory at once, with some sort of batch command?
These apps will become uninstallable! (much like any other stock rom apk) and must be deleted using the console, somehow.. anybody care to shed some light on how?
@ Lieu10ant, yeah, you only have to do once/updated rom, this modifies the base install. the newely added apks will be installed every time you alt+w (wipe). If you apply an update.zip this process will need to be redone(I'm pretty sure, haven't tried).
@ lukekirstein, I'm sure there's a way but I'm not sure how. Really hoping someone more knowledgable jumps in here with a bit more info :/
I've added a file manager(with backed up apps installer) and wifi tether because I always need/use em and never really planned on uninstalling em..
Im pretty sure you would have to use "rm" and individually remove all apps you dont want.
instead of backing up your apps, just run apps to sd and never reinstall any apps again
Breakthecycle2 said:
Im pretty sure you would have to use "rm" and individually remove all apps you dont want.
Click to expand...
Click to collapse
you would mount the system again from the recovery console and 'rm' each app you don't want. You would want to be careful not to batch delete stuff.
sonikamd said:
These apps will become uninstallable! (much like any other stock rom apk) and must be deleted using the console, somehow.. anybody care to shed some light on how?
@ lukekirstein, I'm sure there's a way but I'm not sure how. Really hoping someone more knowledgable jumps in here with a bit more info :/
Click to expand...
Click to collapse
Wouldn't it be a nice thing to make them uninstallable? That would, in theory, make them a lot more stable like the stock apps and can only be updated, not modified. You can probably delete them through console in recovery or even through ADB if you wanted to. It'd definitely be impossible to do it through some basic installer or the package uninstaller while the phone is running normally. The same process as a stock app.
I know you can't do it while the phone is running (bummer :/) but I was hoping it's possible when the phone is off.
@ Breakthecycle2, cool, I figured rm through console after mounting but haven't tried so wasn't 100% on that one.
@ Sirus20x6, I prefer this method to apps2sd, mainly because everything's stored in the phone's internal memory. Although I know most folks now seem to be using an apps2sd of some sort.
@ lukekirstein, yeah. That's why I do it this way, but some may want them uninstallable so I figured I better make a point to inform those folks
Wouldn't this decrease your internal memory since these apps are being saved to the phone so you can later wipe?
jusplainmike, I would assume so. Something to keep in mind.
Would a nand be better?
sonikamd said:
I'm doing this on IonR2, your system apps may be elsewhere, mine are located in /system/app, you'll need to know where they are for this to work.
Click to expand...
Click to collapse
(10c)
perhaps, depends on what you want I suppose. I wipe clean every so often just to get a fresh start, speed things back up etc. Sometimes while installing themes I wipe multiple times and also just want a clean slate.
This is definitely not the way to go for a complete backup-restore. Just seems a good way to reinstall a few missing by stock apps after a wipe.
lol soulife i know, i know
I believe apps2sd is the best bet for keeping apps after a wipe or fresh install.
retort
sonikamd said:
lol soulife i know, i know
Click to expand...
Click to collapse
The only reason is because you push a market app to internal memory it read only. If there's an update you have to open terminal or adb and rm and push the update back. Plus if you flash a new update it will wipe them out. With a2sd however you can update them no hastle, and even if you flash a new build, with a2sd the reinstall themself. Much more convient as long as you smart with your partitioning.
I think you guys may be doing this the hard way. If you are wiping and moving to a compatible ROM, just leave the sd card as it is and the new ROM should be able to find and install the apps as long as it has apps2sd built in.
If you are moving to an incompatible ROM you will have to remove old sd app directory first.
rm -r /system/sd/app
then you should be able to just copy over your entire apk backup directory to your sdcard as follows.
cp- a /sdcard/yourdirectoryname /system/sd/app
and if you are installing a ROM that has app2sd built in, it should find all the apps and install them.
If the ROM you use does not have apps to sd, then you will be able to use Lucid script to move apps from phone to sd card app directory (with already copied apps) and link directory
Tru, I just don't use apps2sd. My sd is constantly getting mangled for one reason or another..
uh, by doing this you're filling up your /system folder which actually needs memory to improve. and you can uninstall them by
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
rm/system/app/nameof.apk
on another note wouldnt wiping while having info in the system ; wipe?
anyways
So unless I have missunderstood something, the recovery.img is what state the phone returns to when you do a factory reset. I would very much like to change this state to have a few apps installed and pre-configured.
The best solution would be to create a recovery-image from say nandroid-backup. Is this possible? Or are there any awesome guides out there that teaches how to create your own recovery-images?
Cheers,
edit: I found alot of good information in these threads, but I really cant find information on how to customize my recovery-image to have certain apps installed, and such. Im guessing there is no automated way to transfor a nandroid-backup to a recovery image
http://forum.xda-developers.com/showthread.php?t=443994
http://forum.xda-developers.com/showthread.php?t=575144
recovery image is the barebones boot up and options that allow you to wipe, nandroid, and such. when powering up and pressing home at the same time, this is the recovery image. what you are talking about is either creating your own update, with preinstalled apps, or creating a clean nandroid backup with some apps installed. hope this clears up a bit.
byt3b0mb said:
recovery image is the barebones boot up and options that allow you to wipe, nandroid, and such. when powering up and pressing home at the same time, this is the recovery image. what you are talking about is either creating your own update, with preinstalled apps, or creating a clean nandroid backup with some apps installed. hope this clears up a bit.
Click to expand...
Click to collapse
I see, thanks for the info. So maybe I should not change the recovery-image. But I want to change the state the phone returns to when I do a factory reset. I think atleast the recovery-image is loaded during factory reset, because I have managed to make factory reset not work by making a faulty recovery image that hangs the phone, lol.
Maybe this is what I should do: An update.zip that inclodes a ROM that has pre-installed apps. Is this what the phone returns to at a factory reset?
sandis84 said:
Maybe this is what I should do: An update.zip that inclodes a ROM that has pre-installed apps. Is this what the phone returns to at a factory reset?
Click to expand...
Click to collapse
Correct
ronni.rasmussen said:
Correct
Click to expand...
Click to collapse
I have tried creating an update.zip, but I have ran into some problems as specified in this thread:
http://forum.xda-developers.com/showthread.php?p=5101633#post5101633
However, I am still unsure on how this update.zip would work. It feels as if I should edit the data.img-file, since it contains the information in the data-folder (i.e. the apps and their state). But I have found no editor or guide to do this. However, this might only change the state of the phone directly after installing the update-zip? If I install an update.zip with modified data.img, is this really what the device will return to after a factory reset?
I.e, exactly from where does the phone load the state it returns to after a factory reset?
Cheers,
are you wanting to have all gmail and other things with passwords already done or simply install barebones rom with your little bits you want
if its the latter option thats easy
make an update zip with your apks wifi apn settings inside and flash stright after installing rom before a reboot
or open up your desired rom and drop the files in the correct folders re-sign and thats it
sitimber said:
are you wanting to have all gmail and other things with passwords already done or simply install barebones rom with your little bits you want
if its the latter option thats easy
make an update zip with your apks wifi apn settings inside and flash stright after installing rom before a reboot
Click to expand...
Click to collapse
Im not sure I understand, but here is a clarification of what I want: What I want to do is specifically to change the "factory reset state". I am trying to do this to make a personalized very noob-friendly ROM, where they can just make a factory reset and still keep their essential apps and settings. It is meant for people that for example arent technical enought to make a restore from nandroid or such stuff.
edit: To create an update.zip with certain apps and settings, is there a complete guide for doing that? I have found many guides that covers parts of it, but I always run into problems.
edit2: Nvm, I have nog managed to create an update.zip. So I just add some apk-files to the data/app-folder in the boot-img in the update? Well, Im going to give it a try... I'll report back in a while =)
Well, I have managed to create and install an update.zip, but the result is not showing up! I create my update, place it on the sdcard, start in recovery mode and run the update. Then i restart.
When I restart first i see the "phone out of box"-image for about half a second, then splashscreen. Then "phone out of box"-image for half a second again, and then it returns to the splash screen and boots normally.
When it has booted I check if my changes has applied. What i have done is I have tried to create several directories in the file system by adding three lines in the init.rc:
Code:
mkdir /sdcard 0000 system system
mkdir /system
[b]mkdir /test1[/b]
mkdir /data 0771 system system
mkdir /cache 0770 system cache
[b]mkdir /test2 0770 system cache[/b]
mkdir /sqlite_stmt_journals 01777 root root
[b]mkdir /test3 01777 root root[/b]
mount tmpfs tmpfs /sqlite_stmt_journals size=4m
But none of these directories has been created. Even worse, the lines I added are gone from init.rc! It seems as if the update was never applied. What could be wrong? Any help would be VERY appriciated, since I feel very very stuck at the moment.
My P1000 shut down randomly, so I tried to put everything new on it. After flash and all the other stuff it won't run properly anymore. Everytime I get 'System UIDs Inconsistent'. used Odin and Heimdall, I did wipe the data and the cache, I can see with ADB it is gone, but after reboot all the corrupt apps and system failures are back again. I installed several different firmwares, nothing worked.
I have changed permissions with chmod and deleted by hand several files, amongst them the everytime restarting but crashing apps like skype and whatsapp.
When I perform wipe, delete, rename or move actions in ADB the results are what I wanted. But when I restart everything is back again. I even deleted almost anything, did not work.
This happened in all the roms I installed, so it must be a problem in the filesystem or so. Any idea how to permanently delete stuff while in adb shell? I already gave myself all the rights on the tablet, synced it after the deletes, nothing works.
Or does anybody know how to start from scratch?
I cannot start the tab anymore in normal mode, but I do have recovery mode and overcome cwm.
best of luck
nbreed said:
My P1000 shut down randomly, so I tried to put everything new on it. After flash and all the other stuff it won't run properly anymore. Everytime I get 'System UIDs Inconsistent'. used Odin and Heimdall, I did wipe the data and the cache, I can see with ADB it is gone, but after reboot all the corrupt apps and system failures are back again. I installed several different firmwares, nothing worked.
I have changed permissions with chmod and deleted by hand several files, amongst them the everytime restarting but crashing apps like skype and whatsapp.
When I perform wipe, delete, rename or move actions in ADB the results are what I wanted. But when I restart everything is back again. I even deleted almost anything, did not work.
This happened in all the roms I installed, so it must be a problem in the filesystem or so. Any idea how to permanently delete stuff while in adb shell? I already gave myself all the rights on the tablet, synced it after the deletes, nothing works.
Or does anybody know how to start from scratch?
I cannot start the tab anymore in normal mode, but I do have recovery mode and overcome cwm.
Click to expand...
Click to collapse
try plugging it up while its in cwm and access the adb shell while its displaying. the prompt should be ~# if its universal. maybe you can completely wipe everything and flash a recovery at the same time? that may keep it deleted. i dont know. just a suggestion. i hope you succeed... tell me how it goes.
thanks for answering.
i tried all that, even did a complete format of the internal sd card, in adb with parted and also in windows with a mounted card. it says it is deleted, but after reboot it is all back again...
Do you have a backup of a working ROM you can restore?
Crap.... Hmm... Have you tried any formatting software? Try to find a programmer who can wipe it completely, re partition, and reinstall the stock rom. Then try to restore to something before the problems
Sent from my R800at using XDA
Use flashtool. I've heard it can unbrick, maybe it'll help???
Sent from my R800at using XDA
nbreed said:
My P1000 shut down randomly, so I tried to put everything new on it. After flash and all the other stuff it won't run properly anymore. Everytime I get 'System UIDs Inconsistent'. used Odin and Heimdall, I did wipe the data and the cache, I can see with ADB it is gone, but after reboot all the corrupt apps and system failures are back again. I installed several different firmwares, nothing worked.
I have changed permissions with chmod and deleted by hand several files, amongst them the everytime restarting but crashing apps like skype and whatsapp.
When I perform wipe, delete, rename or move actions in ADB the results are what I wanted. But when I restart everything is back again. I even deleted almost anything, did not work.
This happened in all the roms I installed, so it must be a problem in the filesystem or so. Any idea how to permanently delete stuff while in adb shell? I already gave myself all the rights on the tablet, synced it after the deletes, nothing works.
Or does anybody know how to start from scratch?
I cannot start the tab anymore in normal mode, but I do have recovery mode and overcome cwm.
Click to expand...
Click to collapse
this Q
With Q???
Recovery rom can be installed, but is gone after reboot. Formatting in windows or linux (adb) performs without errors, but after reboot, yes you guessed right, it is back. So this internal sd card has a life of its own, the only thing I can do is install a working system with flashing, but then no app will work, every activation of whatever app will give inconsistent uids errors. And I cannot install new apps, because vending.apk (market) will crash. I installed vending by hand (adb), then it work for a moment, but after reboot to use it the normal way, again crashed.
AS LONG AS I CANNOT REPLACE THE SDCARD IT IS HOPELESS?!?
This morning I left the unwilling android tab in the power adapter to be fully charged for a new go. But: it is now a real brick. It won't power up any more, the button lights do not flash anymore, the only thing it does, is showing the battery. Never again will I buy such an expensive underdeveloped piece of plastic crap again!
Calm down... You need to boot into recovery mode and try using formatting the sd. If comp can recognize, format the sd with the computer. It's not the android. It's what you did. Sorry
ROOTED Xperia Play 4G 2.3.3
can you read? i did format the sdcard in adb with parted, i did format it on the pc. but when i reboot EVERYTHING is back again. before rebooting it is totally empty. after reboot the old non-working stuff is back.
end of android, no end of samsung for me
Help
How do I install the radio over abd
News on this issue?
nbreed said:
can you read? i did format the sdcard in adb with parted, i did format it on the pc. but when i reboot EVERYTHING is back again. before rebooting it is totally empty. after reboot the old non-working stuff is back.
end of android, no end of samsung for me
Click to expand...
Click to collapse
I have the very same problem, did you managed to fix it ??
I know this is probably a shot in the dark, but the phone was rooted with kingroot and working great, I decided to be an idiot and factory reset. I must've deleted a system app that made the phone function properly. The lock screen doesn't work. The recent apps button does nothing either. Also, when I restart the phone it starts the whole factory reset process over. Does anyone have any idea what LG app may govern these things? The phone works besides this, but that is pretty major stuff. I know it's a cheap phone but I thought it was worth asking.
CaptainPatterson said:
I know this is probably a shot in the dark, but the phone was rooted with kingroot and working great, I decided to be an idiot and factory reset. I must've deleted a system app that made the phone function properly. The lock screen doesn't work. The recent apps button does nothing either. Also, when I restart the phone it starts the whole factory reset process over. Does anyone have any idea what LG app may govern these things? The phone works besides this, but that is pretty major stuff. I know it's a cheap phone but I thought it was worth asking.
Click to expand...
Click to collapse
If you can find a copy of your stock firmware, you can:
1) extract the system apps from the firmware(they'll be in the /system/app and /system/priv-app folder, extract the ones that you don't currently have on the device), then push those apps to the corresponding folder on the device using adb push or by using an app that has a root browser.
2) extract the /system/app folder and the /system/priv-app folder, then use adb push to push them back to /system on the device.
3) extract the entire system.img from the firmware then use adb shell and a dd command to dd the system.img on the device to replace the corrupted system with a complete system.
Or you can get copies of what you don't have from another member here with the same device and firmware then use those to replace the deleted apps
After getting them back to where they go, boot to recovery and wipe cache but don't factory reset.
It's always best to disable or hibernate system apps first to determine whether they are needed, if disabling/hibernating them cause issues then you know they can't be deleted, in this case, re-enable/unhibernate the app. If disabling/hibernating an app doesn't cause an issue, then it's safe to remove/uninstall that app. Do this process one app at a time and you'll figure out what you have to keep and what can be gotten rid of. And remember, after removing or adding system apps, you have to boot to recovery and wipe cache partition (and/or dalvik/ART cache if you have custom recovery). Failing to do the wipe will definitely cause issues.
@CaptainPatterson, I added more info.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE