• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

EOL [ROM][Unofficial][9.0.0][microG][signed]hardened LineageOS 16.0 for Oneplus 3/3T

Status
Not open for further replies.
Search This thread
Thread is discontinued: Please visit the my LineageOS 17.1 successor thread

This thread is dedicated to provide hardened Lineage-OS 16.0 builds with microG included for the OnePlus 3/3T with current security patches.

It is the successor of my Lineage 15.1 thread.
It may be worth to also look there, if you are looking for information.

Features of this ROM
Download here
  • Pre-installed microG and F-Droid like LineageOS for microG project (own fork)
  • Pre-installed AuroraStore
  • OTA Support
  • eSpeakTTS engine
  • Additional security hardening features listed below
  • Access to /proc/net blocked for user apps
  • Bundled netmonitor app to allow network monitoring
  • Enhanced Privacy Guard: Switches for motion sensors and other sensors
  • Cloudflare as default DNS (instead of Google)
  • Privacy-preferred default settings
  • Optional blocking of Facebook- and Google-Tracking
  • Optional disabling of captive portal detection
  • Firewall UI
  • No submission of IMSI/phone number to Google/Sony when GPS is in use
  • Default hosts file with many blocked ad/tracking sites
  • Privacy-enhanced Bromite SystemWebView
  • Additional restrictions for secondary users
  • Increased password length
  • Kernel kept up to date with ASB patches and Google kernel/common 'android-3.18' branch
  • Debloated from Oneplus blobs for Alipay, WeChatpay, Soter and IFAA
  • Native Wireguard support in shipped kernel
  • Hardened bionic lib and constified JNI method tables

Current release levels
Security string: 2021-01-05
AOSP tag: 9.0.0_r46
Bromite System Webview: M87


Source-code and build instructions
Kernel: https://github.com/lin16-microg/android_kernel_oneplus_msm8996/tree/lin-16.0-mse2
Build manifest: https://github.com/lin16-microg/local_manifests/tree/lin-16.0-microG


Installation Instructions

YOU ARE RESPONSIBLE SOLELY YOURSELF FOR ANY ACTIONS YOU DO WITH YOUR DEVICE !!!

Please note - I won't explain any single aspect (e.g. how to install 'fastboot' on your PC or troubleshoot USB connectivity issues under Windows). Search the net and consult the search engine of your choice or look here in XDA, there is plenty of information available.

Pre-Requisites
  • Have fastboot and adb installed on your PC and make sure, you can connect via USB to your device in fastboot mode and via adb
  • An unlocked bootloader (see e.g. LineageOS install instructions)
  • Flash the OxygenOS 9.0.x firmware, which is needed for LineageOS 16.0 - READ THE OP OF THIS THREAD CAREFULLY !
  • Download the most current .ZIP file of the ROM and place it to your phone's internal memory

OxygenOS 9.x Firmware
Once again: READ THE OP OF THIS THREAD CAREFULLY !
I can't explain it better and I am not going to repeat or summarize this. It really is in your interest to carefully read it - you have been notified and warned.
Please also pay attention to the last section named "Alipay, WeChatpay, Soter and IFAA" - I strongly recommend to use the debloated firmware

Install TWRP recovery
If you come from stock ROM and have just unlocked your boot loader, this is the next thing to do. I recommend to use the TWRP recovery for the OnePlus 3/3T. The following instructions are based on TWRP.
To install TWRP, download the twrp-x.x.x-x-oneplus3.img file (Note: replace "x.x.x-x" in the following instructions with the respective values from the real file name) to your PC, connect the phone via USB to your PC, get it into 'fastboot mode' and enter the following command on your PC:
Code:
fastboot flash recovery twrp-x.x.x-x-oneplus3.img
Afterwards, directly boot into 'recovery mode' (enter fastboot reboot on your PC and hold Power and vol.down) - DO NOT boot into the phone's Android system after having flashed TWRP! Once TWRP has been launched, you may decide to reboot your phone and install the ROM at any time later. But the first boot after flashing TWRP must be TWRP in recovery mode.

Advanced Wipe
ONLY perform the steps described here, if you come from Stock ROM or a different Custom ROM!

Boot into recovery mode. In TWRP, choose "Wipe", "Advanced" and spefify "Dalvik", "System", "Cache" and "Data" to be wiped. Make sure NOT to wipe "Internal memory". Swipe to confirm the deletion and get back into the main menu.

DO NOT flash Gapps!
This ROM comes with pre-installed microG. So don't attempt to flash Gapps.

Install ROM
In the TWRP main menu, choose "Install". A file manager appears to let you navigate to your internal memory (path /sdcard). Choose the .ZIP file of our ROM and swipe to flash.
If you update from a previous version of my ROM, including my LineageOS 15.1 build, you don't need to perform a wipe. If you come from a different ROM (or stock firmware), make sure that you have performed the Wipe steps above.
When finished flashing, return to the main menu, choose "Reboot" and then "System", which will cause your phone to boot into Lineage OS 16.0 - be patient, the first boot after flashing a new ROM takes quite long!


Dealing with signed builds
Please note, that this builds is signed with an own key. When you come from a different build, you cannot directly "dirty-flash" this build. You have to perform a "clean flash" (recommended), or - you do this on your own risk - you may try the below steps.

