yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] forceshield:
I am having complete trouble trying to use this new way of apps to sd. Everything appears to work, however when I install an application, I get application installtion unsuccessful. I recieve no errors when inputing the commands in terminal. It is on a freshly partitioned SD card, partitioned with apps2sd2. I have tried previously with GParted, and Paragon9. I have tried it on two seperate SD cards, a 8GB and 4GB both class 6.

I must be doing something wrong but I have followed the directions on page 1 post 1.

Apps2SD2 reboots the phone immediately on pressing the Apps button.

Available space displays as 1080 MB, as I have set.

any application installed fails with xxx could not be installed on this phone.

I have also tried it with LucidREM's and anytime I use lucid app then reboot, I get stuck at Tmo screen. I have wiped everytime before I install a new flash. I have even went as far as starting back over with stock SPL and rc29. If anyone has experienced this issue and knows what the problem could be, please shed light. Thanks.
[G1 Android Development] LucidREM:
the symlink won't work unless you delete the a2sd.sh script file .. so you'd have to give a little more detail .. such as .. "busybox df" and tell the results .. there are specific markers to tell you where the problem might be
[G1 Android Development] dixxa:
I think it's more permission issue :

ls -l /system/sd
[G1 Android Development] KidJethro:
What is the command to see whats in a specific directory? I need to move an app from the sd to internal memory....but I have no idea what the apk is actually called. It's Robo Defense from the market, paid version. :confused:
[G1 Android Development] Sistum Id:
Mobile Defense and a few other apps dont seem to be showing up on the "Manage Apps" screen. Any reason why?

Edit nevermind, I found out why, private-apps arent shown.

Okay now, when you select which apps you want to remain on internal memory, what next?
[G1 Android Development] KidJethro:
Can you share with me? :D
[G1 Android Development] forceshield:
I got a new SD card, wiped, flashed JF 1.5, ran this all over again, It worked.

Installed Apps, rebooted, everything worked, I then installed more apps, and rebooted the phone and then was stuck at the flashing android logo.

I boot in to recovery and run busybox df -h

I now only see

tmpfs size:48.3M used: 0 /dev
/dev/block/mtdblock4 Size: 67M Used 1.1M /cache
I then #mount /data and see
/dev/block/mtdblock5 Size: 74.8M Used 9.9M /data
#mount /system and see
/dev/block/mtdblock3 Size: 67M Used 54M /system

I'm not sure what went wrong, as I didn't change anything aside from installing apps from the market.

I also tried mount /sd, mount /system/sd in recovery to see if I could get anything, but I get the error mount: can't find /system/sd (/sd) in /etc/fstab

Thanks everyone for any assistance.
[G1 Android Development] Sistum Id:
Share you with what? the reason why his "Manage Apps" option wasnt showing certain apps is because they are in the private-app folder. His app doesnt detect whats in the private-app folder because I'm guessing it causes conflicts with the phone and sdcard?
[G1 Android Development] bsebll15:
Hheeelllppp

I followed the directions to the t and no luck. I have noticed that when I run the command: busybox df -h, I dont have /system/sd/app. i have tried to make the directoy but I keep getting the message saying that the file exists.

I have tried wiping, reflashing and re doing all of the steps. i cant download anymore apps cause "my memory is too low."

I have a 6gb fat32 primary partition and a 800 mb ext2. obviously none of the ext2 is used...HHEEELLLPPP!!!
[G1 Android Development] captrobb:
GOT IT!!!!

Finally got it to work. Had to reflash the ROM for SU to start working. Downloaded appstosd2 from market and it completed the partition for me.

Now, I have a rooted phone running JFv 1.5 ADP 1.5 with a 4gb sd running a2sd with 3,308m total space and 418mb of internal memory available!!!

WOOOHOOO!!!:D
[G1 Android Development] :
I did this now everytime I install an app of the market my phone reboots.
[G1 Android Development] DynaMight:
I am also getting the same
[G1 Android Development] andonnguyen:
Your "apps2sd 2" app, copying apps to sd works fine, but copying dalvik cache leaves a copy on both the internal memory and /system/sd, was that intentional?
[G1 Android Development] :
How do I make the app-private folder I think that might be my problem.
[G1 Android Development] andonnguyen:
in terminal emulator:

mkdir /system/sd/data

