yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] D200P13:
dude i want to thank you! everything you told me has worked 100%!!! this made me love my nexus one even more because i got back 147mb of internal space after clachesd. for my final question, do i need to continue to move it or is it a permanent command? what i mean is, if i install like 10 apps, do i have to run that command again? or will the dalvik cache automatically move it to the sd since the first time i entered that command
[Nexus One Android Development] temasek:
Moving dalvik-cache is a one time affair. Though you must flash DT script after every flashing of a rom.
[Nexus One Android Development] daffyno:
when i install cyano6.1.1 with dt a2sd it goes in loop....

anyone can help me please?
[Nexus One Android Development] meechto:
I guess temasek has already answered your question :) Enjoy your N1! ;) It is one awesome piece of hardware and the custom ROMs, kernels, recoveries, scripts and apps are capable of pushing it to its limits. Even I am madly in love with my N1 ever since I rooted it and was able to install all of these :D
[Nexus One Android Development] Sheffield Tunes:
I just flashed the A2SD app (using CM6.1.1) and it didn't make any diffrence regarding to space. (still got 22 mb left)

I have partitioned my SD and made ext2 to ext3 convert before, so that's not it.

any idea what the problem might be?

thanks for the help.
[Nexus One Android Development] takuhii:
Installed DarkTremor app2sd on my HTC Hero running elelinux's Froyo ROM and the phone refused to boot, also my battery just dumped in a matter of minutes, used 35% in like 10 minutes...

I installed the APK using Recovery mode

Any ideas, cos I'm stumped on that one.

Darren
[Nexus One Android Development] meechto:
Quite possibly it has not installed correctly! Could you please check what is the output of the following command:

a2sd check
[Nexus One Android Development] Bierfreund:
I had a Samsung Galaxy S for the last month, and there was no need for Apps2SD, because it has enough storage. Now because i'm an idiot i lost it (forgot it in the train) and that's why i have to use my Nexus One again.

I flashed the last Cyanogen Nightly and without Apps2SD i was not able to restore my 100+ Apps (i think around 150). So I partitioned my SD with 1GB for SD-ext and installed your script.

Before restoring any apps I had arround 140MB internat phone storage, afterwards (not even all apps restored) I only have 16MB left and the phone complains about "Low on space".

a2sd check is fine, i think:

a2sd check
[ ] Apps2SD is launching...
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /sd-ext
[ ] Starting Apps2SD Check Program.
[ ] Checking for ext partition

Darktremor 2.7.5.2 Apps2SD Status Report
===================================================================================
Legend: [*]=Setting is correct
[!]=Setting is correct, but not optimal.
[X]=Setting is incorrect and needs to be fixed or option is not available.
===================================================================================
Block Device - [*] Found
- [*] /dev/block/mmcblk0p2
EXT Partition - [*] Mounted
Mount Point - [ ] /sd-ext
Partition Type - [*] EXT2
Support EXT2? - [*] Yes
Support EXT3? - [*] Yes
Support EXT4? - [*] Yes

Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[*] Programs run from SD card
To run from internal storage, type a2sd remove

Private Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[*] Private Programs run from SD card
To run from internal storage, type a2sd remove

Dalvik Cache - [ ] Regular directory.
[ ] Dalvik to /cache flag file not found.
[ ] Dalvik to SD flag file not found.
[*] Dalvik runs from Int. Storage.
To run from SD card, type a2sd cachesd.
To run from /cache partition, type a2sd cachepart.

Swap - [ ] Partition not present or no swap support.
[*] Swap does not start.

ZipAlign - [*] Not running at boot.
To activate it, type a2sd zipalign

Dalvik Heap(MB) - [*] 32m

Low Memory
Killer Settings - [*] 1536,2048,4096,5120,5632,6144
Note: Values are in pages.
1 page = 4KB memory.

Values represent the following:
1st number = Foreground App
2nd number = Visible App
3rd number = Secondary Server
4th number = Hidden App
5th number = Content Provider
6th number = Empty App

So I think although I install the apps to the SD-ext partition (your script uses hardlinks i guess) the apps still need (not little) storage on the internal storage.

