yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] c0de_junkie:
worked like a charm on LeeDroid GB 3.0.1.... thanks a lot because I have been trying for a few hours now with no luck and then i came across your post and it worked right away... so thanks has been pressed !!!!
[Android Apps and Games] PIRATA!:
Again...this is important:

What are the RED lines for??

Is there a way to set chown using the update-script (located in \META-INF\com\google\android\update-script) so to flash using CWM and have this same effect that you have using ADB??

Thank you.
[Android Apps and Games] demon1010:
Can't seem to flash this on my Optimus 2X running CM7. Says installation aborted in CWM.
[Android Apps and Games] jigners:
reporting to work well with my HD2 with HTC Desire Sense build of

DFT_LEO_NAND_Android-bauner-mod-kernel-prj03

8Gb Sandisk Class 2 SD Card
[Android Apps and Games] Guashh:
Sorry, my english is very bad, I flash the zip with cmw (speed mod) and flash ok, but then the speed don't change. Sorry my english

Enviado desde mi Samsung Galaxy S usando tapatalk
[Android Apps and Games] lord t:
Sounds great!!! I going to try.....
[Android Apps and Games] lord t:
You can try an application called sd increase" you can find it in the android market.....

(puedes probar una llamada "sd increase" y la puedes encontrar en el android market....si no sabes mucho ingles mandame un MP a ver si te puedo ayudar)
[Android Apps and Games] :
Use this if and only if the version 1 in the op works for your phone

This is my improved version of his version 1 script for the sd's cache. This will give even better performance from your sd card. Again use only if the v1 worked for your phone. Don't forget to thank me if it works, it works on my hero.

#!/system/bin/sh

mount -o remount,ro -t yaffs2 /dev/block/mtdblock3

# SD TWEAK

