yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] sessman:
a little new to this, so this rom has a2sd in it, does that mean all the apps i have downloaded after flashing this rom are on my sd card, not taking up room on my phones internal memory? if not, how do i start making them? and does that affect the speed of your phone having them on your phone rather then on an sd card? sorry for the newb questions, so far the rom works pefectly for me...except the keyboard is laggy...if anyone has a step by step to fix that problem i would be thankful as well
[Hero CDMA Android Development] jbea007:
Battery widget..by HTC Corp
[Hero CDMA Android Development] :
APPS2SD Here is how I got it working 100%

I tried a few different ways. So this post might have some unnecessary steps / wipes

Backed up my SD Card

Made brand new partitions

Wiped everything

Reflashed 2.0d

Without rebooting

I flashed kkruse_a2sd_fix_fresh_2.1_20b2-signed

Then First boot

Then I copied 04apps2sd from fresh 2b2 to /system/etc/init.d I used sufbs

Then in terminal

chmod 755 /system/bin/apps2sd

chmod 755 /system/xbin/apps2sd

cd /system/etc/init.d

dos2unix 04apps2sd

apps2sd on

wipe data

reboot

Here are my results

Before

busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 95.5M 0 95.5M 0% /dev
tmpfs 4.0M 4.0K 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 170.0M 125.1M 44.9M 74% /system
/dev/block/mtdblock5 159.5M 56.7M 102.8M 36% /data
/dev/block/mtdblock4 130.0M 1.2M 128.8M 1% /cache
/dev/block/mmcblk0p2 457.4M 7.0M 426.0M 2% /system/sd
/dev/block//vold/179:1
7.1G 460.0K 7.1G 0% /sdcard

After

busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 95.7M 0 95.7M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 170.0M 135.1M 34.9M 79% /system
/dev/block/mtdblock5 159.5M 8.1M 151.4M 5% /data
/dev/block/mtdblock4 130.0M 1.2M 128.8M 1% /cache
/dev/block/mmcblk0p2 457.4M 61.4M 371.5M 14% /system/sd
/dev/block/mmcblk0p2 457.4M 61.4M 371.5M 14% /data/dalvik-cache
/dev/block//vold/179:1
7.1G 171.2M 6.9G 2% /sdcard

The dalvik-cache wasn't being transferred over. Not sure if this was intentional or a bug.

Sorry if this post is hard to understand. I wish I did a better job documenting my steps. If I left anything out or if anyone can do a better job explaining go for it. :)
[Hero CDMA Android Development] NewYorkLaw:
Yes, I did and it's not. Strange. I thought someone was going to tell me it was spelled differently. I'm still not seeing it.