This happens at your own risk - make a backup with TWRP before!
  • Download and extract the file migration.sh from this archive
  • This file helps you to migrate from a build signed with the publicly available test keys (i.e. all builds around, which do not state that they are signed). If you come from another signed build (e.g. official LineageOS), you have to adapt the file accordingly (see below links).
  • boot into TWRP
  • push the migration.sh file to the directory /data/local on your device and mount the /system partition in TWRP (you can do so using the dedicated TWRP's menu entry)
  • launch the built-in terminal in TWRP, cd into /data/local, make migration.sh executable (chmod +x) and execute the command ./migration.sh official
  • (In case you receive an error, try sh ./migration.sh official instead)
  • flash the ROM .zip
  • wipe Cache and Dalvik/ART Cache
  • reboot system
More background information and the "theory behind" can be found in the LineageOS wiki and AOSP reference.



Bug reports:
If you have a problem, please create a post with these informations:
Original Kernel shipped with this rom:
Build Date:
And try to get log as described here
Please note that I can't and won't support issues with builds using a different kernel or Xposed.
In regards to microG, I will try my best to help when it is related to this ROM (I use it myself), but any questions of the type "the YXZ-app can't do <some sort of fancy xyz Google functionality> properly" are better asked in the respective microG forums.

Credits
AOSP project
LineageOS project
microG project
Graphene OS project
csagan5 (Bromite)
WhyOrean (Aurora)
nvertigo67 (for the modded 9.x firmware)

XDA:DevDB Information
[ROM][Unofficial][9.0.0][microG][signed]hardened LineageOS 16.0 for Oneplus 3/3T, ROM for the OnePlus 3T

Contributors
MSe1969
Source Code: https://github.com/lin16-microg/local_manifests/tree/lin-16.0-microG

ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.x
Based On: LineageOS

Version Information
Status:
Testing
Stable Release Date: 2020-12-11

Created 2020-01-14
Last Updated 2020-12-13
 
Last edited:
Change log

January 17th, 2021

  • ASB Security string 2021-01-05
  • Bromite Webview on 87.0.4280.131
  • Updated microG from upstream to 0.2.16.204713-10 (picked until 2f29b93)
  • Updated F-Droid to 1.10-alpha1-212

December 13th, 2020
  • ASB Security string 2020-12-05
  • Kernel: Upstreamed to tag ASB-2020-12-05_3.18
  • Bromite Webview on 87.0.4280.106
  • Updated microG from upstream to 0.2.14.204215-15 (picked until 720b089)
  • Updated F-Droid to 1.10-alpha1-114

November 08th, 2020
  • ASB Security string 2020-11-05
  • Kernel: Upstreamed to tag ASB-2020-11-05_3.18
  • Kernel: Fix of bug causing crashes with Wireguard in native mode
  • Fix of AOSP E-Mail widget
  • Fix for CVE-2020-15999
  • Bromite Webview on 86.0.4240.181
  • Updated microG with fixes in GCM and EN API
  • Replaced weak F-Droid signatures with ROM's V2 signatures

October 08th, 2020
  • ASB Security string 2020-10-05
  • Bromite Webview on 86.0.4240.73
  • Kernel: Upstreamed to tag ASB-2020-10-05_3.18
  • microG 0.2.12.203315 - including "Exposure notification API" for use of Covid tracing apps
  • Additional hardening (bionic and constified JNI method tables)

September 12th, 2020
  • ASB Security string 2020-09-05
  • Bromite Webview updated to 85.0.4183.86
  • Kernel: Upstreamed to tag ASB-2020-09-05_3.18
  • Kernel: Wireguard tag v1.0.20200908
  • Kernel: Fix USB-OTG unplug crash (thanks to @nvertigo67)
  • Added eSpeak TTS engine (FOSS TTS solution)

August 8th, 2020
  • ASB Security string 2020-08-05
  • Bromite Webview updated to 84.0.4147.113
  • Kernel: Upstreamed to tag ASB-2020-08-05_3.18
  • Kernel: Wireguard tag v1.0.20200729
  • Kernel: qcacld-2.0 merge of CAF tag LA.UM.7.6.r1-07800-89xx.0
  • Location of the firewall functionality has moved to Network > Data usage in Settings (latest cherry-pick from here)

July 10th, 2020
  • ASB Security string 2020-07-05
  • Kernel: Wireguard tag v1.0.20200623
  • microG: updated prebuilt GmsCore fom /e/ project (fixed FCM registration issues)
  • F-Droid updated to 1.8 / F-Droid privileged extension updated to 0.2.11
  • Aurorastore updated to 3.2.9 / AuroraServices updated to 1.0.6

June 10th, 2020
  • ASB Security string 2020-06-05
  • Kernel: Wireguard tag v1.0.20200520
  • Bromite Webview on 83.0.4103.101
  • Sepolicy: Netmonitor exception f. "Tracker Control" app

May 6th, 2020
  • ASB Security string 2020-05-05
  • Telephony: Option to set different ringtones in case of Dual SIM
  • Kernel: Native Wireguard support
  • Kernel: Merged CAF tag LA.UM.7.6.r1-07400-89xx.0 (also f. WLAN)
  • Kernel: Misc. optimizations
  • Bromite Webview on 81.0.4044.127
  • AuroraStore updated to 3.2.8

April 10th, 2020
  • ASB Security string 2020-04-05
  • Fix for CVE-2020-8597 (external/ppp)
  • Kernel: CVE-2019-10638 siphash 128bit for IP generation
  • Bromite Webview on 81.0.4044.76
  • AuroraStore updated to 3.2.4

March 16th, 2020 - interim release
  • Vendor blob update to reflect OOS 9.0.6 - vendor sec. patch level now 2019-10-01
  • Debloated from Alipay, WeChatpay, Soter and IFAA

March 7th, 2020
  • Security string 2020-03-05
  • Bromite System Webview 80.0.3987.118
  • AuroraStore 3.2.0
  • Added Netguard app (F-Droid) to SELinux domain allowing /proc/net

February 19th, 2020 - interim release
  • Kernel fix for crash when doing VoIP telephony

February 7th, 2020
  • Security string 2020-02-05
  • Bromite System Webview 79.0.3945.139
  • AuroraStore 3.1.8

January 14th, 2020
Initial feature list:
  • Pre-installed microG and F-Droid same as the LineageOS for microG project
  • Pre-installed AuroraStore (Version 3.1.7) with AuroraServices 1.0.5
  • OTA Support
  • Access to /proc/net blocked for user apps
  • Bundled netmonitor app to allow network monitoring
  • Enhanced Privacy Guard: Switches for motion sensors and other sensors
  • Cloudflare as default DNS (instead of Google)
  • Privacy-preferred default settings
  • Optional blocking of Facebook- and Google-Tracking
  • Optional disable captive portal detection
  • Firewall UI
  • No submission of IMSI/IMEI to Google/Sony when GPS is in use
  • Default hosts file with many blocked ad/tracking sites
  • Privacy-enhanced Bromite SystemWebView 79.0.3945.107
  • Additional restrictions for secondary users
  • Increased password length
 
Last edited:
Security Hardening Features - Details

1. Pre-installed microG and F-Droid
same as the LineageOS for microG project

2. Pre-installed AuroraStore
works w/o having to enable the "unknown sources feature"

3. Restrict access to /proc/net for user apps
An adapted SELinux policy prevents user apps from accessing the /proc/net pseudo file system, which can be misused to monitor and track the phone's internet traffic. For technical backgrounds, see here. For the legitimate use case of the smart phone owner him/herself monitoring the network traffic to see, what the installed apps do, the app Privacy-Friendly Network Monitor has been bundled.

4. Enhanced Privacy Guard - Sensor permission switches
An own sensor template to control access to motion sensors ('ask' mode) and all other sensors (allowed by default, but can be restricted) has been implemented into the Privacy Guard.

5. Cloudflare (instead of Google) default DNS
Cloudflare DNS has a better privacy policy than Google Public DNS and has DNS-over-TLS and DNS-over-HTTPS. In the deafult DNS settings (as fallback) and network diagnostics, the Cloudflare DNS adresses 1.1.1.1 and 1.0.0.1 are specified as defaults (instead of Google's 8.8.8.8 and 8.8.4.4)

6. Privacy-preferred default settings
When newly installed, the below settings are defaulted, different from standard LineageOS 16.0 (all settings can be changed at any time later):
  • Privacy Guard is enabled on install (proposal during Setup)
  • Anonymous LineageOS statistics disabled (proposal during Setup)
  • The standard browsing app does not get the location runtime permission automatically assigned
  • Sensitive information is hidden on the lock screen
  • Camera app: Location tagging disabled by default
Further, when a lock screen protection is set (PIN, pattern, password), the Nfc, Hotspot and airplane mode tiles require authentication and cannot be set without

7. Optional blocking of Facebook- and Google-Tracking
Settings => Network & Internet (scroll down)
When activated, all outgoing connection attempts to Facebook servers will be suppressed.
Same applies to Google, but certain apps on an internal exception list will still be able to connect (AuroraStore, microG, or e.g. NewPipe, if installed)

8. Optional disable captive portal detection
Settings => Network & Internet (scroll down)
When activated, the system will not ping a specific Google server any longer when establishing a WiFi connection to determine, whether a captive portal is being used.

9. No submission of IMSI or phone number to Google/Sony when GPS is in use
GPS also works fine, if no SIM card is present, so there obviously is no benefit for the phone holder (different from other involved parties :rolleyes:) to provide this data . . .

10. Default hosts file with many blocked ad/tracking sites
The system's hosts file redirects a comprehensive list of URLs known to be adware, tracking, etc. to 127.0.0.1 (ipv4) and ::1 (ipv6)

11. Privacy-enhanced Bromite SystemWebView
Instead of the default Chromium System Webview component, the Bromite SystemWebView is used offering more privacy, more ad blocking and less Google tracking.

12. Firewall UI
Settings => Security & Location - Firewall
Lists all apps and allows to restrict Internet access per app in regards to WiFi, mobile network or VPN
This per-app feature is a standard feature in LineageOS, but the UI to show all apps is an Extra (taken from a topic in LineageOS's Gerrit - it may, or may not, become part of the official LineageOS one day)

13. Maximum password length increased to 64

14. Additional restriction options for secondary users
- Disallow app installation option
- Disallow audio recording option
 
Last edited:
Root
The ROM does not come with root baked in. A couple of features in this ROM even reduces the usual need for root.
Nevertheless, if you need/want to grant root permissions to some of your apps, the most popular options are:
Note that I cannot and will not support any issues related to Magisk

microG initial configuration after 1st install
After the first installation of this ROM, you need to setup microG.
Please read the instructions given on the LineageOS for microG site, section "Post Install - UnifiedNlp"

Firmware
You need at least OxygenOS 9.0.x firmware, latest firmware recommended.
If you come from Oreo with 5.x firmware, got to this thread, if you come from a pie build and/pr don't mind formatting the data partition, original firmware updates (or downgrades, if needed) as flashable ZIP can be obtained e.g. here or here. Do not confuse OnePlus 3 and OnePLus 3T firmware or you will brick your device!

OTA Updates on an encrypted device
In case your device in encrypted and you have flashed apps creating "survival scripts" in /system/addon.d (e.g. Magisk), there *may* be a dependency to files in the data partition.
An OTA update until current TWRP 3.3.1 does not decrypt the data partition, as this is usually not needed - under specific circumstances however, this may lead to unwanted effects (up to a non-booting device!) during an OTA update, if such scripts aim at accessing files located in the data partition. If unsure, rather perform the update manually as dirty-flash in TWRP or - which in general is a good practice - regularly perform backups in TWRP. If you haven't flashed anything on top of my build (except for the LineageOS root addon, which is no problem), there shouldn't be any issue.
This commit in TWRP indicates, that this potential issue will be solved in future TWRP releases. With TWRP 3.4.0, you will be prompted for the decryption password also for OTA updates - if you do so, you are always on the safe side.
 
Last edited:
Isn't it also compatible with the Oneplus 3 because of the lineage os base?
Then you could move the thread in the Cross Device Development
Yes, as its based on LineageOS, it should also run on a One plus 3, if the proper firmware is present.
I don't own however an OP3 to be able to support. Isn't "cross device development" more something like treble GSI or custom kernels for device families rather than a ROM, which is very specific / suitable for two devices?
 

phoberus

Senior Member
Oct 21, 2013
963
259
Yes, as its based on LineageOS, it should also run on a One plus 3, if the proper firmware is present.
I don't own however an OP3 to be able to support. Isn't "cross device development" more something like treble GSI or custom kernels for device families rather than a ROM, which is very specific / suitable for two devices?
No, there are roms and kernels that are compatible with both OP3 and OP3T. Of course with the right firmware. You already linked to nvertigo67's firmware thread, so it should be clear that you install the appropriate firmware for the device. In the "cross device development" are much more people and users. I would ask a mod to move this thread, maybe a user with the OP3 can test the rom before. I have a OP3T
 
No, there are roms and kernels that are compatible with both OP3 and OP3T. Of course with the right firmware. You already linked to nvertigo67's firmware thread, so it should be clear that you install the appropriate firmware for the device. In the "cross device development" are much more people and users. I would ask a mod to move this thread, maybe a user with the OP3 can test the rom before. I have a OP3T
Thanks - I have requested the move.
 

0xC0ncord

New member
Feb 13, 2020
3
2
Hello,

First off thank you very much for your hard work.
I have a strange but reproducible issue here. Whenever I place or receive a SIP call, my device hard freezes. The UI stops responding for about 5 seconds before going black, and the phone stays in this state until it is hard reset. I have gotten this crash on both the native Android SIP client in the Dialer and also with Linphone. I am running microG and Magisk. I had this exact same setup before on NLOS without issues.

Original kernel: Yes
Build date: Fri Feb 7 17:49:21 CET 2020

Logcat (taken right before launching Linphone and trying to place a call):
Code:
02-13 17:33:44.139   961  2935 I MediaFocusControl: requestAudioFocus() from uid/pid 10140/4058 [email protected] callingPack=org.linphone req=4 flags=0x0 sdk=28
02-13 17:33:44.140  1879  2098 I vol.Events: writeEvent level_changed STREAM_RING 5
02-13 17:33:44.144   609   609 D AudioPolicyManagerCustom: setForceUse() usage 7, config 0, mPhoneState 3
02-13 17:33:44.148  1879  2098 I vol.Events: writeEvent level_changed STREAM_MUSIC 8
02-13 17:33:44.151  1879  2098 I vol.Events: writeEvent level_changed STREAM_ALARM 6
02-13 17:33:44.189   961  1069 W BatteryExternalStatsWorker: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}
02-13 17:33:44.208   961  4489 I ActivityManager: START u0 {cmp=org.linphone/.call.CallOutgoingActivity} from uid 10140
02-13 17:33:44.228   961  2935 I ActivityManager: START u0 {cmp=org.linphone/.call.CallOutgoingActivity} from uid 10140
02-13 17:33:44.242  4058  4058 W ActivityThread: handleWindowVisibility: no activity for token [email protected]
02-13 17:33:44.461   961  4489 I ActivityManager: START u0 {act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.android.packageinstaller cmp=com.android.packageinstaller/.permission.ui.GrantPermissionsActivity (has extras)} from uid 10140
02-13 17:33:44.483  3534  3534 W ActivityThread: handleWindowVisibility: no activity for token [email protected]
02-13 17:33:44.564  3534  3534 D OpenGLRenderer: Skia GL Pipeline
02-13 17:33:44.597  3534  4540 I Adreno  : QUALCOMM build                   : 365e321, I294de8bafa
02-13 17:33:44.597  3534  4540 I Adreno  : Build Date                       : 01/08/19
02-13 17:33:44.597  3534  4540 I Adreno  : OpenGL ES Shader Compiler Version: EV031.25.03.02
02-13 17:33:44.597  3534  4540 I Adreno  : Local Branch                     : 
02-13 17:33:44.597  3534  4540 I Adreno  : Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.7.5.R1.09.00.00.464.040
02-13 17:33:44.597  3534  4540 I Adreno  : Remote Branch                    : NONE
02-13 17:33:44.597  3534  4540 I Adreno  : Reconstruct Branch               : NOTHING
02-13 17:33:44.597  3534  4540 I Adreno  : Build Config                     : S L 6.0.7 AArch64
02-13 17:33:44.598  3534  4540 D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8996.so from current namespace instead of sphal namespace.
02-13 17:33:44.602  3534  4540 I Adreno  : PFP: 0x005ff110, ME: 0x005ff066
02-13 17:33:44.606  3534  4540 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
02-13 17:33:44.606  3534  4540 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
02-13 17:33:44.607  3534  4540 I OpenGLRenderer: Initialized EGL, version 1.4
02-13 17:33:44.607  3534  4540 D OpenGLRenderer: Swap behavior 2
02-13 17:33:44.618  3534  4540 D vndksupport: Loading /vendor/lib64/hw/[email protected] from current namespace instead of sphal namespace.
02-13 17:33:44.619  3534  4540 D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8996.so from current namespace instead of sphal namespace.
02-13 17:33:45.489  4058  4058 W libOpenSLES: Conversion from OpenSL ES positional channel mask 0x4 to Android mask 0 loses channels
02-13 17:33:45.489  4058  4058 I libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x4, using default mask 0x10 based on channel count of 1)
02-13 17:33:45.500   609  1154 E         : Request requires android.permission.RECORD_AUDIO
02-13 17:33:45.500   609  1154 E AudioPolicyIntefaceImpl: getInputForAttr permission denied: recording not allowed for uid 10140 pid 4058
02-13 17:33:45.500   609  1154 E AudioFlinger: createRecord() checkRecordThread_l failed
02-13 17:33:45.501  4058  4058 E IAudioFlinger: createRecord returned error -22
02-13 17:33:45.501  4058  4058 E AudioRecord: AudioFlinger could not create record track, status: -22
02-13 17:33:45.502  4058  4058 E libOpenSLES: android_audioRecorder_realize(0x73b5fff800) error creating AudioRecord object; status -22
02-13 17:33:45.512  4058  4058 W libOpenSLES: Leaving Object::Realize (SL_RESULT_CONTENT_UNSUPPORTED)
02-13 17:33:45.513  4058  4058 D         : PlayerBase::PlayerBase()
02-13 17:33:45.513  4058  4058 D         : TrackPlayerBase::TrackPlayerBase()
02-13 17:33:45.513  4058  4058 I libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x4, using default mask 0x1 based on channel count of 1)
02-13 17:33:45.514   552  1458 D audio_hw_extn: audio_extn_get_parameters: returns 
02-13 17:33:45.515   609  1154 I hash_map_utils: key: 'voip_out_stream_count' value: ''
02-13 17:33:45.516   552  1458 D audio_hw_extn: audio_extn_get_parameters: returns 
02-13 17:33:45.517   609  1154 I hash_map_utils: key: 'voip_sample_rate' value: ''
02-13 17:33:45.517   609  1154 D AudioPolicyManagerCustom: Set VoIP and Direct output flags for PCM format
02-13 17:33:45.518   552  1458 I audio_hw_primary: getting vr mode to 0
02-13 17:33:45.518   609  1154 I hash_map_utils: key: 'vr_audio_mode_on' value: ''
02-13 17:33:45.519   609  1154 I AudioPolicyManagerCustom: VR mode is 0, switch to primary output if request is for fast|raw
02-13 17:33:45.519   609  1154 W AudioFlinger: createTrack_l(): mismatch between requested flags (00000104) and output flags (00000006)
02-13 17:33:45.519   609  1154 D AudioFlinger: Client defaulted notificationFrames to 192 for frameCount 384
02-13 17:33:45.521  4058  4058 I AudioTrack: AUDIO_OUTPUT_FLAG_FAST successful; frameCount 0 -> 384
02-13 17:33:45.526   553   553 W AshmemAllocator: ashmem_create_region(7680) returning hidl_memory(0x723ea2c100, 7680)
02-13 17:33:45.529   553   553 W AshmemAllocator: ashmem_create_region(7680) returning hidl_memory(0x723ea2c100, 7680)
02-13 17:33:45.754   961   961 I GnssLocationProvider: WakeLock acquired by sendMessage(SET_REQUEST, 0, [email protected]92)
02-13 17:33:45.756  2968  2986 V NlpLocationProvider: onSetRequest: ProviderRequest[ON interval=+1d0h0m0s0ms lowPowerMode=false] by WorkSource{1000 android}
02-13 17:33:45.756  2968  2986 V NlpLocationProvider: using autoUpdate=true autoTime=86400000
02-13 17:33:45.770   961  1987 I WifiService: startScan uid=10052
02-13 17:33:45.822   961  1056 E AppOps  : Creating dialog box
02-13 17:33:45.872   961  2929 I OpenGLRenderer: Initialized EGL, version 1.4
02-13 17:33:45.873   961  2929 D OpenGLRenderer: Swap behavior 2
02-13 17:33:45.955  3534  4540 D OpenGLRenderer: endAllActiveAnimators on 0x73bcbf2700 (RippleDrawable) with handle 0x73bcbff1e0
02-13 17:33:46.221  4058  4536 W libOpenSLES: Conversion from OpenSL ES positional channel mask 0x4 to Android mask 0 loses channels
02-13 17:33:46.221  4058  4536 I libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x4, using default mask 0x10 based on channel count of 1)
02-13 17:33:46.225   552  1138 D audio_hw_primary: adev_open_input_stream: enter: sample_rate(48000) channel_mask(0x10) devices(0x80000004)        stream_handle(0xe7c29380) io_handle(54) source(7) format 1
02-13 17:33:46.225   552  1138 D compress_voip: voice_extn_compress_voip_pcm_prop_check: VoIP PCM property is enabled
02-13 17:33:46.225   552  1138 D compress_voip: voice_extn_compress_voip_open_input_stream: enter
02-13 17:33:46.225   552  1138 D compress_voip: voip_set_mode: enter, format=1
02-13 17:33:46.225   552  1138 D compress_voip: voip_set_mode: Derived mode = 12
02-13 17:33:46.225   552  1138 W audio_hw_utils: audio_extn_utils_update_stream_input_app_type_cfg: App type could not be selected. Falling back to default
02-13 17:33:46.229   609  4558 I AudioFlinger: AudioFlinger's thread 0xed603400 tid=4558 ready to run
02-13 17:33:46.229   552  1138 D audio_hw_primary: in_standby: enter: stream (0xe7c29380) usecase(38: compress-voip-call)
02-13 17:33:46.230   552  4186 D audio_hw_primary: in_standby: enter: stream (0xe7c29380) usecase(38: compress-voip-call)
02-13 17:33:46.233   552  1138 W EffectHAL: Effect 0xe67fe1f0 command SET_CONFIG returned status: Invalid argument
02-13 17:33:46.237   552  1138 W EffectHAL: Effect 0xe67fe1f0 command SET_CONFIG returned status: Invalid argument
02-13 17:33:46.238   552  1458 W EffectHAL: Effect 0xe739c840 command SET_CONFIG returned status: Invalid argument
02-13 17:33:46.238   609  1154 W AudioFlinger: createRecordTrack_l(): mismatch between requested flags (00000005) and input flags (00000000)
02-13 17:33:46.239   609  1154 W AudioFlinger: session id 89 not found for pid 4058
02-13 17:33:46.240   609  1154 W AudioFlinger: session id 89 not found for pid 4058
02-13 17:33:46.244   552  4186 D audio_hw_primary: adev_close_input_stream: enter:stream_handle(0xe7c29380)
02-13 17:33:46.244   552  4186 D compress_voip: voice_extn_compress_voip_close_input_stream: enter
02-13 17:33:46.244   552  4186 D compress_voip: voip_stop_call: enter, out_stream_count=0, in_stream_count=0
02-13 17:33:46.244   552  4186 E compress_voip: voip_stop_call: Could not find the usecase (38) in the list
02-13 17:33:46.244   552  4186 E audio_hw_primary: adev_close_input_stream: Compress voip input cannot be closed, error:-22
02-13 17:33:46.246   552   552 D audio_hw_primary: adev_open_input_stream: enter: sample_rate(48000) channel_mask(0x10) devices(0x80000004)        stream_handle(0xe8056e00) io_handle(62) source(7) format 1
02-13 17:33:46.246   552   552 D compress_voip: voice_extn_compress_voip_pcm_prop_check: VoIP PCM property is enabled
02-13 17:33:46.246   552   552 D compress_voip: voice_extn_compress_voip_open_input_stream: enter
02-13 17:33:46.246   552   552 D compress_voip: voip_set_mode: enter, format=1
02-13 17:33:46.246   552   552 D compress_voip: voip_set_mode: Derived mode = 12
02-13 17:33:46.246   552   552 W audio_hw_utils: audio_extn_utils_update_stream_input_app_type_cfg: App type could not be selected. Falling back to default
02-13 17:33:46.253   552  1458 W EffectHAL: Effect 0xe67fe230 command SET_CONFIG returned status: Invalid argument
02-13 17:33:46.255   609  4559 I AudioFlinger: AudioFlinger's thread 0xed603b80 tid=4559 ready to run
02-13 17:33:46.256   552  3182 D audio_hw_primary: in_standby: enter: stream (0xe8056e00) usecase(38: compress-voip-call)
02-13 17:33:46.256   552  1458 W EffectHAL: Effect 0xe67fe230 command SET_CONFIG returned status: Invalid argument
02-13 17:33:46.257   552  3182 W EffectHAL: Effect 0xe67fe170 command SET_CONFIG returned status: Invalid argument
02-13 17:33:46.274   552  1470 D audio_hw_primary: in_set_parameters: enter: kvpairs=bottom=;input_source=7;routing=-2147483644
02-13 17:33:46.277   609  1526 I SoundTriggerHwService::Module: onCallbackEvent no clients
02-13 17:33:46.284   552  4561 D compress_voip: voice_extn_compress_voip_start_input_stream: enter
02-13 17:33:46.284   552  4561 D compress_voip: voip_start_call: enter
02-13 17:33:46.284   552  4561 D audio_hw_primary: select_devices for use case (compress-voip-call)
02-13 17:33:46.285   552  4561 D audio_hw_primary: select_devices: out_snd_device(15: voice-handset) in_snd_device(99: voice-dmic-ef)
02-13 17:33:46.285   552  4561 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 38 device (voice-handset)
02-13 17:33:46.285   552  4561 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(1) new_snd_devices(0)
02-13 17:33:46.285   552  4561 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 15
02-13 17:33:46.285   552  4561 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 38 device (voice-handset)
02-13 17:33:46.285   552  4561 W msm8974_platform: platform_check_codec_backend_cfg:becf: afe:Use default bw and sr for voice/voip calls 
02-13 17:33:46.285   552  4561 D msm8974_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k)
02-13 17:33:46.285   552  4561 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 and sample rate: 48000
02-13 17:33:46.285   552  4561 D audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
02-13 17:33:46.285   552  4561 D audio_hw_primary: check_usecases_codec_backend:becf: (65) check_usecases curr device: voice-handset, usecase device:handset backends match 1
02-13 17:33:46.285   552  4561 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases (low-latency-playback) is active on (handset) - disabling ..
02-13 17:33:46.285   552  4561 D audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback
02-13 17:33:46.323   552  4561 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_info->id 1 of type 0 for Event 2, with Raise=0
02-13 17:33:46.323   552  4561 E msm8974_platform: platform_check_backends_match: Invalid snd_device = 
02-13 17:33:46.323   552  4561 D audio_hw_primary: check_usecases_codec_backend:becf: (65) check_usecases curr device: voice-handset, usecase device: backends match 0
02-13 17:33:46.323   552  4561 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 1
02-13 17:33:46.323   552  4561 D msm8974_platform: platform_split_snd_device: snd_device(1) num devices(0) new_snd_devices(0)
02-13 17:33:46.323   552  4561 D hardware_info: hw_info_append_hw_type : device_name = handset
02-13 17:33:46.324   552  4561 D audio_hw_primary: disable_snd_device: snd_device(1: handset)
02-13 17:33:46.324   552  4561 D msm8974_platform: platform_split_snd_device: snd_device(1) num devices(0) new_snd_devices(0)
02-13 17:33:46.328   552  4561 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x1 of type 0 for Event 0, with Raise=0
02-13 17:33:46.328   552  4561 D msm8974_platform: platform_split_snd_device: snd_device(1) num devices(0) new_snd_devices(0)
02-13 17:33:46.328   552  4561 D hardware_info: hw_info_append_hw_type : device_name = voice-handset
02-13 17:33:46.328   552  4561 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(0) new_snd_devices(0)
02-13 17:33:46.328   552  4561 D audio_hw_primary: enable_snd_device: snd_device(15: voice-handset)
02-13 17:33:46.328   552  4561 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0xf of type 0 for Event 1, with Raise=0
02-13 17:33:46.328   552  4561 D audio_route: Apply path: voice-handset
02-13 17:33:46.332   552  4561 D audio_hw_primary: check_usecases_codec_backend:becf: enabling usecase (low-latency-playback) on (voice-handset)
02-13 17:33:46.332   552  4561 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_info->id 1 of type 0 for Event 3, with Raise=0
02-13 17:33:46.332   552  4561 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->out_snd_device voice-handset
02-13 17:33:46.332   552  4561 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(0) new_snd_devices(0)
02-13 17:33:46.333   552  4561 E msm8974_platform: platform_get_snd_device_backend_index: BE DAI Name Table is not present
02-13 17:33:46.333   552  4561 E audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device voice-handset ret=-14
02-13 17:33:46.333   552  4561 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
02-13 17:33:46.333   552  4561 I audio_hw_utils: send_app_type_cfg_for_device PLAYBACK app_type 69937, acdb_dev_id 7, sample_rate 48000, snd_device_be_idx -14
02-13 17:33:46.333   552  4561 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(1) new_snd_devices(0)
02-13 17:33:46.333   552  4561 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 7, path = 0, app id = 0x11131, sample rate = 48000
02-13 17:33:46.333   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
02-13 17:33:46.333   552  4561 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
02-13 17:33:46.333   552  4561 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
02-13 17:33:46.334   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
02-13 17:33:46.334   552  4561 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 7, Topology Id 112fc
02-13 17:33:46.334   552  4561 D         : Failed to fetch the lookup information of the device 00000007 
02-13 17:33:46.334   552  4561 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
02-13 17:33:46.334   552  4561 D         : Failed to fetch the lookup information of the device 00000007 
02-13 17:33:46.334   552  4561 E ACDB-LOADER: Error: ACDB AFE returned = -19
02-13 17:33:46.334   552  4561 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 7 path = 0
02-13 17:33:46.334   552  4561 D audio_hw_primary: enable_audio_route: apply mixer and update path: low-latency-playback
02-13 17:33:46.334   552  4561 D audio_route: Apply path: low-latency-playback
02-13 17:33:46.365   552  4561 D hardware_info: hw_info_append_hw_type : device_name = voice-handset
02-13 17:33:46.365   552  4561 I msm8974_platform: platform_check_and_set_capture_codec_backend_cfg:txbecf: afe: bitwidth 16, samplerate 48000, channel 1 format 1, backend_idx 7 usecase = 38 device (voice-dmic-ef)
02-13 17:33:46.365   552  4561 I msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Codec selected backend: 7 current bit width: 16 and sample rate: 48000, channels 1 format 1
02-13 17:33:46.365   552  4561 W msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Use default bw and sr for voice/voip calls and for unprocessed/camera source
02-13 17:33:46.365   552  4561 I msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Codec selected backend: 7 updated bit width: 16 and sample rate: 48000
02-13 17:33:46.365   552  4561 D audio_hw_primary: check_usecases_capture_codec_backend:becf: force routing 0
02-13 17:33:46.365   552  4561 D hardware_info: hw_info_append_hw_type : device_name = voice-dmic-ef
02-13 17:33:46.365   552  4561 D msm8974_platform: platform_split_snd_device: snd_device(99) num devices(0) new_snd_devices(0)
02-13 17:33:46.365   552  4561 D audio_hw_primary: enable_snd_device: snd_device(99: voice-dmic-ef)
02-13 17:33:46.366   552  4561 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x63 of type 1 for Event 1, with Raise=1
02-13 17:33:46.366   552  4561 D sound_trigger_platform: platform_stdev_check_and_update_concurrency: concurrency active 0, tx 1, rx 0, concurrency session_allowed 0
02-13 17:33:46.366   552  4561 D audio_route: Apply path: voice-dmic-ef
02-13 17:33:46.380   552  4561 D ACDB-LOADER: ACDB -> send_voice_cal, acdb_rx = 7, acdb_tx = 41, feature_set = 0
02-13 17:33:46.380   552  4561 D ACDB-LOADER: ACDB -> send_voice_rx_topology
02-13 17:33:46.380   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOCPROC_COMMON_TOPOLOGY_ID
02-13 17:33:46.380   552  4561 D ACDB-LOADER: ACDB -> send_voice_tx_topology
02-13 17:33:46.380   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOCPROC_COMMON_TOPOLOGY_ID
02-13 17:33:46.380   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_DATA
02-13 17:33:46.380   552  4561 D ACDB-LOADER: ACDB -> AUDIO_SET_SIDETONE_CAL
02-13 17:33:46.380   552  4561 D ACDB-LOADER: ACDB -> send_voice_columns, rxacdb_id 7, txacdb_id 41, table 5
02-13 17:33:46.380   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_COLUMNS_INFO_V2
02-13 17:33:46.380   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_STATIC_TABLE_SIZE
02-13 17:33:46.382   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_STATIC_TABLE
02-13 17:33:46.384   552  4561 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_CAL
02-13 17:33:46.384   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_DEVICE_CFG
02-13 17:33:46.384   552  4561 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_DEV_CFG_CAL
02-13 17:33:46.384   552  4561 D ACDB-LOADER: ACDB -> send_voice_columns, rxacdb_id 7, txacdb_id 41, table 4
02-13 17:33:46.384   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_COLUMNS_INFO_V2
02-13 17:33:46.384   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_DYNAMIC_TABLE_SIZE
02-13 17:33:46.388   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_DYNAMIC_TABLE
02-13 17:33:46.394   552  4561 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_VOL_CAL
02-13 17:33:46.394   552  4561 D ACDB-LOADER: ACDB -> send_voice_columns, rxacdb_id 7, txacdb_id 41, table 6
02-13 17:33:46.394   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_COLUMNS_INFO_V2
02-13 17:33:46.394   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_STREAM_STATIC_TABLE_SIZE
02-13 17:33:46.395   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_STREAM_STATIC_TABLE
02-13 17:33:46.395   552  4561 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_STREAM_CAL
02-13 17:33:46.395   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
02-13 17:33:46.395   552  4561 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 41, Topology Id 112fb
02-13 17:33:46.395   552  4561 D         : Failed to fetch the lookup information of the device 00000029 
02-13 17:33:46.395   552  4561 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
02-13 17:33:46.395   552  4561 D         : Failed to fetch the lookup information of the device 00000029 
02-13 17:33:46.395   552  4561 E ACDB-LOADER: Error: ACDB AFE returned = -19
02-13 17:33:46.395   552  4561 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
02-13 17:33:46.395   552  4561 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 7, Topology Id 112fc
02-13 17:33:46.395   552  4561 D         : Failed to fetch the lookup information of the device 00000007 
02-13 17:33:46.395   552  4561 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
02-13 17:33:46.395   552  4561 D         : Failed to fetch the lookup information of the device 00000007 
02-13 17:33:46.395   552  4561 E ACDB-LOADER: Error: ACDB AFE returned = -19
02-13 17:33:46.395   552  4561 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 41 path = 1
02-13 17:33:46.395   552  4561 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 7 path = 0
02-13 17:33:46.395   552  4561 D ACDB-LOADER: ACDB -> Sent VocProc Cal!
02-13 17:33:46.395   552  4561 E audio_hw_utils: audio_extn_utils_update_stream_app_type_cfg_for_usecase: app type cfg not supported for usecase type (3)
02-13 17:33:46.395   552  4561 I audio_hw_utils: audio_extn_utils_send_app_type_cfg: not a playback/capture path, no need to cfg app type
02-13 17:33:46.395   552  4561 D audio_hw_primary: enable_audio_route: apply mixer and update path: compress-voip-call
02-13 17:33:46.395   552  4561 D audio_route: Apply path: compress-voip-call
02-13 17:33:46.397   552  4561 D audio_hw_primary: select_devices: done
02-13 17:33:46.397   552  4561 D compress_voip: voip_start_call: Opening PCM capture device card_id(0) device_id(3)
02-13 17:33:46.402   552  4561 D compress_voip: voip_start_call: Opening PCM playback device card_id(0) device_id(3)
02-13 17:33:46.455   552  4561 D voice   : voice_set_sidetone: enable, out_snd_device: 15
02-13 17:33:46.455   552  4561 D audio_route: Apply path: sidetone-handset

