Patched APK (com.sec.android.app.camera, S24 Ultra feature set) and apktool smali workspace ported to run reliably on non-Samsung Camera2 HALs, tested end-to-end on a Vivo X90 Pro (MediaTek Dimensity 9200 / MT6985, Android 16) and optimized for universal multi-device deployment.
Important
Universal Compatibility Overhaul in v1.22! This release directly fixes crash loops, cold-boot timeouts, and camera switching bugs reported by the community across Xiaomi (HyperOS 1 & 2 / MIUI), Google Pixel, Nubia / ZTE (MyOS), Realme (Unisoc / MediaTek), OnePlus, Oppo, and Huawei / Honor devices.
- Release Page: GitHub Latest Release (v1.22)
- Direct APK Download: Samsung_Camera_OneUI_8.5_Universal_Beta_v1.22.apk
- APK Size: ~67.9 MB (71,253,911 bytes)
- Signature Schemes: Tri-scheme signed (v1 JAR, v2, and v3) with 4-byte zipalign.
-
Ultra Wide (
0.6x) & Telephoto Lens Switching (Xiaomi 13, 14, 15, HyperOS):- Fixed
CONFIG_CAMID_BACK_WIDEreturning0, which caused switching to.6xto default back to the primary sensor. - Added focal-length-based dynamic camera ID mapping (
< 3.0ffor Ultra Wide,> 6.0ffor Telephoto,0for Front) inSemFrameworkBridge.getSafeCameraId. - Patched
SemFloatingFeature.getIntto correctly map wide and telephoto camera IDs on third-party ROMs.
- Fixed
-
Cold-Boot Timeout Prevention (Realme C53, Unisoc, Budget/Midrange Devices):
- Patched
LO1/h.smali(CountDownLatchfeature loader) to preventRuntimeException("Loading for feature is timed out")on slower chipsets. - Raised timeout safely to 2000ms and wrapped in non-blocking error handling.
- Removed strict tag-size aborts in
LO1/f.smalithat previously terminated the app during cold start.
- Patched
-
Multi-Vendor Camera Access Guard (Pixel 8, Nubia Neo3 GT, Android 16/17):
- Replaced re-thrown
CamAccessExceptioninCamDeviceManager.smaliandCameraDeviceManagerImpl.smaliwith safe fallback and warning logging. - Guarded
CamCapability$1.smaliagainstInvalidOperationExceptionwhen querying vendor-specific hardware capabilities. - Suppressed fatal
FINISH_ON_ERRORexit dialogs inCameraErrorEventHandler.smalito avoid forced app closure.
- Replaced re-thrown
-
Null Safety in Feature Key-Value Accessors (
LC/e.smali):- Replaced
Objects.requireNonNullcalls with safe default primitives (0.0f,0,"",false,null), eliminatingNullPointerExceptioncrashes on non-Samsung firmware.
- Replaced
-
Application Initialization Protection (
CameraApplication.smali):- Guarded
MakerFactory.create(),ShortcutUtil,SaLogUtil, andBixbyExecutorinitializers with global try-catch blocks to prevent startup crashes.
- Guarded
If you are installing this on a genuine Samsung Galaxy phone:
- Stock Samsung Camera is signed with Samsung's official private platform key.
- Custom modded APKs are signed with a standard key, which triggers
INSTALL_FAILED_UPDATE_INCOMPATIBLEif installed directly over the system camera app. - Non-Samsung devices (Xiaomi, Vivo, Oppo, Realme, Pixel, etc.) do NOT have Samsung's stock camera pre-installed, so the package installs cleanly without signature conflict.
If you encounter any issues on your device, please report via 🧪 New Beta Test Issue mentioning your phone model, SoC, and Android version.
- Samsung S24 Ultra Platform & Feature Flags:
- SemFloatingFeature.smali: Rewrote
getBoolean/getInt(fixing 1-arggetIntdefault0to preventMemoryUtilslevel crash) and mapped logical/rear/front camera IDs safely (0/1). - SemFrameworkBridge.smali: Populated full S24 Ultra floating/camera feature maps (
0.6x–100xPhoto zoom,0.6x–30xVideo zoom,12M/24M/50M/200MRear &12M/50MFront picture configs, sequential unique"order"values"1"–"14"for allMOREmodes, and full720p/1080p/QHD/4K/8K@24/30/60/120/240/480/960fpscamcorder feature maps). - CamCapability$1.smali & CameraId.smali: Routed restricted system-only Samsung physical camera IDs (
20..24) safely throughSemFrameworkBridge.getSafeCameraCharacteristicsto primary Rear ("0") / Front ("1") and mappedsamsung.android.scaler.zoomRatio->CaptureRequest.CONTROL_ZOOM_RATIO.
- SemFloatingFeature.smali: Rewrote
- Universal Device Compatibility & Camera ID Safety:
- Dynamic Hardware ID Mapping: Implemented
SemFrameworkBridge.getSafeCameraIdto queryCameraManager.getCameraIdList(). Prevents fatal crashes on devices without physical Camera ID"2"(e.g. Xiaomi Pad 7 Pro, single/dual rear camera phones). - Runtime Permission Guard: Added guards in
Camera.onCreateandCamDeviceManager.b()to prevent the first-launch race condition whereopenCamera()was invoked before permissions were granted. - Universal Signing: Full APK alignment and signature verification across v1 (JAR), v2, and v3 schemes for seamless installation on all Android OEMs (HyperOS, OxygenOS, Pixel, ColorOS, One UI).
- Dynamic Hardware ID Mapping: Implemented
- High-Resolution (
24M/50M/200M) & Fast Capture:- PhotoQuickSettingController.smali, MakerBuilder.smali, & ResultImageSizeUtils.smali: Enabled Rear
24M/50M/200Mand Front50Mselector pills; routed high-res & Portrait makers via single-streamMAKER_AUTO_BEAUTY_PHOTOwith HAL-safe picture size clamping (4032x3024Rear /3264x2448Front) so captures complete rapidly without HAL stream timeouts.
- PhotoQuickSettingController.smali, MakerBuilder.smali, & ResultImageSizeUtils.smali: Enabled Rear
- Real
10x–100xZoom & Aspect Ratios (1:1,4:3,16:9,Full):- SemFrameworkBridge.smali, PreviewManagerImpl.smali, & PictureProcessor.smali: Uses Camera2
CONTROL_ZOOM_RATIOfor1x–10x, and scales live preview + center-crops saved JPEGs for10x–100x. Added allFULL_RATIOandMEDIUM/HIGH/ULTRA_HIGHratio keys for Rear & Front.
- SemFrameworkBridge.smali, PreviewManagerImpl.smali, & PictureProcessor.smali: Uses Camera2
- Portrait UI Layout & Multi-Focal Length:
- PortraitVideoZoomController.smali, SecDualBokehNode.smali, & ShootingModeMap.smali: Enabled
1x/2x/3x/5xin Portrait and Portrait Video, enabledSUPPORT_DUAL_BOKEH_EFFECTso the blur strength slider stays hidden until tapped (hiding the zoom bar like S24 Ultra), addedFrontCameraIdListfallback for Front Portrait, and added null guard inSecDualBokehNode.setEntryMode.
- PortraitVideoZoomController.smali, SecDualBokehNode.smali, & ShootingModeMap.smali: Enabled
- Pro & Pro Video Lens / Resolution Menus:
- ProZoomController.smali, ProVideoZoomController.smali, & ZoomLensListView.smali: Assigned distinct Pro lens zoom levels (
UW=0.6x,W=1x,T=3x,ST=5x) and hardenedvalidateZoomLensDataListsoPROandPRO VIDEOopen with full lens & resolution/FPS menus (8K/UHD/QHD/FHD+Auto/24–240fps).
- ProZoomController.smali, ProVideoZoomController.smali, & ZoomLensListView.smali: Assigned distinct Pro lens zoom levels (
MOREModes & Safe Fallbacks:- CameraShootingMode.smali, MoreGridListPresenter.smali, & ShootingModeProviderImpl.smali: All 13 S24 Ultra
MOREmodes displayed (EXPERT RAW,PRO,PRO VIDEO,NIGHT,FOOD,PANORAMA,SINGLE TAKE,SLOW MOTION,SUPER SLOW-MO,HYPERLAPSE,PORTRAIT VIDEO,DUAL REC,BIXBY VISION), with crash-safe toast fallbacks where Vivo HAL/external Samsung packages are unavailable (DUAL REC,BIXBY VISION).
- CameraShootingMode.smali, MoreGridListPresenter.smali, & ShootingModeProviderImpl.smali: All 13 S24 Ultra
- Panorama, Food & Slow Motion:
- NativeNode.smali, ExifManageNode.smali, MakerConnectionInfo.smali, FeatureCapability.smali, & SlowMotionVideoMakerBase.smali: Non-Samsung HAL compatibility and MTK
SMVRBatchhigh-speed fixes.
- NativeNode.smali, ExifManageNode.smali, MakerConnectionInfo.smali, FeatureCapability.smali, & SlowMotionVideoMakerBase.smali: Non-Samsung HAL compatibility and MTK
PHOTO:.6x–100xzoom (live + cropped JPEG beyond10x),1:1/4:3/16:9/Fullratios,12M/24M/50M/200Mrear &50Mfront captures verified.PORTRAIT&PORTRAIT VIDEO:1x/2x/3x/5xfocal lengths, clean S24 Ultra effect toggle UI, photo &.mp4captures verified.VIDEO: RearUHD(3840×21604K.mp4verified) /FHD/HD, FrontFHD/HD(24/30/60/120menu,.mp4verified).PRO&PRO VIDEO:UW/W/T/STlenses, photo &.mp4captures verified,8K/UHD/QHD/FHD24–240fpsmenu verified.NIGHT,FOOD,SLOW MOTION,HYPERLAPSE: Photo/video captures saved & verified with zero crashes.PANORAMA,SINGLE TAKE,SUPER SLOW-MO,EXPERT RAW: Launch & preview with zero runtime crashes.DUAL REC&BIXBY VISION: Present inMORE, handled with safe toast fallback on non-Samsung HAL.
python scripts/build_and_install.py --installRequires apktool, Android SDK build-tools (zipalign, apksigner), and adb (ANDROID_HOME or on PATH). Do not commit custom keystores or .env files (excluded in .gitignore).