yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] kevo:
I've just realised that this part is not exactly true.

I can install/reinstall and update apps and they show up and run fine. And are installed to the SD card as should be.

But on a restart they are then gone from the launcher and if I click open from within the market it tells me they are not installed (even though it says installed next to them).

I'm stumped.
[G1 Android Development] MarcusMaximus04@gmail.com:
Mine is mounted at /dev/mmcblk0p2 as well, and works perfectly, so I doubt that's the problem. Could you do an ls -l in the /data/app directory? I'm wondering if this is a permissions issue, i.e. the system doesn't have the permissions to read the old apps which would explain why it can see the new ones but not the old ones.
[G1 Android Development] MarcusMaximus04@gmail.com:
Wow... I'm wondering if somewhere along the way the filesystem for your sdcard got messed up... or if your ROM did..
[G1 Android Development] MarcusMaximus04@gmail.com:
damn! All that looks correct too... Ok, last ditch effort time(don't worry, I won't have you delete anything). Try this in terminal emulator:

cp /system/sd/app/android.tether.apk /system/intmem/app/android.tether.apk

rm /system/sd/app/android.tether.apk

reboot

and see if that makes the tether app show up again. If it doesn't then something is really weird cause at that point it'll actually be on the internal memory.
[G1 Android Development] borodin1:
Well, I got thru 2 days with no crashes yet... few misc. force-closes but nothing major like restarts or boot loops, so that's a good thing.

The bad thing is that it feels like my phone became pretty slow in a "weird" kind of way.

It registers screen touches instantly and performs the action right away but then it kind of hangs there for couple of seconds. For example: If I want to open Gmail and click icon on my home screen it will open up Gmail window instantly but that window will be empty for 1.5-2 seconds and after that it will show "loading conversation" animation. Same thing with Alarm, StreamFurious and pretty much every other app I open. Did anyone notice anything like that?

@Markus

$ su
#
# 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.5M 7.0M 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 493.6M 62.6M 405.6M 13% /data
/dev/block/mtdblock4 67.5M 1.2M 66.3M 2% /cache
/dev/block/mmcblk0p2 493.6M 62.6M 405.6M 13% /system/sd
/dev/block/mtdblock5 74.8M 23.9M 50.8M 32% /system/intmem
unionfs 493.6M 62.6M 405.6M 13% /data
/dev/block//vold/179:1
7.0G 150.1M 6.8G 2% /sdcard

