yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] overground:
That is by design. Dalvik does not require rebooting after being moved.
[G1 Android Development] overground:
It will work with a class 4, I ran it that way for awhile. However, I highly recommend getting yourself a class 6. You'll thank yourself in the long run. Class 6 is also slightly faster than the phone's internal memory. They're cheap. I got my 8GB class 6 off ebay for under $20, shipping included. If your going to go through the whole apps to sd thing, I'd test it with your class 4, while you're waiting for your class 6. But you're going to have to do it all over again when it arrives.
[G1 Android Development] cal3thousand:
I've had this running on JF 1.5 for a few days now with only a few issues:

1) I've noticed that when I am downloading an app, if I get an email or msg at the same time, the phone freezes. I have to reboot 2-3 times before its back to normal. This has happened a total of 3 times, so basically once a day.

2) I just checked my /system/intmem and it says only 19Mb free of 74.8Mb? This doesn't seem right as I have app, app-private, and dalvik-cache moved. I had more than 50 Mb free with those move using symlinks. Could my other caches be taking up 30Mb? and if so, do I just use the clear cache options or do i go into Terminal and rm?

EDIT: So I found out that browser cache was hogging up /system by going into /system/intmem/data/com.android.browser/cache/webviewCache. It was about 27 megs. So I went to the application data screen: It said total: ~30mb, app: 302k, data: 1.99mb. weird. Then I hit clear data and it went to Total: 301k, app: 301k, data: 0.

Opened the browser and exited and check again and got: total: 1.15Mb, app: 301K, data: 880kb.

So... those of you coming from the symlinked method and had the caches moved. REMEMBER TO CLEAR YOUR CACHE... every now and then. That is all.
[G1 Android Development] lightforce:
my phone loop'd also after i did the older instructions and even these new one :(
[G1 Android Development] borodin1:
$15 @ MicroCenter if you have one by you, 8gb class 6, had it since November-no problems.
[G1 Android Development] cal3thousand:
Question about the APK

If I want to use the memory display of this application, but I ran the MOD using the manual a2sd.zip, What do i need to know?

do I just install the thing and not use certain functions? TIA
[G1 Android Development] overground:
If you've installed the manual way and everything's working, there's no need for the .APK.
[G1 Android Development] cal3thousand:
I know, but it says he has a memory display tool.

I'm just seeing if there is a quicker way to check internal besides doing busybox df -h
[G1 Android Development] cal3thousand:
DALVIK on internal vs. card

So I moved the dalvik-cache, apps and private.

I went into /system/intmem/dalvik-cache and saw 5 files. These files were also in the /system/sd/dalvik-cache:

system@framework@android.policy.jar@classes.dex

system@framework@core.jar@classes.dex

system@framework@ext.jar@classes.dex

system@framework@framework.jar@classes.dex

system@framework@services.jar@classes.dex

I deleted the ones in intmem after backing them up to a temp folder, and rebooted. It seemed to stick like 4 reboots and after I let it sit on its own, it came back. Checked the intmem dalvik and there are 3 files there:

system@framework@core.jar@classes.dex

system@framework@ext.jar@classes.dex

system@framework@framework.jar@classes.dex

Questions: How do these files get here? Do I need the other 2? And if I do need them in the 'intmem' section, can i delete from the 'sd' part?
[G1 Android Development] overground:
Ahhh...gotcha. None that I know of other than what you've mentioned. Sorry
[G1 Android Development] MarcusMaximus04@gmail.com:
Appstosd2 doesn't do anything unless you tell it to, so you should be safe enough just installing it and running it to look at the available memory. Just don't press any of the buttons except quit(it won't hurt anything if you do, it'll just try to move the apps or the dalvik-cache, meaning it'll move nothing.)
[G1 Android Development] cigar3tte:
I was using symlinks before following the instructions on here. My question is, how come I didn't lose my apps like the instructions said I would (finished the procedure here)?

Sorry if it's within the 60 pages of threads, I can't think of a good keyword to search for this.
[G1 Android Development] cal3thousand:
SO... after some playing around I found:

1) my phone was very unstable only have the 3 files in intmem/dalvik. I received an incoming call and then it dropped. and then it would NOT make a call out. Click a number, no action, no long press either.

