msm8953-common: Fix portrait mode on moto cam
* Moto cam checks for hwrev prop to allow portrait mode
This commit is contained in:
2
sepolicy/vendor/platform_app.te
vendored
2
sepolicy/vendor/platform_app.te
vendored
@@ -6,3 +6,5 @@ allow platform_app hal_dms_hwservice:hwservice_manager find;
|
||||
allow platform_app hal_dms_default:binder { call transfer };
|
||||
allow platform_app sysfs_kgsl:lnk_file read;
|
||||
get_prop(platform_app, moto_boot_prop)
|
||||
get_prop(platform_app, hwrev_prop)
|
||||
|
||||
|
||||
1
sepolicy/vendor/priv_app.te
vendored
Normal file
1
sepolicy/vendor/priv_app.te
vendored
Normal file
@@ -0,0 +1 @@
|
||||
get_prop(priv_app, hwrev_prop)
|
||||
1
sepolicy/vendor/property.te
vendored
1
sepolicy/vendor/property.te
vendored
@@ -2,3 +2,4 @@ type power_prop, property_type;
|
||||
type moto_boot_prop, property_type;
|
||||
type vendor_fm_prop, property_type;
|
||||
type vendor_dolby_loglevel_prop, property_type;
|
||||
type hwrev_prop, property_type;
|
||||
|
||||
5
sepolicy/vendor/property_contexts
vendored
5
sepolicy/vendor/property_contexts
vendored
@@ -17,11 +17,9 @@ ro.boot.revision u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.hw.dualsim u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.hw.device u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.hw.radio u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.hw.hwrev u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.hw.revision u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.boot.radio u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.bootreason u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.boot.hwrev u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.boot.powerup_reason u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.boot.bl_state u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.boot.serialno u:object_r:moto_boot_prop:s0
|
||||
@@ -31,6 +29,9 @@ ro.vendor.fsg-id u:object_r:moto_boot_prop:s0
|
||||
ro.vendor.zygote u:object_r:moto_boot_prop:s0
|
||||
vendor.boot_completed u:object_r:moto_boot_prop:s0
|
||||
|
||||
ro.vendor.hw.hwrev u:object_r:hwrev_prop:s0
|
||||
ro.vendor.boot.hwrev u:object_r:hwrev_prop:s0
|
||||
|
||||
ro.vendor.fm. u:object_r:vendor_fm_prop:s0
|
||||
|
||||
persist.vendor.camera. u:object_r:camera_prop:s0
|
||||
|
||||
1
sepolicy/vendor/system_app.te
vendored
1
sepolicy/vendor/system_app.te
vendored
@@ -1 +1,2 @@
|
||||
get_prop(system_app, vendor_fm_prop)
|
||||
get_prop(system_app, hwrev_prop)
|
||||
|
||||
Reference in New Issue
Block a user