Is this right and can i do something against it? because despite I use Apps2SD I have still to less internal storage as it seems :(
[Nexus One Android Development] IRIE4IPIER:
I had 192 mbs available, flashed this in recovery, and now I have 140. WTF is up with that? This usually worked for me but ever since cm6.1.1, nothing but problems. Anyone? Sorry, I post this before I read other post, this may not be compatible with this rom. Don't see why it wouldn't be though.
[Nexus One Android Development] meechto:
The free internal memory went down from 192 Mb to 140 Mb because when you installed the new version of the ROM, the Dalvik cache was automatically moved back from your SD card to the internal storage. Whenever you flash a new ROM make sure you flash the DT Apps2SD script soon after without rebooting the phone. With CM ROMs use the zip posted by temasek on post 537/page 54 of this thread. Also, after reboot run the following commands:

For checking whether DT Apps2SD was setup correctly:

a2sd check

For moving the Dalvik cache to the SD card:

a2sd cachesd

Enjoy ;)
[Nexus One Android Development] Hilarium:
some apps still decrease my internal storage space(adobe air), but they are still stored in sd-ext. once i uninstalled adobe air, my internal storage space went up by 10mb.

wondering if anyone else has this problem, i notice some other apps do this as well even though i have darktremor flashed onto my phone.
[Nexus One Android Development] D200P13:
yea i think everyone saying the internal is still dropping after a fresh install might not know (like i did) that you must move the dalvik cache with a2sd cachesd for you to get over 100mb if you have around 50+apps/50-mb free of internal memory.

wonder if there is a way to make the installer automatically it for upcoming users or give a BIG notice in regard to internal dalvik cache draining memory and needs to be moved...

one other thing that i tend to forget is some apps i try to install dont install and just make my phone reboot everytime i try to install. after about 6 tries it hit me that i MUST clear the cache only (i did recovery method) and rebooted. app installed like normal. too bad it was the voice pack required for google navigation and i got it working after i got to the location.
[Nexus One Android Development] Hilarium:
well i don't want to move dalvik to sd until i get a faster sd card. so i'm guessing the more apps i have the faster my internal will drain? (because the dalvik is still on internal storage?) i thought app data goes to sd-ext and the sd card, not the internal storage. adobe air is one app that doesn't even go to sd card or sd-ext, it goes directly to the internal storage which drains about 10mb. i uninstalled it, now i have 20mb left for internal.
[Nexus One Android Development] djmcnz:
With apps2ext the apk goes to /sd-ext.

Everything else, cache and data, remains on /data unless you perform some other magic.
[Nexus One Android Development] Hilarium:
so the only way to keep internal storage from decreasing is moving the dalvik to sd?

using a file manager, i don't see anything stored on /data. i see some apk's stored in /system/app though
[Nexus One Android Development] djmcnz:
No... not really. On the /data partition are directories like:

app (apks, moved with apps2sd)

app-private (secure apks, moved with apps2sd)

data (apk data, not moved)

dalvik-cache (can be moved)

system (system config files)

local (temp and log directories)

etc...

So, over time, just like any computer space will be consumed for different reasons. In my case:

app - 0 - apps2sd

app-private - 0 - apps2sd

data - 62MB

dalvik-cache - 90MB

system - 12MB

local - 10MB

I've got less than 30MB available but over 200 apps... I could move dalvik and then probably install another 80 apps... /data/data/ would be only real limit then.

Moving /data/data/ has a lot of implications, not which all I'm sure I know but I'm looking into it. My ROM already supports users who have moved /data/data to SD but I'm not aware of any other that do.
[Nexus One Android Development] catzilla:
Ok.

I've installed 2.7.5.2 on CM 6.1.1 (N1).

Problem: ext4 is mounted as ext2.

How do I fix this? I do not see a /etc/fstab...

# mount
mount
rootfs on / type rootfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mtdblock3 on /system type yaffs2 (ro,relatime)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mmcblk0p2 on /sd-ext type ext2 (rw,noatime,nodiratime,barrier=1,data=ordered)
/sys/kernel/debug on /sys/kernel/debug type debugfs (rw,relatime)
/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dma
sk=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:1 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=070
2,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
[Nexus One Android Development] Hilarium:
how come i don't see anythign in my data folder? is something wrong with my darktremor?
[Nexus One Android Development] djmcnz:
Unlikely. You phone won't boot without data... :)

