Desktop Addons
4.0.0 · GitHub
More about this app
Some Android app widgets and live wallpapers
Dawn-Desktop-Addons
曙光桌面小部件
An Android app provides a live wallpaper and some app widgets. Maintained by Dawncraft Studio.
一个提供了一个可加载模型的动态桌面壁纸和一些桌面小部件的安卓应用程序,由曙光工艺工作室维护。
Features
特性
- A live wallpaper that can render some custom models.(WIP) 一个可加载自定义模型的动态壁纸(未完成)
- An app widget that can show a sentence every day. 一个展示一言的桌面小部件, API可选择一言(Hitokoto)或曙光工艺服务器.

- An app widget that can monitor Novel coronavirus pneumonia's statistics. The API comes from Tencent News.
一个用于监测新型冠状病毒肺炎的桌面小工具,API来自于腾讯新闻

- An app widget that can open/close zen mode.
一个用于开启或关闭勿扰模式的锁屏通知

- A quick setting that can enable or disable 5G. (Only can be used on XiaoMi) 一个用于开关5G的快捷开关(小米/红米开箱即用, 华为/荣耀需要root且安装Sui模块, 其他手机待适配)
- A quick setting that can show layout borders. 一个用于开启或关闭开发者选项中显示布局边界选项的快捷开关(需要Shizuku)
Bugs
- 各种bug
TODO
- 修改或删除自己提交的句子
- live2d动态壁纸
测试机型
- HM Note 1S(Android4.4.4/MIUI9.2稳定版) 新冠肺炎小部件可用(由old-android分支维护)
- ASUS Z010DA(Android5.0.2) 新冠肺炎小部件可用
- Samsung Galaxy Note4(Android6.0.1) 新冠肺炎小部件可用
- HUAWEI 畅享7 Plus(Android7.0/EMUI5.1.3) 完全可用
- OPPO A7(Android8.1.0/ColorOSV5.2) 完全可用
- Honor 30(Android10/MagicUI4.0.0) 完全可用
- Honor 30(HarmonyOS 2.0.0) 完全可用
另外如果隐藏了桌面图标,可以通过以下命令打开设置界面:
adb shell am start -n io.github.dawncraft.desktopaddons/.ui.MainActivity
用以下命令显示桌面小部件的ID
adb shell dumpsys appwidget
用以下命令刷新所有桌面小部件(需要root或模拟器) 自v4.0.0起无效
adb shell su am broadcast -a android.intent.action.MY_PACKAGE_REPLACED -n io.github.dawncraft.desktopaddons/.broadcast.PackageBroadcastReceiver
用以下命令开关显示布局
adb shell setprop debug.layout true/false
adb shell service call activity 1599295570
特别致谢
- 所有在疫情中奉献自己的医护人员
- 腾讯新闻API
- 感谢Shizuku使一些功能成为可能
- 感谢FiveGSwitcher为5G快捷开关功能提供的思路
更新日志
懒得写了...
How Shizuku is used
Can toggle 5G and show layout bounds from quick tiles with `ShizukuSystemProperties` and `IPackageManager`
This is an AI-assisted analysis of Shizuku-related usages in the app's public source code. It is best effort, so it may not catch every single usage.
How this app uses Shizuku
Shizuku lets this app offer quick settings tiles that control 5G and developer layout display on supported phones.
- Toggle 5G connection: on Huawei and Honor phones the 5G quick tile checks 5G support and reads or changes the 5G state through the vendor phone service, after using Shizuku to grant itself the needed phone permissions.
- Show layout bounds: the developer quick tile reads the current show layout state and turns layout bounds on or off by getting and setting the
debug.layoutsystem property through Shizuku, then refreshes system services so the change applies.
Android APIs or commands used
IPackageManager.grantRuntimePermissionandroid.telephony.HwTelephonyManager.isNrSupportedandroid.telephony.HwTelephonyManager.getServiceAbilityandroid.telephony.HwTelephonyManager.setServiceAbilityandroid.os.SystemProperties.getandroid.os.SystemProperties.set
Notable details
System property read and write first try Shizuku and then fall back to direct system property access without Shizuku. The 5G tile only appears on supported Xiaomi, Redmi, Huawei and Honor devices, and on Huawei and Honor devices the Shizuku grant is required for the tile to report support.
Changelog
What's new for version 4.0.0
如果没有重大bug, 接下来的开发重心将放在live2d动态壁纸上
更新日志:
- 加入了5G快捷开关, 但仅小米/红米可用
- 重构大部分界面, 使其符合Google material design
- 重构一言桌面小部件
- 现在能够把某句你喜欢的话固定到桌面上
- 为小部件适配了部分Android 8, 11, 12增加的新特性
- 加入对Shizuku的支持, 用于显示布局边界的快捷设置
- 无需重启即可应用锁屏勿扰模式开关
- 重构设置页面, 现在设置页面的说明更加清楚明确
- 终于适配了适应式图标, 现在应用图标应该会适配你手机的主题
- 一言小部件使用线程池管理更新线程, 比之前更稳定, 占用更少
- 疫情小部件使用WorkManager进行更新, 理论上比之前更稳定, 并且能调整刷新间隔, 但实际上可能有未知的bug
- 删除了应用内置的浏览器界面, 改为集成系统浏览器以获得最佳体验
- 修复了隐藏桌面图标状态显示不正确的问题
- 登录界面重构, 现在更符合Material Design
- 应用现已完全适配深色模式, 包括桌面小部件
- 修复了时区导致的新冠小部件时间错误的问题
- 修复了显示布局边界快捷开关报错的问题
- 修复新冠肺炎桌面小部件
- 重新加入对Android 5的支持
- 句子详情页面会显示提交者
- 加入了后台常驻服务用于维持后台运行(Android 8以上需要显示通知)
- 加入更新检查功能(更新服务由GitHub提供)
- 适配Android 12L
Permissions
12 permissions requested