mkdir /system/sd/dalvik-cache

The two commands above are optional, but might as well do them lol.
[G1 Android Development] soulsponjah:
Great app. Went from JFvMOD by LucidREM APPS on SD to Dudes .94. For those having issues (broken icons) with protected apps after running this, delete the protected app, reboot and reinstall.
[G1 Android Development] :
Ok it says file exists already how do I link the app-private file back to the phone
[G1 Android Development] :
My phone keeps rebooting after doing this procedure what should I do whenever I try installing an app
[G1 Android Development] isolated_epidemic:
Works Great Now

3: If you want your apps to go to the sd card, you must have a directory "/system/sd/app" If you didn't have apps to sd before on the ext2 partition do the following in terminal emulator:

su
mkdir /system/sd/app

If you want the private-apps, data cache or dalvik-cache moved you can replace "app" in that code with ""app-private", "data" or "dalvik-cache" respectively.

That did it. All apps going to the sd card now and the massive amount of system memory shows a decrease when new apps are installed. Thanks!
[G1 Android Development] lbcoder:
What happens if you make a single ext2 partition on the sdcard? Is the system still able to mount and unmount it normally (though the gui), or is that strictly limited to vfat? Also, assuming that no system components are on the sdcard, what happens if you unmount the sdcard? Will the apps just disappear from the menu as if they were uninstalled (deleting manually from the commandline, I notice that they simply disappear from the menu gracefully), or will something terrible happen?

Now even further; assuming that all above works ok and we adjust the apps2sd onto the first partition and change the unionfs member to /sdcard, if we insert a card that contains apps and if the system is able to automount it (being ext2), would it automatically join the unionfs and have its apps appear in the menu?

Objective: keep everything on the sdcard in a single partition, let the android system mount and unmount it as it currently does with the vfat first partition, move only applications and their associated data and dalvik cache over to the sdcard, be able to unmount (and possibly eject) the sdcard, having the applications disappear from the menu gracefully, be able to insert an sdcard (perhaps a DIFFERENT sdcard), have it automount, join the unionfs, and have its apps appear gracefully onto the menu.

This would be an ideal system, and even if it wouldn't work as is, it would be trivial to implement. If anyone from google is looking at this, this system, with one addition, would be a suitable component for inclusion... that addition would be a simple encryption of the filesystem of the sdcard using a key associated with the google account of the user, which could be stored in a private area of the device fs (i.e. requires root to read) for offline access. This would prevent regular users from being able to read the protected apps off the sdcard.
[G1 Android Development] MarcusMaximus04@gmail.com:
First, removing the sd card will just make those apps disappear... and if for some reason you have the dalvik-cache of an app on the sd but the app itself on the phone memory it will make that app crash.

I'm not entirely sure how the android system would handle just having an ext2 partition and trying to use that as the /sdcard, because I don't know exactly how it does or doesn't rely on that being FAT. The only problem with that suggestion though is that an awful lot of people here use windows to put stuff on their sdcard and would be left out in the cold.

Probably the better implementation would be to make an ext2 image file on the sdcard and loop mounting that, which I have been looking into with JF and MartinFick's help.
[G1 Android Development] AustinKnight45:
WoW Thx man, this worked the first time 439mb FREE:D When I try to install Apps it reboots is there a fix for this or a undo so I can go back to the original apps2sd ?????????
[G1 Android Development] gimiento:
I'm unclear on how to use AppstoSD2. First, you make the directory, and then you run the app? You say have to follow the tutorial to use the app, just not sure what that means.

Thanks for all the work!
[G1 Android Development] lbingham:
Worked Fine

Hey, this is superb. I had a little trouble because I didn't read the entire thread first. I wound up with a boot loop, I wiped, and reapplied the JF1.5 update.zip. Then, I reformatted my ext2 partition on my Vista machine. When that was done, I did the manual update by copying the init.rc and apps2sd.sh files etc etc... I booted, checked my storage and I show 1GB of free internal space. I install apps and the amount of free space decreases.

3 questions. Do I need the Apps2SD2.apk? What would be the benefit of having a specific app on the actual phones internal mem? If it DID still default to the internal memory, what would happen once it filled up; would you still get the low storage warning that everyone hates so much?

