Ok, so I just bought my first game from the market and my concern is that I will lose the game because of the amount of times i flash and wipe my phone with new firmwares.
I want to ensure I can back it up properly and would like confirmation if I am doing it right.
Since I can't do a adb pull in the app-private folder, I went into the terminal of my phone and copied the apk from the app-private to the app folder.
I then did a adb pull /data/app/filename.apk file.
So if I wipe and flash my phone and all that jazz, can I merely do a adb push /data/app/filename.apk and then copy it from the terminal in the app-private folder?
or is it more complexe than that?
You do realize that no matter how many times you wipe you can just go back into the market and download again for free?
There are methods of copying and moving files around, but I'm sure most of the developers that make these apps really don't want to talk about it.
flixxx said:
Ok, so I just bought my first game from the market and my concern is that I will lose the game because of the amount of times i flash and wipe my phone with new firmwares.
I want to ensure I can back it up properly and would like confirmation if I am doing it right.
Since I can't do a adb pull in the app-private folder, I went into the terminal of my phone and copied the apk from the app-private to the app folder.
I then did a adb pull /data/app/filename.apk file.
So if I wipe and flash my phone and all that jazz, can I merely do a adb push /data/app/filename.apk and then copy it from the terminal in the app-private folder?
or is it more complexe than that?
Click to expand...
Click to collapse
You can wipe as many times as you want. You wont lose your paid apps. They stay in the market as purchased forever and ever. This isnt some crap like EA and their BS DRM limit to 5 installs per owner.
Edit: Even if the dev pulls the app from the market that you have purchased. It will still be available to download for you at anytime. Only time it will vanish is if the dev refunds you at his request.
beautiful
so many new roms to try.
ok so i did my flashing and all and as you all said I was able to redownload robo defense.... but all my saved content is GONE!
So to prevent this in the future, where do the profiles get saved? is there a folder or file? I have managed to backup that zip file that comes with robo defense but it didn't do the trick.
flixxx said:
ok so i did my flashing and all and as you all said I was able to redownload robo defense.... but all my saved content is GONE!
So to prevent this in the future, where do the profiles get saved? is there a folder or file? I have managed to backup that zip file that comes with robo defense but it didn't do the trick.
Click to expand...
Click to collapse
Application Data is stored in /data/data/{packagename}/
jashsu said:
Application Data is stored in /data/data/{packagename}/
Click to expand...
Click to collapse
Beautiful! thanks a lot.
flixxx said:
ok, so i just bought my first game from the market and my concern is that i will lose the game because of the amount of times i flash and wipe my phone with new firmwares.
I want to ensure i can back it up properly and would like confirmation if i am doing it right.
Since i can't do a adb pull in the app-private folder, i went into the terminal of my phone and copied the apk from the app-private to the app folder.
I then did a adb pull /data/app/filename.apk file.
So if i wipe and flash my phone and all that jazz, can i merely do a adb push /data/app/filename.apk and then copy it from the terminal in the app-private folder?
Or is it more complexe than that?
Click to expand...
Click to collapse
i dont know how i did it but one of my paid apps i do have back-up on my sdcard...the one i have is the snes.apk..in i paid $2.99 for it
Terminal
su
cp /data/app-private /sdcard/ -rf
done.
lbcoder said:
Terminal
su
cp /data/app-private /sdcard/ -rf
done.
Click to expand...
Click to collapse
so what i have to do in terminal cause it tell me not found...more details plz
Do you have apps2sd ?
issue
wel i am having a big issue. i recently flashed my phone. once i installed the cyanogen apk. my market data was one. luckily i downloaded backup for root users. now the problem i am having is when i get to the apps that have backed up as a zip file, how do i install them. extracting leaves me with folders that i cant use. and changing the file extension to .apk doesnt cut it either as it comes back and says installation failed. any clues guys?
To back up private apps
Use Adb pull system/sd/app-private/filename <directory on desktop>
*this is if you have apps to sd
[email protected] said:
Use Adb pull system/sd/app-private/filename <directory on desktop>
*this is if you have apps to sd
Click to expand...
Click to collapse
speaking of apps2sd, how does it work exactly?
does it create a link from /data/ to /system/sd or are they seperate folders entirely?
I ask because when i go delete a file from /data/app, it gets deleted from /system/sd/app so i figured there is a link to the SD card, but then when i do a ls -F in /data folder, the app does not seem to be a symbolic link.
Related
Hi.
I´ve tried to backup a couple of paid apps. Astro tells me the apps are private and won´t backup. On Mybackup Pro the apps are not even on the app list.
Is it even possible to make a backup of a paid app ?
Filgaliel said:
Hi.
I´ve tried to backup a couple of paid apps. Astro tells me the apps are private and won´t backup. On Mybackup Pro the apps are not even on the app list.
Is it even possible to make a backup of a paid app ?
Click to expand...
Click to collapse
If your paid apps get deleted, the market will still show them as having been purchased. All you need to do is re-download them.
Wow, I forgot posting this..
The problem is that I paid for a couple of apps while running an Android 2.0 ROM. Now i´m running a hero 1.5 based ROM some of the apps I paid for don´t show up in market.
Did you try to back them up with "Backup for Root"? It should backup every apk without bothering you with protected ones, I think.
Otherwise you can backup all your apps with a single command using adb (I personally do it that way) :
assuming you want to put them in the same folder as Astro...
adb shell cp -r -f /data/app/*.* /sdcard/backups/apps
Hope this helps
Edit : I forgot that the protected apps were put in the app-private folder so to have all apps you have to do two commands, here is the second one
adb shell cp -r -f /data/app-private/*.* /sdcard/backups/apps
I'll try both methods. Thanks a bunch.
swissp said:
Did you try to back them up with "Backup for Root"? It should backup every apk without bothering you with protected ones, I think.
Otherwise you can backup all your apps with a single command using adb (I personally do it that way) :
assuming you want to put them in the same folder as Astro...
adb shell cp -r -f -p /data/app/*.* /sdcard/backups/apps
Hope this helps
Edit : I forgot that the protected apps were put in the app-private folder so to have all apps you have to do two commands, here is the second one
adb shell cp -r -f -p /data/app-private/*.* /sdcard/backups/apps
Click to expand...
Click to collapse
SwissP
Must the phone be rooted to execute this ? I'm running a Droid on 2.0.1 - TIA
swissp said:
Did you try to back them up with "Backup for Root"? It should backup every apk without bothering you with protected ones, I think.
Otherwise you can backup all your apps with a single command using adb (I personally do it that way) :
assuming you want to put them in the same folder as Astro...
adb shell cp -r -f -p /data/app/*.* /sdcard/backups/apps
Hope this helps
Edit : I forgot that the protected apps were put in the app-private folder so to have all apps you have to do two commands, here is the second one
adb shell cp -r -f -p /data/app-private/*.* /sdcard/backups/apps
Click to expand...
Click to collapse
I tried the adb method and after i type out the "adb shell cp -r -f -p /data/app-private/*.* /sdcard/backups/apps"...it says multiple values entered or something along those lines and gives me a list of option with the definition of each -r -f etc. I dont know if that is supposed to happen and if it is...whats the next step.
As well i tried the backup for root users and i had one paid app "crystallight" that i was experimenting with...the crystallight app was backed up as a .zip while majority of the other apps were .apk...
How can i reinstall the crystallight on to my phone...i tried the restore function in backup for root users and nothing happens.
I also tried the method as stated here: http://theandroidsite.com/2009/11/2...ns-for-root-users/comment-page-1/#comment-517
And i get errors with this method too.
I have a HTC Hero rooted and running firmware 1.5
Thanks in advance
Sorry I forgot this thread.
Yes, you will need root as I think you wouldn't be able to access the content of the /data folder without it.
I just tested and found that you cannot use the -p parameter with the app-private folder (I don't think it's needed for the app folder either so you can remove it on both adb commands), sorry for that. I don't know what could be the problem on the Hero though. It should work the same.
About the app in .zip, I'd just try to rename it to .apk and install as usual
Filgaliel said:
The problem is that I paid for a couple of apps while running an Android 2.0 ROM. Now i´m running a hero 1.5 based ROM some of the apps I paid for don´t show up in market.
Click to expand...
Click to collapse
If the app require 2.0 (or more likely 1.6) as a minimum OS level then they are not going to show up, or work, if you are now running 1.5. Your phone tells the Market what version of OS you are running, and the Market filters the available apps, based on that.
Titanium Backup
You can use Titanium backup on the market, if your phone is rooted and has SQLite and busybox, to backup/restore all of your apps, and market data for them - just search for it.
But, I dont know how to recover paid apps without buying them again, unless you use this.
Hope this helps.
HunteronX said:
You can use Titanium backup on the market, if your phone is rooted and has SQLite and busybox, to backup/restore all of your apps, and market data for them - just search for it.
But, I dont know how to recover paid apps without buying them again, unless you use this.
Hope this helps.
Click to expand...
Click to collapse
what is and how do you know if you have SQlite? is it an app?
Filgaliel said:
Hi.
I´ve tried to backup a couple of paid apps. Astro tells me the apps are private and won´t backup. On Mybackup Pro the apps are not even on the app list.
Is it even possible to make a backup of a paid app ?
Click to expand...
Click to collapse
Titanium backup will work for all paid apps. I just tryed it myself. It makes it nice....
bjtheone said:
If the app require 2.0 (or more likely 1.6) as a minimum OS level then they are not going to show up, or work, if you are now running 1.5. Your phone tells the Market what version of OS you are running, and the Market filters the available apps, based on that.
Click to expand...
Click to collapse
Yes, based on your explanation, the above is exactly why you cannot see them in the market. Apps are filtered by version. Even if you have the apps backed up, it doesn't mean you can run the 2.0 apps on 1.5.
SQLite
DeSim said:
what is and how do you know if you have SQlite? is it an app?
Click to expand...
Click to collapse
If you open titanium backup and it says YES to SQLite on the opening screen, then its in your rom. I think SQLite is for queries and databases, but is not an apk, but a system binary - sorry if i'm wrong.
I've been switching back and forth in recovery between Modaco's desire rom and CM. Recently I downloaded a couple beta's on the desire rom, which are all now closed, that I'm trying to get back on my CM rom. Is there a way to pull the .apk out of the Desire rom so I can use it with my CM? (Or with froyo or the new desire builds when they come out).
Thanks
Use Titanium Backup. Available for free in the market
Or you could use adb and pull the apks for /system/app or /data/app depending on where it was installed... even if you have app2sd, pull from /data/app will work since it is symlinked...
Code:
adb pull /system/app .
adb pull /data/app .
Most desire apks are not compatible with CM or any other non-sense ui roms.
Search a little and you'll know what i mean
PhantomRampage said:
Most desire apks are not compatible with CM or any other non-sense ui roms.
Search a little and you'll know what i mean
Click to expand...
Click to collapse
If you read the first post, OP wasn't talking about desire app apk, but rather some 3rd party beta apps apks...
Slighty OT.
When I download & install an app from the market, where does its apk get stored on my Nexus running OS2.1? I went looking but could only find the inbuilt apps in the /system/app folder. I have a couple of apps that I would like to copy to my SD card with ASTRO prior for backup purposes. Thanks.
logger said:
Slighty OT.
When I download & install an app from the market, where does its apk get stored on my Nexus running OS2.1? I went looking but could only find the inbuilt apps in the /system/app folder. I have a couple of apps that I would like to copy to my SD card with ASTRO prior for backup purposes. Thanks.
Click to expand...
Click to collapse
Depending on the install type specified... the app would either install as a normatl app or a protected app...
Normal apps are stored in /data/app, protected in /data/app-private
craigacgomez said:
Depending on the install type specified... the app would either install as a normatl app or a protected app...
Normal apps are stored in /data/app, protected in /data/app-private
Click to expand...
Click to collapse
The thing is, my /data folder appears as empty and I have 80 apps installed!! I am using ASTRO file manager.
Winzip/winrar
logger said:
The thing is, my /data folder appears as empty and I have 80 apps installed!! I am using ASTRO file manager.
Click to expand...
Click to collapse
Maybe astro can't view the list of files there... I can't list the files there in the terminal application without getting su privileges... use adb pull to get the files...
While I know editing the ROM and resigning the zip file is a method, one I generally use, I get tired of doing it every time since I do the nightly CMs.
Is there an app or something that can be used to remove stock apps? I HATE Amazon MP3 and stock weather and such.
I've heard someone say something about Spare Parts but I don't seem to see any way to remove apps with it....
I use root explorer from the marketplace. It's not free but it's well worth it imo.
trojanz said:
I use root explorer from the marketplace. It's not free but it's well worth it imo.
Click to expand...
Click to collapse
I don't know why I didn't think about that lol.
I have RootExplorer..where exactly would I find those apps though? Looking in the /system folder under apps, I see the system apps but I don't see such apps as Amazon or Weather (though I assume they may be under different names?)
They should be in the /system/app folder, but in their full names. It'll be something like "com.android.MP3.apk"...You just gotta look closely and guess.
wdfowty said:
They should be in the /system/app folder, but in their full names. It'll be something like "com.android.MP3.apk"...You just gotta look closely and guess.
Click to expand...
Click to collapse
Yeah, I found it. Thanks dude.
My question is, how safe is it to remove **** like stock browser (I never use it, only DolphinHD) and stock weather? I know stock weather shows up on the clock so I don't want to like screw it up..
uoY_redruM said:
Yeah, I found it. Thanks dude.
My question is, how safe is it to remove **** like stock browser (I never use it, only DolphinHD) and stock weather? I know stock weather shows up on the clock so I don't want to like screw it up..
Click to expand...
Click to collapse
I honestly have no idea...Do a nandroid backup and try it. I don't think it should be a problem, but I've never tried
I use gscript app and I have a script that cleans-up all the apps in one click. Since I flash each and every nightly, it would be a pain in the arse to remove the apps one-by-one every day (sometimes several times a day).
You can also use Titanium Backup. Even the free version allows you to uninstall any app including system ones. A more friendly approach would be to use LauncherPro and just hide the apps you don't like
Karolis said:
I use gscript app and I have a script that cleans-up all the apps in one click. Since I flash each and every nightly, it would be a pain in the arse to remove the apps one-by-one every day (sometimes several times a day).
Click to expand...
Click to collapse
What exactly is gscript?
melwan said:
You can also use Titanium Backup. Even the free version allows you to uninstall any app including system ones. A more friendly approach would be to use LauncherPro and just hide the apps you don't like
Click to expand...
Click to collapse
Yeah, I'd rather just dump them completely! lol
what you can do is do 2 things, 1 is do adb pull and pull the app you want to remove then do adb shell then do rm /system/app/<your app want to remove>
if it fails you can push it back in and everything be good
or you can do adb shell
and cp -r /system/app /sdcard*
this should copy the whole app directory and its app in there and then do the
rm command if get FC or any issue jus do
adb push again, or do cp /sdcard/app/nameofapp /system/app
and it puts it back in and things should be good good luck
Titanium will remove the app package for you...very easy & clean.
uoY_redruM said:
What exactly is gscript?
Click to expand...
Click to collapse
GScript is an app that allows you to execute saved shellscripts.
Here's the script that I use for clean-up:
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
rm /system/app/Development.apk
rm /system/app/Email.apk
rm /system/app/RomManager.apk
rm /system/app/SpareParts.apk
rm /system/app/SpeechRecorder.apk
rm /system/app/Stk.apk
rm /system/app/Term.apk
Of course you can add or remove any apps you want from the list. Also, if you try it, don't forget to check the box saying that SU is required.
I guess I should add the code to remount the system back to read-only after the execution, but I'm a bit lazy
galaxys said:
Titanium will remove the app package for you...very easy & clean.
Click to expand...
Click to collapse
Hi!
I have the latest CM6 nightly in my N1, and I don't like some apps included like ROM Manager, Torch, Google Voice (I'm outside of USA), Amazon, etc.
It's safe to use Titanium Backup to delete those apps?
Thanks!
Yes it is.
This is so annoying,
I have tried everything I could find online,
I removed the SD card to eliminate that as an option related to a corrupt image/ card.
I cleared Gallery the data under manage applications.
With ES file explorer
I deleted the com.cooliris.media folder multiple times
I renamed all dirs to hide them from the Gallery indexing.
Example renamed “DCIM” to ”.DCIM”
I opened and examined the file chunk_0 in
/com.cooliris.media/cache/local-album-cache
I was hoping i could see how far or were it crashed by the last dir it indexed.
After hiding all the dirs. I got it to this.
Data in “chunk_0(this file will grow as dirs are scanned and files are found)” opened in a hex editor.
..US..en............./...........4.......4...........b..intro..video/mp4.......................4.........O.{.....O.u...w..............:.............../
Not sure if this is a hit on what is crashing the gallery?
I'm guessing a factory reset didn't work either?
Have not done that, dont want to reconfigure the phone from scratch.
I always like to know the root of the real issue. seems kind of common.
I never use Gallery. Ever. So I wouldn't have an exact idea why it was going crazy.
Are you rooted and do you have Titanium Backup Free/Pro?
If so, back up the gallery app. Then delete it from the /system.
Restart your phone and restore the Gallery app and make it a system app again.
its rooted and i have Titanium Backup Pro.
i did not know you can delete the gallary.
I did download another gallery like app for now.
but i may give that a try.
Yeah. Wipe the data first then uninstall it.
i made the back up of the gallery, uninstalled it, when i try to recover/install it from the back up the phone stays in an install loop.
I have to reboot the phone.
now i deleted it how do i reinstall it?
I have gallery apk from the backup and the original is still under /system/app/com.cooliris.media.apk
when run the apk i get an error, application not installed.
I tried to use adb with no luck.
F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb instal
l gal.apk
993 KB/s (458660 bytes in 0.451s)
pkg: /data/local/tmp/gal.apk
Failure [INSTALL_FAILED_DEXOPT]
any pointers?
Follow the exact steps.
Open Titanium Backup
Wipe Gallery data (From Titanium Backup)
Uninstall Gallery (From Titanium Backup)
Restart phone
Restore App of Gallery (From Titanium Backup)
Restart phone
Try using gallery
I don’t think titanium is an option now.
as it never finishes installing. i let it go all night.
The Gallery has been deleted and i only have the option to restore. My only options are to restore App only or App+Data. both don’t finish.
so i have been reading you can force/push installs. i must be doing something wrong as it seems a restriction is preventing the other install methods,
at this point the only reason i care is i cant view images in 3d.
acem77 said:
I don’t think titanium is an option now.
as it never finishes installing. i let it go all night.
The Gallery has been deleted and i only have the option to restore. My only options are to restore App only or App+Data. both don’t finish.
so i have been reading you can force/push installs. i must be doing something wrong as it seems a restriction is preventing the other install methods,
at this point the only reason i care is i cant view images in 3d.
Click to expand...
Click to collapse
Using adb
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
exit
exit
adb push Gallery.apk /system/app
Reboot the phone.
Sent from my Samsung Galaxy S II
thanks but the phone does not seem to install it after the reboot.
F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb shell
$
$ su
su
# mount -o remount,rw /dev/block/stl9 /system
mount -o remount,rw /dev/block/stl9 /system
# exit
exit
$ exit
exit
F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb push g
al.apk /system/app
1321 KB/s (458660 bytes in 0.339s)
maybe it not 100% uninstalled? could have been an issue with how Titanium removed it.
if the os thinks its still there it wont install over it.
crap i created file called "\" now they systems treats it like a dir. i cant delete it
this is how i created it...fat fingered
F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb push c
om.cooliris.media.apk /system/app/\
ES file Explorer shows it as a 447.91kb file the same size as the com.cooliris.media.apk file...
if select delete in ES i starts to tally the root dir as if it will delete everything under "system"
I guess it can stay ....
I am still trying to get com.cooliris.media.apk to reinstall. will i see any installing action once i reboot the phone after pushing it?
I dont see any sign of it installing other than it appearing in the apps dir.
how does push really work should the Os install any apk in the app dir if missing?
No you won't. Do you have root explorer?
no,
does ES file Exploer work the same way?
I've never used it. Does ES File Explorer have root permissions?
this is just getting a annoying if the app is under /system/app
more or less thats it right? what would stop it from being seen by the phone...
been messing with the thing for hours.
then its crap i cant restore the gallery backup i made with out titanium get stuck...
The Dark Lestat said:
I've never used it. Does ES File Explorer have root permissions?
Click to expand...
Click to collapse
yes i can hit any dir like system, and it can change all attributes.
I have been using it now to move files from my pc over the wifi and network shares.
I can have app.apk on my pc see it on the network with ES, and copy it to /system/app
i put a another version of gallery from another phone i found online in /system/app
after a reboot it showed up. not sure it thats a real sign as i can manual run and install it if i wish.
also this does no good in the long run as you cant view photos in 3d, as they are displayed side by side in this version of gallery.
maybe i need a fresh copy if the lg thrill gallery?
ok i found a ver of gallery from a custom cooked rom posting.
it shows up now,
http://forum.xda-developers.com/showthread.php?t=1309114&highlight=gallery
but it still crashes like the original one did at the start of all this lol....
atleast i can view my pictures in 3d again.
i dont know what is causing the crash, but what causes it is at the end of scanning all the images. the more picutes i have the longer it takes to crash.
if i have zero images it crash instantly.
I guess my backup of the original gallery is corrupt?
That's what it seems. Do a titanium backup of all your used apps and reflash or factory reset?
Sent from my Samsung Galaxy S II
Hey guys really need your help I can't seems to install the some apps on 5.1.1 like dubai racing. I used titanium backup to back up it and after flashing another rom I cant install back the app. Any throughs?
reasonz20 said:
Hey guys really need your help I can't seems to install the some apps on 5.1.1 like dubai racing. I used titanium backup to back up it and after flashing another rom I cant install back the app. Any throughs?
Click to expand...
Click to collapse
Take the apk from your titanium backup, and move it manually to /data/app. Create the folder for the app, put the app in the folder, and make sure the folder and app permissions are set correctly. Look at the permissions for the other folders and apps that are already in /data/app to know what the permissions need to be. Once you've done that, then reboot, and check to see if the app is in your app drawer.
bouchigo said:
Take the apk from your titanium backup, and move it manually to /data/app. Create the folder for the app, put the app in the folder, and make sure the folder and app permissions are set correctly. Look at the permissions for the other folders and apps that are already in /data/app to know what the permissions need to be. Once you've done that, then reboot, and check to see if the app is in your app drawer.
Click to expand...
Click to collapse
What you mean when you say create the fold for the app? could you give an with app please and thanks in advance
reasonz20 said:
What you mean when you say create the fold for the app? could you give an with app please and thanks in advance
Click to expand...
Click to collapse
Go into /data/app using root explorer or something similar, and you will see what I mean. The file structure for LP is different than KK.
Example (uk.co.nickfines.RealCalc-1 app):
bouchigo said:
Go into /data/app using root explorer or something similar, and you will see what I mean. The file structure for LP is different than KK.
Example (uk.co.nickfines.RealCalc-1 app):
Click to expand...
Click to collapse
I know this is asking a lot but could you do a video on ow to do it because am not getting it?
reasonz20 said:
I know this is asking a lot but could you do a video on ow to do it because am not getting it?
Click to expand...
Click to collapse
It doesn't work anyway (Dubai Racing). I tried it, and it won't even show up in the app drawer unless it's installed to /system/app. Even then, the app opens and begins to load, and then it just stays stuck at a blank screen and never loads.
Re-reading your initial post, does titanium backup not see your backup of Dubai Racing only, or it cannot you not see any of your backups?
If that is the case, make sure you don't have a lot of /0 folders in /data/media. There should only be one /data/media/0 folder If there is more than one you have to fix that. Make sure titanium backup is pointing to the correct backup location in settings too.
Also try this in terminal emulator: restorecon -FR /data/media/0
bouchigo said:
It doesn't work anyway (Dubai Racing). I tried it, and it won't even show up in the app drawer unless it's installed to /system/app. Even then, the app opens and begins to load, and then it just stays stuck at a blank screen and never loads.
Re-reading your initial post, does titanium backup not see your backup of Dubai Racing only, or it cannot you not see any of your backups?
If that is the case, make sure you don't have a lot of /0 folders in /data/media. There should only be one /data/media/0 folder If there is more than one you have to fix that. Make sure titanium backup is pointing to the correct backup location in settings too.
Also try this in terminal emulator: restorecon -FR /data/media/0
Click to expand...
Click to collapse
Thanks a lot for the help it worked!