Init.D tweak ( honor 8 ) - Honor 8 Guides, News, & Discussion

Hello!
Here is a few init.d scripts that have download around google and over xda, im not take any credit at all, all the script should go to their own respective owner/creator.
Im not a fan of app tweaking, such as lspeed/hebf.
I've try some other init.d script, but most of em unstable, bootloop,..
Whats inside:
-Seeder script: increase over 3+ entropy
-Fstrim: trim system every boot ( work ). Script run monthly ( not enough time to test yet )
-Sdcard script : set to 2048 ( work )
-Flyengine by Slaid480
Remove some unstable script ( boot loop )
Inside flyengine:
Network tweak ( work )
Build.Prop tweak ( dont know if it actually do anything )
Vm tweak ( same as build.Prop tweak )
these scripts might consume more battery.
Once again all credit to their owner. I just sharing.
* backup system before install *
* i will not responsible for any damage to your device, use your own risk *
Screeny of cricket operator [email protected]

qvnsq said:
Hello!
Here is a few init.d scripts that have download around google and over xda, im not take any credit at all, all the script should go to their own respective owner/creator.
Im not a fan of app tweaking, such as lspeed/hebf.
I've try some other init.d script, but most of em unstable, bootloop,..
Whats inside:
-Seeder script: increase over 3+ entropy
-Fstrim: trim system every boot ( work ). Script run monthly ( not enough time to test yet )
-Sdcard script : set to 2048 ( work )
-Flyengine by Slaid480
Remove some unstable script ( boot loop )
Inside flyengine:
Network tweak ( work )
Build.Prop tweak ( dont know if it actually do anything )
Vm tweak ( same as build.Prop tweak )
these scripts might consume more battery.
Once again all credit to their owner. I just sharing.
* backup system before install *
* i will not responsible for any damage to your device, use your own risk *
Screeny of cricket operator [email protected]
Click to expand...
Click to collapse
Sorry but I would say using apps like L Speed/HEBF is better. You can choose which tweaks to activate and change them on the fly. With init.d, you have to reboot to see the changes. Another thing, FlyOnMod by Slaid480 is discontinued. Which means the tweaks inside might not work nicely with Nougat, fstrim shouldn't be done every boot. Trimming should only be done maybe, twice a month.

