yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] borodin1:
Thanks. As I mentioned, symlinks worked magic for me (and everyone's mileage will vary). Before moving browser, market, streetview and map caches my phone would eat up internal mem like crazy, thus slowing it down a lot, it would take it 5 sec just to show icons on home screen. Wouldn't it be the same with new method if we left those on the phone, just would take longer to do that?
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm I've never noticed any performance issues from having low internal storage... are you sure you didn't change ROM's around the same time and it was just a coincidence?
[G1 Android Development] LucidREM:
that would be the stuff apps store under /data/data .. but not the whole folder .. ie: /data/data/com.android.browser/cache/webviewCache .. where the individual apps store their cache files
[G1 Android Development] bountyhunter:
When not moving dalvik-cache and data, everything works great, even faster than app on internal memory
[G1 Android Development] borodin1:
Good point. It would very hard to trace now as I had caches on sd ever since RC30.
[G1 Android Development] MarcusMaximus04@gmail.com:
Excellent! By the way, LucidREM tipped me off on this and it seems to be accurate(caused the wallpaper issue again for me): moving data causes the wallpaper issue. I'll try seeing what happens with the data directory on the sd card but only some apps there(thinking: browser, maps, etc) but for now hold off on making a data directory if you want the wallpaper to change.

EDIT: and... just having the /system/sd/data directory breaks it. I have no clue why but for now at least, I'm taking that part out of my tutorial.
[G1 Android Development] borodin1:
If you get browser, market, streetview and maps it would be sufficient for most folks around here. May be YouTube, but I know it was giving people some problems with symlink method so I never bothered.

Marcus, can I add you to my Gtalk just to have a back up when I re-try to do it on my phone? Don't worry I don't do crazy hours.. it'll be mid-afternoon I'm guessing
[G1 Android Development] MarcusMaximus04@gmail.com:
Sure, will try to help as much as I can(barring work, or general excitedness over my new partitioner section of appstosd2... Oops.. I mean... :cool:)
[G1 Android Development] Beast84:
Word! That'll be bad ass. Can't wait for it
[G1 Android Development] borodin1:
Thanks man...I've sent an invitation from borodin79(@) g mail. c o m

Yeah.. sorry to bug you.. I've went thru the whole thing since October (rooting, flashing, moving apps/caches, etc, etc etc) barely asking any questions. Most of my posts are either thanking people or helping (as much as I can help :)). First time I've hit a wall and the worst part is that my SD got corrupted :eek: so I had no choice but to reformat it and loose all my back-ups. Yeah, I was stupid and kept puting off copying it onto PC.

PS I may not even need you to help me, I like figuring stuff out, just need a back-up in case I mess up royally :D
[G1 Android Development] jikei:
I just did the new APPS2SD2 but I have an ..issue...internet no longer works. (EDGE/3D or WiFi)

I get a:

java.netSocketException: Permission denied (maybe missing INTERNET permission).

Anybody got any ideas?
[G1 Android Development] MarcusMaximus04@gmail.com:
That's different... Try a wipe and redo the tutorial.
[G1 Android Development] jikei:
I assume the method worked ok if my free space stayed the same (was 60-61ish), and under "mount" I see /app, /app-private and /app-dalvik cache all sperated?

It's just .. it looks like any application (or most) that requires internet ... don't seem to work..unless I uninstall and reinstall. Browser works and I can go to terminal, su and run a traceroute ok.
[G1 Android Development] MarcusMaximus04@gmail.com:
Oh ok, ya some apps have problems with the transition and have to be uninstalled/reinstalled.
[G1 Android Development] jikei:
Reinstalled over all the applications I thought used the internet and opened 5-6 randomly and they all worked ok. Seems to be okay now.

One more question, when I did the mount -o remount,rw /dev/block/mtdblock3 /system command, is it normal that the phone immediately jumped to the Android screen and boot back up (not the T-Mobile G1 first screen). If so, maybe put that in there as a note so idiots like me don't freak out.

Thanks for all your hard work MarcusMaximus04@gmail.com!
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm no... never seen that happen... but as long as it doesn't boot loop you're probably fine.
[G1 Android Development] MarcusMaximus04@gmail.com:
Ok, so, problem. It looks like while that wallpaper fix fixed that issue, it broke copy-protected apps. For some reason copy protected apps seem to not get installed(it shows an icon for them but doesn't put in the .apk or .zip). On the bright side, I found a fix that seems to fix both issues but it will seem a bit... ironic considering this post. The fix is this: use the pre-wallpaper fix script and put a symlink to /system/intmem/data in /system/sd called data. Fortunately, while this seems totally backwards(didn't I say I was getting rid of symlinks with this method?) It still won't have the issues that the old apps to sd had since it's a symlink on the sd card pointing to system memory rather than a symlink in system memory pointing to the sd card.

EDIT: Oh and I'll be throwing the updated script(will make the symlink for you if it doesn't exist... and delete any data directory is there) on here tonight when I get home from work.
[G1 Android Development] jikei:
Marcus if we want to donate some $ to ya for your work, use your name here for Paypal acct?
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm turns out I do have a paypal account under this email... so sure that'll work.

