Compare commits

...

2 commits

Author SHA1 Message Date
Peter Cai 31bd18b738 init_gsi: save original SPL for display in settings
* corresponding to the patch in fwb
2021-11-05 20:42:02 -04:00
Pierre-Hugues Husson 6ccf81104b Fix video crashing on apps targetting Android 11, on some Mediatek devices (like Redmi 9)
Address SELinux denials for MTK's IMms, which is needed by its GL impl.
2021-11-05 20:40:54 -04:00
2 changed files with 8 additions and 0 deletions

View file

@ -41,6 +41,7 @@ void handle_device_model_props() {
string manufacturer = base::GetProperty("ro.product.vendor.manufacturer", "");
string fingerprint = base::GetProperty("ro.vendor.build.fingerprint", "");
string spl = base::GetProperty("ro.vendor.build.security_patch", "");
string spl_orig = base::GetProperty("ro.build.version.security_patch", "");
for (const auto& source : RO_PROP_SOURCES) {
override_ro_prop("ro.product", source, "device", device);
@ -54,6 +55,7 @@ void handle_device_model_props() {
override_ro_prop("ro", "", "build.flavor", name + "-user");
override_ro_prop("ro", "", "build.tags", "release-keys");
override_ro_prop("ro", "", "build.version.security_patch", spl);
override_ro_prop("ro", "", "build.version.real_security_patch", spl_orig);
}
int main() {

View file

@ -0,0 +1,6 @@
attribute hal_mms_server;
binder_call({appdomain -isolated_app}, hal_mms_server)
binder_call(hal_mms_server, {appdomain -isolated_app})
type mtk_hal_mms_hwservice, hwservice_manager_type;
allow { appdomain -isolated_app } mtk_hal_mms_hwservice:hwservice_manager find;