Pete
[Hero CDMA Android Development] smoother2010:
so after all of your installed apps how much internal ram do you have now? i really don't want to install this rom again, i just got it perfect. and yeah your post is hard to understand. can someone simplify it? maybe tell flips about this so he can issue a fix?
[Hero CDMA Android Development] david279:
Um apps2sd is working its just the dalvik and data/data are going to fill up and thats why it may look as if its not working. On most of the legend based roms the dalvik was put on ext but not on this one.
[Hero CDMA Android Development] smoother2010:
so how can we fix this then?
[Hero CDMA Android Development] swaze:
yep, results apps2sd not found.
[Hero CDMA Android Development] david279:
+1 :( ...10stinkinchar
[Hero CDMA Android Development] mario23:
Great job again guys!

This thing is FAST!!!
[Hero CDMA Android Development] darchstar:
try copying the binary from their previous version onto this rom. unzip their previous version, then go into system/xbin. you should see a binary called apps2sd. push that file to /system/bin. once you do that execute those commands i gave you earlier.
[Hero CDMA Android Development] david279:
try it @swaze. Your first up...
[Hero CDMA Android Development] wjtrawick:
I would like to know this as well. I really like using the stock keyboard and dialer. I cant live without the voice option after using AOSP.
[Hero CDMA Android Development] darchstar:
unzip my rom and go into system/app. you'll see an app called VoiceSearchWithKeyboard.apk . Thats the keyboard. just push it to /system/app . then long tap on a text box, input mode, android keyboard. i know this works as i tested it on their previous rom
[Hero CDMA Android Development] networx2002:
I can see and download protective apps :D
[Hero CDMA Android Development] david279:
look for twidroid and see if its there...
[Hero CDMA Android Development] swaze:
Ok you make it sound simple so ill give it a go but i may need some more specific instructions.

lol@david279
[Hero CDMA Android Development] david279:
Unzip and push this to /system/xbin

adb remount

adb push app2sd /system/xbin
[Hero CDMA Android Development] wjtrawick:
Thanks, but I dont see "VoiceSearchWithKeyboard". I only see VoiceSearch and VoiceDialer

EDIT: Nevermind! Wrong Rom! Thanks Darch!
[Hero CDMA Android Development] troyboytn:
did you flash over Flipz 2.1 without a wipe? just wondering how to acheive getting protected apps before flashing.
[Hero CDMA Android Development] darchstar:
unzip their previous rom

go into the newly created system/xbin folder

adb push apps2sd /system/bin

adb remount

adb shell mkdir /system/sd

adb shell apps2sd on

adb reboot

Thanks david for correcting me :D
[Hero CDMA Android Development] darchstar:
In MY Darchdroid rom? I'm 110% sure its there
[Hero CDMA Android Development] david279:
dont forget mkdir /system/sd
[Hero CDMA Android Development] networx2002:
No

i cant see twidroid, dam
[Hero CDMA Android Development] david279:
;)...thought so
[Hero CDMA Android Development] networx2002:
no i cant see it, DAM
[Hero CDMA Android Development] Tikerz:
Does the HTC People widget work for anyone? I can't add it because it doesn't give me the list of people groups to use for the widget.
[Hero CDMA Android Development] david279:
Its just gonna take a different method of apps2sd. It is working just not as efficient. kkruse and MoDaCo way of doing apps2sd is some of the best ive used.
[Hero CDMA Android Development] smoother2010:
well hopefully flips or someone can issue a fix for us then?
[Hero CDMA Android Development] :
Right now with most of my apps reinstalled 140mb
[Hero CDMA Android Development] smoother2010:
holy crap, really? ive got 26 apps installed and ive only got 80mb left. can you try to explain your methods again in noob talk? lmao!

also do i have to install the rom again to do this fix?
[Hero CDMA Android Development] dcdave63:
I have 60 apps installed and have 70mb left. I had 85 apps working, but with that many, I couldn't get the Manage Applications to open, it kept crashing (fc's). I wonder if I could get the dalvik cache moved if I could get all 85 apps working and get Manage Applications to open too?
[Hero CDMA Android Development] :
I wish I could. I know I made it overly complicated. But its mostly a proof of concept in hopes someone could simplify it

I wiped so many times my Hero needs Preparation H
[Hero CDMA Android Development] smoother2010:
hopefully a dev or flips can issue a simplified fix for this. i really hate to do a totally fresh install again. :(

and...LMAO!
[Hero CDMA Android Development] smoother2010:
try it out and post results and a simplified method, lol. if it works for you ill give it a go. :D
[Hero CDMA Android Development] :
I'll do a nano backup and start fresh. Documenting it better. Hopefully...
[Hero CDMA Android Development] ASULutzy:
I'm guessing that a few of those steps were unnecessary, and some of them do such minor things. Like "dos2unix" just changes the "end line" from \r\n to just \n. (In Windows, a new line is denoted by a carriage return and a line feed, in *nix it's just \n)

I'll try and do the steps I actually think are relevant from what you did and if it works, I'll post the minimal steps needed to actually make it work. Hopefully, flipz just releases a little signed .zip that does all this for us.

I actually don't know enough about how these phones work to know if not putting the dalvik-cache on the sd-card was intentional (ie there's a good reason to not do it), or if flipz just made a small goof.
[Hero CDMA Android Development] smoother2010:
do this guys, working great for me http://xdaforums.com/showpost.php?p=6078233&postcount=1291

follow every step and enter every command. this will move everything to your sd card including cache. after reboot your phone takes awhile to boot though, so be patient.

EDIT: it did free up some ram but not a ton, so i guess it doesn't hurt to try?
[Hero CDMA Android Development] kshelton:
This is my favorite ROM out now thanks so much!
[Hero CDMA Android Development] ASULutzy:
Yaknow, as someone who knows nothing about phones, but a good chunk about Linux, I always wondered if "apps2sd" was just a bunch of symbolic links. I see now that it is?

