mount bind /system/bin/adbd /sbin/adbd before adbd starts

This is needed for master on A-only devices
This commit is contained in:
Pierre-Hugues Husson 2018-02-19 00:06:31 +01:00
parent f6ccfe0865
commit 2886155138
2 changed files with 7 additions and 0 deletions

View File

@ -9,3 +9,8 @@ allow vndk_detect shell_exec:file rx_file_perms;
allow vndk_detect toolbox_exec:file rx_file_perms;
#/system/bin/grep
allow vndk_detect system_file:file rx_file_perms;
#mount -o bind /system/bin/adbd /sbin/adbd
allow vndk_detect adbd_exec:file { getattr };
allow vndk_detect rootfs:file { mounton getattr };
allow vndk_detect self:capability { sys_admin };

View File

@ -8,3 +8,5 @@ grep -oE 'init_[0-9_]+' /vendor/etc/selinux/nonplat_sepolicy.cil | \
while read version;do
setprop persist.sys.vndk $version
done
mount -o bind /system/bin/adbd /sbin/adbd