flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

在用户同意隐私政策之前违规获取了个人信息

Open shenhuaxiyuan opened this issue 2 years ago • 3 comments

flutter_inappwebview: 5.4.3+7 版本 在插件加载过程中就获取了应用列表 , 导致中国应用市场审核提示,以下为提示的log

违规行为:未经许可读取个人信息 | 获取应用列表 发生时间:2022-09-05 09:22:58 违规md5:md5=2B51371189455DDBA22DF7652295E761, 违规包名:pkg=com.xxxx, 违规动作:action=android.permission.MY_READ_INSTALLED_PACKAGES, 违规详情:content=获取指定包名的APP信息:com.android.webview,callstack:android.app.ApplicationPackageManager.getPackageInfoAsUser:191;android.app.ApplicationPackageManager.getPackageInfo:156;android.webkit.WebViewFactory.getWebViewContextAndSetProvider:392;android.webkit.WebViewFactory.getProviderClass:439;android.webkit.WebViewFactory.getProvider:251;android.webkit.CookieManager.getInstance:40;com.pichillilorenzo.flutter_inappwebview.MyCookieManager.getCookieManager:104;com.pichillilorenzo.flutter_inappwebview.MyCookieManager.:35;com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin.onAttachedToEngine:91;com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin.onAttachedToEngine:71;io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add:144;io.flutter.plugins.GeneratedPluginRegistrant.registerWith:54;com.example.flutter_huashangjk.MainActivity.configureFlutterEngine:23;io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach:200;io.flutter.embedding.android.FlutterActivity.onCreate:498;com.example.xxx.MainActivity.onCreate:18;android.app.Activity.performCreate:7144;android.app.Activity.performCreate:7135;android.app.Instrumentation.callActivityOnCreate:1271;android.app.ActivityThread.performLaunchActivity:2954;android.app.ActivityThread.handleLaunchActivity:3109;android.app.servertransaction.LaunchActivityItem.execute:78;android.app.servertransaction.TransactionExecutor.executeCallbacks:108;android.app.servertransaction.TransactionExecutor.execute:68;android.app.ActivityThread$H.handleMessage:1839;android.os.Handle

违规行为:未经许可读取个人信息 | 获取应用列表 发生时间:2022-09-05 09:22:58 违规md5:md5=2B51371189455DDBA22DF7652295E761, 违规包名:pkg=com.xxxx, 违规动作:action=android.permission.MY_READ_INSTALLED_PACKAGES, 违规详情:content=查询包名:com.android.webview,输出结果:null,callstack:android.app.ApplicationPackageManager.getInstallerPackageName:2044;org.chromium.base.BuildInfo.:106;org.chromium.base.BuildInfo.:21;BB.:53;BB.a:53;org.chromium.base.BuildInfo.getAll:1083;org.chromium.content.browser.BrowserStartupControllerImpl.nativeSetCommandLineFlags:-2;org.chromium.content.browser.BrowserStartupControllerImpl.b:37;Gl.run:403;org.chromium.content.browser.BrowserStartupControllerImpl.a:1415;org.chromium.android_webview.AwBrowserProcess.a:131;xz.run:2;org.chromium.base.ThreadUtils.a:73;org.chromium.android_webview.AwBrowserProcess.b:111;my.b:166;my.b:281;my.j:419;com.android.webview.chromium.WebViewChromiumFactoryProvider.getWebStorage:535;android.webkit.WebStorage.getInstance:194;com.pichillilorenzo.flutter_inappwebview.MyWebStorage.:29;com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin.onAttachedToEngine:92;com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin.onAttachedToEngine:71;io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add:144;io.flutter.plugins.GeneratedPluginRegistrant.registerWith:54;com.example.xxx.MainActivity.configureFlutterEngine:23;io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach:200;

shenhuaxiyuan avatar Sep 05 '22 06:09 shenhuaxiyuan

👋 @shenhuaxiyuan

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

github-actions[bot] avatar Sep 05 '22 06:09 github-actions[bot]

I have been begging the Xiaomi store to put this plugin on the detection whitelist. This project will definitely lose Chinese developers,If the author does not change.

limxing avatar Sep 08 '22 05:09 limxing

我们的app也出现这个问题了,也是小米应用市场

swordyy7 avatar Sep 15 '22 02:09 swordyy7

With upstairs, also is Xiaomi Application Market。 Violation action:action=android.permission.MY_READ_INSTALLED_PACKAGES

iOSYoungSir avatar Sep 19 '22 04:09 iOSYoungSir

same problem,any progress about this?

Jayshanx avatar Sep 19 '22 09:09 Jayshanx

出门右转 Use webview_flutter instead .

limxing avatar Sep 19 '22 09:09 limxing

出门右转 Use webview_flutter instead .

webview_flutter可以完全取代这个?在哪里?支持桌面版吗?

liaoxuewei avatar Sep 23 '22 06:09 liaoxuewei

出门右转 Use webview_flutter instead .

webview_flutter可以完全取代这个?在哪里?支持桌面版吗?

https://pub.dev/packages/webview_flutter

swordyy7 avatar Sep 23 '22 09:09 swordyy7

临时修复: https://github.com/shirne/flutter_inappwebview/tree/fix_init

把CookieManager等的初始化做了一个延迟手动调用 具体见readme

shirne avatar Sep 25 '22 02:09 shirne

This temporary fix didn't solve my problem @shirne

ZhangZhiH avatar Dec 13 '22 11:12 ZhangZhiH

moved discussion to https://github.com/pichillilorenzo/flutter_inappwebview/issues/1462

pichillilorenzo avatar Dec 13 '22 13:12 pichillilorenzo