[SOLVED]Problem with A2SD on JF 1.5 - G1 Q&A, Help & Troubleshooting

Hello,
I was having problems with force closing on my G1, so I was reading some threads in the forums and saw that some people fixed the problem by removing the dalvik-cache and having the Andorid framework recreate it. So I decided to give it a shot.
I did:
Code:
su
mount data
cd data
mv dalvik-cache dalvik-cache-backup
rm -rf dalvik-cache-backup
exit
The rebooted the phone. Now it says low app memory (49MB) and my apps aren't working because its no longer set up with Apps2SD (unionFS method).
I was going through this thread(http://forum.xda-developers.com/showthread.php?t=512743) and I was going to perform an update and see if that would work but it says it will delete all my apps first. Is there a way I can back them up or re-union them without deleting them?
I was thinking about going into /system/sd/ and doing a "mv" to rename the folders. Then update it. Then somehow move the apps back to the rightly named folder.
Any other ideas or steps I would take to do this the correct way?
Thanks for all your help.

Solved: I actually didn't mess up the phone... All I had to do was reboot twice.

Related

backup paid games/apps.

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.

[SOLVED] fix_permissions causing force closes

I had a few forcecloses every now and then on my install, so I ran the fix_permissions script in recovery
Now, nearly all the apps I have installed forceclose when I try to open them. I believe the script is not properly changing the permissions (or even messing them up)
This is the second time it happened (first time happened when I first used it on 3.6.8 [clean install after a wipe] and persisted through a wipe and reinstall since I have apps2sd)
Only reinstalling happens to fix the problem. Is there a solution to this? (because searching fix_permissions forceclose brings up lots of threads that say "if you have forcecloses, use the fix_permissions script" )
I don't want to reinstall all my 160 apps lol
I've attached a logcat of what happens when I open an app after running the script and the subsequent forceclose [there is a mention of permission denied]
If there is a thread or solution, please direct me to it and close this thread.
My up-to-date info is in my sig
check out this thread it has an improved fix_permissions script that hopefully can help you. if it doesn't just make a backup of your ext2/3/4 then reformat it. then put the backup back on it.
david1171 said:
check out this thread it has an improved fix_permissions script that hopefully can help you. if it doesn't just make a backup of your ext2/3/4 then reformat it. then put the backup back on it.
Click to expand...
Click to collapse
Yes I saw that. Tried it and it worked haha.
Backing up the ext3 didnt work, because when i restored, the permissions were still messed up.
(also forgot to mention in OP that i tried fixing the filesystem from cyan's 1.4 recovery for future reference)
Thanks a bunch!!!

Phantom Update Notification on Cyan Builds

I've been experiencing an unusual issue on all Cyan builds since the builds requiring the ADP1 image to be flashed prior to the Cyan image. I'll provide as much info as I can along with my own thoughts
Every morning I wake up to my Market notifications and the number of updates available is always one (1) more than the actual number of " new updates available" in the my downloads section e.g. even when there are no new updates in "My Downloads" I get a notification saying "1 new update available".
I found this on t-mobile help which highlights the same problem however iv not had any residual apps left after uninstalling like these people have.
After a full wipe and reflashing the ADP1 and Cyan image respectively, i have not installed anything from Market this is My Downloads list:
Google Maps (installed)
Google Search by Voice (Installed)
SuperUser whitelist [Blackginsoft] (Installed)
Terminal Emulator [HelloAndroid.com] (Installed)
Yet i still get a notification every night.
I think the issue may be one of the latter two on the list as I know in both cases they are not the same apps as Cyan has included in his build although they do have the same named APK's in /system/app
Cyans Terminal has been modded to look black and have additional features and the one on the Market is a rip from the AOSP tree by HelloAndroid.com.
Cyans SuperUser has been modded to be faster and easier to use and has a new icon of the Ninja, but the one on the Market is the old nasty version from JF old builds that have the blue # as its icon.
I know Cyans included Log Collector is out-dated and new version is available but i have removed this from the settings menu because I dont need it so it cant be causing the problem.
Has anyone else had this problem?
Does anyone know if its any of Cyan's included apps causing the problem?
do you have apps2sd? if so then do
Code:
su
rm -r /system/sd/dalvik-cache
reboot
See if that helps
Good luck
Ah of Course!
borodin1 said:
do you have apps2sd? if so then do
Code:
su
rm -r /system/sd/dalvik-cache
reboot
See if that helps
Good luck
Click to expand...
Click to collapse
I never thought about excess data being held in the cache.
Only question before I do so... will doing this wipe any settings?
Thanks
No. It will take a long time for that first reboot though so don't freak out.
And no guarantee that it will fix it neither but it never hurts to clean dalvik once in a while anyway. Let us know... we may have to try something else if this doesn't work.
Still No Luck
borodin1 said:
No. It will take a long time for that first reboot though so don't freak out.
And no guarantee that it will fix it neither but it never hurts to clean dalvik once in a while anyway. Let us know... we may have to try something else if this doesn't work.
Click to expand...
Click to collapse
I cleared the cache and rebooted. After reboot went into Market and then came out of it and almost immediately after the Market closing I recieved a notification of 1 new update. Checked My Downloads and everything is reporting Installed.
Whats next?
P.s. Thank you so much for your help.
Very lovely....
Well... just to rule this out
Code:
ls /system/sd/app
ls /system/sd/app-private
ls /data/app
ls /data/app-private
ls /system/app
See if there's anything that you might have install at some point but don't use anymore/uninstalled. Basically, anything out of the order.
Do a nand backup and rm any left-overs that may cause problems if you know what you're doing. Otherwise paste a log/screenshot of your findings and let someone else look thru it.
You could also clear data from Checkin Service, Download Manager, Market and Market Updater. Not sure if this would help though since you're coming from a clean install and wiped multiple times.
Try it out. Always back-up your work though.
Stupid Question
borodin1 said:
Very lovely....
Well... just to rule this out
Code:
ls /system/sd/app
ls /system/sd/app-private
ls /data/app
ls /data/app-private
ls /system/app
See if there's anything that you might have install at some point but don't use anymore/uninstalled. Basically, anything out of the order.
Do a nand backup and rm any left-overs that may cause problems if you know what you're doing. Otherwise paste a log/screenshot of your findings and let someone else look thru it.
You could also clear data from Checkin Service, Download Manager, Market and Market Updater. Not sure if this would help though since you're coming from a clean install and wiped multiple times.
Try it out. Always back-up your work though.
Click to expand...
Click to collapse
I was wondering if I ask a pretty stupid question that I've been wondering for some time that may help me understand the structure of how android stores its app data.
For example if I set up a program to do something and it remembers those settings, where does it store that data. Does it write it into the actual apk itself? Or does it store it in another directory somewhere?
If I knew this I could make sure I fully backup and remove every trace of Term.apk, VoiceSearch.apk, and Superuser.apk. I'll then wait for the Market to forget that I have downloaded these items previously (Data which i assume is briefly held on the Google cloud under my Google account) Once that is refreshed i'm going to push the 3 files back to /system/app. I'm certain its one of these apk's causing the problem and this is the only way i can think to make Google forget I have downloaded them previously.
So anyway back to the main question... If for instance Term.apk remembers my settings for background color and font size etc, where does it keep this data?
*Update*
I have backed up and removed the 3 apk's VoiceSearch.apk, Term.apk and Superuser.apk from system/app
Next I tried to remove all traces I could find of each:
Code:
adb remount
adb uninstall com.android.term
failure
adb uninstall com.google.android.voicesearch
failure
adb uninstall org.zenthought.su
failure
I don't know why the uninstallation failed. Is this because Package Manager cannot uninstall system apps?
As these failed I manually removed the data from /data/data/:
Code:
adb shell rm -r /data/data/com.android.term
adb shell rm -r /data/data/com.google.android.voicesearch
adb shell rm -r /data/data/org.zenthought.su
Now there is no trace of each app, however My Downloads in Market still says:
Google Search by voice (Installed)
Superuser Whitelist (Installed)
Terminal Emulator (Installed)
Have I missed something out? Or does Market take a while to update/refresh the My Downloads list?

Remove built-in apps from ROM

A lot of people suggest removing built-in apps by deleting apk files in /system/app in terminal (su) or using root explorer. However I wonder whether it is a clean uninstallation. I know apps create data and cache in /data/data, /data/dalvik-cache if no other locations. Simply deleting apk files does not remove the data and cache, and the entries in packages.xml. There will be error when running fix_permissions.
Can anyone suggest a proper command to fully uninstall built-in apps?
sagementor said:
A lot of people suggest removing built-in apps by deleting apk files in /system/app in terminal (su) or using root explorer. However I wonder whether it is a clean uninstallation. I know apps create data and cache in /data/data, /data/dalvik-cache if no other locations. Simply deleting apk files does not remove the data and cache, and the entries in packages.xml. There will be error when running fix_permissions.
Can anyone suggest a proper command to fully uninstall built-in apps?
Click to expand...
Click to collapse
I finally find the proper way to uninstall the system apps.
Step #1 - Find the package names of the apps (e.g. IM.apk=com.android.im)
In console, type
su
pm list packages -f
Step #2 - Delete the apk files from /system/app
In console, type
su
mount -o remount,rw /system
rm /system/app/IM.apk
Step #3 - Uninstall the package
In console, type
su
pm uninstall com.android.im
mount -o remount,rw /system
mount -o rw,remount /system
Those 2 ways are found in numerous places
around the internet. Each one of those
does NOT accomplish anything in terminal.
I kept receiving a usage message explaining the syntax....
After searching, trying, searching, trying...
I just decided to try this, and it worked...
mount -o,remount rw /system
Just thought I would share.
I'm running Dwang's latest, if that matters to anyone.
This works great. You don't have start fresh-n-clean with your device by reinstallaing original rom, just get rid of the stuff you don't want that your service provider wants you to want.
EDIT

The application Gallery (process com.cooliris.media) has stopped unexpectedly

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

Categories

Resources