-
Notifications
You must be signed in to change notification settings - Fork 10
Add MIUI camera patches for sdm 660-665 devices [2/2] #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mnasibzade
wants to merge
2
commits into
AlphaDroid-Project:alpha-15.1
Choose a base branch
from
mnasibzade:alpha-15.1
base: alpha-15.1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* miui camera uses logical id 61 as depth sensor on portrait mode but oss libcam maps it to physical id 2 which is wrong, our physical id of depth sensor is 20 so we must hack it this way [ghostrider-reborn 2021-10-26] * updated for android 12 [ghostrider-reborn 2022-09-23] * updated for android 13 [garry-rogov 2024-03-31] * updated for android 14 QPR2 Change-Id: I57388d0e00fc21b99427e0c0b1ff9a39926b2243 Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com> Signed-off-by: garry-rogov <garry.rogov@gmail.com> Signed-off-by: Hirokixd <86230878+Wrdn28@users.noreply.github.com> Signed-off-by: mnasibzade <euoryexe@gmail.com>
* devices like ginkgo and some xiaomi sdm660 use miui camera mode in camera hal to activate certain functions in camera hal, these are enabled when vendor.camera.miui.apk is set to 1 based on sys.camera.miui.apk value * if this prop is set by default gcam crashes, so we must do it dynamically * xiaomi does this in stock libcameraservice but unfortunately we don't have stock android 12 to use prebuilt lib [garry-rogov 2024-03-31] * updated for android 14 QPR2 Signed-off-by: garry-rogov <garry.rogov@gmail.com> Signed-off-by: Hirokixd <86230878+Wrdn28@users.noreply.github.com> Signed-off-by: mnasibzade <euoryexe@gmail.com>
elpaablo
pushed a commit
that referenced
this pull request
Aug 26, 2025
Google introduced it here: yaap/frameworks_av@c458547 Allow it to be disabled for the devices affected by a mediaserver crash as follows after google enabled it in android 16: 06-25 01:14:11.195 1508 16500 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 16500 (ALooper), pid 1508 (mediaserver64) 06-25 01:14:11.672 16513 16513 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-25 01:14:11.672 16513 16513 F DEBUG : Build fingerprint: 'Sony/XQ-AS72/XQ-AS72:12/58.2.A.10.126/058002A010012603718185433:user/release-keys' 06-25 01:14:11.672 16513 16513 F DEBUG : Revision: '0' 06-25 01:14:11.672 16513 16513 F DEBUG : ABI: 'arm64' 06-25 01:14:11.672 16513 16513 F DEBUG : Timestamp: 2025-06-25 01:14:11.262663301+0300 06-25 01:14:11.672 16513 16513 F DEBUG : Process uptime: 1041s 06-25 01:14:11.672 16513 16513 F DEBUG : Cmdline: /system/bin/mediaserver64 06-25 01:14:11.672 16513 16513 F DEBUG : pid: 1508, tid: 16500, name: ALooper >>> /system/bin/mediaserver64 <<< 06-25 01:14:11.672 16513 16513 F DEBUG : uid: 1013 06-25 01:14:11.672 16513 16513 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000000 06-25 01:14:11.672 16513 16513 F DEBUG : Cause: null pointer dereference 06-25 01:14:11.672 16513 16513 F DEBUG : x0 0000007946e0ac40 x1 0000000001000000 x2 0000000000000008 x3 0000000000000000 06-25 01:14:11.672 16513 16513 F DEBUG : x4 722d666f726d6174 x5 0000000000000002 x6 0000000000000002 x7 0000000000000002 06-25 01:14:11.672 16513 16513 F DEBUG : x8 0000007946e0acd0 x9 0000000000000000 x10 0000000000000008 x11 00000000001fa400 06-25 01:14:11.672 16513 16513 F DEBUG : x12 0000000000000000 x13 0000007946e0ab94 x14 000000000007e900 x15 0000000000000002 06-25 01:14:11.672 16513 16513 F DEBUG : x16 00000079f2fc3690 x17 00000079f2a849e0 x18 0000007946830000 x19 b4000079f6c7f180 06-25 01:14:11.672 16513 16513 F DEBUG : x20 0000000000000000 x21 0000000000000000 x22 b400007950c0a980 x23 7f3e854abf63ac30 06-25 01:14:11.673 16513 16513 F DEBUG : x24 0000000000000001 x25 0000000000000000 x26 0000007946e0b3c0 x27 00000079f2fb9878 06-25 01:14:11.673 16513 16513 F DEBUG : x28 00000079f2fb8f48 x29 0000007946e0ad30 06-25 01:14:11.673 16513 16513 F DEBUG : lr 00000079f2eb31a0 sp 0000007946e0ac10 pc 00000079f2eb31a4 pst 0000000060001000 06-25 01:14:11.673 16513 16513 F DEBUG : 9 total frames 06-25 01:14:11.673 16513 16513 F DEBUG : backtrace: 06-25 01:14:11.673 16513 16513 F DEBUG : #00 pc 00000000000f61a4 /system/lib64/libstagefright.so (android::FrameDecoder::handleOutputBufferAsync(int, long)+1268) (BuildId: ab3f1c8f0368f98174bb702a4d9fd361) 06-25 01:14:11.673 16513 16513 F DEBUG : #1 pc 00000000000f59f8 /system/lib64/libstagefright.so (android::AsyncCodecHandler::onMessageReceived(android::sp<android::AMessage> const&)+1032) (BuildId: ab3f1c8f0368f98174bb702a4d9fd361) 06-25 01:14:11.673 16513 16513 F DEBUG : #2 pc 000000000001b708 /system/lib64/libstagefright_foundation.so (android::AHandler::deliverMessage(android::sp<android::AMessage> const&)+152) (BuildId: fd05a7c4a35f22c272bab42d96244ba4) 06-25 01:14:11.673 16513 16513 F DEBUG : #3 pc 0000000000022a5c /system/lib64/libstagefright_foundation.so (android::AMessage::deliver()+172) (BuildId: fd05a7c4a35f22c272bab42d96244ba4) 06-25 01:14:11.673 16513 16513 F DEBUG : #4 pc 000000000001cc68 /system/lib64/libstagefright_foundation.so (android::ALooper::loop()+536) (BuildId: fd05a7c4a35f22c272bab42d96244ba4) 06-25 01:14:11.673 16513 16513 F DEBUG : #05 pc 0000000000017e58 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+248) (BuildId: 9ab654370e3df2f5412f0469bc7c934c) 06-25 01:14:11.673 16513 16513 F DEBUG : #06 pc 0000000000019d44 /system/lib64/libutils.so (libutil_thread_trampoline(void*) (.__uniq.226528677032898775202282855395389835431)+20) (BuildId: 9ab654370e3df2f5412f0469bc7c934c) 06-25 01:14:11.673 16513 16513 F DEBUG : #07 pc 00000000000da3ac /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+236) (BuildId: 1ff6cb6d00073ea33e11702ebb45fcb4) 06-25 01:14:11.673 16513 16513 F DEBUG : #08 pc 00000000000cb2b0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 1ff6cb6d00073ea33e11702ebb45fcb4) Change-Id: I9b3b2d7c43e2022dda7d3145cf942894601cecb4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.