yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] MarcusMaximus04@gmail.com:
No worries, I didn't think you were complaining, I just didn't see the connection with my app. Thanks for explaining that. There definitely are pitfalls and this might not work for everyone. I tried to make it so it won't let you continue if at least the setup isn't correct but things like having already moved parts of /data/data over to the sd card I just can't solve in a reasonable way(yes, I could check every single file and make sure it isn't a symlink but that just sounds too complicated and there's near infinite potential problems like this and I just can't solve them all.)

Even if the setup is perfect it's possible parts of this won't work. As an example I recently reinstalled Haykuro's 1.0.1G apps to sd ROM and now it crashes and has a boot loop whenever I try to move /data/data, even when I do it manually. I've double and triple checked everything and it looks like everything is set up right but just won't work. *shrug* sometimes android just doesn't like you and won't let you do things like this.
[G1 Android Development] mustang_3kgt:
It seems like I was able to move my apps to sd card using this app but then if I try to go into market to "my downloads" I get an error message. I get " A server error has occurred. Retry, or cancel and return to the previous screen. Do any of you have an idea of what could be happening?? I would greatly appreciate your help. Thanks
[G1 Android Development] evnldr:
Sd card is 2.2GB fat 32 and 700+ ext2 using the Haykuro 5.0.1H Installed it OK.... Went to open it and it " the ap ap to sd (process com.appstosd) stopped unexpectedly. please try again :confused:
[G1 Android Development] Androidandy:
Edit I now understand where my problem lay. I thought I had installed Lucidrems modified rom, but hadnt!

Edit 2 I now have installed Lucidrems Rom, ,checked my partitions were correct with Busybox- they are. I ran your application, moved apps to sd- my applications went from my pull down menu. Upon rebooting, it is stuck at the flashing Android screen. I have tried the script in recovery mode, but it doesnt work!. This application was downloaded from the market place,supposedly the working version. I need some guidance to get this working, or ill just wipe the ****ing thing!

Well after using Paragon Partition Manager 10, I can create the ext2 partition- I think! but your application crashes at the first hurdle(forces closes when I try to run the application)

Ive tried various ways of creating the Fat32/ext2 partitions, both primary, one logical, with drive letter for fat 32, also without. I have tried reducing the ext2 to below 1gb, but none of these methods seem to work with your application.

Firstly is there a way of checking that my card is formatted correctly, by doing a secondary check?

Im running Jf1.43 RC9 uk.

Andy
[G1 Android Development] speoples20:
Worked great the first time. When I moved the dalvik-cache it took a little while but eventually went.
[G1 Android Development] MarcusMaximus04@gmail.com:
Is this the apps to sd version of 5.0.1H? For every ROM Haykuro makes, he makes one that has apps to sd and one that doesn't. Make sure you got the one that does. My app just force closes if there's no /system/sd and the only way you won't have that is if either the partitions are wrong or if you don't have an apps to sd ROM. If I'm wrong someone please correct me(LucidREM, I'm looking at you ;))
[G1 Android Development] Androidandy:
Wiped phone, flashed Lucidrem rom, used Lucidrems method, worked fine.

Restored all apps with backup pro, then deleted Appstosd :D
[G1 Android Development] MarcusMaximus04@gmail.com:
*sigh* im thinking I should remove the option to move cache. This seems to rarely work and I have no clue why.

Alright, I ran adb logcat while the phone was in a bootloop after moving the cache. It gets a bunch of Stale NFS handles for everything and it looks like it might be a problem with the uid on the sd card. I can't really be sure what's causing it but I saw that error among the multi-hundred line output and it looks suspicious.
[G1 Android Development] ArmandHammer:
So you think it can be fixed?

Does this move the browser cache over to sd?
[G1 Android Development] MarcusMaximus04@gmail.com:
No, it's not looking like it can be fixed. It works for some people but seems to be completely random and doesn't work for most. I might try to make it move individual caches over to the sd card but in the mean time I'm taking the option out.

EDIT: new version is up. Option to move data is removed and if the setup is incorrect it will give an error and not let you do anything but quit rather than force closing.
[G1 Android Development] gimiento:
thanks and need help

Hi. First off, just wanted to deliver a big thanks to everybody at XDA. I love my G1 but was getting tired of waiting around for significant updates and key features so I finally decided to root a few weeks ago, and after spending much time and energy on the forum figuring it out, I actually did it (not my second nature by any means) and it works great. Fun stuff! I followed LucidREM's text and it worked perfectly. So thanks.

