Lorenzo Colitti | 9292872 | 2021-01-18 17:40:34 +0900 | [diff] [blame] | 1 | # 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. |
| 11 | on property:persist.vendor.net.doxlat=true |
| 12 | setprop net.464xlat.cellular.enabled true |
| 13 | |
| 14 | on property:persist.vendor.net.doxlat=false |
| 15 | setprop net.464xlat.cellular.enabled false |