yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] fdm1:
app-private problem

I have tried doing tutorial multiple times now, but when I try launching some apps, they immediately force close. I have tried searching and everything I found doesnt seem to work. I looked at the app info in ASTRO for the apps causing trouble and it says they are located in app-private:

sourceDir=/data/app-private/

How do I get apps that are going to app-private to work?

Everything else has been working like a charm, this is the only thing I can't figure out.

Thanks
[G1 Android Development] Thats BS:
I fix it. Re-flashed. Wiped. Took out partition, reformatted sd, started Marcus's tutorial again and limited the space on the ext2 to about 1500mb (previously had it at about 3000mb). Marcus, like I said before, you are the man! Your app works like a champ! Happily supported you at the market. Thanks again!

Bo.
[G1 Android Development] Chahk:
Would someone ban this spammer already please?
[G1 Android Development] parmenti:
@ MarcusMaximus04@gmail.com

I just updated the a2sd.sh and init.rc and it went back to showing the ext2 storage space instead of the internal phone storage space. Is this the way it is again now? If so, how do I monitor/know the internal phone space now? Thanks
[G1 Android Development] dixxa:
D/AndroidRuntime( 101): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<

D/AndroidRuntime( 101): CheckJNI is ON

E/dalvikvm( 101): Can't open dex cache '/data/dalvik-cache/system@framework@core.jar@classes.dex': No such file or directory

I/dalvikvm( 101): Unable to open or create cache for /system/framework/core.jar

D/dalvikvm( 101): Failed on '/system/framework/core.jar' (boot=1)

D/dalvikvm( 101): VM cleaning up

D/dalvikvm( 101): LinearAlloc 0x0 used 4100 of 4194304 (0%)

W/dalvikvm( 101): JNI_CreateJavaVM failed

E/AndroidRuntime( 101): JNI_CreateJavaVM failed

that's my logcat output whenever i try to put your new a2sd.sh

strange... really strange i'm stuck with original dude's rom files.

A permission problem ?

Ps: it doesn't work for me on JF roms
[G1 Android Development] MarcusMaximus04@gmail.com:
Yes, and you can use "busybox df -h" in the terminal or just use my appstosd2 app which displays used/available space in both ext2 and internal memory.

EDIT: But... there'll be an update soon that puts it back to normal again(Thanks to TheDude for this one)
[G1 Android Development] bdcwarrior:
my apps are disappearing (!?)

Hey all,

Maximus, amazing work, and thanks to all the guys (or girls?) hooking up these builds and making our phones be as cool as they're supposed to be! I do have a question though...I've tried doing this hack several times, just as it's instructed, and I always get the huge increase in internal memory...however, after some time (I don't know what happens in the meantime, maybe after I download more programs, maybe after I move things off of the internal memory with appstosd2, or something) my programs start to magically disappear from the rest of my icons on my home screen!

What's even more weird is that when I go to reinstall them, my phone thinks that they're already there. I've tried this on Haykuro's latest, JF's 1.5, and the Dude's 1.1, with the same thing happening each time. What's the problem?

