[Q] SD-Card Speedup - LG Optimus 2x

If you look into /sys/class/bdi/179:0/read_ahead_kb it‘s set to 128 which is not optimal.
I attach a Script to change it to 2048 on Systemstart, but can‘t find an init.d Folder to place.
Is it possible to integrate it somewhere?

In my test 3072 is even faster, same boat here, how do we add this to init? (I am too not very familiar to Android system)..
Thanks.

To use that script the kernel you got on your phone needs to support init.d which no kernel's that have been released does atm.
The other option for this to work is including it in the boot.img which paulobrien has done for his Roms

Related

Tweaking the minfree settings on boot

I'd like to tweak the minfree settings on boot up but am struggling to find an editable script that I can sneak the command into. Googling around I see that other Galaxy devices hijack the playlogo script, but this is a binary on the Tab. Are there any Samsung-heads out there (I'm from HTC-land) who can point me at some resources that might help, or have a suggestion for an appropriate alternative editable script?
The .rc scripts on the Tab all seem to get rebuilt at boot-time, I've spent quite a while trying to find some alternative so that we can auto-load the CIFS modules and haven't had any joy. If someone can find an alternative somewhere then it'd make things much easier.
I wonder if mounting the appropriate .RFS partition file, editing the init.rc file (or similar) within it to chain-load a user-editable .rc from the /data/ folder, and then reflashing the RFS would do the job? The girlfriend has me booked out until Sunday evening so I won't be able to try it until then, if someone else could have a look...

[Dev] Improve Internal SD card speed

http://forum.xda-developers.com/showthread.php?t=1023664
Using the same method there
by editing /sys/devices/virtual/bdi/179:0/read_ahead_kb to 4096 I seem to have imrpoved my internal SD card's speed. Only until reboot as i cant find /system/etc/init.d using root explorer.
However, can kennethpenn, Ririal and any other devs bake it into the rom?
+1 (please)
Correct me if I am wrong, but you should be able to create an init.d file in wordpad and put the script in there to run on boot. I did that for a memory tweak on my former Galaxy S.
Sent from my soon-to-be-hacked Bell Atrix.
GibMcFragger said:
Correct me if I am wrong, but you should be able to create an init.d file in wordpad and put the script in there to run on boot. I did that for a memory tweak on my former Galaxy S.
Sent from my soon-to-be-hacked Bell Atrix.
Click to expand...
Click to collapse
I'm hoping you are right!!
GibMcFragger said:
Correct me if I am wrong, but you should be able to create an init.d file in wordpad and put the script in there to run on boot. I did that for a memory tweak on my former Galaxy S.
Sent from my soon-to-be-hacked Bell Atrix.
Click to expand...
Click to collapse
I know it can... But there isnt an init.d folder in /system/etc/
(Noob question?) What are you guys use to read/edit these files (on phone)? I don't mean the ".rc" ones, but those with a page-and-badge icon in Root Explorer (example: "/init", not "/init.rc"). I'm not even sure on the file type... Thanks.
We'll see about this. I'm doubtful. But I'm adding it to my list of prospects.
kennethpenn said:
We'll see about this. I'm doubtful. But I'm adding it to my list of prospects.
Click to expand...
Click to collapse
It does show improvement in SD Tool.
However, I use my external SD for camera so gallery reads from it... so not sure if it has real world improvement...
Create a init.d folder in /system/etc and push this script there
But it won't work until you install the script or another is already installed in init.d folder
http://db.tt/18JjeOl direct link
cdesai said:
Create a init.d folder in /system/etc and push this script there
But it won't work until you install the script or another is already installed in init.d folder
http://db.tt/18JjeOl direct link
Click to expand...
Click to collapse
Do you know for sure it will be executed just by creating the folder? is the init.d folder supported?
One of the earlier versions of aroot added init.d support, however i am not sure if the later versions (gladiatrix root) does this (see this thread)
I used the aroot method when I reflashed 1.26 to do some tweaking and the init.d folder is in /system/etc/
Girgizzlemuf said:
One of the earlier versions of aroot added init.d support, however i am not sure if the later versions (gladiatrix root) does this (see this thread)
I used the aroot method when I reflashed 1.26 to do some tweaking and the init.d folder is in /system/etc/
Click to expand...
Click to collapse
The problem is I am on 4.1.57 gingerblur... And I am not sure if it has init.d support :S
tianqi said:
I know it can... But there isnt an init.d folder in /system/etc/
Click to expand...
Click to collapse
There is on mine..
Sent from my soon-to-be-hacked Bell Atrix.
My question is, will this work for the external sd card as well? I transfer most but not all of my less priority apps to my external sd card. The SD Card app that test the speed is not accurate, fyi.
I also tried the link previously and changed it to max kb but occasionally it is a hit or miss on the speed.
tianqi said:
The problem is I am on 4.1.57 gingerblur... And I am not sure if it has init.d support :S
Click to expand...
Click to collapse
Im pretty sure I flashed back to 4.1.26 to use the root method I mentioned before specifically so I could use 4.1.57 with init.d support. I did notice that the "prefered" root method doesnt make mention of init.d, but its fully working for me now
Sent from my MB860 using XDA App
What Motorola did was bake in the native linux install from the android-backend with the webtop system. Thus, the directory you're looking for is /osh/etc/init.d/
Code:
echo "$YOURLINE" >> /osh/etc/init.d/rc
Also anyone know which one to edit for the external sd? So we can improve both sd?
Request.... please pretty please..
I brought this up in the gladiatrix thread 2 days ago and was also not able to get it to work after reboot or on the external SD.
Would someone please create a CWM zip for this when it is completed?
It could be added to the wiki or the sticky's thread
tianqi said:
GibMcFragger said:
Correct me if I am wrong, but you should be able to create an init.d file in wordpad and put the script in there to run on boot. I did that for a memory tweak on my former Galaxy S.
Click to expand...
Click to collapse
I know it can... But there isnt an init.d folder in /system/etc/
Click to expand...
Click to collapse
Pulling stuff from memory, so I might be a bit off here and there.
The original root methods (SuperOneClick and aRoot) put a script in /system/etc/install-recovery (or something like that) which had one line in it which told it to execute every script in /system/etc/init.d. They also created the /system/etc/init.d directory and put a single script in there which remounted /system as rw.
But, the 4.1.57 update deleted the script, so most of you probably don't have it any longer (unless the re-root process put that script back?). In any case, I suspect that's the information you're looking for.
So 4.1.57 isnt capable of running init.d?