for sd in /sys/devices/virtual/bdi/*/
do if [ "$sd" = "/sys/devices/virtual/bdi/179:0/" ] && [ "$(cat ${sd}read_ahead_kb)" = 1024 ]
then
break
else
mount -t yaffs2 -o remount,rw /dev/block/mtdblock3 /system
echo "1024" > "${sd}read_ahead_kb"
mount -t yaffs2 -o remount,ro /dev/block/mtdblock3 /system
fi
done
mount -o remount,ro -t yaffs2 /dev/block/mtdblock3

Enter that into file 98sdfix. Change its permission to rwx-rx-rx aka chmod 755 the 98sdfix file. Then you can either push it to your init.d folder or make a zip file for it. Also change the 1024 to the value that works best for your phone. This version is different because it echos the new value to all the bdi's directories, unlike in v1 where it only echo'd it to the bdi directory 179:0 which is common on most phones. I will post another improved version of this version later on this week but for now enjoy the better quad scores, and phone/sd speed.

EDIT: THIS IS EXTREMELY IMPORTANT! I forgot to say this but before you do ANY of this do a few things:

- BACKUP EVERYTHING

- Then use adb shell or a terminal emulator with root permissions and type this

cat /proc/mtd

IF AND ONLY IF mtdblock3 isn't your system's mtdblock then change the mtdblock3 to whatever it is for your phone in the above improved sdfix script. Then continue on.

Okay i'm out of this thread until later this week with a better version :D

- Kifno :cool:
[Android Apps and Games] PIRATA!:
Thank you very much.

I'm working on doing a correct script flashable using CWM for SGS i9000, and your work could probably be helpful.

I have some questons for you.

1) What is the cat code for? I mean this one:

cat /proc/mtd

2) How can I check what is my mtdblock so to understand if I have to change it in the script??

3) If I'd like to make a script that changes the KB value even for the 179:8 and the default memory, is it possible to do this using only one script??

Thank you.
[Android Apps and Games] :
1. the cat code on any linux enviroment will display the value of the file you're redirecting to

2. that cat command will display your mtdblock ;)

3. my script already does this for you

- kifno
[Android Apps and Games] PIRATA!:
1) Yeay, I know what the cat command does, but I was not understanding why we need to do it.

2) No I undersntand why of Q.1

3) ...where?!??
[Android Apps and Games] :
So do you still need to know which mtdblock is your system partition?

Also its the way its coded that makes it put that value into the directory you're looking for. Try it out after you figure out your mtdblock and see ;)
[Android Apps and Games] :
There are some mistakes you are making in adjusting the code. I will post a correct version for you later.
[Android Apps and Games] harrykc:
thank you, that good for my phone..
[Android Apps and Games] davec1234:
Really?

10/char
[Android Apps and Games] sergmeister:
The app works perfectly fine for me and it might be the inaccuracy but the write speed also seemed to have increased by 1Mb/s when i increased buffer to 1024
[Android Apps and Games] DannyBiker:
I have a bug on my favorite HD2 Rom that I don't get with any other ROM : after a while my phone FC when I accept an incoming call. I hear nothing or just a "shhhhhhhh". My network gets disconnected and I have to enter my Pin again. I also need to reboot to make calls or get sound again.

NOW : I realized that it started to happen when my ROM's chief implemented this SD Card tweak. Did this happen to anyone ?

I reverted the value back to 128 but wanted to know if I'm on to something here...

Thanks !
[Android Apps and Games] crz6662:
Commented to subscribe to this thread. Will give this a try.
[Android Apps and Games] grinnerD:
the zip script did not work for me in CWM on cm7 nightly build 13 optimus 2x. I get a installation aborted code 0.

However I used the sd increase from the market and best results for my card was 2048 buffer.

before write=6

before read=10

after write=10-13

after read=17-18

thanks for the thread and script

edit: I just realised the SD increase app resides in memory at cost of 25mb. removed

manually extracted the script, (used es file explorer )

copied to /system/etc/init.d

ran chmod 777 [filename] in a term

thanks again
[Android Apps and Games] nemiroG1:
Works awesome! Thanks for doing this!
[Android Apps and Games] corgar:
as already asked inside kernel thread dunno how to solve this problem:

http://xdaforums.com/showpost.php?p=13800373&postcount=736

how to solve this problem? already tried to change [] with () but nothing
[Android Apps and Games] brandall:
Tasker - Apply Settings on Device Boot

For those of you that use Tasker, I've knocked up a profile that will set your chosen value when the device boots and confirm it has successfully done so.

You'll need the locale execute plugin.

Edit action number #2 with your chosen cache size and a different file path if necessary.

Job done...

Edit: When testing for the best settings, 'apply' out of Tasker and go back into the application between each change - You may also have to give permission via the SuperUser application before the settings will stick. You can also variable clear %SDCACHE at the end of the task if you don't wish to use it anywhere else. Tidy files, tidy mind.
[Android Apps and Games] SamuelYan:
Thank u so much for this awesome app!
[Android Apps and Games] lolobabes:
can you flash this even after flashing darktremors ap2sd? ty
[Android Apps and Games] brainmaster:
Yes, there is no interference.
[Android Apps and Games] lolobabes:
if i flash a new rom deleting data and cache dalvik do i need to re flash this as well? nice job sir ta
[Android Apps and Games] PIRATA!:
Is this SDCard mod still needed with Darky's 10.1???
[Android Apps and Games] laie1472:
Yes

#Root/Hack-Mod_Always*
[Android Apps and Games] laie1472:
Try it. If you notice a performance increase use it. Always nand first.

#Root/Hack-Mod_Always*
[Android Apps and Games] KSTu:
hi, i install this 3.INTERNAL SD + EXTERNAL SD + Default memory @ 2048

ok,i post it here....but still do not know where i can see the speed....
[Android Apps and Games] PIRATA!:
:) as I told you in the other thread, you have to use an app that is linked in the first post of this thread.

The app is called SD Speed Increase and the market link for it is just uppon the two screenshots posted in the first post.

If the speed is not at 2048, please tell me your system and rom and I'll see if it is something related to he installation procedure of my CWM files.

Cheers.
[Android Apps and Games] KSTu:
ok,just installed the apk from market and it shows me

status: 2048kb with green letters and numbers

where i can see the values for writting and reading?
[Android Apps and Games] PIRATA!:
Ok, now you can make some benchmarks with SD Tools that is the same program of the screenshots in first post... and which market link is also linked in the first post :D
[Android Apps and Games] KSTu:
ok.....i have

write speed: 9.0 MB/s

read speed: 18,7 MB/s

it is OK? :D
[Android Apps and Games] PIRATA!:
Well..I don't know because it is alot rrelated to your kind of sdcard :)

I think that you score is good.
[Android Apps and Games] KSTu:
now i have an 16gb card,class 6..... can i try an higher value like 3072 or higher(4096)?
[Android Apps and Games] PIRATA!:
I don't think that will affect more then what you have.

I would not go more then 3072..
[Android Apps and Games] PYCON:
Woah, it's possible to flash 4.096 zip version on a LG Optimus 2X featuring CM7 xx ( mine is 37 ) rom ? :confused:
[Android Apps and Games] brainmaster:
Yes it should work on CM7 without any problems.
[Android Apps and Games] SpawNyK:
Hi.

Im trying to make the speed fix permanent on my Moto MB525 Defy with CM7 ROM but can't.

http://xdaforums.com/showpost.php?p=14482602&postcount=6095

Do you know another method to make it permanent.

Heres the link to the CM7 i have installed:

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

Thanks in advance.
[Android Apps and Games] a3plew:
Can you please post more steps. I'm still a noob to tasker. Everytime I boot it stays at 128kb.:confused:
[Android Apps and Games] brandall:
I've just realised I said edit action #1, where I meant action #2. I've changed that in the original post, thanks!

Can you view the file: sys/devices/virtual/bdi/179:0/read_ahead_kb ?

If so, when you press 'Test' in the task, does it alter that file value?

Let me know.
[Android Apps and Games] a3plew:
Using root explorer I can view this value. i check it and its set to 128. When this profile is tested or applied and i reboot it is always says set to 128. I noticed that if I manually changed the value in root explorer in the read_ahead file to 2048 and tested the tasker profile it will say set to 2048. It appears to only read the value of the file and not actually change it.
[Android Apps and Games] brandall:
Hmmm.... Is there any way you've accidentally changed the locale command in action #2? Can you paste it into the terminal (less the @!) and see if that applies? If not, perhaps delete the task and import the original again and see if that works... :o
[Android Apps and Games] a3plew:
ok I just cleared everything from tasker and delted all my task since I'm new. I imported your profile. and tested it and it just says changed to 128kb in the notification bar.

What do you mean by paste into terminal. sorry im a noob. :D
[Android Apps and Games] a3plew:
Dont know if this is what you meant but I entered terminal emulator. typed su to give me super user access and pasted the text from action #2 without the @! and it said/system/xbin/echo: not found...im on a infuse 4g ruining infused 1.2.1 if that makes any difference. sorry if it does. I just want to learn tasker. Your tasker post are the best. but its a long learning process for me.
[Android Apps and Games] brandall:
No need to apologise, we were all noobs once and you did what I suggested correctly. In the terminal, exactly as you did before try instead the command

echo "256" > /sys/devices/virtual/bdi/179:0/read_ahead_kb

Does that apply the change? Let me know.
[Android Apps and Games] a3plew:
so far nothing.
[Android Apps and Games] brandall:
Did it give you an error?? Are you fully rooted?
[Android Apps and Games] a3plew:
yes fully rooted runing infused 1.3.1 now. still doesn't work.
[Android Apps and Games] brandall:
If the terminal commands aren't working in isolation, then it suggests another problem... which isn't Tasker related. And there were no errors? I suggest you try an application to see if that applies the changes foryou and go from there... Perhaps someone else can provide an explanation as to why the commands aren't applying for you...?
[Android Apps and Games] a3plew:
:D well This worked in terminal emulator. sorry! Ive been lacking sleep. I decided to retry this today now that im well rested.
[Android Apps and Games] a3plew:
it seems to be working! I think there was just a issues with su permission and the locale execute plugin. Thank you for your help brandall!
[Android Apps and Games] brandall:
Glad you got it sorted! Having to allow every individual command via SU can be frustrating... There should be an option for 'allow all from locale' :(
[Android Apps and Games] tazzydemon:
Just a quickie - can't find angrygps.apk in 012
[Android Apps and Games] tazzydemon:
Wow you should see what happens when you change the sd look ahead with SD Speed Increase app. 1750 > 2000+

The only snag is that I cant get the value to stick. Guess Ill just have to edit the /etc file.

And then see what happens when Juice Defender is running!! In fact they fight and JD appears to write 128k back.
[Android Apps and Games] PS4AndroidHacker:
Hey man I've been reading over this thread and would like to increase my read speed on my SD Card permanently. Anyways...I have File Manager,that is the same thing as root explorer. I go into /sys/devices/virtual/bdi/179:0/read_ahead_kb but it is not letting me view it. Can I use Adobe Reader app to view this or what would be a practical way of viewing this? Other than that I'm doing good with it and everything makes sense and is going good. Thanks for taking the time to read this and I look forward to hearing back from you.

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

OK,so I've been doing some research all day about this and have come to find there is another app on the market called SD Card Speed Booster and it is free. I have set mine to 4096kb and when I open my Gallery it loads quicker than it ever has! Apps and everything are loading much much quicker and things run so fast,just a thought for everybody.Thought I would give my .02 cents.
[Android Apps and Games] blackomegatm:
So, this tweak doesn't work after all?

I suspected this, but that benchmark made me use it.

The problem is, this meg of ram I'm using for the tweak is pretty important on my already memory constrained motorola milestone.

The fact that connecting the SD card to my notebook does not give me more than ~22mb/s of read speed, even for large files SHOULD be a CLUE that this thing is just a placebo effect after all, I'm going back to 128kb.

The read speed of your SD card on your android device will never be faster than what it is when you connect it directly to your PC.
[Android Apps and Games] RandomKing:
The read speed of your SD card is hardware constrained. While endlessly increased read cache values may yield no visible improvement, those with an initial value of 4kb should notice a HUGE increase in read speed. If you're looking for even more responsiveness in picture loading, place a .nomedia file in any folder on your sd card not containing pictures to signal that folder to not be scanned.

-Sent from my Random Epic.
[Android Apps and Games] Mason_Voorhees:
great info guys, i'm anxious to get of work & try these things out.
[Android Apps and Games] denzel09:
Thanks
[Android Apps and Games] runeazn:
wit hthe standard class 4 sd

if i go to 2mb it will be worse read 18.8

1mb 16mb

3mb 17mb

and standard 128kb will give me 20.3mb..
[Android Apps and Games] hgoldner:
I want to alert those who, like me, routinely added this script to init.d upon flashing a new ROM that the script does not work on all ROM's, at least for the Droid Incredible.

If you encounter bootloops right after the ROM mounts external storage, try things again without the script.
[Android Apps and Games] denzel09:
Thanks for advice
[Android Apps and Games] blakeatl:
Do you know if a class 10 micro sd card will work in our phones? I have an HTC Hero to be exact.
[Android Apps and Games] guitardoc64:
Class 10 works. It works better with the mod, especially with apps2sd.

Sent from my s-off Shooter!
[Android Apps and Games] timeToy:
Awesome before 6.2 and 30.1 after 8.2 and 51.3 on Nexus S
[Android Apps and Games] shpapy:
what about the internal flash? can it be optimized?
[Android Apps and Games] joemanbui:
thank you for the great program! really made a difference performance wise for my htc inspire 4g! :)
[Android Apps and Games] johnston9234:
This would be interesting.
[Android Apps and Games] AirborneCmH:
+1, Andy, appreciate the info about the free app. It works like a charm and doesn't require any special permissions.
[Android Apps and Games] glav82:
Startup script solution

if you don't have /system/etc/init.d like me :mad:

you can create a script named "install-recovery.sh", place in /system/etc

and give it execution permissions

it will be executed at boot time ( is called from init.rc )

It works fine for me:cool:
[Android Apps and Games] alberan:
Hi, how can we remove this... just in case... Thank's
[Android Apps and Games] Theonew:
Use the app to set it back to the default amount (usually 128kb).
[Android Apps and Games] harari:
Just got a Samsung 32GB Class 10 microSDHC card for my SGS2 and i cant get this to work.

Default value is 256K and results are 10.4 write and 20.2 read.

Tried every value from 1024K to 4096K manually and via app and there was no change in results what so ever.

What might cause this? What am i doing wrong?

thanks.
[Android Apps and Games] dyetheskin:
I'd try it with a wiped device/fresh install and if still no changes to try reformatting the card as a last resort
[Android Apps and Games] zenosteam:
keep the good work
[Android Apps and Games] barzhdu:
I've tried the SD Speed Increase app and the SD card booster and neither load on boot on my device (HTC Wildfire S, rooted, of course). Anyone knows why?
[Android Apps and Games] DarkhShadow:
Don't think stock rom supports init.d

Sent from my ice cream powered Nexus S
[Android Apps and Games] :
Samsung galaxy s2: I used cwm, and both script, but doesn't save, doesn't work.. If I manually change the value from 256 which has original to more, eg 4096 it works.. It read faster. Any help how I can automate this; Thanks ,
[Android Apps and Games] barzhdu:
I'm not using stock rom. I'm running Turbo Fire :)
[Android Apps and Games] therenegadenail:
Any harm in setting it to the max speed? I used the app and when I booted it up, the speed i had by default was already 2048 or whatever, i set it to max and noticed a big difference but what I'm wondering is if there will be any harm to the sd card or anything by leaving it there...
[Android Apps and Games] :
Ok, I made it for samsung galaxy s2. In this iphone, I must change value 179:16 and not 179:0 Perhaps it should be in first page.. Also I had to use script manager from market.

#!/system/bin/sh

echo "4096" > /sys/devices/virtual/bdi/179:16/read_ahead_kb;
[Android Apps and Games] samo_gf:
which is better ? that app called SD Speed Increase

or your method i'm confused :confused:
[Android Apps and Games] pauley:
I use the free app called SD-Booster from market, it's just been updated & now should work on almost any phone or Android version.
[Android Apps and Games] djkroko:
can someone tell me his read and write speeds with a Class 10 sd card please?

I get only 6Mb\s write and 27Mb\s read speed with my Adata 8GB Class 10 card with my desire
[Android Apps and Games] jubin0:
question

hey buddy i want to ask something, i test my class 2 sd card before using your script and it giving me 6.1 write and 11.2 read speed. i want to use your script but i am afraid after using these scripts if my card speed goes down instead of increasing then what i will do plz answer........waiting:)
[Android Apps and Games] Retrosid:
Mine is set to 1024 from default on the Rom im using, I have a class 2 card and I have 9mb/s read and 16mb/s write. Shall I increase it to 4096? I'm going to upgrade on a class 10 very soon, I believe the result will be tremendous :D
[Android Apps and Games] Theonew:
You could test it if you want, but the recommended is 2048.
[Android Apps and Games] Retrosid:
Well, I flashed the 2048 zip, yet again the value remains at 1024. I guess I can live with that, it will be increased 5x when I'll upgrade my class 2 to class 10 card.
[Android Apps and Games] monkeybrekele:
its good for my problem..i use sdcard class 2 and its to slow

thanks bro :D
[Android Apps and Games] murfi:
does it require root? any way to do this without root?

wiill it also work on "internal sd cards", like on the nexus s?
[Android Apps and Games] DarkhShadow:
It does indeed work on internal SD cards

Not sure about the root bit, but if it does you would have to do it every boot

Sent from my ice cream powered Nexus S
[Android Apps and Games] Theonew:
Yes, it does require root.
[Android Apps and Games] Theonew:
No, you do not have to do it at every boot. You only need to do it once.
[Android Apps and Games] Droided Up:
I am very interested in making this work on my stock rooted gingerbread ROM (HTC thunderbolt) but I saw in one of your posts that said stock ROMs don't have the required int.d? I flashed the zip and also tried the apps but none keep the speed change. Is there any way to make this work on stock rooted ROM?

________________________

Sent From Under A Ghillie Suit
[Android Apps and Games] crz6662:
Have you tried SD Booster: https://play.google.com/store/apps/...1bGwsMSwxLDEsImRlLm1laHJtYW5uLnNkYm9vc3RlciJd

Has worked and still does on every phone I've owned and much easier.
[Android Apps and Games] Droided Up:
I did try sd booster out, but when I rebooted my phone, its speed change didn't take affect until after my sd card loaded fully, even with "set boot" checked.

________________________

Sent From Under A Ghillie Suit
[Android Apps and Games] DarkhShadow:
I said if it doesn't require root, because /sys gets reset every boot

Sent from my ice cream powered Nexus S
[Android Apps and Games] darklord20k:
Great job!

before: write ~5mb, read 19mb ---- after: write 6.5, read 20.5

2048 as same as 3072, so i chose 2048 :D

i'm using N1 with kingmax class 6 16GB

---------- Post added at 10:26 AM ---------- Previous post was at 10:21 AM ----------

lol, same to me, but i'm using class 6 :D:D:D i wonder what the class of other people using :confused::confused:
[Android Apps and Games] darklord20k:
Drain battery??? I'm only flash the 2048 zip, install sd tool, after 1 day, I recognize that my battery drain 4% per hour??? I dont think your work is the reason, but I don't know why????

sorry, I restart my phone and every things work fine @@
[Android Apps and Games] virus786:
Cool script.

Was about to try this then I saw CheckROM got me sorted, already implemented inside the ROM by default.

CheckROM V6 RevoHD FTW!!
[Android Apps and Games] ilDuceo:
i have 2GB SD card... so i guess that i cant set cache to 2GB... is there any settings for setting it to for example 512kb or something like that?
[Android Apps and Games] Retrosid:
There's no way that this script caused that battery drain. Maybe you have an app that drains your battery in the background.
[Android Apps and Games] jurassic512:
SD-Booster works! I recommend it. 2048KB cache size on Galaxy S Fascinate running DarkyROM 10.4.2.
[Android Apps and Games] Angelus359:
http://yarchive.net/comp/linux/readahead.html

I'd be wary about doing this. Linus torvalds warned against it. Its good for best circumstance cases (like your benchmark), but under worst circumstance it causes significant issues.

I also have concerns of potential increase of IO affecting battery.
[Android Apps and Games] Brandito:
Get a higher class card, preferably a trusted brand. Write speed is largely dictated by card class and quality.
[Android Apps and Games] gu5t3r:
Arc S 4.1.B.0.431

added

to the end of /system/etc/hw_config.sh

SD Tools measured speed bump from 14 to 20 MB/s