Now that I'm rooted I'm trying to take advantage of it. So, AppstoSD. I'm running JF 1.42 RC33, my 8gb (class 6) SD is partitioned, 7 gb Fat32, 800mb ext2. I did it using a puppylinux live cd. Anyhow, I chipped in my buck, got AppstoSD and no go. So I guess this means I don't have busybox? I run the little check for that and it seems (though not sure) that indeed I do not. Is busybox something incorporated into JF 1.42? Or do I need to manually install it?

And I have one other issue I'll just throw out there. When I unmount my G1 from my laptop (mac osx) it also unmounts the sd from my phone. I have to reboot to get it to show back up. Any thoughts on that?

Thanks. Looking forward to getting my apps moved over.

EDIT: just ran new version of AppstoSD, says either incorret ROM installed, or card incorrectly partitioned. also should mention both paritions were formatted as Primary.
[G1 Android Development] MarcusMaximus04@gmail.com:
No, the app will go ahead and try if you don't have busybox installed, it just won't do anything(should probably make it give an error about that too.. lol) The error you're getting is likely cause you're trying to use the basic JF1.42 rather than LucidREM's modified version, which allows apps-to-sd. The post about it is stickied on this forum.
[G1 Android Development] gimiento:
ahhh

Wow, thanks for the quick quick reply. Okay, that's an easy answer, I'll get on it, didn't notice the part about needing a different ROM. Very much appreciate it.
[G1 Android Development] gimiento:
Done

But how can I check to see if it worked or not? After clicking to move apps to sdcard, it went very very quickly (blink of an eye) and then things went a little haywire (missing apps, loss of icons). I rebooted and all is fine, but just want to make apps are on SD card.

And if I run it again choosing not to "copy apps" will that delete apps from phone memory, freeing up that space?

thx.
[G1 Android Development] MarcusMaximus04@gmail.com:
Hey I can pretty much guarantee it worked if that happened. That said, I guess you can check by doing this in terminal emulator:

su

cd /data/app

pwd

if it says /system/sd/app then it got moved to the sd card.

and no, that won't free up any space. Turning that off is just for people who already have apps on their sdcard but updated to a new ROM. It sets up apps to sd but doesn't copy over the apps on the phone. That way they just keep their apps from before rather than starting over.
[G1 Android Development] gimiento:
Thanks

its moved, appreciate the help.

now to figure out how to clear memory on phone. :)
[G1 Android Development] ronny1014:
help im stuck

im acually stuck every time i try this when i reboot it loops at the android screen i dont know what to do i dont know if its relivant but i moved my market and browser cache th my sd card
[G1 Android Development] MarcusMaximus04@gmail.com:
Ya, moving the caches isn't very stable. It sounds like your apps got moved also though so you could always do a wipe, dl my app and uncheck the copy existing apps checkbox and press move apps to sd. That should get you back up and running with all your old apps in tact.
[G1 Android Development] wdicc:
So I must use an app-to-sd rom ? Can I use 5.0.2Hr3-signed.zip and mv app to sdcard ?
[G1 Android Development] ArmandHammer:
I have a couple ?'s

1)After the first time I move the apps to sd using the app I restart the phone right?

2)Does this make all the apps after you do it the first time move to the sd? And if so do I have to restart after doing this?

3)or do I have to use the app everytime I download apps?

Thanks for the info in advance.
[G1 Android Development] ArmandHammer:
Everytime I post from my G1 it says I have to wait 30 seconds. Then I post it and I end up posting it twice any ideas?
[G1 Android Development] MarcusMaximus04@gmail.com:
1: yes

2: yes, and if you mean after downloading each app then no

3: no, using it once makes all future apps be on the sd card already.
[G1 Android Development] MarcusMaximus04@gmail.com:
1: yes

2: As long as its the apps to sd version of 5.0.3Hr3. He has links to the apps to sd version on his googlecode page.
[G1 Android Development] ArmandHammer:
Thanks marcus for the answer. This is a grea app.

One last ?, what about paid apps and copyright apps? Do those just go on the phones memory?

Also what about when I flash to a new build? Do the apps instantly go on my phone or do I have to do the app again?

Thanks for all the info(sorry for all the ?'s)
[G1 Android Development] MarcusMaximus04@gmail.com:
Paid apps should go through but I haven't tested it(I haven't had any1 complain about them not going through either).

