android_device_xiaomi_sdm66.../sepolicy/private
Chenyang Zhong 851d88070e
sdm660-common: create and symlink a dummy /metadata/apex
Google moved apex sessions directory from /data/apex/sessions to
/metadata/apex/sessions after commit:

"Move apex sessions directory to /metadata"
36cf4bbac6

Devices with a mounted metadata partition will have the needed
directories set up by system/core/rootdir/init.rc. Xiaomi devices
on sm6125 do not have a metadata partition out of the box, so things
like "Google Play system update" will fail to install the update.

Therefore, create a dummy directory under /data/vendor/metadata_apex
and symlink it to /metadata/apex.

The reason why the old /data/apex/sessions directory is not used
for the symlink is that apexd will call migrateSessionsDirIfNeeded()
to recursively copy things from the old directory to the new one.
Creating the symlink from /data/apex/sessions may result in
unintended behaviors.

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-02-09 20:53:35 +06:00
..
app.te sdm660-common: Clean up sepolicy for Android 11 2020-12-13 18:38:07 +06:00
dnsmasq.te sdm660-common: Allow dnsmasq to getattr netd unix_stream_socket 2019-08-15 15:31:32 +02:00
dpmd.te sdm660-common: Clean up sepolicy for Android 11 2020-12-13 18:38:07 +06:00
file_contexts sdm660-common: create and symlink a dummy /metadata/apex 2021-02-09 20:53:35 +06:00
property_contexts sdm660-common: sepolicy: Update sepolicy and cleanup 2020-12-21 09:16:25 +06:00
system_app.te sdm660: sepolicy: Address denials 2019-08-14 10:04:13 +02:00
system_server.te sdm660-common: DeviceSettings: Drop userspace hall switcher 2021-02-03 23:05:50 +06:00
vendor_init.te sdm660-common: Clean up sepolicy for Android 11 2020-12-13 18:38:07 +06:00