adriansticoid said:
Sorry but I would say using apps like L Speed/HEBF is better. You can choose which tweaks to activate and change them on the fly. With init.d, you have to reboot to see the changes. Another thing, FlyOnMod by Slaid480 is discontinued. Which means the tweaks inside might not work nicely with Nougat, fstrim shouldn't be done every boot. Trimming should only be done maybe, twice a month.
Click to expand...
Click to collapse
I think you missed my point here.
1: im not fan of these app because i dont like it running in my background ( minimum as much as background process i could ) ( i do like lspeed init.D script, till dev change to an app ) also i do have the paid app named : Boosters Plus batterysaver i think that better then these. ( from my point of view )
2: youre right, init.d script need to set on rebooted, once reboot everything is set, until you rebooting again.
3: discontinued but those setting are working, direct change to the code ( i checked ) also i believe most of the tweaking app for better internet tweaking are the same, keep connection alive(kill more battery) tcp,ect, ( correct me if im wrong ) just different in number setting perfer by developer ( samething that touched the tcp and change tcp algorithms ). Also as mentioned i have removed some of em that not working on (honor 8)( bootloop ) i posted this just for honor 8.
I have search around honor 8 thread but noone mention about init.D script here.
4: fstrim set on reboot, also it included trim every month that you mentioned above ( if you keep the device on for a long period time before power went out, 1 month for example, i think this help here.
- init.D script is something just flash and go ( im lazy ), no need to open an app for setting. And avoided app's battery consuming.
- im not trying to be anything here on XDA, just shared for ( honor8 )
Thank you for your time input.

Just one more pointn @qvnsq, init.d scripts also consume memory in the background. It's just that an app like L Speed consumes maybe 5-10MB of more RAM. Thank you, too for sharing the sripts here. :highfive:
Sent from my Honor 8 using XDA Labs

So this is the reason why i copy my scripts into bin folder. Plz donot try it urselves

gopinaidu77 said:
So this is the reason why i copy my scripts into bin folder. Plz donot try it urselves
Click to expand...
Click to collapse
Why do you put it in bin?
Sent from my Honor 8 using XDA Labs

adriansticoid said:
Why do you put it in bin?
Click to expand...
Click to collapse
That executes faster ,init.d scripts gets executed soon after boot . But the scripts in bin will be executed while the device bootup

gopinaidu77 said:
That executes faster ,init.d scripts gets executed soon after boot . But the scripts in bin will be executed while the device bootup
Click to expand...
Click to collapse
Oh I see. How about xbin?
Sent from my Honor 8 using XDA Labs

adriansticoid said:
Oh I see. How about xbin?
Click to expand...
Click to collapse
If u had noticed , u will see less files in xbin . U can still try to put them in it

Related

Ram optimization script

Saw this today http://forum.xda-developers.com/showthread.php?t=1111145 ... I wonder if we could put that script into the install-recovery.sh file (remove the recovery stuff) and have that kicked off every boot? Any thoughts or anyone want to test? I'm at work currently so I wont be able to try till later.
I'm a bit leery about the actual script itself, but you can prob just download the cwm installer and flash it.
or
You can also toss it in /system/etc/init.d and set permissions to 777 (rwxrwxrwx)
this is true for most scripts that run at startup
Do the stock kernels support init.d?
I dont know offhand but i would assume it does.
Streakdroid definitely does as it bundles a script in init.d
Well......
I tried this .... choosed the cwm flsdhable zip version.
5 minutes back i flashed it , no change till now (but feeling lil slow ).
will keep posting if something increased or decrease.........
may this thing can b helpfull for our streak dev's
Smooth but battery lol fast drain
Sent from my Dell Streak using XDA App

[SCRIPT][TUTORIAL] V6 Supercharger Optimization & KickAssKernelTweak!

I) : V6 Supercharger Tutorial
II) : Kick Ass Kernel Tweak tutorial
Hi all, I found it V6 Supercharger
This script is a complete memory management fix. More info in the original thread !
Me and some others had tested it and it works ! The phone is smoother and faster !
Note : it's recommended to delete all memory scripts before using this !
Warning ! You need a rooted Phone, and you need a kernel that supports Autostartup Scripts !
( This tuto is provided without warranty of any kind )
If you have laggs ( With or without V6SuperCharger ) see at the end of the post !
I) Tutorial V6 SuperCharger :
First of all you have to downgrade Busybox ( It might work with version 1.19, I don't know but recommended to downgrade cause of risk of bugs ! )
Use Busybox Installer and try version 1.18.2 or lower !
Then you can use Script Manager ( recommended ) or Terminal emulator (Two methods).
And you need the script(V6 update9beta3.1)
Delete .txt extension, file have to be a sh file
Just place it on your SD card.
WITH SCRIPT MANAGER :
Launch Script Manager
Search the script you placed on SD card
Slect it, and select " Run as root " ( /!\ Don't Select Run at boot ! /!\ )
Execute it
It will ask for speed, tap on screen, type 2 and press enter.
You can see now a list with 17 choices.
Recommended choices are 6 and 7 ( You can test others if you want, maybe they work better ).
So write 6 or 7 and press enter.
You will see under the list, "Current Minfrees = X,XX,XX,XX....."These are the values you've selected before.
When it's done, exit Script Manager, and browse to /system/etc/init.d with Root Explorer or equivalent.
You can see "99SuperCharger", you have to rename it in "S99SuperCharger" ( If not renamed, it will not be load at boot ! )
Now reboot your phone !
When phone rebooted, launch Script Manager and the script
Choose 0
And after list, verify that says : ( Exemple for choice 7 so, values are values from 7th choice )
Code:
Current Values MATCH Prior SuperCharge!
Current minfrees = 6,8,26,28,30,32 mb
Prior V6 minfrees = 6,8,26,28,30,32 mb
If values match, it's OK !
Enjoy !
WITH TERMINAL EMULATOR OR ADB SHELL (First Method) :
Note : Rename file script in "Script.sh" is easier
First, type su ( enter in Super User rights )
Type:
Code:
sh /mnt/sdcard/Script.sh
Select Scroll speed : Type 2 and enter.
You'll see the script with the list
Recommended choices are 6 and 7 ( You can test others if you want, maybe they work better )
So, type 6 or 7 and enter
After script done, you will see under the list, "Current Minfrees = X,XX,XX,XX....."These are the values you've selected before.
Exit terminal emulator or ADB Shell
Browse with Root Explorer to /system/etc/init.d
Rename "99SuperCharger" in "S99SuperCharger" ( If not renamed, it will not be load at boot ! )
Reboot Your phone !
When phone rebooted, launch script again,
Choose 0
And after list, verify that says :
( Exemple for choice 7 so, values are values from 7th choice )
Code:
Current Values MATCH Prior SuperCharge!
Current minfrees = 6,8,26,28,30,32 mb
Prior V6 minfrees = 6,8,26,28,30,32 mb
If values match, it's OK !
Enjoy !
WITH TERMINAL EMULATOR (Second Method)
Note : Rename file script in "Script.sh" is easier
First, type su ( enter in Super User rights )
Type:
Code:
sh /mnt/sdcard/Script.sh
Select Scroll speed : Type 2 and enter.
You'll see the script with the list
Type 15, and Enter
Type Y and Enter
Exit the script ( Type 17 )
And now, type V6 bash ( or V6 or bash V6 or sh V6 )
You'll see the script with the list
Recommended choices are 6 and 7 ( You can test others if you want, maybe they work better )
So, type 6 or 7 and enter
After script done, you will see under the list, "Current Minfrees = X,XX,XX,XX....."These are the values you've selected before.
Exit terminal emulator or ADB Shell
Browse with Root Explorer to /system/etc/init.d
Rename "99SuperCharger" in "S99SuperCharger" ( If not renamed, it will not be load at boot ! )
Reboot Your phone !
When phone rebooted, launch script again (type bash V6 in terminal),
Choose 0
And after list, verify that says :
( Exemple for choice 7 so, values are values from 7th choice )
Code:
Current Values MATCH Prior SuperCharge!
Current minfrees = 6,8,26,28,30,32 mb
Prior V6 minfrees = 6,8,26,28,30,32 mb
If values match, it's OK !
Enjoy !
II) Tutorial KickAssKernelTweak :
Just Download The script
Rename it as S98KickAssKernelTweaks ( If not renamed, It will not be load at boot ! )
Place it in /system/etc/init.d folder and reboot your phone
___________________________________________________________________
___________________________________________________________________​
If you have laggs just download Script file "Cache.sh.txt" in attachement.
Remove .txt extension to have a .sh file.
Put it on your SD card, and run it with Scriptmanager ( You can do a Script widget with script manager to access it simply by homescreen )
Look at here for more information : zeppelinrox's post
NOTE : You can explore other choices by yourself and / or look at zeppelinrox thread !
Tutorial by me !
ALL CREDIT TO : zeppelinrox
If you have suggestion, request or question just tell me
Did you had to downgrade you busybox too like was recommended?
Mine is 1.18.4 now. Think it came with Titanium.
Kingzak34 said:
( Sorry if I posted in wrong section )
Click to expand...
Click to collapse
It is proper section...just mention the name of the original developer also...
Kingzak34 said:
Hi all, I found it yesterday, V6 Supercharger
I tried it, it works, and I find phone more responsive and smooth, can anyone test it and give me feedback ?
I use Balanced 3 ( 6th choice )
After you run the script go to system/etc/init.d and ( mount system R/W )
And rename 99SuperCharger in S99SuperCharger
And then reboot the phone ( You can verify by re run the script if setings are saved after reboot )
I wait your feedbacks
( Sorry if I posted in wrong section )
Click to expand...
Click to collapse
I tried it. But my phone stucked in sleep mode each time.
i5 Rom
busy box downgrade and it works on in5 non oc and other cfws
Trying Balanced3 with Kyrillos 6.1, G3Mod v1.3.4 Performance and busybox 1.18.2. Feels pretty snappy, I hope it's not because of the reboot or the placebo effect.
Thank you for feedbacks, for all, please say what ROM Kernel and CPU Settings you use
Yeah, use 1.18.2 !
So, Good or not ?
@arunmcops What kernel do you use ? I have it for 2 days now, and it works properly ( My Kernel: Fugumod_ BE_2.4-alpha19 ( Kyrillos V6 OC defaut ) with 1300Mhz Performances and 246 performance when screen off )
work realy good had to downgrade busybox and used option7 in script manager no freezes realy fast its recommended
RafayelG said:
work realy good had to downgrade busybox and used option7 in script manager no freezes realy fast its recommended
Click to expand...
Click to collapse
Thanks, can you say to us what ROM Kernel and setting do you use ?
option 7(mutitasking too) working great for me too...using pre release fugumod...using ondemand governor min freq at 260000 and max at 780000..upper threshold 95%..powerbias 400...removed juwe's ram script and auto memory management too..its fast and awesome...trying figure out option 11 and 12
EDIT: indroid 5 rom
cool.darshak said:
option 7(mutitasking too) working great for me too...using pre release fugumod...using ondemand governor min freq at 260000 and max at 780000..upper threshold 95%..powerbias 400...removed juwe's ram script and auto memory management too..its fast and awesome...trying figure out option 11 and 12
Click to expand...
Click to collapse
Yeah thanks ! What ROM ?
Kingzak34 said:
Thanks, can you say to us what ROM Kernel and setting do you use ?
Click to expand...
Click to collapse
G3Mod extreme at 1ghz Rafo's Rom V1.0 JPK base
RafayelG said:
G3Mod extreme at 1ghz Rafo's Rom V1.0 JPK base
Click to expand...
Click to collapse
G3 mod Extrem has many screen off bug, try with ultimate
( Maybe fixed by 1.3.4 version )
rom kyrillos v7.0
kernel G3MOD 1.3.4 ultimate 200-1200Mhz @ savagezen
and i try option 6 and 7, and option 6 for me is smother...
any good results here ?
(•.•) said:
any good results here ?
Click to expand...
Click to collapse
Yes, almost all feedbacks are good
Has anyone tried option 2?
Sent from my GT-I5800 using XDA App
Anybody tried these??
And why is there a need to rename in init.d??
dhirend_6d said:
And why is there a need to rename in init.d??
Click to expand...
Click to collapse
I noted that if the script not begin by S, it's not loaded in my phone :/

[DEPRECATED][SCRIPT]g_BonE's Slaid480 LagFreeV3 ReRolled -errorfixed- -optimized-

I switched to a I9001 Galaxy S Plus, thus no more updates.
About
If You are like me - a fan of those monolithic install-and-forget scripts to optimize Your Ace at boot then this is for You.
As a base i took Slaid480's LagFreeV3 script and fixed some errors in it. Seeing that his script constantly overwrites earlier tweaks set up in itself i went on to consolidate it.
After that turned out succesful i combed through all the other scripts, snippets and tweaks floating around XDA (TurboBoostv8.5, BoostBuster, allinone Ram) and came up with my solution of a monolithic All-In-One script.
This here script contains all the useful tweaks for the Ace, was error checked, optimized and thoroughly tested on my personal Ace.
This is a continuation of the thread:
[SCRIPT] Slaid480's LagFree V3 script -fixed- -optimized-
http://forum.xda-developers.com/showthread.php?t=1486930&page=11
Required
* Ace S5830
* Root
* CM7.x
* Busybox (should already be there if rooted)
* Kernel supporting NOOP scheduler and SmartA**V2 governor
Script was tested on:
zImage-Mod v1.1 and v1.2 Kernel
http://forum.xda-developers.com/showthread.php?t=1292200
CM7.2 RC0 KANG by vo-1 deodexed with PDroid
http://forum.xda-developers.com/showthread.php?t=1462178
Instructions
- Make a nandroid of Your phone (just in case).
- Flash zip using CWM recovery.
- Reboot.
- Success.
An optional error logging function can be enabled by creating an empty
file named lagfree_debug in Your /data/ folder. Doing so will allow the
script to create a logfile /data/lagfree_debug.log during execution on
boot. This might help for finding issues on other ROMs and Kernels.
The script now contains some logic so when it does not succesfully run
to its end it will disable itself on the next boot. This will fix the "stuck
on android" issue.
To remove the script alltogether just flash the LagFreeV3_Rerolled_
Uninstaller.zip via CWM.
Credits
* SLAID480
* GadgetCheck
* Juwe11
* Salah Abouabdillah
* Einherjar Development Team
* CRANIUM ROM
* zacharias.maladroit
* voku1987
* [email protected]
* redmaner
* pikachu01
* fuss132
* LeonardLuangga
* Team Blockbuster
* tossan
* iandol
* _Roysten
* dragonnn
* XDA (for the help identifying the bugs)
* Everyone (i forgot but who put an effort into parts of this script)
Enjoy,
g_BonE
Changelog
0.17b - first release in XDA Development subforum, replaces older version --- REMOVED DUE TO setprop ISSUE!!!
0.23b - second release, replaces older version: setprop slot fix and bootloop (stuck on android) fix implemented. Thanks to tossan, iandol, _Roysten and dragonnn for the detective work and help getting this fixed.
Now, thank you! And why is it that we need CM7? Isn't this supposed to run on stock roms (rooted of course, and with cf-root kernel)?
WAIT so is this the combination of the given tweaks in OP or just fixed Lagfree? Kinda confusing O.O
original lagfreev3 runs great on stock with all permissions checked. Is this for stock also?
itasoulas said:
original lagfreev3 runs great on stock with all permissions checked. Is this for stock also?
Click to expand...
Click to collapse
if you consider "runs great" to mean that it fails to run properly because it has more bugs than the Amazon Jungle and thus it can run "great" anywhere because it actually fails to run everywhere!!!
lagfreev3 original is like homeopathy!
How do I install this over original lagfree?
Sent from my GT-S5830 using xda premium
iAreBeRtii said:
How do I install this over original lagfree?
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Why do you want to install it over the original one? It was stated that it has too many bugs. Just delete the old one and flash this.
actually no need to uninstall, the installer of my script removes the original lagfreev3, turboboost and other scripts from init.d
and no, no need to install anything else besides this one its ALL INCLUDED
does this work on stock?
g_BonE said:
actually no need to uninstall, the installer of my script removes the original lagfreev3, turboboost and other scripts from init.d
and no, no need to install anything else besides this one its ALL INCLUDED
Click to expand...
Click to collapse
so, just install this script, and we're done?
Cool! Thanks gbone, you's a boss!
flashing your script makes my phone stuck on boot. i have LeWa rom installed. also, lagfreev3 and turboboostv8 is installed..
tomy2590 said:
flashing your script makes my phone stuck on boot.
Click to expand...
Click to collapse
Wait awhile and see if the desktop loads. I guess it takes time to rebuild the caches.
@g_BonE
You sholdn't clean up the caches (especially the *.apk files) on every reboot (->Dalvik Optimization).
The user can do it manually in CWM. This is only necessary before installing a custom rom or after modding some system files.
Otherwise: Great clean up work done! Hope all the script lovers appreciate it. Here are the line counts as a rough comparision:
Code:
[email protected]:~/Downloads/$ wc -l S9*
1130 S95Lagfree
305 S99_LFv3gB
1435 total
^^
@DooAce: I cant positively answer on the "working on stock" question as idont have a stock rom on my ace. i'd say it *should* if the rom has init.d support and the other requirements posted in the first post. anyone willing to give it a shot might do so using the debug feature and posting the logfile here so i can have a look.
@tossan: yes, i'll make the zipaligning a optional step, maybe using the same approach i took with the debug option (-soon-)
@tomy2590: and yes, first boot will take a while as zipaligning and database optimization takes a while. please be patient for a bit.
Doesn't work on Ace-of-Spades V1 - stuck on Android for over 20 minutes.
I have debug this script - don't know why but it's stuck on the setprop lines, removing it will repair this script. You can add on the begin of this script the command:
Code:
adbd &
And on the end:
Code:
killall adbd
Using this you can debug this script (via logcat) in real time and show on what he stops.
g_BonE said:
@tossan: yes, i'll make the zipaligning a optional step, maybe using the same approach i took with the debug option (-soon-)
Click to expand...
Click to collapse
I'm referring to this line at the end of the file, which will be executed on every phone reboot, making the dalvik cache unusable.
Code:
rm -f /data/dalvik-cache/*.apk
The zipaligning should be ok, because the code fragment only zipaligns new installed apks, if they're not already aligned.
~~
Phone rebooted succesfully afyer flash themyhrom advanced
g_BonE said:
actually no need to uninstall, the installer of my script removes the original lagfreev3, turboboost and other scripts from init.d
and no, no need to install anything else besides this one its ALL INCLUDED
Click to expand...
Click to collapse
Awesome! Thanks!
Sent from my GT-S5830 using xda premium

[CWM][Flashable]Init.d Support and Tweaks for Aurora ICS

The aurora_4.1+-init.d-addon zip is compatible with Aurora v4.1+.
The OOM-Priority-Charger-v1.4-Aurora-4.1a zip is compatible ONLY with Aurora v4.1a.
You can visit android.mimic.ca to upload and automatically patch your newer services.jar in an updated Aurora version.
Hello everyone,
I have created an update package that enables init.d support and also has some premade scripts to tweak various settings by the user e.g.
- Synaptics Touchscreen Sensitivity
- Apply FPS Novatek Fix to raise FPS to 53fps
- Set CPU Frequency and Governor
- Disable Atmel Haptic Feedback
- Turn VSync OFF
- Raise SDCard Read Ahead Value
All the above settings are at their defaults meaning that you must change the Settings in the Scripts and reboot to apply them, otherwise all values are the defaults in Aurora after flashing the Package.
It also includes and by default enables Androcharger (V6 SuperCharger tweaked by blk_jack for Desire Z, it is the same as V6's option 5), KickAssKernelizer by zeppelinrox and Loopy Smoothness tweak.
For a full "Supercharge" you must also tweak services.jar via android.mimic.ca (See the V6 Supercharger link for info). I have attached the CWM flashable zip for Aurora 4.1a (OOM-Priority-Charger-v1.4-Aurora-4.1a.zip).
Disclaimer
I am not responsible for any damage to your Device.
Notes:
This will make your boot slower as all these scripts have to be executed at startup. Especially the Loopy Smoothness Tweak will add at least 3 seconds at boot.
To apply Changes you have to Reboot
Changelog:
v1: Initial Release
v2: Resolve Bootloops for Atmel Users
Links:
V6 SuperCharger by zeppelinrox
AndroCharger by blk_jack
Thanks to dzo for his excellent ROM and the U8800 xda community for many of the tweaks.
And of course thanks to zeppelinrox, blk_jack, the EVO 4G developers.
Tweaking Values of Scripts
To tweak the Scripts you must use a File Explorer to navigate to /systemd/etc/init.d/ and open the files with your Favourite Text Editor.
There are instructions in each script.
In detail:
- 11synaptics_sens
Tweak Synaptics Touchsreen sensitivity, values 1 to 8, default=4 to accomodate your fingers and remove "jittering"
Simply replace 4 with your desired value.
- 12fpsfix
This enables the FPS fix that raises the panel's Frame Rate to ~53 from ~46.
This may not work for all phones but it is customizable, to enable it just uncomment (remove the starting #) from the echo line.
- 13cpu
Set your Desired Min/Max CPU Frequency and Governor. You may use copy and paste and finding values by opening:
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
For Example to use SmartassV2 replace "echo ondemand > /sys/...." with "echo smartassV2 > /sys/...." in line 9.
If you use SmartassV2 There are extra tweaks for Performance and a highly suggested tweak for Sleep Ideal Frequency.
- 14atmel_haptic_disable
Disable Atmel Haptic Feedback (i.e. Vibration on Touch) by uncommenting the echo line. If you want to enable replace 0 with 1.
(I believe the default is ON here, some atmel user input is appreciated)
- 69vsync_off
This file disables VSync. This will increase FPS, performance and benchmark scores but it will introduce Tearing (try e.g. SpeedX with and without VSync to see jarred lines) and it will probably drain battery faster.
Simply uncomment (remove starting #) from line 8 (echo '0' > /sys/kernel/debug/msm_fb/0/vsync_enable)
- 71sdcard_read_ahead
This file raises the read ahead value for your SDCard meaning faster throughput.
----------
The files 96AndroCharger,97loopy_smoothness_tweak,98KickAssKernel should not be edited.
If you wish to use V6 SuperCharger please remove 96AndroCharger first.
Thank you man this is really usefull, gona try ASAP
BTW "For a full "Supercharge" you must also tweak settings.jar via android.mimic.ca", maybe you wanted to say "services.jar" ?
What is inside the flashable ZIP
The ZIP contains a modified boot.img(its initrd image and specifically init.rc not the Kernel), init.d scripts and an executable file: /system/bin/sysinit that in turn executes all init.d scripts.
The source can be modified to support init.d by applying the attached patch to init.rc in platform/system/core repository of CAF. The init.rc is located in rootdir directory.
The patch is a simple two line patch to run sysinit. I will test, and it will of course be preferable to embed sysinit contents directly in init.rc.
Otherwise the initrd.img in the final bootimage can be unpacked,modified and repacked.
I also modified the update script to set permissions on the init.d directory to 755 and owned by root:shell.
Finally, init.qcom.post_boot.sh has been modded so as not to overwrite CPU settings and exec again 13cpu. I may try to modify it so as to source 13cpu instead.
kaza said:
Thank you man this is really usefull, gona try ASAP
BTW "For a full "Supercharge" you must also tweak settings.jar via android.mimic.ca", maybe you wanted to say "services.jar" ?
Click to expand...
Click to collapse
Yes, thank you kaza.
Please let me know if this works fine for you and if you notice any RAM management improvements.
zephyr1988 said:
Yes, thank you kaza.
Please let me know if this works fine for you and if you notice any RAM management improvements.
Click to expand...
Click to collapse
First impressions after first reboot "wow, this thing is really smoother ^^"
Secound impressions after turn on "12fpsfix" "OMG I have a new mobile phone xD"
Boot its slower, but not that much.
Right after boot i have 173 MB free ram, dont really know how much i had before, what i know is that launcher is not redrawing thats really cool
Until now i can only say this, amazing improvement for Aurora, thank you zephyr1988, I will keep in touch with further testing
EDIT: Aps are opening and closing faster too
Thank you so much for this zephyr.
like kaza said, this impoves smoothess a lot.
And being able to use sd-ext again is really good
Thanks again for this!
Yes, improves everything a lot!
Sent from my U8800
kaza said:
First impressions after first reboot "wow, this thing is really smoother ^^"
Secound impressions after turn on "12fpsfix" "OMG I have a new mobile phone xD"
Boot its slower, but not that much.
Right after boot i have 173 MB free ram, dont really know how much i had before, what i know is that launcher is not redrawing thats really cool
Until now i can only say this, amazing improvement for Aurora, thank you zephyr1988, I will keep in touch with further testing
EDIT: Aps are opening and closing faster too
Click to expand...
Click to collapse
Thanks for testing kaza I'm glad it is useful for you
Thank zeppelinrox for his supercharger and the EVO 4G devs for these two things.
I was simply lucky to find them
@Loureiro,fjsferreira
Glad it works for you guys and thanks for testing
A quick question...
"If you use SmartassV2 There are extra tweaks for Performance and a highly suggested tweak for Sleep Ideal Frequency."
If I change to SmartassV2 with No-frills CPU Control will I benefit from that extra tweaks or only if I change it in 13cpu?
EDIT: Nevermind I saw that its needed to uncoment some lines
kaza said:
A quick question...
"If you use SmartassV2 There are extra tweaks for Performance and a highly suggested tweak for Sleep Ideal Frequency."
If I change to SmartassV2 with No-frills CPU Control will I benefit from that extra tweaks or only if I change it in 13cpu?
Click to expand...
Click to collapse
No Frills will overwrite 13cpu's settings in all cases but if you use smartassv2 in 13cpu and enable the tweaks they should stick, I believe.
In two words, use smartassV2 in both No Frills and 13cpu.
Try enabling the sleep ideal freq tweak and then open with a file manager the file:
/sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq
(or in a terminal:
cat /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq)
and see if the value is 368640. If it is it works.
Don't know why, but I installed Aurora 4.0, installed all my apps and then rebooted into Recovery to flash the two Zip files attached to the first post and the phone now is bootlooping :\
trocLas said:
Don't know why, but I installed Aurora 4.0, installed all my apps and then rebooted into Recovery to flash the two Zip files attached to the first post and the phone now is bootlooping :\
Click to expand...
Click to collapse
Are you sure this is because of this mod?
Have you installed other mods too?
Before trying a fresh install, try deleting the three files 96Androcharger, 98KickAsskernel and 97loopy_smoothness_tweak via Pink Screen and PC. Then it is exactly the same as normal aurora and your problem is elsewhere.
Then you should try doing a fresh install of Aurora 4.0, then flash this zip and see if you get bootloops before installing other mods or apps.
wow, I know this will sound strange but at least for me it really happens, i had some slow downloads with Aurora just like most of the guys were reporting, I am using 12fpsfix, 13cpu with 368 min, 1.4 max, smartassV2 with teawks and 71sdcard_read_ahead, and now my downloads are really faster, downloading Asphalt 6 cache now was really fast, maybe its because my read and write speeds of sdcard were increased, dont know, but this is the best tweak so far for Aurora in my opinion lol
kaza said:
wow, I know this will sound strange but at least for me it really happens, i had some slow downloads with Aurora just like most of the guys were reporting, I am using 12fpsfix, 13cpu with 368 min, 1.4 max, smartassV2 with teawks and 71sdcard_read_ahead, and now my downloads are really faster, downloading Asphalt 6 cache now was really fast, maybe its because my read and write speeds of sdcard were increased, dont know, but this is the best tweak so far for Aurora in my opinion lol
Click to expand...
Click to collapse
Yes, I have noticed this too, and also Internet browsing is a little speedier for me.
KickAssKernelizer and SuperCharger(i.e. the modified Androcharger script) apply kernel and tcp stack optimizations
zephyr1988 said:
Are you sure this is because of this mod?
Have you installed other mods too?
Before trying a fresh install, try deleting the three files 96Androcharger, 98KickAsskernel and 97loopy_smoothness_tweak via Pink Screen and PC. Then it is exactly the same as normal aurora and your problem is elsewhere.
Then you should try doing a fresh install of Aurora 4.0, then flash this zip and see if you get bootloops before installing other mods or apps.
Click to expand...
Click to collapse
I tried it with ICS 4.0.4 Toucwiz 5 theme and resulted a bootloop. I will re-install ICS4.0.4 and then your scripts to see if they are working.
zephyr1988 said:
Are you sure this is because of this mod?
Have you installed other mods too?
Before trying a fresh install, try deleting the three files 96Androcharger, 98KickAsskernel and 97loopy_smoothness_tweak via Pink Screen and PC. Then it is exactly the same as normal aurora and your problem is elsewhere.
Then you should try doing a fresh install of Aurora 4.0, then flash this zip and see if you get bootloops before installing other mods or apps.
Click to expand...
Click to collapse
I haven't installed any other mods. I'm going to do a fresh install and then install the two zip files and report what happened!
------------ EDIT ------------
Made a fresh install of Aurora 4.0 and flashed the two zip files from the first post, rebooted the phone, and it entered in bootloop again. Would you upload the files to another host (maybe the files I downloaded are corrupted?).
Don't know why this happens :|
trocLas said:
I haven't installed any other mods. I'm going to do a fresh install and then install the two zip files and report what happened!
Click to expand...
Click to collapse
Did a fresh install but same result(bootloop). Does it make any diffrence which file you install from CWM first?
right after flashing those files, go to Advanced->Report Error. Then mounts and storage -> mount USB storage. You will find inside clockworkmod dir a .log file with debug lines. If something went wrong (mounting or unmounting partitions), it's all there.
Btw which CWM are you using? 5.0.2.7 or 5.5.0.4?
trocLas said:
Don't know why, but I installed Aurora 4.0, installed all my apps and then rebooted into Recovery to flash the two Zip files attached to the first post and the phone now is bootlooping :\
Click to expand...
Click to collapse
same here
Sent from my U8800 using XDA

4/20/2017 [] 7.1.1 UPDATE [] One Plus 3 (msm 8996) [] CPU, VM, RAM, IO "Tune"

4/20/2017 [] 7.1.1 UPDATE [] One Plus 3 (msm 8996) [] CPU, VM, RAM, IO "Tune"
ORIGINAL THREAD HERE: https://forum.xda-developers.com/axon-7/development/2-15-2017-axon-7-msm-8996-cpu-vm-ram-t3557392
This mod was originally created for the Axon 7, but due to several requests, I've modified a version for the One Plus 3, please see below, and post questions or comments in the original thread above. Please state you are a One Plus 3 user if you have feedback in that thread, to consolidate user feedback and speed up response time.
Custom tuning for a device is always a necessity. "Canned" settings will get you by, but they are certainly never optimized for a specific device. In fact, Linux typically takes a general approach to find harmonic balance in default settings that will, for the most part, work in an acceptable manner for just about any device. There are a lot of resources available on this device, so we should utilize it in a manner appropriate to squeeze out as much battery life and performance as possible without sacrificing much of those outputs, don't you think? This is going to fix that for you.
Here is what is required of you before you begin:
1. Must be rooted
2. Must have the One Plus 3 OR a device running the Snapdragon 820, as this modification is not so much device specific, but hardware specific. The important aspect being the snapdragon 820 and the RAM disk size.
3. Must have write protection disabled. If the One Plus 3 requires write protection to be disabled, see the code and instruction below:
Using adb shell:
Code:
adb reboot disemmcwp
Using Linux terminal (from your phone, for example):
Code:
reboot disemmcwp
Let's begin.
Getting right to it, here's what I've done:
- modified parameters of the interactive governor, and quite extensively at that (search some of my threads if you want a little bit of a breakdown of the general approach I take)
- reconfigured input_boost parameters
- reconfigured vm parameters (again, the device has a lot of RAM resource, this will utilize it and give you a far better user experience. Basically, I've adjusted dirty_ratio, dirty_background_ratio, swappiness, and other parameters of the virtual machine.)
- disabled zRAM for 6 GB variants (RAM compression, again, not needed on this device really, this mod will save you CPU cycles and power) this will not apply to 4 GB devices, you will still have zRAM enabled.
- remapped minfree parameters for LMK (low memory killer) again only for 6 GB variants
- Tuned CFQ scheduler for flash storage devices
- Tuned "core_ctl" module (needs kernel support, I recommend freeza's latest version of BeastMode. For those wondering, yes, you can still use this mod with the stock kernel. It won't break anything.) again this will only apply to devices that support core_ctl at the kernel.
In a nutshell, that's what we're looking at here. I can guarantee you this will have a significantly positive impact on your device. Turbo time, homies.
How to install????
Easy. First, the file we are replacing is found in /system/etc... it is the "init.qcom.post_boot.sh" file - this file is basically shell scripts, which are applied at boot via this particular shell file.
All you have to do is download the file to your device, open up a file explorer (must have root capability), navigate to the /system/etc folder with said file explorer, mount your /system as RW (read write), delete your stock "init.qcom.post_boot.sh" file, and replace it with mine.
After you've successfully done this, change the new file's permissions to rw-r--r-- (0644), and then reboot!
Or, if you are brave, you can do it manually via a terminal app and get your fingers wet... if you choose to do that, see below:
Make sure the file is located on the root of your internal sdcard in /sdcard, open your terminal app (again, must have root) and type the following commands, hitting enter after each one (be careful to pay attention to the spacing).
Code:
su
Code:
cd /
Code:
mount -o remount,rw /system
Code:
cd /system/etc
Code:
rm init.qcom.post_boot.sh
Code:
cd /sdcard
Code:
mv init.qcom.post_boot.sh /system/etc
Code:
chmod 0644 /system/etc/init.qcom.post_boot.sh
I don't want credit, don't need you to give or offer donations, this is purely for the community in the spirit of Linux ideology. All I ask is for you to hit the thanks button :good:
That's pretty much it, guys. Enjoy!
DOWNLOAD
I'm willing to give it a go...
File attached ?
Downloaded
warBeard_actual said:
ORIGINAL THREAD HERE: https://forum.xda-developers.com/axon-7/development/2-15-2017-axon-7-msm-8996-cpu-vm-ram-t3557392
Hello, everyone. I would like to provide this modification for this device, as it uses the same SoC as the Axon 7, V10, HTC 10... and a few other devices.
If anybody is interested, please provide me with the STOCK init.qcom.post_boot.sh file, which is found in /system/etc and I will post the modified file and instructions on how to install it.
:good:
Click to expand...
Click to collapse
Ok see immediately improvement! Thanks !
Going to test it a couple of days!
danny b. said:
Ok see immediately improvement! Thanks !
Going to test it a couple of days!
Click to expand...
Click to collapse
I haven't posted the one for your device yet, but I am uploading now.
op updated****
Axon7
warBeard_actual said:
I haven't posted the one for your device yet, but I am uploading now.
op updated****
Click to expand...
Click to collapse
This op3 is my daily phone
The axon 7 is my girlfriend phone also mine?but tested it on the 7 sorry for the confusion. Great work going to test it tomorrow on op3
Read through your entire other thread, you have been updating pretty tirelessly. I installed it on Open Beta 14, ran cat /proc to ensure swappiness was good and it shows 1 just like the config file so the tweaks are up and running on my device. I'm running the beta with the stock kernel so I'll do some testing and see how it does with general performance over the next few days.
I don't know who asked to you share this with us, but we definitely appreciate it :good:
will test it for a couple of days and report...
Heads Up...
the adb command doesn't work for me on OB13, it reboots the phone and doesn't disable Write protection, i went around that by deleting and replacing the file from TWRP...
Thank you I could see some battery improvements.i copied that file through twrp ..Using 4g and got 2.40 hours sot still 50 percent battery remaining.phone doesn't slow down or heat up it's a must try
If i change the kernel like blue spark then its worth it ?
And orignel file is about 122 k and youe file is only 22k.
Facebooook said:
If i change the kernel like blue spark then its worth it ?
And orignel file is about 122 k and youe file is only 22k.
Click to expand...
Click to collapse
He addresses this in the original thread and it is the same size difference on the axon 7. He removed the generic options and put in modified and tuned optimizations for our specific hardware build instead of every MSM device. It definitely provides a more responsive system overall, but I haven't had it running long enough to see the battery impact on the device.
How to check if it works?
Will it work on custom ROMs (AICP etc?)
Day 2 hotter than normal. In keep on testing
Edit: back to normal
Problem was new app
Plz ignore. Problem solved
Will definitely try this thanx a bunch???
Sn0wFl4keZ said:
How to check if it works?
Will it work on custom ROMs (AICP etc?)
Click to expand...
Click to collapse
Definitely no for custom ROMs. Using AICP with latest ElementalX, the file mentioned by OP is not even present in our /system/etc.
Anyway, pretty sure that kernel devs have already tweaked most of the parameters changed by this sh script, so I don't see any need for it for anyone except stock ROM and stock kernel users.
P.S. Still, a lot of work was done by OP, it definitely deserves a big Thank you.
Nezorflame said:
Definitely no for custom ROMs. Using AICP with latest ElementalX, the file mentioned by OP is not even present in our /system/etc.
Anyway, pretty sure that kernel devs have already tweaked most of the parameters changed by this sh script, so I don't see any need for it for anyone except stock ROM and stock kernel users.
P.S. Still, a lot of work was done by OP, it definitely deserves a big Thank you.
Click to expand...
Click to collapse
Thanks for the nod. And while I can't speak to the changes implemented by kernel compilers on this forum, I would be willing to give you guys a comparison of the custom ROMs/combos you're running on your op3.
It might shed some light on whether or not you'd benefit from using it if you're using a CM type set up.
Here's what you do... Go into /sys/devices/system/cpu/cpu0/cpufreq/interactive ...
There will be a bunch of files in there for above_hispeed_freq, hispeed_load... A bunch of others. Open them up with a file explorer, snap a screen shot, post it here so I can see the values of your CM-based ROMs.
Is there I way to confirm that it is working properly because I think it is but it feels like a placebo effect. Thanks for the mod :good:
Thanks
warBeard_actual said:
Thanks for the nod. And while I can't speak to the changes implemented by kernel compilers on this forum, I would be willing to give you guys a comparison of the custom ROMs/combos you're running on your op3.
It might shed some light on whether or not you'd benefit from using it if you're using a CM type set up.
Here's what you do... Go into /sys/devices/system/cpu/cpu0/cpufreq/interactive ...
There will be a bunch of files in there for above_hispeed_freq, hispeed_load... A bunch of others. Open them up with a file explorer, snap a screen shot, post it here so I can see the values of your CM-based ROMs.
Click to expand...
Click to collapse
Here are the contents of the .../interactive folder (everything except boostpulse - got 'Permision denied' on that).
That's for the AICP (based on LOS).
Hello.. Thanks for your mod.
I'm using freedomOS OB13 with francos kernel with his app. Already did all the steps in this thread.
Now, I Just wanted to know if it's just for stock phones or will it improve for everyone?
And how to check if everything is as it should?
Thanks in advance!
---------- Post added at 10:27 AM ---------- Previous post was at 10:22 AM ----------
theduke7 said:
will test it for a couple of days and report...
Heads Up...
the adb command doesn't work for me on OB13, it reboots the phone and doesn't disable Write protection, i went around that by deleting and replacing the file from TWRP...
Click to expand...
Click to collapse
Hey.. How did you check if the write protection is still disabled?
I'm on OB13 as well and my phone just restarted after the command and I thought that's it!

Categories

Resources