2) I moved all the files from sd/dalvik that started out with 'system@framework...' to the intmem/dalvik. It takes some more room, but my phone seems very snappy now and it booted WAY faster without getting stuck. The market is WAY faster and I don't seem to have the problems with concurrent downloads. I'll have to see if the messaging / market issue goes away.

I am ALOT happier now. (for now, I'll report back if anything changes)

Thanks again Marcus!

BTW, anyone wanting to do this, adb shell and paste the following commands one at a time. This is ONLY if you have moved the dalvik-cache folder to sd. Warning: someone else should test this out after running a nandroid backup as I take no responsibility for what may occur. :p :

EDIT: brought to my attention that the forum was thinking these things are email address with all the asperands in there, so apparently the code i supplied has spaces where they shouldn't be. If you want to try this move, Marcus posted a (WAY) more concise way using wildcards on the next page
[G1 Android Development] cal3thousand:
Thanks! I'll try it out.
[G1 Android Development] cal3thousand:
Your apps are on the SD card already, so you didn't lose anything. He said that you might lose *data*. I went from symlinks to this method without losing my apps as well.
[G1 Android Development] MarcusMaximus04@gmail.com:
Indeed, and the only reason you'll lose data is if you moved it to the sd card(I mean moved the actual /data/data directory there), because my script will delete it if it's there.
[G1 Android Development] MarcusMaximus04@gmail.com:
Hey all, I just wanted to say thanks to everyone who's donated to me, bought my app(s) from the market, or even just expressed gratitude for my work. It's because of you guys that I can keep going with this and reading about how I've made a difference and made the experience of this phone better always brightens my day. Thanks again to everyone.
[G1 Android Development] MarcusMaximus04@gmail.com:
You can also do this by doing:

cd /system/sd/dalvik-cache

cp system@framework* /system/intmem/dalvik-cache

rm system@framework*

:)
[G1 Android Development] overground:
Hmmm...don't know which one's easier??

@ cal3thousand: Your code contains various spaces and unfinished lines which could lead to nightmares for some people (such as .de x and ...). Please go through and correct those lines, since copy/paste will not work for people. Thanks for the post and the effort, however!

@ Marcus: Well, thank you, too. You are awesome!
[G1 Android Development] cal3thousand:
Thanks for catching that... the forum kept adding '[e-mail]' and '[/e-mail]' in there. I deleted it as everyone wanting to do it should go the wildcard route.
[G1 Android Development] rasturn:
easliy worth a buck
[G1 Android Development] MarcusMaximus04@gmail.com:
New version up, can now manage specific apps and their dalvik-caches to move to or from the sd card. Enjoy :)