EDIT: or you can buy the appstosd(1 or 2... just don't use the first one if you do buy it) which is on the market as a donation app.
[G1 Android Development] Dimath:
The same here - no internet connection. have to reinstall apps. I am wondering what can cause this? System shouldn't even know that apps are on SD card, not in phone memory. Any ideas?

Plus, "Wifi Helper" app refuse to work at all with unionfs mount. Works with symlinks. Can be just the app issue, but the same question - what's the difference for the system compare symlinks and mount?
[G1 Android Development] amvella:
Need help

Hi,

I need help, my phone is looping at the android screen after following the instructions. What should I do now? Any help will be good.

This is what i did.

Then I restarted the phone, it started up fine. Then I followed the instruction and rebooted and now its stuck at the android screen and its looping

Thank you

EDIT: Problem Solved. I think there was some problem with my ext2 partition. So I reformatted it and it worked like a charm. Now i have 271 MB.

Great work man.. u rock
[G1 Android Development] kwigybo:
Marcus, just wanted to thank you very much for this app2sd solution.

I've literally tried all other methods in the past three weeks, but none of them have been stable. This one seems to do it for me. Or so it seems so far...

I followed all the instruction and it shows that I have 235MB free in my internal memory (my ext2 partition is 256MB). However, after installing some applications, i mounted my SD card through the G1 and the ext2 partition popped up and only showed the lost and found folder. There was nothing else in there. I thought that your revised script had the apps installed to the SD card by default? Do you think there is something that I missed?

Thanks!
[G1 Android Development] Stryder5:
Does doing this also move the apps already installed on phone to SD? If not, what further steps need to be taken?

Looking forward to the automated apps solution as well :D
[G1 Android Development] mrmonto:
question about this method

So does this mean it basically makes the os think there was an increase in the internal memory? I didn't see anything about moving existing apps to sd, just future downloaded apps. And how to move future apps back to internal memory. Did I miss something? Thanks!
[G1 Android Development] isolated_epidemic:
How can I know this is working?

So I just started fresh today with a wipe and JFv1.5_ADP1.5. I also freshly formatted my memory card with the necessary ext2 partition at around 485mb. I followed all of your instructions and everything went off without a hitch. I rebooted my phone and it says I have 453mb of system storage space. So far so good, but now I've installed about 30mb of apps and have seen no decrease in the amount of free space. Have I done this right? Is the phone showing me free space on my ext2 partition and my apps are still installing to the phone memory?
[G1 Android Development] andonnguyen:
Thank you!

I haven't ran into any problems as of yet, things seem to be running fluidly. I'll be sure to report any problems I find by tonight. Thank you!
[G1 Android Development] miketuesday:
Is this right?

After doing this, Here's what I got.
[G1 Android Development] andonnguyen:
Congratulations! you did it correctly! Thanks again everyone involved in making this possible.
[G1 Android Development] G'uno:
Ha Ha! Love this screen shot (WTF)

:p
[G1 Android Development] rasturn:
Quick question

I've got everything to work perfectly, great job!! 803M of internal memory and lovin it! i've got a new memory card whats the best way to transfer the data without having to redownload everything. i got a class 6 ready for a speed up.

running JF1.5:confused:
[G1 Android Development] robpet2:
might have to give this a try this weekend..
[G1 Android Development] isolated_epidemic:
???

Anybody try installing apps and see if the internal memory amount adjusts? Mine still says 453mb which is what it said after setting it up. I've now installed approx. 50mb worth of apps and games and haven't seen the number change at all. Anyone have a solution for this?
[G1 Android Development] andonnguyen:
Yeah, mine is stuck at 1367. I've also found that my wallpaper wouldn't change until I restarted the phone.
[G1 Android Development] david1171:
something strange

I have an app (musical pro) that after doing this the phone refuses to recognize or even download. When i tried to re-download it after uninstalling to see if that helped my phone rebooted itself after downloading the app and refuses to install it. I can download other apps fine. Its just this one that I have noticed so far. Other than that, this method worked perfect for me. I greatly appreciate everything that the developers do to further the phone.

edit: after doing a factory wipe and doing this again it started working perfectly and i got every app to work now. also it no longer reboots my phone after market downloads are initiated. thank you so much.
[G1 Android Development] rasturn:
same problem with live 1 recorder
[G1 Android Development] notxel21:
My Market apps won't download. Everything worked because I have 834MB free but the market apps won't start downloading. And ideas??:confused:
[G1 Android Development] andonnguyen:
My market is working fine. It might just be your connection.
[G1 Android Development] aloa64:
Did you try reformatting the card and recreating the partitions? That fixed it for me (as well as clearing the cache and data - alt+w in recovery). Although when I was installing a buncha apps, my phone crashed and then it got stuck at the android logo boot screen. I'm debating on whether I want to go back to the symbolic links or to use this method again...
[G1 Android Development] svxdriver:
would it be possible?

I don't know if its possible but I was thinking would it be possible to have the app you are writing to move the apps between internal memory and sd memory to watch for when programs get installed and prompt for the user to decide where to move it to? I was just thinking this would make it convinent to get things to the sdcard during installs..
[G1 Android Development] shinobi_uk:
I've followed the steps from above yet my storage only shows as 50mb and this goes down when i install apps, so i can only assume that it's not working for me, any ideas?

edit - Repeated the process and now it appears to have worked, I must have chimped something up during my 1st attempt.
[G1 Android Development] ctecamp:
Market Problem

I'm not sure if this is because of ads2sd or not but about 30 minutes after completing the tutorial when everything was looking good the market started giving me this error...

A Server Error has occured Retry or cancel and return to the previous screen.

After s couple of retrys it force closes.

I have rebooted and reflashed the JF1.5 update, still the same.

I have put app, app-private, and dalvik-cache on ext2 partition of sdcard not data.

ctecamp@gmail.com

Rooted G1

Jesusfreke 1.5

a2sd

Openhome
[G1 Android Development] MarcusMaximus04@gmail.com:
It seems as though some apps rely on which device they are on rather than what directory they are in. I'm not sure of the reason at this time...
[G1 Android Development] ctecamp:
To fix this I had to start over, wipe them flash.

I purchased a2sd on the market to help support your work on this, however when I run the app it reboots my phone about 1 sec after I hit copy apps to sd and it doesn't.

Am I missing something?

I have the ext2 partition, I have init.rc and a2sd.sh on my sdcard root.

I ahve been working on this for two days, any help would be appreciated.

ctecamp@gmail.com

Black Rotted G1

JF1.5

Openhome
[G1 Android Development] MarcusMaximus04@gmail.com:
init.rc goes in /data and a2sd.sh goes in /system/bin for one. Also, it's supposed to reboot. It does this to make sure the apps get refreshed so everything works correctly.
[G1 Android Development] ctecamp:
Apps2sd.apk

The tutorial says to put the two files in the root of the sdcard.

I "can" copy them to those directories.

I realize it is supposed to reboot for reasons stated, problem is nothing is getting copied.

An when I install new apps they still go to internal.

I have done the old method with the links and it all worked so I know my partition is okay.

I was trying to get "the new improved more stable" method.

When I did the "new method" by the tutorial it worked but soon the Market crashed.

Did this twice and everything looked okay then as I stated earlier about 30 minutes

after I was done, no Market.

Thanks for the reply Marcus

ctecamp@gmail.com
[G1 Android Development] MarcusMaximus04@gmail.com:
Did you run this part:

su

mount -o remount,rw /dev/block/mtdblock3 /system

cp /sdcard/init.rc /data/

cp /runme.sh /data/

cp /sdcard/a2sd.sh /data/

? That copies the init.rc and a2sd.sh to the /data directory(sorry, a2sd goes in /data, on my phone it's in /system/bin since that's where the Dude put it.).
[G1 Android Development] MarcusMaximus04@gmail.com:
New version is up with private-app fix.
[G1 Android Development] LucidREM:
just be sure no one has /system/sd/data filled with files or they will be gone .. yes?
[G1 Android Development] jikei:
MarcusMaximus04@gmail.com,

I had your old a2sd.sh script and I think it reported like 60someodd mb free, I just used your new a2sd.sh script (only thing I replaced) and it's to showing how much free space on the SD card again instead how much internal memory free? Purpose or accident?
[G1 Android Development] Rekna:
Is the only way to move apps back and forth between internal and sd card via the command line? I see some great potential for being able to do this via a gui.
[G1 Android Development] overground:
Ok. I just updated to the new script, and everything is working as advertised. The only thing is that I first put a2sd.sh in /data/ (which didn't work for protected apps) then redid the steps, putting it in /system/bin/ (which worked). My question is, is it ok to leave that copy in /data/, or should I delete it? Again, thanks, Marcus for your painstaking efforts....they are appreciated.

Edit: Market stopped working, so I deleted the a2sd.sh I originally put in /data/. All systems seem "go" now. Protected apps still download and work.
[G1 Android Development] Henchman:
So, I'm using the new, non-symlink way of apps2sd, and some programs will not install.

Any ideas?
[G1 Android Development] bountyhunter:
To Marcus:

See your new update. I want to ask that when I want to apply these new script, do I have to repeat the whole process or just do this part:
[G1 Android Development] c_low29:
for some reason i do the tutorial good everything runs fine i move the dalvik cache and everything but i cant seem to get 72mb free the max i have gotten is 68mb
[G1 Android Development] overground:
That's all you're gonna get now that system/data isn't moved...it's better that way.
[G1 Android Development] overground:
Which ROM are you using?
[G1 Android Development] c_low29:
im using jf's 1.5
[G1 Android Development] overground:
Well I think you should download the new a2sd.zip that's posted in the first thread and follow the instructions again starting with the cp commands. It's Marcus' new script (updated this evening) which addresses the protected apps issues. Reboot when finished. Hope this helped.
[G1 Android Development] AsaSpades:
Um ok I did this tutorial, and now all my apps force close, and have messed up icons on the home screen. I had a2sd b4fore, and I did the steps to remove them, and now im screwed completely, what can I do? And I didnt do a nandroid backup(go figure)
[G1 Android Development] c_low29:
yeah i did this right now per the instrctions letter for letter new apps2sd 2from market dowloaded tonight still only 68mb maybe im forgetting to make a folder i made

system/app

system/dalvik-cache

system/app-private

am i forgetting one???
[G1 Android Development] Spyderlotus:
awesome

thanks marcus for helping me to understand this lol. i clearly see whats going on now, and we have some really smart people here working with this linux system. now that i know i tricked the system, i just need to format the ext2 and make it bigger. well not right now, i still have PLENTY of space. thanks again marcus.
[G1 Android Development] overground:
Unless I'm mistaken, (or typo on your part) I believe it should be:

system/sd/app etc.
[G1 Android Development] ctecamp:
New Script

Which script is it? Is it included in market app?

Found my problem earlier with market crashes after doing tutorial.

A app in my backup called TA Utility for root users.

It moves varies caches to sdcard ie Market, Browser, Maps,

it worked fine before, however it is not compatable with apps2sd because it destroys

market access and cause a lot of other crashes and force closes.

Got rid of it and AppsToSD 2 worked and Market came back, all seems well.

ctecamp@gmail.com

Rooted Black G1

JF1.5 a2sd Openhome
[G1 Android Development] ctecamp:
New Script

Just ran new script and indeed copywrited apps now work.

Will the available memory pointing to the sd card give any false sense of wealth, is it possible for the internal memory to become loaded with data and bring things to a halt?

ctecamp@gmail.com

Rooted Black G1 JF1.5

a2sd OpenHome
[G1 Android Development] ctecamp:
This phone now ROCKs

Marcus, I don't know what refinements or fixes you put in the new script, but everything not only works but faster and smoother. This is the fastest this phone has ever been.

Thanks and oh yes a donation is coming.

ctecamp@gmail.com

Rooted Black G1 JF1.5

a2sd Openhome
[G1 Android Development] MarcusMaximus04@gmail.com:
Wow Good to hear everyone is getting this working. I was expecting to come back to about 100000 comments about how the new script is broken. Well now I'm back and about to see if I'm right in thinking that my new appstosd2 build is working perfectly with built in partitioner :D
[G1 Android Development] JeffGale:
soo..

Marcus never lets me down. :) Awesome cat.
[G1 Android Development] MarcusMaximus04@gmail.com:
New appstosd2.apk posted, now with a built in partitioner if you don't have the partitions set up already. Please be on wifi when using the partitioner(it has to download MartinFick's SDSPLIT). Thanks go to MartinFick for his work getting sdsplit working.
[G1 Android Development] kevo:
I've got a new class 6 card arriving today/tomorrow.

