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)
- how to build user variant HOT 2
- Redmi 12 - "surfaceflinger" spams with errors HOT 6
- Redmi 12 - screen backlight stops working after locking/unlocking the screen for a few times HOT 3
- Galaxy A04 - Mobile internet bug HOT 4
- Can anybody pleas build pixel experience with android 14 ??
- battery drain and hot when charging HOT 1
- MTK No Internet HOT 6
- Error in repo sync step HOT 1
- What is the lisense for this? HOT 1
- Status bar inconsistency on Redmi 9
- Mblu hifi dac playback artifacts (crackles and sound fades) HOT 1
- Galaxy S21 FE Exynos not recieveing SMS HOT 2
- <title> HOT 1
- Touchscreen respone issues on Oneplus Open
- Samsung Galaxy A51: Some Android 14 GSI are not working
- Teclast M30 :TLA002
- Invalid partition metadata header table size.
- Pixel 4XL flashed Android 15, stuck on Google icon interface, unable to enter the system HOT 1
- [OPPO A12] Fingerprint scanner not working HOT 1
- Cat S22 Flip GSI android 14 not getting incoming calls
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.