thanks all!
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm well this shouldn't work at all on Haykuro's ROM... the unionfs module doesn't exist in it. For apps disappearing, how long does it take? Does it happen immediately after going to the homescreen after moving them to the sd card? I need a little more info.
[G1 Android Development] bdcwarrior:
you're absolutely right, I haven't used this with Haykuro's, only JFs and the Dude's...my bad. I think it happens after a reboot, after I've moved apps and dalvik-cache from the phone to the memory card...sometimes icons will disappear, sometimes dead links (with the default icon) will be left...I don't know what's going on. i'm going to see what happens if i just move the app and not the dalvik-cache, and the reverse
[G1 Android Development] MarcusMaximus04@gmail.com:
And does this happen with all apps or just some of them? If it's just some of them, some apps don't like the transition and will need to be reinstalled, but should work if reinstalled(as in press the install button, go back and press uninstall and then install again). If it's happening with all apps, it might be indicative of a bigger problem.
[G1 Android Development] bdcwarrior:
it's happened with every app i've tried so far :(
[G1 Android Development] MarcusMaximus04@gmail.com:
Alright, can you do a "busybox df -h" in terminal emulator? Once you do that, let me know what shows up.(let's move this to private message)
[G1 Android Development] cal3thousand:
My SDCARD is F'd

not sure why, but the unionfs might have exacerbated or simply exposed errors on my card. GParted won't partition it, but your app does.

How do I really know if the card itself is bad and not just files and/or file system? And what about these "stale NFS handles" you refer to? How would I determine if this is my problem?
[G1 Android Development] Henchman:
Here's what I did to get my phone running stable after numerous iterations of apps2sd and firmware flashes, and screwing up the SD card to the point where i thought it was completely f'ed up.

I stuck it in a camera, that promptly said un-readable card. And proceeded to format it in the camera.

I downloaded the regular JF 1.5 update.

I did a wipe, and a re-flash.

I downloaded Apps2sd and used that to create the Ext2 partition.

I downloaded the files to actually run the Apps2sd script.

After the reboot, ran Apps2sd again, and copied the dalvik cache first, then the Apps.

Now my phone is the most stable it's been in a long long time, and I have a ton of apps on my phone, widgets runnign in DxTop.
[G1 Android Development] cyber_quisp:
APPSTOSD2 SD Card Recommendation

Hi All,

Make sure you have a Class 6 SD Card in your G1. Especially if you Partition your Card with FAT and EXT2. I have had issues with Class 4 SD Cards, crashing, and stalling; having to reflash the ROOT process.

I have not had any problems for a while with a Class 6 SD card Installed!

Keep up the great work!
[G1 Android Development] MarcusMaximus04@gmail.com:
Try using the phone's built in formatter(it will return the sdcard back to full FAT32 file system) in the SD card & phone storage settings display. Just press unmount, wait a bit, and then press format and the subsequent 2 buttons that come up. I doubt it's the SD card that is messed up, is probably just the file system is hosed. If that phone formatter wont do anything(as happens sometimes), stick it in windows and use that to reformat it. I've found that usually clears out/exposes any problems.
[G1 Android Development] f4phantomii:
Ouch! I've been rooted over 6 months. I've had some caches moved to sd for a long time. I've had apps to sd for months.

Even with all of that, as more apps got added, I was still running out of space. So last week I jumped to the unionfs method and it worked no problem.

I'm running JF 1.5 with an 8GB class 6 sd. I have a 500mb ext2 partiton. I've been happily showing approx 400MB free all week. I turn my phone off every night.

This morning when I turned it on, it went into a bootloop. I removed the battery and it seemed to recover. I got one or two nuisance force closes, but it seemed to work OK. A few hours later I started getting a lot of Wait and Force Closes. I rebooted and got more boot loops. I finally got it up, but then it ran me through the phone setup as if I'd just done a factory wipe.

I can only access a few core apps. Nothing else works. The filesystem appears mounted.

Is it hosed? Do I need to reformat and perform a wipe? How can I save my apps?
[G1 Android Development] Longsh0t:
Reflashed and wiped my G1 and followed all of the instruction again. Apps to SD card are working now!

Thanks so much for the time you'e put into this.
[G1 Android Development] MarcusMaximus04@gmail.com:
Woah... It did that without you changing anything? At any rate all your apps should still be on the sd card, I'd suggest reflashing the ROM and start over on that front. You mentioned that you moved caches, did you set that up yourself with my method or symlink to it? It may be that you've gotten some stale nfs file handles from having the /data/data cache moved to the sd card.

If so, you'll likely have to reformat the sd card, since they are non-removable. If that's the problem, you should be able to back up your apps on a computer and then load them back on the sd card once it's been formatted correctly again.
[G1 Android Development] f4phantomii:
The more I play with it, I'm finding the OEM apps work (maps, browser, calendar, etc.)

I suspect during the inadvertent wipe that those apps got put back on the internal mem and that's why they work.

Oddly enough I can fire up ASTRO but it doesn't see any apps to backup or restore!

Very odd. How can I check to see if the unionfs link is still intact?

As far as the caches went, I tried and tried but was never able to move /data/data......ultimately I was only ever able to move /data/apps without stability problems.
[G1 Android Development] parmenti:
Thanks for the response. Do you Twitter so we can keep track of when things change or are updated? It's hard to keep track of on these forums. Might save you the headache of answering a million redundant questions too :) Thanks again.
[G1 Android Development] MarcusMaximus04@gmail.com:
OEM apps are stored in /system/app so those stay on internal memory no matter what. Also, it makes sense you wouldn't be able to see anything with Astro since it doesn't have permissions to see the .apks.

To check if the unionfs is in tact do this: "busybox df -h" and look for "unionfs" in that list.
[G1 Android Development] parmenti:
Hi again, I just reinstalled the most recently posted appstosd2 app and I don't see where you say it shows storage. I just get the checkbox and the 3 buttons. When I press menu it shows nothing as well. How do I check storage from the app? Thanks.
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm that's the old one... hopefully I didn't forget to update it here...
[G1 Android Development] f4phantomii:
Yep. Unionfs shows up.

Using the terminal app, I can see and access both of the unioned directories.

What else might I try to troubleshoot this? It seems like all the data is there but the is some little silly thing not present that should be.....like a missing symlink or wrong file permission or something like that.
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm so all your apps appear in /data/app? Grr... I've seen this one before... as I remember he fixed it by reflashing the ROM, repartitioning the harddrive and doing a wipe lol. But at any rate I'd try the latter 2 first, reflash the ROM and do a wipe. If you're using JF1.5, you'll have to follow my tutorial again. With TheDude's it should set everything up for you.
[G1 Android Development] f4phantomii:
OK. Maybe I'll switch to TheDudes build just for kicks. Been wanting to try it anyway. I'll go with the 'ite' version I guess.

Have to wait till this evening so I can back up the sd card contents.

If I have to reformat and repartition I'm hosed.....I'll lose all my apps.
[G1 Android Development] MarcusMaximus04@gmail.com:
Well you could always back up your ext2 partition also...
[G1 Android Development] f4phantomii:
Yeah, but I can't figure a way to do that.

I'd have to somehow mount the ext2 partition. I've got a linux box and I know how to do that, but unfortunately I don't have a card reader.

I don't think I can mount that partition through the phone.

Ahh...but I guess I'm not thinking unix enough here....I guess I could just roll all the APK's into a tarball and copy that over to the FAT32 portion. Then I can just copy it off as a regular file along with the rest of the contents.

That should work, shouldn't it?
[G1 Android Development] LucidREM:
potentially you could do the reverse of "wget" and send all the files to a unix/linux hosted server .. i know i've been putting files to my phone directly without the use of a computer USB connection .. back all your files to the server and then download them again .. i haven't tested this but my server has unlimited storage capacity .. it's worth testing
[G1 Android Development] davidbauer:
copy appstosd command

Did all. when copy apps to sd button in apptosd applicaiton , phone reboots? please help.
[G1 Android Development] andonnguyen:
It's suppose to reboot.
[G1 Android Development] parmenti:
have you checked on this? sorry to be a bother
[G1 Android Development] TheMan42:
SD question

Just a quick question:

I am a complete noob here in terms of the Apps2SD method. I'm debating between the Lucid JF mod and this. My question is, if I was ever to remove the SD card using this method, would it screw up my phone?

The lucid mod seems safer to me, but I don't know about these things, so any help is appreciated.
[G1 Android Development] LucidREM:
the whole point to the unionfs method is that when the card is removed the phone stores to the internal memory .. if i am understanding this correctly .. the symlink method when the card is removed the link is broken .. the phone no longer knows what to do because it cannot store files in /data/app as there is no folder there .. just a symlink
[G1 Android Development] f4phantomii:
That's what I understand too.

As for my situation, here's what I did:

Did a factory wipe and installed TheDudes 1.0 Full using the OEM sd card (non-partitioned).

After I installed and phone started up fresh, I immediately shut down, removed the 1GB card, and put in my non-reformated but still partitioned 8GB (500MB ext2 / 7.5GB FAT32) card and turned on the phone. I had not changed anything on either the ext2 partition or the FAT32 partition.

It booted normally. However......

It then complained that it couldn't start Weatherbug and several other apps that usually run on startup. Force Closes just like it was doing before the wipe.

So what on the ext2 partition using the unionfs method would cause that? The problem has to be on that partition somewhere. After a fresh wipe (but not a reformat of the card), I wouldn't have expected apps to try and run at startup, but they are. Is there an init file or something that's calling those apps?

Any ideas? I can obviously reformat and repartition, but I *really* don't want to do that if I don't have to. Seems like there is a good opportunity to track down a weird bug here in case it happens again.

I can see all the apps in the drawer, however some appear to be working while others do not. Trying to re-install those that are broken to see what happens.
[G1 Android Development] LucidREM:
when i did the unionfs method i had to uninstall/install nearly every app on the phone one-by-one before they worked .. that should fix all the force close issues
[G1 Android Development] TheMan42:
Thanks for your help Lucid, you guys are awesome and expect a donation shortly from me.

One more question, I have JF 1.5ADP on my G1 right now, if I ever wanted to install your modified JF build with the Symlink capabilities, would that prevent me from ever doing the unionfs method? And would I be able to use the JF updater still with your build?

Thanks for your help.
[G1 Android Development] teknomanelvis:
success!! 205 internal mem free from 12mb hahahahahaha sweetness
[G1 Android Development] DreamcastDC:
Ok I manage to get it working on JF 1.5, but a weird problem is happening everytime I bring up the Shortcuts App list menu on the home screen, it doesn't seem like it want to load the app list, then it stalls and then restart.. Anyone else have this problem?

Oh I have 163 apps, maybe that has something to do with it.
[G1 Android Development] f4phantomii:
OK....appears to be working normally this morning. As you mentioned, I had to re-install nearly everything before they finally started working.

One final oddity......

When I check to see free space, it's still reporting internal memory (about 27MB free even after a factory wipe) instead of the expanded memory as it had been before.

I believe apps are still being installed to the sd card, but I'm curious why the expanded memory isn't being reported correctly.
[G1 Android Development] LucidREM:
that could be a difference in your app2sd.sh file or something .. it's been changed back and forth a few times .. if you "cat" that file you can see if it matches up with the latest one from the first post .. also can "cat" the init.rc that is in /data to see if that one is the most recent one
[G1 Android Development] LucidREM:
the process is reversible .. you can actually just download the lucid.txt file without installing an entirely new update.zip file .. so the unionfs is just the two files init.rc + app2sd.sh .. if those two files are deleted and symlinks are created then viola!! you can always put those two files back and have the unionfs again .. tho any changes like that could mean you have to uninstall/install each app again
[G1 Android Development] MarcusMaximus04@gmail.com:
New version of the script(a2sd.sh inside a2sd.zip) is up. Fixes a problem that caused boot looping after a wipe on TheDude's ROM.
[G1 Android Development] f4phantomii:
Ah....that may be the problem....I don't see a /data/init.rc file....or even an a2sd.sh file for that matter.

I guess TheDude's build has those located elsewhere for tidy housekeeping?

I do see that the unionfs kernel module is loaded (lsmod). And df -h does report unionfs.

I'll see if I can find where the module is getting loaded and where the mounting is happening.

Standby.
[G1 Android Development] f4phantomii:
Interesting.....

Apparently TheDude's build calls the /data/init.rc from the /init.rc as shown below:

import /data/init.rc
trigger userdata

So I guess I may have misunderstood what I needed to do....I still needed to download the files from the first post in this thread and unzip them in the appropriate places....I just don't need to manually run any commands.
[G1 Android Development] MarcusMaximus04@gmail.com:
Nononono, that segment is from JF's /init.rc and has been included in all the ROMs here, just in case someone wants a /data/init.rc. TheDude tied the functionality of my /data/init.rc somewhere into one of the existing ones(/system/init.rc maybe?) and put a2sd.sh in /system/bin/a2sd.sh. If you want to update my script in his ROM, follow the steps in the first post.
[G1 Android Development] BolecDST:
What if I already used the older version a couple of days ago and already have my partitions etc? Should I download the program, backup my apps and reformat the memory stick?
[G1 Android Development] MarcusMaximus04@gmail.com:
lol, no, this is just the script file. To update it just follow the instructions at the bottom of the first post. It just requires removing the old one and putting in this one.
[G1 Android Development] BolecDST:
I'm back to the question about getting the downloaded apps from the phone.

I've found out the .apk files of installed apps using the ddms.exe (in the Dalvik Debug Monitor: Device -> File Explorer) included in SDK. They are stored in /data/app and /system/sd/app - I wonder what would happen if I pull them out of the device, copy somewhere on computer and then push them back (and at the end plug out the usb cable)? Will this hang my phone/make the apps unusable or something like this, or will this simply not work?

edit: and thanks for the tip about updating, done ;]
[G1 Android Development] MarcusMaximus04@gmail.com:
... why? At any rate, I haven't used that program myself, so I'm not sure but it probably wouldn't hang your phone. At worst, the apps wouldn't appear until you restart the phone.
[G1 Android Development] f4phantomii:
Ah....OK, I see better now.

The last couple of lines of the /init.rc call the /system/bin/a2sd.sh script which (as you know) loads the module and mounts the filesystems.

Looks like your newest script (posted here) commented out most of the mount commands and now only mounts /system/intmem and /data. Is that correct?
[G1 Android Development] MarcusMaximus04@gmail.com:
Correct. That's what fixed private apps. The Dude's 1.2 will have the newest script(as of now) built in.
[G1 Android Development] LucidREM:
are you using windows? the proper permissions do not exist to keep the files from being messed up ie: -rwxr-xr-x etc
[G1 Android Development] f4phantomii:
Bingo! That got it. Showing roughly 400+MB free.....

Thanks for all the help folks. Hopefully I won't have a repeat of whatever cause the problem the other day.
[G1 Android Development] EpedemicOptikz:
Hey, I'm pretty new to modding my G1 and I ran into a small problem. I understand the process of going through the terminal and entering those commands with these 2 files on my SD Card. My only problem is that I need to create the EXT2 partition, correct?

Well, according to the first post, the application AppsToSD2 should be able to do that for me, right? But when I installed it on the phone, it opens with a blank screen, and then it says SU Request at the top and then nothing happens. I have to force close it, so I was hoping is there some solution for this? I just need to create a partition with EXT2 on the SD Card. Last time I tried using paragon everything just got all messed up and I had to start fresh.

Any help is appreciated, thanks.
[G1 Android Development] dixxa:
I might be the only one to have the error and since nobody seem to care about my problem I'll use the old method with symlinks ... thanks anyway
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm that would mean your superuser "app" isn't working. You do have root on your phone right? If so you might try restarting the phone as sometimes that fixes problems with it.
[G1 Android Development] MarcusMaximus04@gmail.com:
Oops! Sorry, forgot about that question when responding to all the ones. I guess it doesn't matter since you're going back to symlinks but did you try doing this: "rm /data/dalvik-cache/*" and then rebooting?
[G1 Android Development] dixxa:
I've tried many things marcus

Whenever I change a2sd.sh. I get that ....

I've deleted the files already it keep on looping on boot

I revert back the original dude file and it just booting normally

I thought it was a permission problem I chmod it to 777.

I've put it in /data, /system/intmem, nothing.

I must go in recovery mode mount /sdcard and /data to apply dude's a2sd.sh or symlink it.

but the old a2sd seem to have problem with wallpaper and paid app.

that's it. :(
[G1 Android Development] captrobb:
I seem to have the same problem of simply SU Request popping up and hanging. I have tried restarting several times and doesn't seem to clear up. I am using the JF build as well. Any more help?
[G1 Android Development] EpedemicOptikz:
I tried restarting my phone and re-installing the applications but to no avail. Yeah I got my phone rooted since Advanced Task Manager works, I got the terminal application and i'm running JF1.5 on a jailbroken phone.

I'm just stuck on the SU Request screen, with it being blank. Not sure what other important information I should post. Should the AppsToSd2 application work if my sd card is not divided into the two partitions?