When you flash a new build I think you'll have to use the app again. Not sure really but if your apps don't show up just run my app again and don't check the checkbox this time. The checkbox is just for the very fiirst time you use my app.
[G1 Android Development] asdfgag:
Hy, and sorry for my english .. !!

Ive installed appstosd! After a view klicks (cant say witch) my phone restarts automaticly and doesnt restart again! It hangs in a bootloop.

Ive installed a JF (firmware??) and RC9!

Can anyone help me?

Ive already typed in the console

mount data

ln -s /system/sd/app /data/app

but it says "file exists" ... !

Plz. try to talk in easy words cause i cant understand the half ^^

thx, asdf
[G1 Android Development] btmec:
I am having a problem. I am running JF 1.42 and I have a 1.5gb Ext2 partition on my phone. I formatted the Ext2 partition on a computer running linux. When I put the SD card in the Linux computer I get a partition for the 1.5gb drive along with a FAT32 partition. Now the problem. When I try to run apps to SD app it says I may not be running the correct ROM or my card is not formatted properly. Both things are wrong but I can't figure out how to get around this problem. Anyone have any advice? Thanks
[G1 Android Development] ArmandHammer:
Is the fat32 partition first and the ext2 second? That could be your problem.
[G1 Android Development] MarcusMaximus04@gmail.com:
Or are you running one of LucidREM's apps to sd mods of JF? The basic JF

will not work

. My app will only give that message if the /system/sd directory doesn't exist which would only happen if you either don't have an apps to sd ROM or your sd card isn't formatted correctly. So if anyone gets this error please verify that both are correct.
[G1 Android Development] Androidandy:
I had the same problems.

I had to wipe the phone, you do this by starting the phone by holding Home + Back keys together.

You will then see the bootloader, press Alt + W to wipe your phone.

Now reinstall LucidREMS modified Rom.

Once this has been installed you can check that you have the correct EXT2 partition by using Busybox from the terminal program on your pull up menu.

Type this as seen herehttp://xdaforums.com/showpost.php?p=3317805&postcount=33.

If you get similar to /dev/mmcblk0p2 1.5G 6.3M 1.4G 0% /system/sd, then the Ext2 partition is ok.

You then install or restore all your programs(applications) you want first. Test these are working by trying them.

Finally if everything is ok, use Terminal again and type

su

copy.sh app

copy.sh data

This moves all your application and caches to the SD card

Switch off your phone and restart it.

Finished.
[G1 Android Development] MrADeveci:
Thanks for this app ..... just to let you know this worked perfectly, and my setup is this :

Haykuro 5.0.2Hr3

8GB - Class 2 !!

I've moved the apps and the dalvik cache. I have not noticed any speed loss in the phone .... I have 12 apps installed so far and I still have 69mb free!

Thanks
[G1 Android Development] m00b3rt:
do i just flash this like other roms?
[G1 Android Development] johnowa636:
no this is an app. You need an app installer like ASTRO, or APP INSTALLER, take your pick from the market. Once you install app run app and it will give you instructions. Good luck. Im asuming the themed H build worked.
[G1 Android Development] m00b3rt:
oh. yes.

i forgot to thank you.

:p

thanks alot.
[G1 Android Development] m00b3rt:
so, do i just extract and install on my phone,

install all the apps i need.

and put them onto the sd card?
[G1 Android Development] m00b3rt:
why do i only get 55mb...

>.<
[G1 Android Development] MrADeveci:
Have you rebooted your phone since?

Did you move apps and dalvik-cache?
[G1 Android Development] Shrivel:
That's about right if you just move apps and not cache. I moved my apps and not cache and I think I had 58mb when I started.

That's plenty of RAM for anything you'd want to do. If you want the big numbers (~70mb), you'll need to move cache as well, but this is really unnecessary IMHO.
[G1 Android Development] MarcusMaximus04@gmail.com:
Actually, it's ROM ;). At any rate, most of you will probably see high 50's - low 60's because my app will not move the cache. Moving it is extremely unstable and doesn't work in most phones. The only reason I put it in originally is it worked like a charm on my phone and I figured it would work on everyone else's. Of course, it stopped working even on mine so I took it out. Why do you need more than 55MB anyway? New apps should barely be taking up any of that space.

EDIT: oh and before anyone asks, I haven't updated my sig to lower the remaining space to 56MB.

