Skip to content

Commit

Permalink
Increase threshold to 50M
Browse files Browse the repository at this point in the history
  • Loading branch information
linusyang committed Dec 21, 2018
1 parent 640053a commit ac94147
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cleaner-fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ key="$1"
case $key in
--trafficfix)
EXTRA_PRIV="framework/services.jar $EXTRA_PRIV"
echo "--> Increase threshold (10M) to prevent high cpu of traffic monitoring"
echo "--> Increase threshold (50M) to prevent high cpu of traffic monitoring"
shift
;;
--nofbe)
Expand Down Expand Up @@ -176,8 +176,9 @@ deodex() {

if [[ "$app" == "services.jar" ]]; then
i="$apkdir/smali/com/android/server/net/NetworkStatsService.smali"
$sed -i 's|, 0x200000$|, 0x1000000|g' "$i" || return 1
if grep -q -F ', 0x200000' $i; then
$sed -i 's|, 0x200000$|, 0x5000000|g' "$i" || return 1
$sed -i 's|, 0x20000$|, 0x1000000|g' "$i" || return 1
if grep -q -F ', 0x20000' $i; then
echo "----> ! failed to patch: $(basename $i)"
else
echo "----> patched smali: $(basename $i)"
Expand Down

0 comments on commit ac94147

Please sign in to comment.