Git Product home page Git Product logo

Comments (9)

linuxct avatar linuxct commented on July 17, 2024 1

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.

linuxct avatar linuxct commented on July 17, 2024

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.

 avatar commented on July 17, 2024

Getting my Razer phone tomorrow, let's see then, subscribed to issue.

from treble_experimentations.

linuxct avatar linuxct commented on July 17, 2024

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.

linuxct avatar linuxct commented on July 17, 2024

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.

linuxct avatar linuxct commented on July 17, 2024

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.

photo_2018-04-07_22-30-01

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.

photo_2018-04-07_22-32-51

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.

linuxct avatar linuxct commented on July 17, 2024

I've fixed it. I'll write up one last comment with everything needed to reproduce the fix on any device.

from treble_experimentations.

phhusson avatar phhusson commented on July 17, 2024

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.

phhusson avatar phhusson commented on July 17, 2024

The same change without actually changing audio_policy_configuration.xml:
phhusson/platform_frameworks_av@3f7e564

from treble_experimentations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.