[ROM][unlocked][karnak] Lineage-20.0 [3 January 2023]

Search This thread

JerseyChewi

Senior Member
Aug 27, 2012
69
24
Edinburgh
Thanks for your work on this, as usual. It's looking great overall.

I managed to install it, although I still had to hack MindTheGapps to remove the arch check, even after updating TWRP to 3.4.0. I know how, but others will struggle. Can we do something about that?

Ever since trying custom ROMs on this device, I have found that 5GHz wifi just doesn't work. After seeing a comment in the LOS 16 thread, I've finally realised why.

Code:
karnak:/ $ iw list
...
        Band 2:
                Capabilities: 0x7e
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: No restriction (0x00)
                HT TX/RX MCS rate indexes supported: 0-7
                Bitrates (non-HT):
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 5170 MHz [34] (disabled)
                        * 5180 MHz [36] (30.0 dBm)
                        * 5190 MHz [38] (disabled)
                        * 5200 MHz [40] (30.0 dBm)
                        * 5210 MHz [42] (disabled)
                        * 5220 MHz [44] (30.0 dBm)
                        * 5230 MHz [46] (disabled)
                        * 5240 MHz [48] (30.0 dBm)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5745 MHz [149] (30.0 dBm)
                        * 5765 MHz [153] (30.0 dBm)
                        * 5785 MHz [157] (30.0 dBm)
                        * 5805 MHz [161] (30.0 dBm)
                        * 5825 MHz [165] (30.0 dBm)
                        * 5845 MHz [169] (disabled)
                        * 5865 MHz [173] (disabled)
                        * 5920 MHz [184] (disabled)
                        * 5940 MHz [188] (disabled)
                        * 5960 MHz [2] (disabled)
                        * 5980 MHz [6] (disabled)
                        * 6000 MHz [10] (disabled)
                        * 6020 MHz [14] (disabled)
                        * 6040 MHz [18] (disabled)
                        * 6060 MHz [22] (disabled)
                        * 6080 MHz [26] (disabled)
...