Thank you!
 
G

GuestD2123

Guest
Hi.
Really liking this build so far. Just wanted to chime in and confirm this works on my OnePlus 3 perfectly with no issues. Thanks again :good:
 
Hello,

First off thank you very much for your hard work.
I have a strange but reproducible issue here. Whenever I place or receive a SIP call, my device hard freezes. The UI stops responding for about 5 seconds before going black, and the phone stays in this state until it is hard reset. I have gotten this crash on both the native Android SIP client in the Dialer and also with Linphone. I am running microG and Magisk. I had this exact same setup before on NLOS without issues.

Original kernel: Yes
Build date: Fri Feb 7 17:49:21 CET 2020

Logcat (taken right before launching Linphone and trying to place a call):


Thank you!
Hi, thanks for reporting your issue, I may need some time to dig in to that.
Just one thing, which I have immediately spotted: The linphone app (which you used to create the logcat) did not have the RECORD_AUDIO permission - could you pls. have a closer look on that aspect?
 

0xC0ncord

New member
Feb 13, 2020
3
2
Hi, thanks for reporting your issue, I may need some time to dig in to that.
Just one thing, which I have immediately spotted: The linphone app (which you used to create the logcat) did not have the RECORD_AUDIO permission - could you pls. have a closer look on that aspect?
That's odd. The app's permissions in Settings shows it has permission, but for good measure I went ahead and used the shell to grant the permission manually with
Code:
pm grant "org.linphone" android.permission.RECORD_AUDIO
The same type of crash occurs afterwards, though.