adb shell
ls -l /data
[Nexus One Android Development] ratson:
this is a known problem, there is no answer yet. or?...
[Nexus One Android Development] djmcnz:
fstab not included with cm but just add it if you like. And don't worry about the type of ext reported, if it works, it works.
[Nexus One Android Development] ratson:
if there is no fstab, what decides how filesystems are mounted? furthermore why is an ext3 partition mounted an ext2? (i guess it should be mounted with -t auto)

type of ext is important to me journaling makes it safer so i would like it to be mounted as ext3
[Nexus One Android Development] lxe524:
nice! try it!
[Nexus One Android Development] :
On Ext issue

May be wrong--

When I flashed DT and it showed ext2, I ran up Mini Partition Tool Wizard and it showed as ext3. So, if you select ext2 to 3, I think it is 3, but just as 2 in DT.

Although, the last time I was looking at DT, thru a rom that uses it as it's a2sd it showed 3.

Ken
[Nexus One Android Development] Namuna:
Beer money coming your way tkirton !!!

Before Darktremor Apps2SD:

- Had to move apps back and forth between phone/sd to update

- Had to keep uninstalling stuff because I had no internal space left

- Forever putzing around with the CyanogenMod Settings to adjust [dis]allowing install to SD for protected apps in order to get them to install at all

- Had to go through all kinds of crazy configs ([un]mounting the SD, clearing market cache, etc...) to get some apps to install... Like Andry Birds

- Some apps just plain refused to install no matter what the heck I tried, like Meteor Blitz

- Had to remember what Apps I SHOULDN'T move to SD, because I'd lose their Widget. Like Weatherbug or Jorte Calendar

Now, with Darktremor Apps2SD:

Absolutely every issue above, is no longer an issue!

- Free, paid, protected, whatever it is it goes right on there. No fuss, no complaining just "successfully installed" EVERY TIME. Angry Birds? No problem. Meteor Blitz? No problem.

- Updates? Click the 'Update All' in the Market and forget about it

- Widgets? They ALL work just fine

Happy camper here.
[Nexus One Android Development] Omiclops:
My SD card is sandisk 16gb class 2 (says on the card) so if I do this should I NOT move the dalvik? Thanks
[Nexus One Android Development] meechto:
I have the same card and have Dalvik cache moved to it. It's been over a couple of months that I have been running it like this. No performance issues whatsoever :) However, when you have to clear the cache and the Dalvik cache in order to flash a new ROM or so, the next time you boot the phone, it takes comparatively longer .... about 4-5 minutes. But I guess that's how it works with the Dalvik on the internal memory as well. I haven't really noticed much though ;)
[Nexus One Android Development] Omiclops:
Ooh thanks for that. So it only takes like 4-5 minutes on the first time then it works perfect after that? If so that's fine :)
[Nexus One Android Development] meechto:
Yep. That's right :) I read it somewhere on this forum that by creating an ext partition and using a script like the DT Apps2SD we are only augmenting the internal storage i.e. the ROM. When the applications are actually run they are fetched into the RAM using paging mechanism for execution. Hence, there should not be a noticeable decrease in performance whatsoever :D unless you are running too many applications at the same time ;)
[Nexus One Android Development] Omiclops:
I'm kind of stuck here. In the instructions where it says:

In the partition sdcard menu, select sd:ext2 to ext3. Follow the instructions on the screen

I'm using the latest clockwork recovery and I do not get this option, it simply says 'partition SD card' and then amount of ex2 - I don't actually get an option of ex2 to ext3. I put 1Gb and swap file I just put 0m, I've looked all over and cannot find where it says this.

Thanks.

EDIT - Also at the end to move the Dalvik cache it says 'If you want to move the dalvik-cache to the sd card, type:'

Where exactly does it want me to type this? Could you make a little clearer please? Thanks again
[Nexus One Android Development] :
You won't see ext 2 to 3 in clockwork. Only if using amon ra. You are ok the way you are doing it. The commands you are talking about are done thru Terminal Emulator. See links on op page on exact command lines.