karnak:/ $ iw reg get                                                                                                                                                                                                                                                     
global
country 00: DFS-UNSET
        (2402 - 2472 @ 40), (6, 20), (N/A)
        (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
        (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
        (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
        (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
        (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
        (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
        (57240 - 63720 @ 2160), (N/A, 0), (N/A)

Most of the frequencies are disabled because it doesn't know which country I'm in. For a device without a SIM card, it is apparently supposed to pick this up from the region setting, but evidently it's not. I've tried various ways to override it all evening, but nothing works. Note that this doesn't affect 2.4GHz anywhere near as much, which may be why most people haven't noticed. Please fix this.
 

JerseyChewi

Senior Member
Aug 27, 2012
69
24
Edinburgh
I tried setting ro.boot.wificountrycode=GB in /system/build.prop, which looked promising from the logs, but ultimately didn't change anything.

Code:
03-18 14:08:30.014   568   568 I SupplicantP2pIfaceHal: Initializing SupplicantP2pIfaceHal using AIDL implementation.
03-18 14:08:30.016   568   568 I WifiCoexManager: Default coex algorithm is disabled.
03-18 14:08:30.054   568   595 D PinnerService: pinRangeStream: null
03-18 14:08:30.057   568   595 D PinnerService: pinRangeStream: null
03-18 14:08:30.062   568   568 D WifiOpenNetworkNotifier: Settings toggle enabled=false
03-18 14:08:30.069   568   568 D WifiNl80211Manager: registerCountryCodeEventListener called
03-18 14:08:30.069   419   419 I wificond: New wificond event callback registered
03-18 14:08:30.069   568   568 D WifiCountryCode: Default country code from system property ro.boot.wificountrycode is GB
03-18 14:08:30.080   568   568 D WakeupController: WifiWake enabled
03-18 14:08:30.083   568   568 V HistoricalRegistry: Interaction before persistence initialized
03-18 14:08:30.089   568   568 I WifiService: Registering wifi
03-18 14:08:30.091   568   568 V SystemServerTiming: StartWifi took to complete: 249ms
03-18 14:08:30.091   568   568 D SystemServerTiming: StartWifiScanning
--
03-18 14:08:30.348   568   568 I SystemServiceManager: Starting com.android.server.storage.DeviceStorageMonitorService
03-18 14:08:30.350   568   568 V SystemServerTiming: StartDeviceMonitor took to complete: 2ms
03-18 14:08:30.350   568   568 D SystemServerTiming: StartLocationManagerService
03-18 14:08:30.350   568   568 I SystemServiceManager: Starting com.android.server.location.LocationManagerService$Lifecycle
03-18 14:08:30.356   568   568 V SystemServerTiming: StartLocationManagerService took to complete: 6ms
03-18 14:08:30.356   568   568 D SystemServerTiming: StartCountryDetectorService
03-18 14:08:30.358   568   568 V SystemServerTiming: StartCountryDetectorService took to complete: 2ms
03-18 14:08:30.358   568   568 D SystemServerTiming: StartTimeDetectorService
03-18 14:08:30.358   568   568 I SystemServiceManager: Starting com.android.server.timedetector.TimeDetectorService$Lifecycle
03-18 14:08:30.362   568   568 V SystemServerTiming: StartTimeDetectorService took to complete: 4ms
03-18 14:08:30.362   568   568 D SystemServerTiming: StartTimeZoneDetectorService
03-18 14:08:30.362   568   568 I SystemServiceManager: Starting com.android.server.timezonedetector.TimeZoneDetectorService$Lifecycle
--
03-18 14:08:31.463   568   621 D SystemServerInitThreadPool: Started executing Update app-ops uidState in case package com.rvappstudios.kids.coloring.book.color.painting changed
03-18 14:08:31.463   568   635 D SystemServerInitThreadPool: Started executing Update app-ops uidState in case package com.fastmail.app changed
03-18 14:08:31.474   384   384 I (1)[384:mtk_wmtd_worker][wlan]kalIndicateStatusAndComplete: (AIS INFO)[wifi] wlan%d netif_carrier_off
03-18 14:08:31.477   384   384 I (1)[384:mtk_wmtd_worker][wlan]scnInit: (SCN INFO)->scnInit()
03-18 14:08:31.479   384   384 I (1)[384:mtk_wmtd_worker][wlan]aisFsmInit: (SW1 INFO)->aisFsmInit()
03-18 14:08:31.481   384   384 I (1)[384:mtk_wmtd_worker][wlan]rlm_get_support_country: (RLM INFO)Country:0 is not support.Replaced with WW
03-18 14:08:31.463   568   625 D SystemServerTimingAsync: InitThreadPoolExec:Update app-ops uidState in case package com.hiddenvariable.bagit.hb changed
03-18 14:08:31.463   568   625 D SystemServerInitThreadPool: Started executing Update app-ops uidState in case package com.hiddenvariable.bagit.hb changed
03-18 14:08:31.464   568   593 D SystemServerInitThreadPool: Finished executing Update app-ops uidState in case package com.squareenixmontreal.lcgo changed
03-18 14:08:31.464   568   593 V SystemServerTimingAsync: InitThreadPoolExec:Update app-ops uidState in case package com.squareenixmontreal.lcgo changed took to complete: 2ms
03-18 14:08:31.464   568   593 D SystemServerTimingAsync: InitThreadPoolExec:Update app-ops uidState in case package com.hyperbeard.muertitos changed
--
03-18 14:08:31.890   726   726 D wpa_supplicant: nl80211: driver param='use_p2p_group_interface=1'
03-18 14:08:31.890   726   726 D wpa_supplicant: nl80211: Use separate P2P group interface
03-18 14:08:31.891   726   726 D wpa_supplicant: Add interface wlan0 to a new radio phy0
03-18 14:08:31.893   726   726 D wpa_supplicant: nl80211: No channel number found for frequency 5920 MHz
03-18 14:08:31.893   726   726 D wpa_supplicant: nl80211: No channel number found for frequency 5940 MHz
03-18 14:08:31.893   726   726 D wpa_supplicant: nl80211: Regulatory information - country=00
03-18 14:08:31.893   726   726 D wpa_supplicant: nl80211: 2402-2472 @ 40 MHz 20 mBm
03-18 14:08:31.893   726   726 D wpa_supplicant: nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
03-18 14:08:31.893   726   726 D wpa_supplicant: nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
03-18 14:08:31.894   726   726 D wpa_supplicant: nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
03-18 14:08:31.894   726   726 D wpa_supplicant: nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
--
03-18 14:08:31.979   568   568 V SystemServerTiming: OnBootPhase_550_com.android.server.logcat.LogcatManagerService took to complete: 0ms
03-18 14:08:31.979   568   568 D SystemServerTiming: OnBootPhase_550_com.android.server.inputmethod.InputMethodManagerService$Lifecycle
03-18 14:08:31.980   568   668 E WifiVendorHal: getBgScanCapabilities(l.836) failed {.code = ERROR_NOT_SUPPORTED, .description = }
03-18 14:08:31.981   219   219 I hwservicemanager: getTransport: Cannot find entry [email protected]::IStylusMode/default in either framework or device VINTF manifest.
03-18 14:08:31.981   568   664 E WifiVendorHal: setMultiStaPrimaryConnection(l.3478) failed {.code = ERROR_NOT_SUPPORTED, .description = }
03-18 14:08:31.982   568   664 D WifiCountryCode: evaluateAllCmmStateAndApplyIfAllReady: {ConcreteClientModeManager{id=69861 iface=wlan0 role=ROLE_CLIENT_PRIMARY}=true}
03-18 14:08:31.982   568   664 D WifiCountryCode: Reading country code from telephony
03-18 14:08:31.983   568   664 D WifiCountryCode: Set telephony country code to:
03-18 14:08:31.983   568   664 D WifiCountryCode: updateCountryCode to GB
03-18 14:08:31.983   568   664 D WifiCountryCode: setCountryCodeNativeGB, isClientModeOnlytrue
03-18 14:08:31.984   219   219 I hwservicemanager: getTransport: Cannot find entry [email protected]::IHighTouchPollingRate/default in either framework or device VINTF manifest.
03-18 14:08:31.984   726   726 I wpa_supplicant: wpa_driver_nl80211_driver_cmd: wlan0 recv cmd COUNTRY GB
03-18 14:08:31.984   726   726 I wpa_supplicant: Set country: GB
03-18 14:08:31.985   219   219 I hwservicemanager: getTransport: Cannot find entry [email protected]::IGloveMode/default in either framework or device VINTF manifest.
03-18 14:08:31.985   726   726 D wpa_supplicant: Update channel list after country code changed
03-18 14:08:31.985   726   726 D wpa_supplicant: wlan0: Event CHANNEL_LIST_CHANGED (27) received
03-18 14:08:31.985   726   726 I wpa_supplicant: wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=GB
03-18 14:08:31.985   726   726 D wpa_supplicant: wlan0: Updating hw mode
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: No channel number found for frequency 5920 MHz
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: No channel number found for frequency 5940 MHz
03-18 14:08:31.986   568   635 D SystemServerTimingAsync: InitThreadPoolExec:Lazily initialize IMMS#mImeDrawsImeNavBarRes
03-18 14:08:31.986   568   635 D SystemServerInitThreadPool: Started executing Lazily initialize IMMS#mImeDrawsImeNavBarRes
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: Regulatory information - country=00
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: 2402-2472 @ 40 MHz 20 mBm
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
--
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: 57240-63720 @ 2160 MHz 0 mBm
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: Added 802.11b mode based on 802.11g information
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484[DISABLED]
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: Mode IEEE 802.11a: 5170[DISABLED] 5180 5190[DISABLED] 5200 5210[DISABLED] 5220 5230[DISABLED] 5240 5260[DISABLED] 5280[DISABLED] 5300[DISABLED] 5320[DISABLED] 5500[DISABLED] 5520[DISABLED] 5540[DISABLED] 5560[DISABLED] 5580[DISABLED] 5600[DISABLED] 5620[DISABLED] 5640[DISABLED] 5660[DISABLED] 5680[DISABLED] 5700[DISABLED] 5745[DISABLED] 5765[DISABLED] 5785[DISABLED] 5805[DISABLED] 5825[DISABLED] 5845[DISABLED] 5865[DISABLED] 5920[DISABLED] 5940[DISABLED] 5960[DISABLED] 5980[DISABLED] 6000[DISABLED] 6020[DISABLED] 6040[DISABLED] 6060[DISABLED] 6080[DISABLED]
03-18 14:08:31.986   726   726 D wpa_supplicant: nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484[DISABLED]
03-18 14:08:31.992   568   664 D WifiNative: onSetCountryCodeSucceeded: GB
03-18 14:08:31.993   568   664 I WifiCountryCode: Receive onSetCountryCodeSucceeded GB
03-18 14:08:31.993   568   664 I WifiNl80211Manager: Receive country code change to GB
03-18 14:08:31.993   568   664 D WifiScanRequestProxy: Sending scan available broadcast: true
03-18 14:08:31.993   568   664 I WifiScanRequestProxy: Scanning is enabled
03-18 14:08:31.993   568   664 I WifiScanRequestProxy: Scanning for hidden networks is enabled
03-18 14:08:31.995   419   419 I wificond: Receive notifyCountryCodeChanged
03-18 14:08:31.996   419   419 I wificond: UpdateBandInfo
03-18 14:08:31.997   568   664 D WakeupController: onWifiEnabled()
03-18 14:08:31.997   568   664 W WifiClientModeImpl: No cached packet filter to apply
03-18 14:08:31.998   568   664 D WifiClientModeImpl[wlan0]: entering ConnectableState: ifaceName = wlan0
03-18 14:08:31.998   726   726 I wpa_supplicant: wpa_driver_nl80211_driver_cmd: wlan0 recv cmd SETSUSPENDMODE 1
--
03-18 14:08:34.958   568   568 D ConnectivityModuleConnector: Starting networking module android.net.ITetheringConnector
03-18 14:08:34.958   568   568 D ConnectivityModuleConnector: Starting networking module in network_stack process
03-18 14:08:34.962   568   568 D ConnectivityModuleConnector: Networking module service start requested
03-18 14:08:34.962   568   595 W BestClock: java.time.DateTimeException: Missing NTP fix
03-18 14:08:34.962   568   568 V SystemServerTiming: StartTethering took to complete: 5ms
03-18 14:08:34.963   568   568 D SystemServerTiming: MakeCountryDetectionServiceReady
03-18 14:08:34.963   568   568 V SystemServerTiming: MakeCountryDetectionServiceReady took to complete: 0ms
03-18 14:08:34.963   568   568 D SystemServerTiming: MakeNetworkTimeUpdateReady
03-18 14:08:34.966   568   568 D ConnectivityService: requestNetwork for uid/pid:1000/568 activeRequest: null callbackRequest: 33 [NetworkRequest [ REQUEST id=34, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 1000 RequestorUid: 1000 RequestorPkg: android UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647
03-18 14:08:34.967   568   672 D ConnectivityService: NetReassign [no changes]
03-18 14:08:34.969   568   568 V SystemServerTiming: MakeNetworkTimeUpdateReady took to complete: 6ms
03-18 14:08:34.969   568   568 D SystemServerTiming: MakeInputManagerServiceReady
--
03-18 14:08:35.356   568   568 I system_server: getDeviceHalManifest: Successfully processed VINTF information
03-18 14:08:35.357   568   568 I system_server: getFrameworkHalManifest: Successfully processed VINTF information
03-18 14:08:35.357   568   568 W system_server: getKernelLevel: Both device manifest and kernel release do not specify kernel FCM version.
03-18 14:08:35.357   568   568 I system_server: getFrameworkCompatibilityMatrix: Reading VINTF information.
03-18 14:08:35.365   568   595 W BestClock: java.time.DateTimeException: Missing NTP fix
03-18 14:08:35.370   568   595 D CountryDetector: Using custom country detector class: com.android.server.location.ComprehensiveCountryDetector
03-18 14:08:35.371   568   595 E CountryDetector: Could not instantiate the custom country detector class
03-18 14:08:35.371   568   595 D CountryDetector: Using default country detector
03-18 14:08:35.373   294   294 D AudioALSAStreamManager: getMicMute(), mMicMute = 0
03-18 14:08:35.377   294   294 D AudioALSAStreamManager: setMicMute(), mMicMute: 0 => 0
03-18 14:08:35.378   294   294 D AudioALSAStreamManager: +SetInputMute(), 0
03-18 14:08:35.378   294   294 D AudioALSAStreamManager: -SetInputMute()
03-18 14:08:35.378   294   294 D AudioALSAStreamManager: getMicMute(), mMicMute = 0
--
03-18 14:08:36.164   998   998 D CompatibilityChangeReporter: Compat change id reported: 160794467; UID 1002; state: ENABLED
03-18 14:08:36.166   568   664 D ApConfigUtil: Update Softap capability, add client control feature support
03-18 14:08:36.166   568   664 D ApConfigUtil: Update Softap capability, add MAC customization support
03-18 14:08:36.166   568   664 D ApConfigUtil: Update Softap capability, add 2.4G support
03-18 14:08:36.167   568   664 D ApConfigUtil: Update Softap capability, max client = 16
03-18 14:08:36.167   568   664 D WifiCountryCode: Reading country code from telephony
03-18 14:08:36.167  1035  1051 V WifiManager: SoftApCallbackProxy on mode 1, send InfoChanged, newInfo: SoftApInfo{bandwidth= 0, frequency= 0, wifiStandard= 0, mApInstanceIdentifier= null, mIdleShutdownTimeoutMillis= 0}
03-18 14:08:36.167  1035  1051 V WifiManager: SoftApCallbackProxy on mode 1, send InfoChanged, changedInfoList: []
03-18 14:08:36.167  1035  1051 V WifiManager: SoftApCallbackProxy on mode 1, send onConnectedClientsChanged(clients): []
03-18 14:08:36.169   568   906 D ConnectivityService: requestNetwork for uid/pid:1073/1035 activeRequest: null callbackRequest: 38 [NetworkRequest [ TRACK_SYSTEM_DEFAULT id=38, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED RequestorUid: 1073 RequestorPkg: com.android.networkstack.tethering UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647
03-18 14:08:36.170   568   672 D ConnectivityService: NetReassign [no changes]
03-18 14:08:36.173   568   664 D WifiCountryCode: Set telephony country code to:
03-18 14:08:36.174   998   998 D BluetoothAdapterService: onCreate()
03-18 14:08:36.183  1065  1065 D CarrierIdProvider: update database from pb file
03-18 14:08:36.197   568   568 D AccessibilityManagerService: Ignoring non-encryption-aware service ComponentInfo{com.google.android.marvin.talkback/com.google.android.accessibility.accessibilitymenu.AccessibilityMenuService}
03-18 14:08:36.199   568   568 W WindowMagnificationMgr: requestConnection duplicated request: connect=false, mConnectionState=DISCONNECTED
03-18 14:08:36.200   568   568 W Looper  : Slow dispatch took 221ms main h=android.app.ActivityThread$H c=android.[email protected]2880dc0 m=0
--
03-18 14:08:44.084   568   589 V ActivityManagerTiming: OnBootPhase_1000_com.android.server.emergency.EmergencyAffordanceService took to complete: 0ms
03-18 14:08:44.084   568   664 D ApConfigUtil: Update Softap capability, add MAC customization support
03-18 14:08:44.084   568   589 D ActivityManagerTiming: OnBootPhase_1000_com.android.server.blob.BlobStoreManagerService
03-18 14:08:44.084   568   664 D ApConfigUtil: Update Softap capability, add 2.4G support
03-18 14:08:44.084   568   664 D ApConfigUtil: Update Softap capability, max client = 16
03-18 14:08:44.084   568   664 D WifiCountryCode: Reading country code from telephony
03-18 14:08:44.084   568   672 D ConnectivityService: Got NetworkProvider Messenger for WifiNetworkFactory
03-18 14:08:44.084   568   672 D ConnectivityService: Got NetworkProvider Messenger for UntrustedWifiNetworkFactory
03-18 14:08:44.084   568   672 D ConnectivityService: Got NetworkProvider Messenger for RestrictedWifiNetworkFactory
03-18 14:08:44.084   568   672 D ConnectivityService: Got NetworkProvider Messenger for OemPaidWifiNetworkFactory
03-18 14:08:44.085   568   672 D ConnectivityService: Got NetworkProvider Messenger for MultiInternetWifiNetworkFactory
03-18 14:08:44.086   568   664 D WifiCountryCode: Set telephony country code to:
03-18 14:08:44.087   568   664 I WifiService: Receive onDriverCountryCodeChanged to GB, update available channel list
03-18 14:08:44.088   568   586 I UsbPortManager: USB HAL HIDL version: 10
03-18 14:08:44.088   568   672 D ConnectivityService: register offer from providerId 6 : NetworkOffer [ Provider Id (6) Score(60 ; KeepConnected : 0 ; Policies : EVER_VALIDATED_NOT_AVOIDED_WHEN_BAD&IS_UNMETERED&IS_VALIDATED) Caps [ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_ROAMING&NOT_CONGESTED&NOT_SUSPENDED&NOT_VCN_MANAGED LinkUpBandwidth>=1048576Kbps LinkDnBandwidth>=1048576Kbps Specifier: <[email protected]> UnderlyingNetworks: Null] Needed by []]
03-18 14:08:44.089   315   315 D lights  : write_int open fd=7
03-18 14:08:44.089   568   672 D ConnectivityService: register offer from providerId 7 : NetworkOffer [ Provider Id (7) Score(2147483647 ; KeepConnected : 0 ; Policies : EVER_VALIDATED_NOT_AVOIDED_WHEN_BAD&IS_INVINCIBLE&IS_UNMETERED&IS_VALIDATED) Caps [ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_ROAMING&NOT_CONGESTED&NOT_SUSPENDED&NOT_VCN_MANAGED LinkUpBandwidth>=1048576Kbps LinkDnBandwidth>=1048576Kbps Specifier: <[email protected]> UnderlyingNetworks: Null] Needed by []]
03-18 14:08:44.089   568   589 V ActivityManagerTiming: OnBootPhase_1000_com.android.server.blob.BlobStoreManagerService took to complete: 6ms
--
03-18 14:08:45.223   726   726 D wpa_supplicant: wlan0: State: DISCONNECTED -> ASSOCIATING
03-18 14:08:45.223   726   726 D wpa_supplicant: nl80211: Set wlan0 operstate 0->0 (DORMANT)
03-18 14:08:45.223   726   726 D wpa_supplicant: netlink: Operstate: ifindex=9 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
03-18 14:08:45.225   726   726 D wpa_supplicant: Notifying state change event to aidl control: 5
03-18 14:08:45.225   726   726 D wpa_supplicant: nl80211: Set mode ifindex 9 iftype 2 (STATION)
03-18 14:08:45.226   568   664 D WifiCountryCode: evaluateAllCmmStateAndApplyIfAllReady: {ConcreteClientModeManager{id=69861 iface=wlan0 role=ROLE_CLIENT_PRIMARY}=false}
03-18 14:08:45.232   568   664 D WifiClientModeImpl[wlan0]: Start Connecting Watchdog 1
03-18 14:08:45.232   726   726 D wpa_supplicant: nl80211: Unsubscribe mgmt frames handle 0x78e49879 (mode change)
03-18 14:08:45.233   726   726 D wpa_supplicant: nl80211: Subscribe to mgmt frames with non-AP handle 0xf06c10f0
03-18 14:08:45.233   726   726 D wpa_supplicant: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xf06c10f0 match=0104 multicast=0
03-18 14:08:45.233   726   726 D wpa_supplicant: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xf06c10f0 match=040a multicast=0
--
03-18 14:08:46.214   568  1489 V BackupManagerConstants: getKeyValueBackupRequireCharging(...) returns true
03-18 14:08:46.214   568  1489 V KeyValueBackupJob: Scheduling k/v pass in 246 minutes
03-18 14:08:46.216  1474  1534 I PhoneAccountHandleMigrationUtils_CallLogDatabaseHelper: updatePhoneAccountHandleMigrationPendingStatus false
03-18 14:08:46.230   286   286 D Zygote  : Forked child process 1539
03-18 14:08:46.232   568   597 I ActivityManager: Start proc 1539:org.protonaosp.deviceconfig/u0a91 for broadcast {org.protonaosp.deviceconfig/org.protonaosp.deviceconfig.BootReceiver}
03-18 14:08:46.238   568   714 D CountryDetector: The first listener is added
03-18 14:08:46.238  1474  1474 I ContactsDatabaseHelper: updateUseStrictPhoneNumberComparison: GB
03-18 14:08:46.242  1539  1539 I Zygote  : seccomp disabled by setenforce 0
03-18 14:08:46.245  1474  1532 I CallLogProvider: Syncing call composer pics -- source user=0, isShadow=true, forAllUser=false
03-18 14:08:46.245  1474  1532 I CallLogProvider: Fetching list of Uris to sync
03-18 14:08:46.258  1474  1532 I CallLogProvider: Will sync following Uris:[]
 

jumstec

Senior Member
Thanks for your work on this, as usual. It's looking great overall.

I managed to install it, although I still had to hack MindTheGapps to remove the arch check, even after updating TWRP to 3.4.0. I know how, but others will struggle. Can we do something about that?

Ever since trying custom ROMs on this device, I have found that 5GHz wifi just doesn't work. After seeing a comment in the LOS 16 thread, I've finally realised why.

Code:
karnak:/ $ iw list
...
        Band 2:
                Capabilities: 0x7e
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: No restriction (0x00)
                HT TX/RX MCS rate indexes supported: 0-7
                Bitrates (non-HT):
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 5170 MHz [34] (disabled)
                        * 5180 MHz [36] (30.0 dBm)
                        * 5190 MHz [38] (disabled)
                        * 5200 MHz [40] (30.0 dBm)
                        * 5210 MHz [42] (disabled)
                        * 5220 MHz [44] (30.0 dBm)
                        * 5230 MHz [46] (disabled)
                        * 5240 MHz [48] (30.0 dBm)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5745 MHz [149] (30.0 dBm)
                        * 5765 MHz [153] (30.0 dBm)
                        * 5785 MHz [157] (30.0 dBm)
                        * 5805 MHz [161] (30.0 dBm)
                        * 5825 MHz [165] (30.0 dBm)
                        * 5845 MHz [169] (disabled)
                        * 5865 MHz [173] (disabled)
                        * 5920 MHz [184] (disabled)
                        * 5940 MHz [188] (disabled)
                        * 5960 MHz [2] (disabled)
                        * 5980 MHz [6] (disabled)
                        * 6000 MHz [10] (disabled)
                        * 6020 MHz [14] (disabled)
                        * 6040 MHz [18] (disabled)
                        * 6060 MHz [22] (disabled)
                        * 6080 MHz [26] (disabled)
...

karnak:/ $ iw reg get                                                                                                                                                                                                                                                    
global
country 00: DFS-UNSET
        (2402 - 2472 @ 40), (6, 20), (N/A)
        (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
        (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
        (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
        (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
        (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
        (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
        (57240 - 63720 @ 2160), (N/A, 0), (N/A)

Most of the frequencies are disabled because it doesn't know which country I'm in. For a device without a SIM card, it is apparently supposed to pick this up from the region setting, but evidently it's not. I've tried various ways to override it all evening, but nothing works. Note that this doesn't affect 2.4GHz anywhere near as much, which may be why most people haven't noticed. Please fix this.
My TWRP is 3.4.0.0 and I was able to install it successfully without doing anything!

For some reason, there are some apps that are compatible with this tablet but I can't install them, but other than that, I have no problems. Why can't I install it?
Does googleplay automatically update to the latest version?
 
My tablet rebooted last night and never went to sleep but the battery life seems decent! :D
 

Attachments

  • Screenshot_20230327-100952_Settings.jpg
    Screenshot_20230327-100952_Settings.jpg
    89.9 KB · Views: 69

jumstec

Senior Member
Which karnak roms are completely finished if any?
completely finished?
lineage 20 rom was recently completed
I want to try this ROM, but I'm seeing that I should update twrp to 3.4, and I can't find the files or how to do it, can you help me with that?
1. Start TWRP
2. Install -> install image -> twrp3.4.0.0.img
3. Check "Recovery" and install.
4. After installation is complete, return to Home, Reboot→Recovery
Reboot and you will see the updated version.
 

Attachments

  • new_twrp_3.4.0-0.img
    20 MB · Views: 79
  • Like
Reactions: Reynald0
Ok I've got twrp updated and lineageos 20 installed, but Bluetooth doesn't seem to be working. I can turn it on, but it says that there are no nearby devices found. I tried to locate my kindle with my phone (completely stock if that's important) and couldn't find it either. In about tablet, Bluetooth address says unavailable, and I don't know how I could get a log for it to help determine why it's not working.

Edit: pushing Bluetooth in quick settings just causes it to say turning on constantly
 
Last edited:

jumstec

Senior Member
Ok I've got twrp updated and lineageos 20 installed, but Bluetooth doesn't seem to be working. I can turn it on, but it says that there are no nearby devices found. I tried to locate my kindle with my phone (completely stock if that's important) and couldn't find it either. In about tablet, Bluetooth address says unavailable, and I don't know how I could get a log for it to help determine why it's not working.

Edit: pushing Bluetooth in quick settings just causes it to say turning on constantly
Sometimes there would be an error in Bluetooth and it wouldn't start, but if I restarted it, it would start.
In my case, it was just not booting properly.
 
  • Like
Reactions: Reynald0

pharpe

Senior Member
Mar 30, 2011
316
74
Dallas
Lenovo P11
Thanks for your work on this, as usual. It's looking great overall.

I managed to install it, although I still had to hack MindTheGapps to remove the arch check, even after updating TWRP to 3.4.0. I know how, but others will struggle. Can we do something about that?
Would you mind sharing what you changed in the MindTheGapps package to to remove the arch check?

I modified the build.prop and set arch=aarch64. That let me install the gapps. I launched the Play Store, logged in and did the two step verification successfully. But now the Play Store just says I'm not connected to the internet. I have verified internet connectivity is fine.
 
Last edited:

pharpe

Senior Member
Mar 30, 2011
316
74
Dallas
Lenovo P11
Installing the ARM gapps even with the latest TWRP did not work. It's asking for the ARM64 gapps. ARM64 Gapps install in TWRP but do not work. What I did was unzip the MindTheGapps-13.0.0-arm-20221227_014216.zip gapps (from post 15), edit the build.prop and set arch=aarch64. Then zipped it all back up and it installed fine.

Also note that after I signed into the Play Store it started giving me an error that I did not have internet connectivity. You have to then go into the app settings -> mobile data and wifi and turn on Allow network access.
 

pharpe

Senior Member
Mar 30, 2011
316
74
Dallas
Lenovo P11
My main goal with this tablet is to watch streaming media (sports primarily). All the ROMs I've tried in the past did not work for streaming so this Fire went into a drawer. I was hoping that this latest version would work. I was able to install ESPN and Sling successfully. Both log in fine but whenever you try to watch anything you get an error.

Has anyone been able to get ESPN to work on this tablet with any ROM setup?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Never mind, it worked. I switched to gcc 6.3.1 from here, manually edited a couple of Makefiles, et voilà, it builds. Works and all too. Bit slow on the boot, but I think that's a worthy price to pay for functional 5GHz WiFi.
    Code:
    [eternitydragon ~] $ adb shell iw reg get
    global
    country US: DFS-FCC
        (902 - 904 @ 2), (N/A, 30), (N/A)
        (904 - 920 @ 16), (N/A, 30), (N/A)
        (920 - 928 @ 8), (N/A, 30), (N/A)
        (2400 - 2472 @ 40), (N/A, 30), (N/A)
        (5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
        (5250 - 5350 @ 80), (N/A, 24), (0 ms), DFS, AUTO-BW
        (5470 - 5730 @ 160), (N/A, 24), (0 ms), DFS
        (5730 - 5850 @ 80), (N/A, 30), (N/A), AUTO-BW
        (5850 - 5895 @ 40), (N/A, 27), (N/A), NO-OUTDOOR, AUTO-BW, PASSIVE-SCAN
        (5925 - 7125 @ 320), (N/A, 12), (N/A), NO-OUTDOOR, PASSIVE-SCAN
        (57240 - 71000 @ 2160), (N/A, 40), (N/A)
    Find attached proof that it works (please do not mind the German) and a TWRP-flashable, rooted, and already-Amoneted boot image containing my slightly modified kernel. (The kernel image itself is also here, in case you don't like root. I installed it via Android Image Kitchen, but there are other ways too.)
    @JerseyChewi Thank you for the help in sleuthing out the problem, and I hope this can help you too.
    --
    This exact same kernel is confirmed to boot the updated-to-December-of-'22 Lineage 18.1 as well, if that happens to be your jam.
    Speaking of confirmation, if there are any testers willing to help make sure that this works, please flash the attached boot image, confirm that you can connect to 5GHz networks, and let me know the output of iw reg get below. (Note that this will reveal your country of residence; feel free to skip this if you'd like.)
    1
    Well done and thanks very much! I'll try this out soon.
  • 9
    7652ffeccaa6bbdcda57289d991b093d.gif
    Disclaimer
    Code:
    /*
    * This ROM will eat your cat
    * I am not responsible for bricked devices, dead SD cards, thermonuclear war,
    * or you getting fired because the alarm app failed.
    * Please do some research if you have any concerns about features included
    * in the products you find here before flashing it!
    * YOU are choosing to make these modifications.
    */

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit Gerrit Code Review.

    - This ROM only works with unlocked Fires!

    Rules
    - Please search the thread before asking questions
    - Please report bugs here
    - Report only one issue per bug report
    - When reporting bugs please post a logcat and/or dmesg if possible

    Prerequisites for Installation
    - Unlocked Bootloader
    - TWRP Installed

    Install/Upgrade the ROM
    - Boot to TWRP
    - Go to wipe and wipe: system, data, cache
    - Go to install and flash ROM.zip
    - Flash G-APPS (Optional)
    - Reboot

    Downloads
    LineageOS-20.0 For Karnak
    G-APPS (ARM)

    Source Code
    - Kernel Source: https://github.com/mt8163/android_kernel_amazon_karnak
    - Device Tree: https://github.com/mt8163/android_device_amazon_karnak

    XDA:DevDB Information
    Lineage-20.0 for Fire HD8 (karnak), ROM for the Amazon Fire HD 8 and HD 10

    Contributors
    Kaijones23, Rortiz2, t0x1cSH, k4y0z
    ROM OS Version: Android 13
    ROM Kernel: Linux 4.x

    Version Information
    Status:
    Testing
    Current Beta Version: 1.2
    Beta Release Date: 2022-12-25

    Created 2022-12-25
    Last Updated 2023-1-1
    6
    TODO:
    - Fix Live-display Flicker
    - [DONE] Fix Sluggish boot animation.
    - [Almost Done] Fix Interface being sluggish
    - [DONE] Fix Bluetooth
    - [DONE] Fix Camera Disconnected when camera is recording
    - [DONE] Fix Video Playback


    Please post issues here or on GitHub with the logcat snippet too so we can further troubleshoot and replicate the issue .
    5
    Changelog:
    [1/03/22]
    • Fixed BT Mac Address , BTMAC was disabled, I was able to remove the disabled flag and the bluetooth hal was able to pickup the [persist.service.bdroid.bdaddr]
    • Fixes the issue with the storage.xml , Twrp would get stuck.

    [1/02/22]
    • Fixed Codecs Thanks To @bengris32 and @R0rt1z2 .
    • Fixed Headphones ( Still Work in Progress)

    [12/29/22]
    • Fixed Bluetooth Issues​
    • Enabled LMK and UKSM In the Kernel​
    • Inherit several Android Go configurations​
    • Set default the Bluetooth class of device​
    • Added new vendors for Bluetooth config migration​
    • Align ASHA prop with Bluetooth Properties​
    • Enable Bluetooth profiles with system_ext.prop​
    • Update LE Audio profile properties to match spec and implementation​
    • Disable LE audio related profiles​
    • Enable Audio Support for Hearing Aids central support​
    • Use the ?= operator so BT properties can be overridden​
    • Move BT profiles props to vendor​
    • Don't write binary XML files​
    • props: Bump fingerprint to latest cheetah build​
    • Refactor and organize {system,vendor} properties​
    • Get rid of vndk-sp​
    • Disable SF configstore * ship disable_configstore because we have API level 29​
    • props: Checkout SurfaceFlinger properties from Fire OS 8​
    • props: Use phase offsets as duration​
    • dynamically allocate zram​
    • props: Configure ZRAM-writeback job​
    • Adjust zram write back policy​
    • Switch to SkiaGL as HWUI renderer​
    4
    Like someone else pointed out, the tablet is definitely quieter with this ROM. Not horribly, though.

    While video streaming does work, after about 20-25 minutes of it, it stops for some reason. I thought someone else had reported the same problem, but I've been going through a lot of threads recently and it may have been a different one.

    At first I tried playing an hour-long video with NewPipe, but was watching it with the audio turned all the way down. The image froze maybe ~24 minutes into the video.
    I tried again with NewPipe and a different 1hr+ vid, this time with the audio up, and the image froze again around the 24 minute mark, but the audio kept going. I tried to move back or forward to see if it would fix it, but then it would no longer load at all.
    Then I tried playing the same video in a browser (Privacy Browser, as earlier suggested). I was able to skip ahead to where it had left off in NewPipe, but then another 25 or so minutes later the video stopped and there was a circle spinning infinitely.
    Saving the videos locally with NewPipe and then playing then with VLC worked fine.

    These issues definitely won't make me give up on this ROM or anything, but I thought I'd report my experience thus far. I'll keep trying things.

    Thanks for the love on the Karnak.
    3
    Also still searching for the jobs, I’m into IT field like I have Helpdesk experience but transitioning to systems administrator and since I’ve been applying a lot daily, I haven’t heard from the employers and it makes me almost give up hope on it.