Below is another logcat after doing this, taken right before trying to initiate a call:
Code:
02-16 10:10:51.779   498   533 W Netd    : No subsystem found in netlink event
02-16 10:10:52.827   592  2282 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
02-16 10:10:53.910   977  1721 D ConnectivityService: handleLingerComplete for NetworkAgentInfo [MOBILE (IWLAN) - 103]
02-16 10:10:54.829   592  2282 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
02-16 10:10:56.832   592  2282 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
02-16 10:10:58.618   977  2202 I WifiService: acquireWifiLock uid=10140 lockMode=3
02-16 10:10:58.620   977  2202 I WifiService: acquireMulticastLock uid=10140
02-16 10:10:58.623  1941  1941 E wpa_supplicant: wpa_driver_nl80211_driver_cmd: failed to issue private commands
02-16 10:10:58.624   977  1706 E SupplicantStaIfaceHal: ISupplicantStaIface.addRxFilter failed: {.code = FAILURE_UNKNOWN, .debugMessage = }
02-16 10:10:58.626   556  1490 D audio_hw_primary: adev_set_mode: mode 3
02-16 10:10:58.627   613  1194 D AudioPolicyManagerCustom: setPhoneState() state 3
02-16 10:10:58.630   556  1490 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=1
02-16 10:10:58.630   556  1490 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
02-16 10:10:58.635   556   556 D audio_hw_primary: out_set_parameters: enter: usecase(0: deep-buffer-playback) kvpairs: routing=1
02-16 10:10:58.658   613   613 D AudioPolicyManagerCustom: setForceUse() usage 7, config 0, mPhoneState 3
02-16 10:10:58.658  1833  2019 I vol.Events: writeEvent level_changed STREAM_SYSTEM 5
02-16 10:10:58.658  4371  4371 W AudioManager: Use of stream types is deprecated for operations other than volume control
02-16 10:10:58.658  4371  4371 W AudioManager: See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case
02-16 10:10:58.660   977  4358 I MediaFocusControl: requestAudioFocus() from uid/pid 10140/4371 [email protected] callingPack=org.linphone req=4 flags=0x0 sdk=28
02-16 10:10:58.667  1833  2019 I vol.Events: writeEvent level_changed STREAM_RING 5
02-16 10:10:58.669  1833  2019 I vol.Events: writeEvent level_changed STREAM_MUSIC 8
02-16 10:10:58.671  1833  2019 I vol.Events: writeEvent level_changed STREAM_ALARM 6
02-16 10:10:58.673   977  2202 I ActivityManager: START u0 {cmp=org.linphone/.call.CallOutgoingActivity} from uid 10140
02-16 10:10:58.707  4371  4371 W ActivityThread: handleWindowVisibility: no activity for token [email protected]
02-16 10:10:58.835   592  2282 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
02-16 10:10:58.695   977  2202 I ActivityManager: START u0 {cmp=org.linphone/.call.CallOutgoingActivity} from uid 10140
02-16 10:10:59.397   498   532 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'INTERFACE' not found
02-16 10:10:59.397   498   532 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'STATE' not found
02-16 10:10:59.397   498   532 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
02-16 10:10:59.397   498   532 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
02-16 10:10:59.838   977  1084 E AppOps  : Creating dialog box
02-16 10:10:59.882   977  2872 I Adreno  : QUALCOMM build                   : 365e321, I294de8bafa
02-16 10:10:59.882   977  2872 I Adreno  : Build Date                       : 01/08/19
02-16 10:10:59.882   977  2872 I Adreno  : OpenGL ES Shader Compiler Version: EV031.25.03.02
02-16 10:10:59.882   977  2872 I Adreno  : Local Branch                     : 
02-16 10:10:59.882   977  2872 I Adreno  : Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.7.5.R1.09.00.00.464.040
02-16 10:10:59.882   977  2872 I Adreno  : Remote Branch                    : NONE
02-16 10:10:59.882   977  2872 I Adreno  : Reconstruct Branch               : NOTHING
02-16 10:10:59.882   977  2872 I Adreno  : Build Config                     : S L 6.0.7 AArch64
02-16 10:10:59.891   977  2872 D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8996.so from current namespace instead of sphal namespace.
02-16 10:10:59.896   977  2872 I Adreno  : PFP: 0x005ff110, ME: 0x005ff066
02-16 10:10:59.900   977  2872 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
02-16 10:10:59.900   977  2872 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
02-16 10:10:59.902   977  2872 I OpenGLRenderer: Initialized EGL, version 1.4
02-16 10:10:59.902   977  2872 D OpenGLRenderer: Swap behavior 2
02-16 10:11:00.842   592  2282 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
02-16 10:11:01.101   498   533 W Netd    : No subsystem found in netlink event
02-16 10:11:01.385  2131  2272 D MmsService: getAutoPersisting
02-16 10:11:01.401  2881  2881 V SmsReceiver: onReceive
02-16 10:11:01.407  2881  2934 V ReceiveSms$buildObserva: [email protected]e4d, drop=false
02-16 10:11:01.592  2881  2934 E ActivityThread: Failed to find provider info for com.teslacoilsw.notifier
02-16 10:11:01.806  1833  1833 D StatusBar: disable<e i a s b h r c s > disable2<q i n >
02-16 10:11:01.848  1833  1833 W StaticLayout: maxLineHeight should not be -1.  maxLines:1 lineCount:1
02-16 10:11:01.849  1833  1833 I chatty  : uid=10010(com.android.systemui) identical 2 lines
02-16 10:11:01.849  1833  1833 W StaticLayout: maxLineHeight should not be -1.  maxLines:1 lineCount:1
02-16 10:11:02.044   977  2872 D OpenGLRenderer: endAllActiveAnimators on 0x7ecaab2f00 (RippleDrawable) with handle 0x7edeff56a0
02-16 10:11:02.058   977  4358 I ActivityManager: START u0 {cmp=org.linphone/.call.CallActivity} from uid 10140
02-16 10:11:02.090  4371  4371 W libOpenSLES: Conversion from OpenSL ES positional channel mask 0x4 to Android mask 0 loses channels
02-16 10:11:02.090  4371  4371 I libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x4, using default mask 0x10 based on channel count of 1)
02-16 10:11:02.093   556  1490 D audio_hw_primary: adev_open_input_stream: enter: sample_rate(48000) channel_mask(0x10) devices(0x80000004)        stream_handle(0xf3290000) io_handle(54) source(7) format 1
02-16 10:11:02.093   556  1490 D compress_voip: voice_extn_compress_voip_pcm_prop_check: VoIP PCM property is enabled
02-16 10:11:02.093   556  1490 D compress_voip: voice_extn_compress_voip_open_input_stream: enter
02-16 10:11:02.093   556  1490 D compress_voip: voip_set_mode: enter, format=1
02-16 10:11:02.093   556  1490 D compress_voip: voip_set_mode: Derived mode = 12
02-16 10:11:02.093   556  1490 W audio_hw_utils: audio_extn_utils_update_stream_input_app_type_cfg: App type could not be selected. Falling back to default
02-16 10:11:02.094   613  4817 I AudioFlinger: AudioFlinger's thread 0xe7483040 tid=4817 ready to run
02-16 10:11:02.094   556  1490 D audio_hw_primary: in_standby: enter: stream (0xf3290000) usecase(38: compress-voip-call)
02-16 10:11:02.095   556   556 D audio_hw_primary: in_standby: enter: stream (0xf3290000) usecase(38: compress-voip-call)
02-16 10:11:02.097   556   556 W EffectHAL: Effect 0xf36c3680 command SET_CONFIG returned status: Invalid argument
02-16 10:11:02.099   556   556 W EffectHAL: Effect 0xf36c3680 command SET_CONFIG returned status: Invalid argument
02-16 10:11:02.099   556   556 W EffectHAL: Effect 0xf36c37f0 command SET_CONFIG returned status: Invalid argument
02-16 10:11:02.100   613   613 W AudioFlinger: createRecordTrack_l(): mismatch between requested flags (00000005) and input flags (00000000)
02-16 10:11:02.100   613   613 W AudioFlinger: session id 9 not found for pid 4371
02-16 10:11:02.101   613   613 W AudioFlinger: session id 9 not found for pid 4371
02-16 10:11:02.105   556  1490 D audio_hw_primary: adev_close_input_stream: enter:stream_handle(0xf3290000)
02-16 10:11:02.105   556  1490 D compress_voip: voice_extn_compress_voip_close_input_stream: enter
02-16 10:11:02.105   556  1490 D compress_voip: voip_stop_call: enter, out_stream_count=0, in_stream_count=0
02-16 10:11:02.105   556  1490 E compress_voip: voip_stop_call: Could not find the usecase (38) in the list
02-16 10:11:02.106   556  1490 E audio_hw_primary: adev_close_input_stream: Compress voip input cannot be closed, error:-22
02-16 10:11:02.108   556  1490 D audio_hw_primary: adev_open_input_stream: enter: sample_rate(48000) channel_mask(0x10) devices(0x80000004)        stream_handle(0xf3290000) io_handle(62) source(7) format 1
02-16 10:11:02.108   556  1490 D compress_voip: voice_extn_compress_voip_pcm_prop_check: VoIP PCM property is enabled
02-16 10:11:02.108   556  1490 D compress_voip: voice_extn_compress_voip_open_input_stream: enter
02-16 10:11:02.108   556  1490 D compress_voip: voip_set_mode: enter, format=1
02-16 10:11:02.108   556  1490 D compress_voip: voip_set_mode: Derived mode = 12
02-16 10:11:02.108   556  1490 W audio_hw_utils: audio_extn_utils_update_stream_input_app_type_cfg: App type could not be selected. Falling back to default
02-16 10:11:02.109   613  4818 I AudioFlinger: AudioFlinger's thread 0xe7483140 tid=4818 ready to run
02-16 10:11:02.110   556  1490 D audio_hw_primary: in_standby: enter: stream (0xf3290000) usecase(38: compress-voip-call)
02-16 10:11:02.111   556  1490 W EffectHAL: Effect 0xf328f040 command SET_CONFIG returned status: Invalid argument
02-16 10:11:02.112   556  1490 D audio_hw_primary: in_standby: enter: stream (0xf3290000) usecase(38: compress-voip-call)
02-16 10:11:02.114   556  1490 W EffectHAL: Effect 0xf328f040 command SET_CONFIG returned status: Invalid argument
02-16 10:11:02.114   556  1490 W EffectHAL: Effect 0xf328f0d0 command SET_CONFIG returned status: Invalid argument
02-16 10:11:02.122   556  1490 D audio_hw_primary: in_set_parameters: enter: kvpairs=bottom=;input_source=7;routing=-2147483644
02-16 10:11:02.124   613  1513 I SoundTriggerHwService::Module: onCallbackEvent no clients
02-16 10:11:02.125  4371  4371 D         : PlayerBase::PlayerBase()
02-16 10:11:02.125  4371  4371 D         : TrackPlayerBase::TrackPlayerBase()
02-16 10:11:02.126  4371  4371 I libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x4, using default mask 0x1 based on channel count of 1)
02-16 10:11:02.126   556  4819 D compress_voip: voice_extn_compress_voip_start_input_stream: enter
02-16 10:11:02.126   556  4819 D compress_voip: voip_start_call: enter
02-16 10:11:02.126   556  4819 D audio_hw_primary: select_devices for use case (compress-voip-call)
02-16 10:11:02.126   556  4819 D audio_hw_primary: select_devices: out_snd_device(15: voice-handset) in_snd_device(99: voice-dmic-ef)
02-16 10:11:02.126   556  4819 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 38 device (voice-handset)
02-16 10:11:02.126   556  4819 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(1) new_snd_devices(0)
02-16 10:11:02.126   556  4819 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 15
02-16 10:11:02.126   556  4819 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 38 device (voice-handset)
02-16 10:11:02.126   556  4819 W msm8974_platform: platform_check_codec_backend_cfg:becf: afe:Use default bw and sr for voice/voip calls 
02-16 10:11:02.126   556  4819 D msm8974_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k)
02-16 10:11:02.126   556  4819 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 and sample rate: 48000
02-16 10:11:02.126   556  4819 D audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
02-16 10:11:02.126   556  4819 E msm8974_platform: platform_check_backends_match: Invalid snd_device = 
02-16 10:11:02.126   556  4819 D audio_hw_primary: check_usecases_codec_backend:becf: (65) check_usecases curr device: voice-handset, usecase device: backends match 0
02-16 10:11:02.126   556  4819 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0
02-16 10:11:02.126   556  4819 D hardware_info: hw_info_append_hw_type : device_name = voice-handset
02-16 10:11:02.126   556  4819 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(0) new_snd_devices(0)
02-16 10:11:02.126   556  4819 D audio_hw_primary: enable_snd_device: snd_device(15: voice-handset)
02-16 10:11:02.126   556  4819 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0xf of type 0 for Event 1, with Raise=0
02-16 10:11:02.126   556  4819 D audio_route: Apply path: voice-handset
02-16 10:11:02.130   556  4819 I msm8974_platform: platform_check_and_set_capture_codec_backend_cfg:txbecf: afe: bitwidth 16, samplerate 48000, channel 1 format 1, backend_idx 7 usecase = 38 device (voice-dmic-ef)
02-16 10:11:02.130   556  4819 I msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Codec selected backend: 7 current bit width: 16 and sample rate: 48000, channels 1 format 1
02-16 10:11:02.131   556  4819 W msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Use default bw and sr for voice/voip calls and for unprocessed/camera source
02-16 10:11:02.131   556  4819 I msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Codec selected backend: 7 updated bit width: 16 and sample rate: 48000
02-16 10:11:02.131   556  4819 D audio_hw_primary: check_usecases_capture_codec_backend:becf: force routing 0
02-16 10:11:02.131   556  4819 D hardware_info: hw_info_append_hw_type : device_name = voice-dmic-ef
02-16 10:11:02.131   556  4819 D msm8974_platform: platform_split_snd_device: snd_device(99) num devices(0) new_snd_devices(0)
02-16 10:11:02.131   556  4819 D audio_hw_primary: enable_snd_device: snd_device(99: voice-dmic-ef)
02-16 10:11:02.131   556  4819 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x63 of type 1 for Event 1, with Raise=1
02-16 10:11:02.131   556  4819 D sound_trigger_platform: platform_stdev_check_and_update_concurrency: concurrency active 0, tx 1, rx 0, concurrency session_allowed 0
02-16 10:11:02.131   556  4819 D audio_route: Apply path: voice-dmic-ef
02-16 10:11:02.141   556  4819 D ACDB-LOADER: ACDB -> send_voice_cal, acdb_rx = 7, acdb_tx = 41, feature_set = 0
02-16 10:11:02.141   556  4819 D ACDB-LOADER: ACDB -> send_voice_rx_topology
02-16 10:11:02.141   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOCPROC_COMMON_TOPOLOGY_ID
02-16 10:11:02.141   556  4819 D ACDB-LOADER: ACDB -> send_voice_tx_topology
02-16 10:11:02.141   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOCPROC_COMMON_TOPOLOGY_ID
02-16 10:11:02.141   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_DATA
02-16 10:11:02.141   556  4819 D ACDB-LOADER: ACDB -> AUDIO_SET_SIDETONE_CAL
02-16 10:11:02.141   556  4819 D ACDB-LOADER: ACDB -> send_voice_columns, rxacdb_id 7, txacdb_id 41, table 5
02-16 10:11:02.141   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_COLUMNS_INFO_V2
02-16 10:11:02.141   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_STATIC_TABLE_SIZE
02-16 10:11:02.141   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_STATIC_TABLE
02-16 10:11:02.142   556  4819 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_CAL
02-16 10:11:02.142   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_DEVICE_CFG
02-16 10:11:02.142   556  4819 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_DEV_CFG_CAL
02-16 10:11:02.142   556  4819 D ACDB-LOADER: ACDB -> send_voice_columns, rxacdb_id 7, txacdb_id 41, table 4
02-16 10:11:02.142   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_COLUMNS_INFO_V2
02-16 10:11:02.142   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_DYNAMIC_TABLE_SIZE
02-16 10:11:02.145   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_DYNAMIC_TABLE
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_VOL_CAL
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> send_voice_columns, rxacdb_id 7, txacdb_id 41, table 6
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_COLUMNS_INFO_V2
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_STREAM_STATIC_TABLE_SIZE
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_STREAM_STATIC_TABLE
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_STREAM_CAL
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 41, Topology Id 112fb
02-16 10:11:02.149   556  4819 D         : Failed to fetch the lookup information of the device 00000029 
02-16 10:11:02.149   556  4819 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
02-16 10:11:02.149   556  4819 D         : Failed to fetch the lookup information of the device 00000029 
02-16 10:11:02.149   556  4819 E ACDB-LOADER: Error: ACDB AFE returned = -19
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 7, Topology Id 112fc
02-16 10:11:02.149   556  4819 D         : Failed to fetch the lookup information of the device 00000007 
02-16 10:11:02.149   556  4819 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
02-16 10:11:02.149   556  4819 D         : Failed to fetch the lookup information of the device 00000007 
02-16 10:11:02.149   556  4819 E ACDB-LOADER: Error: ACDB AFE returned = -19
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 41 path = 1
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 7 path = 0
02-16 10:11:02.149   556  4819 D ACDB-LOADER: ACDB -> Sent VocProc Cal!
02-16 10:11:02.149   556  4819 E audio_hw_utils: audio_extn_utils_update_stream_app_type_cfg_for_usecase: app type cfg not supported for usecase type (3)
02-16 10:11:02.149   556  4819 I audio_hw_utils: audio_extn_utils_send_app_type_cfg: not a playback/capture path, no need to cfg app type
02-16 10:11:02.149   556  4819 D audio_hw_primary: enable_audio_route: apply mixer and update path: compress-voip-call
02-16 10:11:02.149   556  4819 D audio_route: Apply path: compress-voip-call
02-16 10:11:02.151   556  4819 D audio_hw_primary: select_devices: done
02-16 10:11:02.151   556  4819 D compress_voip: voip_start_call: Opening PCM capture device card_id(0) device_id(3)
02-16 10:11:02.152   556  4819 D compress_voip: voip_start_call: Opening PCM playback device card_id(0) device_id(3)
02-16 10:11:02.154   619  1089 W SurfaceFlinger: Attempting to set client state on removed layer: Dim Layer for - mAboveAppWindowsContainers#0
02-16 10:11:02.155   619  1089 W SurfaceFlinger: Attempting to destroy on removed layer: Dim Layer for - mAboveAppWindowsContainers#0
02-16 10:11:02.156   977  1512 E AppOps  : Operation not started: uid=1000 pkg=android op=SYSTEM_ALERT_WINDOW
02-16 10:11:02.158   619  1103 W SurfaceFlinger: Attempting to destroy on removed layer: b4fea43 Permission info: Linphone#0
02-16 10:11:02.256   556  4819 D voice   : voice_set_sidetone: enable, out_snd_device: 15
02-16 10:11:02.257   556  4819 D audio_route: Apply path: sidetone-handset
02-16 10:11:02.259   556  1490 D audio_hw_extn: audio_extn_get_parameters: returns 
02-16 10:11:02.259   613  1865 I hash_map_utils: key: 'voip_out_stream_count' value: ''
02-16 10:11:02.260   556  1186 D audio_hw_extn: audio_extn_get_parameters: returns 
02-16 10:11:02.260   613  1865 I hash_map_utils: key: 'voip_sample_rate' value: ''
02-16 10:11:02.261   613  1865 D AudioPolicyManagerCustom: Set VoIP and Direct output flags for PCM format
02-16 10:11:02.261   556  1186 I audio_hw_primary: getting vr mode to 0
02-16 10:11:02.261   613  1865 I hash_map_utils: key: 'vr_audio_mode_on' value: ''
02-16 10:11:02.262   613  1865 I AudioPolicyManagerCustom: VR mode is 0, switch to primary output if request is for fast|raw
02-16 10:11:02.262   613  1865 W AudioFlinger: createTrack_l(): mismatch between requested flags (00000104) and output flags (00000006)
02-16 10:11:02.262   613  1865 D AudioFlinger: Client defaulted notificationFrames to 192 for frameCount 384
02-16 10:11:02.263  4371  4371 I AudioTrack: AUDIO_OUTPUT_FLAG_FAST successful; frameCount 0 -> 384
02-16 10:11:02.267   557   557 W AshmemAllocator: ashmem_create_region(7680) returning hidl_memory(0x7073a2c100, 7680)
02-16 10:11:02.271   557   557 W AshmemAllocator: ashmem_create_region(7680) returning hidl_memory(0x7073a2c100, 7680)
02-16 10:11:02.275   556  4822 D audio_hw_primary: start_output_stream: enter: stream(0xf2a69000)usecase(1: low-latency-playback) devices(0x1)
02-16 10:11:02.277   556  4822 D audio_hw_primary: select_devices for use case (low-latency-playback)
02-16 10:11:02.277   556  4822 D audio_hw_primary: select_devices for use case (compress-voip-call)
02-16 10:11:02.277   556  4822 D audio_hw_primary: select_devices: out_snd_device(15: voice-handset) in_snd_device(0: )
02-16 10:11:02.277   556  4822 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (voice-handset)
02-16 10:11:02.277   556  4822 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(1) new_snd_devices(0)
02-16 10:11:02.277   556  4822 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 15
02-16 10:11:02.277   556  4822 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (voice-handset)
02-16 10:11:02.277   556  4822 W msm8974_platform: platform_check_codec_backend_cfg:becf: afe:Use default bw and sr for voice/voip calls 
02-16 10:11:02.277   556  4822 D msm8974_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k)
02-16 10:11:02.277   556  4822 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 and sample rate: 48000
02-16 10:11:02.277   556  4822 D audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
02-16 10:11:02.277   556  4822 D audio_hw_primary: check_usecases_codec_backend:becf: (65) check_usecases curr device: voice-handset, usecase device:voice-handset backends match 1
02-16 10:11:02.277   556  4822 E msm8974_platform: platform_check_backends_match: Invalid snd_device = 
02-16 10:11:02.277   556  4822 D audio_hw_primary: check_usecases_codec_backend:becf: (65) check_usecases curr device: voice-handset, usecase device: backends match 0
02-16 10:11:02.277   556  4822 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0
02-16 10:11:02.277   556  4822 D hardware_info: hw_info_append_hw_type : device_name = voice-handset
02-16 10:11:02.277   556  4822 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_info->id 1 of type 0 for Event 3, with Raise=0
02-16 10:11:02.277   556  4822 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->out_snd_device voice-handset
02-16 10:11:02.277   556  4822 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(0) new_snd_devices(0)
02-16 10:11:02.278   556  4822 E msm8974_platform: platform_get_snd_device_backend_index: BE DAI Name Table is not present
02-16 10:11:02.278   556  4822 E audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device voice-handset ret=-14
02-16 10:11:02.278   556  4822 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
02-16 10:11:02.278   556  4822 I audio_hw_utils: send_app_type_cfg_for_device PLAYBACK app_type 69937, acdb_dev_id 7, sample_rate 48000, snd_device_be_idx -14
02-16 10:11:02.278   556  4822 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(1) new_snd_devices(0)
02-16 10:11:02.278   556  4822 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 7, path = 0, app id = 0x11131, sample rate = 48000
02-16 10:11:02.278   556  4822 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
02-16 10:11:02.278   556  4822 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
02-16 10:11:02.278   556  4822 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
02-16 10:11:02.278   556  4822 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
02-16 10:11:02.278   556  4822 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 7, Topology Id 112fc
02-16 10:11:02.278   556  4822 D         : Failed to fetch the lookup information of the device 00000007 
02-16 10:11:02.278   556  4822 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
02-16 10:11:02.278   556  4822 D         : Failed to fetch the lookup information of the device 00000007 
02-16 10:11:02.278   556  4822 E ACDB-LOADER: Error: ACDB AFE returned = -19
02-16 10:11:02.278   556  4822 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 7 path = 0
02-16 10:11:02.278   556  4822 D audio_hw_primary: enable_audio_route: apply mixer and update path: low-latency-playback
02-16 10:11:02.278   556  4822 D audio_route: Apply path: low-latency-playback
02-16 10:11:02.280   556  4822 D audio_hw_primary: select_devices: done
02-16 10:11:02.281   556  4822 D msm8974_platform: platform_set_channel_map mixer_ctl_name:Playback Channel Map15
02-16 10:11:02.282   556  4822 D msm8974_platform: platform_set_channel_map: set mapping(1 2 0 0 0 0 0 0) for channel:2
02-16 10:11:02.290   556  4822 D audio_hw_primary: start_output_stream: exit
02-16 10:11:02.306  4371  4371 W ActivityThread: handleWindowVisibility: no activity for token [email protected]
 
  • Like
