yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] spyz88:
I tried both files and mounting on both /system/sd and /sd neither of which worked . I also tried various programs to partition the sd card. I have no other ideas...
[G1 Android Development] bestwebs:
Hi,

This is how it should look.

I use an adb shell through the computer (windows xp).

The drive with 1.5g available is the sd card drive.

:)
[G1 Android Development] USNCorpsman:
Non-market apps on SD card issue

Okay... Getting this to work has sucked horribly for me and after rooting through the other forums that would apply to my issue i've found no solution. I have RC33 JFv1.42 LucidREM mod, with /app, /app-private, and /data all copied to the EXT2 partition of my SD card. I am trying to install the AndroidVNC viewer using the AppsInstaller app, I have AndroidVNC saved onto the root of the FAT32 partition of my SD card. The Appsinstaller sees it but when I go to install the .apk itself it's giving me the following error:

"androidVNC could not be viewed. Free up some space on your phone and try again." Giving me a 'cancel,' and 'manage applications' button under.

The error doesn't make any sense because when I login to my terminal as root and # busybox df -h, the only parts of my system that are full are the usual suspects:

/system

/system/modules

/system/xbin

all of which are full, but they always have been for me, so I'm not sure if the Appsinstaller is trying to use one of those blocks to extract to temporarily or something like that. what am i missing here!?!?
[G1 Android Development] USNCorpsman:
bump :) :) :)
[G1 Android Development] f4phantomii:
Partial App migration to SD card...possible?

Has anyone tried to move only *some* of the apps to the SD card?

I'm stuck with a class 4 mSD card, so as I understand it, moving the apps en masse to the SD card isn't a recommended option.

But I was wondering if perhaps I might move *some* apps to the SD card...maybe just ones that I don't use often, or aren't particularly complicated, or maybe just ones that seem to run perfectly fine from the card.

Some of the "high performance" apps, or ones with a lot of I/O dependency I'd leave on the phone internal storage.

As it stands right now, I'm at total app saturation. I've uninstalled infrequently used apps and have them backed up for ready restoration anytime/anyplace. I've moved every cache possible. Yet even at 13MB free, the phone still complains I don't have enough room to install the latest build of AndNav2.

Should I even attempt a partial migration? I have no paid apps (and apparently couldn't install any even if I wanted to) so I'd just be moving the *.apk file and maybe the *.odex files? Is that all I need to move and then symlink to?
[G1 Android Development] f4phantomii:
Bump for day crew.....
[G1 Android Development] Autarkis:
I'm using this setup. I use my own bash script to move apps:

#!/bin/bash
# mvappndata.sh 1.1 by Autarkis
# GPL OpenSource
adb remount
adb shell cp -rp /data/app/$1.apk /system/sd/app/$1.apk
adb shell rm /data/app/$1.apk
adb shell ln -s /system/sd/app/$1.apk /data/app/$1.apk
adb shell cp -rp /data/data/$1 /system/sd/data/$1
adb shell rm -r /data/data/$1
adb shell ln -s /system/sd/data/$1 /data/data/$1

You call it with the application's name without the .apk suffix.

mvappndata.sh com.mobisystems.msdict.embedded.wireless.pons.ssd

Known Bugs:

* apps moved this way don't show as Installed or Updated in Market, but as Free

* sometimes, when you are running out of memory, it won't be possible to install new apps from market - the downloading process will hang right at the beginning. Making even more room does the trick

I leave all apps that are being started at boot time or once started should run as a service in the internal memory. I move all the big apps (like dictionaries) to the SD. It mostly works, but since many apps are buggy themselves it's difficult to tell where a certain Force Close is coming from.

Cheers from Switzerland,

Autarkis
[G1 Android Development] f4phantomii:
Ah...precisely what I was looking to do. Thanks....that helps a lot.

I'm guessing I can modify the script to run directly on the phone....it appears you have constructed to move apps while connected to a PC via the USB cable. Is this correct?
[G1 Android Development] Autarkis:
Yes on both counts. I also use ls -laS to display installed apps sorted by size.
[G1 Android Development] mlevin:
looping on android, home button & silent not working on 1.42

Hi,

Had a weird experience the other day. Phone was fine (rooted RC33/JF1.41). Got some AK Notepad reminders but was busy with something so I ignored them (but heard the alert go off). A few minutes later, the phone spontaneously rebooted and from that point on just looped on the android screen.

I figured I was due for an upgrade, so I popped out the sdcard and upgraded to JF1.42. The phone did come back to life, but at that point the home button won't work (wasn't a hardware issue as it worked to get me to the home+power loader) and when I held down power to shut down, I got only the "power off phone" option but no "silent mode" option. Very strange. This was obviously no good, so I went back to 1.41.