EDIT: That's new version of appstosd2, the app.
[G1 Android Development] j8dailo:
i finally got this installed and working but one more thing...i just installed like 50 apps just to see if it works but no matter how many apps i install..the internal memory still shows the same amount of memory.... any ideas?
[G1 Android Development] MarcusMaximus04@gmail.com:
Have you made an app directory on the sd card? If you haven't then it's installing apps to the internal memory(what's displayed in the "sd card & phone storage" settings display is now the ext2 partition on your sd card). You can also use my app to do this.
[G1 Android Development] MarcusMaximus04@gmail.com:
Another new version of appstosd2 is up with some minor bug fixes. Just letting those of you know who downloaded the version immediately before(all 7 of you)
[G1 Android Development] xJCHAVx:
Hi I just joined and I have to say this place is great. and big thanx to all u guys that offer ur time and support...... I'm running into a bit of a prob... I just installed appstosd2 from the market and got several force closes in the middle of applying partition sizes. Now keep getting a low on space notifi. in the notifi. bar. System settings>SD card and phone storage shows total space 603MB on SD card and 6,447MB availbale space internal but I keep getting a low on space notification. I'm running JF ADP 1.5. Ne Ideas ... n e help would be much appreciated.
[G1 Android Development] ragingthai1234:
thank you much MarcusMaximus04 for answering my questions and clarify things. just need to know alil more, well im running the JF 1.5 with a 8gb sd card class 4 with 7.2gb being the fat32 and the rest ext2. but the part of ext2 shows up to be the internal memory i started out with no apps at 342mb on the internal memory and started with 7.2gb sd card memory but after i install like 40 apps only my internal memory went down to 330mb. and i was trying to find the apps in system/sd/app but nothing is in there and cant seem to find the files with all the apps in it. can u please clarify for me how to really know if the app to sd is really working? sorry but i tried reading all the post on this thread but i cant really seem to understand whats really goin on. im just a noob that followed all your instruction.
[G1 Android Development] misaelrod:
Victory!

WooHoo! Victory! after following MarcusMaximus04 and T-mobile Tech Support advice, I did a factory data reset.

Shutoff

Home + Power Button

Alt + W

Home + Back

After the phone rebooted, all my data synced up again. Then all I had to do in the terminal emulator was:

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

Because all the work had been done beforehand, when I got back in, all my apps where there... the only thing I lost was my bookmarks, the usernames and passwords on all my apps, and the accounts on my email app.

Everything else is working right, my internal memory shows the correct amount, I have no Low on space notification, everything works and syncs perfectly, including the market.

Thanks again MarcusMaximus04 and everyone else that posted what has worked for them.
[G1 Android Development] PlatinumMOTO:
I did everything in the tut and I have now 123 out of 151 mb because I read that 160 would be more than enough for the apps.

I'm on jf 1.5 Lmod and when I install apps the amount goes down not all the time but most of the time.

I now have 98mb with 42 apps installed but when I use your app it says nothing is on internal so why is my storage going down is it supposed to?
[G1 Android Development] stellarman:
Thank you.

Hey Marcus,

Just wanted to say thank you for the application and for all your work on it. And, thanks for making it available here for free, as well as on the Market. That's the spirit of Open Source.
[G1 Android Development] dixxa:
heya guys,

I had to send my phone back to android usb port was dead. But I'm back :)

I have i little question.

I'm currently using the dude's rom

I've managed to use unionfs everything seems ok

even with that app2sd.apk

Marcus let me thank you first for all this work.

I have one small problem though.

When i go to system I only see my internal memory 58Mb ...

this the output of my df -h :

# busybox df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 48.2M 0 48.2M 0% /dev

tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals

/dev/block/mtdblock3 67.5M 60.8M 6.7M 90% /system

/dev/block/loop0 492.0K 492.0K 0 100% /system/modules

/dev/block/loop1 3.4M 3.4M 0 100% /system/xbin

/dev/block/mtdblock5 74.8M 20.3M 54.5M 27% /data

/dev/block/mtdblock4 67.5M 1.3M 66.2M 2% /cache

/dev/block/mmcblk0p2 980.0M 120.7M 808.6M 13% /system/sd

/dev/block/mtdblock5 74.8M 20.3M 54.5M 27% /system/intmem

unionfs 980.0M 120.7M 808.6M 13% /data/app

unionfs 980.0M 120.7M 808.6M 13% /data/app-private

unionfs 980.0M 120.7M 808.6M 13% /data/dalvik-cache

/dev/block//vold/179:1 6.5G 5.7G 843.7M 87% /sdcard
[G1 Android Development] dasoccerbomb:
so confused .....

where do i begin..I ended up reformatting my ext because of stale NTFS error but anyways i dont understand what this appstosd2 app is doing... after wiping my phone i downloaded the a2sd and appstosd and followed all directions in the first post. before running the appstosd2 app i looked in my /system/sd folder and there was only a lost + found folder.... After running the "copy Apps to Sd" and Copy dalvik-cache to sd i now have an app, app-private,dalvik-cache, and a data folder? I never created this data folder where did it come from i thought it was bad to have on the sd card???????
[G1 Android Development] beagz:
so let me see if I got this right. Using dude's 1.1a

init.rc goes in /data

a2sd.sh goes in system/bin

I have symlinks now so I recreate /data/app etc. folders in the recovery terminal first and then the rest is automatic?

I kept having problems with the protected apps so I am just trying to confirm before trying this again.
[G1 Android Development] Sistum Id:
Quick question, I'm getting the "Damaged sdcard" message after unmounting here and there. Usally a reboot and I'll be good. But I wanna format it. But if I let the phone format, will it format the whole sdcard or just the partition with the fat32?
[G1 Android Development] mrhaydel:
Resizing the partition?

When I initially ran the Apps2SD app, I wasn't sure exactly how I should have my partitions resized.

I'm (for now) using the 1GB sd card that came with the phone (just got it today), and so just because I wasn't certain of what to do, I made the ext32 partition ~200MB.

Is that enough? Suppose I want to change the size of those partitions? What's the best way to go about that?

I searched around this thread, but I don't believe I saw anyone else asking this question.
[G1 Android Development] MarcusMaximus04@gmail.com:
Holy crap there's a lot of questions here. I'll try to answer them but sorry if I miss yours.

Ok, first, the internal memory will still go down, just not as much. The normal data cache is still gonna have to be on the internal memory no matter what, but you should be good enough that it won't run out.

Next, the reason why a data "folder" shows up in your ext2 partition is because my script creates a symlink from the ext2 partition back to the internal memory, which solves a problem with changing the wallpaper.

For resizing the partition, you can use the phone to reformat the sd card(from home screen menu->settings->sd card &phone storage->unmount sd card->format sd card. This will clear out all files on both partitions and return you to a single FAT32 partition, so back up your stuff if necessary.

Finally, for The Dude's ROM pretty much everything is automatic, it will remove any improper symlinks for you so no need to worry about that. For updating the script with The Dude's ROM, there's no need for my init.rc, just replace a2sd.sh in /system/bin with the one from the a2sd.zip.
[G1 Android Development] beagz:
Thanks for the reply. However, everytime I have tried it protected apps do not work. It seems that nothing gets written in app-private. All I get are the generic icons and on reboot they are not there at all (protected apps only)
[G1 Android Development] m3@twad:
apps2sd2

i have been using the gi from day 1, i am on jf1.5 and have downloaded the new appstosd2 app, my question is can i just run it and it will do everything or do i need to follow the steps provided in the "new and improved instructions" fo the apps to sd???????????

thank you to any one for help.

ps, u can email me if you have any usefull info.

almosst correct on the command there, there is actually a space between the "-o" and "remount" so it should read

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

that would make your system partition read write, but if you wanna run shell scripts i would go grab gscript and just write them in there.

Haha that's funny. Ive been typing: "mount -o rw, remount -t yaffs2 /dev/block/mtdblock3 /system"

But. That's just what works for me. Found it when I first rooted my phone

found how to make it r/w
[G1 Android Development] Sistum Id:
I just did a wipe and figured I would go ahead and buy the AppsToSD 2 to support you Marcus. When I tap "Copy Apps to SD" button, my G1 quickly shuts down and restarts. When it reboots no apps to sd...

Edit: I just went ahead and did the manual way tho terminal again and everything is good. O well.
[G1 Android Development] MarcusMaximus04@gmail.com:
If you're using JF 1.5 you have to follow the steps on here as well. With the Dude's ROM 1.0 or > you can just use my app.
[G1 Android Development] MarcusMaximus04@gmail.com:
Make sure you're running the latest version of my script. If you're using The Dude's ROM, he hasn't updated to my latest version yet which fixes that bug. Follow the update instructions on the first post.
[G1 Android Development] beagz:
I downloaded the program from the market and ran it. Is there another step?
[G1 Android Development] MarcusMaximus04@gmail.com:
I mean the scripts from this post, they're in a2sd.zip attached to the first post. Instructions on updating the scripts are on the first post as well.
[G1 Android Development] beagz:
Wow a complete circle. Now I am back on my original question. I placed a2sd.sh in system/bin I was unclear what to do with init.rc
[G1 Android Development] mygti02:
ok so im having the wallpaper issue, and just found out that i need to download and install the newer files on the first page. I moved everything to my SD card, will i need to do anything special? or just run the commands that are on page one again. let me know asap thank you!!!
[G1 Android Development] MarcusMaximus04@gmail.com:
Sorry, must have misunderstood you. You don't need init.rc, since there are no changes from the Dude's and he has what's in it in a different file.
[G1 Android Development] MarcusMaximus04@gmail.com:
Just run the commands I have down for updating the scripts.
[G1 Android Development] m3@twad:
mkdir /system/sd/app why is it when i try this comand it tells me it can not and that it is a read only file system

and yes i did the su command

but i did do the

cp /sdcard/init.rc /data/

cp /sdcard/a2sd.sh /data/

no problem

how do you make the phones file system read/write?
[G1 Android Development] mygti02:
sweet it worked thank you my friend!!

I didnt even see those commands, i skimmed right past them LOL
[G1 Android Development] mygti02:
marcus,

according to your apps to SD program, it says my int phone memory is 40MB/78MB even though my apps are al on my SD. Why would my memory be so low?
[G1 Android Development] Chahk:
Thanks for instructions and answers, MarcusMaximus! Everything works as it should here.
[G1 Android Development] theslam08:
Beautiful work man, though one thing. The first topic, I think it would be beneficial to maany if you made it slightly easier to navigate (big titles for each rom with specifics on what to do). I missed a step to which it just restarted my phone anytime I tried to "copy to sd" and hadnt realized I missed adding the two files to the phone folders.

After many minutes of trying to figure out exactly which part I needed to do I have got it to work, and it works VERY well. GOOD job on this man :) thumbs UP!
[G1 Android Development] wimbet:
I figured I would newb test the new appstosd 2 from the market. My results - epic fail.

I tried to approach the situation how any rookie would... Download app from market and don't read instructions. :)

Starting with JF1.50 installed. No previous apps to sd.

1. I used appstosd 2 to partition my sd card. I used the slider then attempted to use the keyboard to enter an exact amount. I am thinking this may be where things went wrong. I had an 8Gb card and made the ex2 partition 1gb. Partition finished and said "Done!" so I hit "Reboot".

2. When the phone came back up, I launched appstosd 2 again and I got the "Oops..." message that says follow the tutorial.

3. I visit the forums and read that I need the a2sd.zip extracted on the root of my sd card. Try to copy the file over and find my sd card is recognized by windows but unreadable. Windows is reporting the sd card is 4gb. When I try to create a new file or folder on the sd card, it says it is full.

4. Format the sdcard and copy the files from a2sd.zip to my sdcard. Attempt to follow the guide but not sure if my sd card is messed up. Browse through the 65 page thread and see no obvious fixes. I reboot the phone and find it hangs on the t-mobile g1 screen.

5. Swap sd cards to wipe and flash back to jf1.50 and everything is working.

So somehow I managed to screw up on the very first step. I'm not sure how the sdsplit partition went wrong, but it did. I was connected via WiFi like suggested.

I was able to repair the 8gb sd card by formatting it from the phone settings menu. I will try again in the morning following the guide and see what happens.

I know I didn't follow the guide the first time, but I figured a lot of people would not read it either.

Is there a reason the appstosd 2 apk does not also download the a2sd.zip and extract the files to your sd card? It would be nice to have the single app take care of all the file downloads and commands for ultra newbs (like myself).

Thanks for all your hard work. Look forward to trying to "break" my phone again. :) My goal is to write a beginners guide for 1st timers and I want to cover how to recover from problems so I thought I'd give it a shot. Your work is great, but I want to make it more accessible for the non tech/linux g1 owners.
[G1 Android Development] m3@twad:
brick

