phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.42k stars 660 forks source link

[Elephone Soldier] sound AOSP 8.1-9 #874

Closed yura73 closed 3 years ago

yura73 commented 5 years ago

Hello. On all your releases AOSP 8.1-9, my smartphone ELEPHONE SOLIDER has no sound in the dynamics (there are headphones and spoken dynamics), I have made many unsuccessful attempts to fix this. Since your only ones that run on my smartphone I ask for your help and advice. I managed to find out that my smartphone has a separate audio chip for headphones. What logs and files from the firmware will be needed to solve this problem? I hope you'll give me a hand.

phhusson commented 5 years ago

let's start with lshal

Le sam. 9 nov. 2019 à 10:52, yura73 notifications@github.com a écrit :

Hello. On all your releases AOSP 8.1-9, my smartphone ELEPHONE SOLIDER has no sound in the dynamics (there are headphones and spoken dynamics), I have made many unsuccessful attempts to fix this. Since your only ones that run on my smartphone I ask for your help and advice. I managed to find out that my smartphone has a separate audio chip for headphones. What logs and files from the firmware will be needed to solve this problem? I hope you'll give me a hand.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/874?email_source=notifications&email_token=AAAA4OSOPOHALZL325XPEH3QS2B6TA5CNFSM4JLFELXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HYEH6TQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OTYWNA6DD5OO4TM2JTQS2B6TANCNFSM4JLFELXA .

yura73 commented 5 years ago

lshal.zip stock firmware

yura73 commented 5 years ago

audio.zip vendor audio files

phhusson commented 5 years ago

lshal.zip stock firmware

Sorry, that's not what I meant. I need you to run lshal command and paste its output..

Considering #877, could you re-explain the issue?

What do you mean you have no sound "in the dynamics"?

yura73 commented 5 years ago

there is no sound in the main speaker (music, incoming call ringtone) sorry (translation difficulties)

yura73 commented 5 years ago

lshal.txt stock firmware

yura73 commented 5 years ago

lshal.txt AOSP 9.0 v121

yura73 commented 5 years ago

dear phhusson i did everything right?

phhusson commented 5 years ago

Does call-speaker work? Does 3.5mm jack headsets work?

Please provide logcat on stock ROM, when doing this:

yura73 commented 5 years ago

The call speaker is working. The 3.5mm headset works well. logcat on stock ROM logcatboot.txt logcat music.txt

I hope I did everything right.

phhusson commented 5 years ago

log looks good. Please do the same logs on GSI so I can compare

Le dim. 17 nov. 2019 à 19:16, yura73 notifications@github.com a écrit :

The call speaker is working. The 3.5mm headset works well. logcatboot.txt https://github.com/phhusson/treble_experimentations/files/3855927/logcatboot.txt logcat music.txt https://github.com/phhusson/treble_experimentations/files/3855928/logcat.music.txt

I hope I did everything right.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/874?email_source=notifications&email_token=AAAA4OTDY7MSWJXYB56XVODQUGC67A5CNFSM4JLFELXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEISJKQ#issuecomment-554771626, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OXWFFYHL264WVDCGLLQUGC67ANCNFSM4JLFELXA .

yura73 commented 5 years ago

logcat boot.txt logcat music.txt AOSP 8.1 V32 Let me know if it is wrong.

phhusson commented 5 years ago

Ok, stock ROM has many logs about TFA98XX, which GSI logs doesn't have, so that's pretty good, that gives me something to work on.

Could you give me a downloadable link to your stock rom?

yura73 commented 5 years ago

https://mega.nz/#F!xwBklAyS!EjTUSrGZi80daILLi_mHjg!Q5hizaLb It inspires hope

phhusson commented 5 years ago

Ok, sounds like an easy bug ugly one after all.

Copy stock's /system/lib/libtfa98xx_v2.so to /vendor/lib/libtfa98xx_v2.so and /system/lib64/libtfa98xx_v2.so to /vendor/lib64/libtfa98xx_v2.so

I think this should fix your issue. If it doesn't, provide again logcat.boot and logcat.music.

I've attached the stock files for convenience. tfa.zip