edit: That didn't work. It seems like that "long boot" is the phone recreating all the stuff we rm'd. I might fiddle with it some more.
[Hero CDMA Android Development] dcdave63:
It most is symbolic links, but some part of the data is moved to the sd card, and some is kept right where it is. But even 30 to 50 % of the apps are moved or the data that is being used, doesn't that add up to a significant savings on a limited internal memory basis?
[Hero CDMA Android Development] smoother2010:
we need a fix for this because people are reporting those commands freed up a ton of space for them in the damage rom threads. :mad:
[Hero CDMA Android Development] dcdave63:
I noticed that when I went into adb shell and did a cd system/sd/dalvik-cache and did ls that there were things listed. So it seems like it is moved to the sd card, but not listed as part of the busybox df -h list. Strange that it wouldn't show up.
[Hero CDMA Android Development] smoother2010:
yeah after doing this 'fix' i still only have 83mb left. before i had 80. i also got that error your talking about.
[Hero CDMA Android Development] ASULutzy:
I found the "issue" though I'm not sure it's an issue. If you check through the apps2sd shell script, you'll find the following:

# don't allow /data/data on sd because of upgrade issues - move it if po

if [ -d /system/sd/data ];

then

busybox cp -a /system/sd/data/* /data/data/;

busybox rm -rf /system/sd/data;

fi;

So that explains why /data/data isn't on the sdcard.

As far as the dalvik cache, for whatever reason even after I tried to copy /data/dalvik-cache to /system/sd/dalvik-cache and then rm and symlink, when I rebooted /data/dalvik-cache was recreated and the symlink was no longer active. (pwd inside of /data/dalvik-cache shows /data/dalvik-cache instead of /system/sd/dalvik-cache)

I'll check through some more of the scripts if I have time to try and see if any of those are responsible.
[Hero CDMA Android Development] jeric71:
So about this Facebook thing:

I've done everything I can imagine trying to get the sync to work save of wiping and restarting from scratch. Here's everything I've done.

1) Remove Account, reboot, Add account, reboot

2) Wipe dalvik before and after removing and adding the account (did an iteration with each separately and one at both times)

3) Made sure AutoKiller settings were set to "Default" - the lowest numbers possible (is there a better setting, these seemed to be the most forgiving)

4) Waited multiple hours between doing different steps (because I know it can sometimes take a bit)

I've done this so many times and has been an all day affair and the most I can EVER get is my contact info and pic synced. When I'm in accounts and sync and hit the sync now for Facebook - it will only show the sync icon for like 1 or 2 seconds MAX. Is this normal?

I just want this to be able to work. People are sharing that it has eventually. What am I doing wrong?

Eric
[Hero CDMA Android Development] smoother2010:
yeah the post with the fix i listed doesn't seem to work unless you go from a fresh flash before installing any apps. ill try tomorrow and report back.
[Hero CDMA Android Development] regaw_leinad:
Try this:

Go to people, then slide to updates & events.

Click Menu > Refresh like 5 times in a row, then let it sit on that screen for about 15 minutes, letting the screen turn off. They should sync

People on my thread called it the "Regaw Brute Force" method LOL

Poeple said that worked for them
[Hero CDMA Android Development] dcdave63:
That's the odd thing, when I do pwd inside /data/dalvik-cache I get /system/sd/dalvik-cache but it doesn't show up as part of the busybox df -h, and yet I know it used to. So for me, its working, but not being counted as part of the overall total % moved.
[Hero CDMA Android Development] smoother2010:
im just wondering if flips is aware of this and may issue some sort of official fix? i mean i guess it's no big deal since i doubt im installing any other apps but it bothers me to no end when something doesn't work right, lol.
[Hero CDMA Android Development] tkirton:
A better way to check:

ls -l /data

Look for the entry named app. Look to the right of it. If you see "-> /system/sd/app", then anything stored in /data/app will be stored in /system/sd/app instead. Android stores its apps in /data/app, so the symbolic link must be there for the app to be stored on the SD card.
[Hero CDMA Android Development] Queef Gurl:
deposit files is sooooo slow.

Nice job Fresh.
[Hero CDMA Android Development] ASULutzy:
The block of code responsible for transferring over the dalvik-cache looks wrong at a glance.

# move apps and dalvik cache from internal memory to sdcard

for i in app app-private;

do

if [ ! -d /system/sd/$i ];

then

mkdir /system/sd/$i;

fi

busybox chown 1000:1000 /system/sd/$i;

busybox chmod 771 /system/sd/$i

if [ -d /data/$i ] && [ ! -h /data/$i ];

then

busybox cp -a /data/$i/* /system/sd/$i/;

busybox rm -f /data/$i/*;

fi;

done;

I believe if this is changed to

# move apps and dalvik cache from internal memory to sdcard

for i in app app-private dalvik-cache;

do

if [ ! -d /system/sd/$i ];

then

mkdir /system/sd/$i;

fi

busybox chown 1000:1000 /system/sd/$i;

busybox chmod 771 /system/sd/$i

if [ -d /data/$i ] && [ ! -h /data/$i ];

then

busybox cp -a /data/$i/* /system/sd/$i/;

busybox rm -f /data/$i/*;

fi;

done;

Then that might take care of it? No where in the apps2sd script do I ever see any actual copying of the dalvik-cache.

edit: Flipz, I have no idea how to sign stuff or make updates.zip or whatever, but at a glance, that for loop definitely is not copying the dalvik-cache. Again, I have no idea if this is intentional or not, or how to make a patch, but it looks like there be the problem. amirite?

edit2: Also, could someone who hasn't fiddled with anything check if they have a populated /system/sd/dalvik-cache? I don't know if it existed before I fiddled or after. Either way, for some reason even after I tried to manually fix the "bug" the phone recreated /data/dalvik-cache and the symlink is magically gone. Anyway, I'm too tired to try and figure out why that happened, but hopefully someone else steps in and fixes it so that when I wake up tomorrow I can get 100+ MB free :p
[Hero CDMA Android Development] smoother2010:
right, all of my apps are on my sd just the cache is not and i cannot move it for some reason?
[Hero CDMA Android Development] tkirton:
System Data, Browser Cache, Dalvik Cache. Boot Cache are all stored on your internal memory. Other programs such as e-mail, SMS may also be stored on your internal memory. This is due to the following:

When your phone is working without apps2sd/a2sd, it stores most of its programs in /data/app and /data/app-private. Data for the programs is stored in /data/data. Dalvik cache is stored in /data/dalvik-cache. You also have an area in your internal memory for the core files (/system/app). All of these directories together account for most of the space you see consumed.

Since Android wants to store your programs in /data/app and /data/app-private, this behavior cannot be changed without affected the entire OS.

What apps2sd (or also called a2sd) does is take the /data/app directory and the /data/app-private directory and redirects it to your sd card (in the directories /system/sd/app and /system/sd/app-private) using symbolic links. So, when Android puts a program in /data/app or /data/app-private, it thinks it is storing the program in internal memory. But because /data/app and /data/app-private was redirected to the sd card by apps2sd, the program really gets stored on /system/sd/app and /system/sd/app-private.

However, the core applications that are on /system/app are not redirected. Neither is the davlik cache or the program data (/data/data). The reason for that is simply for stability. If the card is pulled or no longer is readable, the core Android can still start without the programs (although it will be crippled until the /data/app and /data/app-private are recreated as directories).

There are also browser cache data, Google Market cache and other caches from other programs that are still using internal memory (as they would also be potentially unstable if placed on the sd card).

Hopefully, I explained this well enough for everyone to understand how apps2sd/a2sd works.
[Hero CDMA Android Development] tkirton:
Shouldn't, although I have heard people get the wrong PRL. Not sure if that's from the Eris builds or not.
[Hero CDMA Android Development] smoother2010:
good work, i have no clue how to do this but hopefully someone can get it going.
[Hero CDMA Android Development] ASULutzy:
That's a good explanation, but when code disagrees with its own comments, I have to consider that a bug.

The writer of the apps2sd script on this rom explicitly states that it will not store /data/data on the sdcard for stability reasons, then in a later comment it says,

" # move apps and dalvik cache from internal memory to sdcard "

But then it does the following

"for i in app app-private;

do

[...]

busybox cp -a /data/$i/* /system/sd/$i/;

busybox rm -f /data/$i/*;

"

So the comments say "Hey, we're going to copy over apps and the dalvik-cache" but then the code doesn't actually do what the comment says. As a software engineer, that screams BUG to me :D
[Hero CDMA Android Development] sdotcarlisle:
so i installed the white theme, how can I go back to the normal theme?
[Hero CDMA Android Development] rank78:
funny thing is i was about to ask for info on how to fix my facebook syncing and BOOM this did it. THANK YOU :D

on another note, is everyone still unable to get LWP to stick? and if they do stay, are you using launcher or helixlauncher? i'm using helixlauncher because i wanted 7 screens rather than launcher's 5, and LWP was staying fine at first but now it disappears upon wakeup. :confused:
[Hero CDMA Android Development] d11dog11:
does anyone have a flash-able zip of just the espresso lock screen (straight instead or curved). I have looked and searched but can only find it bundled with other updates.
[Hero CDMA Android Development] 702DROID:
should have made a backup before trying that theme out so you can just flash back ....but to go back gunna have to reflash the rom or find another theme you want and is working
[Hero CDMA Android Development] someonenewhere:
Still running Fresh 2.0d ROM and still no issues!

all i can say is...I LOVE IT!
[Hero CDMA Android Development] tkirton:
The original Cyanogen script, which is what this is based from (and also my version, though mine looks radically different from this one) did not link the dalvik-cache. It's possible that Cyanogen discovered this was going to be a problem, either stability or performance. Since Cyanogen has been working with Android far longer than I have, I have to assume there was a reason for this omission.

You're right, there is no copying of the dalvik-cache. So, what will happen with your modification is that the dalvik-cache will be rebuilt (which can take a while - up to 10 minutes for some people). Not a big deal, but the sd card is slower to write to than the internal memory, even a class 6 card is slower than internal memory. You'll have to analyze how often the dalvik-cache gets updated as you are using the phone and if that significantly impacts the performance and stability of the phone.

Since I never linked the dalvik-cache to the sd card, I can't answer that question.
[Hero CDMA Android Development] fixxxer2008:
so in noob terms are you telling us to just deal with the internal space issue? because my 1.5 rom didn't have this and i was running apps2sd on that one with the same # of apps installed. :(
[Hero CDMA Android Development] redtxstar:
Late to the party, but I just wanted to say I absolutely love this release! Thank you!!!
[Hero CDMA Android Development] tkirton:
Here's the original script that you find in the 1.5 roms:

So, it looks like the author was going to put the dalvik-cache code in there, but neglected to (probably got distracted...happens to me all the time).

I'm testing dalvik-cache on the sd card to see if it works and what are the ramifications for doing this.
[Hero CDMA Android Development] sdotcarlisle:
i got a backup, just was hoping there was an original theme I could flash over it as the backup is a few days old and i think i changed a bunch of crap. no biggie. grazi

main reason wanting to go back to original is theres taskbar on the damage rom mods thread was wanting but since the time is black in the white taskbar it stays black in the other taskbar and hardly visible.
[Hero CDMA Android Development] tkirton:
Not at all. Keep in mind that 2.1 Eclair is bigger than 1.5 Cupcake. I think the G1, which has less memory than our phones do, can run 1.5 but not 2.1 because the size of Eclair is bigger...and that's a GSM phone, which those developers have had more time to optimize their code than we have.

Also, keep something else in mind...this is a leaked Sprint RUU that this is built on, which is not official product. It is also possible that debug code is active in many of these applications, which will expand the size of any compiled program, including Java.

I'm looking at what space savings you can accomplish by moving the dalvik-cache over to the sd card. Although this wasn't necessary in 1.5, perhaps it is for this version.

I'll let you know my results.
[Hero CDMA Android Development] redram38:
I have ran dalvik-cache from the sd card before and had no issues or loss of speed doing so. I am also trying it now to see if it is ok. I just like seeing the 22 meg used as opposed to 90 meg used. It may just be a mind thing but it freaks me out to see so much of the internal memory being used :-)

:)
[Hero CDMA Android Development] fixxxer2008:
thanks, didn't mean to be rude but little things like this bug me. the rom is running fine otherwise, i just hope there can be a fix? so are you saying the final 2.1 version will have this issue as well with apps2sd unless you modify the program somehow?
[Hero CDMA Android Development] richse:
I have been searching for a standalone clear/translucent notification window for this rom and I can't seem to find one. The only thing I can find has a bunch of other changes (e.g. white status bar) that I don't want. Anyone know of a zip that can just give me a clear notification drop down? Thanks in advance.
[Hero CDMA Android Development] Ska8erMush:
+1

10chars
[Hero CDMA Android Development] djR3Z:
SOMEONE QUICK!!!

DarchLegend 4.3 or Fresh 2.0d

Trying to decide which to install tonight
[Hero CDMA Android Development] Lancie2:
I used the one found on RegawMOD's page

The option titled "Espresso Only (if you want to revert back after flashing stock)(thanks Flipz for Espresso)"

No issues thus far after flashing.

Because I have a low post-count I cannot post the link, but I'm sure the thread is still on the first page.
[Hero CDMA Android Development] atoz350:
Here I made this one for you...

http://www.4shared.com/file/256576157/f474aa66/Espresso_Lockbar_NO_MOD-signed.html

I haven't tested it so tell me if it works.