miuicamera-surya: Assume that mod_device is global and drop CTA props
By patching MiuiCamera's Device.isGlobal() and Build.IS_INTERNATIONAL_BUILD to unconditionally return true, the app always assumes it is running on a global device. This prevents attempts to launch the custom permission dialog from HyperOS Security Center, allowing the app to run seamlessly on AOSP ROMs without requiring ro.product.mod_device=surya_global or CTA spoofing properties. Reference: https://github.com/kardebayan/Leica_Universal_5.0_Beta_8.3/commit/a36c2a77fb6753a119d77be0aee186031318556c Change-Id: I3ffce0136d6777dc72c4ea01bb5b7c41d89af73f
This commit is contained in:
1 parent
0c6761ce9a
commit
4504ed5b75
4 files changed
+61
-19
No files matched your search
@@ -6,9 +6,3 @@ persist.vendor.camera.privapp.list=com.android.camera
|
||||
|
||||
# MiuiCamera
|
||||
ro.miui.notch=1
|
||||
ro.miui.support.cta=0
|
||||
ro.miui.customized.region=
|
||||
ro.miui.region=Global
|
||||
ro.miui.build.region=global
|
||||
ro.miui.cust_variant=en
|
||||
ro.product.mod_device=surya_global
|
||||
Reference in new issue
Block a user