I'm running JF1.5 with the lucid script for apps2SD.

What would be my best way of moving onto my new card and incorporating this improved version from Marcus, instead of the symbolic links from lucid?

Will I have to lose any settings or data along the way?

Also when I have this up and running would it be sensible to move important apps such as a replacement Home back across onto the phone?

If there are some apps on the phone and some on the card, how do you identify what is installed on which?

cheers
[G1 Android Development] c_low29:
yes that is a typo i didnt want to type it all out sorry but those are the folders i made.
[G1 Android Development] sandshrimp:
Unable to Install Power Manager

Hey Marcus, I bought the appstoSD2 a couple of days ago and it seemed to work flawlessly with Dude's 1.1a. However, I went to install power manager full and I received a foreclose when trying to open.

I checked the app and app-private folders on the SD card and could not find it. I noticed that app-private folder was empty and tried to install another app that saves to there but it also foreclosed.

Both apps installed successfully but they are not in the SD app-private folder. Could they be installing on the device but when launching the device looks at SD app-private folder.

How can I check to see if SD app-private is correctly working? Not sure what to do.

Note that in Linux, both the app and app-private folders are in /media/disk directory. I imagine this is the root of the SD (or sd/app, sd/app-private on phone).

Any help would be great

Thanks
[G1 Android Development] mastermindg:
I just upgraded my phone using dreamimg and have a fully functional, rooted cupcake env. Everything is great and a lot of the bugs that I saw in RC33 have been fixed.