Reactions: MSe1969

AjikanRB

New member
Feb 18, 2020
2
2
Hi, thanks for reporting your issue, I may need some time to dig in to that.
Just one thing, which I have immediately spotted: The linphone app (which you used to create the logcat) did not have the RECORD_AUDIO permission - could you pls. have a closer look on that aspect?

Hi all,

I can confirm the same VoIP calling issues stated by @0xC0ncord. In my case I have reproduced the rebooting error on Whatsapp, Riot and NextCloud-Talk, which is always triggered right after a call is established between the peers. After some digging I found out there seems to be a missing check in the kernel's code (you can look it up on Gitlab > LineageOS > Issue 1558):

- if (runtime->dma_area)
+ if (runtime->dma_area && !substream->ops->copy)


So maybe patching this check on sound/core/pcm_native.c could be the solution in this case too, not really sure. I'm not too experienced with kernel building, but if I get the opportunity to try and do it myself I'll let you know how it goes.

Cheers
 
  • Like
Reactions: MSe1969
Hi all,

I can confirm the same VoIP calling issues stated by @0xC0ncord. In my case I have reproduced the rebooting error on Whatsapp, Riot and NextCloud-Talk, which is always triggered right after a call is established between the peers. After some digging I found out there seems to be a missing check in the kernel's code (you can look it up on Gitlab > LineageOS > Issue 1558):

