
Chrome是我一直使用的跨平台浏览器。它也是在PC端调试网页的必备应用程序。 Google帐户同步也非常容易。但是,由于Chrome默认情况下无法自定义首页,因此在没有快速拨号的情况下总是很不方便。早期我一直使用QQ浏览器作为替代。该功能仍然很人性化,可以耐受腹胀。但是,我经常遇到“网络锁定”的情况,也就是说,突然我无法打开任何网页,除非重新启动浏览器。 ,升级了几个版本后,它仍然存在,我不知道是否有任何朋友遇到过它。然后,幸运的是,我找到了一种变相实现Chrome快速拨号的方法,最后将Chrome设置为默认浏览器。


将首页设置为自定义HTML文件路径,以实现类似于快速拨号的功能。


(纹理来自关)
源代码和工具:编译过程:

只需参考该项目下的说明即可。
# An example app for partner customizations. When this APK is installed, Chrome
# will show a homepage button and partner bookmarks, disable incognito mode, and
# disable bookmark editing.
# Remount /system/ as read-write.
# < MNC instructions
adb root && adb wait-for-device
adb shell mount -o rw,remount /system
# >= MNC instructions
adb root
adb disable-verity
adb reboot
adb root
adb remount
# Build an example customizations content provider APK.
android update project --path . --name PartnerCustomizationProviderExample --target 1
ant debug
# Install the compiled APK.
adb shell mkdir -p /system/app
adb push bin/PartnerCustomizationProviderExample-debug.apk /system/app/ChromeCustomizations.apk
# If you want partner bookmarks to work, delete the preinstalled partner
# bookmarks provider (which typically provides zero bookmarks).
adb shell rm -r /system/app/PartnerBookmarksProvider
# To get partner bookmarks even when Chrome isn't preinstalled, remove the
# ApplicationInfo.FLAG_SYSTEM check from PartnerBookmarksShim.java
# Restart Java services to ensure dex caching.
adb shell stop && adb shell start
# Start Chrome.
adb shell am start -S -n com.android.chrome/.Main

ChromeCustomizations.apk附件:
我共享在这里编译的文件,仅添加主页(//)函数,需要它的人也可以直接使用它。
如果您不打算自己签名,则可以直接选择使用默认DEBUG KEY签名的APK。将已编译的APK文件重命名为ChromeCustomizations.apk,并将其转换为系统应用程序,例如/ system / app /,/ system / priv-app /,/ system / vender / app /,apk文件权限644(文件夹755),然后重新启动手机。
更新日志:
20190308:补充缺少的附件。
20161227:恢复隐身模式。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/shumachanpin/article-319543-1.html
当时就想到了
之后才有了现在的军舰建造狂潮
俄国重心在欧洲所以放弃在华利益