Is there a reason /system/xbin, /system/modules and /system are @100%? I know that mine /system is not but it was before I deleted some ringtones. Can this cause any problems, either now or in the feature?
[G1 Android Development] kevo:
Not showing up :(
[G1 Android Development] infinatenothing:
So I followed instructions and everything seems to have worked. I have 63mb or free internal memory but I still get a low memory notification even though it shows a rediculous amount of free space when I look in settings. Anyidea what's causing the notification or how I could fix it?
[G1 Android Development] borodin1:
Did you try to clear you internal caches (market, browser, streetview, maps)? Not sure if it would help but worth a try.
[G1 Android Development] MarcusMaximus04@gmail.com:
Oh dear... alright... this is too strange. Well it's definitely not a problem with the sdcard then. Can you try flashing vanilla JF1.5(non-Lucid version) and put in the scripts and see if that fixes it? Maybe something funky is happening in the system folder and it needs to be cleared out...
[G1 Android Development] MarcusMaximus04@gmail.com:
What happens if you try to install an app?
[G1 Android Development] cyber_quisp:
AppstoSD2 Helpfull Hint

Hey Everyone;

Like you all, I too have had character building situations to get this to run properly on my G1. :( Let me tell you what I did that made a difference: I am using JFv1.5ADP.

*** Make sure you backup or copy off everything off your SD card before doing this process....you will lose data**** Copy to a directory on your computer. :)

1. I Started off with a 4 GB FAT32 SD Card (Off course have your phone rooted)

2. I downloaded AppstoSD2.zip and A2SD.zip (I extracted the .apk file for apptosd2 and I also extracted the 2 files from A2SD.zip. I copied them onto my SD card with no folders present (root). During this time, this program will ask you to format your SD Card. I did this to see if these files would survive the format. So I rebooted the G1.

3. Using Linda Manager File manager; I ran appstosd2.apk........You will go through some root access screens. Finally it asked me to Format this SD Card. I allocated 500mb for the EXT2 partition, and the rest stayed at FAT32. While this was formatting; I recieved an error stating if I wanted to Forceclose "appstosd2" or WAIT, because it was not responding....I selected "Wait", it finished, then my I rebooted the G1

4. During this reboot; it will take a little longer to come back up...have patients.

5. Once rebooted, I went to my programs, and selected "appstosd2"

Well....it did not run.....crashes.....so I took the advice of "MarcusMaximus04 Tutorial". You need to do this for this to WORK! .......

6. The SD FORMAT should have wiped all the files off your SD card so : Copy your files from the a2sd.zip to your SD card. These files are "a2sd.sh" and "init.rc".

7. Go to your Terminal Emulator, type "SU" and type these commands:

rm /system/intmem/a2sd.sh

rm /system/intmem/init.rc

cp /sdcard/a2sd.sh /system/intmem/

cp /sdcard/init.rc /system/intmem/

reboot

8. After you Reboot...."appstosd2" will FINALLY function. Copy your Programs to SD and remove from phone. Once you do this...the G1 will reboot. Again this reboot will take a bit longer

9. Once you come back up again...go to your system settings and check out your G1 Internal Storage.

10 I allocated 500mb on my SD card....My G1 thinks I have 441 MB Free. Why? As stated in the tutorial....the G1's functionality has to think it is one storage unit. So it integrates the SD card, allocated space as "free storage".

Prior to this procedure: I only had 17 MB Free, and I always kept getting "low storage" warnings. I am glad I did this....

Hope this helps you all out!

Eric
[G1 Android Development] kevo:
Done that, still the same.

After the reboot, it seems /system/intmemory/ is empty, init.rc and a2sd.sh are shown in /system/sd - but not in /data/

So somethings not right, right?
[G1 Android Development] MarcusMaximus04@gmail.com:
Thanks! That may help some people. I've already implemented a fix for the force closing if you haven't run the tutorial but haven't tested it so I haven't put it up(it's kinda a non-fix, it just brings up a screen asking you to run through the tutorial instead of crashing).

Also, for #8 I'm fairly sure he means check the checkbox for removing apps from the phone's internal memory, not remove the sd card from the phone. I'm just putting that out there in case of any confusion.
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm init.rc and a2sd.sh are in /system/sd? That's a little strange... Try this:

mount -t yaffs2 /dev/block/mtdblock5 /system/intmem

cp /system/sd/init.rc /system/intmem/

cp /system/sd/a2sd.sh /system/intmem/

reboot

It's a strange problem but maybe that'll fix it?
[G1 Android Development] lovegu:
im running dudes cupcake 1.1a now.

i got a question about a2sd thing.

i wanna move the media files to /system/sd/ and link it to /system/media

so that it will still give me the same ringtones while i connected usb to the computer.

to do so, which file should i edit to mount unionfs at the boot?
[G1 Android Development] kevo:
They are in intmem and /data/ now, but its all still the same. I even removed the ones that were in system/sd, but that made no difference either.

Dont worry if you are out of ideas, I'll have to live with it. :(
[G1 Android Development] MarcusMaximus04@gmail.com:
Woah, that's fancy. At any rate you should edit a2sd.sh to do that, but it'll require doing some fancy playing around with the unions to get it to work since normally it unions the whole /system/sd with /data to /data. Why not just use rings extended?
[G1 Android Development] MarcusMaximus04@gmail.com:
Any chance you can run an adb logcat from your computer on the phone while it starts up and email it to me? Maybe there's some warnings or something that might shed some light on this...
[G1 Android Development] kevo:
If you tell me how to do it, I'll give it a try!

adb logcat part is fine, but how do I make sure it does it while its starting up?
[G1 Android Development] infinatenothing:
I can install apps fine and my memory goes down so I know everything is working right I'm just getting a low memory notification.
[G1 Android Development] MarcusMaximus04@gmail.com:
Just run adb logcat in the command prompt on your computer(should say "waiting for device"), then restart your g1 and plug it in(preferably before it gets past the T-Mobile G1 screen).
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm, and you have plenty of of internal memory and ext2 memory? What shows up in appstosd2 for both?
[G1 Android Development] lovegu:
ok. i just edited /system/bin/a2sd.sh

it seems to be working great at the moment :)

im using rings extended but still it doesnt give the mobile the ringtones while the usb is mounted :(
[G1 Android Development] MarcusMaximus04@gmail.com:
Ah, I see, well I'm glad it worked for you!
[G1 Android Development] lovegu:
Oh... dudes cupcake doesnt union the whole /system/sd to /data anymore

since 1.1a it unions each directories to /data/[directories]
[G1 Android Development] kevo:
I'm trying to get it to save as a file, as its logging past the extents of the cmd window (windows) - using "adb logcat -f H:\logfile2" I've tried various folders and drives but I'm getting "couldn't open output file: Read-only file system"

Any tips?

EDIT.... Ah "adb logcat > H:\logfile" is working.

Obvious guess is your username is your email address right? :)
[G1 Android Development] Christopher3712:
Hmmm... wanted to try this, but attached files in tutorial don't match tutorial instructions on page 1. Browsing through thread to see what changed, or was this an accident?
[G1 Android Development] overground:
Files mentioned in the tutorial are in a2sd.zip. Unzip and put both files at the root of your fat32 partition of your sd. Then continue with the instructions. Or use AppstoSD 2 to configure your partitions.
[G1 Android Development] MarcusMaximus04@gmail.com:
Indeed it is. I didn't mean to set it to that but I started this account a while ago(when I had my HTC Touch) and misread the username section I guess...
[G1 Android Development] Christopher3712:
***smacks himself. Thought that was A2SD.apk in a zip file. I'm going to sleep now...
[G1 Android Development] kockroach:
If everything seems to work without issue, would you mind sharing what you did to edit the a2sd.sh file? Thanks!
[G1 Android Development] overground:
LMAO....that sucks! Especially in your position.
[G1 Android Development] misaelrod:
Here is the latest... After reboots, apps that I was trying to download from the Market unsuccessfully will suddenly download and install. However, my Gmail App isn't syncing and Google Talk App doesn't even try to open... My calendar does not sync either, so I have lost all sync it seems. HELP!!
[G1 Android Development] infinatenothing:
50 mb internal and 1825 mb on the sdcard acording to appstosd2. I'm now runninginto a problem where my phone locks up and I have to reboot when I'm texting not sure if its related.
[G1 Android Development] MarcusMaximus04@gmail.com:
Gah, those aren't even stored in /data... Honestly, I'd suggest you try to re-flash(without a wipe... at least at first) and see if that helps.
[G1 Android Development] overground:
Here's my logs. And while everything is working fine, my phone does show some occasional lag. The /dev/block/mtdblock3 portion concerns me. Why is it 90% used, and how do I reduce that to a suitable percentage? Maybe I'm just bored.

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 964.1M 114.5M 799.8M 13% /data
/dev/block/mtdblock4 67.5M 2.7M 64.8M 4% /cache
/dev/block/mmcblk0p2 964.1M 114.5M 799.8M 13% /system/sd
/dev/block/mtdblock5 74.8M 24.0M 50.7M 32% /system/intmem
unionfs 964.1M 114.5M 799.8M 13% /data
/dev/block//vold/179:1
6.6G 211.6M 6.4G 3% /sdcard
[G1 Android Development] MarcusMaximus04@gmail.com:
That's the partition of the internal memory the system directory is located in. I wouldn't worry about it, it ends up being however big the ROM maker makes it.
[G1 Android Development] VGPOP:
Ok. I think I did everything correctly.

Before doing this, I had 36 MB available space, and after I reboot phone I have now 226 MB

Why the sudden change?

Where did all this memory come from?

What line do I have to check in terminal (when I use busybox df -h) to see if my applications are saving in my SD?

What about browser cache?

Thanks in advanced!
[G1 Android Development] overground:
thank you.
[G1 Android Development] overground:
system/sd is your apps on sd

system/intmem is your internal memory

not recommended to move caches

the large memory size is a combo of your ext2 partition along with your internal memory size...that's just how it is...for now
[G1 Android Development] misaelrod:
Syncing Issue after Apps to SD

Ya, that didn't help. I Force Stopped Google talk and that got it working, but my gmail and calendar still don't sync... I tried sending an email and the screen says that it is sending, but does not not seem to leave, though I do get the test email. If I click on View Labels, they say they correct amount of unread emails, though I can't view my inbox :( everything else seems to be working as it should... except for Pacman... the game pays fine, but the screen flashes like crazy.

Also, every time I reboot the phone, the application "Toggle Settings" tries to Force Close when I hit the menu key to unlock.

The dreaded Low on Space notification will not go away, though I know have 2,937MB of available space in internal phone storage.

...those are some of the things I noticed... thanks again for your help guys,, I am willing to try almost anything to get back up.
[G1 Android Development] andonnguyen:
Good morning. I just woke up, my phone is hot and I found it looping at android screen. hm.
[G1 Android Development] daveid:
One issue I see, is how to you (besides doing a df from the terminal) keep tabs on your internal storage space? If I read correctly, this installs new apps to the internal storage by default, which is also used for the cache's. Unless you manually move each program to the sd memory (which some people may forget to do), you may start to eat up the internal memory - without realizing it. I know this is trivial, but still a concern.
[G1 Android Development] skri11a:
I'm wondering the same thing. The phone seems to think that the ext2 partition is part of internal memory but it doesn't seem like it automatically rolls over to the sd when the phone storage runs out. This could cause some problems if there's no quick way to see if you're out of onboard storage.

I imagine this is what's causing some to boot loop already.
[G1 Android Development] andonnguyen:
That's what it looks like..I installed about 50 apps, then it started looping, it was only reporting the freespace in my ext2 partition and after inspection of my ext2 partition in ubuntu, there were no files on it except the folder "lost+found", so I guess it filled up the phones actual internal memory, and didn't "switch" to the sd card.
[G1 Android Development] Mukanx:
I just put this new method on my phone about an hour ago, I've since installed an app from the market as well as a couple through ASTRO. I just checked the /system/intmem/app folder, and it is empty. All of my apps, including the ones installed AFTER I did this to my phone, are showing up in the /system/sd/app folder. So, either I'm looking at this wrong, or it is in fact installing them to the SD.
[G1 Android Development] andonnguyen:
So anyone correct me if I'm wrong, /system/intmem/app is the phone's actual memory, and /system/sd/app is the ext2 partition, BUT they are seen as one? So nothing seems to be installing to /system/intmem, but by default, aren't apps suppose to go there first then to /system/sd?
[G1 Android Development] Mukanx:
From what I can tell from poking around in the file system, they are seen as one and the same in /data/app, but the individual folders /system/sd/app and /system/intmem/app are separate.
[G1 Android Development] andonnguyen:
haha okay got it, its too early to think clearly right now. I'm going to give this thing another spin, see how it goes. The wallpaper thing is still bugging me lol. It requires a reboot to be set, and does not set it automatically like before.
[G1 Android Development] rasturn:
a undo for dummies

Can u tell me how to reverse this please before i do a wipe, everytime i try to download something from the market it re-boots, it worked fine with the symlink method.

thx :eek:
[G1 Android Development] overground:
You, Mr. Maximus, are a genius! Thank You!
[G1 Android Development] chicojd:
Maximus... I've been reading through this... There's no mention of when to run the command a2sd.sh. Also in the tutorial, there is a mention of a runme.sh, but it's not in the zip. I've come to the conclusion that the .ko file is the one already in JFs 1.5? Please advise...
[G1 Android Development] MarcusMaximus04@gmail.com:
1: That's because you don't run it, the init.rc file runs it automatically while the phone is starting up.

2: runme.sh is installed by default to the root directory in JF1.5

3: That is correct, it's using the only already on the phone.

Also, for people having boot looping problems, I think I might know the problem. I have a theory that the system sets up the dalvik-cache before my script is run, so the dalvik-cache is overflowing the system memory. I'm not really sure why the phone memory dialog doesn't change because I've personally seen it not change from downloading a 5MB app(weather channel) but checked out the internal memory(wasn't there) and then went to the ext2 partition and it was there.
[G1 Android Development] MarcusMaximus04@gmail.com:
Alright, hopefully I'm the only one who's tried to use the new appstosd 2 app I put up last night after already having done this tutorial. I had a major bug that made it delete all of the user's apps permanently. I'm extremely sorry for any inconvenience this may have caused, I had a late night last night and wanted to try to get this app out in time for The Dude's new ROM.

EDIT: Oh by the way, I fixed the bug and a working version is now on the market. Will put on here somewhere soon...
[G1 Android Development] andonnguyen:
Doesn't seem to be working correctly. It is filling up /system/intmem first, but it doesn't switch over to the SD card when needed. I'm assuming that it is being seen as one folder, but for some reason something is keeping it from using the ext2 partition.

Images attached:
[G1 Android Development] MarcusMaximus04@gmail.com:
GOT IT!!! You

must

have a /system/sd/app directory for this to work, otherwise it doesn't have anything to merge the /data/app directory with so it just puts everything on the phone mem. Adding that to the tutorial now...
[G1 Android Development] andonnguyen:
would I have to create a /system/sd/data, /system/sd/dalvik-cache, /system/sd/app-private as well?
[G1 Android Development] Dimath:
Why are you keep ignoring app-private?
[G1 Android Development] MarcusMaximus04@gmail.com:
Heh, sorry. I never deal with it so I've ignored it a lot. Yes, if you want private apps moved, make a /system/sd/app-private, if you want dalvik-cache moved, make a /system/sd/dalvik-cache, if you want data cache moved, make a /system/sd/data.

and... it's no longer ignored.
[G1 Android Development] andonnguyen:
Awesome, everything works now, and finally I see internal memory going down =]
[G1 Android Development] DynaMight:
Just installed it on JF1.5

