Commit Graph

34 Commits

Author SHA1 Message Date
johnmart19
69f6c7862e MiuiCamera: Hook our java (jar) prebuilts as boot jars 2025-06-07 02:21:57 +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
2dc7df3655 MiuiCamera: Move to device/xiaomi/camera & keep prebuilts in vendor/xiaomi/camera
- Regenerate with Python Utils
- Picked latest prebuilts from HyperOS 1.0.3.0 Mi Alioth
- Main repo moved to https://github.com/PocoF3Releases/device_xiaomi_camera
2025-05-19 09:27:37 +03:00
johnmart19
1496cbcdc8 MiuiCamera: Build gralloc.qcom
Camera HAL wants it for EIS for front camera and video on front camera crashes if it loads default gralloc
implementation instead.

Co-authored-by: LuK1337 <priv.luk@gmail.com>
2025-04-27 15:46:52 +03:00
johnmart19
9cdfa49d5d MiuiCamera: Add support of 0.5x Ultrawide camera
- Alioth is having 0.5x by default, so enable functionality respectfully.
2025-04-27 14:11:28 +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
09fa2c4b2a MiuiCamera: Import CameraX Extensions from 1.0.3.0 Mi Alioth 2025-01-09 00:48:45 +02:00
johnmart19
4f0edce7e0 MiuiCamera: Add support of CameraX Vendor Extensions 2025-01-09 00:48:39 +02:00
johnmart19
3f84f5100c MiuiCamera: Update f2player from 1.0.3.0 Mi Alioth 2025-01-08 21:05:32 +02:00
johnmart19
54cdda077e MiuiCamera: Simplify soong imports
- The following repos are unused for our prebuilts
2024-11-10 02:25:09 +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
3db3f00dca MiuiCamera: Remove Camera Package list
- already defined in sm8250-common (vendor.camera.aux.packagelist)
2024-10-08 01:51:25 +03:00
johnmart19
44341dac8d MiuiCamera: Remove duplicate prebuilts
- Already defined in vendor/xiaomi/alioth and buildenv
2024-10-08 01:50:41 +03: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
c203475214 MiuiCamera: Add vendor soong imports to extract
Inspired from sm8250-common: Add vendor soong imports to extract [c8096b98e8]

- Also includes Alioth and sm8250-common repos

Co-authored-by: Aaron Kling <webgeek1234@gmail.com>
2024-10-08 01:21:00 +03:00
johnmart19
588f5f5b42 MiuiCamera: Prebuilts: Regenerate with ELF Checks 2024-10-08 01:20:24 +03:00
johnmart19
d64a3c06cc MiuiCamera: scripts: Enable ELF Checks
Inspired from sm8250-common: Enable elf checks [b31a797317]

Co-authored-by: Aaron Kling <webgeek1234@gmail.com>
2024-10-08 01:18:39 +03:00
johnmart19
fa38eef530 MiuiCamera: Import Camera Fonts and effects 2024-10-08 01:17:02 +03:00
johnmart19
85b10c4964 MiuiCamera: Allow skipping of nativeDetachImage 2024-10-08 01:17:00 +03:00
johnmart19
419f90f8fd MiuiCamera: Sepolicy: Drop labels of Data folders
The following types on /data/ /odm/ /product/ /vendor/ must not be associated with the "app_data_file_type" attribute.
Violator types and corresponding paths:
('app_data_file', '/data/user/0/com.android.camera(/.*)?')
('app_data_file', '/data/user/0/com.miui.extraphoto(/.*)?')
('app_data_file', '/data/user/0/com.miui.gallery(/.*)?')
('app_data_file', '/data/user/0/com.miui.mediaeditor(/.*)?')
2024-05-11 20:57:16 +03:00
johnmart19
1b2082c207 MiuiCamera: Configs: Update from HyperOS Alioth 1.0.2.0.TKHMIXM 2024-04-23 19:29:13 +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
c7821cdcda MiuiCamera: Sepolicy: Remove duplicated property
host_init_verifier: Unable to serialize property contexts: Duplicate prefix match detected for 'vendor.camera.skip_unconfigure.packagelist'
2024-04-05 23:22:24 +03:00
johnmart19
76a905c4cb MiuiCamera: Drop OpenCL overwrite
- Keep only missing deps
2024-03-26 01:49:48 +02:00
johnmart19
382326afe7 MiuiCamera: Reorder proprietary-files
- Automatically by reorder-libs.py
2024-03-14 12:48:08 +02:00
johnmart19
3d1c7fc7bc MiuiCamera: Import Device-specific f2player
Following lib is used by qualcomm camera
2024-03-14 12:48:08 +02:00
Sebastiano Barezzi
52584faaf1 MiuiCamera: Add a script to reorder blobs list 2024-03-14 12:48:08 +02: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
6f9b565471 MiuiCamera: Readme: Update FCM Appropriately 2024-02-29 22:51:50 +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