14 Commits

Author SHA1 Message Date
johnmart19
f5e8a2fbb9 MiuiCamera: Update system prebuilts from 1.0.10.0 TKHCNXM 2025-11-09 15:05:03 +02:00
johnmart19
a8f6283fa6 [A16] MiuiCamera: Import camera shim for libgui
- Rom-side changes are complex and are not always work the best, in this specific case, let's just shim it out

Based on previous changes from the following authors:
Co-authored-by: Arian <arian.kulmer@web.de>
Co-authored-by: Alexander Winkowski <dereference23@outlook.com>
2025-06-26 14:31:12 +03:00
johnmart19
1825648867 MiuiCamera: Move Camera Extensions to system framework & add bootjar 2025-06-07 02:44:37 +03:00
johnmart19
1d90c3ea78 MiuiCamera: Import additional prebuilts & move to system 2025-05-28 23:36:04 +03:00
johnmart19
ab1260dbae MiuiCamera: Remove 32bit prebuilts 2025-05-28 17:18:59 +03:00
johnmart19
b6e851d4b1 MiuiCamera: Import additional lib prebuilts into APK
- Imported missing libs from Alioth Stock HyperOS camera
- Added new libs to AndroidManifest.xml
- Converted fail to find / load libcamera_jpegutil_jni.xiaomi.so into Warning instead of error
2025-05-26 10:01:31 +03:00
johnmart19
b21db8d985 MiuiCamera: Patch algo jni lib to use correct Surface::connect method
In android 15 QPR1, google has removed a public method of the Surface class.
Our jni lib used that method and relies on the offset remaining the same, so
patch the lib to load it with the smaller offset.
LineageOS/android_frameworks_native@6a5fdc1

Co-authored-by: Arian <arian.kulmer@web.de>
2025-01-18 00:42:28 +02:00
johnmart19
d707552bec MiuiCamera: Update to Version 8.3 & Update Alioth Config
-- Includes changes from 7.4 --:
[Added]
— Fastshot switch is now available in Lab settings and disabled by default
— Separate option (from Always EIS) to Enable front EIS in Lab settings
— Force enable 4k support in Lab settings (removed because it'll always cause crash if 4k is enabled in config and doesn't show up by default, ig due to codec)
— More decrypted configs regarding HDR and MTK
— HDR with Flash on
— Advanced settings are now permanently visible for video recording

[Fixes]
— HDR On now properly works (thanks to Xiaomi for breaking it!)
— Google Lens button is now back when GPhotos is enabled as default gallery
— Reworked Parallel processing settings, now they're independent, enabling Parallel processing for Front will now work without enabling normal Parallel Processing

-- Includes changes from 7.5 --:
[Added]
— Restart camera button in Camera settings, recommended to use after changing Lab. / Univ. and some other settings
— OCR unlocked, may not work, can be enabled in Smart suggestions (ig works only on newer devices and/or MIUI? idk)

[Fixes]
— Zoom wheel and 1x/2x buttons are now available on devices with 2 or less rear cameras
— Parallel processing for Night mode option works again
— QR scanner setting is now always visible in Smart suggestions and disabled by default (can cause black viewfinder on some devices)

