set_prop(shell, bionic_linker_16kb_app_compat_prop)
We need to be able to test this at scale on user devices.
Bug: 339709616
Test: 'setprop bionic.linker.16kb.app_compat.enabled true'
Change-Id: I52d3e16e17a485fd9ef8decf0766d082452bee8f
diff --git a/private/property.te b/private/property.te
index c746cb3..b8bfd61 100644
--- a/private/property.te
+++ b/private/property.te
@@ -862,5 +862,6 @@
neverallow {
domain
-init
+ -shell
userdebug_or_eng(`-su')
} bionic_linker_16kb_app_compat_prop:property_service set;
diff --git a/private/shell.te b/private/shell.te
index 839178c..69709a3 100644
--- a/private/shell.te
+++ b/private/shell.te
@@ -108,6 +108,9 @@
# Allow shell to set RKP properties for testing purposes
set_prop(shell, remote_prov_prop)
+# Allow shell to enable 16 KB backcompat globally.
+set_prop(shell, bionic_linker_16kb_app_compat_prop)
+
# Allow shell to get encryption policy of /data/local/tmp/, for CTS
allowxperm shell shell_data_file:dir ioctl {
FS_IOC_GET_ENCRYPTION_POLICY