[Q] overclocking Rachts cm7 roms

I've been wanting to overclock my phone for a while but i haven't found any answers for my question. i wanted to know whether i need to just push x8oc.ko or if i would have to do the whole thing? and would doing the whole thing mess up the dual touch module?
Just push it and ismod, then set OC in CM Settings under Performance thats for cm7 for cm 6 use set cpu.Done.
Look for the x8oc.ko/x10minioc.ko (that´s how it´s named in miniCM6, but it works on X8!) file in system/lib/modules.
If it´s not there, paste it there with Root Explorer/ES File Explorer (the newest one has a root mode)/ADB shell.
Then, write the required line (look for it in the OC-thread) on the beginning of the hw_config.sh file.
Rebbot.
After that, you can set the frequency with SetCPU or another similar app.
Or, if th efile is there, look for Overclocking in Settings-Cyanogenmod

◄ ▌[24.Jan.13][MOD][Guide] Brainmaster's Tweaks for Android 4+ ▌►

◄ ▌[24.Jan.13][MOD][Guide] Brainmaster's Tweaks for Android 4+ ▌►
Here is the description of the Tweaks:
Scripts in the /system/etc/init.d folder:
08dalvik - Moves the Dalvik cache from the ext4 /data/dalvik to the faster yaffs /cache/dalvik partition
95zipalign - This is more enhanced zipaligning method. Its zipaligning the apps in the /system/app and /data/app. It also creates the database that contains infos on apps that are already zipaligned, and checks that databe on reboot. If all apps are zipaligned, it skips the zipalign process. Zipaligning is useful because its reducing the amount of used RAM
99bmtweak - Contains the tweaks that I've collected and enhanced over the time. Included are IO tweaks, TCP tweaks, SDCard ReadAhead tweak, SQLite Vacuum Database tweak
hosts file in the /system/etc folder:
Hosts file makes your Phone ADFree.
resolv.conf file in the /system/etc folder:
Google DNS Servers
placeholders in the /system/app and /data/app folders:
If you want to add a system app or install data/app with the CWM Zip file, just drop the apk in the /system/app or /data/app folder in the CWM Zip file and they will be installed when you flash the CWM Zip.
/kernel folder:
Enables the init.d script support.
updater-script in the /META-INF/com/google/android folder:
Deletes the Cache and Dalvik Cache, mounts the /data and /system partitions, copying the needed files. It sets the permissions. If you are editing that file, be SURE to use the Notepad 2 or Notepad ++ and use the Unix file system encoding when saving the file, not the regular Notepad Windows app.
build.prop tweaks Injector in the /tmp folder:
Injects the values in the /system/build.prop file. The /tmp/mytweaks.sh file shouldn't be edited! The file /tmp/misc contains the buildprop tweaks. You can add your own build.prop tweaks in that file.If you are editing that file, be SURE to use the Notepad 2 or Notepad ++ and use the Unix file system encoding when saving the file, not the regular Notepad Windows app, also IF you use comments (#Disable.ADB.Notification.Icon), DON'T use spaces, use ONLY the underline or dot character! These tweaks are included:
Code:
#Disable.ADB.Notification.Icon
persist.adb.notify=0
#Disable.Google.OTA.Checkin
ro.config.nocheckin=1
#Disable.Google.Reports
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
#Enable_Google_DNS_Servers
net.dns1=8.8.4.4
net.dns2=8.8.8.8
#HSPA.Tweaks
ro.ril.hsxpa=2
ro.ril.gprsclass=12
ro.ril.hsdpa.category=16
ro.ril.hsupa.category=8
#Dalvik.Optimization
dalvik.vm.execution-mode=int:jit
dalvik.vm.verify-bytecode=false
dalvik.vm.dexopt-flags=v=n,o=v
Installation
Step 0: You must be rooted!
Step 1: Download the Busybox installer app and install the Busybox to /system/xbin. Again - install the Busybox to /system/xbin not to /system/bin!
Step 2: Reboot to recovery and install the BM.Tweaks.NEXUS.S.zip file.
Optional Memfree tweak - set to 100 MB:
In order to use the Memfree tweak on every ROM, extract the /system/framework/services.jar from the ROM and upload it to android.mimic.ca, let the site edit the file, download the edited services.jar and put it in the BM Memfree zip file. Then flash the BM Memfree zip in the Recovery.
The attached Memfree zip is for the stock JZO54K ROM.
Optional BM Seeder:
You can read everything about the tweak here.
This is my version adjusted for the Nexus S.
How can I be sure that the tweaks are working?
Open the RootExplorer and click on the /cache folder. IF the dalvik-cache folder is present, THEN the tweaks are working properly. Check also your /system/build.prop file for the #Brainmaster Tweaks area.
The tweaks are universal - not ROM version related, and can be flashed over any ROM but ONLY for NS or NS4G.
Disclaimer:
ALWAYS make a NANDroid Backup of your current ROM so that you can go back if you don't like the tweaks.
I will NOT reply any users PM's regarding this thread or my ROMs, only the DEVs should contact me over PM.
If you are user and have questions, write HERE in the thread.
BEFORE asking any questions, make sure that you read this post.
​
I have edited the Mobile_Sensei's ROM prepare tool and added the deletion of the /sdcard/.android_secure folder.
Now when you flash new ROM and want to do a clean install, just flash this file.
It does following:
deletes /sdcard/.android_secure
deletes /cache
deletes /data/dalvik-cache
formats /cache
formats /data
formats /boot
formats /system
Happy flashing!
Here you can also find just the Dalvik-Wiper when you're updating your ROM.
Reserved 2.
Reserved 3.
Reserved 4.
Nice!
Sent from my Nexus S using XDA App
Thank you for sharing this
Transmitted from somewhere in space... from my Nexus S... and Tapatalk.
Thanks!
Now I have something more to play with my personal version of MIUI ICS
Thanks man
But I have a question, For the ICS custom rom, most of them come with boot.img and I tried on KANGY-S but i got stock on google sign in the beginning of boot.
So can you tell me which package should I use?
Thx
10char
v2 uploaded.
Changelog: Bugfixes in Build.prop Injector script.
If you are using the /tmp/misc to add your build.prop tweaks DON'T use commented explanations, like this one:
Code:
#Disable ADB Notification Icon
Use only the tweaks!
after heard your announcement yesterday , this kinda makes me feel this is your "legacy"(no offence) ...
and , thanks for share all of these
v3 comes later today.
How do we merge multiple languages in one rom?
djjonastybe said:
How do we merge multiple languages in one rom?
Click to expand...
Click to collapse
When compiling the new ROM, fetch existing language strings and compile.
For existing ROM - like MIUI - decompile apps and framework, add language strings, recompile apps and framework. Language strings need to match every build, you can't use strings from older builds on newer without editing.
Enough said.
Changelog:
v3:
Code:
- Corrected errors in the RAM and TCP Tweaks
- Added Google DNS Servers in resolv.conf and build.prop injector
- Added tweaks for the CM9
@ Brainmaster`s Dude thanks a lot for this release,
Just I want to request something, can you make a package for gingerbread rom which come with boot.img. the one you released i doesnt come with boot.img.
i really appericate it buddy.
frost866 said:
@ Brainmaster`s Dude thanks a lot for this release,
Just I want to request something, can you make a package for gingerbread rom which come with boot.img. the one you released i doesnt come with boot.img.
i really appericate it buddy.
Click to expand...
Click to collapse
Which one? Have you checked if there is already /system/etc/init.d folder present on your ROM?
brainmaster said:
Which one? Have you checked if there is already /system/etc/init.d folder present on your ROM?[/QUOTE
Actually, Im using CM7.2.0 Kang and yes there is init.d folder on my rom, but i couldnt find any of your tweaks in this folder. can i just simply add to the rom using root explorer?
Actually , I meant the first package in the list which is belongs to ICS and gingerbread roms.
Click to expand...
Click to collapse
frost866 said:
Actually, Im using CM7.2.0 Kang and yes there is init.d folder on my rom, but i couldnt find any of your tweaks in this folder. can i just simply add to the rom using root explorer?
Actually , I meant the first package in the list which is belongs to ICS and gingerbread roms.
Click to expand...
Click to collapse
That is strange - so you have installed it through the CWM and yet there are still no tweaks present in the init.d?
Yes, copying them in the init.d folder and setting the permission to 750 also works.

[Q] init.d support on stock 4.2.1?

I've recently found this thread about installing init.d support on every Android version.
I did as advised, there is an init.d folder with the test script installed but there is no post_boot.sh script in /system/etc. I've manually created one, gave the same permissions as init.goldfish.sh but it does not seem to run at boot.
Maybe the filename is not correct. What do you think?

Categories

Resources