blob: 609531d3f9601dcf1dbe0133688d4ee9d6c99104 [file] [log] [blame]
Lorenzo Colitti92928722021-01-18 17:40:34 +09001# Certain vendors disable 464xlat by setting a vendor property.
2# The connectivity code in the Tethering APEX needs to disable
3# 464xlat when the property is set, but it is only allowed to
4# access non-vendor system properties. So copy the property to
5# a property available to system APIs in android.sysprop.
6#
7# Arguably this script should live close to the code that uses
8# it, but scrips in APEXes are not allowed to use "on property".
9# So put it here close to clatd, which is at least related to
10# 464xlat.
11on property:persist.vendor.net.doxlat=true
12 setprop net.464xlat.cellular.enabled true
13
14on property:persist.vendor.net.doxlat=false
15 setprop net.464xlat.cellular.enabled false