-- Includes changes from 8.0 --:
[Added]
— Update Camera icon to the latest one from MIUI/HyperOS
— Themed (aka monet) icon, idk if it works, can't test it
— Select device config aka spoof codename in Lab settings (may be useful for users that use modules that change device props like Pixelify or if some other device's config works better than the original config), use Restart camera button to update the config
— External device config saved in /Download/XiaomiCamera/ (kinda like Universal settings but for ~200 available options with more flexibility, settings that are named like K4 or h are encrypted and what they do is unknown), configs are saved per device codename, remove files to recreate default config
— Enabled isSupportRenderEngineV2 by default, may fix or break 0.6x for some devices, disable it in config file
— Expose /data/data/com.android.camera/ to Documents Provider (aka stock Android Files app), some camera preferences can be changed externally in /data/shared_prefs
— Screenshots of the new features (https://telegra.ph/Leica-Camera-50-Beta-80-New-features-07-21)

[Fixes]
— Missing 0.6x button on many devices
— Rename NOT USED to DEFAULT in Adv. Settings
— Video HDR crash due to Default HDR value
— Common config changes
— Some attempts at fixing Vendor tag issue, still doesn't work

-- Includes changes from 8.1 --:
[Added]
— Expert mode (when disabled hides some experimental settings that may break the camera)
— Option to change Render Engine in Lab settings (may fix 0.6x zoom crash on some devices)
— Exposed more values to the config
— Reverted back multi-lens video zoom (aka Video SAT) so it would work as in HolyBear's mod (also renamed settings related to this)
— But, Limit multi-lens video zoom when EIS is enabled is now available in Lab settings (recommended for Mi 9 series)
— Video Sky can be enabled through config (doesn't really work)
— Updated module links to more newer versions (when you download modes)
— Some values added to general config json

[Fixes]
— Vendor tag issue is somewhat fixed, Video mode seems to work, but Photo mode is a lackluster
— Moved some settings to Lab settings
— Removed more zoom buttons feature due to disappearing 0.6x bug, find in config getSupportedButtonOuterZooms and edit zoom buttons for Photo/Video/Night modes however you want
— Disabled some features from default config that may cause problems for some devices

-- Includes changes from 8.2 --:
[Added]
— Various color options for camera UI including Material You (A12+) and custom hex color through general config
— Black Leica Watermark
— Alternative Redmi (non-Pro) Watermark
— New optional logos on Leica Watermark (Xiaomi/POCO and custom logo.png!)

[Fixes]
— Updated missing translations for modded settings on some languages
— Front flash works again
— Default HDR now also affects Front camera

-- Includes changes from 8.3 --:
[Added]
— Various color options for camera UI including Material You (A12+) and custom hex color through general config
— Black Leica Watermark
— Alternative Redmi (non-Pro) Watermark
— New optional logos on Leica Watermark (Xiaomi/POCO and custom logo.png!)

[Fixes]
— Updated missing translations for modded settings on some languages
— Front flash works again
— Default HDR now also affects Front camera

Co-authored-by: ItzDFPlayer <deniskovalevskiy91@gmail.com>
2024-11-10 00:25:27 +02:00
johnmart19
adab7e9510 MiuiCamera: Import 32bit misys prebuilts & append _system suffix
- Import all missing 32bit prebuilts which are required by sybsystem libs
- Append _system to conflicting system libs

Inspired from sm8250-common: Append _vendor to conflicting vendor libs [a2d1f54ae9]

Co-authored-by: Sebastiano Barezzi <seba@sebaubuntu.dev>
2024-10-08 01:48:48 +03:00
johnmart19
16760dbf3c MiuiCamera: Update prebuilts from HyperOS Alioth 1.0.2.0.TKHMIXM 2024-04-23 19:10:44 +03:00
johnmart19
a98fb92a11 MiuiCamera: Update to 7.3 version
Leica Camera 5.0 Universal Beta 7.3, changelog:

— Reverted front parallel processing switch logic
- Fixed duplicate in lab settings

Co-authored-by: ItzDFPlayer <deniskovalevskiy91@gmail.com>
2024-04-16 12:37:43 +03:00
johnmart19
8c13e7ca66 MiuiCamera: Update to 7.2 version
Leica Camera 5.0 Universal Beta 7.2 hotfix, changelog:

[Added]
— Standalone Macro lens in Pro mode doesn't work, Xiaomi broke it, enabled Supermacro in Photo mode
— Zoom override is now available in Lab settings

[Fixes]
— Parallel processing for Front switch is now properly working
— Photo mode crash from Beta 7.2 is possibly fixed

[Current bugs on Poco F3]
- 4k30fps video recording not saving
- Front camera Portrait mode

Co-authored-by: default avatarItzDFPlayer <deniskovalevskiy91@gmail.com>
2024-03-14 12:47:58 +02:00
johnmart19
05d1d47db4 MiuiCamera: Update to latest version
Beta 7.1

[Added]
— Front AI, Video filters, HDR video and Night mode video can be forcefully enabled in Lab/Univ. settings
— Enabled Dolby Vision video (may not work)
— Return of Default HDR setting (set to Auto by default)
— Unlocked some more photo/video filters(?)
— When Parallel processing is disabled, all Leica and Film filters will be gone (due to bugs), you can forcefully restore all filters (including Leica Authentic) in all possible photo modes through Lab/Univ. settings, do not report bugs with it!

[Fixes]
— Changed logic behind Leica Authentic availability, now it won't appear if Parallel processing for mode is not available
— Added various Night mode fixes to Lab/Univ. settings (try different combinations)

Co-authored-by: ItzDFPlayer <deniskovalevskiy91@gmail.com>
2024-03-07 07:49:14 +02:00
johnmart19
f369a00f69 MiuiCamera: Initial Poco F3 Repository
- Includes following changes:
* Import Xiaomi MiSys Hal and Sepolicy
* Import needed camera permissions
* Import Camera Postprocessing
* Import Poco F3 / Mi 11x Device Features [For Miui Deps]
* Import camxoverride settings & tune down CameraX logging
* Import needed camera prebuilts for Poco F3 AOSP Device trees
* Import Leica/Miui Camera mod 5.x by https://t.me/itzdfplayer & HollyBear
* Create device-specific config overlay for following Camera to enable appropriate features
* Import device-specific OpenCL
* Import AOSP and LOS aux camera overlays
* Import appropriate sepolicy for Poco F3 / Mi11x

- Repo requires:
* Have device-side hides in libinit for .mod_device and .name
* Import MiSys entries to FCM [Example: 47e3f385a6 ]
* Enable newer HIDL overrideFormat [4d9f9a23e9 ]
* Build camera for Jemalloc [c5d5ea6706 ]
* Set TARGET_CAMERA_PACKAGE_NAME for vendor tags [60ad521bf1 ] -> [c4fbccafa0 ]

Used changes from following authors:
Co-authored-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Co-authored-by: ItzDFPlayer <deniskovalevskiy91@gmail.com>
Co-authored-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2024-02-22 21:31:16 +02:00