EDIT EDIT: ...aaaand I tried it again and now it works(after moving the cache folder on my sd card that was completely filled with stale NFS file handles). Like I said, it's really inconsistent. If you really want to try, you can follow my tutorial which is linked to from my sig. But I wouldn't suggest it unless you know what you're doing and have a pretty good idea of how to undo it if/when your phone doesn't start.
[G1 Android Development] question.com:
just want to say thanks for this app. just used it on my dude build, and it worked great.
[G1 Android Development] Shrivel:
I also second that. I used it to move my apps this weekend and beyond verifying my sd card was partitioned correctly, I never had to type a single thing at the command line. Great app.
[G1 Android Development] JoshHart:
I guess I'm confused on if it worked or not, I only got back 2mb after moving apps and restarting, I had 28mb now have 30mb available, I'm running, Haykuros 5.0.2Hr3.
[G1 Android Development] ArmandHammer:
@josh hart,

Did it take awhile on the htc screen when you were booting up?

If it took 3-5 minutes they are most likely on the sd.

Also how many apps did you download? If you downloaded a lot of apps like 15mb worth and you onlt got 2mb back, I don't think it worked.
[G1 Android Development] MarcusMaximus04@gmail.com:
I'm guessing then that most of your space was taken up by the caches. If you don't have that many apps(which you probably don't since you had 28MB before the app) but you use the browser and other apps a lot, it'll run up space in the cache. You can try moving those but my app won't do it. It used to but it's extremely unstable, so I took it out. In fact, I still have a /system/sd/dataold folder that is completely full of stale NFS handles.

EDIT: If you want to check if it worked go into the terminal emulator and do this:

su
cd /data
ls -l

and if it says "app -> /system/sd/app" then it worked. It should also say "app-private -> /system/sd/app-private" but I have yet to confirm that that part works, and it's probably less important.
[G1 Android Development] chief2842:
Moved apps and cache, then rebooted my phone it's stuck at the boot screen is this normal or does it take awhile to come back up?
[G1 Android Development] ArmandHammer:
If you had a lot of apps it takes awhile on the screen.

I had about 50 apps and it took it about 3-5 min.
[G1 Android Development] chief2842:
Thanks but it ws more like 15mins, I wiped and reinstalled, do you think he have something to do with the cache being moved. Also since I wiped do I have to move the apps again?
[G1 Android Development] ArmandHammer:
Yeah, I haven't moved the cache over because of a lot of people having problems with it.

I would download terminal emulator and do the process marcus did to check if your apps are ther. The process is a couple or one page back.

If they are in the sd, uncheck the "copy apps to sd" button and just click "move apps to sd"
[G1 Android Development] chief2842:
Ok I used Mybackuppro to restore all my old apps, then I went and uncheck the "copy apps to sd" using the app, went back and all of my apps are gone. Now when I use the app it's saying "The app will replace another app all previous user data will be saved. Am I applying the app twice, if so I how do I wipe and get all my apps back without using mybackuppro?
[G1 Android Development] ArmandHammer:
I'm not really sure about mybackup, I don't rrally know how that works, I would just wait till some of the more knowledgable members get on because I'm still very new to all this.
[G1 Android Development] chief2842:
Thanks I think I finally got it working.
[G1 Android Development] g2crx:
lil help please

i have a question i already did a search but dint find what i needed.I did a wipe and re-installed my apps from my sd card all my apps loaded fine.But now when i go to the market all my paid apps says purchased.Is there a way to make them not say that so i can see the updates if there is one.

I'm on JFv1.42/Lucidrem rc33 apps2sd.

thank you

james
[G1 Android Development] MarcusMaximus04@gmail.com:
Redownloading the apps from the market should work.
[G1 Android Development] g2crx:
Since I already have it saved on my sd(app-private) will it save it twice as in I'm going have it on my card 2x?

ty again

james
[G1 Android Development] JoshHart:
Looks like it did work after running terminal, thanks i didnt even think of that. I cleaned up my cache a little bit and got it up to 38mb free which is more than enough for me. I have 85 apps installed now to whomever was asking. But i think its mostly cache room like you said.
[G1 Android Development] MarcusMaximus04@gmail.com:
No, it'll replace the binary you currently have installed.
[G1 Android Development] g2crx:
Thanks you for your help

james
[G1 Android Development] jdwme:
Ok, so I keep trying this and get nothing. I'v done the check with

#busybox df -h

and I don't get anything that says

/dev/mmcblk0p2 1.5G 6.3M 1.4G 0% /system/sd

/dev/block/mmcblk0p1 5.9G 61.7M 5.9G 1% /sdcard

I had partitioned my card using the script that was posted last week sometime but it acts like the card isn't partitioned. Yet when I ran the appstosd program from my phone all the apps disappeared from the launcher tab. Any ideas? Also tried to cd /data and says I can't cd /data hmm...

update

K, issue resolved and the app works great! I checked my card with paragon partition manager and for some reason when I did it before with the script it never formatted the new partition as ext2, now I'm all set and downloading apps again :)
[G1 Android Development] robpet2:
This app works great...

just chose what you want to move or all 3, reboot and let the phone take its time booting up... and everything is moved for you, no need to type any scripts..

great work
[G1 Android Development] PlatinumMOTO:
So After installing this app do I need to run this app everytime I install a new app from the market or does it automatically do it everytime I install a new app?
[G1 Android Development] ArmandHammer:
After you use it for the first all your future apps will go to the sd. No need to do anything else, just make sure you restart after you copy apps to sd for the first time.
[G1 Android Development] robpet2:
edit - wrong thread.. lol

but once again the app works like a charm.. bump for those wanting to move apps to sdcard ( pre partitioned card that is )
[G1 Android Development] AsaSpades:
Ok well I have my sd card partitioned with 745mb ext2, and after running this app, I left the box checked and copied apps to sd, then everything started to force close, and at the home screen apps were missing and broken icons, so I turned off the phone, now im stuck @ the T-Mobile G1 screen, what did I do wrong and how can I fix it.
[G1 Android Development] djkdawg:
im in the same boat, i only choose copy adds to sd and not cache and now im stuck on a looping htc screen
[G1 Android Development] kevdawg:
Small tangent:

What about after I wipe my device for whatever reason, will I have to rerun this application after flashing another apps2sd rom or will my apps simply already been on the device?
[G1 Android Development] xexelala:
Marcus,

I used your apps2sd tool and it worked great until I moved to Haykuro's latest build. I flashed and wipped. Now when I use your apps2sd tool all my apps disappear?

Any clues??

Thanks for your assistance. :)
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm did you uncheck the checkbox? I don't see how that could cause what you're seeing but... that's odd(I'm using Haykuro's 1.5Hr3 as well, though I didn't do a wipe)

