Xiaomi 刷系统。

小米 Note:

http://www.miui.com/thread-18831512-1-1.html

如何线刷:

http://www.miui.com/shuaji-393.html

线刷工具选项错误:

http://bbs.xiaomi.cn/t-13302104

Google 全家桶:

https://opengapps.org/app/

如何选择不同的 suite:

https://github.com/opengapps/opengapps/wiki/Package-Comparison

结论:mini 是最合适的。

安装 Google 全家桶后闪退。查看 log:

adb logcat *:E
03-14 15:56:16.090 20886 20886 E WebViewFactory: Chromium WebView package does not exist
03-14 15:56:16.090 20886 20886 E WebViewFactory: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed

03-14 15:56:16.177 20886 20886 E DeviceDoctorHandler: FATAL EXCEPTION: main
03-14 15:56:16.177 20886 20886 E DeviceDoctorHandler: Process: com.google.android.gms.ui, PID: 20886
03-14 15:56:16.177 20886 20886 E DeviceDoctorHandler: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.gms/com.google.android.gms.auth.uiflows.minutemaid.MinuteMaidActivity}: android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed

所以就是 WebView 的问题,然后参考这个:

https://www.quora.com/How-do-I-enable-Android-system-web-view-in-Android-7

顺便回答了这个问题:

https://www.zhihu.com/question/63714089

输入法设置也闪退:

03-14 19:29:40.418 16063 16063 E AndroidRuntime: FATAL EXCEPTION: main
03-14 19:29:40.418 16063 16063 E AndroidRuntime: Process: com.android.inputmethod.latin, PID: 16063
03-14 19:29:40.418 16063 16063 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {com.android.inputmethod.latin/com.google.android.apps.inputmethod.latin.preference.SettingsActivity}: java.lang.RuntimeException: Preference xml file not specified

https://github.com/opengapps/aosp_build/issues/116

说什么清了 data 然后重装 GBoard.

adb shell ls -lR | grep inputmethod
adb shell ls -lR | grep LatinIMEGooglePrebuilt

查看包名:

https://stackoverflow.com/questions/6289149/read-the-package-name-of-an-android-apk

adb shell "pm list packages -f"

重装:

https://stackoverflow.com/questions/12483720/adb-how-to-reinstall-an-app-without-retaining-the-data

adb uninstall com.android.inputmethod.latin
adb install -r GBoard.apk
adb shell pm clear com.android.inputmethod.latin
adb install -r GBoard.apk

好的上面这两个都是不行的。看来目前就只能 wipe data 然后重装。