well after following the instructions i tried useing the apptosd2 app, partitioned the g1, then rebooted. it just hung on the g1 screen forever so i rebooted, pulled the battery , tried safe mode with no luck, all it does is hang on the g1 screen so i guess i will go back to factory default and start over
[G1 Android Development] m3@twad:
totaly bricked

well my phone is fu*ked, wont even factory restore, its done, all because i wanted to free up memory, well i know it worked for some so i wont hate on the developer because it most likely was something i did, good thing i got insurance.
[G1 Android Development] SpyderMS:
First time using any kind of Apps2SD method, and it worked absolutely perfect. Went from JF 1.5 to Dude's 1.1a after a wipe, ran the Apps2SD program, reboot, and now I have 200MB of space for apps :D

Marcus, a quick question. Does your app only copy the Dalvik cache, or does it copy all of the app caches from Browser, Market, etc? Just curious because I downloaded the "Move Cache for Root Users" app, and was wondering if it might cause complications.

Also, for a future update, could you allow us to manually type in an amount of space to use for apps, rather than having to use the slider?

Edit: I notice that if I remove the SD card, even after unmounting from inside Android, the phone does NOT seem to like this. Begins to constantly reboot. I need to do a battery pull and then put the SD card back in, and power back on, and then everything seems to work normal again. Is this typical?

-John
[G1 Android Development] m3@twad:
console

well i can get to the console to enter commands, but thats it. please some one help, save my phone.

email me please

bradwestbrook82@gmail.com
[G1 Android Development] m3@twad:
got it back

i managed to put the jf mod on my sd card with my computer then in recovery terminal i did "apply update" or alt-s and reboot so my phone is back to factory, so its back to rooting and hacking