yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] uzi2:
The answer is in post #1 for you - Installation and Updating:

Your existing data.img will be used, so all apps and settings will be kept.

Have you run GPS status and waited a couple of mins?
[HD2 Android SD Development] globalgpj:
So did I, I just ordered the Lexmar one......hope the 32GB works well !
[HD2 Android SD Development] globalgpj:
Doesn't seem that simple. Here's a copy of what's in the 05mountsd section.

Any suggestions.

#!/system/bin/sh

#

# AmeriCan Android - 04.13.11

# Copenhagen's BKUP2SDEXT 2/3/4

# AOSP Project 2011

MMC=/dev/block/mmcblk0

if [ ! -b "$MMC" ];

then

busybox mknod ${MMC} b 179 0;

busybox chmod 600 ${MMC};

fi;

for i in 1 2 3;

do

if [ ! -b "${MMC}p${i}" ];

then

busybox mknod ${MMC}p${i} b 179 $i;

busybox chmod 600 ${MMC}p${i};

fi;

done;

# All Credit For SDCARD Fix goes to xda user brainmaster. For details

# see http://xdaforums.com/showthread.php?t=1010767 (2048 fix)

if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ];

then

/system/xbin/echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

fi;

if [ -e /dev/block/mmcblk0p2 ];

then

echo "--- Checking filesystems";

# fsck the sdcard filesystem first

/system/xbin/e2fsck -p /dev/block/mmcblk0p2;

# set property with exit code in case an error occurs

setprop cm.e2fsck.errors $?;

# mount and set perms

busybox mount -o rw,noatime,async,nodiratime,barrier=0,nosuid,nodev,errors=remount-ro -t auto /dev/block/mmcblk0p2 /sd-ext;

if [ "$?" = 0 ];

then

busybox chown 1000:1000 /sd-ext;

busybox chmod 771 /sd-ext;

# Restore data from sd-ext if not present @ data

for i in data app app-private dalvik-cache;

do

rsync -apDogmtrlu /sd-ext/$i /data;

done;

# please don't put odex files in the app directory people!

# it causes dexopt to crash when switching builds!

