网中网
网中网
  • 发布:2021-11-24 18:31
  • 更新:2021-12-15 11:43
  • 阅读:2202

Android平台隐私与政策使用template模式查看隐私政策内容时被检测出了 chromium 获取 Wifi信息、MAC地址、ssid

分类:HTML5+

您好,我使用了template模式,androidPrivacy.json文件message中的分别尝试了两种方式:

第一次按照这个配置:
<a href=\"http://edu-test.ckrs.cn/gxmobile/#/privacy\">《隐私政策》</a>

第二次按照这种配置:
<a href=\"static/privacy.html\">《隐私政策》</a>

在最近的一次检测中,弹出隐私与政策提示框后,在查看隐私政策内容时被检测出了 chromium 获取 Wifi信息、MAC地址、ssid, 请问这种应该要怎么解决?

2021-11-24 18:31 负责人:DCloud_Android_ST 分享
已邀请:

最佳回复

DCloud_Android_ST

DCloud_Android_ST

chromium 系统浏览器内核触发的获取 与APP无关 不影响审核

DCloud_Android_ST

DCloud_Android_ST

chromium获取信息那是系统浏览器内核问题 与app无关。提供一下调用堆栈吧。

  • 网中网 (作者)

    获取MAC地址调用信息为:

    {"stackTrace": [{"className": "libcore.util.Janus", "level": 0, "fileName": "Janus.java", "methodName": "getData", "lineNumber": 487}, {"className": "android.net.wifi.WifiManager", "level": 0, "fileName": "WifiManager.java", "methodName": "getConnectionInfo", "lineNumber": 1676}, {"className": "org.chromium.net.NetworkChangeNotifierAutoDetect$WifiManagerDelegate", "level": 0, "fileName": "NetworkChangeNotifierAutoDetect.java", "methodName": "getWifiInfoLocked", "lineNumber": 28}, {"className": "org.chromium.net.NetworkChangeNotifierAutoDetect$WifiManagerDelegate", "level": 0, "fileName": "NetworkChangeNotifierAutoDetect.java", "methodName": "getWifiSsid", "lineNumber": 22}, {"className": "org.chromium.net.NetworkChangeNotifierAutoDetect", "level": 0, "fileName": "NetworkChangeNotifierAutoDetect.java", "methodName": "getCurrentNetworkState", "lineNumber": 67}, {"className": "org.chromium.net.NetworkChangeNotifierAutoDetect", "level": 0, "fileName": "NetworkChangeNotifierAutoDetect.java", "methodName": "<init>", "lineNumber": 21}, {"className": "org.chromium.net.NetworkChangeNotifier", "level": 0, "fileName": "NetworkChangeNotifier.java", "methodName": "setAutoDetectConnectivityStateInternal", "lineNumber": 61}, {"className": "com.android.webview.chromium.WebViewChromiumAwInit", "level": 0, "fileName": "WebViewChromiumAwInit.java", "methodName": "startChromiumLocked", "lineNumber": 35}, {"className": "com.android.webview.chromium.WebViewChromiumAwInitForP", "level": 0, "fileName": "WebViewChromiumAwInitForP.java", "methodName": "startChromiumLocked", "lineNumber": 3}, {"className": "com.android.webview.chromium.WebViewChromiumAwInit", "level": 0, "fileName": "WebViewChromiumAwInit.java", "methodName": "ensureChromiumStartedLocked", "lineNumber": 142}, {"className": "com.android.webview.chromium.WebViewChromiumAwInit", "level": 0, "fileName": "WebViewChromiumAwInit.java", "methodName": "startYourEngines", "lineNumber": 123}, {"className": "com.android.webview.chromium.WebViewChromiumFactoryProvider", "level": 0, "fileName": "WebViewChromiumFactoryProvider.java", "methodName": "startYourEngines", "lineNumber": 157}, {"className": "com.android.webview.chromium.WebViewChromium", "level": 0, "fileName": "WebViewChromium.java", "methodName": "init", "lineNumber": 34}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 424}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 350}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 333}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 320}, {"className": "java.lang.reflect.Constructor", "level": 0, "fileName": "Constructor.java", "methodName": "newInstance0", "lineNumber": -2}, {"className": "java.lang.reflect.Constructor", "level": 0, "fileName": "Constructor.java", "methodName": "newInstance", "lineNumber": 343}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "createView", "lineNumber": 647}, {"className": "com.android.internal.policy.PhoneLayoutInflater", "level": 0, "fileName": "PhoneLayoutInflater.java", "methodName": "onCreateView", "lineNumber": 58}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "onCreateView", "lineNumber": 720}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "createViewFromTag", "lineNumber": 788}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "createViewFromTag", "lineNumber": 730}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflate", "lineNumber": 863}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflateChildren", "lineNumber": 824}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflate", "lineNumber": 866}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflateChildren", "lineNumber": 824}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "inflate", "lineNumber": 515}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "inflate", "lineNumber": 423}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "inflate", "lineNumber": 374}, {"className": "com.android.internal.policy.PhoneWindow", "level": 0, "fileName": "PhoneWindow.java", "methodName": "setContentView", "lineNumber": 420}, {"className": "android.app.Activity", "level": 0, "fileName": "Activity.java", "methodName": "setContentView", "lineNumber": 2778}, {"className": "io.dcloud.WebviewActivity", "level": 0, "fileName": "SourceFile", "methodName": "onCreate", "lineNumber": 3}, {"className": "android.app.Activity", "level": 0, "fileName": "Activity.java", "methodName": "performCreate", "lineNumber": 7242}, {"className": "android.app.Activity", "level": 0, "fileName": "Activity.java", "methodName": "performCreate", "lineNumber": 7233}, {"className": "android.app.Instrumentation", "level": 0, "fileName": "Instrumentation.java", "methodName": "callActivityOnCreate", "lineNumber": 1271}, {"className": "android.app.ActivityThread", "level": 0, "fileName": "ActivityThread.java", "methodName": "performLaunchActivity", "lineNumber": 2932}, {"className": "android.app.ActivityThread", "level": 0, "fileName": "ActivityThread.java", "methodName": "handleLaunchActivity", "lineNumber": 3087}, {"className": "android.app.servertransaction.LaunchActivityItem", "level": 0, "fileName": "LaunchActivityItem.java", "methodName": "execute", "lineNumber": 78}, {"className": "android.app.servertransaction.TransactionExecutor", "level": 0, "fileName": "TransactionExecutor.java", "methodName": "executeCallbacks", "lineNumber": 108}, {"className": "android.app.servertransaction.TransactionExecutor", "level": 0, "fileName": "TransactionExecutor.java", "methodName": "execute", "lineNumber": 68}, {"className": "android.app.ActivityThread$H", "level": 0, "fileName": "ActivityThread.java", "methodName": "handleMessage", "lineNumber": 1817}, {"className": "android.os.Handler", "level": 0, "fileName": "Handler.java", "methodName": "dispatchMessage", "lineNumber": 106}, {"className": "android.os.Looper", "level": 0, "fileName": "Looper.java", "methodName": "loop", "lineNumber": 193}, {"className": "android.app.ActivityThread", "level": 0, "fileName": "ActivityThread.java", "methodName": "main", "lineNumber": 6719}, {"className": "java.lang.reflect.Method", "level": 0, "fileName": "Method.java", "methodName": "invoke", "lineNumber": -2}, {"className": "com.android.internal.os.RuntimeInit$MethodAndArgsCaller", "level": 0, "fileName": "RuntimeInit.java", "methodName": "run", "lineNumber": 506}, {"className": "com.android.internal.os.ZygoteInit", "level": 0, "fileName": "ZygoteInit.java", "methodName": "main", "lineNumber": 863}], "result": {"WifiInfo": "SSID: , BSSID: 02:00:00:00:00:00, MAC: 02:00:00:00:00:00, Supplicant state: COMPLETED, RSSI: -48, Link speed: 192Mbps, Frequency: 5300MHz, Net ID: 0, Metered hint: false, score: 60"}}


    获取Wifi信息调用信息为:

    {"stackTrace": [{"className": "libcore.util.Janus", "level": 0, "fileName": "Janus.java", "methodName": "getData", "lineNumber": 487}, {"className": "android.net.wifi.WifiManager", "level": 0, "fileName": "WifiManager.java", "methodName": "getConnectionInfo", "lineNumber": 1676}, {"className": "org.chromium.net.NetworkChangeNotifierAutoDetect$WifiManagerDelegate", "level": 0, "fileName": "NetworkChangeNotifierAutoDetect.java", "methodName": "getWifiInfoLocked", "lineNumber": 28}, {"className": "org.chromium.net.NetworkChangeNotifierAutoDetect$WifiManagerDelegate", "level": 0, "fileName": "NetworkChangeNotifierAutoDetect.java", "methodName": "getWifiSsid", "lineNumber": 22}, {"className": "org.chromium.net.NetworkChangeNotifierAutoDetect", "level": 0, "fileName": "NetworkChangeNotifierAutoDetect.java", "methodName": "getCurrentNetworkState", "lineNumber": 67}, {"className": "org.chromium.net.NetworkChangeNotifierAutoDetect", "level": 0, "fileName": "NetworkChangeNotifierAutoDetect.java", "methodName": "<init>", "lineNumber": 21}, {"className": "org.chromium.net.NetworkChangeNotifier", "level": 0, "fileName": "NetworkChangeNotifier.java", "methodName": "setAutoDetectConnectivityStateInternal", "lineNumber": 61}, {"className": "com.android.webview.chromium.WebViewChromiumAwInit", "level": 0, "fileName": "WebViewChromiumAwInit.java", "methodName": "startChromiumLocked", "lineNumber": 35}, {"className": "com.android.webview.chromium.WebViewChromiumAwInitForP", "level": 0, "fileName": "WebViewChromiumAwInitForP.java", "methodName": "startChromiumLocked", "lineNumber": 3}, {"className": "com.android.webview.chromium.WebViewChromiumAwInit", "level": 0, "fileName": "WebViewChromiumAwInit.java", "methodName": "ensureChromiumStartedLocked", "lineNumber": 142}, {"className": "com.android.webview.chromium.WebViewChromiumAwInit", "level": 0, "fileName": "WebViewChromiumAwInit.java", "methodName": "startYourEngines", "lineNumber": 123}, {"className": "com.android.webview.chromium.WebViewChromiumFactoryProvider", "level": 0, "fileName": "WebViewChromiumFactoryProvider.java", "methodName": "startYourEngines", "lineNumber": 157}, {"className": "com.android.webview.chromium.WebViewChromium", "level": 0, "fileName": "WebViewChromium.java", "methodName": "init", "lineNumber": 34}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 424}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 350}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 333}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 320}, {"className": "java.lang.reflect.Constructor", "level": 0, "fileName": "Constructor.java", "methodName": "newInstance0", "lineNumber": -2}, {"className": "java.lang.reflect.Constructor", "level": 0, "fileName": "Constructor.java", "methodName": "newInstance", "lineNumber": 343}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "createView", "lineNumber": 647}, {"className": "com.android.internal.policy.PhoneLayoutInflater", "level": 0, "fileName": "PhoneLayoutInflater.java", "methodName": "onCreateView", "lineNumber": 58}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "onCreateView", "lineNumber": 720}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "createViewFromTag", "lineNumber": 788}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "createViewFromTag", "lineNumber": 730}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflate", "lineNumber": 863}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflateChildren", "lineNumber": 824}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflate", "lineNumber": 866}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflateChildren", "lineNumber": 824}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "inflate", "lineNumber": 515}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "inflate", "lineNumber": 423}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "inflate", "lineNumber": 374}, {"className": "com.android.internal.policy.PhoneWindow", "level": 0, "fileName": "PhoneWindow.java", "methodName": "setContentView", "lineNumber": 420}, {"className": "android.app.Activity", "level": 0, "fileName": "Activity.java", "methodName": "setContentView", "lineNumber": 2778}, {"className": "io.dcloud.WebviewActivity", "level": 0, "fileName": "SourceFile", "methodName": "onCreate", "lineNumber": 3}, {"className": "android.app.Activity", "level": 0, "fileName": "Activity.java", "methodName": "performCreate", "lineNumber": 7242}, {"className": "android.app.Activity", "level": 0, "fileName": "Activity.java", "methodName": "performCreate", "lineNumber": 7233}, {"className": "android.app.Instrumentation", "level": 0, "fileName": "Instrumentation.java", "methodName": "callActivityOnCreate", "lineNumber": 1271}, {"className": "android.app.ActivityThread", "level": 0, "fileName": "ActivityThread.java", "methodName": "performLaunchActivity", "lineNumber": 2932}, {"className": "android.app.ActivityThread", "level": 0, "fileName": "ActivityThread.java", "methodName": "handleLaunchActivity", "lineNumber": 3087}, {"className": "android.app.servertransaction.LaunchActivityItem", "level": 0, "fileName": "LaunchActivityItem.java", "methodName": "execute", "lineNumber": 78}, {"className": "android.app.servertransaction.TransactionExecutor", "level": 0, "fileName": "TransactionExecutor.java", "methodName": "executeCallbacks", "lineNumber": 108}, {"className": "android.app.servertransaction.TransactionExecutor", "level": 0, "fileName": "TransactionExecutor.java", "methodName": "execute", "lineNumber": 68}, {"className": "android.app.ActivityThread$H", "level": 0, "fileName": "ActivityThread.java", "methodName": "handleMessage", "lineNumber": 1817}, {"className": "android.os.Handler", "level": 0, "fileName": "Handler.java", "methodName": "dispatchMessage", "lineNumber": 106}, {"className": "android.os.Looper", "level": 0, "fileName": "Looper.java", "methodName": "loop", "lineNumber": 193}, {"className": "android.app.ActivityThread", "level": 0, "fileName": "ActivityThread.java", "methodName": "main", "lineNumber": 6719}, {"className": "java.lang.reflect.Method", "level": 0, "fileName": "Method.java", "methodName": "invoke", "lineNumber": -2}, {"className": "com.android.internal.os.RuntimeInit$MethodAndArgsCaller", "level": 0, "fileName": "RuntimeInit.java", "methodName": "run", "lineNumber": 506}, {"className": "com.android.internal.os.ZygoteInit", "level": 0, "fileName": "ZygoteInit.java", "methodName": "main", "lineNumber": 863}], "result": {"WifiInfo": "SSID: , BSSID: 02:00:00:00:00:00, MAC: 02:00:00:00:00:00, Supplicant state: COMPLETED, RSSI: -48, Link speed: 192Mbps, Frequency: 5300MHz, Net ID: 0, Metered hint: false, score: 60"}}


    获取ssid调用信息为:

    {"stackTrace": [{"className": "libcore.util.Janus", "level": 0, "fileName": "Janus.java", "methodName": "getData", "lineNumber": 487}, {"className": "android.net.wifi.WifiInfo", "level": 0, "fileName": "WifiInfo.java", "methodName": "getSSID", "lineNumber": 272}, {"className": "org.chromium.net.NetworkChangeNotifierAutoDetect$WifiManagerDelegate", "level": 0, "fileName": "NetworkChangeNotifierAutoDetect.java", "methodName": "getWifiSsid", "lineNumber": 24}, {"className": "org.chromium.net.NetworkChangeNotifierAutoDetect", "level": 0, "fileName": "NetworkChangeNotifierAutoDetect.java", "methodName": "getCurrentNetworkState", "lineNumber": 67}, {"className": "org.chromium.net.NetworkChangeNotifierAutoDetect", "level": 0, "fileName": "NetworkChangeNotifierAutoDetect.java", "methodName": "<init>", "lineNumber": 21}, {"className": "org.chromium.net.NetworkChangeNotifier", "level": 0, "fileName": "NetworkChangeNotifier.java", "methodName": "setAutoDetectConnectivityStateInternal", "lineNumber": 61}, {"className": "com.android.webview.chromium.WebViewChromiumAwInit", "level": 0, "fileName": "WebViewChromiumAwInit.java", "methodName": "startChromiumLocked", "lineNumber": 35}, {"className": "com.android.webview.chromium.WebViewChromiumAwInitForP", "level": 0, "fileName": "WebViewChromiumAwInitForP.java", "methodName": "startChromiumLocked", "lineNumber": 3}, {"className": "com.android.webview.chromium.WebViewChromiumAwInit", "level": 0, "fileName": "WebViewChromiumAwInit.java", "methodName": "ensureChromiumStartedLocked", "lineNumber": 142}, {"className": "com.android.webview.chromium.WebViewChromiumAwInit", "level": 0, "fileName": "WebViewChromiumAwInit.java", "methodName": "startYourEngines", "lineNumber": 123}, {"className": "com.android.webview.chromium.WebViewChromiumFactoryProvider", "level": 0, "fileName": "WebViewChromiumFactoryProvider.java", "methodName": "startYourEngines", "lineNumber": 157}, {"className": "com.android.webview.chromium.WebViewChromium", "level": 0, "fileName": "WebViewChromium.java", "methodName": "init", "lineNumber": 34}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 424}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 350}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 333}, {"className": "android.webkit.WebView", "level": 0, "fileName": "WebView.java", "methodName": "<init>", "lineNumber": 320}, {"className": "java.lang.reflect.Constructor", "level": 0, "fileName": "Constructor.java", "methodName": "newInstance0", "lineNumber": -2}, {"className": "java.lang.reflect.Constructor", "level": 0, "fileName": "Constructor.java", "methodName": "newInstance", "lineNumber": 343}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "createView", "lineNumber": 647}, {"className": "com.android.internal.policy.PhoneLayoutInflater", "level": 0, "fileName": "PhoneLayoutInflater.java", "methodName": "onCreateView", "lineNumber": 58}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "onCreateView", "lineNumber": 720}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "createViewFromTag", "lineNumber": 788}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "createViewFromTag", "lineNumber": 730}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflate", "lineNumber": 863}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflateChildren", "lineNumber": 824}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflate", "lineNumber": 866}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "rInflateChildren", "lineNumber": 824}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "inflate", "lineNumber": 515}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "inflate", "lineNumber": 423}, {"className": "android.view.LayoutInflater", "level": 0, "fileName": "LayoutInflater.java", "methodName": "inflate", "lineNumber": 374}, {"className": "com.android.internal.policy.PhoneWindow", "level": 0, "fileName": "PhoneWindow.java", "methodName": "setContentView", "lineNumber": 420}, {"className": "android.app.Activity", "level": 0, "fileName": "Activity.java", "methodName": "setContentView", "lineNumber": 2778}, {"className": "io.dcloud.WebviewActivity", "level": 0, "fileName": "SourceFile", "methodName": "onCreate", "lineNumber": 3}, {"className": "android.app.Activity", "level": 0, "fileName": "Activity.java", "methodName": "performCreate", "lineNumber": 7242}, {"className": "android.app.Activity", "level": 0, "fileName": "Activity.java", "methodName": "performCreate", "lineNumber": 7233}, {"className": "android.app.Instrumentation", "level": 0, "fileName": "Instrumentation.java", "methodName": "callActivityOnCreate", "lineNumber": 1271}, {"className": "android.app.ActivityThread", "level": 0, "fileName": "ActivityThread.java", "methodName": "performLaunchActivity", "lineNumber": 2932}, {"className": "android.app.ActivityThread", "level": 0, "fileName": "ActivityThread.java", "methodName": "handleLaunchActivity", "lineNumber": 3087}, {"className": "android.app.servertransaction.LaunchActivityItem", "level": 0, "fileName": "LaunchActivityItem.java", "methodName": "execute", "lineNumber": 78}, {"className": "android.app.servertransaction.TransactionExecutor", "level": 0, "fileName": "TransactionExecutor.java", "methodName": "executeCallbacks", "lineNumber": 108}, {"className": "android.app.servertransaction.TransactionExecutor", "level": 0, "fileName": "TransactionExecutor.java", "methodName": "execute", "lineNumber": 68}, {"className": "android.app.ActivityThread$H", "level": 0, "fileName": "ActivityThread.java", "methodName": "handleMessage", "lineNumber": 1817}, {"className": "android.os.Handler", "level": 0, "fileName": "Handler.java", "methodName": "dispatchMessage", "lineNumber": 106}, {"className": "android.os.Looper", "level": 0, "fileName": "Looper.java", "methodName": "loop", "lineNumber": 193}, {"className": "android.app.ActivityThread", "level": 0, "fileName": "ActivityThread.java", "methodName": "main", "lineNumber": 6719}, {"className": "java.lang.reflect.Method", "level": 0, "fileName": "Method.java", "methodName": "invoke", "lineNumber": -2}, {"className": "com.android.internal.os.RuntimeInit$MethodAndArgsCaller", "level": 0, "fileName": "RuntimeInit.java", "methodName": "run", "lineNumber": 506}, {"className": "com.android.internal.os.ZygoteInit", "level": 0, "fileName": "ZygoteInit.java", "methodName": "main", "lineNumber": 863}], "result": {"String": "<unknown ssid>"}}

    2021-12-15 09:42