- if (runtime->dma_area)
+ if (runtime->dma_area && !substream->ops->copy)

So maybe patching this check on sound/core/pcm_native.c could be the solution in this case too, not really sure. I'm not too experienced with kernel building, but if I get the opportunity to try and do it myself I'll let you know how it goes.

Cheers
Thanks for the info - I was able to reproduce the crash by attempting a Telegram call.
Have applied the patch and now building... If the patch fixes the issue, I will upload a new build.
Anyway, will keep you posted.
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    Thread is discontinued: Please visit the my LineageOS 17.1 successor thread

    This thread is dedicated to provide hardened Lineage-OS 16.0 builds with microG included for the OnePlus 3/3T with current security patches.

    It is the successor of my Lineage 15.1 thread.
    It may be worth to also look there, if you are looking for information.

    Features of this ROM
    Download here
    • Pre-installed microG and F-Droid like LineageOS for microG project (own fork)
    • Pre-installed AuroraStore
    • OTA Support
    • eSpeakTTS engine
    • Additional security hardening features listed below
    • Access to /proc/net blocked for user apps
    • Bundled netmonitor app to allow network monitoring
    • Enhanced Privacy Guard: Switches for motion sensors and other sensors
    • Cloudflare as default DNS (instead of Google)
    • Privacy-preferred default settings
    • Optional blocking of Facebook- and Google-Tracking
    • Optional disabling of captive portal detection
    • Firewall UI
    • No submission of IMSI/phone number to Google/Sony when GPS is in use
    • Default hosts file with many blocked ad/tracking sites
    • Privacy-enhanced Bromite SystemWebView
    • Additional restrictions for secondary users
    • Increased password length
    • Kernel kept up to date with ASB patches and Google kernel/common 'android-3.18' branch
    • Debloated from Oneplus blobs for Alipay, WeChatpay, Soter and IFAA
    • Native Wireguard support in shipped kernel
    • Hardened bionic lib and constified JNI method tables

    Current release levels
    Security string: 2021-01-05
    AOSP tag: 9.0.0_r46
    Bromite System Webview: M87


    Source-code and build instructions
    Kernel: https://github.com/lin16-microg/android_kernel_oneplus_msm8996/tree/lin-16.0-mse2
    Build manifest: https://github.com/lin16-microg/local_manifests/tree/lin-16.0-microG


    Installation Instructions

    YOU ARE RESPONSIBLE SOLELY YOURSELF FOR ANY ACTIONS YOU DO WITH YOUR DEVICE !!!

    Please note - I won't explain any single aspect (e.g. how to install 'fastboot' on your PC or troubleshoot USB connectivity issues under Windows). Search the net and consult the search engine of your choice or look here in XDA, there is plenty of information available.

    Pre-Requisites
    • Have fastboot and adb installed on your PC and make sure, you can connect via USB to your device in fastboot mode and via adb
    • An unlocked bootloader (see e.g. LineageOS install instructions)
    • Flash the OxygenOS 9.0.x firmware, which is needed for LineageOS 16.0 - READ THE OP OF THIS THREAD CAREFULLY !
    • Download the most current .ZIP file of the ROM and place it to your phone's internal memory

    OxygenOS 9.x Firmware
    Once again: READ THE OP OF THIS THREAD CAREFULLY !
    I can't explain it better and I am not going to repeat or summarize this. It really is in your interest to carefully read it - you have been notified and warned.
    Please also pay attention to the last section named "Alipay, WeChatpay, Soter and IFAA" - I strongly recommend to use the debloated firmware

    Install TWRP recovery
    If you come from stock ROM and have just unlocked your boot loader, this is the next thing to do. I recommend to use the TWRP recovery for the OnePlus 3/3T. The following instructions are based on TWRP.
    To install TWRP, download the twrp-x.x.x-x-oneplus3.img file (Note: replace "x.x.x-x" in the following instructions with the respective values from the real file name) to your PC, connect the phone via USB to your PC, get it into 'fastboot mode' and enter the following command on your PC:
    Code:
    fastboot flash recovery twrp-x.x.x-x-oneplus3.img
    Afterwards, directly boot into 'recovery mode' (enter fastboot reboot on your PC and hold Power and vol.down) - DO NOT boot into the phone's Android system after having flashed TWRP! Once TWRP has been launched, you may decide to reboot your phone and install the ROM at any time later. But the first boot after flashing TWRP must be TWRP in recovery mode.

    Advanced Wipe
    ONLY perform the steps described here, if you come from Stock ROM or a different Custom ROM!

    Boot into recovery mode. In TWRP, choose "Wipe", "Advanced" and spefify "Dalvik", "System", "Cache" and "Data" to be wiped. Make sure NOT to wipe "Internal memory". Swipe to confirm the deletion and get back into the main menu.

    DO NOT flash Gapps!
    This ROM comes with pre-installed microG. So don't attempt to flash Gapps.

    Install ROM
    In the TWRP main menu, choose "Install". A file manager appears to let you navigate to your internal memory (path /sdcard). Choose the .ZIP file of our ROM and swipe to flash.
    If you update from a previous version of my ROM, including my LineageOS 15.1 build, you don't need to perform a wipe. If you come from a different ROM (or stock firmware), make sure that you have performed the Wipe steps above.
    When finished flashing, return to the main menu, choose "Reboot" and then "System", which will cause your phone to boot into Lineage OS 16.0 - be patient, the first boot after flashing a new ROM takes quite long!


    Dealing with signed builds
    Please note, that this builds is signed with an own key. When you come from a different build, you cannot directly "dirty-flash" this build. You have to perform a "clean flash" (recommended), or - you do this on your own risk - you may try the below steps.

    This happens at your own risk - make a backup with TWRP before!
    • Download and extract the file migration.sh from this archive
    • This file helps you to migrate from a build signed with the publicly available test keys (i.e. all builds around, which do not state that they are signed). If you come from another signed build (e.g. official LineageOS), you have to adapt the file accordingly (see below links).
    • boot into TWRP
    • push the migration.sh file to the directory /data/local on your device and mount the /system partition in TWRP (you can do so using the dedicated TWRP's menu entry)
    • launch the built-in terminal in TWRP, cd into /data/local, make migration.sh executable (chmod +x) and execute the command ./migration.sh official
    • (In case you receive an error, try sh ./migration.sh official instead)
    • flash the ROM .zip
    • wipe Cache and Dalvik/ART Cache
    • reboot system
    More background information and the "theory behind" can be found in the LineageOS wiki and AOSP reference.



    Bug reports:
    If you have a problem, please create a post with these informations:
    Original Kernel shipped with this rom:
    Build Date:
    And try to get log as described here
    Please note that I can't and won't support issues with builds using a different kernel or Xposed.
    In regards to microG, I will try my best to help when it is related to this ROM (I use it myself), but any questions of the type "the YXZ-app can't do <some sort of fancy xyz Google functionality> properly" are better asked in the respective microG forums.

    Credits
    AOSP project
    LineageOS project
    microG project
    Graphene OS project
    csagan5 (Bromite)
    WhyOrean (Aurora)
    nvertigo67 (for the modded 9.x firmware)

    XDA:DevDB Information
    [ROM][Unofficial][9.0.0][microG][signed]hardened LineageOS 16.0 for Oneplus 3/3T, ROM for the OnePlus 3T

    Contributors
    MSe1969
    Source Code: https://github.com/lin16-microg/local_manifests/tree/lin-16.0-microG

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 3.x
    Based On: LineageOS

    Version Information
    Status:
    Testing
    Stable Release Date: 2020-12-11

    Created 2020-01-14
    Last Updated 2020-12-13
    11
    Hi all,
    a new build is available for download and will soon be also offered via OTA update:
    https://sourceforge.net/projects/li...NOFFICIAL-microG-signed-oneplus3.zip/download

    • ASB Security string 2020-07-05
    • Kernel: Wireguard tag v1.0.20200623 (of course, as every month, kernel is upstreamed from here)
    • microG: updated prebuilt GmsCore fom /e/ project (fixed FCM registration issues and delay with Signal app)
    • F-Droid updated to 1.8 / F-Droid privileged extension updated to 0.2.11
    • Aurorastore updated to 3.2.9 / AuroraServices updated to 1.0.6

    Happy flashing, regards M.

    P.S.: Meanwhile, there is TWRP 3.4.0 available for our device, I recommend to update it as well (not a requirement, but recommended)
    9
    February ASB update

    Hi all, a new build is available for download:
    https://sourceforge.net/projects/li...NOFFICIAL-microG-signed-oneplus3.zip/download

    • Security string 2020-02-05
    • Bromite System Webview 79.0.3945.139
    • AuroraStore 3.1.8

    It is also offered by the updater up as OTA update.
    Regards, M.
    8
    LineageOS 17.1 successor thread and final 16.0 build with January 2021 ASB patches

    Hi all,
    a new build with January 2021 ASB patches is available for download and will soon be offered as OTA update:
    • ASB Security string 2021-01-05
    • Bromite Webview on 87.0.4280.131
    • Updated microG from upstream to 0.2.16.204713-10 (picked until 2f29b93)
    • Updated F-Droid to 1.10-alpha1-212
    Please note, that this build is the final LineageOS 16.0 build. - As announced and as some of you may already have seen, I have opened a new thread for the LineageOS 17.1 successor build of this hardened microG ROM:

    You can simply "dirty-flash" the "microG" LineageOS 17.1 build over the "microG" build of this thread. I recommend to go this path in the near future.

    Of course, I will keep this thread open for a while and answer topics related to this 16.0 build and how to migrate to the 17.1 successor build. I would like to take the opportunity to thank you for your interest in this build and look forward to seeing you in my new 17.1 successor thread.

    Happy flashing, cheers - M.
    7
    Change log

    January 17th, 2021

    • ASB Security string 2021-01-05
    • Bromite Webview on 87.0.4280.131
    • Updated microG from upstream to 0.2.16.204713-10 (picked until 2f29b93)
    • Updated F-Droid to 1.10-alpha1-212

    December 13th, 2020
    • ASB Security string 2020-12-05
    • Kernel: Upstreamed to tag ASB-2020-12-05_3.18
    • Bromite Webview on 87.0.4280.106
    • Updated microG from upstream to 0.2.14.204215-15 (picked until 720b089)
    • Updated F-Droid to 1.10-alpha1-114

    November 08th, 2020
    • ASB Security string 2020-11-05
    • Kernel: Upstreamed to tag ASB-2020-11-05_3.18
    • Kernel: Fix of bug causing crashes with Wireguard in native mode
    • Fix of AOSP E-Mail widget
    • Fix for CVE-2020-15999
    • Bromite Webview on 86.0.4240.181
    • Updated microG with fixes in GCM and EN API
    • Replaced weak F-Droid signatures with ROM's V2 signatures

    October 08th, 2020
    • ASB Security string 2020-10-05
    • Bromite Webview on 86.0.4240.73
    • Kernel: Upstreamed to tag ASB-2020-10-05_3.18
    • microG 0.2.12.203315 - including "Exposure notification API" for use of Covid tracing apps
    • Additional hardening (bionic and constified JNI method tables)

    September 12th, 2020
    • ASB Security string 2020-09-05
    • Bromite Webview updated to 85.0.4183.86
    • Kernel: Upstreamed to tag ASB-2020-09-05_3.18
    • Kernel: Wireguard tag v1.0.20200908
    • Kernel: Fix USB-OTG unplug crash (thanks to @nvertigo67)
    • Added eSpeak TTS engine (FOSS TTS solution)

    August 8th, 2020
    • ASB Security string 2020-08-05
    • Bromite Webview updated to 84.0.4147.113
    • Kernel: Upstreamed to tag ASB-2020-08-05_3.18
    • Kernel: Wireguard tag v1.0.20200729
    • Kernel: qcacld-2.0 merge of CAF tag LA.UM.7.6.r1-07800-89xx.0
    • Location of the firewall functionality has moved to Network > Data usage in Settings (latest cherry-pick from here)

    July 10th, 2020
    • ASB Security string 2020-07-05
    • Kernel: Wireguard tag v1.0.20200623
    • microG: updated prebuilt GmsCore fom /e/ project (fixed FCM registration issues)
    • F-Droid updated to 1.8 / F-Droid privileged extension updated to 0.2.11
    • Aurorastore updated to 3.2.9 / AuroraServices updated to 1.0.6

    June 10th, 2020
    • ASB Security string 2020-06-05
    • Kernel: Wireguard tag v1.0.20200520
    • Bromite Webview on 83.0.4103.101
    • Sepolicy: Netmonitor exception f. "Tracker Control" app

    May 6th, 2020
    • ASB Security string 2020-05-05
    • Telephony: Option to set different ringtones in case of Dual SIM
    • Kernel: Native Wireguard support
    • Kernel: Merged CAF tag LA.UM.7.6.r1-07400-89xx.0 (also f. WLAN)
    • Kernel: Misc. optimizations
    • Bromite Webview on 81.0.4044.127
    • AuroraStore updated to 3.2.8

    April 10th, 2020
    • ASB Security string 2020-04-05
    • Fix for CVE-2020-8597 (external/ppp)
    • Kernel: CVE-2019-10638 siphash 128bit for IP generation
    • Bromite Webview on 81.0.4044.76
    • AuroraStore updated to 3.2.4

    March 16th, 2020 - interim release
    • Vendor blob update to reflect OOS 9.0.6 - vendor sec. patch level now 2019-10-01
    • Debloated from Alipay, WeChatpay, Soter and IFAA

    March 7th, 2020
    • Security string 2020-03-05
    • Bromite System Webview 80.0.3987.118
    • AuroraStore 3.2.0
    • Added Netguard app (F-Droid) to SELinux domain allowing /proc/net

    February 19th, 2020 - interim release
    • Kernel fix for crash when doing VoIP telephony

    February 7th, 2020
    • Security string 2020-02-05
    • Bromite System Webview 79.0.3945.139
    • AuroraStore 3.1.8

    January 14th, 2020
    Initial feature list:
    • Pre-installed microG and F-Droid same as the LineageOS for microG project
    • Pre-installed AuroraStore (Version 3.1.7) with AuroraServices 1.0.5
    • OTA Support
    • Access to /proc/net blocked for user apps
    • Bundled netmonitor app to allow network monitoring
    • Enhanced Privacy Guard: Switches for motion sensors and other sensors
    • Cloudflare as default DNS (instead of Google)
    • Privacy-preferred default settings
    • Optional blocking of Facebook- and Google-Tracking
    • Optional disable captive portal detection
    • Firewall UI
    • No submission of IMSI/IMEI to Google/Sony when GPS is in use
    • Default hosts file with many blocked ad/tracking sites
    • Privacy-enhanced Bromite SystemWebView 79.0.3945.107
    • Additional restrictions for secondary users
    • Increased password length