phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.38k stars 655 forks source link

[Huawei Mate SE] Audio jack not working. #118

Closed ghost closed 4 years ago

ghost commented 6 years ago

V22 AOSP (no gapps) with magisk and microg. Mate SE.

Speaker works. Plugging in headphone jack will still only play through speakers oddly.

Audio jack definitely receiving some sort of electric signal since when you plug/unplug, you can hear transient static.

Played music through Pandora and Vanilla Music. Audio jack worked before I flashed AOSP.

ghost commented 6 years ago

Using the following app, I'm able to force the audio through the headphone jack: https://play.google.com/store/apps/details?id=com.nordskog.LesserAudioSwitch

It's not ideal but at least I have sound again...

ghost commented 6 years ago

I've tried looking at the event logs and it seems like headphone plugging / unplugging event isn't happening.

EDIT: see better logs in the Gist I referenced below (it shows up in dmesg.log).

ghost commented 6 years ago

I've also tried enabling the headset icon through the system ui tuner but it still doesn't show up: https://c.mi.com/thread-684217-1-0.html

ghost commented 6 years ago

Apparently a lot of people had these headphone jack issue after they upgraded to Oreo...

ghost commented 6 years ago

Booting into safe mode did not help.

phhusson commented 6 years ago

do you see plug/unplug events in adb shell getevent? If you boot with headphones plug, you get the same result?

ghost commented 6 years ago

If you boot with headphones plug, you get the same result?

Yes

do you see plug/unplug events in adb shell getevent?

I cannot connect via adb at all. I have created a new issue for that: https://github.com/phhusson/treble_experimentations/issues/120

However, I have extracted some log files. It consisted me of unplugging and replugging the headphones with no music for about 30 seconds and with music (playing through speaker) for about 30 seconds. ~1 minute total. I have truncated the log files.

Link to Gist with the all three truncated logs: https://gist.github.com/thinkpadder1/4385c1c7638f5244d9d63681b792cd9d

ghost commented 6 years ago

Additional info: When unplugging/replugging while music is playing through the speaker, the music does not stop.

phhusson commented 6 years ago

Can you disable magisk, and get adb shell getevent when plugging/unplugging? Or from a terminal app, su, getevent Can you also give me a dump of your getprop? (preferably on GSI, but from stock would be ok)

Sparticuz commented 6 years ago

I'll get it for you as I have the same issue. (BND-L34, Mate SE)

I'm running GSI Resurrection Remix.

First two events when I plug in, second two when I unplug headphone jack.

D:\platform-tools>adb shell
adb server version (32) doesn't match this client (40); killing...
* daemon started successfully
HWBND-H:/ $ getevent
add device 1: /dev/input/event1
  name:     "hisi_on"
add device 2: /dev/input/event0
  name:     "hisi_gpio_key"
add device 3: /dev/input/event2
  name:     "fingerprint"
add device 4: /dev/input/event4
  name:     "huawei,ts_kit"
add device 5: /dev/input/event3
  name:     "HI6250_hi6555c_CARD Headset Jack"