I'd like to setup apps to sd but from what I've heard it has caused some problems with Wi-Fi, etc. I've already formatted my sdcard with an EXT2 partition. I imagine that mounting an "apps" directory should be just a matter of modifying an entry to a config and initializing the device. However, when I look under /system/modules/2.6.27-00..../kernel/fs there is no ext2 module available.

Is there a way to set this up WITHOUT installing a new image?

___________________________________________________________

T-Mobile G1

ROM: Dream-devphone-userdebug 1.5 CRB21

Radio Version: 2.22.19.26I
[G1 Android Development] mastermindg:
Disregard my last post...It's early :)
[G1 Android Development] borodin1:
Same thing here, I only have 2 protected apps and both of them force-close.

Just to let some steam out... I fail to see that this method is more stable. 400+ posts in this thread and who knows how many in Dude's thread just don't convince me. And one of the problems I see with this is that, since the system thinks system/blah is the same as system/sd/blah it will wipe it when you wipe the phone. With sym-links all you had to do is throw in another ln-s and everything was back to normal.

More on that.... I can't remember where or how, but somewhere I saw that this script will delete any sym-links that we put ourselves, is that true? What about links for individual program caches that I don't even want on ext2? Like browser and market that used to go onto fat32 partition? I know that moving data/data was never a good idea (even though some people were successful) but we always moved parts of it. For example my browser cache was up to 200 megs right before crash... fit that on internal memory....

So there... steam is out... ready to be flamed
[G1 Android Development] Nogoodpunk42:
A little help

I recently got apps2SD. I did everything I was supposed to do.

Format sd. Install and run program. Nothing but a reboot.

Ok fine. I then went through the tutorial downloading and copying init.rc.zip + a2sd.sh to sd, using the terminal, etc.

So the phone reboots starts up and I install a new app to test where it's going...... internal memory! What am I doing wrong!?!

I have /system/sd/app

also I'm running JF 1.5 with root