List of build.prop tweaks for boost performance and for battery life
Checkout app ^^
Here!
~~~you can edit build.prop with File explorer that supports ROOT- you can start with File Manager
~~~Find build.prop file in /system
~~~if you have existing line,dont duplicate it (dont duplicate it)
~After you finish edit, save changes, CHECK PERMISSIONS must be -rw-r--r--, rebot to recovery and wipe cache and dalvik-cache ,rebot device
Click to expand...
Click to collapse
Thanks to @F4uzan
I read @LaraCraft304 thread HERE This help me too much
#disable the zygote loader for performance --- Crash, mostly
ro.wmt.blcr.enable=0
#help to free up unused ram --- this dont work on stock,you cant add this if kernel doesn't support purgeable of assets :/
persist.sys.purgeable_assets=1
# Video Acceleration
video.accelerate.hw=1
debug.performance.tuning=1
# Low Power Audio
lpa.decode=false
audio.decoder_override_check=true
use.non-omx.mp3.decoder=false
use.non-omx.aac.decoder=false
# Lock App In Memory
sys.keep_app_1=put-process-name-of-app-here --- Process name can find in /data/data, and put full name here
#battery savers
ro.ril.disable.power.collapse=0
ro.config.hw_power_saving=true
wifi.supplicant_scan_interval=180
power_supply.wakeup=enable
ro.ril.sensor.sleep.control=1
proximity_incall=enable
# Fast Reboot
persist.sys.shutdown.mode=hibernate
ro.config.hw_quickpoweron=true
#Enable Low Ram Device flag
ro.config.low_ram=true --- KITKAT ROMs ALREADY HAVE THIS LINE
#better scrolling
ro.max.fling_velocity=12000 --- this firs line already exist in KITKAT ROMs, I dont know to others (change it from 4000 to 12000)
ro.min.fling_velocity=8000
____but____
ro.maxfling_velocity=4000
ro.max.fling_velocity=4000
(4000 allows for a little more ram)
touch.presure.scale=0.001
windowsmgr.max_events_per_sec= max 90,every value over 90 decreas scroll
ro.min_pointer_dur=8
# Composition type
debug.composition.type=mdp
debug.composition.type=gpu -----choose------best-----you
debug.composition.type=cpu ----------------the--------for
debug.composition.type=dyn
#Dalvik tweaks --- @F4uzan said me: "It doesn't matter if it doesn't exist. Dalvik will set up default value. If you set it, Dalvik will prefer value in build.prop"
because I dont know this dalvik.vm.jmiopts=forcecopy --- I dont know what is that.. (someone say me?)
dalvik.vm.dexopt-flags=
Now you can set
~option 1- disable dalvik checking, increases free ram but less optimized dalvik cache
dalvik.vm.verify-bytecode=false
dalvik.vm.dexopt-flags=v=n,u=n,o=v
~option 2 (preferred)- enable more checking for a better performing dalvik cache but may use a little more ram
dalvik.vm.verify-bytecode=true
dalvik.vm.dexopt-flags=v=f,u=n,o=v
dalvik.vm.jit.codecachesize=0 --- this Disable JIT
# Enable Surface Dithering Which Will Raise Image Quality At The Cost Of Performances - 1=ON;0=OFF
persist.sys.use_dithering=0
#disable send data to google
ro.config.nocheckin=1
#Disable Kernel Error Checking
persist.adb.notify=0
vm.stat_interval=1
ro.kernel.android.checkjni=0
I add this to my build.prop, dont need but i prefer
#Enable Adaptive Multi-Rate Wideband
ro.ril.enable.amr.wideband=1
#More volume steps in call
ro.config.vc_call_steps= --- you can set as long as you want |||7 is default||| just put the number after the equal sign
#Better signal.
persist.cust.tel.eons=1
# Signal Tweaks
ro.ril.enable.amr.wideband=1
persist.cust.tel.eons=1
ro.config.hw_fast_dormancy=1 --- dont use this if your carrier dont support
ro.ril.hsxpa=2
ro.ril.gprsclass=12
ro.ril.enable.dtm=1
ro.ril.hsdpa.category=8
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hsupa.category=6
#Phone rings immediately.
ro.telephony.call_ring.delay=0
ring.delay=0
# Net Speed Tweaks
net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.hspa=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.lte=524288,1048576,2097152,524288,1048576,2097152
net.tcp.buffersize.hspda=4096,87380,256960,4096,16 384,256960
net.tcp.buffersize.evdo_b=6144,87380,1048576,6144,87380,1048576
# Google DNS
net.ppp0.dns1=8.8.8.8
net.ppp0.dns2=8.8.4.4
net.dns1=8.8.8.8
net.dns2=8.8.4.4
#Makes streaming videos stream faster
media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-record=true
#Increase photo and video recording quality
ro.media.enc.hprof.vid.bps=8000000
ro.media.capture.maxres=8m
ro.media.panorama.defres=3264x1840
ro.media.panorama.frameres=1280x720
ro.camcorder.videoModes=true
ro.media.enc.hprof.vid.fps=65
# I dont know for what is it, but if your camera dont work on CM10 (I dont know for others) remove this line.
debug.camcorder.disablemeta=1
# Enables 270 Degree Rotation --- In Custom ROMs already have this
windowsmgr.support_rotation_270=true
#Increase jpg quality to 100%
ro.media.enc.jpeg.quality=100
#Better Flashlight intensity & camera-flash quality
ro.media.capture.flash=led
ro.media.capture.flashMinV=3300000
ro.media.capture.torchIntensity=65
ro.media.capture.flashIntensity=70
#Phone rings immediately.
ro.telephony.call_ring.delay=0
ring.delay=0
This tweaks dont work on LG devices, thanks to @F4uzan
pm.sleep_mode won't work
The sleep mode itself is hardcoded to kernel since ICS (or GB, I forgot), so changing it from build.prop won't work.
ro.mot.eri.losalert.delay is for Motorola device
Explained above
ro.config.nocheckin is actually ro.htc.config.nocheckin, so ro.config.nocheckin doesn't exist
Again, explained above
dalvik.vm.execution-mode is JIT, so no need to enable it via build.prop
Uh... explained again
profiler.force_disable_ulog is HTC specific properties
Found in services.jar of HTC ROMs but not on AOSP or LG ROMs
ro.mot.buttonlight.timeout, another properties for Motorola
Everything that starts 'ro.mot', 'ro.htc' won't work with LG phone, something that LG specific is 'lge.' or 'ro.lge'
windowsmgr.max_events_per_sec is a performance degrading thing
As quoted from Google, Android maxes 60fps which is windowsmgr.max_events_per_sec=90 setting it to higher value decreases scroll and touch speed, increase memory usages for UI events and such.
ro.kernel.checkjni, doesn't exist. Not in kernel or even frameworks.
Explained above.
dalvik.vm.checkjni and ro.kernel.android.checkjni won't work.
Already set to false by Android itself
ro.media.dec.jpeg.memcap value is hardcoded
Explained above.
ALL EXPLAINED HERE:
http://www.jeffmixon.com/examining-b...-guide-part-1/
http://www.jeffmixon.com/examining-b...-guide-part-2/
Click to expand...
Click to collapse
init.d tweaksThis init.d tweaks edited by me
You already know the process:
1. Go to recovery
2. Install zip
3. Rebot device
### ATTENTION ###
after flashing this device need about 3 minutes to boot
you do not need to worry, I already have this on my device
Sqlite_optimization
Click to expand...
Click to collapse
Downloads:
zipalign tweak zipalign all apps every 24 hours.
In:
all apps zipaligned
and now usage of this apps in RAM are lesser
Downloads:
View attachment 3133760
Zipalign_24_hours --- thanks to @kien_vip
Click to expand...
Click to collapse
RW_full_speed
Boost Read and Write speed
Downloads:
RW_full_speed
Click to expand...
Click to collapse
Apps for better battery life and performance
I use apps from playstore
Mediaserver Killer --- This app kills media server to save battery,and expand their life
Battery Doctor --- Also use this to expand your battery life
JuiceDefender - battery saver --- Battery saver app
Greenify --- Use this to hibernate apps
CPU Adjuster --- You can set CPU profiles, overclock device if you have overclock kernel
No-frills CPU Control --- I dont know, but I love this app more
[ROOT] Kernel Tweaker --- GPU, CPU tweaks, LMK
Voltage Control --- Undervolt processor to use less power
Android Tweaker 2 --- Tweak everything
This is cool brother, but I think some lines don't apply with stock roms, like purgeable assets. I will post the source.
chrisdlc119 said:
This is cool brother, but I think some lines don't apply with stock roms, like purgeable assets. I will post the source.
Click to expand...
Click to collapse
If kernel doesnt support this, you cannot add :/
Paget96 said:
If kernel dont suport this, you cannot add :/
Click to expand...
Click to collapse
Yes, that's more specific ?
chrisdlc119 said:
Yes, that's more specific ?
Click to expand...
Click to collapse
If you find something else, tell me
When i try to save the edition, its appear a litle box saying that i dont have root acess...but i have x)
What could be ?
jonnybigodesPT said:
When i try to save the edition, its appear a litle box saying that i dont have root acess...but i have x)
What could be ?
Click to expand...
Click to collapse
You have to mount the /system partition using an explorer that supports that function, for example, ES File Manager.
You also can download an app to edit Build.Prop from itself, it's very easy if you already have root access.
chrisdlc119 said:
You have to mount the /system partition using an explorer that supports that function, for example, ES File Manager.
You also can download an app to edit Build.Prop from itself, it's very easy if you already have root access.
Click to expand...
Click to collapse
The problem is solved. I thought I had edited the previous post x)
Thanks mate.
Thx bro i'll use these for my new rom!!!!
Sent from my LG-E400 using XDA Free mobile app
giaki3003 said:
Thx bro i'll use these for my new rom!!!!
Sent from my LG-E400 using XDA Free mobile app
Click to expand...
Click to collapse
now I edit sqlite and zipalign init.d tweak for kitkat
ahh, make for all roms check
Paget96 said:
ahh, make for all roms check
Click to expand...
Click to collapse
Flashed your scripts, device started but after a few hours I noticed that my phone was closed and when I tried to open it, it ended in bootloop. Restored my system backup, everything's fine. So must be your scripts. I think something is wrong with your flash zips. I checked with root explorer and extract the script but Root Explorer shows double file (f.e. 2 METADATA folders, 2 system folders etc.). I checked now in PC but zips seems OK.
I might put some note on build.prop tweaks here :
pm.sleep_mode won't work
The sleep mode itself is hardcoded to kernel since ICS (or GB, I forgot), so changing it from build.prop won't work.
ro.mot.eri.losalert.delay is for Motorola device
Explained above
ro.config.nocheckin is actually ro.htc.config.nocheckin, so ro.config.nocheckin doesn't exist
Again, explained above
dalvik.vm.execution-mode is JIT, so no need to enable it via build.prop
Uh... explained again
profiler.force_disable_ulog is HTC specific properties
Found in services.jar of HTC ROMs but not on AOSP or LG ROMs
ro.mot.buttonlight.timeout, another properties for Motorola
Everything that starts 'ro.mot', 'ro.htc' won't work with LG phone, something that LG specific is 'lge.' or 'ro.lge'
windowsmgr.max_events_per_sec is a performance degrading thing
As quoted from Google, Android maxes 60fps which is windowsmgr.max_events_per_sec=90 setting it to higher value decreases scroll and touch speed, increase memory usages for UI events and such.
ro.kernel.checkjni, doesn't exist. Not in kernel or even frameworks.
Explained above.
dalvik.vm.checkjni and ro.kernel.android.checkjni won't work.
Already set to false by Android itself
ro.media.dec.jpeg.memcap value is hardcoded
Explained above.
References :
http://www.jeffmixon.com/examining-build-prop-tweaks-for-android-ics-a-comprehensive-guide-part-1/
http://www.jeffmixon.com/examining-build-prop-tweaks-android-ics-comprehensive-guide-part-2/
Thanks to Jeff Mixon site.
pkatsaras said:
Flashed your scripts, device started but after a few hours I noticed that my phone was closed and when I tried to open it, it ended in bootloop. Restored my system backup, everything's fine. So must be your scripts. I think something is wrong with your flash zips. I checked with root explorer and extract the script but Root Explorer shows double file (f.e. 2 METADATA folders, 2 system folders etc.). I checked now in PC but zips seems OK.
Click to expand...
Click to collapse
hm, I'll try to fix, thanks for test
sorry for bootloop
F4uzan said:
I might put some note on build.prop tweaks here :
pm.sleep_mode won't work
The sleep mode itself is hardcoded to kernel since ICS (or GB, I forgot), so changing it from build.prop won't work.
ro.mot.eri.losalert.delay is for Motorola device
Explained above
ro.config.nocheckin is actually ro.htc.config.nocheckin, so ro.config.nocheckin doesn't exist
Again, explained above
dalvik.vm.execution-mode is JIT, so no need to enable it via build.prop
Uh... explained again
profiler.force_disable_ulog is HTC specific properties
Found in services.jar of HTC ROMs but not on AOSP or LG ROMs
ro.mot.buttonlight.timeout, another properties for Motorola
Everything that starts 'ro.mot', 'ro.htc' won't work with LG phone, something that LG specific is 'lge.' or 'ro.lge'
windowsmgr.max_events_per_sec is a performance degrading thing
As quoted from Google, Android maxes 60fps which is windowsmgr.max_events_per_sec=90 setting it to higher value decreases scroll and touch speed, increase memory usages for UI events and such.
ro.kernel.checkjni, doesn't exist. Not in kernel or even frameworks.
Explained above.
dalvik.vm.checkjni and ro.kernel.android.checkjni won't work.
Already set to false by Android itself
ro.media.dec.jpeg.memcap value is hardcoded
Explained above.
References :
http://www.jeffmixon.com/examining-build-prop-tweaks-for-android-ics-a-comprehensive-guide-part-1/
http://www.jeffmixon.com/examining-build-prop-tweaks-android-ics-comprehensive-guide-part-2/
Thanks to Jeff Mixon site.
Click to expand...
Click to collapse
i deleted
]windowsmgr.max_events_per_sec when is value over 90 scrolls decreases??
can you help me to add more build.prop tweaks for LGs ??
Yes, decreases. I set this value to 60.
And
ro.min.fling_velocity=16000
ro.max.fling_velocity=20000
mikesa said:
Yes, decreases. I set this value to 60.
Click to expand...
Click to collapse
"Many build.prop tweaks set this value to 300, but it seems this is a bad idea. As Google points out, Android maxes out at 60fps. The default value is already allow for a possible max_events_per_sec of 90. Even if you allow for 300 max_events_per_sec, you’ll only ever see 60 of these events in any given second. Therefore, any value much higher than 90 is unlikely to have any noticeable impact on your experience in general. Additionally, setting this value too high can starve other UI events that need to get processed, viz. touch inputs. You’re not likely to feel like your device is running very smoothly when it is busy processing thousands of scroll events instead of responding immediately to you clicking to try and open a link or an app. There may be some specific scenarios where increasing this value does appear to improve system feedback, but changing this value for all UI events across the board will likely cause more problems than it will solve."
copied from: http://www.jeffmixon.com/examining-build-prop-tweaks-for-android-ics-a-comprehensive-guide-part-1/[/URL
you can go to 90 ]
I tired to 90, but I seems, my phone (Huawei p7) better the 60.
mikesa said:
I tired to 90, but I seems, my phone (Huawei p7) better the 60.
Click to expand...
Click to collapse
yes all mobiles are different
your scripts port from Fly on mod? your zipalign script will run on every boot, not every 30 hours. here is my zipalign script will run every 24 hours and correct permission 644 after zipaligning to avoid bootloop. may be some one like it:
Code:
#!/system/bin/sh
LOG_FILE=/data/zipalign.log;
ZIPALIGNDB=/data/zipalign.db;
# Interval between ZipAlign runs, in seconds, 86400=24 hours
RUN_EVERY=86400
# Get the last modify date of the Log file, if the file does not exist, set value to 0
if [ -e $LOG_FILE ]; then
LASTRUN=`stat -t $LOG_FILE | awk '{print $14}'`
else
LASTRUN=0
fi;
# Get current date in epoch format
CURRDATE=`date +%s`
# Check the interval
INTERVAL=$(expr $CURRDATE - $LASTRUN)
# If interval is more than the set one, then run the main script
if [ $INTERVAL -gt $RUN_EVERY ];
then
if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;
if [ ! -f $ZIPALIGNDB ]; then
touch $ZIPALIGNDB;
fi;
echo "Starting ZipAlign $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
for DIR in /system/app /data/app /system/framework; do
cd $DIR;
for APK in *.apk; do
if [ $APK -ot $ZIPALIGNDB ] && [ $(grep "$DIR/$APK" $ZIPALIGNDB|wc -l) -gt 0 ]; then
echo "Already checked $DIR/$APK" | tee -a $LOG_FILE;
else
ZIPCHECK=`/system/xbin/zipalign -c -v 4 $APK | grep FAILED | wc -l`;
if [ $ZIPCHECK == "1" ]; then
echo "Now aligning $DIR/$APK" | tee -a $LOG_FILE;
/system/xbin/zipalign -v -f 4 $APK /data/local/$APK;
busybox mount -o rw,remount /system;
cp -f -p /data/local/$APK $APK;
chmod 644 $APK;
busybox rm -f /data/local/$APK;
grep "$DIR/$APK" $ZIPALIGNDB > /dev/null || echo $DIR/$APK >> $ZIPALIGNDB;
else
echo "Already aligned $DIR/$APK" | tee -a $LOG_FILE;
grep "$DIR/$APK" $ZIPALIGNDB > /dev/null || echo $DIR/$APK >> $ZIPALIGNDB;
fi;
fi;
done;
done;
busybox mount -o ro,remount /system;
touch $ZIPALIGNDB;
echo "ZipAlign finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
fi;
Related
Hi All,
I am a happy user of Xposed Installer and using Modules.
However, one day my friend asked me if I could help him to fix the logging problems of Xposed because it almost ate like ~500MB of his internal space without him knowing it. So, I made this simple script to make a temporary fix (although I can still make this a little more flexible by checking the log file instead of running it on a fixed interval). I hope this helps and I hope Xposed dev can make an option to cleanup the logs generated by the modules.
More power
The script - I found that (not really proven, but as observed) looping scripts in the init.d are not very well handled so I did a workaround. I have the main script (cleaner) inside data and one script (trigger) in init.d. So here are they:
The main script - I placed on /data/Tweaks/scripts:
Code:
#!/system/bin/sh
# Name: 50_XposedCleanLog
# Date: 10/27/2014
# Author: Arsie Organo Jr. - [email protected]
# Link:
# About: This will clean up Xposed Installer app generated
# logs every X minutes.
# 1. Rooted
# 2. Busybox is installed.
####################################################
# Interval between 50_XposedCleanLog runs, in seconds, 18000=.5hour
XPOSEDLOGS=/data/data/de.robv.android.xposed.installer/log/error.log
a=0
sleepme=18000
while [ $a -ge 0 ]
do
busybox rm -f $XPOSEDLOGS
busybox touch $XPOSEDLOGS
chown root:root $XPOSEDLOGS
echo "Xposed Logs Cleanup Started $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $XPOSEDLOGS;
echo "Cleanup will run again in the next $(expr $sleepme / 60) min" | tee -a $XPOSEDLOGS;
echo $a
a=`expr $a + 1`
echo "Xposed Logs cleaner completed at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $XPOSEDLOGS;
sleep $sleepme
done
# END
And the trigger is placed in /system/etc/init.d - 10_DONOTDELETE:
Code:
#!/system/bin/sh
# Name: 10_DONOTDELETE
# Date: 10/28/2014
# Author: Arsie Organo Jr. - [email protected]
# Link:
# About: This script is needed to run all the tweaks
# and looping scripts.
# You will need your device to be:
# 1. Rooted
# 2. Busybox is installed.
####################################################
datalog=/data/Tweaks/logs/10_DONOTDELETE.log
busybox rm -f $datalog
busybox touch $datalog
# Xposed logs cleaner
/system/bin/sh /data/Tweaks/scripts/50_XposedCleanLog.sh > /dev/null 2>&1 &
if [ `busybox ps -ef | grep Tweaks | grep 50_XposedCleanLog.sh | wc -l` -eq 1 ] ;
then
echo "$( date +"%m-%d-%Y %H:%M:%S" ) Xposed logs cleaner initiated" | tee -a $datalog;
else
echo "$( date +"%m-%d-%Y %H:%M:%S" ) Xposed logs cleaner initialization FAILED" | tee -a $datalog;
fi;
So this simply means that the main script will be called upon restart and then loop it in the background checking the log file every 30min.
Note: Phone needs to be rooted and must have busybox installed. Tested on MediaTek MT6582 (MP Agua Rio) JB version.
I have attached a flashable here.. direct flash only and there is no need to wipe your cache.
This will work ONLY if your phone supports init.d and the generated Xposed log file is located here - /data/data/de.robv.android.xposed.installer/log/error.log
Wow very nice keep it up sir. :good:
Rovo89 set limit for log file to 5 MB. https://github.com/rovo89/XposedBridge/commit/afcc3e1e788ea44bfd00245a24b5dfe6c86aa3d0
Cool!
pyler said:
Rovo89 set limit for log file to 5 MB. https://github.com/rovo89/XposedBridge/commit/afcc3e1e788ea44bfd00245a24b5dfe6c86aa3d0
Click to expand...
Click to collapse
That's cool, however using the latest Xposed (experimental version) we've seen the error.log can go more than 500mb.
You can check the ridiculous size of the error.log below. So to aid this, I made this looping script.
eyesfortech said:
That's cool, however using the latest Xposed (experimental version) we've seen the error.log can go more than 500mb.
You can check the ridiculous size of the error.log below. So to aid this, I made this looping script.
Click to expand...
Click to collapse
Yes, this change is not part of 2.7 exp1.
too bad but there is always hope
pyler said:
Yes, this change is not part of 2.7 exp1.
Click to expand...
Click to collapse
yeah... I guess so, but there's always hope
huge issue
I check and mine is 7gb but when I check application manager it says xposed is using 11gb why?
manual Clear logs
bigchuk00 said:
I check and mine is 7gb but when I check application manager it says xposed is using 11gb why?
Click to expand...
Click to collapse
Hi,
have you tried manually clearing the logs from Xposed Logs options?
No. I didn't. The flash able zip was what I used n it worked fine . thank you.
Cool! I guess the permanent solution will be provided in the next update of Xposed (hopefully!)
It's just absurd that these 'error logs' rack up over a 100mb per day. The Xposed chappies say look at the log to see what module is causing the problem - well, I can't make head nor tail of the logs. Should be a better way of dealing with it.
eyesfortech said:
Cool! I guess the permanent solution will be provided in the next update of Xposed (hopefully!)
Click to expand...
Click to collapse
I admire your genius in setting up cron & it works flawlessly on my device, please would be able to create a flashable script or cron that will make @zeppelinrox sclean(wipe dalvik & reboot) script to run once each week?
slimcyril said:
I admire your genius in setting up cron & it works flawlessly on my device, please would be able to create a flashable script or cron that will make @zeppelinrox sclean(wipe dalvik & reboot) script to run once each week?
Click to expand...
Click to collapse
Unfortunately I am currently swamped with my day job and I cannot promise anything sooner. Can you give me the link the one you wanted me to try? And on what device? Currently I am no longer using MTK so testing it will also be a problem.
Thanks.
eyesfortech said:
Unfortunately I am currently swamped with my day job and I cannot promise anything sooner. Can you give me the link the one you wanted me to try? And on what device? Currently I am no longer using MTK so testing it will also be a problem.
Thanks.
Click to expand...
Click to collapse
Thanks for your response I later found what I was looking here http://forum.xda-developers.com/showthread.php?t=2700146
►Tweak Klean & Speed◄
manual install
2016, january 24th
Hi, after reading many forums and using the various resource I created a script to optimize all LG L Fino.
Before install check your phone is ROOT HERE.
Drag & Drop, and put a permission.
- Adaware (10 057 ko lite)
etc/ host > 644
- Activated init.d
etc/ install-recovery-2.sh > 755
- Tweaks
etc/ init.d/ *755
_00kleanup > full cleaning at launch - (as usefulness)
_01kernel_panic > disabled kernel panic
_02seeder > optimization
_03vm > tweak vm
_04ksm > configuring KSM
_05zram > activated Zram 256 mo
_06_IO_scheduler > best I/O scheduler line
_07lowmemorykiller > configuring lowmemorykiller
_08remount > remounted
_09zipalign > optimization application
_10sqlite3 > optimization database
_11fstrim > lag trim fix
_12networks > secure and optimize
_13wifi_sleeper > idle wait
_14kill_all > kill all process
- Mod better screen (perf)
lib/ egl/ egl.cfg
1 1 android
0 1 adreno
Click to expand...
Click to collapse
- Associated file
xbin/ 777
sqlite3
zipalign
- Disable MPDecision and use full multicore rename /bin/mpdecision to mpdecision-rm
- Mod your BUILD.PROP
Code:
[B]Modded Sound Tweak[/B]
# Fluencetype can be "fluence" or "fluencepro" or "none"
ro.qc.sdk.audio.fluencetype=fluence
persist.audio.fluence.mode=endfire
persist.audio.fluence.voicecall=true
persist.audio.fluence.voicerec=false
persist.audio.fluence.speaker=true
persist.audio.hp=true
persist.audio.handset.mic=digital
persist.audio.voicecall.mic=0
persist.audio.voice.clarity=none
[B]Added[/B]
# Best Scrolling
persist.sys.scrollingcache=3
ro.max.fling_velocity=12000
ro.min.fling_velocity=8000
ro.min_pointer_dur=8
windowsmgr.max_events_per_sec=90
# Disable Checking Data
logcat.live=disable
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
ro.config.nocheckin=1
ro.kernel.android.checkjni=0
ro.kernel.checkjni=0
# Photo & Flashlight Quality
ro.media.capture.flash=led
ro.media.capture.flashMinV=3300000
ro.media.capture.flashIntensity=70
ro.media.capture.torchIntensity=65
- Bootanimation GooGle : link here replace original file.
media / ..644
- Guide :
Delete manualy all Google files to app/*
- without : GoogleCalendarSyncAdapter.apk, GoogleContactSyncAdapter.apk
Delete manualy all Google files to priv-app/*
- without : GmsCore.apk, GoogleBackupTransport.apk, GoogleLoginService.apk, GoogleServicesFramework.apk, Phonesky.apk
Disable all LG services to system/application : xx xx
Enjoy Your ROM is Kustom...
____________________________________
Apps for escort
Root Browser - Sd Maid - Link2Sd (for export but don't extand)
Thank's many dev for the script.
Thanks for that tweak. Do you have experience in building custom roms ? Would be very thankful if u could build one for our device
Hi proudlytm
I'm just sharing work that help, the scripts come from the community work provided on xda. I changed a little, but I have more time to work the Rom. If I find some time I would write a script to flash via recovery.
Did you install, and what do you think the result?
mickael.webmaster said:
Hi proudlytm
I'm just sharing work that help, the scripts come from the community work provided on xda. I changed a little, but I have more time to work the Rom. If I find some time I would write a script to flash via recovery.
Did you install, and what do you think the result?
update 02/12/2015
Before use new script, erase all script.
Click to expand...
Click to collapse
Haven't installed it yet, I might, but my question was if you could make / port CyanogenMod 11 or CyanogenMod 12.1 for our LG L Fino D290N/D295 ?
proudlytm said:
Haven't installed it yet, I might, but my question was if you could make / port CyanogenMod 11 or CyanogenMod 12.1 for our LG L Fino D290N/D295 ?
Click to expand...
Click to collapse
Sorry my function is limited , I think I can without certainty but unfortunately I don't have time. If you test, report me. Thx.
Latest update :
networks tweak and all correctly.
- added bootanimation "GooGle"
Tested on game "Rayman Jungle Run" and "Berry Rush", crazy work.
mickael.webmaster said:
►Tweak Klean & Speed◄
2015, december 19th
Hi, after reading many forums and using the various resource I created a script to only optimize LG L Fino.
Before install check your phone is ROOT and BUSYBOX either install, use to root browser for :
Drag & Drop, and put a permission.
- Adaware (46 342 ko use only for 1go+ ram)
etc/ host 644
- Activated init.d
etc/ install-recovery-2.sh 755
- Tweaks
etc/ init.d/ ..755
_01kleanup > full cleaning at launch
_02kernel_panic > disabled kernel panic
_03ksm > configuring KSM
_04lowmemorykiller > configuring lowmemorykiller
_05_IO_scheduler > best I/O scheduler line
_06remount > remounted
_07vm > tweak vm
_08zram > activated Zram 256 mo
_09fstrim > lag trim fix
_10zipalign > optimization application
_11sqlite3 > optimization database
_12wifi_sleeper > idle wait
_13networks > secure and optimize
_14kill_all > kill all process
_15seeder > optimization
- force GPU
lib/ egl/ ..644
egl.cfg
libGLES_android.so > rename to libGLES_android.bak
- Associated file
xbin/ 777
sqlite3
zipalign
Disable MPDecision and use full multicore rename /bin/mpdecision to mpdecision-rm
Mod your BUILD.PROP
Code:
[B]Modded[/B]
[I]# Fluencetype can be "fluence" or "fluencepro" or "none"[/I]
ro.qc.sdk.audio.fluencetype=fluence
persist.audio.fluence.mode=endfire
persist.audio.fluence.voicecall=true
persist.audio.fluence.voicerec=false
persist.audio.fluence.speaker=true
persist.audio.hp=true
persist.audio.handset.mic=digital
persist.audio.voicecall.mic=0
persist.audio.voice.clarity=none
[B]Deleted[/B]
[I]# Reduce Background apps limit[/I]
##"ro.sys.fw.bg_apps_limit=20
[B]Added[/B]
# App Home
ro.HOME_APP_ADJ=1
# App Optimization (low reboot)
ro.app.optimization=true
# Best Scrolling
persist.sys.scrollingcache 3
ro.max.fling_velocity=12000
ro.min.fling_velocity=8000
ro.min_pointer_dur=8
windowsmgr.max_events_per_sec=90
# Disable Checking Data
logcat.live=disable
persist.adb.notify=0
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
ro.config.nocheckin=1
ro.kernel.android.checkjni=0
ro.kernel.checkjni=0
# Enable JIT
dalvik.vm.jit.codecachesize=1
# Enable Bytecode
dalvik.vm.verify-bytecode=true
dalvik.vm.dexopt-flags=v=f,u=n,o=v
# Enable Hardware Acceleration
ro.config.disable_hw_accel=false
# Enable OpenGL
ro.opengl.off=0
# Enable Surface Dithering (blur effect)
persist.sys.use_dithering=2
# Enable 4x_MSAA
MSAASmoothing=High
MSAABufferAllocation=always
forceMSAAMode=1
MSAAMode=2
# Game tweaks
# unlock fps
persist.tegra.NV_FPSLIMIT=0
#
#
persist.sys.NV_FPSLIMIT=60
persist.sys.NV_POWERMODE=1
persist.sys.NV_PROFVER=15
persist.sys.NV_STEREOCTRL=0
persist.sys.NV_STEREOSEPCHG=0
persist.sys.NV_STEREOSEP=20
# More RAM
persist.service.pcsync.enable=0
persist.service.lgospd.enable=0
# Photo & Flashlight Quality
ro.media.capture.flash=led
ro.media.capture.flashMinV=3300000
ro.media.capture.flashIntensity=70
ro.media.capture.torchIntensity=65
# Quality Of Media Streaming
media.stagefright.enable-meta=true
media.stagefright.enable-rtsp=true
# Storage USB
ro.usbstorage.cpumode=performance
bootanimation GooGle : link here replace original file.
media / ..644
____________________________________
Apps for escort
Root Browser - Sd Maid - Link2Sd (for export but don't extand)
Thank's many dev for the script.
Click to expand...
Click to collapse
Doesn't work bro... soft bricks phone
and It's just the build.prop i changed
After installing this tweak and reboot my phone opens only recovery mode.
Sor92 said:
After installing this tweak and reboot my phone opens only recovery mode.
Click to expand...
Click to collapse
This tweak can't brick your smartphone, it's a customization of kernel event. It's practiced on rom stock D290n root + busybox tool installed, by manualy install.
After installation, check /data. If the log are there so the script works, otherwise check the file permission with root browser.
Sorry, report your model, I use d290n.
Run or not > don't brick :fingers-crossed:
Edit :
(don't move lib/egl, script unstable)
I have D290n with root and busybox.
mickael.webmaster said:
This tweak can't brick your smartphone, it's a customization of kernel event. It's practiced on rom stock D290n root + busybox tool installed, by manualy install.
After installation, check /data. If the log are there so the script works, otherwise check the file permission with root browser.
Sorry, report your model, I use d290n.
Run or not > don't brick :fingers-crossed:
Edit :
(don't move lib/egl, script unstable)
Click to expand...
Click to collapse
D295n
Which permissions should we set in the root browser?
Ky$h said:
D295n
Click to expand...
Click to collapse
D295 ?? Flash a stock rom or hard reset, build.prop it's not appropriate, it's the cause of bootloop.
http://lg-phone-firmware.com/firmware-LG+L+Fino-Tutti-103.html
Sorry guys, I correct the position.
________________________
RenegadeX44 said:
Which permissions should we set in the root browser?
Click to expand...
Click to collapse
With root browser
________________________
Update tweak : 2016, january 24th
_03lowmemorykiller > configuring lowmemorykiller
_04_IO_scheduler > best I/O scheduler line
________________________
Update tweak : 2016, january 26th
_Order tweak
_06_IO_scheduler > best I/O scheduler line - added LOOP
...
Thread update in the near future
Hello xda world,
EDIT 24 may 2018: using Luis kernel now on RR 5.8.4. Best I have tried so far!!
Link: http://luis-builds.de/downloads/lineageos/rr/Xiaomi_Redmi_4X_(santoni)/
EDIT 10-feb-2018: battery drain due to *alarm* and *launcher* system wakelocks solved with firmware V32.
Grab it here and flash with TWRP: https://forum.xda-developers.com/xiaomi-redmi-4x/how-to/firmwares-t3682965
Here I hope to collect some tweaks and mods that work in rooted Redmi 4x stock rom. (8.2.10.0 Global)
EDIT: since I use Resurrection Remix now I also added some RR tweaks
Since I just own the device it will be work in progress for a while. I search the forums for solutions for problems I encounter.
My Redmi 4x is OEM unlocked via Xiaomi, has twrp and Magisk root. (you need root for tweaks)
For OEM unlock you need account and register at miui.com, ask for unlock, wait 30+ hours and then use the miui unlock tool that checks if you are granted bij Xiaomi for unlock.
Some Redmi 4x facts:
- Xiaomi Redmi 4x has codename Santoni
- The Soc is Qualcomm 435 (msm8940 socid 313, msm8937 for the firmware), 4 cpu cores perf and 4 cpu cores power
- The gpu is Adreno 505
- main camera is Samsung S5K3L8, front camera is Omnivision ov5675
- notification LED has RGB!
- 5 GHz (11ac) only supported for wifi hotspot (wlan.ko issue)
- MIUI features are setup in the /etc/device_features/santoni.xml file
- CPU/kernel features are mostly setup in the /etc/init.qcom.post_boot.sh file
- fastboot: hold vol- and power, release power after vibrate
- recovery: hold vol+ and vol- and power, release power after vibrate
Redmi 4x related sites:
- Official miui.com for Redmi 4x http://en.miui.com/forum-123-1.html
- Resurrection Remix ROM for Redmi 4x https://sourceforge.net/projects/resurrectionremix/files/santoni/ (Antutu score 43000+)
- Miui EU ROM https://xiaomi.eu/community/forums/miui-weekly-rom-releases.103/
- Mi-Globe ROM (like EU ROM but with options) Mi-Globe
- Miui Belarus (MiuiPro) ROM https://miuipro.by/roms/
- Redmi 4x Global Edition on Bangood
- AOSP Extended (AEX) ROM Redmi 4X http://downloads.aospextended.com/santoni/
Note: If you change any file always make a copy of it first. I always copy the file in the same folder and give it extension .ORG. So build.prop becomes build.prop.ORG with adb shell: cp -p build.prop build.prop.ORG
Be sure the permissions of the files are set to rw-r--r-- (644)!!!!!!
Example adb/linux commands
From pc:
adb push "afile" /sdcard
adb shell
On device:
su
stop
mount -o remount,rw /system
cd "/afolder"
cp -p "afile" "afile.ORG"
cp /sdcard/"afile" .
ls -l "afile*"
chmod 644 "afile"
reboot
Ofcourse afile and afolder are just example names.
If you are not familiar with linux shell or adb then you can find zip files to flash in TWRP mode.
You need to REBOOT after changing any of these files.
Note 2: I am not responsible for any damage to your device. Use this at your own risk!
Audio recording mod (mixer mod)
Recording audio on stock rom is terrible. On the internet I found a solution. You need to change 2 mixer files.
If you also want louder speaker you need to copy /etc/mixer_paths.xml too.
/etc/mixer_paths_qrd_sku1.xml
mic volume for voice call
Code:
<path name="voice-call">
<!-- tweakradje add 2 lines -->
<ctl name="DEC1 Volume" value="88" />
<ctl name="DEC2 Volume" value="88" />
<ctl name="PRI_MI2S_RX_Voice Mixer CSVoice" value="1" />
<ctl name="Voice_Tx Mixer TERT_MI2S_TX_Voice" value="1" />
</path>
mic volume for audio rec like movie, try between 100-124, use 100 for very loud env
Code:
<path name="handset-mic">
<path name="adc1" />
<!-- tweakradje add 2 lines -->
<ctl name="DEC1 Volume" value="110" />
<ctl name="DEC2 Volume" value="110" />
<ctl name="IIR1 INP1 MUX" value="DEC1" />
</path>
mic volume for audio rec like movie, try between 100-124, use 100 for very loud env
Code:
<path name="handset-stereo-dmic-ef">
<!-- tweakradje add 2 lines -->
<ctl name="DEC1 Volume" value="110" />
<ctl name="DEC2 Volume" value="110" />
<path name="speaker-dmic-endfire" />
</path>
/etc/audio_platform_info.xml
Code:
<acdb_ids>
<!-- tweakradje add 2 lines, but no more auto rec mic volume -->
<device name="SND_DEVICE_IN_HANDSET_MIC" acdb_id="1"/>
<device name="SND_DEVICE_IN_HANDSET_STEREO_DMIC" acdb_id="1"/>
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED" acdb_id="136"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED" acdb_id="136"/>
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED_VBAT" acdb_id="136"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED_VBAT" acdb_id="136"/>
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK" acdb_id="137"/>
</acdb_ids>
Now audio is fine when recording video and sounds even great!
You can download the 2 files below. Check if you need to insert these lines in your file or that you can use mine.
For recording stereo audio only I use Sony Audio Recorder which is free and perfect.
EDIT 18 dec 2017: Found that acdb_id="4" works well, which is the default mic profile in ACDB. However you need to lower the "DEC1 Volume" and "DEC2 Volume" to 94.
EDIT 23 dec 2017: About Audio Calibration (ACDB) files
You might have noticed that there are more than one set of acdb file in /etc/acdbdata folder. There are MTP end QRD sets. QRD stands for Qualcomm Reference Design. You can play with these Calibration Profiles for speakers and microphone.
Easiest is to create a new build.prop (644) in the /vendor folder.
Then play with these values. You can also mix MTP and QRD for devices. Like using all MTP but for General and Handset use the QRD version.
Code:
persist.audio.calfile0=/etc/acdbdata/QRD/QRD_Bluetooth_cal.acdb
persist.audio.calfile1=/etc/acdbdata/QRD/QRD_General_cal.acdb
persist.audio.calfile2=/etc/acdbdata/QRD/QRD_Global_cal.acdb
persist.audio.calfile3=/etc/acdbdata/QRD/QRD_Handset_cal.acdb
persist.audio.calfile4=/etc/acdbdata/QRD/QRD_Hdmi_cal.acdb
persist.audio.calfile5=/etc/acdbdata/QRD/QRD_Headset_cal.acdb
persist.audio.calfile6=/etc/acdbdata/QRD/QRD_Speaker_cal.acdb
#persist.audio.calfile0=/etc/acdbdata/MTP/MTP_Bluetooth_cal.acdb
#persist.audio.calfile1=/etc/acdbdata/MTP/MTP_General_cal.acdb
#persist.audio.calfile2=/etc/acdbdata/MTP/MTP_Global_cal.acdb
#persist.audio.calfile3=/etc/acdbdata/MTP/MTP_Handset_cal.acdb
#persist.audio.calfile4=/etc/acdbdata/MTP/MTP_Hdmi_cal.acdb
#persist.audio.calfile5=/etc/acdbdata/MTP/MTP_Headset_cal.acdb
#persist.audio.calfile6=/etc/acdbdata/MTP/MTP_Speaker_cal.acdb
MIUI Camera mod (features unlock)
This is how you unlock those high end features you find on higher end models. To enable the features you need to edit the /etc/device_features/santoni.xml (or /sdcard/device_features/santoni.xml) file. Mostly change false into true to enable them.
Some are also added from other Xiaomi devices.
Download from below.
Camera parameters found:
Code:
support_camera_4k_quality
support_camera_age_detection
support_camera_aohdr
support_camera_audio_focus
support_camera_boost_brightness
support_camera_burst_shoot
support_camera_gradienter
support_camera_hfr
support_camera_manual_function
support_camera_movie_solid
support_camera_peaking_mf
!support_camera_press_down_capture
support_camera_quick_snap
support_camera_record_location
support_camera_shader_effect
support_camera_skin_beauty
support_camera_tilt_shift
support_camera_torch_capture
support_camera_ubifocus
support_camera_video_pause
support_camera_water_mark
Camera 2 API
You can enable Camera 2 API for 3rd party camera apps. Think about manual focus etc.
Add this line to your build.prop:
persist.camera.HAL3.enabled=1
More interesting Camera's: https://forum.xda-developers.com/mi-5/themes/app-collection-camera-modded-t3591177
Better (modded) MIUI Camera
From my friends at 4pda. Much better camera at low light. Also JPEG quality set to 98.
http://4pda.ru/forum/index.php?showtopic=793497&view=findpost&p=57013739
Flash zip in twrp (backup of original camera is made by script)
If you want to do it manualy:
- take the MiuiCamera.apk from the zip
- adb push MiuiCamera.apk /sdcard/
- adb shell
- su
- mount -o remount,rw /system
- cd /system/priv-app/MiuiCamera
- mv MiuiCamera.apk MiuiCamera.apk.ORG
- mv oat oat.ORG
- cp /sdcard/MiuiCamera.apk .
- chmod 644 MiuiCamera.apk
- ls -l
- stop
- sync
- reboot
Enable Dalvik JIT (Android 6)
Add this line to your build.prop file:
debug.usejit=true
When cleaning the dalvik cache your phone will boot much faster. Don't have to wait for 5 or 10 minutes anymore
Test Color Notification Led
See here: http://en.miui.com/thread-605570-1-1.html
EDIT 15 sep 2017:
Color Notification led support: http://en.miui.com/thread-850569-1-1.html
or at the source: http://4pda.ru/forum/index.php?showtopic=841683&st=0#entry64978644
Change MIUI theme and launcher
You can change variables of the package (apk) using MIUI themes. But you can also change the default theme.
The default theme is located at /system/media/theme/default
Changes to the MIUI Launcher (home screen) can easily made. It is a zip file (com.miui.home.zip) with a theme_values.xml in it. Change or add values to the xml file, copy it to /system/media/theme/default/com.miui.home and reboot.
Note that the zip has no extension when you copy it to the folder!!! It must have the name of the package.
Below you find an example of a 5x6 launcher grid. If you want to know more better search google with MIUI_Theme_Values
You can do this for example also with MiuiSystemUI.apk (com.android.systemui) and many more
Alternative CPU core control
There are 4 performance cpu's (cpu 0123) and 4 powersave cpu's (cpu 4567). Depending on the task load they increase or decrease their cpu frequency. But they can also switch on or off. Default 2 perf cores and all 4 power cores stay on.
I modified the /etc/init.qcom.post_boot.sh script for the purpose that only 1 perf and 1 power core stay on with no task load. This consumes less power and increases battery life.
Copy init.qcom.post_boot.sh.txt to /etc/init.qcom.post_boot.sh and reboot. Don't forget to make a copy.
Code:
echo 1 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus
### power cluster min 1 cpu max 4, busy up/down from 0000 to 68 and 40, perf cluster up like 80+
### prefer (low-)power cores cpu4567 up before perf cores cpu0123 (high power consumtion)
echo "80 85 90 95" > /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres #68, only looks at 1st value
echo 68 > /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres
echo 40 > /sys/devices/system/cpu/cpu4/core_ctl/busy_down_thres
### Wait x ms before switching core off, you might need it again
echo 500 > /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms #100 (test .5 sec)
echo 500 > /sys/devices/system/cpu/cpu4/core_ctl/offline_delay_ms #100 (test .5 sec)
Resurrection Remix strange adb shell prompt
Change /etc/mkshrc, comment last 3 lines
Code:
}$HOSTNAME:${PWD:-?} '"$PS1 "
#if [ "z$ANDROID_SOCKET_adbd" != "z" ]; then
# resize
#fi
Force battery charge to 90%
Code:
# Charge only up to 89% instead of 100% for longer battery life? cat /sys/class/power_supply/battery/voltage_now
echo 4260 > /sys/class/power_supply/battery/voltage_max # 4400 (nominal 3.85V)
My additions to build.prop (/vendor/build.prop)
This is my current /vendor/build.prop and the big advantage is that you can leave your ROM's /system/build.prop as it is. The /vendor/build.prop will overwrite settings from /system/build.prop!
High wakelock with low signal data connection? Try this in build.prop
ro.ril.wake_lock_timeout=2000
Ps: Check for property errors direct after reboot with: dmesg | grep prop
Code:
### always check values with "dmesg | grep prop"
### /default.prop
### /system/build.prop
### /vendor/build.prop (*)
### /factory/factory.prop
### /data/local.prop
### tweakradje RR 5.8.4/5
lockscreen.rot_override=true
#ro.radio.noril=true
# dumpsys SurfaceFlinger will give 1920x1200 density of 295 dpi
#ro.sf.lcd_density=295
#30% faster app loading?
sys.use_fifo_ui=1
# pm multitask def = 6
persist.pm.multitask=8
#ro.recents.grid=true
ro.cutoff_voltage_mv=3200
ro.config.swap=false
ro.config.zram=false
ro.sys.sdcardfs=true
ro.ril.wake_lock_timeout=2000
persist.radio.aosp_usr_pref_sel=true
#ro.audio.offload_wakelock=true (default)
#audio.offload.ignore_setawake=false (default)
#opengl 3d hw accel
debug.egl.hw=1
# hw compositing, if 0 then always software
debug.sf.hw=1
#sys.hwc.gpu_perf_mode=1
### composition valid if debug.sf.hw=0 (and sys.hwc.gpu_perf_mode=0)
#debug.composition.type=c2d
debug.composition.type=mdp
ro.sf.compbypass.enable=0
# use development settings for force gpu
#persist.sys.ui.hw=true
debug.gr.numframebuffers=3
#no debug messages
debug.hwui.level=0
#debug.egl.swapinterval=-1 (def)
#debug.egl.swapinterval=0
#HWUI properties
#ro.hwui.texture_cache_size=72
#ro.hwui.layer_cache_size=48
#ro.hwui.r_buffer_cache_size=8
#ro.hwui.path_cache_size=32
#ro.hwui.gradient_cache_size=1
#ro.hwui.drop_shadow_cache_size=6
###ro.hwui.texture_cache_flushrate=0.4
#ro.hwui.text_small_cache_width=1024
#ro.hwui.text_small_cache_height=1024
#ro.hwui.text_large_cache_width=2048
#ro.hwui.text_large_cache_height=2048
###ro.hwui.fbo_cache_size=32
#debug.hwui.skip_empty_damage=true
#debug.hwui.use_buffer_age=true
#debug.hwui.enable_partial_updates=true
#debug.hwui.render_dirty_regions=true
#debug.hwui.disable_draw_defer=false
#debug.hwui.disable_draw_reorder=true
#debug.choreographer.vsync=false
#debug.choreographer.frametime=false
#debug.choreographer.skipwarning=20
# Use UBWC
###debug.gralloc.map_fb_memory=0
###debug.gralloc.enable_fb_ubwc=1
# 0 = force to enable scrollingCacheEnabled regardless of app setting
# 1 = default is to enable scrollingCacheEnabled unless app specifies
# 2 = default is to disable scrollingCacheEnabled unless app specifies
# 3 = force to disable scrollingCacheEnabled regardless of app setting
persist.sys.scrollingcache=3
ro.config.max_starting_bg=12
#ro.sys.fw.bg_apps_limit=20
ro.config.vc_call_vol_steps=14
ro.config.media_vol_steps=30
#ro.hardware.egl=adreno
#perstist.power.usetwilightadj=true
# JIT Android 6
debug.usejit=true
# JIT Android 7
#dalvik.vm.usejit=true
#dalvik.vm.usejitprofiles=true
#ro.core_ctl_min_cpu=0
#ro.min_freq_0=200000
#ro.min_freq_0=384000
#ro.min_freq_4=384000
### EXTRA CAMERA ###
###https://android.googlesource.com/platform/hardware/qcom/camera/+/9fc7225504a6f969bd7277c1070f0b91b0ce4874/msmcobalt/QCamera2/HAL/QCameraParameters.cpp
###https://android.googlesource.com/platform/hardware/qcom/camera/+/nougat-dev/QCamera2/HAL/QCameraParameters.cpp
persist.sys.camera-sound=0
persist.camera.HAL3.enabled=1
###https://android.googlesource.com/platform/hardware/qcom/camera/+/f9a41d251fab1320345588e7654a1b0f4c70ae1c/QCamera2/stack/common/cam_types.h
#-persist.camera.hal3.feature=32
### HAL3 High Frame Rate
#-persist.camera.hal3hfr.enable=1
#-persist.camera.hal3.force.hdr=0
#persist.camera.perflock.enable=1
# fps def is 60
persist.camera.disp.fps=30
persist.camera.max.previewfps=30
#persist.camera.pdaf.enable=1
# focus call back (def 1)
#-persist.camera.depth.focus.cb=0
#persist.camera.disp.num_vsync=4
#persist.camera.disp.ms_to_vsync=2
#persist.camera.disp.filter_max=2
#persist.camera.disp.filter_min=4
# thumbnail needed
#-persist.camera.tn.disable=0
# anti banding 0 1=auto 2=50Hz 1=60Hz
#persist.camera.set.afd=2
# 0=disable 1=with aggressive AEC 2=with fast AEC
#-persist.camera.instant.capture=2
#-persist.camera.instant.aec=2
#persist.camera.dt=0
#persist.camera.vc=0
### adb shell setprop persist.camera.effect <effect>
### none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua,emboss,sketch,neon,beauty
#persist.camera.effect=none
### check for raw images /data/misc/camera folder!
#persist.camera.raw.dump=0
#persist.camera.raw.debug.dump=0
# raw format 16(yuv?) 17 or 18
#persist.camera.raw.format=17
#persist.camera.raw.subformat=
#persist.camera.raw_yuv=0
#persist.camera.zsl_raw=0
#persist.camera.snapshot_raw=20
# nr buffers, adb shell setprop persist.camera.preview_yuv 20 <20 preview buffers>
#persist.camera.preview_yuv=0
#persist.camera.preview_raw=0
#persist.camera.video_raw=0
# raw data i? mode
#persist.camera.rdi.mode=disable
#persist.camera.offlineraw=0
### manual exposure, enables persist.camera.exposure.time
#persist.camera.manual.capture=1
### adb shell setprop persist.camera.exposure.time "exposure time" (in millisec) 10 = 1/100
#persist.camera.exposure.time=10
#persist.camera.initial.exp.val=10
# 1=CAM_ISO_MODE_DEBLUR 100 200 ...
#persist.camera.iso=1
#persist.camera.continuous.iso=100
#correlated double sampling mode on off auto(def) (noise reduction)
#persist.camera.CDS=on
#persist.camera.video.CDS=auto
# TemporalDenoise (Supported at all?)
#persist.camera.tnr_cds=1
#persist.camera.tnr.snapshot=on
#persist.camera.tnr.video=on
#persist.camera.tnr.preview=on
# Low light noise feature is to avoid noise seen at the snapshot frame edges due to WNR processing
#persist.camera.llnoise=0
# low light capture
#persist.camera.llc=1
# 0=CAM_WAVELET_DENOISE_YCBCR_PLANE
# 1=CAM_WAVELET_DENOISE_CBCR_ONLY
# 2=CAM_WAVELET_DENOISE_STREAMLINE_YCBCR
# 3=CAM_WAVELET_DENOISE_STREAMLINED_CBCR
#persist.denoise.process.plates=2
#persist.tnr.process.plates=2
#persist.camera.tintless=enable
# Burst LED on period 1-799 def 300
#persist.camera.led.on.period=150
#persist.camera.secure.mode=disable
#camera.lowpower.record.enable=1
#cpp or vfe scaling
#persist.camera.pp_scaling=0
#persist.camera.ltmforseemore=1
#persist.camera.preview.seemore=1
#persist.camera.liveshot.size=1280x720
#persist.camera.stats.af.paaf=1
#persist.camera.preview.ubwc=1
# high temp? then lower fps (or frameskip)
persist.camera.thermal.mode=fps
#persist.camera.batchcount=0
#persist.camera.video.batchsize=6
#persist.camera.opt.livepic=1
# Chromatic Aberation enabled? Check logcat grep -i chroma
# E mm-camera: <IMGLIB><ERROR> 695: module_cac_handle_aec_update: module_cac_handle_aec_update 695: Invalid chromatix ptr
#persist.camera.feature.cac=1
persist.camera.eis.enable=1
# preferred IS type for 8937 is IS_TYPE_DIS i.e, 1
# IS_TYPE_NONE=0, IS_TYPE_DIS=1, IS_TYPE_GA_DIS=2, IS_TYPE_EIS_1_0=3, IS_TYPE_EIS_2_0=4 IS_TYPE_MAX=5
persist.camera.is_type=4
persist.camera.is_type_preview=4
#CAMERA_LONGSHOT_STAGES=4
#persist.camera.longshot.stages=1
#persist.camera.longshot.max=5
#persist.camera.longshot.shotnum=5
#persist.camera.longshot.save=0
# use jpeg burst if persist.camera.longshot.save=0
#persist.camera.jpeg_burst=1
### Check whether shutter should be triggered immediately after capture
persist.camera.feature.shutter=1
#persist.camera.facedetect=1
#persist.camera.snapshot.fd=1
# face detect in video 0 1 2(only for focus)
#persist.camera.fdvideo=1
#persist.camera.mem.usepool=1
# video shooting ION cache, disable for faster shooting
persist.camera.mem.usecache=0
persist.sys.exif.make=Xiaomi
persist.sys.exif.model=Redmi 4X Tweakradje
#persist.camera.auto.hdr.enable=enable
### dual camera range finding
persist.camera.dcrf.enable=0
### multi_pass cause 3/4 green effect when zoomin
persist.camera.multi_pass=0
#persist.camera.zsl.mode=1
#persist.camera.zsl.interval=1
#persist.camera.zsl.backlookcnt=2
#persist.camera.zsl.queuedepth=2
#persist.camera.zsl.buffer.size=
# zigzag hdr
#persist.camera.hdr.outcrop=enable
persist.camera.zzhdr.enable=1
persist.camera.zzhdr.video=1
# disable UBWC (universal bandwidth compression) if enable eztune
#debug.gralloc.gfx_ubwc_disable=0
#persist.camera.eztune.enable=0
#persist.camera.perf.memlimit=0x800
#persist.camera.capture.animate=1
camera.qcom.misc.disable=0
persist.ts.rtmakeup=0
#persist.camcorder.4k.nolimit=1
#persist.camcorder.eis.maxfps=30
#debug.camera.yv12=true
#debug.camera.preview.flip=90
#debug.camera.video.flip=90
#debug.camera.picture.flip=90
#ClearSight? settings
#persist.camera.cs.threshold=0xf4240 clearsight threshold (long)
#persist.camera.cs.burstcount=4
#persist.camera.cs.dumpframes=0
#persist.camera.cs.timeout=0x12c
#ro.miui.screen_layout_size=3
#ro.sys.oosenhance.enable=true
#ro.sys.oosenhance.timer=2000
#debug.oosenhance.turnon=true
### EXTRA AUDIO ###
# resampler DEFAULT=0
# OLD values LOW_QUALITY=1(1st order) MED_QUALITY=2(3rd order) HIGH_QUALITY=3(fixed multi-tap FIR) 4 VERY_HIGH_QUALITY
# 1-3 AudioResampler: Assertion failed: format != AUDIO_FORMAT_PCM_16_BIT /system/lib/libaudioresampler.so (_ZN7android14AudioResampler6createE14audio_format_tiiNS0_11src_qualityE+1024)
# Using the new DYN_*_QUALITY resamplers (modes 5-7) allows floating point audio to work. 8 works too
af.resampler.quality=7
# cat /proc/asound/card0/id -> msm8920sku7sndc -> /etc/acdbdata/QRD/msm8920-sku7-snd-card
### QRD (Qualcomm Reference Design) or MTP Audio Calibration files?
#persist.audio.calfile0=/etc/acdbdata/MTP/MTP_Bluetooth_cal.acdb
#persist.audio.calfile1=/etc/acdbdata/MTP/MTP_General_cal.acdb
#persist.audio.calfile2=/etc/acdbdata/MTP/MTP_Global_cal.acdb
#persist.audio.calfile3=/etc/acdbdata/MTP/MTP_Handset_cal.acdb
#persist.audio.calfile4=/etc/acdbdata/MTP/MTP_Hdmi_cal.acdb
#persist.audio.calfile5=/etc/acdbdata/MTP/MTP_Headset_cal.acdb
#persist.audio.calfile6=/etc/acdbdata/MTP/MTP_Speaker_cal.acdb
# calibrate speaker duration (0) if spk prot true
persist.speaker.prot.enable=false
#persist.spkr.cal.duration=50
# audio, offload to audio hardware
audio.offload.disable=false
audio.offload.buffer.size.kb=256
av.streaming.offload.enable=true
audio.offload.multiple.enabled=true
ro.audio.max_fast_tracks=8
ro.audio.flinger_standbytime_ms=500
audio_hal.period_multiplier=2
#audio_hal.period_size=192
audio_hal.in_period_size=50
#Qualcomm Immersive Audio Noise Cancellation (Fluence), Pro is quadmic
#ro.qc.sdk.audio.fluencetype=fluencepro
#ro.qc.sdk.audio.fluencetype=fluence
#ro.qc.sdk.audio.fluencetype=none
#persist.audio.fluence.voicecall=true
#persist.audio.fluence.audiorec=false
persist.audio.fluence.mode=endfire
#persist.audio.fluence.mode=broadside
#rec.playback.conc.disabled=false
#surround recording
ro.qc.sdk.audio.ssr=false
# dump recording /data/misc/audio/ssr_input_3ch.pcm
#ssr.pcmdump=true
# acdb full freq spectrum on speakers ACDB 131
# persist.audio.FFSP.enable=true -> gives acdb error in logcat!!!
# native audio?
audio.nat.codec.enabled=true
persist.audio.hifi.int_codec=true
# active noise cancelation
#persist.aanc.enable=1
#persist.headset.anc.type=
#persist.audio.vbat.enabled=true
#libdirac.so also /vendor/etc/diracmobile.config
audio.dirac.logging=0
#persist.audio.dirac.headset=5
#persist.audio.dirac.eq=
#persist.audio.dirac.music.state=0
# not complete lib files to enable dirac in RR
persist.audio.dirac.speaker=false
#
use.dts_eagle=false
persist.bt.max.hs.connections=4
persist.bt.max.a2dp.connections=4
persist.bt.enableAptXHD=true
persist.service.bt.a2dp.sink=false
#ro.bluetooth.hfp.ver=1.5
#ro.bluetooth.hfp.ver=1.6
ro.bluetooth.hfp.ver=1.7
#persist.bluetooth.disableabsvol=true
#wc_transport.force_special_byte=true
#bt.pts.certification=true
audio.dolby.ds2.enabled=false
audio.dolby.ds2.hardbypass=true
### EXTRA NETWORK ###
ro.net.dns_cache_size=1500
net.dns.cache_size=1500
net.dns.cache_ttl=1800
net.http.threads=20
net.dns2=8.8.8.8
### EXTRA SQLITE ###
# find /data/data \( -name *-journal -o -name *-wal -o -name *-shm \) -exec rm {} \;
#debug.sqlite.journalmode=DELETE
#debug.sqlite.syncmode=FULL
#debug.sqlite.pagesize=
#sqlite Write Ahead Logging on? creates big WAL files and shm (shared mem) files, log 512KB
debug.sqlite.journalmode=WAL
debug.sqlite.wal.autocheckpoint=0
debug.sqlite.wal.syncmode=FULL
debug.sqlite.journalsizelimit=524288
#debug.sqlite.wal.poolsize=
If you have more interesting mods don't hesitate to post them and I will add them to the OP.
EDIT 5 sep 2017: added new RR init script (v2), better CPU cores and audio !!! v2 might cause battery drain, then v3
EDIT 8 sep 2017: added /etc/wifi/WCNSS_qcom_cfg.ini for 40 Mhz channel on 2.4Ghz
added new RR init script (v3) for better battery life
EDIT 15 oct 2017: removed mixer_paths.xml, use stock. Changes applied to new mixer_paths_qrd_sku1.xml
EDIT 21 oct 2017: added V4 for RR, better target_loads for big/little CPU's
EDIT 31 oct 2017: added V5 for RR, better big perf/little lowpower cpu switching. Perf cpu minimal is 0. Most tasks done with lowpower cpu's. Can run youtube for almost 11 hours now!
EDIT 4 nov 2017: Noticed one little error in V5 RR script.
Echo Y > /sys/module/workqueue/parameters/power_efficient
should be
echo Y > /sys/module/workqueue/parameters/power_efficient
EDIT 16 nov 2017: V6 RR script. Optimal use of RAM. Tested for 3 GB only. All apps stay in ram. Almost no swapping. Example, Chrome keep tabs without reloading. Antutu score now 46350!
EDIT 20 nov 2017: V7 RR script. Create 512 MB ZRAM swap if RAM < 2GB and don't lower swappiness (only for 3 GB)
Little change for V7 script:
### tweakradje use small cores to the max before switch to big cores (antutu only 35000 instead of 46000)
echo 0 > /dev/cpuctl/cpu.upmigrate_discourage
EDIT 23 nov 2017: added stereo recording in AAC with Redmi 4X (speakers cyburg needles with Tangband w3-881sjf https://www.youtube.com/watch?v=MsgAFoTghvw )
EDIT 2 dec 2017: little corrections in V7 RR script and changed to flashable zip.
EDIT 6 jan 2018: change emmc max freq from 200 to 300 MHz. Increase the read speed from 80Mb/s to 120 Mb/s (note: you can try 400 or 500 Mhz. Might cause reboot, please report back) Test with busybox hdparm -tT /dev/block/mmcblk0p49
EDIT 13 feb 2018: V9 of the script. Added tweaked deviceidle (doze) settings. Device looses 0-1% overnight!
EDIT 15 feb 2018: V10 of the script. Improved Light/Deep Doze settings with documentation in the script. Put your email app in the whitelist too!!!
EDIT 18 feb 2018: V11 ready. Won battle with Google Play Services that reset the device_idle_constants to "null" every few hours. Solution: pm disable --user 0 com.google.android.gms/.phenotype.service.sync.PhenotypeConfigurator
Doze settings and explanation are in the script for those who want to change some timings. The script sets it to this scheme:
- Enter light doze after screen off
- Light maintenance windows every 5 minutes
- Enter Deep doze after 15 minutes (enter deep if there is no alarm within 5 minutes from now, was 1 hour)
- Deep maintenance windows every hour
- Whatsapp and Gmail white listed (can do their thing regardless of doze state)
- No delays for phone motion or whatever
EDIT 8 mar 2018: updated some audio related files with comments in it. Change to your liking , now awesome high quality good calibrated stereo sound recording!!
EDIT 6 apr 2018: V13 of the init script. Changed things like min/max cpu speed for custom kernel
EDIT 9 apr 2018: flashable scripts now create backup of replaced files if not exist. (*.ORG)
EDIT 25 may 2018: V15 of the init script for 7.x Nougat ROMs.
EDIT 16 jun 2018: V16 of the init script for 7.x Nougat ROMs (LAST AND FINAL!)
Cheers
PLEASE don't quote first post. Waste of space and it will change anyway. THANKS
Data partition is encrypted
I found that the data partition is encrypted when coming from Miui ROM to RR. Fingerprint is not working with encrypted data partition.
Data is encrypted if TWRP asks for unlock code.
These steps decrypts it and preserves data.
Code:
- Boot into TWRP
- Backup /data to "internal sd" (or to "ext sd card") with TWRP
- On PC: adb pull /data/media/0
- Wipe -> Format /data in TWRP
- Reboot to TWRP again
- On PC: adb push . /data/media/0
- On PC: adb shell chown -R media_rw.media_rw /data/media/0
- Reboot to TWRP again
- Restore the previous backup with TWRP
- On PC: adb shell rm /data/system/locksettings* /data/system/*.key
- On PC: adb shell rm -r /data/dalvik*
- Reboot
Change Doze (deviceidle) settings
On the device you can change the Doze settings very easy. First list the Doze settings to get all current parameters:
Code:
dumpsys deviceidle
Then change parameters by setting some variables in the Android Global Settings db:
Code:
settings put global Phenotype_flags device_idle_constants
settings put global device_idle_constants inactive_to=300000,idle_after_inactive_to=300000
Enable light doze too (mLightEnabled=true mDeepEnabled=true)
Code:
dumpsys deviceidle enable all
Add whatsapp and gmail to the whitelist
Code:
dumpsys deviceidle whitelist +com.whatsapp +com.google.android.gm
Note: Google Play Services reset the device_idle_constants to "null" every few hours. Solution: pm disable --user 0 com.google.android.gms/.phenotype.service.sync.PhenotypeConfigurator
See more info in post above
Use Fingerprint sensor as button
As you might know hardware keys have keycodes. These keycodes can be found using an app like KeyEvent Dipslay
The mapping between Keycode and Function is done in the kl files in the folder /system/usr/keylayout
To map the Fingerprint key (Keycode 353) you use the gf3208.kl file.
Code:
#key 353 ENTER
#key 353 CAMERA
#key 353 MENU
key 353 SLEEP
Reboot for effect. This will not effect the Fingerprint function.
Super audio for Resurrection Remix
To enable HD audio for headphones and other audio tweaks for RR (maybe for Miui too)
Add these lines to the end of your build.prop
Code:
audio.offload.disable=false
audio.offload.buffer.size.kb=1024
persist.audio.FFSP.enable=true
audio.nat.codec.enabled=true
persist.audio.hifi.int_codec=true
persist.audio.dirac.speaker=false
use.dts_eagle=true
Some tweaks for camera driver
To enable some extra features to play with. You can add these to the end of your build.prop
For the stock camera on RR ROM make sure you disable Color Denoise setting.
Code:
#persist.camera.liveshot.size=1280x720
persist.camera.HAL3.enabled=1
persist.camera.hal3hfr.enable=1
persist.camera.ltmforseemore=1
persist.camera.led.on.period=500
persist.camera.stats.af.paaf=1
persist.camera.manual.capture=1
# high temp? then lower fps (or frameskip)
persist.camera.thermal.mode=fps
persist.camera.opt.livepic=1
# Chromatic Aberation enabled? Check logcat grep -i chroma
# E mm-camera: <IMGLIB><ERROR> 695: module_cac_handle_aec_update: module_cac_handle_aec_update 695: Invalid chromatix ptr
persist.camera.feature.cac=1
persist.camera.eis.enable=1
persist.denoise.process.plates=2
persist.camera.longshot.stages=1
persist.camera.facedetect=1
persist.camera.snapshot.fd=1
# face detect in video 0 1 2(only for focus)
persist.camera.fdvideo=1
persist.camera.mem.usepool=1
persist.camera.mem.usecache=5000000
persist.sys.exif.make=Xiaomi
persist.sys.exif.model=Redmi 4X
persist.camera.feature.shutter=1
persist.camera.auto.hdr.enable=1
persist.camera.tintless=1
#persist.camera.continuous.iso=200
#persist.camera.exposure.time=
# dual camera range finding
persist.camera.dcrf.enable=0
persist.camera.multi_pass=1
persist.camera.zsl.mode=1
persist.camera.zsl.interval=1
persist.camera.zsl.backlookcnt=2
persist.camera.zsl.queuedepth=2
# zigzag hdr
persist.camera.zzhdr.enable=1
persist.camera.zzhdr.video=1
persist.camera.eztune.enable=0
# TemporalDenoise (Supported at all?)
persist.camera.tnr_cds=1
persist.camera.tnr.snapshot=1
persist.camera.tnr.video=1
persist.camera.tnr.preview=1
# low light noise enabled?
persist.camera.llnoise=1
More will follow
oke thanks
Sipppp
Mine has rgb led. See led test script in OP. But even in RR rom it is not suported. Pitty. Perhaps support will come later. I've seen users with tasker scripts to make it work.
Very thanks for the cpu control you have created, my backup is now nearly +30% thanks again and also for camera mod keep up the good work:good:
Abugk said:
Does this redmi 4x has RGB LED . Can you please confirm it ?
From these screenshots I'm assuming that it has a RGB LED . How can I enable it ?
Click to expand...
Click to collapse
Easiest way to get it is install camera mod.
For just led colors, change the line on /system/etc/device_features/santoni.xml
Code:
<bool name="support_led_color">[B]true[/B]</bool>
Wow. Great work... cant wait to try these one too. Thanks
Hi, how can I use your CPU cores tweak in MIUI 9?
Thanks!
You can take the RR version. Make copy of your original file first!
Cheers
Anyone running RR with my V2 script having battery drain issues? I have since yesterday.
I am now running new script to test battery drain. The change is to disable all these
low power modes again. Lets see tomorrow.
Oh and if you see the notification led blinking purple after reboot? The V3 script switches it
off again after 3 sec.
Can everything here useful for any rom with nougat or just RR?
Not everything. A lot is MIUI related.
Except the things that are qualcomm related like xml files and init files.
RR files are for nougat in general.
But always make a copy of your original file first!!!
can u make text percentage only mod for miui9 global. this option is present in miuipro
tweakradje said:
Not everything. A lot is MIUI related.
Except the things that are qualcomm related like xml files and init files.
RR files are for nougat in general.
But always make a copy of your original file first!!!
Click to expand...
Click to collapse
So , that means ,these tweaks can be used in miui9???
Sure. Make copy first so that you can always go back to original.
tweakradje said:
Anyone running RR with my V2 script having battery drain issues? I have since yesterday.
I am now running new script to test battery drain. The change is to disable all these
low power modes again. Lets see tomorrow.
Oh and if you see the notification led blinking purple after reboot? The V3 script switches it
off again after 3 sec.
Click to expand...
Click to collapse
Me too, mine dropped 10% after a night with wifi and data off.
I'm on RR build 170815.
Thanks for the feedback. I use v3 of the script now for 2 days and battery is perfect. Try it. After install switch off the phone completely ( no reboot ) and then switch it on again. It worked for me.
tweakradje said:
Thanks for the feedback. I use v3 of the script now for 2 days and battery is perfect. Try it. After install switch off the phone completely ( no reboot ) and then switch it on again. It worked for me.
Click to expand...
Click to collapse
How to install it? your cpu Config, Iam using 8.2..10 and have copied the txt to my sh file, i already save it and set to rwrr too, but cpu config still default, even after i restart my phone.. still default config cpu running helpppp
You have to remove the txt extension. Then copy it over existing file. Check permissions and then reboot.
Don't edit file. It has unix EOL in it.
thanks for your advice, i have tried it.. is RRV3 version have same config as default? 2 perf 4 power cpu on?
IMPORTANT NOTICE
- I CANNOT AND WILL NOT BE RESPONSIBLE FOR ANYTHING YOU FLASH TO YOUR DEVICE
- I CAN ONLY TEST THIS ON A HONOR VIEW 10 US BKL-L04
- IF YOU POST HERE LOOKING FOR SUPPORT BECAUSE YOU FLASHED IT TO ANYTHING OTHER THAN WHAT I CAN SUPPORT, YOU WILL BE IGNORED
Click to expand...
Click to collapse
What Does This Mod Do?
It reconfigures Interactive governor
- - More will come as more Kernel's get built
- - And I figure out a better way to control the governor detection
It Disables the RUN_IN_BACKGROUND flag for a ton of apps (see the list below)
- - you can control this by adding or removing package names from /data/local/rib_allowed
- - /data/local/rib_allowed contains the apps that will NOT get RIB disabled
It Disables the WAKE_LOCK for a ton of apps (see list below)
- - you can control this by adding or removing package names from /data/local/wl_allowed
- - /data/local/wl_allowed contains the apps that will NOT get WL disabled
It enables Init.d suport
It cleans up some un-necessary junk on boot
It trims partitions on boot (and once per week)
It tweaks some caching, networking, media scanning, etc...
How Do I Flash It?
Make sure you have TWRP Flashed
Make sure you are Rooted
Make sure your data partition is already decrypted
- You must have /data decrypted: https://forum.xda-developers.com/showpost.php?p=76132974&postcount=430
Backup your stock ramdisk... you will need this to uninstall
Download the attachment
Reboot to TWRP
Select the file you downloaded and flash it
Reboot
Profit
How Do I check if it's working?
You can drop into adb shell and run:
Code:
su
grep -ir "kev" /dev/kmsg
To see if it ran, other than that, you should notice your device behaving a bit smoother, and have a bit more battery life
You can also check the logs and .running files inside /data/local/
THANKS
@[email protected]_USA - and the entire Huawei Team for providing me with this incredible device
@Dees_Troy - and the entire TWRP team for providing us with TWRP
@topjohnwu - For Magisk
UNINSTALL
Use fastboot and flash back your stock ramdisk.img
Code:
adb reboot bootloader
fastboot flash ramdisk /YOU/PATH/ramdisk.img
fastboot reboot
DONATIONS
CHANGELOG
v.1.5.6
- Had to change the location of the RIB and WL whitelists
- - Look for them in /data/local
v.1.5.5
- Finally have the scripts firing off
- - Thank you sepolicy....
- All scripts now run with full bash instead of sh
- logged to /data/local
- - only RIB and WL are logged
- reworked the tweaks so they'd run better
- create backup of ramdisk
- - check /sdcard/Download/
- - copy this over to your machine if you want to "uninstall" this tweak set, you will need to fastboot flash it in order to do so
v.1.4.0
- Reworked when gov tweaks are fired off
- Added in build.prop tweaks.
- - Net Congestion, Reconfigure Dalvik for better memory management, remove dha, add in fha config
- - tweak hwui caches, reconfig fling, misc power and performance tweaks.
v.1.3.1
- Now detects governors in order to tweak them
- - right now, only Interactive and blu_active are configured. More will come as more kernel's get built
- Injects straight into your ramdisk partition. So, make sure you have backed it up prior to flashing this
v.1.1.9
- Reworked flashing mounts
- Added in minor logging to /dev/kmsg
v.1.0.1
- Initial Release
- - Was able to utilize /vendor/etc/init to drop a init.*.rc script to run everything
ON DECK
- As soon as we have full Aroma support, I will be adding in a set of build.prop tweaks
- - Yes, Aroma is necessary, because you may or may not want some of these, so rather than forcing them all on you, I will give you the choice...
- HINT: These are working fantastically on my device
Code:
YOU WILL HAVE TO WAIT AND SEE
DISCLAIMER
- The packages in these lists are just what I've found to allow the primary services to continue running normally, with a couple added packages for items I have installed
- If you would like some added to this, you can edit your rib_allowed and wl_allowed files
- If you think some packages should be included by default, I invite you to post the package name, and why you think it should be "allowed"
To get a list of your packages, drop to adb shell and run
Code:
su
echo $(pm list packages -f | sed -e 's/.*=//' | sort) >> /mnt/sdcard/All-Packages.txt
This will write out all packages currently on your device
RUN BACKGROUND WHITELIST
- file is located in /data/local/rib_allowed
Code:
com.android.calendar
com.android.contacts
com.android.deskclock
com.android.email
com.android.exchange
com.android.mediacenter
com.android.phone
com.google.android.apps.messaging
com.google.android.syncadapters.contacts
com.huawei.android.totemweather
com.huawei.android.totemweatherwidget
com.huawei.wifiprobqeservice
mega.privacy.android.app
com.fitbit.FitbitMobile
com.fooview.android.fooview
com.plexapp.android
net.openvpn.openvpn
WAKELOCK WHITELIST
- file is located in /data/local/wl_allowed
Code:
android
com.android.bluetooth
com.android.calendar
com.android.contacts
com.android.deskclock
com.android.email
com.android.incallui
com.android.phone
com.android.server.telecom
com.huawei.wifiprobqeservice
com.google.android.apps.messaging
com.huawei.ims
com.huawei.powergenie
com.fitbit.FitbitMobile
mega.privacy.android.app
com.topjohnwu.magisk
BUILD.PROP TWEAKS
From version 1.4.0 and on, I am including my build.prop tweaks. Note, this will not overwrite your existing build.prop, it will only modify it... and it does so intelligently. The tweaks included are as follows:
Code:
# KEVP75-DALVIK: Reconfigure the dalvik cache
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=256m
dalvik.vm.heapsize=512m
dalvik.vm.heaptargetutilization=0.50
dalvik.vm.heapminfree=4m
dalvik.vm.heapmaxfree=16m
# KEVP75-FHA: Enable FHA and configure for our device
ro.config.fha_enable=true
ro.sys.fw.use_trim_settings=true
ro.sys.fw.empty_app_percent=50
ro.sys.fw.trim_empty_percent=100
ro.sys.fw.trim_cache_percent=100
ro.sys.fw.bservice_enable=true
ro.sys.fw.bservice_limit=5
ro.sys.fw.bservice_age=5000
ro.sys.fw.trim_enable_memory=2147483648
# KEVP75-HWUI: Reconfigure the hwui cache
ro.hwui.texture_cache_size=72
ro.hwui.layer_cache_size=48
ro.hwui.path_cache_size=32
ro.hwui.texture_cache_flushrate=0.4
ro.hwui.shape_cache_size=4
ro.hwui.gradient_cache_size=1
ro.hwui.drop_shadow_cache_size=6
ro.hwui.r_buffer_cache_size=8
ro.hwui.text_small_cache_width=1024
ro.hwui.text_small_cache_height=1024
ro.hwui.text_large_cache_width=4096
ro.hwui.text_large_cache_height=4096
# KEVP75-FLING
windowsmgr.max_events_per_sec=300
ro.max.fling_velocity=15000
ro.min.fling_velocity=8000
# KEVP75-GAMING
persist.sys.NV_FPSLIMIT=60
persist.sys.NV_POWERMODE=1
persist.sys.NV_PROFVER=15
persist.sys.NV_STEREOCTRL=0
persist.sys.NV_STEREOSEPCHG=0
persist.sys.NV_STEREOSEP=20
persist.sys.purgeable_assets=1
# KEVP75-PERF
debug.kill_allocating_task=0
force_hw_ui=true
persist.sys.use_dithering=1
ro.min_pointer_dur=1
persist.sys.ui.hw=1
ro.kernel.android.checkjni=0
# KEVP75-POWER
ro.config.hw_power_saving=1
power.saving.mode=1
pm.sleep_mode=1
ro.ril.disable.power.collapse=0
ro.ril.power_collapse=1
power_supply.wakeup=enable
ro.mot.eri.losalert.delay=1000
ro.config.hw_power_saving=1
ro.ril.disable.power.collapse=0
debug.performance.tuning=1
debug.composition.type=hw
debug.sf.hw=1
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
ro.vold.umsdirtyratio=20
dalvik.vm.checkjni=false
dalvik.vm.execution-mode=int:jit
video.accelerate.hw=1
power_supply.wakeup=enable
# KEVP75-SEC
ro.config.knox=0
ro.config.tima=0
ro.config.timaversion=0
ro.config.iccc_version=0
# KEVP75-WIFI: Wifi Scanning
wifi.supplicant_scan_interval=300
# KEVP75-DNS
net.dns1=1.1.1.1
net.dns2=1.0.0.1
net.rmnet0.dns1=1.1.1.1
net.rmnet0.dns2=1.0.0.1
net.ppp0.dns1=1.1.1.1
net.ppp0.dns2=1.0.0.1
net.wlan0.dns1=1.1.1.1
net.wlan0.dns2=1.0.0.1
net.eth0.dns1=1.1.1.1
net.eth0.dns2=1.0.0.1
net.gprs.dns1=1.1.1.1
net.gprs.dns2=1.0.0.1
# KEVP75-NET
net.ipv4.ip_no_pmtu_disc=0
net.ipv4.route.flush=1
net.ipv4.tcp_ecn=0
net.ipv4.tcp_fack=1
net.ipv4.tcp_mem=187000 187000 187000
net.ipv4.tcp_moderate_rcvbuf=1
net.ipv4.tcp_no_metrics_save=1
net.ipv4.tcp_rfc1337=1
net.ipv4.tcp_rmem=4096 39000 187000
net.ipv4.tcp_sack=1
net.ipv4.tcp_timestamps=1
net.ipv4.tcp_window_scaling=1
net.ipv4.tcp_wmem=4096 39000 18700
wifi.supplicant_scan_interval=220
net.ipv4.tcp_window_scaling=1
ro.ril.hsxpa=3
ro.ril.gprsclass=10
ro.ril.hep=1
ro.ril.enable.dtm=1
ro.ril.hsdpa.category=12
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hsupa.category=7
ro.ril.hsdpa.category=10
ro.ril.enable.a52=1
ro.ril.set.mtu1472=1
persist.cust.tel.eons=1
ro.config.hw_fast_dormancy=1
persist.data_netmgrd_mtu=1482
persist.data_netmgrd_nint=8
ro.use_data_netmgrd=true
ro.ril.enable.dtm=1
ro.ril.def.agps.mode=2
ro.ril.def.agps.feature=1
ro.ril.enable.gea3=1
ro.ril.enable.fd.plmn.prefix=23402,23410,23411
ro.ril.set.mtu1472=1
net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.hspa=6144,87380,524288,6144,163 84,262144
net.tcp.buffersize.lte=524288,1048576,2097152,5242 88,1048576,2097152
net.tcp.buffersize.hsdpa=6144,87380,1048576,6144,8 7380,1048576
net.tcp.buffersize.evdo_b=6144,87380,1048576,6144, 87380,1048576
persist.telephony.support.ipv6=1
persist.telephony.support.ipv4=1
8 downloads, 160+ views and no comments...
I guess silence is golden...........
kevp75 said:
8 downloads, 160+ views and no comments...
I guess silence is golden...........
Click to expand...
Click to collapse
May be user needs some time to check, compare and notice the difference. Just a thought. I have not rooted so cant test this. Holding up on stock for camera and not the easy/ same way of going back to stock may be
Rommco05 said:
Hi kevp75 please can u share separately values for interactiv gov which u use in this tweak?
Click to expand...
Click to collapse
open /vendor/etc/init/init.kevp75.rc
I would definitely give a try but i have couple of concerns
1. I have installed TWRP already but not sure if the data is decrypted or not. Any quick way to know the status?
2. Does this mod supports BKL09? if not sure, theoretically how bad can it get if I flash it on BKL09? So I can take a chance by flashing.
Thanks for your hardwork on this.
Narasimha12 said:
I would definitely give a try but i have couple of concerns
1. I have installed TWRP already but not sure if the data is decrypted or not. Any quick way to know the status?
2. Does this mod supports BKL09? if not sure, theoretically how bad can it get if I flash it on BKL09? So I can take a chance by flashing.
Thanks for your hardwork on this.
Click to expand...
Click to collapse
hey mate.
for #1 you would see what looks like base64 encoded folder names in TWRPs file manager when browsing sdcard
if worse came to worse u just wouldnt have the whitelists.... but if rooted you could manually copy them to /data/data from inside the zip
#2 unsure. from tlwhat ive been gathering L09 is official.. where-as me on L04 is beta...
same hardware, so you "should" be fine... just take a backup of you /vendor partition in TWRP in case its not
EDIT: Technically... this may also work unrooted... doubt my RIB and WL blockers will, but the Gov Tweaks will
Rommco05 said:
I tryied to flash on L09 and installation failed with error 7. I'm just saying
edit: In your file I found this: 4/interactive/io_is_busy 1 but this value isn't in Interactive governor or Im thinking wrong?
Click to expand...
Click to collapse
Did you happen to get the recovery.log? I'd like to see what failed. (it flashes fine for me...)
Error 7 means a whole bunch of things ranging from bad zip to syntax error....
http://prntscr.com/j4ya45
Are what we have available from stock.... so, yeah, we have io_is_busy
Rommco05 said:
I tryied to flash on L09 and installation failed with error 7. I'm just saying
edit: In your file I found this: 4/interactive/io_is_busy 1 but this value isnt in Interactive governor or Im thinking wrong?
Click to expand...
Click to collapse
got the error too, attached recovery log. but on huawei mate 10 pro @kevp75
DeeZZ_NuuZZ said:
got the error too, attached recovery log. but on huawei mate 10 pro @kevp75
Click to expand...
Click to collapse
Rommco05 said:
I tryied to flash on L09 and installation failed with error 7. I'm just saying
edit: In your file I found this: 4/interactive/io_is_busy 1 but this value isnt in Interactive governor or Im thinking wrong?
Click to expand...
Click to collapse
Thanks mate.
So based on that log...
Code:
I:mount -o bind '/data/media' '/sdcard' process ended with RC=0
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:File Based Encryption is present
...
mount: mounting /dev/block/sdd59 on /system failed: Device or resource busy
run_program: child exited with status 255
about to run program [/sbin/busybox] with 3 args
mount: mounting /dev/block/sdd60 on /data failed: Device or resource busy
run_program: child exited with status 255
about to run program [/sbin/busybox] with 3 args
mount: mounting /dev/block/sdd54 on /vendor failed: Device or resource busy
run_program: child exited with status 255
@ Extracting Some Needed Stuffs ...
@ Extracting Some Needed Stuffs ...
set_perm: chown of /data/data/rib_allowed to 0 0 failed: No such file or directory
set_perm: chmod of /data/data/rib_allowed to 644 failed: No such file or directory
Shows me that your /data partition is encrypted, so this will not flash with that (mentioned in OP)
That mount stuff has be a bit concerned... I'll see what I can do to tweak that... it looks like the partitions are already mounting for you though, and are just not able to unmount... maybe I can force it in the flasher or something....
Thanks
kevp75 said:
Thanks mate.
So based on that log...
Code:
I:mount -o bind '/data/media' '/sdcard' process ended with RC=0
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:File Based Encryption is present
...
mount: mounting /dev/block/sdd59 on /system failed: Device or resource busy
run_program: child exited with status 255
about to run program [/sbin/busybox] with 3 args
mount: mounting /dev/block/sdd60 on /data failed: Device or resource busy
run_program: child exited with status 255
about to run program [/sbin/busybox] with 3 args
mount: mounting /dev/block/sdd54 on /vendor failed: Device or resource busy
run_program: child exited with status 255
@ Extracting Some Needed Stuffs ...
@ Extracting Some Needed Stuffs ...
set_perm: chown of /data/data/rib_allowed to 0 0 failed: No such file or directory
set_perm: chmod of /data/data/rib_allowed to 644 failed: No such file or directory
Shows me that your /data partition is encrypted, so this will not flash with that (mentioned in OP)
That mount stuff has be a bit concerned... I'll see what I can do to tweak that... it looks like the partitions are already mounting for you though, and are just not able to unmount... maybe I can force it in the flasher or something....
Thanks
Click to expand...
Click to collapse
hm yea I can access /data just fine. I gonna test whatever you throw at me
Rommco05 said:
Sorry, here is
In EXKM isnt available io_is_busy, interesting
Click to expand...
Click to collapse
What's EXKM?
Can you do me a favor... drop to either terminal on your device, or drop into adb shell.... and run:
Code:
su
ls -la /sys/devices/system/cpu/cpufreq/policy0/interactive >> /mnt/sdcard/Download/cpu0policy.txt
ls -la /sys/devices/system/cpu/cpufreq/policy4/interactive >> /mnt/sdcard/Download/cpu4policy.txt
And forward it on here...
DeeZZ_NuuZZ said:
hm yea I can access /data just fine. I gonna test whatever you throw at me
Click to expand...
Click to collapse
This you can dump a list of your partitions for me?
In adb shell
Code:
su
mount >> /mnt/sdcard/Download/mounts.txt
blkid >> /mnt/sdcard/Download/blocks.txt
Rommco05 said:
Im using unofficial twrp and Im sure I was dectrypted when I flashing this mod
edit: EX Kernel Manager
Click to expand...
Click to collapse
I'd love to agree with ya mate, but the log doesn't lie
kevp75 said:
This you can dump a list of your partitions for me?
In adb shell
Code:
su
mount >> /mnt/sdcard/Download/mounts.txt
blkid >> /mnt/sdcard/Download/blocks.txt
Click to expand...
Click to collapse
there they are
Rommco05 said:
Here u go
Click to expand...
Click to collapse
awesome.
thanks mate... and this is the HV10 on L09 right?
DeeZZ_NuuZZ said:
there they are
Click to expand...
Click to collapse
thanks mate... Mate 10 Pro?
kevp75 said:
thanks mate... Mate 10 Pro?
Click to expand...
Click to collapse
Yes, BLA-L29
Sent from my HUAWEI BLA-L29 using XDA Labs
kevp75 said:
thanks mate... Mate 10 Pro?
Click to expand...
Click to collapse
Rommco05 said:
Yes mate, BKL-L09C432
Click to expand...
Click to collapse
Cool... yeah, you're /data is encrypted
/dev/block/sdd60 on /data type f2fs (rw,seclabel,nosuid,nodev,noatime,background_gc=on,discard,user_xattr,inline_xattr,acl,inline_data,inline_dentry,extent_cache,mode=adaptive,verify_encrypt,inline_encrypt,active_logs=6)
ugg....
Build Props Tweaks [For both rooting method (System & Systemless)]
Code:
I am NOT responsible for bricked devices, destroyed SD cards or any
damage that may happen to your device.
We need to add this code to the end of file "/system/build.prop"
I will add complete information in the future about these codes!
I try these in Lineage OS 17.1 and give good results!
To begging these tweaks:
1- Enable adb from developer options.
2- In recovery mode and mount System partition and connect your USB to your computer!
3- Open your computer terminal and type this (to pull(download) the file "/system/build.prop" to your Desktop):
adb pull /system/build.prop ~/Desktop/build.prop
4- Now come to your Desktop and first take a backup from this file then open the file "build.prop" with text editor and add all below codes to the end of file "build.prop" then save it! (don't try to edit other lines!)
Code:
#----------------------------------
# Start
#----------------------------------
# Audio enhancer
persist.audio.fluence.mode=endfire
persist.audio.vr.enable=true
persist.audio.handset.mic=digital
af.resampler.quality=255
mpq.audio.decode=true
#----------------------------------
# Call delay
ro.telephony.call_ring.delay=800
#----------------------------------
# Video acceleration enabled
video.accelerate.hw=1
#----------------------------------
# Wifi scaning rate [every 60 --> 1 scan / min]
wifi.supplicant_scan_interval=180
#----------------------------------
# Deeper sleep/better battery life [for extrimmly power save] [kills all background apps]
ro.ril.disable.power.collapse=1
# pm.sleep_mode=1
#----------------------------------
# Improves audio and video recording quality
ro.media.enc.hprof.vid.fps=65
ro.media.enc.hprof.vid.bps=8000000
ro.media.capture.maxres=8m
ro.camcorder.videoModes=true
#----------------------------------
# Picture Quality Enhancer
ro.media.enc.jpeg.quality=100
ro.media.dec.jpeg.memcap=8000000
#----------------------------------
# Disable Boot Animation [for Enable set 0]
debug.sf.nobootanimation=1
#----------------------------------
# Disable Camera Sound
ro.camera.sound.forced=0
#----------------------------------
# Better Scrolling
ro.min_pointer_dur=8
ro.max.fling_velocity=12000
windowsmgr.max_events_per_sec=120
#----------------------------------
# Disable strict mode checking
persist.android.strictmode=0
#----------------------------------
# Remain launcher in memory
ro.HOME_APP_ADJ=1
#----------------------------------
# Disable usb debugging popup in notification
# persist.adb.notify=0
#----------------------------------
# Proximeter delays
ro.lge.proximity.delay=25
mot.proximity.delay=10
#----------------------------------
# media enhancer [codecs]
ro.media.dec.aud.flac.enabled=1
ro.media.dec.aud.wma.enabled=1
ro.media.dec.vid.avi.enabled=1
ro.media.dec.vid.wmv.enabled=1
ro.media.dec.aud.wma.enabled=1
ro.media.dec.aud.mp3.enabled=1
ro.media.dec.vid.mp4.enabled=1
ro.media.dec.aud.flac.enabled=1
ro.media.dec.vid.H.264.enabled=1
ro.media.enc.aud.flac.enabled=1
ro.media.enc.vid.H.264.enabled=1
ro.media.enc.aud.wma.enabled=1
ro.media.enc.vid.wmv.enabled=1
ro.media.enc.aud.mp3.enabled=1
ro.media.enc.vid.mp4.enabled=1
#----------------------------------
# Improved performance
debug.performance.tuning=1
#----------------------------------
# DNS Servers [Quad9 & Cloudflare]
net.dns1=9.9.9.9
net.dns2=149.112.112.112
net.dns3=1.1.1.1
net.dns4=1.0.0.1
net.wlan0.dns1=9.9.9.9
net.wlan0.dns2=149.112.112.112
net.wlan0.dns3=1.1.1.1
net.wlan0.dns4=1.0.0.1
net.eth0.dns1=9.9.9.9
net.eth0.dns2=149.112.112.112
net.eth0.dns3=1.1.1.1
net.eth0.dns4=1.0.0.1
net.wcdma.dns1=9.9.9.9
net.wcdma.dns2=149.112.112.112
net.wcdma.dns3=1.1.1.1
net.wcdma.dns4=1.0.0.1
net.hspa.dns1=9.9.9.9
net.hspa.dns2=149.112.112.112
net.hspa.dns3=1.1.1.1
net.hspa.dns4=1.0.0.1
net.lte.dns1=9.9.9.9
net.lte.dns2=149.112.112.112
net.lte.dns3=1.1.1.1
net.lte.dns4=1.0.0.1
net.ltea.dns1=9.9.9.9
net.ltea.dns2=149.112.112.112
net.ltea.dns3=1.1.1.1
net.ltea.dns4=1.0.0.1
#----------------------------------
# Better Network Signals
persist.cust.tel.eons=1
ro.config.hw_fast_dormancy=1
#----------------------------------
# Better call voice quality
ro.ril.enable.amr.wideband=1
#----------------------------------
# Faster streaming videos
media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-rtsp=true
media.stagefright.enable-record=false
#----------------------------------
# Disables built in error reporting
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
#----------------------------------
# Disables kernel error checking
ro.kernel.android.checkjni=0
ro.kernel.checkjni=0
#----------------------------------
# Disable Logcat
logcat.live=disable
#----------------------------------
# Disables sending of usage data
ro.config.nocheckin=1
#----------------------------------
# Boost Booting Speed & hibernate mode
ro.config.hw_quickpoweron=true
persist.sys.shutdown.mode=hibernate
#----------------------------------
# Very fast reboot
persist.sys.purgeable_assets=1
#----------------------------------
# Disables locating
ro.com.google.locationfeatures=0
ro.com.google.networklocation=0
#----------------------------------
# Net speed enhancer[tcp buffersize]
net.tcp.buffersize.default=6144,87380,110208,6144,16384,110208
net.tcp.buffersize.edge=6144,26280,35040,6144,16384,35040
net.tcp.buffersize.evdo_b=6144,262144,1048576,6144,262144,1048576
net.tcp.buffersize.gprs=6144,8760,11680,6144,8760,11680
net.tcp.buffersize.hsdpa=6144,262144,1048576,6144,262144,1048576
net.tcp.buffersize.hspa=6144,87380,262144,6144,16384,262144
net.tcp.buffersize.lte=262144,524288,3145728,262144,524288,3145728
net.tcp.buffersize.umts=6144,87380,110208,6144,16384,110208
net.tcp.buffersize.wifi=262144,524288,1048576,262144,524288,1048576
#----------------------------------
# For Sensor Sleep Control
ro.ril.sensor.sleep.control=1
#----------------------------------
# DHA tunning
ro.config.dha_tunnable=1
#----------------------------------
# Faster Boot-Animation FPS
# boot.fps=20
#----------------------------------
# END
#----------------------------------
5- Now we must push(upload) new file "build.prop" by typing this command in your terminal:
adb push ~/Desktop/build.prop /system/build.prop
If you have a problem with these tweaks use backup file to restore your first file "/system/build.prop"
If you have any suggestion to improve this thread please tell me!
Last update 2021/4/4
You know several of these properties are long deprecated and can be removed outright. No point in keeping them circulating as they do on every build.prop tweaks thread.
There is also the possibility, though maybe not the case with Samsung devices since I've never owned one to know first hand, that some of these properties are read from separate build.prop files. You'll have the usual prop under /system but you may also have one under /vendor, where some props like audio/gfx related, build device or patch dates, among others won't have an effect unless it is also present in the /vendor prop file. Otherwise you'll see the props "loaded" when you run 'getprop' in terminal, but whether the system actually read and set them in time in the appropriate boot stage is another issue.
Again, not certain how Samsung has these setup, there may be additional prop files that are pulled during boot like /odm. At any case, usually your best bet is not to edit the one build.prop file itself but rather add the configured properties you want to edit as a boot script using 'setprop', like under init.d or in an existing init file, if allowed, because as I understand depending on your device's init sequence those are loaded before it pulls the props from their respective mounts which would not guarantee them not being overwritten soon after, and you could remove conflicting props if it's really an issue, but it would at least allow an easy recovery without touching the prop files themselves.
Can you make these into a magisk module?
Today I don't know how to do this!
But in near future I will try to learn it!
Thanks for this suggestions!
matkali said:
Today I don't know how to do this!
But in near future I will try to learn it!
Thanks for this suggestions!
Click to expand...
Click to collapse
Good luck my friend
Dear Sir @matkali, I just want to know the proper permissions for this build.prop file before and after the editing. And - Why there are differences permissions according to differences roms and android versions ?
ant24 said:
Dear Sir @matkali, I just want to know the proper permissions for this build.prop file before and after the editing. And - Why there are differences permissions according to differences roms and android versions ?
Click to expand...
Click to collapse
You can check this file permissions by this command:
Code:
ls -l /system/build.prop
This permissions applied from rom's builder security policy!
matkali said:
You can check this file permissions by this command:
Code:
ls -l /system/build.prop
This permissions applied from rom's builder security policy!
Click to expand...
Click to collapse
Thanks Sir.
I thought the latest build was just copying articles