- Disable software EIS on Dipper to avoid Vidhance EIS node timeout and camera HAL crash during video recording. Dipper uses hardware OIS.
- Add relative_path ('DCIM/Camera/') to ContentValues for MediaStore inserts across all photo and video capture modules to comply with modern Scoped Storage / MediaProvider requirements.
- Add MANAGE_EXTERNAL_STORAGE, ACCESS_MEDIA_LOCATION, and media permissions to AndroidManifest.xml, privapp permissions, and default permissions.
- Add android:requestLegacyExternalStorage='true' to AndroidManifest.xml.
Change-Id: If96da699d85ccf6d61db1a97b7baf07332d46214
- Replaced missing MIUI framework-res resource lookups (0x11...) in android.provider.MiuiSettings$System (<clinit>, getShowCustomCarrierDefault, getDisplayWindowSizeInSmartCover, and getScreenKeyLongPressAction) with safe defaults.
- Fixed ReflectionUtils.smali typo and hareware package reference.
- Cleanly re-exported 0004-Add-missing-miui-framework-classes.patch and rebuilt MiuiCamera.apk with all 11 DEX containers.
Change-Id: I3752137914903cd9c41f229014eb9fd6aa2c8201
- Changed superclass of android.provider.MiuiSettings$System and
MiuiSettings$Secure from non-existent android.provider.SystemSettings
to java.lang.Object.
- Resolves NoClassDefFoundError / ClassNotFoundException when ScenarioTrackUtil
calls MiuiSettings$System on first frame available.
- Rebuilt MiuiCamera.apk via extract-files.py.
Change-Id: I4b49b49a723854503585530e59965e6a89b8e6ca
- Restored all missing framework classes (miui.os.Build, android.os.statistics.*,
PerfShielder, com.google.gson, etc.) that were omitted during previous patch regeneration.
- Replaced miui.app.AlertDialog and miui.app.AlertDialog$Builder with native
android.app.AlertDialog wrapper to fix Resources$NotFoundException on AOSP.
- Rebuilt MiuiCamera.apk via extract-files.py.
Change-Id: Ia133e7049a068baf15d7f68bfbe10a9778632d13
- Replace miui.app.AlertDialog and miui.app.AlertDialog$Builder with a pure Java
wrapper extending android.app.AlertDialog.
- Guard AlertControllerImpl against Resources$NotFoundException for
missing MIUI framework-res resources (such as fake_landscape_screen_minor_size
and treat_as_land) on AOSP.
- Fixes Resources$NotFoundException (Resource ID #0x100a015a) when ScreenHint
shows first use hint dialog during camera startup.
- Rebuilt MiuiCamera.apk via extract-files.py.
Change-Id: Ie69ca4f03ae934a76741092ec95a57dd2f8941d0
- Replaced native methods in miui.reflect.{Method, Field, Constructor} and
com.miui.internal.os.Native with pure Java reflection implementations.
- Fixes UnsatisfiedLinkError for Native.getMethod / miui.reflect.Method.of()
during Storage.initQuota() and startup reflection on AOSP Android 16.
- Rebuilt MiuiCamera.apk via extract-files.py.
Change-Id: I7e8e0f733e48767e707b22b47c113e65871d17ef
- Bundle com.google.gson, com.google.protobuf, and com.google.zxing classes
directly into MiuiCamera.apk (smali_classes11) to resolve ClassNotFoundException
for Gson in VoiceOnlineRecog and other features on AOSP.
- Rebuilt MiuiCamera.apk via extract-files.py.
Change-Id: I4db9b4fbd1f72b135b045aa86d6daaafcc83a6c6
- Inject android.os.statistics.E2EScenario, E2EScenarioSettings,
E2EScenarioPayload, and E2EScenarioPerfTracer to fix ClassNotFoundException
in ScenarioTrackUtil during Camera.onCreate() startup.
- Rebuilt MiuiCamera.apk via extract-files.py.
Change-Id: I7cab476cee212d58ab024155c7aba251d6166b38
- Completely removed uses-library tags for cloud-common.jar, volley.jar,
and zxing.jar to eliminate all shared library reconciliation failures on AOSP.
Change-Id: I23cfe2286cebcadb89517e29c6c6e0de59f082b9
- Set android:required="false" on cloud-common.jar, volley.jar, and
org.apache.http.legacy to fix INSTALL_FAILED_MISSING_SHARED_LIBRARY
reconciliation error on AOSP.
Change-Id: I7f6e65daa93ac2a184f2eddae614ec0149457928
- 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