Long story short, the phone still looped, so I took this as a sign that a wipe was unavoidable (I didn't have a recent nandroid backup), but since I had WAY too many apps I never used (~200) and my phone was getting unstable (things were constantly force-quitting), I figured I may as well do some spring cleaning and start fresh.

I learned my lesson and finally got the important apps reinstalled and the phone reconfigured the way I want it -- and then did a nandroid backup so I can avoid this in the future.

But what the heck happened that made the buttons not work? That one freaked me out a bit...

And of course I still wonder what caused me to loop in the first place, totally randomly and spontaneously. Are there specific things that can cause that and if it happens again, is there an easy way to fix it?

Thanks
[G1 Android Development] f4phantomii:
Gah! This is driving me nuts! I absolutely can't make this work.

I can transfer the whole /data/app and /data/data directories to /system/sd, but as I have a class 4 SD card, I get tons of force closes on apps.

So then I try just moving single apps. For example, moving the OI Flashlight app to the sd card.

# busybox -a /data/app/org.openintents.flashlight.apk /system/sd/app
# rm -r /data/app/org.openintents.flashlight.apk
# ln -s /system/sd/app/org.openintents.flashlight.apk /data/app/org.openintents.flashlight.apk

I do the same thing with the appropriate data directory for the app. I check and the files are moved. The symlinks are present.

But when I try to run the app, it just tells me that the application is not installed on my phone!

Grr! Then if I delete the symlinks and cp the files back to their original locations, same result. I end up having to re-install from backup.

Very frustrating. Any advice?
[G1 Android Development] Autarkis:
I don't know what busybox -a does.

It probably shoud say "cp -rp" instead.

It's important that you preserve access rights.

It's also very important that /system/sd is an ext2 partition. vfat won't do.

My script also assumes that as a preparation, /system/sd/app and /system/sd/data have been created. Like that:

mkdir /system/sd/app
mkdir /system/sd/data

I assumed that was self-explanatory, but it probably wasn't.
[G1 Android Development] Fnorder:
unionfs works for this:

have cake and eat it micro-howto:

(Use a recent jf dist)

/system/bin/insmod /system/modules/2.6.25-01843-gfea26b0/kernel/fs/ext2/ext2.ko /system/modules/2.6.25-01843-gfea26b0/kernel/fs/unionfs/unionfs.ko

(partition sd card as described in the aps-on-sd howto)

(mount to /data/local/ext for this example)

mkdir /data/local/ext/app

busybox mount -v -t unionfs -o dirs=/data/local/ext/app=rw:/data/app=ro unionfs /data/app

This has been tested; downloaded apps go to sd card but the system sees apps in /data as well.

The only issue with this is you can't umount the unionfs mount. In theory, you can have writes go to the real /data/app with:

busybox mount -o remount,dirs=/data/local/ext/app=ro:/data/app=rw /data/app

But I have not tested this.
[G1 Android Development] kingblind:
losing storage after moving cache and apps.

Hi all,

I have moved apps to Sd Card.. I have moved cache to sd card and when all is said and done I had 47mb of 74mb free.. YES... but wait..

Now in using my phone I keep losing free space I am now at 45 of 74mb free. How can I found out what is taking my free space up .?

Please help. Thanks in advance for your time.
[G1 Android Development] xdavidn88:
how many apps did you dl since doing the apps to sd / caches to sd?

fyi: not all cache will move, only the ones that are scripted

ex. browser, maps, market, etc..
[G1 Android Development] kingblind:
I have installed. Tunes Remote, Advanced Task Manager and Save MMS (I have yet to save any MMS') and scoreboard..

I don't think those have Cache's do they? Where can I see the internal cache?

I look in OI file manager and see a cache folder.. But it's empty.. Do you know where else I might need to look?

Thanks.
[G1 Android Development] Henchman:
I actually wouldn't move the caches. With the read and write cycles being done bt the browser, i think you'll decrease the lifespan of your SD card significantly.

Since I switched to a new Class6 card, and PROPERLY did the "apps to SD" procedure, I've been at a steady 42mb of space on my phone.

I'm good with that.

The first time I didn't do it correctly, and apps were on my phone. :)
[G1 Android Development] bestwebs:
Hi,

Did you set up the ext2 partition on your sdcard?

Sounds like something not moved correctly.

:)
[G1 Android Development] kingblind:
My ext2 partition is fine.. I install and uninstall apps and everything is fine.

I think the problem might be that my google maps cache is still local. Here is what I am trying to do..

I go to ADB shell..

get prompt and type

cd /data/data/com.google.android.apps.maps (works great)

mkdir /sdcard/cache/files/maps (I get error, No such file or directory)

What am I doing wrong.. I think this might be the source of my missing free space.

(Have not done below yet)

busybox cp -a files /sdcard/cache/files/maps

rm -R files

ln -s /sdcard/cache/files/maps/files files

I WAS able to do this earlier:

cd /data/data/com.android.browser/cache

rm -R webviewCache

mkdir /sdcard/cache/webviewCache

ln -s /sdcard/cache/webviewCache webviewCache
[G1 Android Development] LucidREM:
correct me if i'm wrong but you need to:

mkdir /sdcard/cache/files

mkdir /sdcard/cache/files/maps

but you don't even need to do that at all .. just:

mkdir /sdcard/cache/mapsCache

and then change the reference in the "ln -s" line:

ln -s /sdcard/cache/mapsCache /data/data/com.google.android.apps.maps/files
[G1 Android Development] kingblind:
Ok I did this:

mkdir /sdcard/cache/files (worked)

mkdir /sdcard/cache/files/maps (worked)

Then for the heck of it. I did this..

mkdir /sdcard/cache/mapsCache (worked)

then I do this

ln -s /sdcard/cache/mapsCache /data/data/com.google.android.apps.maps/files

(get error: link failed File exists)

what I am doing wrong? Also, do I need to delete old cache? how do I do that.

thanks so much..
[G1 Android Development] kingblind:
Then I tried this.

cd /data/data/com.google.android.apps.maps

mkdir /sdcard/cache/files/maps

busybox cp -a files /sdcard/cache/files/maps

rm -R files

ln -s /sdcard/cache/files/maps/files files

at the busybox step I get a bunch of "operation not permitted" errors. However, when I browse via file manager, I see some files in the directory (but it shows as /sdcard/cache/files/maps/files/

So, it looks like something worked. BUT now I have 44mb free.. It keeps getting smaller when I use maps.. I don't know what else could be taking it I reboot.. look at maps.. storage sizes goes down..

UGH.. Please help.. what else can I do.. Shouldn't the rm -R files delete the cache for maps? this is driving me crazy.
[G1 Android Development] kingblind:
FIXED.. I was using an exchange client called Touchdown.. I moved it's database to the SD Card..

back to 47mb free.. SWEET!!'

thanks for the support. xda rocks.

DANG IT.. NOT FIXED.. .. Please read next post..
[G1 Android Development] kingblind:
Scratch that.. I am losing memory again.. UGH.. it wasn't touchdown..

from 47mb to 46mb

Now the only app that am using is Tunesremote.. does anyone know if that has a cache?

thanks.
[G1 Android Development] doctahjeph:
I ran into the same problem. After moving my apps and cache to my sd I had a whopping 60mb free. Now I am down to 51mb. Now I have installed new apps since the move. Do these install on the device or the sd?
[G1 Android Development] kingblind:
I am testing a few things here.. I am noticing that when I am installing new apps that they are taking up INTERNAL disk space. they are not installing to SD

I did run the Automated APPS to SD (EASY!!!!) script which is here:

http://xdaforums.com/showthread.php?t=494281&page=2

and it did move everything over and it gave me a bunch of free space

47mb free of 74mb..

I did have an issue about a week ago..Screen would not respond. I had to restart my phone with the Power/ Home button .. I have nandroid installed.. I backed up my phone to SD..

I then hit Alt S (I think it was Alt s) to restart.. then the phone's screen worked fine again..

BUT, Now apps seem to not be installing on SD.. What can I do to fix it? Without starting all over.
[G1 Android Development] kingblind:
another app that I have found is taken up cache space internally is Scoreboard..

Does anyone know how to move it's cache? I can't find it anywhere.

Thanks in advance for your time..
[G1 Android Development] xdavidn88:
So I f'ed up my G1...

Initially I had a Rooted G1. JFv1.42RC33MOD. Apps to SD. Caches to SD.

I did something wrong and my internal memory was dropping fast.

So I did a wipe and wanted to redo the whole process.

That's where it all went wrong...

I did the whole process all right. Then when I went to go look at my apps in the drawer, some of the icons turned into prompt window icons (unusable)...

I then go into the android market, open it up. applications viewed by paid items only...

and there's stuff missing!! Stuff like Mybackup Pro, Power Manager, aHome to name a few of the top I noticed.

Then all of a sudden, my Open Home quit working!! I got booted off into the default home. I pressed home button and it didn't even show up!

I read stuff how the market is ****ed up recently and people cannot view some paid apps due to copy protection... and I haven't seen a solution...

So now I have to go back to RC29 and wait for OTA RC33 :(

If anyone knows how to fix this, please help. I really love having root. But I also want my paid apps I paid for.
[G1 Android Development] bahnburner:
Just drop RC29 Dream.NBH back on the SD, power+camera, install test keys, HardSPL and JF-RC33 and you're good. I've had to do it more than a few times. You'll have to move apps and cache back to SD card, but that really doesn't take long.
[G1 Android Development] xdavidn88:
and this solved your missing paid apps thingy?
[G1 Android Development] xdavidn88:
just tried root and all that again. same result. some paid apps are still missing.
[G1 Android Development] derekedw:
If you're missing paid apps its b/c you're on ADP. ADP comes rooted and therefore the Market blocks it from copy protected apps. You can still root with Modded RC33 and get paid apps.
[G1 Android Development] xdavidn88:
No. I was using JFv1.42 RC33 and JFv1.42 RC33 MOD for apps on sd.

This is not a ADP issue as I can see SOME paid apps while not others.

I'm not the only one having this issue.
[G1 Android Development] derekedw:
Let's say that it IS a CACHE (Probably Market Cache)

And that Cache comes and goes (meaning space gets freed up).

Is there a particular reason why you want to have over 45Meg free on your phone? Are you saving the space for a rainy day?

If it WERENT cache, I could understand wanting to fix it. But I think it's obviously cache....so what's the deal?

Anyways good luck, but I wouldn't really worry about it unless you think you'll need it for something or you're just one of those guys who 'has' to have something a certain way without any real logical reason to it? lol
[G1 Android Development] kathi17:
I've heard some people say that it takes a few days for the protected apps to show up after you move to rooted RC33. Something about the market taking time to realize that you've changed versions.
[G1 Android Development] derekedw:
I know the minute I moved to ADP, I couldn't DL some of the apps that I paid for (download always failed b/c ADP didn't have access to those apps).

The minute I moved back to RC33, everything worked fine again. So there might be some funkiness there somewhere, but RC33 restored what I couldn't see on ADP almost immediately.
[G1 Android Development] kingblind:
it's not market cache that is on my SD.. why am I worried.. I am now a 40mb's and dropping.. 7 mbs in a day? that's not right..

Also, any new app I am installing is causing is not going to SD .. It's being saved to internal memory.. I just can't figure out what I am doing wrong.
[G1 Android Development] LucidREM:
if you created the link:

/data/app -> /system/sd/app

then your new apps are NOT installing to the phone
[G1 Android Development] xdavidn88:
Listen, I never installed ADP!

I had RC33 the whole time!

Any professional advice from devs will help.
[G1 Android Development] derekedw:
Just confirm it. Install an app and then go look in your system\apps folder and see if the apk is there for that app.

I see all my installed apps in system\sd\apps

DATA was the big thing for me.

Do you have any chat programs loaded? Those might be using a local cache too. Reboot your phone. What's your storage like?

Try uninstalling your largest app and see if that makes a diff.
[G1 Android Development] kingblind:
doing that now.. I will get back to ya.. thanks
[G1 Android Development] derekedw:
I was tinkering with some stuff earlier on my G1 and just wanted to mention that even with apps, cache, and data to SD card, there will still be some things that get written to the phone storage when an app is installed. I installed about 15meg of apps from a fresh install and now have 66 of 70 MB on phone that is free, so it used 4 MB some how. I think some is cache, but some is also storage being used for settings that go into the sqllite DBs probably and the "program list".
[G1 Android Development] Mikey:
have you reflashed your phone back to rc29?
[G1 Android Development] kingblind:
The new installed app was Tunes Remote.. It IS installed on my SD.. Good news.. BUT, why do I lose more internal storage when I installed it..?? I am so confused.

Appmanager shows that I lose a mb when I do it.. If I uninstall I get it right back.. wtf? Help me understand what is going on. Thanks...
[G1 Android Development] xdavidn88:
yes, i am on RC29 waiting for the OTA update for RC33.

Tried a manual RC33 update but it required I be on RC30.
[G1 Android Development] cloverdale:
I had the same issue and it was due to the apps and cache being on the sd card. I have found that you must sign into the google market previous to moving apps and cache, otherwise copy protected apps will not appear.
[G1 Android Development] Mikey:
First off flash rc-33 apps to card and see if everything is ok prior to executing the commands

If not go to rc-30, i can get that copy, if you need it
[G1 Android Development] xdavidn88:
It's ok I got the RC30 files and RC33 files. Now I'll attempt cloverdale's advice. brb
[G1 Android Development] xdavidn88:
I will try just that. If it doesn't work, I can always go back.
[G1 Android Development] xdavidn88:
So I did it all again... there are still apps missing like snap photo pro... i'll email bratag and see how I can get it back.

also missing are Power Manager Full, Mybackup Pro

anyone knows why? copy protection? I guess I can make do without those apps but if there's a fix I would like to do that.
[G1 Android Development] xdavidn88:
****, some paid apps are disappearing again along with some of my free ones... icons turned into windows prompt icon and i check market, not there...

sigh. imma just leave my phone through the night and see if it fixes itself.
[G1 Android Development] LucidREM:
if you went back to RC29 and are waiting for OTA updates then you will no longer have root access .. otherwise you just need to root and go back to RC33 from JF or myself (apps to SD) .. one thing to keep in mind is that there was no market before RC33 .. there was market beta which did not have the paid apps etc .. when you say "all of a sudden" it tends to make me think there was some underlying cause leading up to that event that may have gone unnoticed .. sometimes when changes are made to the system and the phone is not rebooted you will never notice the problem until you reboot and find it no longer works .. if you make 10 changes you may not be able to pinpoint which is the culprit
[G1 Android Development] kingblind:
anyone? any ideas? Help!
[G1 Android Development] xdavidn88:
My apps came back paid and free after an hour. Bratag told me it was a market quirk. Whew.

I was on JFRC33MOD.

I was missing some free and some paid.

All is fine now.
[G1 Android Development] kingblind:
Re-formatted cards.. re- did the app to Sd/ Cache to SD..

seems to be working again..

Very weird..
[G1 Android Development] haitiankid4lyf:
its the dalvik-cache
[G1 Android Development] xdavidn88:
Phone stuck on flashing android

So I've searched the forums on here and AC.

My phone was not downloading chomp sms update so I restarted.

I have the aero theme so it booted and showed the aero boot screen.

It kept showing it (flashing android) over and over.

The only way I could get around it was by camera + power.

Do a dreaimg.nbh (RC29)

Redo the whole root / mod process

Installed Aero theme again, worked fine.

Until I rebooted, it looped again...

So what's up?

Discuss.
[G1 Android Development] xdavidn88:
I just did the whole process again (except for the theme update)

And right when I got to updating radio, it rebooted and is looping again...
[G1 Android Development] jivany:
That happend to me when i tried to download and flash the 4.5 magic rom on to my g1 . Try flashing jfrc33 again with alt s then after that wipe the phone with alt w. Thats what worked for me.
[G1 Android Development] derekedw:
are you trying to use apps to SD card?
[G1 Android Development] webgrafix:
Good point... you may need to wipe (reformat) your SD card if you are storing apps on it. One of my apps was corrupted on my card, and I ran into the same issue until I wiped it clean.
[G1 Android Development] xdavidn88:
1) It happened during the process of doing all this modding.

once after i updated radio, another after i updated theme, another after i updated to jfv1.42mod (for apps to sd)

2) how would i format my EXT2 partition?
[G1 Android Development] clefky10:
Try just doing all the steps over again. Make sure there are no .apks on ur SD card.
[G1 Android Development] xdavidn88:
yea but my apps are on the ext2 partition of my sd, how do i format the ext2 partition?
[G1 Android Development] Misiek_ud:
I have the same problem. I think that I did next mistake, I backed to the RC29. After this G1 still doesn't want goes futher than android screen. Screen dissapers and shows again and again and again. Now I can't even use nandroid, becouse this bootloader don't shows fastboot. My G1 looks like a brick. Please help. :confused::(:confused:
[G1 Android Development] xdavidn88:
Wiped my sd card (both partitions) and now it's running good again.

Thanks guys.
[G1 Android Development] kingblind:
It's doing it again.. ugh.. .. what is the Dalvik cache??? I sure seems like some sort of cache here..

So what is this Dalvik cache...

and, Can I move it to SD? OR empty it?

Thanks
[G1 Android Development] kingblind:
I figured out how to move the Dalvik Cache..

busybox cp -a /data/dalvik-cache /system/sd/dalvik-cache

rm -rf /data/dalvik-cache

ln -s /system/sd/dalvik-cache /data/dalvik-cache

reboot

Now I have 50mb free. 50mb!!! WOW.. Let's see if that fixes things.