Changes between Version 13 and Version 14 of notes/android


Ignore:
Timestamp:
2017-11-26T04:28:20Z (7 years ago)
Author:
root
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • notes/android

    v13 v14  
    19197 8 9
    2020}}}
     21
     22[[br]]
     23== отключение `ipv6` для экономии батареи
     24`/system/etc/init.d/02net`:
     25{{{#!bash
     26#!/system/bin/sh
     27chmod 666 /proc/sys/net/ipv6/conf/all/disable_ipv6;
     28chmod 666 /proc/sys/net/ipv6/conf/default/disable_ipv6;
     29echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6;
     30echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6;
     31/system/bin/ip6tables -P INPUT DROP;
     32/system/bin/ip6tables -P OUTPUT DROP;
     33/system/bin/ip6tables -P FORWARD DROP;
     34}}}