- Patch miui.external.Application to unconditionally create and attach
CameraApplicationDelegate on AOSP, fixing null sContext and getAndroidContext().
- Add null-check safety to Util.isUserUnlocked().
Change-Id: I5d54aa0ad1e5726b837648518fddd20726efdb1d
- Implement pure-Java miui.os.SystemProperties delegating directly to
android.os.SystemProperties to avoid loading libmiuinative.so.
- Wrap System.loadLibrary in com.miui.internal.os.Native.<clinit>
in try/catch block to prevent crash if library cannot be loaded.
- Include libmiuinative.so in proprietary blobs list.
Change-Id: I71e65ab584cb84b36a52afb9eab815cea565292b
- Inject miui.os.Build, miui.util.FeatureParser, miui.util.ReflectionUtils,
miui.hardware.display.DisplayFeatureManager, and related classes directly
into MiuiCamera.apk to fix ClassNotFoundException on AOSP startup.
- Stub SecurityManager app lock check in GeneralUtils to eliminate
MIUI security service dependency.
- Guard Notification.extraNotification access in GeneralUtils.
Change-Id: I46b2d910ac9fcad3a1a0966fc26f2d217325f6a1