Comments (9)
Check out this thread I've made to bloat this issue less: https://forum.xda-developers.com/project-treble/trebleenabled-device-development/treble-qualcomm-device-call-audio-check-t3774818
For the specific case of the Razer Phone, I published this: https://forum.xda-developers.com/razer-phone/how-to/treble-install-generic-image-gsi-razer-t3770684/page5#post76159165
This isn't a permanent fix however, and can be addressed directly from compilation time in GSIs.
from treble_experimentations.
Manually extracting the following files from the razer DP1 image (injecting their respective vdex's)
framework/qcrilhook.jar
framework/qti-telephony-common.jar
framework/QtiTelephonyServicelibrary.jar
and placing them inside the system partition along with their respectives permission xml's DIDN'T SOLVE the issue.
This means MSM8996 fixes don't help in the MSM8998.
from treble_experimentations.
Getting my Razer phone tomorrow, let's see then, subscribed to issue.
from treble_experimentations.
As a follow up to last night's comment, trying to inject the Apks corresponding to Qcomm RIL QtiTelephonyService, QtiSystemService, Qcrilmsgtunnel from the stock rom into the GSI didn't work either.
Just adding as much info as I can so that no one needs to mess around with already tested stuff.
from treble_experimentations.
As an update, @TheCrazyLex and I have tried by adding the flag "AUDIO_OUTPUT_FLAG_FAST" to the primary output mixport inside vendor's audio_policy_configuration, still with the same results
from treble_experimentations.
New update. I've delete the Razer signature from the files QtiTelephonyService, QtiSystemService, Qcrilmsgtunnel, and resigned them with the system signing key. Now files are installable and services run like normal. For the specific case of Qcrilmsgtunnel, I've faced the issue that it was missing a library from HIDL, but that file is indeed present in the system after comparing the tree output between GSI image and Razer image.
Concerned, I decompiled the apk in question and changed <uses-library android:name="[email protected]" />
to <uses-library android:name="[email protected]" android:required="false" />
. Now the file loads up properly and is running in the system as a background task.
Now, I moved the missing libs back to the system to check if audio worked, and this is what happened:
log.txt. System becomes unstable, Android phone crashes constantly at boot, and all apps begin to crash due to mismatch in time service.
From the log, we can extract the following 2 errors:
04-02 16:07:57.408 3945 3945 I zygote64: Caused by: java.lang.ClassNotFoundException: Didn't find class "org.codeaurora.internal.IExtTelephony$Stub" on path: DexPathList[[zip file "/system/framework/qti-telephony-common.jar"],nativeLibraryDirectories=[/system/lib64, /vendor/lib64]]
and
04-02 16:07:57.412 3945 3945 I zygote64: Rejecting re-init on previously-failed class java.lang.Class<com.qualcomm.qti.internal.telephony.QtiRIL>: java.lang.IncompatibleClassChangeError: Superclass com.android.internal.telephony.RIL of com.qualcomm.qti.internal.telephony.QtiRIL is declared final (declaration of 'com.qualcomm.qti.internal.telephony.QtiRIL' appears in /system/framework/qti-telephony-common.jar)
Final thought: I'm done :)
from treble_experimentations.
I've fixed it. I'll write up one last comment with everything needed to reproduce the fix on any device.
from treble_experimentations.
Some investigations about the always-on-speaker mode:
Editing audio_policy_configuration.xml to include Earpiece as attachedDevices, and change devicePort Earpiece from AUDIO_CHANNEL_IN_MONO to AUDIO_CHANNEL_OUT_MONO makes earpiece working!
Going to speaker mode works as well.
Going back from speaker doesn't though.
from treble_experimentations.
The same change without actually changing audio_policy_configuration.xml:
phhusson/platform_frameworks_av@3f7e564
from treble_experimentations.
Related Issues (20)
- Samsung Galaxy Tab A 10.5 2018 (SM-T590) random reboot
- Network and audio services crash after 10 secs HOT 1
- Recieving SMS randomly not working on Redmi Note 12 4G NFC (Topaz)
- Samsung no voice in call on second sim HOT 1
- Magisk installation issue
- Disabled Backlight of hardware
- How to flash Huawei P10 critical partitions? HOT 1
- [MT6739][AOSP 8.1]Audio related bootloop HOT 8
- Lag Video but Clear audio in TikTok Apps GSI A14 X3GT HOT 1
- Pixel 7 pro
- Setup Crash<title>
- Galaxy A10 - Camera Error
- Flash HOT 6
- Flash
- How to flash phh gsi and root on Vankyo P31 (using unisoc sc9863a) HOT 2
- System RO on Google GSI Official 14 HOT 2
- GSI loads fine with DSU loader but fails from FastbootD
- SIM card is detected, but also not really. HOT 1
- <title> How to add status bar padding?
- how to build user variant HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from treble_experimentations.