问题描述
Stellar grants itself WRITE_SECURE_SETTINGS to enable and disable certains global settings like wireless ADB, however I had a scenario where this would not happen.
复现步骤
- Disable Wireless Debugging
- Inside Stellar, disable TCP/IP, stop stellar if running
- Reboot the device
- Try starting stellar, will not work
期望行为
Stellar will show an error message telling the user to enable Wireless Debugging, however, since Stellar now has WRITE_SECURE_SETTINGS from the original "setup/pairing", it should do it by itself and then upon failure disable it back.
This reduce the actions needed by the user. Similar apps like thedjchi shizuku forks does this. I also documented it more in details here.
Once connected via Wireless ADB, the application should also offer to automatically disable Wireless ADB but keep USB Debugging enabled. Once a connection is estabilished, disabling Wireless ADB prevent others third-party connections requests, but on most phone, the current connections stays alive until USB Debugging itself is turned off.
The same should also happen with USB Debugging. If it is disabled and Stellar hold WRITE_SECURE_SETTINGS, it should, upon the user request, enable USB Debugging for the user.
启动方式
ADB 无线调试
Stellar 版本
1.0.17
Android 版本
Android 16
设备型号
Emulator
日志信息
补充信息
No response
问题描述
Stellar grants itself WRITE_SECURE_SETTINGS to enable and disable certains global settings like wireless ADB, however I had a scenario where this would not happen.
复现步骤
期望行为
Stellar will show an error message telling the user to enable Wireless Debugging, however, since Stellar now has WRITE_SECURE_SETTINGS from the original "setup/pairing", it should do it by itself and then upon failure disable it back.
This reduce the actions needed by the user. Similar apps like thedjchi shizuku forks does this. I also documented it more in details here.
Once connected via Wireless ADB, the application should also offer to automatically disable Wireless ADB but keep USB Debugging enabled. Once a connection is estabilished, disabling Wireless ADB prevent others third-party connections requests, but on most phone, the current connections stays alive until USB Debugging itself is turned off.
The same should also happen with USB Debugging. If it is disabled and Stellar hold WRITE_SECURE_SETTINGS, it should, upon the user request, enable USB Debugging for the user.
启动方式
ADB 无线调试
Stellar 版本
1.0.17
Android 版本
Android 16
设备型号
Emulator
日志信息
补充信息
No response