android-wifi-key-view
android-wifi-key-view copied to clipboard
Empty list on Oreo
Running v1.7 from f-droid on my Magisk rooted Oreo 8.0 phone with root granted to the app but an empty list is displayed. If I use a root file manager then I can parse WifiConfigStore.xml and get the details manually. Are any logs generated to troubleshoot?
I am a bit confused what app you actually running. Wifi Key View from evait security is not available on F-Droid Market.
My bad, it is hosted on Izzy's F-Droid repository: https://apt.izzysoft.de/fdroid/index/apk/wkv.android.evait.com.wifikeyview
So it is a direct link to your prebuilt APK. Can you confirm the issue?
We can not confirm your issue. Our Oreo test device works fine. The file is used in: https://github.com/evait-security/android-wifi-key-view/blob/ae1fabd89bee1ce409322e7dba2fbeec9f357433/app/src/main/java/wkv/android/evait/com/wifikeyview/MainActivity.java#L122
Have you tested it on a real Oreo 8.0 device? Here is a logcat:
$ adb logcat |grep evait
02-14 11:45:53.180 909 2974 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=wkv.android.evait.com.wifikeyview/.MainActivity bnds=[429,894][565,1087] (has extras)} from uid 10182
02-14 11:45:53.217 909 1042 D ViewRootImpl[wifikeyview]: hardware acceleration is disabled, fakeHwAccelerated = true, HardwareRenderer.sRendererDisabled = false, forceHwAccelerated = false, HardwareRenderer.sSystemRendererDisabled = false, this = ViewRoot{78bb2e2 Splash Screen wkv.android.evait.com.wifikeyview,ident = 911}
02-14 11:45:53.243 433 433 I BufferQueueConsumer: [Splash Screen wkv.android.evait.com.wifikeyview#0](this:0x78f6aa5800,id:11098,api:0,p:-1,c:433) setConsumerName: Splash Screen wkv.android.evait.com.wifikeyview#0
02-14 11:45:53.243 433 433 I BufferQueueConsumer: [Splash Screen wkv.android.evait.com.wifikeyview#0](this:0x78f6aa5800,id:11098,api:0,p:-1,c:433) setDefaultBufferSize: width=720 height=1280
02-14 11:45:53.259 433 871 I BufferQueueProducer: [Splash Screen wkv.android.evait.com.wifikeyview#0](this:0x78f6aa5800,id:11098,api:2,p:909,c:433) connect(P): api=2 producer=(909:system_server) producerControlledByApp=false
02-14 11:45:53.268 909 2974 I ActivityManager: Start proc 10784:wkv.android.evait.com.wifikeyview/u0a245 for activity wkv.android.evait.com.wifikeyview/.MainActivity
02-14 11:45:53.354 423 465 I [email protected]: notifyAppState pack:wkv.android.evait.com.wifikeyview, act:wkv.android.evait.com.wifikeyview.MainActivity, pid:10784, state:1
02-14 11:45:53.354 909 2974 V WindowManager: Set focused app to: AppWindowToken{1b61b2e token=Token{7d13039 ActivityRecord{750000 u0 wkv.android.evait.com.wifikeyview/.MainActivity t2262}}} old focus=AppWindowToken{e3737b token=Token{f6f2b5a ActivityRecord{295f05 u0 ch.deletescape.lawnchair.plah/ch.deletescape.lawnchair.Launcher t1403}}} moveFocusNow=true
02-14 11:45:53.354 423 438 I libPerfService: [perfNotifyAppState] foreground:wkv.android.evait.com.wifikeyview, pid:10784
02-14 11:45:53.591 10784 10784 D OpenGLRenderer: <wkv.android.evait.com.wifikeyview> is running.
02-14 11:45:53.600 10784 10784 D ViewRootImpl[MainActivity]: hardware acceleration is enabled, this = ViewRoot{f3973e4 wkv.android.evait.com.wifikeyview/wkv.android.evait.com.wifikeyview.MainActivity,ident = 0}
02-14 11:45:53.615 10784 10784 V PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{f3973e4 wkv.android.evait.com.wifikeyview/wkv.android.evait.com.wifikeyview.MainActivity,ident = 0}, this = DecorView@b234816[MainActivity]
02-14 11:45:53.626 909 3178 I WindowManager: Relayout Window{5042e48 u0 wkv.android.evait.com.wifikeyview/wkv.android.evait.com.wifikeyview.MainActivity}: oldVis=4 newVis=0 focusMayChange = true
02-14 11:45:53.630 433 433 I BufferQueueConsumer: [wkv.android.evait.com.wifikeyview/wkv.android.evait.com.wifikeyview.MainActivity#0](this:0x78f6b86800,id:11099,api:0,p:-1,c:433) setConsumerName: wkv.android.evait.com.wifikeyview/wkv.android.evait.com.wifikeyview.MainActivity#0
02-14 11:45:53.630 433 433 I BufferQueueConsumer: [wkv.android.evait.com.wifikeyview/wkv.android.evait.com.wifikeyview.MainActivity#0](this:0x78f6b86800,id:11099,api:0,p:-1,c:433) setDefaultBufferSize: width=720 height=1280
02-14 11:45:53.633 909 3178 V WindowManager: Changing focus from null to Window{5042e48 u0 wkv.android.evait.com.wifikeyview/wkv.android.evait.com.wifikeyview.MainActivity} Callers=com.android.server.wm.WindowManagerService.relayoutWindow:2185 com.android.server.wm.Session.relayout:235 android.view.IWindowSession$Stub.onTransact:286 com.android.server.wm.Session.onTransact:162
02-14 11:45:53.633 909 3178 D WindowManager: Input focus has changed to Window{5042e48 u0 wkv.android.evait.com.wifikeyview/wkv.android.evait.com.wifikeyview.MainActivity}
02-14 11:45:53.696 433 889 I BufferQueueProducer: [wkv.android.evait.com.wifikeyview/wkv.android.evait.com.wifikeyview.MainActivity#0](this:0x78f6b86800,id:11099,api:1,p:10784,c:433) connect(P): api=1 producer=(10784:wkv.android.evait.com.wifikeyview) producerControlledByApp=true
02-14 11:45:53.898 909 930 I ActivityManager: Displayed wkv.android.evait.com.wifikeyview/.MainActivity: +675ms (total +6m12s674ms)
02-14 11:45:54.023 433 889 I BufferQueueProducer: [Splash Screen wkv.android.evait.com.wifikeyview#0](this:0x78f6aa5800,id:11098,api:2,p:909,c:433) disconnect(P): api 2
02-14 11:45:54.023 433 889 I BufferQueueConsumer: [Splash Screen wkv.android.evait.com.wifikeyview#0](this:0x78f6aa5800,id:11098,api:2,p:-1,c:433) getReleasedBuffers: returning mask 0xffffffffffffffff
02-14 11:45:54.038 433 433 I BufferQueueConsumer: [Splash Screen wkv.android.evait.com.wifikeyview#0](this:0x78f6aa5800,id:11098,api:2,p:-1,c:-1) disconnect(C)
02-14 11:45:54.038 433 433 I BufferQueue: [Splash Screen wkv.android.evait.com.wifikeyview#0](this:0x78f6aa5800,id:11098,api:2,p:-1,c:-1) ~BufferQueueCore
02-14 11:45:54.134 10784 10800 E evait : IOException, Attempt to invoke interface method 'java.lang.String org.w3c.dom.Node.getNodeValue()' on a null object reference
You can clearly see an error, even though superuser access has been granted:
`IOException, Attempt to invoke interface method 'java.lang.String org.w3c.dom.Node.getNodeValue()' on a null object reference
And here is the content of /data/misc/wifi/WifiConfigStore.xml:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<WifiConfigStoreData>
<int name="Version" value="1" />
<NetworkList>
<Network>
<WifiConfiguration>
<string name="ConfigKey">"testtesttest"WPA_PSK</string>
<string name="SSID">"testtesttest"</string>
<null name="BSSID" />
<string name="PreSharedKey">"password123"</string>
<null name="WEPKeys" />
<int name="WEPTxKeyIndex" value="0" />
<boolean name="HiddenSSID" value="false" />
<boolean name="RequirePMF" value="false" />
<byte-array name="AllowedKeyMgmt" num="1">02</byte-array>
<byte-array name="AllowedProtocols" num="1">03</byte-array>
<byte-array name="AllowedAuthAlgos" num="1">01</byte-array>
<byte-array name="AllowedGroupCiphers" num="1">0f</byte-array>
<byte-array name="AllowedPairwiseCiphers" num="1">06</byte-array>
<boolean name="Shared" value="true" />
<null name="SimSlot" />
<null name="Aliases" />
<int name="Status" value="2" />
<null name="FQDN" />
<null name="ProviderFriendlyName" />
<null name="LinkedNetworksList" />
<string name="DefaultGwMacAddress">00:00:00:00:00:00</string>
<boolean name="ValidatedInternetAccess" value="true" />
<boolean name="NoInternetAccessExpected" value="false" />
<int name="UserApproved" value="0" />
<boolean name="MeteredHint" value="false" />
<boolean name="UseExternalScores" value="false" />
<int name="NumAssociation" value="836" />
<int name="CreatorUid" value="1000" />
<string name="CreatorName">android.uid.system:1000</string>
<string name="CreationTime">time=11-11 00:00:00.000</string>
<int name="LastUpdateUid" value="1000" />
<string name="LastUpdateName">android.uid.system:1000</string>
<int name="LastConnectUid" value="1000" />
<boolean name="IsLegacyPasspointConfig" value="false" />
<long-array name="RoamingConsortiumOIs" num="0" />
</WifiConfiguration>
<NetworkStatus>
<string name="SelectionStatus">NETWORK_SELECTION_ENABLED</string>
<string name="DisableReason">NETWORK_SELECTION_ENABLE</string>
<null name="ConnectChoice" />
<long name="ConnectChoiceTimeStamp" value="-1" />
<boolean name="HasEverConnected" value="true" />
</NetworkStatus>
<IpConfiguration>
<string name="IpAssignment">DHCP</string>
<string name="ProxySettings">NONE</string>
</IpConfiguration>
</Network>
</NetworkList>
<PasspointConfigData>
<long name="ProviderIndex" value="0" />
</PasspointConfigData>
</WifiConfigStoreData>
The important line being:
<string name="PreSharedKey">"password123"</string>