网中网

网中网 (作者)

获取Wifi信息:

{
"stackTrace": [{
"className": "libcore.util.Janus",
"level": 0,
"fileName": "Janus.java",
"methodName": "getData",
"lineNumber": 487
}, {
"className": "android.net.wifi.WifiManager",
"level": 0,
"fileName": "WifiManager.java",
"methodName": "getConnectionInfo",
"lineNumber": 1676
}, {
"className": "org.chromium.net.NetworkChangeNotifierAutoDetect$WifiManagerDelegate",
"level": 0,
"fileName": "NetworkChangeNotifierAutoDetect.java",
"methodName": "getWifiInfoLocked",
"lineNumber": 28
}, {
"className": "org.chromium.net.NetworkChangeNotifierAutoDetect$WifiManagerDelegate",
"level": 0,
"fileName": "NetworkChangeNotifierAutoDetect.java",
"methodName": "getWifiSsid",
"lineNumber": 22
}, {
"className": "org.chromium.net.NetworkChangeNotifierAutoDetect",
"level": 0,
"fileName": "NetworkChangeNotifierAutoDetect.java",
"methodName": "getCurrentNetworkState",
"lineNumber": 67
}, {
"className": "org.chromium.net.NetworkChangeNotifierAutoDetect",
"level": 0,
"fileName": "NetworkChangeNotifierAutoDetect.java",
"methodName": "<init>",
"lineNumber": 21
}, {
"className": "org.chromium.net.NetworkChangeNotifier",
"level": 0,
"fileName": "NetworkChangeNotifier.java",
"methodName": "setAutoDetectConnectivityStateInternal",
"lineNumber": 61
}, {
"className": "com.android.webview.chromium.WebViewChromiumAwInit",
"level": 0,
"fileName": "WebViewChromiumAwInit.java",
"methodName": "startChromiumLocked",
"lineNumber": 35
}, {
"className": "com.android.webview.chromium.WebViewChromiumAwInitForP",
"level": 0,
"fileName": "WebViewChromiumAwInitForP.java",
"methodName": "startChromiumLocked",
"lineNumber": 3
}, {
"className": "com.android.webview.chromium.WebViewChromiumAwInit",
"level": 0,
"fileName": "WebViewChromiumAwInit.java",
"methodName": "ensureChromiumStartedLocked",
"lineNumber": 142
}, {
"className": "com.android.webview.chromium.WebViewChromiumAwInit",
"level": 0,
"fileName": "WebViewChromiumAwInit.java",
"methodName": "startYourEngines",
"lineNumber": 123
}, {
"className": "com.android.webview.chromium.WebViewChromiumFactoryProvider",
"level": 0,
"fileName": "WebViewChromiumFactoryProvider.java",
"methodName": "startYourEngines",
"lineNumber": 157
}, {
"className": "com.android.webview.chromium.WebViewChromium",
"level": 0,
"fileName": "WebViewChromium.java",
"methodName": "init",
"lineNumber": 34
}, {
"className": "android.webkit.WebView",
"level": 0,
"fileName": "WebView.java",
"methodName": "<init>",
"lineNumber": 424
}, {
"className": "android.webkit.WebView",
"level": 0,
"fileName": "WebView.java",
"methodName": "<init>",
"lineNumber": 350
}, {
"className": "android.webkit.WebView",
"level": 0,
"fileName": "WebView.java",
"methodName": "<init>",
"lineNumber": 333
}, {
"className": "android.webkit.WebView",
"level": 0,
"fileName": "WebView.java",
"methodName": "<init>",
"lineNumber": 320
}, {
"className": "java.lang.reflect.Constructor",
"level": 0,
"fileName": "Constructor.java",
"methodName": "newInstance0",
"lineNumber": -2
}, {
"className": "java.lang.reflect.Constructor",
"level": 0,
"fileName": "Constructor.java",
"methodName": "newInstance",
"lineNumber": 343
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "createView",
"lineNumber": 647
}, {
"className": "com.android.internal.policy.PhoneLayoutInflater",
"level": 0,
"fileName": "PhoneLayoutInflater.java",
"methodName": "onCreateView",
"lineNumber": 58
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "onCreateView",
"lineNumber": 720
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "createViewFromTag",
"lineNumber": 788
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "createViewFromTag",
"lineNumber": 730
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "rInflate",
"lineNumber": 863
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "rInflateChildren",
"lineNumber": 824
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "rInflate",
"lineNumber": 866
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "rInflateChildren",
"lineNumber": 824
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "inflate",
"lineNumber": 515
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "inflate",
"lineNumber": 423
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "inflate",
"lineNumber": 374
}, {
"className": "com.android.internal.policy.PhoneWindow",
"level": 0,
"fileName": "PhoneWindow.java",
"methodName": "setContentView",
"lineNumber": 420
}, {
"className": "android.app.Activity",
"level": 0,
"fileName": "Activity.java",
"methodName": "setContentView",
"lineNumber": 2778
}, {
"className": "io.dcloud.WebviewActivity",
"level": 0,
"fileName": "SourceFile",
"methodName": "onCreate",
"lineNumber": 3
}, {
"className": "android.app.Activity",
"level": 0,
"fileName": "Activity.java",
"methodName": "performCreate",
"lineNumber": 7242
}, {
"className": "android.app.Activity",
"level": 0,
"fileName": "Activity.java",
"methodName": "performCreate",
"lineNumber": 7233
}, {
"className": "android.app.Instrumentation",
"level": 0,
"fileName": "Instrumentation.java",
"methodName": "callActivityOnCreate",
"lineNumber": 1271
}, {
"className": "android.app.ActivityThread",
"level": 0,
"fileName": "ActivityThread.java",
"methodName": "performLaunchActivity",
"lineNumber": 2932
}, {
"className": "android.app.ActivityThread",
"level": 0,
"fileName": "ActivityThread.java",
"methodName": "handleLaunchActivity",
"lineNumber": 3087
}, {
"className": "android.app.servertransaction.LaunchActivityItem",
"level": 0,
"fileName": "LaunchActivityItem.java",
"methodName": "execute",
"lineNumber": 78
}, {
"className": "android.app.servertransaction.TransactionExecutor",
"level": 0,
"fileName": "TransactionExecutor.java",
"methodName": "executeCallbacks",
"lineNumber": 108
}, {
"className": "android.app.servertransaction.TransactionExecutor",
"level": 0,
"fileName": "TransactionExecutor.java",
"methodName": "execute",
"lineNumber": 68
}, {
"className": "android.app.ActivityThread$H",
"level": 0,
"fileName": "ActivityThread.java",
"methodName": "handleMessage",
"lineNumber": 1817
}, {
"className": "android.os.Handler",
"level": 0,
"fileName": "Handler.java",
"methodName": "dispatchMessage",
"lineNumber": 106
}, {
"className": "android.os.Looper",
"level": 0,
"fileName": "Looper.java",
"methodName": "loop",
"lineNumber": 193
}, {
"className": "android.app.ActivityThread",
"level": 0,
"fileName": "ActivityThread.java",
"methodName": "main",
"lineNumber": 6719
}, {
"className": "java.lang.reflect.Method",
"level": 0,
"fileName": "Method.java",
"methodName": "invoke",
"lineNumber": -2
}, {
"className": "com.android.internal.os.RuntimeInit$MethodAndArgsCaller",
"level": 0,
"fileName": "RuntimeInit.java",
"methodName": "run",
"lineNumber": 506
}, {
"className": "com.android.internal.os.ZygoteInit",
"level": 0,
"fileName": "ZygoteInit.java",
"methodName": "main",
"lineNumber": 863
}],
"result": {
"WifiInfo": "SSID: , BSSID: 02:00:00:00:00:00, MAC: 02:00:00:00:00:00, Supplicant state: COMPLETED, RSSI: -48, Link speed: 192Mbps, Frequency: 5300MHz, Net ID: 0, Metered hint: false, score: 60"
}
}