Ken
[Nexus One Android Development] Omiclops:
Thanks I did it just one thing though, I flashed the app and now when I boot up all I get is PHONE MEMORY FULL I don't understand what I did wrong?

EDIT - I did the dalvik cache command thing and then when it came up not many of my apps came up but I left it a little bit and now it looks like it's working fine :D thank you so much this is really awesome!!
[Nexus One Android Development] :
You need to run the four commands mentioned in the op links. Read up on the info in the links.

check

reinstall

zipalign

cachesd

Phone may reboot after reinstall

Reboot it after cachesd

Preceed all commands in Terminal with

/system/bin/a2sd check "etc for all four"

When you first open Terminal type su to get the # sign first.

Ken
[Nexus One Android Development] mynameisjon:
now that Gingerbread's source is out, any word on whether this will work on Gingerbread's framework?
[Nexus One Android Development] G1-evolve:
It's already running on some GB roms if I am not mistaken..
[Nexus One Android Development] knox420:
EDIT: My fault, I forgot to copy the hidden folder .android_secure/ back to the sdcard. I was just missing all apps from the sdcard. everything is working neatly.

I am just wondering why the system app for the memories displays the internal total space of 196MB even though I used 512MB while partitioning the Ext4...

Having problems, too. I created a 512MB Ext4 partition and a 128MB Swap partition. I then flashed Darktremor. After reboot, the device claimed low memory with 1MB left. Went back into Recovery and wiped dalvik-cache. After reboot I executed

a2sd cachesdreset

and rebooted again. Now I have at least 113MB internal left (of 196MB) but all apps that were on the sdcard are now gone. a2sd check looks strange to me, too. What is missing, what am I doing incorrect?

Thanks for any help.

# a2sd check
[ ] Apps2SD is launching...
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /sd-ext
[ ] Starting Apps2SD Check Program.
[ ] Checking for ext partition

Darktremor 2.7.5.2 Apps2SD Status Report
===================================================================================
Legend: [*]=Setting is correct
[!]=Setting is correct, but not optimal.
[X]=Setting is incorrect and needs to be fixed or option is not available.
===================================================================================
Block Device - [*] Found
- [*] /dev/block/mmcblk0p2
EXT Partition - [*] Mounted
Mount Point - [ ] /sd-ext
Partition Type - [*] EXT2
Support EXT2? - [*] Yes
Support EXT3? - [*] Yes
Support EXT4? - [*] Yes

Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[*] Programs run from SD card
To run from internal storage, type a2sd remove

Private Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[*] Private Programs run from SD card
To run from internal storage, type a2sd remove

Dalvik Cache - [ ] Symbolically Linked.
[ ] Dalvik to SD flag file found.
[*] Dalvik runs from SD card
To run from internal storage, type a2sd nocache
To run from /cache partition, type a2sd cachepart

Swap - [ ] Partition not present or no swap support.
[*] Swap does not start.

ZipAlign - [*] Not running at boot.
To activate it, type a2sd zipalign

Dalvik Heap(MB) - [*] 32m

Low Memory
Killer Settings - [*] 1536,2048,4096,5120,5632,6144
Note: Values are in pages.
1 page = 4KB memory.

Values represent the following:
1st number = Foreground App
2nd number = Visible App
3rd number = Secondary Server
4th number = Hidden App
5th number = Content Provider
6th number = Empty App

EDIT: APKs of Apps are under /sd-ext/app/ but do not get activated
[Nexus One Android Development] :
swap should be 0
[Nexus One Android Development] Forge94:
How do I go about backing up all the apps I've saved on my SD already? (on the FAT partition-Froyo style)

I'm running CM 6.1.1 and am currently backing up all the data from my SD card, but before I create an ext3 partition and everything is wiped I need to know what will happen to my apps.

There is at least 50 saved on there so reinstalling from the market will be a mega PITA!

I'm guessing it might involved getting into the android.secure folder, but don't know what to do from there.

Thanks in advance!
[Nexus One Android Development] djmcnz:
Easiest way, if you have space, is to move them to internal and then nandriod.
[Nexus One Android Development] najar360:
guys,