Thanks again for this to everyone that had a part in it. This is really great.
[G1 Android Development] overground:
The APPSTOSD2 just does what you already did, so, no, you don't need it. However, the two from the market are the only ways I've found to donate to Marcus for all his hard work, so I buy em anyway.
[G1 Android Development] Sistum Id:
Sweet got it working. I did the donated app to sd 2 last night and did the update but the app didnt seem to move apps to sd even after a quick wipe. I did it manually posted in the 1st post.

How do we tell how much space is left if we add apps back to internal memory?
[G1 Android Development] AustinKnight45:
Well guess Im going to re flash since I ant diggin this reboot after I install a app:(
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm this is really perplexing... I'm not even sure what to have you check. Do the apps actually get installed? Like do they show up after it restarts? Did you make a /system/sd/app directory?
[G1 Android Development] AustinKnight45:
Ya they start to install then the screen turns black and it reboots and the app isn't installed, I made a /system/sd/app directory. I think before I went from The Dude build .93 strait to JF 1.5 (without a wipe)and everything was good, I did the original apps2sd and that was good I was running that for a week. I dont know Ill try it later I just re flashed Jf 1.5 an wiped so .
[G1 Android Development] madunix:
sooo i just did all of this, and now my phone read that my internal memory has 468mb available, what did i do?
[G1 Android Development] LucidREM:
ls -l /system/sd/app
[G1 Android Development] :
Ok I did the process when I open the apps to SD program it shows my internal memory out of 78.00 mb and this keeps going down when I install apps even with this process done. But when I go to setting sdcard storage its shows my internal memory at 829mb, so Im confused should I be worried about the 78.00 that are decreasing as I install apss, or should I go by 829mb? And can I move data to my sdcard if thats causing the decrease.
[G1 Android Development] TheMan42:
Couple more questions:

Assuming I follow the tutorial main page, this will allow me to store all App, App-Private, and Dalvik cache on the SD?

Will browser, map, etc cache be stored on the SD card now?

What happens when an updated ROM is released and I upgrade, will all settings carry over for this method?

Other than that, since this is all reversible, I think I'll experiment with this method first.
[G1 Android Development] kaotikking:
Thanks

I have been trying Apps 2 SD for months now and this method seems to b the only one that worked for my G1

Questions... I have noticed that u can run Debian on ur G1... does the apps 2 SD have any adverse affects with this?... does any one kno the pros and cons of such a MOD? and would running debian allow a flash player to b installed?.... I am tired of rumors n waiting lol
[G1 Android Development] djlucklu:
im running JF1.5 ive tried the method and i get 429 mb free and when download and install an app from the market my phone automatically reboots.. Can someone Help?

app i was trying to install is smsguard...its stored in app-private when i use to use it with Dudes build.
[G1 Android Development] tanner2007:
How do I know if this is working?

other apps on sd always cause boot loop

when i did this (hoping I did it right)

su
mkdir /system/sd/app
mkdir /system/sd/app-private
mkdir /system/sd/dalvik-cache

and then

su
cp /sdcard/init.rc /data/
cp /sdcard/a2sd.sh /data/

and hoping that was all since my ext2 was blank and had no apps on it

when phone rebooted i had like 350 mb free internal memory

but used a app installer to install app files of my fat32 partition one at a time and internal memory when down and i checked the paths in ADB

/data/app
ls
and
/system/sd/app
ls

and seems like apps got installed to both!

I think, How can i be sure and make sure everything went ok?
[G1 Android Development] kaotikking:
@ tanner 2007

Its a union so ur phone would read it as one in the same .... correct me if i am wrong experts... im just stating from what i have read and seen... and i have tried every method out dere... this one SEEMS to b the safest and with the least bugs.... if u have the latest apps2sd2 installed it has a memory reader... and u can see both internal and ext2 partition space

try

busybox df -h

in ur terminal to check n make sure u have ur unionfs mounted
[G1 Android Development] borodin1:
Well, this was a long road but I think I am right where I want to be.

I have tried unionfs method with Dude's 1.1 and it was a disaster. So I decided to try JF's rom and I did my apps2sd using sym-links. Worked great for 4 days, no forcecloses, no weird phone behavior. This morning I decided to switch to unionfs. I followed direction and it worked. Just as fast as symlinks (that was my major gripe with Dude's build as the whole system eventually slowed down). I had to reinstall every single app as they all were crashing after going to unionfs but that's not a biggie. So at this point I am a believer. I always knew this had a potential, just had to prove it to myself.

@ Marcus:

1. Open overclocker hangs and forcecloses after reboot, whether it's on internal memory or if it's on SD: are you planing to tinker with it at all to make it work or at least revise is so it does not auto start? It works perfect if I just start it from the home screen, just force closes on auto-start.

2. When we move apps back to internal memory with Apps2SD app, are we suppose to get any kind of confirmation that appp has been moved? And if not, can we in your next revision?

Overall, Marcus is the man, thank you for all the support that you're giving to everyone. I can't wait to see what comes from you next.

Good luck everyone.
[G1 Android Development] bdcwarrior:
fried memory card

has anyone else rendered a memory card unusable with this method? It has worked great for me twice, until my memory cards (one an 8gb and another a 4gb, both by PNY and class 6) just up and died (the phone reported that the memory card had been unexpectedly removed). They aren't readable or formattable by my comp. anymore either (one kind of is, the 8gb only works periodically, and the 4gb has completely gone dead).
[G1 Android Development] Thats BS:
Did you experience a lot of freezing before they stopped working? 'cause I fried one and it froze a lot before it died. I would like to know what caused this also.
[G1 Android Development] MarcusMaximus04@gmail.com:
1: I've had problems with that when I move it or anything(ditto with weatherbug, chompsms, phonefusion VV, JS weather) but a reinstall usually fixes it for me(has to be uninstall/reinstall, if you just update it it still crashes). Not really sure why that happens but next time I get it to do it I'll try doing an adb logcat to see what's going on.

2: No, there's no confirmation. But if you exit that screen and re-enter it again, it completely re-reads all the apps so it will correctly show whether an app is on internal memory or sd card(it doesn't remember what you put at all, it actually goes out and finds where the app is, so there's no possible way for a false positive). Confirmation would probably be nice, I've just had tons of problems getting popup windows to work.

For the "fried card" bit, chances are the partition table is just really screwed up. My guess is that gparted would be able to show it up(from a micro-sd card reader, not from the phone) as long as you don't have it mounted. Also, have you tried restarting the phone with the sd card in? If it shows up as damaged or anything the phone should be able to reformat it. In fact you might try doing it manually and running fdisk from the phone. Just go to the terminal emulator and doing this:

su

fdisk /dev/block/mmcblk0

and then it'll come up with fdisk and you do the delete option(I think it's 'd' but you can press 'm' to look at available options) and delete all partitions on the card. When you're done deleting them, press 'w' to write the partition table. Then your phone should definitely show it up as a "blank sd card" and ask you to reformat.
[G1 Android Development] Thats BS:
Again, thanks Marcus! Worked like a charm.

Also, do you know if there is any issues with home alternative apps, such as Openhome, running from the sd?
[G1 Android Development] MarcusMaximus04@gmail.com:
Cool, now I have something for people to try who that happens to :). For alternative homes, I've heard mixed reports. I don't use any of them myself so can't say. Try it and find out :D
[G1 Android Development] Henchman:
I am running DxTop form the SDcard, and it is running very smooth with JF 1.5
[G1 Android Development] KidJethro:
Thank you!!
[G1 Android Development] scotte9999:
Unionfs is the way to go, but how about ADP1.5 modules?

