Provision删除原来的,rm -r /system/product/priv-app/Provision 然后修改data/system/packages.xml的数据
防止原Provision的userid的影响。INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
wifi部分问题:
1、createWifiConfig WifiCipherType未处理SECURITY_PSK类型的,风险bug点?//不是问题,WAP_PSK统一处理WPA\WPA2\WPS这些。
2、createWifiConfig WifiCipherType处理WIFICIPHER_EAP被屏蔽,因为什么原因?功能实现有问题,接口变换?
私密网络
3、wifi连接状态:当前连接wifi的SSID,轮询所有的wifi的SSID,相等时候标志为已连接或者已保存;SSID表示wifi显示的名称,是否
存在同名的bug?
风险点:私密wifi的研发和测试;大小屏适配的相关文档,大屏横竖屏、主屏横竖屏、辅屏横竖屏;手势教学引导部分对接;各个注意事项、引导指引的文案和翻译
gerrit代码初次上传注意事项(先把老版本的代码上传,基于老版本修改,对系统版本的影响?)插入SIM卡页界面适配和动画调整已经完成(大屏横竖屏、小屏竖屏界面不一致,所以采用不同的尺寸值区分,重新走oncreate才能重新加载layout尺寸)
Ry_Ent属于私密网络,但是无法登陆,AD账号也不行
wifi广播监听:
1、WifiManager.WIFI_STATE_CHANGED_ACTION //监听wifi状态改变
2、WifiManager.SCAN_RESULTS_AVAILABLE_ACTION //监听扫描到wifi列表改变
3、WifiManager.NETWORK_STATE_CHANGED_ACTION //监听网络状态改变
学到的知识点:
1、imageview 根据多个值显示不同图时(如wifi信号),可以先设置drawable level_list控制不同maxlevel时的不同资源图,然后setImageLevel即可。
2、密码的显示隐藏:setTransformationMethod方法,HideReturnsTransformationMethod和PasswordTransformationMethod值。
3、相应的wifi配置信息会被保存在/data/misc/wifi/wpa_supplicant.conf,可以查看各个wifi的状态是否正确
network={
ssid=“test”
psk=“88888888”
key_mgmt=WPA-PSK
disabled=1
id_str="%7B%22creatorUid%22%3A%221000%22%2C%22configKey%22%3A%22%5C%22test%5C%22WPA_PSK%22%7D"
}格式
https://www.jb51.net/article/169021.htm
Google开机向导定制:https://blog.csdn.net/a785722173/article/details/106295799/
adb shell am start -W com.android.provision/.WiFiActivity adb shell am start -W com.android.launcher3/com.android.launcher3.dockableapps.DockableAppsActivity com.android.systemui/.usb.UsbDebuggingActivity
电源键:
adb shell input keyevent 26
大屏:
adb shell settings put system y_screen_mode 0
分屏:
adb shell settings put system y_screen_mode 1
主屏:
adb shell settings put system y_screen_active 0
辅屏:
adb shell settings put system y_screen_active 1
开机向导结束标志:
adb shell settings put global device_provisioned 1 enabled_notification_listeners
adb shell settings put secure user_setup_complete 1
adb shell settings get global device_provisioned show_hidden_icon_apps_enabled
adb shell settings get secure user_setup_complete enabled_notification_listeners
adb shell settings get system y_screen_active_locked
adb shell settings put system y_screen_active_locked 1
adb shell settings put system accelerometer_rotation 1
恢复activity disable状态:
adb shell pm enable com.android.provision/com.android.provision.WelcomActivity
adb shell pm enable com.sohu.inputmethod.sogou.oem/com.sohu.inputmethod.sogou.SogouIMEAliasLauncher
adb shell pm disable com.android.provision/com.android.provision.WelcomActivity
adb shell pm disable --user 255 com.sina.weibo
adb shell pm disable com.sina.weibo
adb shell pm enable --user 255 com.sina.weibo
adb shell cmd overlay disable com.android.internal.systemui.navbar.gestural
adb shell cmd overlay disable com.android.internal.systemui.navbar.gestural_narrow_back
adb shell cmd overlay disable com.android.internal.systemui.navbar.gestural_wide_back
adb shell cmd overlay disable com.android.internal.systemui.navbar.gestural_extra_wide_back
adb shell setprop persist.sys.royole.usb_active true 关闭usb安全检测
adb shell dumpsys activity service com.royole.leftscreenservice/com.royole.appservice.LauncherLeftScreenService
adb shell dumpsys activity com.android.launcher3/com.android.launcher3.Launcher --all -> D:\Launcher.txt
adb shell am stack list 查看 task
PATH=~/android_12/keytest:$PATH
./keytool-importkeypair -k ~/android_12/keytest/royole_vertu_platform.jks -p royole_platform -pk8 platform.pk8 -cert platform.x509.pem -alias royole
./keytool-importkeypair -k ~/android_12/keytest/royole_vertu_shared.jks -p royole_platform -pk8 shared.pk8 -cert shared.x509.pem -alias royole
./keytool-importkeypair -k ~/android_12/keytest/royole_vertu_testkey.jks -p royole_platform -pk8 testkey.pk8 -cert testkey.x509.pem -alias royole
adb shell logcat > logcat.log
命令设置全局变量
setx PATH “%PATH%;D:\studioIdle\Sdk\Sdk\platform-tools”
echo %PATH%
针对adb 版本1.0.32不能执行adb disable-verity的问题,该老版本不支持,因为存在无法修改系统环境变量的情况
所以需要cd 到D:\studioIdle\Sdk\Sdk\platform-tools 打开cmd,该路径下包含了最新的adb工具,这时候可以执行adb disable-verity
adb shell am stopservice com.android.launcher3/com.royole.sidesplitscreen.SideSplitScreenService
隐藏flutter插件路径:C:\Users\ycli06\AppData\Roaming\Google\AndroidStudio4.1\plugins
adb shell getprop persist.vendor.vt.oversea
adb shell pm path com.android.provision
adb shell pm clear com.android.launcher3
本文档详述了Android系统中删除Provision应用、处理Wi-Fi连接问题及私密网络的步骤,包括监听Wi-Fi状态变化、处理密码显示隐藏、adb命令使用等。同时,提到了开机向导定制、电源键操作、大屏适配以及ADB相关命令的实践。

1万+

被折叠的 条评论
为什么被折叠?