yura73 commented 5 years ago

Yes, it really helped! A sound has appeared. Thank you very much ! It remains to deal with bluetooth and the NSС which does not work on AOSP 9.

phhusson commented 5 years ago

NSC? You mean NFC?

Try the property mentioned at https://github.com/phhusson/treble_experimentations/issues/660

yura73 commented 5 years ago

Sorry for the english. Yes NFC.

yura73 commented 5 years ago

Thanks you ! You are great! Everything works.

philalat commented 4 years ago

hy every body i read this treath but i don't know how to copy the folders included in tfa.zip. how copy them in the stock? which app can i use to do? if i try to install via ADB, i get zip invalid. best regards

yura73 commented 4 years ago

to establish masgik install total comanger get root rights unzip the archive and copy lib.

philalat commented 4 years ago

good morning total comanger or total commander how copy lib? thanks

yura73 commented 4 years ago

Total commander

philalat commented 4 years ago

Hy YURA do you have update your elephone soldier? i tried several versiosn as phhusson system android 9 or 10 but the phone start . however the phone stay on the android logo more than 6 hours and nothing else; so i installed the octopus OS and it's work except the sound . best regards

philalat commented 4 years ago

ii find the folder lib, but elephone is arm64, i must use only lib64? and i must copy as phhusson said. cpoy it in vendor; that's right? thanks for your help

yura73 commented 4 years ago

Screenshot_20200430-114328 Android 9-10 updates for a soldier does not exist in nature and will not. all GSI have the same bugs (communication heap. access point. the flashlight buttons do not work.) for everyday use are not suitable

yura73 commented 4 years ago

https://4pda.ru/forum/index.php?showtopic=916579&st=300 learn the topic

philalat commented 4 years ago

I was tooquick when i wrot, i tried android 9 v119 after android 10 v215 ; i have elephone logo then i egt the logo android but it stay and nore more; With octopus OS all works. the link you join is in russian and googl cann't translate it, but i use this twrp 3.3.1 unofficial it's works. for the picture i see lib and lib 64, do you mean imust copy the two folder one in lib and the other in lib 64?

philalat commented 4 years ago

that's ok google translate the web page finally

yura73 commented 4 years ago

where did you get the octopus os ?

philalat commented 4 years ago

https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-%28GSI%29-list and there you go in nadroid 9 official and you have OctopusOS (N°10 in the list)

philalat commented 4 years ago

official Android 9 Pie section

yura73 commented 4 years ago

I tried it. side flashlight and sos button do not work

philalat commented 4 years ago

i open total commander, i unzip tfa.zip on intrenal storage but i cann't copy the files ?

yura73 commented 4 years ago

should succeed Try it in twrp

philalat commented 4 years ago

how do you do with total commander? i have the file on internal storage, when i open total commander isee the both but when i want to copy in lib folder i cann't. total commander is on your phone or your PC?

yura73 commented 4 years ago

Total Commander on the phone

philalat commented 4 years ago

hy yura ouf i found how to copy with total commander; now i can test this system. thanks

yura73 commented 4 years ago

unzip the archive copy to vendor

overlay with replacement

yura73 commented 4 years ago

framework-res__auto_generated_rro.zip

yura73 commented 4 years ago

auto brightness correction and headphone connection

philalat commented 4 years ago

okay i'll try and you you look at the website that i sent?

yura73 commented 4 years ago

i know this site

philalat commented 4 years ago

good morning yura the folder framework when i extract it it's a .apk. when i want to install it the phone don't auhorize the complete installation. you install it with total commander? have a nice day

yura73 commented 4 years ago

using Total Commander Delete the existing new copy folder. no need to install!

philalat commented 4 years ago

i 'll try, the sound is ok now for the call, i don't try music player.

philalat commented 4 years ago

do you remember the folder for framework?

yura73 commented 4 years ago

vendor/overlay

philalat commented 4 years ago

i deleted the one i found in system; it's not good bacause the phon when i start it stay on the logo octopus. i must do a restore and do the good action.

yura73 commented 4 years ago

not from the system!!!! from vendor overlay!!!!