Isnt working all that well. Followed the guide but when I restarted all my 'desktop' icons were reset to default, lost my APN settings and I had to re-sync with Google. Although most of my programs/games etc were there but some didnt show up and now a lot of programs force close if I try to use them.

I have checked and I have all the SD directories etc. Any ideas or is it possible to remove everything and go back to the original method for the time being?
[G1 Android Development] MarcusMaximus04@gmail.com:
Well some of those are expected. Pacman always flashes in cupcake, regardless of apps to sd or not. Toggle Settings just plain does that with this apps to sd implementation. It's the only app I've found that always does that and I have no idea what's special about it that it does.

Syncing problems are just strange... I can't remember if you've tried a wipe, though I imagine you probably have. If not can you try that? Aside from that, I think I'm gonna have to take the cop out and say that some hacks just don't work for some people.
[G1 Android Development] VGPOP:
If system/sd is my apps on sd, then something is definetely wrong. I have 22 apps installed and it says 0% used

And my internal memory is at 62% used.
[G1 Android Development] LucidREM:
that means your apps would not be on the SD

#busybox cp -a /system/intmem/app /system/sd

#busybox cp -a /system/intmem/app-private /system/sd

#rm -r /system/intmem/app/*

#rm -r /system/intmem/app-private/*

this should get those apps over there at least
[G1 Android Development] malaeus:
what should i do in order to get it to run faster? while still obviously allowing me to run my apps from the SD
[G1 Android Development] misaelrod:
Thanks for the help... If I get the issue resolved, I will post it here.
[G1 Android Development] VGPOP:
It changed to 5% after this.