For those of us that prefer to use the straight ADP1.5 firmware (not any of the modded stuff), can somebody post the unionfs.ko module? I don't relish the thought of installing and building Android just for one stickin' kernel module. :-) Thanks!

-ScottE
[G1 Android Development] Thats BS:
Well, the reason I asked was 'cause when I "fried" my card, I was having freezing issues and thought maybe it was from Openhome, as it was force closing a lot. I have been running Openhome since last night after I read this thread again and all seems great! Must have been something else. Thanks again all who posted!
[G1 Android Development] ArmandHammer:
I want to flash the new jf build, i have this method working great,What steps do i do when i move from the ADP to the OTa version?
[G1 Android Development] jikei:
Went to JF 1.51 (US). Without a wipe it got stuck at the Flashing Android screen. Did a wipe then reinstalled the update and it booted (sans apps). From his changelog, "runs /runme.sh, which attempts to mount the 2nd partition on the sdcard to /system/sd (apps to sdcard support)"

/system/sd did mount by itself, but there were no apps. I copied init.rc and runme.sh to /data and they appears. Protected apps were fubar. Trying to uninstall (to reinstall) the Paypal app (copy protected) and it's hanging. I went back to home then back into the market, and Paypal appeared to be uninstalled, and reinstalled and ran properly.