unless... you did download the apps to sd version correct?
[G1 Android Development] meww:
had a quick question. I just flashed my phone to ADP1.5 hrc1.3 and moved my apps, data & cache to the SD card. I have couple of questions.

1) If I update my firmware (ADP1.5 hrc1.3 ---> hrc1.4)without wipe, Do i have to redo apps to sd commands.

2) If I update my firmware with wipe, Do I have to redo my apps to sd commands.

3) Do i have to run apps2sd commands every time I install a new app or it is permanent.

I am new at this, I have been reading thread for past 2 week and not asking too many stupid questions. Thank You.
[G1 Android Development] g2crx:
if i already have apps2sd and dalvik-cache and i dl your app from the market will it mess anything up.want to donate plus im a little tired of typing commands:D

james
[G1 Android Development] MarcusMaximus04@gmail.com:
1: No, if you don't do a wipe then all your apps will stay as they are.

2: Sort of. All your apps will still be correctly stored on the sd card but the phone won't have a link to them. So, you won't have to copy existing apps over to the sd card or make the /system/sd/app directory but you'll still have to remove the normal /data/app directory and replace it with a symlink that points to the sd card(my app does this automatically if you uncheck the checkbox)

3: No, the switch is permanent and all future apps you download will install directly onto the sd card.
[G1 Android Development] AsaSpades:
I found out I didnt partition my card correctly, and then I fixed it and used the other tutorial and it worked fine
[G1 Android Development] MarcusMaximus04@gmail.com:
No, it'll only move apps over to the sd card if you tell it to. Also, in the future if you do a wipe and need to get them back, you can just run the app again with the checkbox unchecked(actually it works with it checked too... I don't really know why I still have that in there...) and it'll set up the symlinks automatically.
[G1 Android Development] g2crx:
what about the dalvik-cahce would i just have to run that command

rm -rf /data/dalvik-cache

ln -s /system/sd/dalvik-cache /data/dalvik-cache

james