busybox rm -f /sd-ext/app/*.odex;

setprop aca.bkup2sdext.active 1;

echo "+++ successfully enabled bkup2sdext +++";

##boot log

#echo "------------------------------------" >> /sd-ext/log.txt &

#/system/bin/logcat >> /sd-ext/log.txt &

else

echo "*** Unable to mount filesystem for bkup2sdext!";

setprop aca.bkup2sdext.active 0;

fi;

fi;

if [ -e /sdcard/android/fix_permissions.sh ];

then

/sdcard/android/fix_permissions.sh;

busybox rm -f /sdcard/android/fix_permissions.sh;

/system/bin/shutdown;

/system/bin/shutdown.orig;

exit;

fi;
[HD2 Android SD Development] PlayStation:
BT WORKS GUYS!!!!! FINALLY.

Just confirmed with my Car Obd Adapter and the CarPC. And just like that everything works like a charm with today's kernel. The only thing I need to check later is how well it works with Bt headsets especially one with caller id. Will also need to see how the batt drainage is with this kernel and also with bt on.

Warren your sleeping at 2.00 am has been rewarded handsomely. Just know we appreciate you and Copes hard work with this fantastic rom..... :p
[HD2 Android SD Development] uzi2:
You answered your own question

# All Credit For SDCARD Fix goes to xda user brainmaster. For details

# see http://xdaforums.com/show....php?t=1010767 (2048 fix)

if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ];

then

/system/xbin/echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

fi;

Just change this number
[HD2 Android SD Development] globalgpj:
Ok, so this is the value "2048" that we can edit........to 4096 for example . Thanks :)

It's one of those things that somethings you feel dumb for not trying, but then you don't want to screw up this beautiful Android build either.
[HD2 Android SD Development] uzi2:
2048 seems to be the best setting for most cards. Maybe users who have found better settings for their cards could share the details?
[HD2 Android SD Development] JeremyGuan:
Weird thing is that I've heard lots of people saying that BT works and mostly paired devices are BT Headset, Car Audio System and PC/Laptop. Just wondering did any of you guys ever Successfully paired with another

Android Based Phone

out there?
[HD2 Android SD Development] mv:-):
And I thought it was my copy of the video I was watching. Probably maybe because music was still on?

____________________________________________

[**] Sent from my *AmeriCanAnroidized* (r0517) HD2 using XDA App [**]
[HD2 Android SD Development] cporeaux:
No other device available :(
[HD2 Android SD Development] BIOYAM:
Yes, I want to help!! .... GOOD NEWS!!!

I have been using every build of ACA since the beginning of May, and have always had Bluetooth connection problems. I only use an earpiece (Motorola H385) and always had to go though the "Bluetooth-Discovery" technique (which worked 75% of the time).

However, after applying Warrenb213's ACATestKernel5182011C.zip, my earpiece pairs perfectly.

By perfectly, I mean that my Motorola H385 instantly connected and disconnected with my HD2. I made 2 calls, then manually disconnected from phone, then manually reconnected (instantly).

I rebooted my phone and then attempted connection again with instant success.

I will continue testing during the day, and only report back if I encounter any issues.... Thank you ACA Developers and to the "team" that supports this thread! .. Maybe one day, I'll be able to be part of the "Drop-Box Crew"... LOL!!!
[HD2 Android SD Development] globalgpj:
Check this out.

http://xdaforums.com/showthread.php?t=1037624

The dev has created an app SD Increase, which does it all for you and it sets whatever value you set on every reboot (provided you tick the box for this option.) :)
[HD2 Android SD Development] uzi2:
There are a few of them in the Market
[HD2 Android SD Development] globalgpj:
Check this out.

http://xdaforums.com/showthread.php?t=1037624

The dev has created an app SD Increase, which does it all for you and it sets whatever value you set on every reboot (provided you tick the box for this option.) :)

EDIT: I set it to 3072 and notice better write speeds and read speeds which changed from 22mb/s to 27mb/s :)
[HD2 Android SD Development] uzi2:
That's good

When you find the optimum setting, please post together with details of your card, for the benefit of others.
[HD2 Android SD Development] BIOYAM:
I would like to add my experience with SD cards, Class speed and Cache sizes:

I have a dual-boot WinMobile/ACA SD setup. I received a 16GB Samsung Class 2 with the purchase of my HD2.

When I got into android, I purchased a class 4 and class 6 Patriot & Centron (both 8 GB) cards. I have used then both sucessfully over the past 2 months.

Recently, I reformatted the 16GB Samsung (Class 2) and installed ACA 0517 build... well guess what? The boot-up and execution of programs are flying... do I dare say maybe faster? Of course, when I first installed ACA, things ran slow until the build settled in..... maybe after 4 or 5 reboots, everything was zooming.

As far as the cache settings, I have left them at the ACA default of 2048. When I tried 1024 & 4096... I noticed no difference whats-so-ever. Obviously, manufacturer's quality build is key here, but good quality class 2 cards work fine too.

To me, for a smooth running error free install, this is what needs to be done, when doing a fresh install (or data.img copy-over too):

(1) Backup necessary files

(2) Format your SD card... I use SD Formatter 3.0 for SD/SDHC/SDXC .. Just go to "options" and change format size adjustment to "Auto" .... you can do a Quick Format too.

(3) Copy over "Android" directory (and Data.img from old build if necessary).

(4) Follow boot instructions in Post #1

It has worked EVERYTIME for me.
[HD2 Android SD Development] globalgpj:
Sounds good. Are you saying that by partioning your SD card with a dedicated area for Android that it will run even faster as well?

I have a 16GB Class6 fm TeamGroup and have about 2GB left of space.

Hence I just ordered a Lexar 32GB Class 10 and hopefully that will last for some time. I will defintely partition that one when it arrives.

How does the File Managers handle partitioned SD Cards.........will it read and write in both partitions when operating in either WM or Android ?

Are you formating using FAT32 ?
[HD2 Android SD Development] lantern20:
updated to the test kernel and bluetooth seems to be working perfectly with headset pairing on the 0512 build so far. voicedial works through the headset, hangup with the headset works. just need to see how battery life is with the new kernel. thank you for taking the time to work on the fix.
[HD2 Android SD Development] shamez23:
You only can have one FAT32 system partition. It needs to be the first partition on your card. Android and Winmo can only use that partition.

You can however have a sd-ext partition for Android to automatically backup your apps to and a swap partition after that which can speed up the system.

Read the FAQ it's described in detail there.

But what is it with you people and speed? Isn't the system fast enough for you? Why are you constantly searching for ways to make it even faster than it already is?

A useless waste of time in my opinion.

By the way, there are several reports of users that have problems with class10 cards. They are faster in read write speeds but their design is different from the slower cards which seems not always to work well with running Android of. Speed isn't everything. Reliability is way more important.
[HD2 Android SD Development] BIOYAM:
I have not partitioned my 16 GB Samsung SD card in any way, so I do not face any of the challenges you queried above.... I have around 4GB free at the moment.

I am also starting to question if class 10 media is even necessary for the HD2, you might be able to get away easily with a class 6 (unless you are planning for other future use with that Lexmark card). I have experienced such good performance with my Class 2, that I wonder how much faster it can actually run. I run 2 GB GPS maps off this card in both WinMo and Android with no stuttering at all. I have movies, Games & MP3s that run flawlessly.

One thing I will add is that maintenance seems to be necessary as you write & re-write files to these cards. I periodically (monthly?) move all files on my SD card to a PC, format it and move them back. This ritual seems to stop corrupt files and keeps performance at peek.

Maybe this weekend I will experiment with the "Partitioning for better performance" procedure. But as of now, since I am contemplating getting the new upcoming HTC Sensation 4G (an android phone), I will probably just enjoy my HD2 with ACA builds until it arrives.
[HD2 Android SD Development] jpvanpolanen:
I have a strange problem.

During first boot it shuts down. Then the second time it seems to work but some apps don't work. Like Market doesn't work.

Any ideas??

Thnx in advance.
[HD2 Android SD Development] cporeaux:
Normal as there is a script executed that shutdown Android after 'changing permissions'.

Existing for a while now in every builds.

for you pb with execution read the faq or pages before, it's written.
[HD2 Android SD Development] BIOYAM:
New ACA installations have always shut down my phone the first time it runs... it always works fine after a reboot.

As far as Market not working, it happened to me the first time too, but after 2 or three boots it just stated working. As far as your apps, do new apps installs if you are restoring it from a Titanium backup.
[HD2 Android SD Development] DanijasDub:
Testing your latest kernel with latest, fresh data 17052011 build, so far so good, tried to connect to my laptop with win7 via bluetooth it's finally works i can send files over bluetooth to my hd2 but was unable to send anything from it, keep getting a message about failed sending, tested battery drain with bluetooth "on" for a past hour so it is around 60mh, without bluetooth ~ 4-8mh, later i will try it with my Jabra earpiece...

Thanks Lads superior build been using it since feb 2011
[HD2 Android SD Development] cporeaux:
57Ma with BT only on mine

Will try sending files from now ;-)

Edit : sending from HD2 to WIN 7 is working well, sorry for you
[HD2 Android SD Development] uzi2:
Class 2 and 4 cards work very well, but make sure you get a good brand. As I said not so many posts ago, Sandisk have a very good reputation here for running android.

All that unnecessary copying of files is more likely to cause errors than prevent them. If you want to check the SD card, do it in Windows with diskcheck.
[HD2 Android SD Development] DanijasDub:
I will try again maibe i need to change something bluetooth settings then, actually sending is not a BIG deal for me :D... Have you tried bluetooth earpiece???
[HD2 Android SD Development] jpvanpolanen:
Thnx, will reboot until it workd :)

What i find weird is that on homeschreen there is a market icon but in program list there is not. Weird ain't it.
[HD2 Android SD Development] BIOYAM:
I disagree. It's my experience that doing this monthly ritual has enhanced my experience... i.e no corrupt files, smoother performance...... Waaaaaay better than Windows diskcheck.

Also remember that I am dealing with the US version of the HD2. When it was first release here,, we experienced lots of corrupted files due to hardware and/or bad T-mobile WinMo Roms. XDA roms sold the problem for me, but even with them, I always experienced a reduction in performance over time.... doing my "ritual" solves it (for me).
[HD2 Android SD Development] cporeaux:
Hi,

With my in-car radio, it has been working in both reception and sending calls (more than 2 minutes). Before morning patch, all calls were closed after 30 seconds/1 minute (If BT was detected, only possible after enabling BT on phone).
[HD2 Android SD Development] uzi2:
I guess your ritual improves performance, because it effectively performs a defrag of the SD card.
[HD2 Android SD Development] lantern20:
With the test kernel, I have the ~60mA battery drain with BT turned on. 5-9 mA with Bt turned off. toggling BT on connects to jabra headset immediately.
[HD2 Android SD Development] Nelthalin:
Ah lol did not see that xD no this was with the sock 051711. I will try the fix.

Edit: Cant. I'm not using wimo anymore i also have a android in my NAND zo i need a other zimage to boot.
[HD2 Android SD Development] warrenb213:
Glad you all are enjoying.

Looks like I left my windows down over night....somebody stole my backpack. :-\
[HD2 Android SD Development] cporeaux:
Best for me is 1669 (1607,1658, 1500).

Even if a bench is just a bench, i know.

I'm pleased with the ROM speed, very-fast and very responsive !

I love that ROM !

:(
[HD2 Android SD Development] fflakes:
Sorry to hear that. Just installed and enjoying the new features so far!

NM, found it
[HD2 Android SD Development] PlayStation:
Yes Warren we are loving this..... Looks like somebody removed the stuff from your backpack, kept them aside and stole the empty backpack. So the baggage otherwise known as 60mA is still there to be carried. Sorry buddy, a new but lighter backpack has to be bought! ;)
[HD2 Android SD Development] evo1rs:
Hi Guys, I recently got a lexar 32g class 10 and it works perfectly. I get reads of about 7-10mb/s and writes of 20-27mb/s with the standard 2048 cache setting.

Best advice I can give if you get this card is to let it 'settle in' for a few days!

When I first got it I copied the lexar software folder then reformatted in fat32 with 32kb cluster size. Filled it up with 18g of music, 6g of pics and vids, my android folders and various other files.

When first run it was slow and clunky, unresponsive and slow to load anything.

I tried 3072 cache speed and it got even worse, tried 4096 and everything was fast and smooth again.

However, after updating the build a few days later I didn't change it from 2048 and it is as good as 4096 was so I've left it at that.

Several builds later and still no speed problems on 2048.

Sent from my HD2

Running AmeriCanAndroid

AOSPHD2GB234CM7
[HD2 Android SD Development] geenyous:
sorry to hear that man!

maybe lucky it was only the bp? anyhow, what a btch!

love your BT work, 60mA back but I much prefer it that way (BT fully working...).

thx man!
[HD2 Android SD Development] biosensorben:
Go to settings, then applications. select angry birds - it will bring up all the info about angry birds, there will be a button there which says something like move to phone. Click it, and it should then work without any problems!
[HD2 Android SD Development] davecurtain:
Unmount SD then install the angry birds app. Mount it back after app installed.
[HD2 Android SD Development] biosensorben:
standard is for worldwide users

SD TMoUS is just for T-mobile users in the US
[HD2 Android SD Development] vicktoks:
okay i have the US Tmobile hd2 but am using it on att network which would i use
[HD2 Android SD Development] PlayStation:
Cope dear. You promised to look into this. I know you are busy with further development of this rom but if you can please spare a minute and tell me what I should do. Thx for fantastic work ;)
[HD2 Android SD Development] biosensorben:
Good question - sorry am in UK, so not sure about this.

My guess is that as you are using it on ATT you use the standard version - I'm not 100% sure but I think the T-mobile network in the US requires some 'special' settings.

Worst case scenario, you try one - don't get reception or data, so you try the other one!
[HD2 Android SD Development] bdaboy338:
is there any fix to the data dropping problem?
[HD2 Android SD Development] bdaboy338:
thanks, i figured it out.
[HD2 Android SD Development] shost:
two screenshots

Home and lock screen
[HD2 Android SD Development] mishans:
@shost

hi!

what is the battery widget?name?

thanks!

-------------------------------------------

if anyone, please can send/attach me this

lights.leo.so

from

/system/lib/hw/lights.leo.so

thanks!

-----------------------------------------

----------------------------------------

@HaPeWe -tahnks
[HD2 Android SD Development] pmbellis:
Please check & comment ... my Quick 'n Dirty ...

I've been trying to systematize my "upgrade" process for upgrading from one build to another ... & I'd appreciate it if the more experienced people here would let me know if I'm doing all the right things in the right order, or if I'm missing something important, so please check & comment ...

Done once (way back when ...)

1.) Partition SD card as per cope's guide​

Done for every new build ...

0.) Reread docent14's excellent FAQ to see if there's anything new ...

1.) Get latest build (currently copeNwarren 022111b)

a.) Download

b.) Read the changelog to see if the changes invalidate or affect one of the points below ...​

2.) Change zone

a.) Edit \Android\startup.txt to have gps_zone=za & not gps_zone=us (I live in South Africa)​

3.) Copy to SD Card

a.) Power down HD2

b.) Put SD Card into PC SD slot

c.) Overwrite \Android to SD-Card (leaving other files in there alone)

d.) Replace SD Card into HD2​

4.) Boot HD2 into Android

5.) Fix GPS

a.) Edit /etc/gps.conf to have za.pool.ntp.org & not us.pool.ntp.org (I live in South Africa)

b.) Rename /system/lib/hw/gps.leo.so to gps.leo.so.bck

c.) Rename /system/lib/hw/gps.goldfish.so to gps.goldfish.so.bck

d.) Copy /sdcard/gps.leo.so to /system/lib/hw/gps.leo.so

e.) Reboot​

... Use as per normal ... looooverllly :)
[HD2 Android SD Development] copenhagen:
:)

no more having to fix things yourself.

i am uploading ....

new features added for those with partitioned sdcards...

everyone else.. cm7 updates.

:)

28 mins for etc
[HD2 Android SD Development] HaPeWe:
Battery Monitor Widget
[HD2 Android SD Development] AmeriCanAndroid:
Try this here

http://xdaforums.com/attachment.php?attachmentid=330513&d=1274555657

from this post here

http://xdaforums.com/showthread.php?t=686567

unzip the update.zip and copy the .jar file to the same location on your device.

if you have to (and only if you HAVE to.. use /sdcard/android/root/system/etc/ or whatever folder its in method.) try to put it in /system/etc/ instead. (again not sure what the correct path is.. its in the zip file youll see it.) ignore the other folder inthe zip file your just interested in the system folder. once copied, reboot. (and dont forget to backup first) your data.img just in case.

let me know if that works for you.
[HD2 Android SD Development] copenhagen:
Update yall!

there is an update on the first post for you

022411

see the changelog for changes

didnt forget gps files this time ;)

:)

really tho check the changelog ;)
[HD2 Android SD Development] DanijasDub:
THANK YOU

1.2.3. Downloading............................
[HD2 Android SD Development] AmeriCanAndroid:
get better soon warren :( he's sick... :(
[HD2 Android SD Development] otaku888:
Cope..

Is there any reason we can't use this fix, posted here:

http://xdaforums.com/showpost.php?p=11456872&postcount=240

To correct the lights problem?
[HD2 Android SD Development] AmeriCanAndroid:
i use this as well :):D

also got the otterbox one (you cannot see the keypad lights)

havnt used the otterbox one for more then a total of 5 hours in 2 years.

capdase is the way to go hard on back soft around .. doesnt cover anything up.. and super easy to fit onto phone... one piece.. perfect.!

and i looked back to how many downloaded the gps fix. 307 users.

i know this number may be a bit off, but thats not bad :) 307 users roughly upgraded to the 21st build :)

that measn 307 users are gonna have an excellent update experience this time to the 24th build :)

its nice to have some sort of number on who is using the build :)
[HD2 Android SD Development] t-mizzle:
I can't view the link from within the app, how much did you pay for the case?

Most cases I liked were made for the euro version...
[HD2 Android SD Development] JustX:
MMS works fine for me. My girl sent me a nice picture to start my day with. =)
[HD2 Android SD Development] JHimmelbauer:
time to say thank you sirs -the last build works perfect for me - don't touch anything ;-) donation is on the way....

-=HB=-
[HD2 Android SD Development] PlayStation:
Here is Evo finally. Man thanks for that boot animation. Its sweet sweet sweet.... ;)
[HD2 Android SD Development] fflakes:
So I found the internet calling tab but it seems you need a T-Mobile app for their wifi calling. Is there a way to install that to this rom or any plans to do so? Its one of the main things I was looking forward to.

Sent from my HTC HD2
[HD2 Android SD Development] ben.marks:
settings>applications>market>clear cache

has worked for others. if not just uninstall and reinstall

/system/app/vending.apk
[HD2 Android SD Development] ndamianou:
Hello,

Does anyone know if the Bluetooth is working fully with the version - for a few versions now (I think after GB2.3.4) my car Bluetooth connects but I cannot make a call only receive calls.

Regards
[HD2 Android SD Development] cporeaux:
It now works for me (just read latest pages, it's written much than once ;))
[HD2 Android SD Development] paul211b:
Using the latest version can someone tell me if its better to create a new data.img with this build?

All i did was what Cope said in a previous post and copied the new android folder over the old one overwriting all?

thanks
[HD2 Android SD Development] uzi2:
You only ever need to let the build create a new data.img if it is specifically stated in the update notes.
[HD2 Android SD Development] paul211b:
Great thanks. Only asking as was looking at the quadrant score, I had 1265 on the previous build and 1371 using the lastest build.
[HD2 Android SD Development] evo1rs:
Thanks buddy, it will only get better! Cope added the Droid guys dance and I'm now doing a 3d flags section, as long as wifey lets me on the laptop!

All thanks should go to Cope and Warren for this incredible build! :-) Thanking me is like thanking the guy who painted the space shuttle!

And thanks Warren for getting bt sooooo good!

Sent from my HD2

Running AmeriCanAndroid

AOSPHD2GB234CM7