could not get driver version for /dev/input/mice, Not a typewriter
/dev/input/event3: 0005 0002 00000001
/dev/input/event3: 0000 0000 00000000
/dev/input/event3: 0005 0002 00000000
/dev/input/event3: 0000 0000 00000000
Sparticuz commented 6 years ago
HWBND-H:/ $ getprop
[bastet.service.enable]: [true]
[bg_fsck.pgid]: [319]
[build.hisi_perf_opt]: [true]
[camera.dis.flag]: [2]
[camera.drop.buffer]: [1]
[camera.ignore.chat.facebeauty]: [1]
[config.disable_consumerir]: [true]
[dalvik.vm.appimageformat]: [lz4]
[dalvik.vm.boot-dex2oat-threads]: [4]
[dalvik.vm.checkjni]: [false]
[dalvik.vm.dex2oat-Xms]: [64m]
[dalvik.vm.dex2oat-Xmx]: [512m]
[dalvik.vm.dex2oat-threads]: [4]
[dalvik.vm.dexopt.secondary]: [true]
[dalvik.vm.heapgrowthlimit]: [384m]
[dalvik.vm.heapmaxfree]: [8m]
[dalvik.vm.heapminfree]: [4m]
[dalvik.vm.heapsize]: [512m]
[dalvik.vm.heapstartsize]: [8m]
[dalvik.vm.heaptargetutilization]: [0.75]
[dalvik.vm.image-dex2oat-Xms]: [64m]
[dalvik.vm.image-dex2oat-Xmx]: [64m]
[dalvik.vm.image-dex2oat-threads]: [4]
[dalvik.vm.isa.arm.features]: [default]
[dalvik.vm.isa.arm.variant]: [cortex-a15]
[dalvik.vm.isa.arm64.features]: [default]
[dalvik.vm.isa.arm64.variant]: [generic]
[dalvik.vm.lockprof.threshold]: [500]
[dalvik.vm.stack-trace-dir]: [/data/anr]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[dalvik.vm.usejit]: [true]
[dalvik.vm.usejitprofiles]: [true]
[debug.atrace.tags.enableflags]: [0]
[debug.force_rtl]: [0]
[debug.hwui.profile]: [true]
[debug.hwui.render_dirty_regions]: [false]
[debug.sf.disable_backpressure]: [1]
[debug.sf.latch_unsignaled]: [1]
[dev.bootcomplete]: [1]
[drm.service.enabled]: [true]
[gsm.current.phone-type]: [1,1]
[gsm.defaultpdpcontext.active]: [true]
[gsm.fastdormancy.mode]: [3]
[gsm.fastdormancy.screen]: [2]
[gsm.fastdormancy.time_scroff]: [3000]
[gsm.network.type]: [LTE,Unknown]
[gsm.nitz.time]: [1532367295098]
[gsm.nvcfg.resetrild]: [0]
[gsm.nvcfg.rildrestarting]: [0]
[gsm.operator.alpha]: [AT&T]
[gsm.operator.iso-country]: [us]
[gsm.operator.isroaming]: [false,false]
[gsm.operator.numeric]: [310410]
[gsm.sigcust.gsm]: [5,false,-109,-105,-98,-91,-85]
[gsm.sigcust.lte]: [5,false,-124,-117,-109,-104,-94]
[gsm.sigcust.umts]: [5,false,-120,-108,-102,-96,-88]
[gsm.sim.num.pin]: [3]
[gsm.sim.num.pin2]: [3]
[gsm.sim.num.puk]: [10]
[gsm.sim.num.puk2]: [10]
[gsm.sim.num.simlock]: [-1,-1,-1]
[gsm.sim.operator.alpha]: []
[gsm.sim.operator.iso-country]: [us]
[gsm.sim.operator.numeric]: [310150]
[gsm.sim.preiccid_0]: [8901150]
[gsm.sim.state]: [READY,ABSENT]
[gsm.slot1.num.pin1]: [3]
[gsm.slot1.num.pin2]: [3]
[gsm.slot1.num.puk1]: [10]
[gsm.slot1.num.puk2]: [10]
[gsm.version.baseband]: [21C60B269S003C000]
[gsm.version.baseband1]: [21C60B269S003C000]
[gsm.version.ril-impl]: [android infineon balong-ril 1.0]
[hw.lcd.density]: [480]
[hw.wifi.disable_auto_disc]: [true]
[hwservicemanager.ready]: [true]
[init.svc.CameraDaemon]: [running]
[init.svc.activityrecognition_1_0]: [running]
[init.svc.adbd]: [running]
[init.svc.agnsscontrol]: [running]
[init.svc.aptouch]: [stopped]
[init.svc.audio-ext-hal-2-0]: [running]
[init.svc.audioserver]: [running]
[init.svc.bluetooth-1-0]: [running]
[init.svc.bootanim]: [stopped]
[init.svc.cameraserver]: [running]
[init.svc.check_root]: [stopped]
[init.svc.configstore-hal-1-0]: [running]
[init.svc.cust_from_init]: [stopped]
[init.svc.display-hal-1-0]: [running]
[init.svc.displayeffect-1-0]: [running]
[init.svc.displayengine-hal-1-0]: [stopped]
[init.svc.drm]: [running]
[init.svc.drm-hal-1-0]: [running]
[init.svc.drm-widevine-hal-1-0]: [running]
[init.svc.fm-1-0]: [running]
[init.svc.fps_hal_ext]: [running]
[init.svc.gatekeeper-1-0]: [running]
[init.svc.gatekeeperd]: [running]
[init.svc.gnss_service]: [running]
[init.svc.gralloc-2-0]: [running]
[init.svc.hal_gnss_service_1]: [running]
[init.svc.hdbd]: [stopped]
[init.svc.health-hal-1-0]: [running]
[init.svc.healthd]: [running]
[init.svc.hidl_memory]: [running]
[init.svc.hilogcat]: [stopped]
[init.svc.hinetmanager]: [running]
[init.svc.hisi_bfg]: [stopped]
[init.svc.hisupl_service]: [stopped]
[init.svc.hostapd]: [stopped]
[init.svc.hsgnss]: [running]
[init.svc.huaweiantitheft-hal-1-0]: [running]
[init.svc.huaweisigntool-hal-1-0]: [running]
[init.svc.hw-fpnav]: [stopped]
[init.svc.hw_ueventd]: [running]
[init.svc.hwcomposer-2-1]: [running]
[init.svc.hwemerffu]: [stopped]
[init.svc.hwfactoryinterface-hal-1-1]: [running]
[init.svc.hwfs-hal-1-0]: [running]
[init.svc.hwservicemanager]: [running]
[init.svc.installd]: [running]
[init.svc.isplogcat]: [stopped]
[init.svc.keymaster-3-0]: [running]
[init.svc.keystore]: [running]
[init.svc.light-ext-hal-2-0]: [running]
[init.svc.lmkd]: [running]
[init.svc.logcat_service]: [stopped]
[init.svc.logctl_service]: [stopped]
[init.svc.logd]: [running]
[init.svc.logd-reinit]: [stopped]
[init.svc.macaddr]: [stopped]
[init.svc.magisk_service]: [stopped]
[init.svc.magisk_startup]: [stopped]
[init.svc.media]: [running]
[init.svc.mediacodec]: [running]
[init.svc.mediacomm@2.0-service]: [running]
[init.svc.mediadrm]: [running]
[init.svc.mediaextractor]: [running]
[init.svc.mediametrics]: [running]
[init.svc.memtrack-hal-1-0]: [running]
[init.svc.netd]: [running]
[init.svc.nfc_hal_ext_service]: [stopped]
[init.svc.oam_hisi]: [running]
[init.svc.octty]: [running]
[init.svc.oeminfo_nvm]: [running]
[init.svc.otherdevices-1-0]: [running]
[init.svc.perfgenius-hal-1-0]: [running]
[init.svc.perfprofd]: [stopped]
[init.svc.phh_service_cleaner]: [stopped]
[init.svc.power-hw-hal-1-0]: [running]
[init.svc.ril-daemon]: [running]
[init.svc.sensors-hal-1-0_hw]: [running]
[init.svc.servicemanager]: [running]
[init.svc.shex]: [stopped]
[init.svc.shlogd]: [stopped]
[init.svc.storage_info]: [running]
[init.svc.storaged]: [running]
[init.svc.supl20clientd]: [running]
[init.svc.surfaceflinger]: [running]
[init.svc.sysinit]: [stopped]
[init.svc.teecd]: [running]
[init.svc.thermal-hal-1-0]: [running]
[init.svc.thermalservice]: [running]
[init.svc.tombstoned]: [running]
[init.svc.tp-hal-1-0]: [running]
[init.svc.ueventd]: [running]
[init.svc.uniperf-hal-1-0]: [running]
[init.svc.unrmd]: [running]
[init.svc.usb-hal-1-0]: [running]
[init.svc.vibrator-HW-1-0]: [running]
[init.svc.vndservicemanager]: [running]
[init.svc.vold]: [running]
[init.svc.watchlssd]: [running]
[init.svc.webview_zygote32]: [running]
[init.svc.wifi_ext]: [running]
[init.svc.wificond]: [running]
[init.svc.wpa_supplicant]: [running]
[init.svc.zygote]: [running]
[init.svc.zygote_secondary]: [running]
[is_hisi_connectivity_chip]: [1]
[keyguard.no_require_sim]: [true]
[logd.logpersistd.enable]: [true]
[media.recorder.show_manufacturer_and_model]: [true]
[modify_ram_show]: [true]
[net.bt.name]: [Android]
[net.qtaguid_enabled]: [1]
[net.tcp.default_init_rwnd]: [60]
[net.tcp.delack.default]: [1]
[net.tcp.delack.lte]: [8]
[net.tcp.delack.wifi]: [20]
[net.tcp.usercfg.default]: [0]
[net.tcp.usercfg.lte]: [1]
[net.tcp.usercfg.wifi]: [1]
[net.tethering.noprovisioning]: [true]
[persist.alloc_buffer_sync]: [true]
[persist.cpub_min_freq_skip]: [0]
[persist.dsds.enabled]: [true]
[persist.fw.force_adoptable]: [true]
[persist.logd.logpersistd]: []
[persist.media.lowlatency.enable]: [false]
[persist.media.offload.enable]: [true]
[persist.partial_update_support]: [1]
[persist.radio.activemodem]: [0]
[persist.radio.airmode_sim0]: [false]
[persist.radio.airmode_sim1]: [true]
[persist.radio.apm_sim_not_pwdn]: [1]
[persist.radio.chr.apreset]: [false]
[persist.radio.commril_mode]: [ULG_MODE]
[persist.radio.cota_version]: [_C567_D1_]
[persist.radio.cur_apn_name]: [ndo]
[persist.radio.cur_apn_type]: [default]
[persist.radio.cur_attach_apn]: [ndo]
[persist.radio.cur_attach_proto]: [IPV4V6]
[persist.radio.cur_dend_cause]: [0]
[persist.radio.current_version]: [BND-L34 8.0.0.332(C567)]
[persist.radio.fast_switch_step]: [0,0]
[persist.radio.force_load_nvcfg]: [false]
[persist.radio.force_load_nvcfg_1]: [true]
[persist.radio.m0_ps_allow]: [1]
[persist.radio.modem.cap]: [09A9D]
[persist.radio.modem_cdma_roam]: [true]
[persist.radio.multisim.config]: [dsds]
[persist.radio.nitz_hw_name]: [true]
[persist.radio.nv_bin_loaded_m0]: [false]
[persist.radio.nv_bin_loaded_m1]: [false]
[persist.radio.nv_match_by_card]: [2]
[persist.radio.nvcfg_file]: [COMMON.bin]
[persist.radio.old_attach_apn]: []
[persist.radio.old_attach_proto]: [IPV4V6]
[persist.radio.prefer_nw]: [030201]
[persist.radio.prefer_nw_modem1]: [01]
[persist.radio.prefered_network]: [9]
[persist.radio.preiccid_0]: [8901150]
[persist.radio.standby_mode]: [mode_ulu]
[persist.radio.sub_state_cfg]: [1,1,1]
[persist.rog_feature]: [1]
[persist.service.hdb.enable]: [true]
[persist.skip_lowfreq]: [0]
[persist.smart_pool]: [1]
[persist.sys.bt_acl_bypass]: [true]
[persist.sys.cpuset.enable]: [1]
[persist.sys.cpuset.subswitch]: [0]
[persist.sys.dalvik.vm.lib.2]: [libart.so]
[persist.sys.dualcards]: [true]
[persist.sys.dun.override]: [0]
[persist.sys.gps.lpp]: []
[persist.sys.iaware.cpuenable]: [true]
[persist.sys.kmemleak.debug]: [0]
[persist.sys.locale]: [en-US]
[persist.sys.overlay.huawei]: [true]
[persist.sys.overlay.nightmode]: [true]
[persist.sys.powerup_reason]: [NORMAL]
[persist.sys.sdcardfs.emulated]: [1]
[persist.sys.sdcardfs.public]: [1]
[persist.sys.timezone]: [America/New_York]
[persist.sys.usb.config]: [hisuite,mass_storage,adb]
[persist.sys.vndk]: [26]
[persist.sys.webview.vmsize]: [125701040]
[persist.texture_cache_opt]: [1]
[persist.touch_move_opt]: [1]
[persist.touch_vsync_opt]: [1]
[persist.video_player_opt]: [1]
[pm.dexopt.ab-ota]: [speed-profile]
[pm.dexopt.bg-dexopt]: [speed-profile]
[pm.dexopt.boot]: [verify]
[pm.dexopt.first-boot]: [quicken]
[pm.dexopt.inactive]: [verify]
[pm.dexopt.install]: [quicken]
[pm.dexopt.shared]: [speed]
[qemu.hw.mainkeys]: [0]
[ril.balong_cid]: [179769097]
[ril.force_to_set_ecc]: [usim_present]
[ril.hw_modem0.rssi]: [-104]
[ril.hw_modem1.rssi]: [-1]
[ril.modem.balong_nvm_server]: [true]
[ril.operator.numeric]: [310410]
[rild.libargs]: [-m modem0]
[rild.libargs1]: [-m modem1]
[rild.libpath]: [/vendor/lib64/libbalong-ril.so]
[rild.libpath1]: [/vendor/lib64/libbalong-ril-1.so]
[rild.rild1_ready_to_start]: [false]
[ro.adb.btstatus]: [valid]
[ro.adb.secure]: [0]
[ro.allow.mock.location]: [0]
[ro.audio.offload_wakelock]: [false]
[ro.baseband]: [unknown]
[ro.bionic.ld.warning]: [1]
[ro.blight.exempt_app_type]: [-1,1,16,24]
[ro.board.boardid]: [4654]
[ro.board.boardname]: [BOND_L24A_VN1]
[ro.board.modemid]: [3b473000]
[ro.board.platform]: [hi6250]
[ro.booking.channel.path]: [/cust_spec/xml/.booking.data.aid]
[ro.boot.avb_version]: [0.0]
[ro.boot.ddrsize]: [4]
[ro.boot.flash.locked]: [1]
[ro.boot.hardware]: [hi6250]
[ro.boot.mode]: [normal]
[ro.boot.oemmode]: [user]
[ro.boot.selinux]: [enforcing]
[ro.boot.serialno]: [4AV7N18606003017]
[ro.boot.vbmeta.avb_version]: [0.0]
[ro.boot.verifiedbootstate]: [green]
[ro.boot.veritymode]: [enforcing]
[ro.bootimage.build.date]: [Sun Jul 8 01:22:09 +03 2018]
[ro.bootimage.build.date.utc]: [1531002129]
[ro.bootimage.build.fingerprint]: [Android/treble_arm64_avN/phhgsi_arm64_a:8.1.0/OPM2.171026/180708:userdebug/test-keys]
[ro.bootloader]: [unknown]
[ro.bootmode]: [normal]
[ro.build.characteristics]: [default]
[ro.build.date]: [Sun Jul  8 01:22:09 +03 2018]
[ro.build.date.utc]: [1531002129]
[ro.build.description]: [BND-L34-user 8.0.0 HUAWEIBND-L34 332(C567) release-keys]
[ro.build.display.id]: [BND-L34 8.0.0.332(C567)]
[ro.build.fingerprint]: [Android/treble_arm64_avN/phhgsi_arm64_a:8.1.0/OPM2.171026/180708:userdebug/test-keys]
[ro.build.flavor]: [hi6250-user]
[ro.build.hide]: [false]
[ro.build.hide.matchers]: [Huawei;Honor;ARM;hi6250;Mali-T830;Mali-T880;]
[ro.build.hide.replacements]: [unknown;unknown;unknown;unknown;unknown;unknown;]
[ro.build.hide.settings]: [4;1.2 GHz;1.0GB;405 MB;4.00 GB;540 x 960;4.3;3.0.8;2.0]
[ro.build.host]: [szvphicpra02158]
[ro.build.id]: [HUAWEIBND-L34]
[ro.build.product]: [hi6250]
[ro.build.product.real.id]: [BND-L34 8.0.0.332(C567CUSTC567D1)]
[ro.build.selinux]: [0]
[ro.build.tags]: [release-keys]
[ro.build.type]: [user]
[ro.build.update_version]: [V1_2]
[ro.build.user]: [test]
[ro.build.version.all_codenames]: [REL]
[ro.build.version.base_os]: []
[ro.build.version.codename]: [REL]
[ro.build.version.incremental]: [332(C567)]
[ro.build.version.preview_sdk]: [0]
[ro.build.version.release]: [8.1.0]
[ro.build.version.sdk]: [27]
[ro.build.version.security_patch]: [2018-07-05]
[ro.camera.cos_max_back_size]: [1920x1440]
[ro.camera.cos_max_front_size]: [1920x1440]
[ro.camera.cos_ratio_count]: [1,1,0]
[ro.camera.ttpic_bg_enable]: [true]
[ro.camera.ttpic_enable]: [1]
[ro.carrier]: [unknown]
[ro.cellbroadcast.emergencyids]: [0-65534]
[ro.check.modem_network]: [true]
[ro.com.google.clientidbase]: [android-google]
[ro.com.google.clientidbase.am]: [android-huawei]
[ro.com.google.clientidbase.ms]: [android-huawei]
[ro.com.google.clientidbase.wal]: [android-huawei]
[ro.com.google.rlz_ap_whitelist]: [y0,y5,y6,y7]
[ro.com.google.rlzbrandcode]: [HWDA]
[ro.comp.chipset_version]: [Chipset-dallas 8.0.1.001(00VE)]
[ro.comp.cust_version]: [Cust-567000 8.0.0.1(0001)]
[ro.comp.product_version]: [Product-BND 8.0.0.5(0000)]
[ro.comp.version_version]: [Version-BND-L34-000000 8.0.0.1(0054)]
[ro.confg.hw_bootversion]: [System 8.0.0.046(0B2I)_BOOT]
[ro.confg.hw_fastbootversion]: [Chipset-dallas8.0.1.001(00VE)_FASTBOOT]
[ro.confg.hw_odmversion]: [Chipset-dallas 8.0.1.001(00VE)_ODM_BOND]
[ro.config.alarm_alert]: [Hassium.ogg]
[ro.config.amrwb_disable]: [true]
[ro.config.app_big_icon_size]: [170]
[ro.config.att.tone]: [true]
[ro.config.attach_apn_enabled]: [true]
[ro.config.attach_ip_type]: [IPV4V6]
[ro.config.audioEffectForRing]: [true]
[ro.config.auto_display_mode]: [false]
[ro.config.blight_power_curve]: [49,1;71,0.9;150,0.9;350,0.75;370,0.75;390,0.8;420,0.9;450,1]
[ro.config.ca_withoutcat]: [true]
[ro.config.call_creattime]: [true]
[ro.config.callinwifi]: [200,6]
[ro.config.camera.region]: [bm]
[ro.config.camera_target_track]: [true]
[ro.config.cdma_call_retry]: [false]
[ro.config.client_number]: [2]
[ro.config.colorTemperature_3d]: [true]
[ro.config.colorTemperature_K3]: [true]
[ro.config.cpu_info_display]: [Kirin 659]
[ro.config.csp_enable]: [true]
[ro.config.data_preinstalled]: [true]
[ro.config.default_commril_mode]: [ULG_MODE]
[ro.config.delay_setapn]: [true]
[ro.config.deviceStatus]: [0]
[ro.config.diag_open_volte]: [true]
[ro.config.dropdown_on_keyguard]: [false]
[ro.config.dsds_mode]: [umts_gsm]
[ro.config.dualsim_display]: [true]
[ro.config.ecc_from_cust_enable]: [true]
[ro.config.enable_rcc]: [true]
[ro.config.enable_thermal_bdata]: [true]
[ro.config.fast_switch_simslot]: [true]
[ro.config.fm.disable]: [false]
[ro.config.fp_spe_back]: [true]
[ro.config.fp_timeout_password]: [true]
[ro.config.gallery_brightness]: [false]
[ro.config.gameassist]: [1]
[ro.config.hide_weather_widget]: [true]
[ro.config.hspap_hsdpa_open]: [1]
[ro.config.huawei_smallwindow]: [0]
[ro.config.hw.att_cb_dupdetect]: [true]
[ro.config.hw.imeisv]: [true]
[ro.config.hw.security_volume]: [7]
[ro.config.hw_3G_support]: [true]
[ro.config.hw_ReduceSAR]: [true]
[ro.config.hw_RemindWifiToPdp]: [false]
[ro.config.hw_allow_rs_mms]: [true]
[ro.config.hw_always_allow_mms]: [0]
[ro.config.hw_bastet_filter]: [true]
[ro.config.hw_board_ipa]: [true]
[ro.config.hw_browser_ua2g]: [http://wap1.huawei.com/uaprof/HUAWEI_BND-L34_UAProfile.xml]
[ro.config.hw_browser_ua3g]: [http://wap1.huawei.com/uaprof/HUAWEI_BND-L34_UAProfile.xml]
[ro.config.hw_camera_bestShot]: [true]
[ro.config.hw_camera_davinci]: [true]
[ro.config.hw_cdma_proxy]: [true]
[ro.config.hw_channel_info]: [1,0,460,1]
[ro.config.hw_control_privacy]: [true]
[ro.config.hw_cta_time]: [1000]
[ro.config.hw_custverdisplay]: [true]
[ro.config.hw_dialpad_hd_on]: [false]
[ro.config.hw_dormancy_t1]: [600000]
[ro.config.hw_dsda]: [false]
[ro.config.hw_dsdspowerup]: [true]
[ro.config.hw_dts_settings]: [true]
[ro.config.hw_easywakeup]: [true]
[ro.config.hw_ecc_with_sim_card]: [true]
[ro.config.hw_fastdorm_switch]: [true]
[ro.config.hw_fastdorm_time]: [1000]
[ro.config.hw_fyuse_enable]: [false]
[ro.config.hw_globalEcc]: [true]
[ro.config.hw_glovemode_enabled]: [0]
[ro.config.hw_gps_power_track]: [true]
[ro.config.hw_hiboard_manage]: [true]
[ro.config.hw_hideSimIcon]: [false]
[ro.config.hw_hide_roaming_icon]: [true]
[ro.config.hw_hidecallforward]: [false]
[ro.config.hw_hotswap_on]: [true]
[ro.config.hw_imei_sv_enable]: [true]
[ro.config.hw_imei_sv_show_two]: [true]
[ro.config.hw_ims_as_normal]: [true]
[ro.config.hw_low_ram]: [false]
[ro.config.hw_mmi_code]: [0,00,*0,*1,*2,*3,*4,*5,*6,*7,*8,*9,#0,#1,#2,#3,#4,#5,#6,#7,#8,#9]
[ro.config.hw_music_lp]: [true]
[ro.config.hw_navigationbar]: [true]
[ro.config.hw_omacp]: [1]
[ro.config.hw_opta]: [567]
[ro.config.hw_optb]: [840]
[ro.config.hw_perfgenius]: [true]
[ro.config.hw_rcm_cert]: [true]
[ro.config.hw_restrict_gps]: [true]
[ro.config.hw_save_pin]: [true]
[ro.config.hw_screen_aspect]: [2160:1920:1080]
[ro.config.hw_sensorhub]: [true]
[ro.config.hw_showSimName]: [true]
[ro.config.hw_show_4G_Plus_icon]: [false]
[ro.config.hw_show_5_sigbar]: [true]
[ro.config.hw_show_mmiError]: [true]
[ro.config.hw_show_network_icon]: [true]
[ro.config.hw_show_vmail_time]: [true]
[ro.config.hw_sim2airplane]: [true]
[ro.config.hw_simlock_retries]: [true]
[ro.config.hw_simpleui_enable]: [4]
[ro.config.hw_smart_backlight]: [1]
[ro.config.hw_smartcardservice]: [true]
[ro.config.hw_support_clone_app]: [true]
[ro.config.hw_support_geofence]: [true]
[ro.config.hw_support_vm_ecc]: [true]
[ro.config.hw_switchdata_4G]: [true]
[ro.config.hw_sws]: [true]
[ro.config.hw_talkback_btn]: [true]
[ro.config.hw_timeformat]: [true]
[ro.config.hw_ubmenable]: [true]
[ro.config.hw_useCtrlSocket]: [true]
[ro.config.hw_use_browser_ua]: [http://wap1.huawei.com/uaprof/HUAWEI_BND-L34_UAProfile.xml]
[ro.config.hw_voicemail_sim]: [true]
[ro.config.hw_volte_dyn]: [true]
[ro.config.hw_volte_icon_rule]: [0]
[ro.config.hw_volte_on]: [true]
[ro.config.hw_volume_wakeup]: [true]
[ro.config.hw_vowifi]: [false]
[ro.config.hw_vowifi_mmsut]: [true]
[ro.config.hw_watermark]: [false]
[ro.config.hw_wifi_proxy]: [true]
[ro.config.hw_wifibridge]: [true]
[ro.config.hwinternet_audio]: [1]
[ro.config.ipv4.mtu]: [1400]
[ro.config.isSLEntitleSet]: [true]
[ro.config.is_3g_show_4g]: [true]
[ro.config.is_4g_show_4glte]: [true]
[ro.config.is_start_commril]: [true]
[ro.config.is_volumnkey_wakeup]: [true]
[ro.config.keyguard_unusedata]: [true]
[ro.config.launcher_folder_swipe]: [true]
[ro.config.launcher_matchcard]: [0]
[ro.config.linkplus.liveupdate]: [true]
[ro.config.linkplus.roaming]: [true]
[ro.config.lte_show_northamerica]: [true]
[ro.config.marketing_name]: [HUAWEI Mate SE]
[ro.config.mm_socket_ctrl]: [1]
[ro.config.mmu_en]: [1]
[ro.config.modem_number]: [2]
[ro.config.music_lp_vol]: [true]
[ro.config.music_region]: [lowfreq]
[ro.config.myloc_show_first]: [true]
[ro.config.nfc_ce_transevt]: [true]
[ro.config.notification_sound]: [Argon.ogg]
[ro.config.optimize_signal]: [true]
[ro.config.ota_update_theme]: [8]
[ro.config.plmn_to_settings]: [true]
[ro.config.remoba_license_enable]: [true]
[ro.config.report_cell_info_list]: [true]
[ro.config.ringtone]: [Orion.ogg]
[ro.config.ringtone2]: [Huawei_Tune.ogg]
[ro.config.rom_lite_old_features]: [true]
[ro.config.safety_certification]: [FCC]
[ro.config.show_always_mms_ui]: [true]
[ro.config.show_auto_brightness]: [true]
[ro.config.show_charge_dialog]: [true]
[ro.config.show_full_month]: [true]
[ro.config.show_nw_mode]: [true]
[ro.config.show_vmail_number]: [true]
[ro.config.signalplus.tas]: [true]
[ro.config.signalplus.xpass]: [true]
[ro.config.small.previewpos]: [left]
[ro.config.support_internetCall]: [false]
[ro.config.support_one_time_hota]: [true]
[ro.config.support_sdcard_crypt]: [false]
[ro.config.support_wcdma_modem1]: [false]
[ro.config.swsAlwaysActiveForSPK]: [true]
[ro.config.sws_version]: [sws3_1]
[ro.config.timeformat]: [12]
[ro.config.tty_enable_popup]: [true]
[ro.config.upgrade_appkill]: [true]
[ro.config.us_hw_privacy]: [true]
[ro.config.usa_emergency_call]: [true]
[ro.config.ussd_linkify]: [true]
[ro.config.utkShowIcon]: [true]
[ro.config.vm_prioritymode]: [2]
[ro.config.vol_steps]: [15]
[ro.config.volte_enable_popup]: [true]
[ro.config.volte_tty_supported]: [false]
[ro.config.wifi_country_code]: [true]
[ro.config.wifi_turn_off]: [true]
[ro.connectivity.chiptype]: [hisi]
[ro.connectivity.sub_chiptype]: [hi1102]
[ro.control.sleeplog]: [true]
[ro.cp_system_other_odex]: [0]
[ro.crypto.fuse_sdcard]: [true]
[ro.crypto.state]: [encrypted]
[ro.crypto.type]: [file]
[ro.cust.cdrom]: [/data/hw_init/version/region_comm/oversea/cdrom/autorun.iso]
[ro.dalvik.vm.native.bridge]: [0]
[ro.debuggable]: [0]
[ro.device_owner]: [false]
[ro.dual.sim.phone]: [true]
[ro.facebook.partnerid]: [huawei:3ed03d0-8ce2-42fa-a449-b9443817d7b4]
[ro.features_preserved_6.0]: [true]
[ro.frp.pst]: [/dev/block/bootdevice/by-name/frp]
[ro.gallery.thumbnailLoading]: [true]
[ro.hardware]: [hi6250]
[ro.hardware.audio.primary]: [hisi]
[ro.hardware.consumerir]: [hisi.hi6250]
[ro.hw.country]: [usa]
[ro.hw.custPath]: [/cust/hw/usa]
[ro.hw.feature_preload_app]: [quick_win]
[ro.hw.oemName]: [BND-L34]
[ro.hw.pp.rel_check_lftn]: [false]
[ro.hw.specialCustPath]: [/cust_spec]
[ro.hw.vendor]: [hw]
[ro.hw_disable_instantonline]: [true]
[ro.hwcamera.SlowMotionZoom]: [0]
[ro.hwcamera.brightness_range]: [4,255]
[ro.hwcamera.gps_request_delay]: [30]
[ro.hwcamera.instore.docrec]: [true]
[ro.hwcamera.portrait_mode]: [off]
[ro.hwpp.sms_resend_ind]: [true]
[ro.hwui.drop_shadow_cache_size]: [6]
[ro.hwui.gradient_cache_size]: [1]
[ro.hwui.layer_cache_size]: [48]
[ro.hwui.path_cache_size]: [32]
[ro.hwui.r_buffer_cache_size]: [8]
[ro.hwui.shape_cache_size]: [2]
[ro.hwui.text_large_cache_height]: [1024]
[ro.hwui.text_large_cache_width]: [2048]
[ro.hwui.text_small_cache_height]: [1024]
[ro.hwui.text_small_cache_width]: [1024]
[ro.hwui.texture_cache_flushrate]: [0.4]
[ro.hwui.texture_cache_size]: [72]
[ro.image]: [bootimage]
[ro.keymaster.mod]: [AOSP on ARM64]
[ro.keymaster.xxx.release]: [8.0.0]
[ro.keymaster.xxx.security_patch]: [2018-05-01]
[ro.lineage.build.version.plat.rev]: [0]
[ro.lineage.build.version.plat.sdk]: [9]
[ro.logsystem.usertype]: [6]
[ro.magic.api.version]: [0.1]
[ro.media.NxpSmartPACurve]: [BND_1206:1,-45:87,-8:93,-4:100,0.0:-15:]
[ro.modversion]: [RR-O-v6.1.0-20180708--Official]
[ro.multi.rild]: [false]
[ro.oba.version]: [20180505150604_OBA_VERSION]
[ro.oem_unlock_supported]: [1]
[ro.opengles.version]: [196610]
[ro.product.CustCVersion]: [C567]
[ro.product.CustDVersion]: [D1]
[ro.product.board]: [BND-L34]
[ro.product.brand]: [HUAWEI]
[ro.product.cpu.abi]: [arm64-v8a]
[ro.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi]
[ro.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: [arm64-v8a]
[ro.product.device]: [HWBND-H]
[ro.product.fingerprintName]: [HUAWEI-BOND]
[ro.product.first_api_level]: [24]
[ro.product.hardwareversion]: [HL4BNDM]
[ro.product.imeisv]: [31]
[ro.product.locale]: [en-US]
[ro.product.manufacturer]: [HUAWEI]
[ro.product.model]: [BND-L34]
[ro.product.name]: [BND-L34]
[ro.product.platform]: [hi6250]
[ro.product.platform.pseudonym]: [1ARB9CV]
[ro.property_service.version]: [2]
[ro.pwroff_card_if_tray_out]: [true]
[ro.quick_broadcast_cardstatus]: [false]
[ro.radio.vsim_support]: [false]
[ro.readfastboot]: [0]
[ro.revision]: [0]
[ro.ril.ecclist]: [112,911,#911,*911]
[ro.rr.build.version]: [.]
[ro.rr.device]: [phhgsi_arm64_a]
[ro.rr.releasetype]: [Official]
[ro.rr.tag]: [android-8.1.0_r36]
[ro.rr.version]: [RR-O-v6.1.0-20180708--Official]
[ro.runmode]: [normal]
[ro.secure]: [1]
[ro.serialno]: [4AV7N18606003017]
[ro.sf.lcd_density]: [480]
[ro.show_mono_audio]: [true]
[ro.show_proximity_call]: [true]
[ro.show_sound_balance]: [true]
[ro.show_talkback_tip]: [true]
[ro.show_turn_off_all_sound]: [true]
[ro.show_volume_call]: [true]
[ro.storage_manager.enabled]: [true]
[ro.sys.powerup_reason]: [NORMAL]
[ro.sys.sdcardfs]: [1]
[ro.telephony.default_network]: [9]
[ro.treble.enabled]: [true]
[ro.tui.service]: [true]
[ro.userlock]: [unlocked]
[ro.vendor.build.date]: [Sat May 5 15:10:39 CST 2018]
[ro.vendor.build.date.utc]: [1525504239]
[ro.vendor.build.fingerprint]: [HUAWEI/BND-L34/HWBND-H:8.0.0/HUAWEIBND-L34/332(C567):user/release-keys]
[ro.vendor.vndk.version]: [26.0.0]
[ro.wifi.channels]: []
[ro.zygote]: [zygote64_32]
[rr.build.type]: [Official]
[rr.ota.version]: [20180708]
[security.perf_harden]: [1]
[service.bootanim.exit]: [1]
[service.sf.present_timestamp]: [1]
[sys.boot_completed]: [1]
[sys.lineage_settings_secure_version]: [1]
[sys.logbootcomplete]: [1]
[sys.oem_unlock_allowed]: [1]
[sys.rescue_boot_count]: [1]
[sys.resettype]: [normal:coldboot]
[sys.retaildemo.enabled]: [0]
[sys.sysctl.extra_free_kbytes]: [27337]
[sys.sysctl.tcp_def_init_rwnd]: [60]
[sys.usb.config]: [adb]
[sys.usb.configfs]: [1]
[sys.usb.controller]: [hisi-usb-otg]
[sys.usb.ffs.ready]: [1]
[sys.usb.ffs_hdb.ready]: [0]
[sys.usb.state]: [adb]
[sys.userdata_is_ready]: [1]
[sys.wifitracing.started]: [1]
[trustedcore_sfs_property]: [1]
[viatel.device.at]: [spi.10.ttySPI]
[viatel.device.data]: [spi.0.ttySPI]
[viatel.device.fls]: [spi.2.ttySPI]
[viatel.device.gps]: [spi.5.ttySPI]
[viatel.device.pcv]: [spi.4.ttySPI]
[vold.crypto_unencrypt_updatedir]: [/data/update]
[vold.has_adoptable]: [0]
[vold.has_quota]: [0]
[vold.post_fs_data_done]: [1]
[wifi.interface]: [wlan0]
gonir commented 6 years ago

I am facing the same issue on my Mate SE after the Oreo update. I connect my headphone, but the audio output is on the phone speaker. Do you know if there is any fix from Huawei for this coming up, or I should just rely on LesserAudioSwitch app as suggested here. Using that app, I am able to direct the audio to my headphone. But its a pain to do this everytime. It should be intuitive for the phone to do this.

kruleucc commented 6 years ago

So, I think I found out what could be the solution/workaround for this.

I've had this problem on Huawei P10 Lite lately, so I went to test few things. To clarify, I'm using Bootleggers GSI 8.1 by Dil3mm4.

When enabling stock equalizer (com.android.musicfx), headphones works absolutely fine, even after reboots. When audiofx is disabled, the audio plays on the speakers even with headphones connected.

So, to conclude, enabling stock equalizer should fix this. I have tested headphones with mic and without mic, all worked normally after this.

Please try and report your experience.

jamuir commented 5 years ago

I see the same issue on an LG device.

running getevent confirms that audio jack connection / disconnection is being recognized.

after plugging in, audio continues to play over the speakers.

I used LesserAudioSwitch, as suggested by gonir, and with that app I can get audio to play through just the headphones.

gonir commented 5 years ago

For me, it turned out to be an issue with the kind of earphone I was using. Apparently, Apple iPhones and Androids have different wirings in their earphones, and I was using a iPhone compatible earphone with this Huawei Mate SE. Note though that my earlier phone Nexus 5 worked just fine with this earphone. Now I replaced with a Huawei earphone (or probably any Android compatible latest earphone) and it works perfectly. See this: https://mashtips.com/apple-headphone-on-android-or-windows/

phhusson commented 5 years ago

@jamuir you can check whether persist.sys.overlay.devinputjack is true If it's not, set it to true and reboot, and see if it fixes the issue. If the issue is indeed fixed, you can look at https://github.com/phhusson/device_phh_treble/blob/android-9.0/vndk-detect#L34 to fix it properly

jamuir commented 5 years ago

@phhusson : that worked! awesome. thank-you!

I will open PRs for oreo and pie to fix this.

jamuir commented 5 years ago

https://github.com/phhusson/device_phh_treble/pull/73 https://github.com/phhusson/device_phh_treble/pull/72

jamuir commented 5 years ago

@gonir : thanks for your update.

@thinkpadder1 , @Sparticuz: do you guys still see audio-jack issues on the Mate SE? can this issue be closed? My PRs are specific to LG devices and won't make any difference for you.

fajardocj commented 5 years ago

Mate SE user here. Experiencing the same issue. Enabling persist.sys.overlay.devinputjack in build.prop doesn't work.

kruleucc commented 5 years ago

@fajardocj check my last comment, try that and see if it fixes anything.

ghost commented 5 years ago

@jamuir I no longer have the device to test.

phhusson commented 4 years ago

There is a new setting in treble settings for Huawei jack detection

osmarks commented 4 years ago

I was having the same issue with an Ulefone Armor X5 (on a LineageOS GSI): no audio on the headphone jack by default, but events related to it appearing and Lesser Audio Switcher able to fix it. The Huawei headset switch switch didn't help, but setprop persist.sys.overlay.devinputjack true and rebooting did fix it.