网中网

网中网 (作者)

获取MAC地址:

{
"stackTrace": [{
"className": "libcore.util.Janus",
"level": 0,
"fileName": "Janus.java",
"methodName": "getData",
"lineNumber": 487
}, {
"className": "android.net.wifi.WifiManager",
"level": 0,
"fileName": "WifiManager.java",
"methodName": "getConnectionInfo",
"lineNumber": 1676
}, {
"className": "org.chromium.net.NetworkChangeNotifierAutoDetect$WifiManagerDelegate",
"level": 0,
"fileName": "NetworkChangeNotifierAutoDetect.java",
"methodName": "getWifiInfoLocked",
"lineNumber": 28
}, {
"className": "org.chromium.net.NetworkChangeNotifierAutoDetect$WifiManagerDelegate",
"level": 0,
"fileName": "NetworkChangeNotifierAutoDetect.java",
"methodName": "getWifiSsid",
"lineNumber": 22
}, {
"className": "org.chromium.net.NetworkChangeNotifierAutoDetect",
"level": 0,
"fileName": "NetworkChangeNotifierAutoDetect.java",
"methodName": "getCurrentNetworkState",
"lineNumber": 67
}, {
"className": "org.chromium.net.NetworkChangeNotifierAutoDetect",
"level": 0,
"fileName": "NetworkChangeNotifierAutoDetect.java",
"methodName": "<init>",
"lineNumber": 21
}, {
"className": "org.chromium.net.NetworkChangeNotifier",
"level": 0,
"fileName": "NetworkChangeNotifier.java",
"methodName": "setAutoDetectConnectivityStateInternal",
"lineNumber": 61
}, {
"className": "com.android.webview.chromium.WebViewChromiumAwInit",
"level": 0,
"fileName": "WebViewChromiumAwInit.java",
"methodName": "startChromiumLocked",
"lineNumber": 35
}, {
"className": "com.android.webview.chromium.WebViewChromiumAwInitForP",
"level": 0,
"fileName": "WebViewChromiumAwInitForP.java",
"methodName": "startChromiumLocked",
"lineNumber": 3
}, {
"className": "com.android.webview.chromium.WebViewChromiumAwInit",
"level": 0,
"fileName": "WebViewChromiumAwInit.java",
"methodName": "ensureChromiumStartedLocked",
"lineNumber": 142
}, {
"className": "com.android.webview.chromium.WebViewChromiumAwInit",
"level": 0,
"fileName": "WebViewChromiumAwInit.java",
"methodName": "startYourEngines",
"lineNumber": 123
}, {
"className": "com.android.webview.chromium.WebViewChromiumFactoryProvider",
"level": 0,
"fileName": "WebViewChromiumFactoryProvider.java",
"methodName": "startYourEngines",
"lineNumber": 157
}, {
"className": "com.android.webview.chromium.WebViewChromium",
"level": 0,
"fileName": "WebViewChromium.java",
"methodName": "init",
"lineNumber": 34
}, {
"className": "android.webkit.WebView",
"level": 0,
"fileName": "WebView.java",
"methodName": "<init>",
"lineNumber": 424
}, {
"className": "android.webkit.WebView",
"level": 0,
"fileName": "WebView.java",
"methodName": "<init>",
"lineNumber": 350
}, {
"className": "android.webkit.WebView",
"level": 0,
"fileName": "WebView.java",
"methodName": "<init>",
"lineNumber": 333
}, {
"className": "android.webkit.WebView",
"level": 0,
"fileName": "WebView.java",
"methodName": "<init>",
"lineNumber": 320
}, {
"className": "java.lang.reflect.Constructor",
"level": 0,
"fileName": "Constructor.java",
"methodName": "newInstance0",
"lineNumber": -2
}, {
"className": "java.lang.reflect.Constructor",
"level": 0,
"fileName": "Constructor.java",
"methodName": "newInstance",
"lineNumber": 343
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "createView",
"lineNumber": 647
}, {
"className": "com.android.internal.policy.PhoneLayoutInflater",
"level": 0,
"fileName": "PhoneLayoutInflater.java",
"methodName": "onCreateView",
"lineNumber": 58
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "onCreateView",
"lineNumber": 720
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "createViewFromTag",
"lineNumber": 788
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "createViewFromTag",
"lineNumber": 730
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "rInflate",
"lineNumber": 863
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "rInflateChildren",
"lineNumber": 824
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "rInflate",
"lineNumber": 866
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "rInflateChildren",
"lineNumber": 824
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "inflate",
"lineNumber": 515
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "inflate",
"lineNumber": 423
}, {
"className": "android.view.LayoutInflater",
"level": 0,
"fileName": "LayoutInflater.java",
"methodName": "inflate",
"lineNumber": 374
}, {
"className": "com.android.internal.policy.PhoneWindow",
"level": 0,
"fileName": "PhoneWindow.java",
"methodName": "setContentView",
"lineNumber": 420
}, {
"className": "android.app.Activity",
"level": 0,
"fileName": "Activity.java",
"methodName": "setContentView",
"lineNumber": 2778
}, {
"className": "io.dcloud.WebviewActivity",
"level": 0,
"fileName": "SourceFile",
"methodName": "onCreate",
"lineNumber": 3
}, {
"className": "android.app.Activity",
"level": 0,
"fileName": "Activity.java",
"methodName": "performCreate",
"lineNumber": 7242
}, {
"className": "android.app.Activity",
"level": 0,
"fileName": "Activity.java",
"methodName": "performCreate",
"lineNumber": 7233
}, {
"className": "android.app.Instrumentation",
"level": 0,
"fileName": "Instrumentation.java",
"methodName": "callActivityOnCreate",
"lineNumber": 1271
}, {
"className": "android.app.ActivityThread",
"level": 0,
"fileName": "ActivityThread.java",
"methodName": "performLaunchActivity",
"lineNumber": 2932
}, {
"className": "android.app.ActivityThread",
"level": 0,
"fileName": "ActivityThread.java",
"methodName": "handleLaunchActivity",
"lineNumber": 3087
}, {
"className": "android.app.servertransaction.LaunchActivityItem",
"level": 0,
"fileName": "LaunchActivityItem.java",
"methodName": "execute",
"lineNumber": 78
}, {
"className": "android.app.servertransaction.TransactionExecutor",
"level": 0,
"fileName": "TransactionExecutor.java",
"methodName": "executeCallbacks",
"lineNumber": 108
}, {
"className": "android.app.servertransaction.TransactionExecutor",
"level": 0,
"fileName": "TransactionExecutor.java",
"methodName": "execute",
"lineNumber": 68
}, {
"className": "android.app.ActivityThread$H",
"level": 0,
"fileName": "ActivityThread.java",
"methodName": "handleMessage",
"lineNumber": 1817
}, {
"className": "android.os.Handler",
"level": 0,
"fileName": "Handler.java",
"methodName": "dispatchMessage",
"lineNumber": 106
}, {
"className": "android.os.Looper",
"level": 0,
"fileName": "Looper.java",
"methodName": "loop",
"lineNumber": 193
}, {
"className": "android.app.ActivityThread",
"level": 0,
"fileName": "ActivityThread.java",
"methodName": "main",
"lineNumber": 6719
}, {
"className": "java.lang.reflect.Method",
"level": 0,
"fileName": "Method.java",
"methodName": "invoke",
"lineNumber": -2
}, {
"className": "com.android.internal.os.RuntimeInit$MethodAndArgsCaller",
"level": 0,
"fileName": "RuntimeInit.java",
"methodName": "run",
"lineNumber": 506
}, {
"className": "com.android.internal.os.ZygoteInit",
"level": 0,
"fileName": "ZygoteInit.java",
"methodName": "main",
"lineNumber": 863
}],
"result": {
"WifiInfo": "SSID: , BSSID: 02:00:00:00:00:00, MAC: 02:00:00:00:00:00, Supplicant state: COMPLETED, RSSI: -48, Link speed: 192Mbps, Frequency: 5300MHz, Net ID: 0, Metered hint: false, score: 60"
}
}

该问题目前已经被锁定, 无法添加新回复