can this script survive on gingerbread?
[Nexus One Android Development] Forge94:
Thanks for that but can't use that method since I'm hanging around 20mb internal, hence the reason for me wanting apps2ext.

How is everyone else doing it?
[Nexus One Android Development] knox420:
I just backed up my entire sdcard to my computer, created the ext as well as the fat partition and put the backup back to the fat partition. make sure you a) backup /sdcard/.android_secure/ and b) you restore /sdcard/.android_secure/ after creating the partitions. files/folders with a "." prefix are usually not shown on unix systems. That's why I forget mine in the 1st place...
[Nexus One Android Development] Forge94:
So the steps I should take are:

-Copy all sd contents to my computer (I simply selected it all and copied it onto a folder on my desktop. Am I right so far? :)

-Make sure I copy the android secure folder as well, even if it shows to be empty (A simple copy and paste again?)

-Partition the SD card (Ext3 512mb, no swap?)

-Drag all my contents back onto the SD card

-Drag the .android secure folder back on also

-Flash DT's .zip and run commands etc etc etc

This is all on Mac OSX if it helps.
[Nexus One Android Development] houzuoguo:
Hi everyone :)

I carefully followed instructions on this post:

http://xdaforums.com/showpost.php?p=7021325&postcount=2

But it seems like all my applications are still installed in Internal storage, not on sd-ext. I have installed only few applications and I have now less than 80mb Internal storage space left.

I have a 1.5GB Ext4 partition on my SD card, flashed DTa2SD immediately after I flashed CM 6.1.1.

I have run a2sd reinstall but all my applications are still taking internal storage space, I'm sure it's not the Dalvik cache nor application data taking the space.

Here's what my a2sd check returns:

[ ] Apps2SD is launching...

__ _____

| \ |

| | |

|__/ | Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop

[ ] SetProp Command = /system/bin/toolbox setprop

[ ] Mount Point = /sd-ext

[ ] Starting Apps2SD Check Program.

[ ] Checking for ext partition

Darktremor 2.7.5.2 Apps2SD Status Report

===================================================================================

Legend: [*]=Setting is correct

[!]=Setting is correct, but not optimal.

[X]=Setting is incorrect and needs to be fixed or option is not available.

===================================================================================

Block Device - [*] Found

- [*] /dev/block/mmcblk0p2

EXT Partition - [*] Mounted

Mount Point - [ ] /sd-ext

Partition Type - [*] EXT2

Support EXT2? - [*] Yes

Support EXT3? - [*] Yes

Support EXT4? - [*] Yes

Apps - [ ] Linked to SD Card.

[ ] No Apps2SD Flag File not found.

[*] Programs run from SD card

To run from internal storage, type a2sd remove

Private Apps - [ ] Linked to SD Card.

[ ] No Apps2SD Flag File not found.

[*] Private Programs run from SD card

To run from internal storage, type a2sd remove

Dalvik Cache - [ ] Regular directory.

[ ] Dalvik to /cache flag file not found.

[ ] Dalvik to SD flag file not found.

[*] Dalvik runs from Int. Storage.

To run from SD card, type a2sd cachesd.

To run from /cache partition, type a2sd cachepart.

Swap - [ ] Partition not present or no swap support.

[*] Swap does not start.

ZipAlign - [*] Not running at boot.

To activate it, type a2sd zipalign

Dalvik Heap(MB) - [*] 32m

Low Memory

Killer Settings - [*] 1536,2048,4096,5120,5632,6144

Note: Values are in pages.

1 page = 4KB memory.

Values represent the following:

1st number = Foreground App

2nd number = Visible App

3rd number = Secondary Server

4th number = Hidden App

5th number = Content Provider

6th number = Empty App

[⁇] For a list of commands that you can use with Apps2SD

Type: a2sd help

Do I need to manually click on "move to SD" in Application Management to move my apps onto SD-ext? This is my first time using DTa2SD.

Thanks in advance for your help!

EDIT:

ls -l /data gives me that app and app-private directories are symbol links to /sd-ext/app and /sd-ext/app-private. I got my internal storage space information at Settings-> SD card and phone storage settings page. I now have 80.61 MB available space on internal storage.