Free memory shows 800mbsome odd free, and /system/intmem shows about 67 out of 74mb free (have not put the new SPL yet)

A lot (if not all) my apps were listed in "My Downloads" in the market, but like 70% of them said "update" (before upgrading, none had to be updated). After a couple minutes I guess it synced, all (or most, I have 150+ installed) are in the "My Downloads" in the market and now only like two show a update, but none show "Installed" (I knew that would happen)

(I'll keep updating this post - if necessary with any other...issues)
[G1 Android Development] xdavidn88:
How do I undo this?

I think my data is corrupted so I did it anyways, seemed to work at first, then after 3 minutes of functionability, it just keeps rebooting.

My Home replacement apps weren't working. Can I just reflash JF1.5?
[G1 Android Development] ArmandHammer:
everytime i try to unintall a app it seems to slow down the system and freeze.

New jf
[G1 Android Development] xdavidn88:
Everytime I download an app, it would say download complete then reboot, but never install.

Any suggestions? I'm about to head to work soon, so I can't read this until after 3am.
[G1 Android Development] jikei:
mine has been doing this since i went from the symlink method to the unionfs method. i ignore it since it works..
[G1 Android Development] firestrife23:
I just went form JF 1.5 adp to JF 1.51 US, of course i wiped before switching build... when I follow through the guide, then reboot my phone and it's looping at android screen. I had to wipe again and not sure what to do from here... :mad: according to changelog by JF, he made some change the way sdcard mount... I'm not sure if that's the culprit.
[G1 Android Development] rasturn:
i just did no problem but i used the jfupdater
[G1 Android Development] kdf2883:
i think it could be because i cant get apps2sd to work at all in his US release...:(
[G1 Android Development] Thats BS:
You had apps2sd before and your apps (installed on sd) are still working?
[G1 Android Development] Henchman:
I had problems when installing the US 1.51 version with Apps2SD unionfs.

Installed the ADP 1.51 version. No problems.
[G1 Android Development] ubernicholi:
I'm using jf 1.51 right now and have not any troubles with a2sd . I used both methods to prep the card manually described at the bottom of original post in this thread. I also verified that it was working properly using the apk file. I have 83 mb free and about 20 or so programs installed. I've never had an issue installing or uninstaling free/paid/protected apps.

Once I flashed to 1.51 I wiped my ext partition and deleted the /system/sd folder. Then recreated it and copied the a2sd.sh and init.rc to the folder listed in the how to. Then rebooted and istalled a2sd.apk ran it and everything was already installed on my sd before I clicked move to sd.

If anyone does have problems pm me and I can help you out if the above doesn't work for you.

Edit: I'm using 1.51us with zero issues. I even have the htcime from haykuro's Twitter working perfectly
[G1 Android Development] rasturn:
yes no problems, in fact its faster than its ever been only thing i had to reinstall was my pdf viewer and the HTC keyboard

using jf 1.51ADP
[G1 Android Development] Lieu10ant:
does the weatherbug app work for you guys? i followed the tut, and i somehow got 1.144 GB free on my phone, but my weatherbug app doesn't work, and neither does my battery widget, thats all i checked so far. but i'm dissapointed.
[G1 Android Development] kdf2883:
I had Apps2SD working before cupcake, after i upgraded to adp 1.5 , a lot of my apps werent working right so i wiped and went to 1.5 adp. After that i got apps2sd to work but i went to jf1.51 us and i got a lot of problems with my apps again so i wiped and installed jf1.51 us. Afterwords i attempted to do the steps for Apps2SD and i kept getting a error saying it cannot move the apps saying the file system is read only.

*note* if none of this makes sense, im way too drunk for typing and ill correct it when i wake up and my hangover is gone~
[G1 Android Development] ubernicholi:
Try doing an - adb remount

Then - remount,rw -o command listed on first post while in adb then run the a2sd.apk
[G1 Android Development] firestrife23:
i tried using app2sd.apk alone to create partition and my g1 reboot and hang at G1 logo.... wtf i'm gonna wait until marcus sort this out. :(