[Q] XT720: App2SD gets destroyed after Factory Reset? - Milestone XT720 General

Hey guys,
Can some one confirm this for me?
So i installed App2SD (as App2Card is a little panicky at times, it works when it feels like, and not when it doesn't like it), it works great until the point you decides to do a Factory Reset (because AOS will not allow you to delete the 1st account you used to sign up to the phone), and then if you try to reinstall the hundreds of apps that fit in properly before, now they don't go to the SD but instead they remains in the internal memory storage space.
That's understandable in a way, but the annoying thing is, if you try to install.sh again to re-apply App2SD then it complains that the ext2.ko file is already there and wont do anything.
the only way i've found to get around that is to reFlash the ROM, which is a major pain in the back. as you will need to reRoot, reOptimize, reEverything again...
Is there any easier way to reEnable App2SD after a Factory Reset?

Have anyone tried this?
Settings > Privacy > Factory Data Reset
after that, if you install apps from Market they will not get installed to SD, it'll just stay in the phone internal memory.
if you run the install.sh again from the App2SD script, it complains that the ext2.ko is already there and it wont do anything.

I'm very new to to this but my guess is that the files are still on the SD. I would try backing up anything you want to keep from the sd card & then reset up the SD card from scratch again before trying to run the script.
HTH

Flash your phone with RSDLite and then use the script. To answer your question, yes, factory reset does screw with APP2SD.

AG,
Have you tried sh install.sh -f
last time, it works for me. if it's not working for you, just open the install.sh file with a text editor and comment out the line that install the ext2.ko file. then, run the script again.

spiderx_mm said:
AG,
Have you tried sh install.sh -f
last time, it works for me. if it's not working for you, just open the install.sh file with a text editor and comment out the line that install the ext2.ko file. then, run the script again.
Click to expand...
Click to collapse
ohhh.. yeah -force, i'll try that again and see how it goes.
that is way better than having to Reflash the ROM every time, just to be able to do the App2SD
the XT720 is an awesome phone, the only flaw i can see in the phone is the boot up time is horribly looooong, it takes forever to boot up, everything else is perfect.
Update:
it did not work same error
Code:
Installing APPS2SD, please wait...
insmod: init_module '/system/lib/modules/ext2.ko' failed (File exists)
Error loading ext2.ko, exiting script ...
seems like the only way is to keep flashing the ROM then do everything from scratch

So just reflash then?

Related

SDcard for apps not possible

From what I can tell anyway. I was working on this, and I had it working up until installing a new app from the Market. Here's the tutorial I wrote:
Code:
Note1: This process can brick your phone, and it can crash the Android OS. Please use with caution, and know that you are responsible for your own actions, not me, nor anyone else.
Note2: If the Android OS does crash (signified by the Android loading screen, with the flashing Android logo) a factory reset is your best option. It saved me a few times when working on this process.
Note3: Note that a fresh start (factory reset phone) is best for this process, as it changes where all apps are going to be stored and used from.
Note4: Your SDcard cannot be accessed when the USB cable is plugged into your computer, so note the apps will not work/will not work well if you are connected to a PC.
Get root
In terminal:
1. su
2. cd data
3. mkdir /sdcard/data/app
4. mkdir /sdcard/data/app-private
5. mv app app2 (don't want to delete the directory terminal is running from, also kept for backup)
6. mv app-private app-private2
7. ln -s /sdcard/data/app app
8. ln -s /sdcard/data/app-private app-private
And bam! Done.
I then used adb push/pull to backup the app and app-private directories to the SDcard. (just in case, for the terminal app. And I tried this process with and without this step, so I know it isn't this messing it up)
Now Terminal Emulator runs, as well as everything else, but when I download/install a new app, my phone freezes as it goes to install it, and then crashed and goes to the Android OS loading screen forever.
I also worked on this and ran into the same problems you have...I know that there are some other folders that deal with the apps we download from android market.. One of the problems you may be having is that when installing there is an intitial setting up communication that is trying to occur between the downloaded apps, /sdcard/app, and other folders on the phone. When the sdcard/app trys to communicate back with the other party, your errors occur and you crash....I would suggest doing this again, hooking your phone up to DDMS and reproducing the crash again so that you can see what is throwing the errors...that may give you a better idea of what else needs to be done....
I would love to help in any way possible as I was working on this as well, btw, when you get stuck at the flashing android, there is no need to do a reboot, you can plug your phone into your computer and run the adb shell even though it isn't booting up. Since you can run the adb shell, you can fix the problem. Also, you could run DDMS to see what is keeping it from booting as well.
Me too!
I'm working on this as well, I will relay any progress I make, hope you will do the same.
Thanks!
Phromik said:
Now Terminal Emulator runs, as well as everything else, but when I download/install a new app, my phone freezes as it goes to install it, and then crashed and goes to the Android OS loading screen forever.
Click to expand...
Click to collapse
one question .. why are you trying to install apps to /sdcard??
This is an old thread that got bumped. This is not the way to go about getting apps to install to the sd-card.

Android Browser build that AutoRotates

Here's a recompiled version of the Browser that supports auto rotate.
Here's the download location for the Browser.apk:
http://www.koushikdutta.com/2008/12/auto-rotate-for-android-browser.html
Run the following from the command prompt to install the new Browser:
Installation Instructions:
adb remount
adb shell rm /system/app/Browser.odex
adb push Browser.apk /system/app/Browser.apk
Now start up the Browser.
You may not have a Browser.odex depending on your phone model.
The change, as I mentioned before, is really trivial. In the BrowserActivity.onCreate, I did the following:
// the next line is the original code
// setRequestedOrientation(mSettings.getOrientation());
// make it use the sensor for orientation instead.
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
To restore the original Browser, flash RC30 again.
Koush, thanks so much! I have been waiting for this!
i can't get it to install and now the browser don't work and i can't install the back up
I'm getting no space available when pushing the browser.apk
JF rc30 v1.2
kron2 said:
i can't get it to install and now the browser don't work and i can't install the back up
Click to expand...
Click to collapse
You can't get it to install? Could you be more specific?
saul972 said:
I'm getting no space available when pushing the browser.apk
JF rc30 v1.2
Click to expand...
Click to collapse
Your /system partition ran out of room. Is there something you can delete from there? I've seen this before as well on some of my company's phones; I usually end up deleting some ringtones or other junk files.
took a couple of tries but installed now...thanks!
fyi i rebooted phone to initially install the new Browser. I first got errors w/o rebooting so that may fix the problem
I had the same problems with the new browser crashing and then being told that the file couldnt be copied due to lack of space,
Easiest fix is to just reinstall rc30 or rc8 and install the patched browser again.
Worked fine after that
Koush said:
Your /system partition ran out of room. Is there something you can delete from there? I've seen this before as well on some of my company's phones; I usually end up deleting some ringtones or other junk files.
Click to expand...
Click to collapse
Not sure.
Here's the message
failed to copy 'Browser.apk' to 'system/app/Browser.apk' : no space left on device
SGTDavePwnage said:
I had the same problems with the new browser crashing and then being told that the file couldnt be copied due to lack of space,
Easiest fix is to just reinstall rc30 or rc8 and install the patched browser again.
Worked fine after that
Click to expand...
Click to collapse
Will I need to start the process again?
saul972 said:
Will I need to start the process again?
Click to expand...
Click to collapse
Its basically telling you that it cant copy the file because of lack of space withing the system partition.
As koush advises, if you know how to clear space that will fix the problem.
If you dont know how to remove things and are a bit unsure of what to do, reinstalling the modified rc30 / rc8 will reset the system partition back to its defaults.
Once your back and set to default you can try to install again if you want
I'm assuming this is for those who have root access only?
If so, it would be nice to state that when posting these mods.
Henchman said:
I'm assuming this is for those who have root access only?
If so, it would be nice to state that when posting these mods.
Click to expand...
Click to collapse
Yes this requires root access,
I can see what you are saying about perhaps specifying in the post when something requires root access, but when you look at the instructions in this case its quite obvious that this one does require root.
PS.... Cheers for the upload Koush
SGTDavePwnage said:
Yes this requires root access,
I can see what you are saying about perhaps specifying in the post when something requires root access, but when you look at the instructions in this case its quite obvious that this one does require root.
PS.... Cheers for the upload Koush
Click to expand...
Click to collapse
Obviouse to em...
But probably not to everyone.
And you know the old saying. When you Assume...
where do i put Browser.apk to install it on the sd card and if so how do i use adb to see it or do i push it from like c:\browser.apk \system\app\browser.apk
SGTDavePwnage said:
Its basically telling you that it cant copy the file because of lack of space withing the system partition.
As koush advises, if you know how to clear space that will fix the problem.
If you dont know how to remove things and are a bit unsure of what to do, reinstalling the modified rc30 / rc8 will reset the system partition back to its defaults.
Once your back and set to default you can try to install again if you want
Click to expand...
Click to collapse
Finally got it!!! Thanks for your help
kron2 said:
where do i put Browser.apk to install it on the sd card and if so how do i use adb to see it or do i push it from like c:\browser.apk \system\app\browser.apk
Click to expand...
Click to collapse
Place it in the tools folder of the SDK folder on your PC
thx joshoowa i installed it finally i did have it in the tool folder but would not install but after several tries it did i was starting to think i was installing it wrong
I've deleted most of my .ogg audio related tones in the /media/audio folder but i still get no space left. what else can i delete?
btw i'm using adb shell rm /xxx/xxx/xxx/xx.ogg to delete. is that right?
Hey Hey!!!...
Had to free up some room, but it works great..
Thanks..

Apps to SD Problem on Haykuro H Build

I've been using Haykuro's G build because H has never worked for me. But now with the market problem I'm needing to switch to H because there are a lot of apps I want to download.
When I flash over to the H build and try to setup apps to sd, I always get stuck in a boot loop and I can't seem to figure out why that is. I thought maybe it was an app I had on my sdcard so I formatted both partitions and it still doesn't work.
If anyone can help it'd be greatly appreciated. =)
1st: you are trying the apps to sd H build right(not just the normal H version)?
2nd: what steps are you doing to try apps to sd and are any reporting errors?
3rd: are you trying to move the app cache also(/data/data)? If so that might be your problem.
It's the apps to sd version and I was just following the steps on the wiki pg.
http://android-dls.com/wiki/index.php?title=Haykuro_Apps_to_SD
And no I wasn't trying to move cache.
Hmm try going into the recovery terminal and do the following:
Code:
mount data
cd data
ls -l
look for the app directory listing and tell me what it says on that line(it'll probably carry over to the next line as well)
If the app directory doesn't exist well... then there's your problem.
app -> /system/sd/app
is that what you needed?
xocassidychick15ox said:
app -> /system/sd/app
is that what you needed?
Click to expand...
Click to collapse
Hmm ya, that looks correct. Was there anything else with that "->" next to it? If not, something is wrong with the sd card setup. Either /system/sd/app doesn't exist or the partitions aren't set up correctly. As a temporary fix(if there's nothing else with a '->') you can do this:
Code:
rm /data/app
mkdir/data/app
The only thing else that has '->' is:
app-private-> /system/sd/app-private
Hmm not looking good... try the code segment I put before, it should at least let you get into your phone. From there you can look into the /system/sd directory and make sure everything is correct.
EDIT: by not looking good I meant all that is correct which means it's something that'll be harder to fix.
When I try to enter the code it says:
rm /data/app
rm: cannot remove '/data/app' : No such file or directory
mkdir/data/app
sh: mkdir/data/app: not found
And when I look in /system/sd all it shows is lost+found
When I tried the code in ADB the first part went through but it still said
mkdir/data/app: not found
wfirst: there's a space between mkdir and /data/app.
also: you didn't restart the phone or anything since typing in the "mount data" bit have you? If so you need to type that again before doing that code segment.
EDIT: PM me your answers, I'll try to solve this through pm.
This has been solved. Reflashing the ROM fixed it.
The same thing happened to me. Went from 5.01G apps to SD, to 5.01Hr3 apps to SD. After setting up and changing the references to have apps point to the SD card (note that I already had apps on the SD card), all my apps appeared after rebooting. When I tried to reboot again, that's when I saw the endless HTC logo loop.
I reflashed the phone and it seemed to fix it. However, the phone later locked on me and I had to reboot by removing the battery. When the phone started again, I got the HTC logo loop.
I ended up going to Dude's G release instead. Hope someone figures this out.

Missing apps after HERO upgrade

I was wondering if anyone else was running into the problem I'm having, and if it has been covered before and I missed it in the search box earlier I apologize. I just recently tried to upgrade to JACHero2.6 and my market app (most important) along with several others are missing. The apps are automatically installed on all my other roms, it is only with hero that I end up missing alot of apps. I have a correctly formatted SD card and I did a wipe before I installed this and tried the whole process twice. If I am forgetting to do something special prior to installation or afterwards please let me know!!
darkphoenix2012 said:
I was wondering if anyone else was running into the problem I'm having, and if it has been covered before and I missed it in the search box earlier I apologize. I just recently tried to upgrade to JACHero2.6 and my market app (most important) along with several others are missing. The apps are automatically installed on all my other roms, it is only with hero that I end up missing alot of apps. I have a correctly formatted SD card and I did a wipe before I installed this and tried the whole process twice. If I am forgetting to do something special prior to installation or afterwards please let me know!!
Click to expand...
Click to collapse
you may have gotten a bad download. try redownloading it again. do you have 3 partition (fat32 ext2/3 linux-swap) if not i suggest that for jac's 2.63 also make sure you check file extensions in recovery screen. hopefully this helps
Yes I have my card that exact format and I tried using the filesystem checker in the recovery screen it said filesystem check was complete!! I'll try doing the whole process over again but I'm not sure how that would help, and it is sad too this is the best damn hero rom i've tested to date, its fast as hell!! If it weren't for my apps not being here i wouldn't be planning on a future rom update in the near future or until some big release happens.
make sure you always check md5 sum of all your hero build download
you could of had a damaged downloaded rom and this could affect your rom.
Just tried to download a fresh copy of the rom, checked to make sure my sd card was working properly, wiped and re-flashed yet my market app and the same apps I was missing before is still missing. It should be included that apps on my ext2 were coming back like they should be just not all of them, and not a few apps that I thought should be included with the rom. Is there anything I should check that I may not have yet?
I would use Root Explorer to check if the apk files are still under system/sd/app if they aren't... well, there's no way you're going to see them again unless you re-install them. You can also look under system/sd/app_s if that's there. Other than that, if you can't find it, it's not there. (If you know the exact name of the file or at least part of the apk file name, under terminal type: find "file name" (w/o quotes ofc)
You can add wildcards (*) if you don't know the exact name of the file. If the apk file is still there... well... let's just see if its there first.
I checked using terminal, I typed "vending.apk" and tried to check the dir's you specified for the apks. If they are there I can't find them, although I am a bit limited as terminal is the only app that came loaded with which to check for files. If the apk files are indeed not there then why would the apps install on their own without a problem on any other build but hero??? I must be doing something wrong right? I am open to any suggestions at this point, even using a different rom to check for something, my goal is to have this rom flashed with my apps working soon!
heres the vending.apk from jachero 2.63 you can try and adb push it to /system/sd/app_s and see if it works.
Thanks, I'll try pushing that over but I'm still worried about the rest of the apps I'm missing. Would there be anything else I could try to make it possibly fix all the missing apps? What could be causing this problem in the first place? I did notice that my sd card has an ext2 rather than ext3 part, will that cause all of this to happen? I'm still pretty lost on this. I tried going back to another rom just to make sure my apps would still all pull up correctly, and they did so it has to be something related to this most recent build of jachero, or something
welcome to the club my friend (-;
i have the exact same problem and noone was able to help me yet.
It must have something to do with Jacs apps2sd method. i read some tweets between him and cyanogen that it might be a little 'rough'.
however - it's always the same apps that are missing, in my case it's (badly enough) launcher.apk AND rosie.apk which pretty much means that i can't solve it.
i also tried everything i could with ADB - without luck. I somehow have the feeling that theres something staying on the phone even when wiping and formatting.... I'll check this through ADB this evening.
look @ my recent posts:
http://forum.xda-developers.com/search_rop.php?searchid=25731882
for previous moaning from myself ( (-; ) and discussion with others in the JACthread. Basically the last 15 - 20 posts are about nothing else (-;
I will also do some logcating today - i've already seen the errors through install (rosie.apk couldn't be parsed etc) but i forgot to save it (and the command promt only saves 100 lines or something)
h.nocturna said:
I would use Root Explorer to check if the apk files are still under system/sd/app if they aren't... well, there's no way you're going to see them again unless you re-install them. You can also look under system/sd/app_s if that's there. Other than that, if you can't find it, it's not there. (If you know the exact name of the file or at least part of the apk file name, under terminal type: find "file name" (w/o quotes ofc)
You can add wildcards (*) if you don't know the exact name of the file. If the apk file is still there... well... let's just see if its there first.
Click to expand...
Click to collapse
I have used AndExplorer and put the APK's in the sys/sd/apps and it all worked fine. Very easy to do if you don't know how to push, just reboot after.
Can someone please tell me how i can get myfaves app on any mod im burning up my minutes thanks.
jivany said:
Can someone please tell me how i can get myfaves app on any mod im burning up my minutes thanks.
Click to expand...
Click to collapse
You don't need to have the myfaves app for you myfave minutes to work. You are still calling them for free regardless if you have the icon or myfave compatible phone or whatever. If you want to manage the people just log on to mytmobile.com and make the changes there.
Hmmmmmmmm . I never realized thanks for pointing that out TurboTsi.
darkphoenix2012 said:
Thanks, I'll try pushing that over but I'm still worried about the rest of the apps I'm missing. Would there be anything else I could try to make it possibly fix all the missing apps? What could be causing this problem in the first place? I did notice that my sd card has an ext2 rather than ext3 part, will that cause all of this to happen? I'm still pretty lost on this. I tried going back to another rom just to make sure my apps would still all pull up correctly, and they did so it has to be something related to this most recent build of jachero, or something
Click to expand...
Click to collapse
open up your copy of the build and check in system/app_s to see if the .apks are even in the build. if pushing the vending.apk works i dont mind posting the other ones you are missing if you want to pm me or something
Just tried opening the update.zip file and verified that all the apks are there. Which makes me wonder what exactly is up. Im thinking it could be an apps2sd issue, like what was said above. I didnt have this problem with older hero roms that i can remember. TBH I could try pushing apps with adb but that wouldn't bring back my other 3rd party apps floating in ext2 limbo. So I'm out of ideas ;(
darkphoenix2012 said:
Just tried opening the update.zip file and verified that all the apks are there. Which makes me wonder what exactly is up. Im thinking it could be an apps2sd issue, like what was said above. I didnt have this problem with older hero roms that i can remember. TBH I could try pushing apps with adb but that wouldn't bring back my other 3rd party apps floating in ext2 limbo. So I'm out of ideas ;(
Click to expand...
Click to collapse
try going to the recovery console and entering upgrade_fs and that will change your ext2 to ext3 and see if wiping and flashing change anything. also if you have root explorer you can check your /system/sd folder to see if all of your third party apps are there
Just tried upgrade_fs and it gave me a "unable to allocate block" I noticed there is little if any room left on the ext2 partition. Would that cause all of this? If not would it be worth a shot to resize the partition and give it more space from my fat32 then try to upgrade wipe reload again?
If you're out of ideas, then I would attempt to resize first (but backup your fat32 first) and then see if that solves it, if not, then I would format, wipe, and update...
but are you sure those 3rd party apps are not there? Try using Root Explorer to determine if the 3rd Party Apps are there, if they are, just pull them to your sdcard and try installing them again with ASTRO or something like that.

[Tool] SaveMyApp - Preinstall Your Apps

Tired of having to redownload and reinstall all of your apps when you reflash your phone? SaveMyApp can help.
This script will setup your phone so that after your flash to your favorite rom, all* of your apps will be install on the first boot. These apps will show up in the market too!
Also, the script will allow you to backup your /data/data folder to your sdcard and then restore it after your reflash. The /data/data is where Most of your user data is stored. This is not guaranteed to fully restore everything. This also does not backup your Google, Android, or Motorola settings; this is to improve compatibility with roms.
*The /preinstall folder is limited to 120MB, so if you have more then of apps this script will not fully work.
This should work with all phones, however it has only been tested on the Droid 2/X.
If you want to test this script on a different phone, let me know the /preinstall size and if it worked or not.
v0.1.4.2 - 11/17/2010
-Improved backup and restore of data
-Improved script usability
v0.1.4.1 - 11/17/2010
-Improve safety of removing /preinstall/app
v0.1.4 - 11/16/2010
-Added option to clear the /preinstall/app folder
-Added messages to support clear /preinstall/app
v0.1.3 - 11/12/2010
-Added backup of /data/data
-Added messages to support Data Backup
v0.1.2 - 11/11/2010
-Added Backup /data/app-private
-Show /data/app size, prompt user for continue
-Additional messages added to improve user experience
v0.1.1 - 11/10/2010
-First Release
-Backup and Restore /data/app
Installation:
WARNING: This steps must be completed as listed, failure to do so may result in unexpected errors which I am not responsible for.
1. Enable USB debugging and make sure Sdcard is mounted on phone
1. adb push apps.sh /data
2. adb shell
3. cd /data
4. chmod 775 apps.sh
5. ./apps.sh
a. Follow the onscreen directions
6. Reboot and proceed to wipe and reflash
7. On boot, wait between 5 and 10 minutes depending on how many apps you have before logging into your account. (30 apps takes about 4-5 minutes)
8. Login to your account
9. Droid 2/X Bootstrapper -> Bootstrap Recovery
10. Enable USB debugging and make sure Sdcard is mounted on phone
11. adb shell
12. tar -xzpf /sdcard/savemyapp/backup.tgz
FAQS:
Market isn't showing apps!
settings->applications->Manage Applications->All->Market->Force Stop, Clear data
Why is there a MACOSX file when I extract the archive?
Because I am lazy and I zipped it using Mac's built in archiver.
The script isn't working right away!
Redownload the newest script, just to make sure
Disclaimer:
You may repost this, but you must quote it as is.
I will only be responding to the threads I started on the Xda-Developers forums.
First!
I'm just holding a parking spot for this post!
What a great idea...thank you for developing this, im so tired of re downloading my apps back and setting everything up...done it about 10 times in the past month between sbfing and updating the fission rom several updates in a row so thank you...will most definitely be using this when I flash roms in the future. Thanks again
Sent from my DROID2 using XDA App
Excellent program! I'm having trouble getting it to work unfortunately. When apps.sh begins to copy files from /data/apps, I get errors saying "No space left on device" after every single file it tries to copy. This is of course not true since this D2 has over 6 gigs free on the system storage.
I am running this through the window's command prompt, but I don't see much in the code that won't run on windows aside from "du" which isn't even relevant unless my app + app-private folders combined size is over 120 MB (it's not).
I'm also running Epic 2.5 if that has anything to with this.
Any ideas? Am I just doing this terribly wrong?
Thanks!
tildaSparky said:
Excellent program! I'm having trouble getting it to work unfortunately. When apps.sh begins to copy files from /data/apps, I get an error saying "No space left on device." This is of course not true since this D2 has over 6 gigs free on the system storage.
I am running this through the window's command prompt, but I don't see much in the code aside from "du" which can't run with windows.
Any ideas? Am I just doing this terribly wrong?
Thanks!
Click to expand...
Click to collapse
If you read the first post it states the /preinstall folder can only hold only 120mb so it you have more than that to backup it won't fully work..I'm guessing that's were the apps are being saved...
Sent from my DROID2 using XDA App
turkeybuzzard said:
If you read the first post it states the /preinstall folder can only hold only 120mb so it you have more than that to backup it won't fully work..I'm guessing that's were the apps are being saved...
Sent from my DROID2 using XDA App
Click to expand...
Click to collapse
Apps are normally saved in /data/app this script copies those apks to /preinstall so that after a wipe they will automatically be installed on the first boot. Yes /preinstall is limited to about 120MB.
tildaSparky said:
Excellent program! I'm having trouble getting it to work unfortunately. When apps.sh begins to copy files from /data/apps, I get an error saying "No space left on device." This is of course not true since this D2 has over 6 gigs free on the system storage.
I am running this through the window's command prompt, but I don't see much in the code aside from "du" which can't run with windows.
Any ideas? Am I just doing this terribly wrong?
Thanks!
Click to expand...
Click to collapse
Do you get the "No space left on device" message instantly or after some apks were copied to the /preinstall folder?
Here's what I get
Working…
cp: /preinstall/app/com.google.android.apps.maps-1.apk: No space left on device
cp: /preinstall/app/com.google.android.apps.translate-2.apk: No space left on device
cp: /preinstall/app/com.google.android.gm-1.apk: No space left on device
cp: /preinstall/app/com.google.zxing.client.android-2.apk: No space left on device
etc.
=(
tildaSparky said:
Here's what I get
Working…
cp: /preinstall/app/com.google.android.apps.maps-1.apk: No space left on device
cp: /preinstall/app/com.google.android.apps.translate-2.apk: No space left on device
cp: /preinstall/app/com.google.android.gm-1.apk: No space left on device
cp: /preinstall/app/com.google.zxing.client.android-2.apk: No space left on device
etc.
=(
Click to expand...
Click to collapse
How big is your /data/app folder?
OK! I sort of have it fixed. In that I'm not getting my original error.
What I did (which in retrospect was not such a hot idea) was delete the /preinstall/ folder and then created a new one with the subfolders /app/ and /md5/. The logic behind was that I saw the script had nothing in it to clean out the original preinstall folder, and I noticed that it had silly things like NFS in it. As I said, in retrospect I should have just deleted specific items from the folder, but that's what I get for acting without thinking too much.
How bad do you think it is that I remade the preinstall folder from scratch?
Now my preinstall folder is properly populated (I think). But the data won't back up for some reason. I think it might have something to do with the if statements being broken. I'm gonna go ahead and modify your script to bypass the if/else statements and see what happens.
SaveMyApp v0.1.2
By csscmaster3
Your app folder takes up
du: not found
If your app folder is more then 114MB I don't recommend continuing
do you want you to continue? (y/n)y
y
[[: not found
Working…
ignore No such file or directory error if you get it
tee: not found
SaveMyApp has completed your apps
Do you want to backup your data? (y/n)y
y
[[: not found
SaveMyApp has completed.
As an aside my app folder is 28 MB and my app-private folder has only the apkinstaller.
tildaSparky said:
OK! I sort of have it fixed. In that I'm not getting my original error.
What I did (which in retrospect was not such a hot idea) was delete the /preinstall/ folder and then created a new one with the subfolders /app/ and /md5/. The logic behind was that I saw the script had nothing in it to clean out the original preinstall folder, and I noticed that it had silly things like NFS in it. As I said, in retrospect I should have just deleted specific items from the folder, but that's what I get for acting without thinking too much.
How bad do you think it is that I remade the preinstall folder from scratch?
Now my preinstall folder is properly populated (I think). But the data won't back up for some reason. I think it might have something to do with the if statements being broken. I'm gonna go ahead and modify your script to bypass the if/else statements and see what happens.
SaveMyApp v0.1.2
By csscmaster3
Your app folder takes up
du: not found
If your app folder is more then 114MB I don't recommend continuing
do you want you to continue? (y/n)y
y
[[: not found
Working…
ignore No such file or directory error if you get it
tee: not found
SaveMyApp has completed your apps
Do you want to backup your data? (y/n)y
y
[[: not found
SaveMyApp has completed.
As an aside my app folder is 28 MB and my app-private folder has only the apkinstaller.
Click to expand...
Click to collapse
The NFS removal is a good call, I will append the script to check the /preinstall folder and prompt to remove the files there
The reason you are having trouble with this script looks it be like because you are not running it on the phone itself...meaning to say you are not running it via a terminal emulator on the phone nor are you running it via adb shell. The backup uses tar, which isn't on windows by default.
Actually I'm running everything through the adb shell. It's puzzling to me too. My terminal emulator for some reason doesn't have root access. At this point I think I'm just going to SBF anyway.
At any rate, I just decided to pull /data/data/ from my phone onto my HD and I will replace it after I reflash and install my programs, but before I log into my google account. Do you see any reason for this not to work?
tildaSparky said:
Actually I'm running everything through the adb shell. It's puzzling to me too. My terminal emulator for some reason doesn't have root access. At this point I think I'm just going to SBF anyway.
At any rate, I just decided to pull /data/data/ from my phone onto my HD and I will replace it after I reflash and install my programs, but before I log into my google account. Do you see any reason for this not to work?
Click to expand...
Click to collapse
Hmmm, you might have to check your superuser app to see if you accidently are denying su access. In adb shell do you have a $ or a #?
Backing up the /data/data folder to your HD then restoring might not work because I am not sure if it will retain the owner, permissions, etc.
I had a # in my shell. There was something slightly wonky about my root I think. At any rate my backup method didn't work so well (as you predicted) - it caused timeriffic to force close when I tried to load in my old settings via /data/data/.
I will try using this again once I've got my shiny new Fission 2.1 set up as I want.
Thanks for your attentiveness!
I'm guessing this script should be run AFTER all of the applications have been installed. Is this correct?
wsfanatic said:
I'm guessing this script should be run AFTER all of the applications have been installed. Is this correct?
Click to expand...
Click to collapse
That is correct
Sent from my DROID2 using XDA App
Ooooo this is getting popularrrr
Is this D2 specific, or would it work on any phone?
theimpaler747 said:
Is this D2 specific, or would it work on any phone?
Click to expand...
Click to collapse
It works with the D2 and should work with the DX, anything else is use at your own risk, if it does work let me know though
csscmaster3 said:
It works with the D2 and should work with the DX, anything else is use at your own risk, if it does work let me know though
Click to expand...
Click to collapse
Might risk it and try it on my hero Regardless, nice work
theimpaler747 said:
Might risk it and try it on my hero Regardless, nice work
Click to expand...
Click to collapse
The only problem I could forsee would be the /preinstall folder being different or something, if you do end up trying the script could you let me know the size of the /preinstall folder?

Categories

Resources