I'm assuming future apps will go to sd card now, right?

What about browser cache? How can I accomplish this?
[G1 Android Development] cjesse:
after read all replys, i think i did everything right. now i have 116 programs installed on sdcard, but when i try to uninstall in applications, my G1 hang, it take very long time try to list applications, and automatic reboot in a while, i can't uninstall any application now. does anyone else found the same problem?
[G1 Android Development] lovegu:
I thought media 2 sd was working yet... i still had media on sdcard and that was the one read and set.. :(

is "/system/media" default audio directory?
[G1 Android Development] rigamrts:
this thred should be stickied

Why hasn't this been stickied should have been done a while ago. This thread has been kicking around and helps a lot of people everyday
[G1 Android Development] tagm:
I've got a class 4 8Gb sd card. I've read it is not possible(?) to use less than class 6 cards for apps2sd.

Is this true for every method? Is class 4 too slow and apps are 2 slow or will it not work at all?
[G1 Android Development] rigamrts:
not true

they work fine i have a 4gig and its fine no lag at all only on startup but once it loads it's fine
[G1 Android Development] tagm:
That sounds good to me, thanks. I have JF 1.5 installed and will probably try it out next week. Will report back.
[G1 Android Development] Jwolfrom80:
Phone reboots itself using appstosd2

My phone reboots itself every time i try to move the apps via appstosd2, there is no confirmation that it worked or anything. As soon as I hit the "Copy Apps to SD" button, the screen just goes black, and the phone resets. When I tell it to "Copy Dalvik-Cache to SD" it does nothing, it doesn't reboot, but theres no confirmation there either. Is this normal? and if its not, how can i do this using the terminal emulator?