Traditional Culture Encyclopedia - Weather forecast - How to modify the memory threshold under android source code
How to modify the memory threshold under android source code
The method to modify the memory threshold in the android source code is:
Step 1: First create a XXX.txt file and enter the following code:
#! /system/bin/sh
echo "1536,2048,4096,6144,8192,12288" > /sys/module/lowmemorykiller/parameters/minfree ;
This code is based on The value corresponding to MFM configuration 3. I have used this value for a few days and no problem has been found, so I will take this value as an example for the time being.
Then save and modify the saved XXX.txt file to 67-Jasonfix
Put this 67-Jasonfix file under system/etc/init.d using RE manager (This folder contains the startup script settings.
Then change the permissions to: check all.
Step 2: Modify install-recovery.sh (in system/etc directory)
(1). Find the lines where these scripts are located
sh /system/etc/init.d/XXXXX
Add them accordingly
sh /system/etc/init.d/67-Jason
(2). Then find
echo A,B,C,D,E,F /sys /module/lowmemorykiller/parameters/minfree
Just delete this line and save it.
- Previous article:Jiangsu satellite TV advertising price
- Next article:Information on Chinese New Year customs all over the country
- Related articles
- Summer in France is very hot. Why is France in Europe so hot?
- What if the weather is hot in summer? What soup should I drink?
- How to make potatoes delicious in hot weather
- Who invented basketball?
- Aauto is faster 199 days is Qi Dan water emulsion true?
- Jingmen weather forecast 15
- The weather in the morning is 200 1
- Heavy snow weather service
- What is the cause of cough and asthma?
- Where is a good parent-child tour around Tianjin?