Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
R3.12.2
Browse files Browse the repository at this point in the history
Fix issue #1
  • Loading branch information
ryuunoakaihitomi committed Sep 12, 2021
1 parent 98f2119 commit 91cf8ec
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 7 deletions.
1 change: 1 addition & 0 deletions .idea/dictionaries/my_words.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ android {
//targetSdkVersion compileSdkVersion
targetSdkVersion 31
// 版本号:发布日期
versionCode 20210907
versionCode 20210912
// 版本名说明: R3.x.y.z (R3:Refactoring 第三次重构,z:Quick Fix序号)
versionName 'R3.12.1'
versionName 'R3.12.2'
resConfigs "en", "zh-rCN"

buildConfigField 'String', 'BUILD_TIME', '\"' + new Date() + '\"'
Expand Down
6 changes: 6 additions & 0 deletions app/src/floss/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<application tools:remove="android:manageSpaceActivity,android:fullBackupOnly" />
</manifest>
2 changes: 1 addition & 1 deletion app/src/floss/res/raw-zh-rCN/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

## 关于FLOSS版本

FLOSS版本不包含Firebase统计组件,意味着无法自动进行崩溃报告工作。
FLOSS版本不包含统计组件,意味着无法自动进行崩溃报告工作。

所以使用此版本反馈问题时**必须事先带上logcat或错误报告**
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
android:allowBackup="false"
android:appCategory="productivity"
android:banner="@drawable/banner"
android:fullBackupOnly="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:manageSpaceActivity="java.lang.Class"
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/raw-zh-rCN/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* **特权模式**:在root权限下,可以使用所有功能。
* **~~强制模式~~**:在root权限下,对于部分项目,强制切断电源。(仅作为兼容早期非标准系统的备用选项,因为有安全风险所以大多数情况下**不推荐使用**

为了规避常规魔法上固有的缺陷和限制条件,从Android 6.0开始,强烈推荐用户将本应用与[**Shizuku Manager**](https://shizuku.rikka.app/zh-hans/download.html)搭配使用!用户可以授权本应用的Shizuku权限以享受更佳的操作体验
为了规避常规魔法上固有的缺陷和限制条件,从Android 6.0开始,**强烈推荐**将本应用与[**Shizuku Manager**](https://shizuku.rikka.app/zh-hans/download.html)搭配使用!可以授权本应用的Shizuku权限以享受更佳的操作体验

![`Shizuku的图标载入中...`](https://shizuku.rikka.app/logo.png)

在root模式下,使用*切换模式*按钮可以在特权模式和强制模式间相互切换。有对应强制模式的项目会**变色加粗**
在root权限下,使用*切换模式*按钮可以在特权模式和强制模式间相互切换。有对应强制模式的项目会**变色加粗**

受限模式可能需要**常驻****无障碍服务**,所以启用后会留有通知以保持前台状态。用户可以通过手动屏蔽通知,在非原生系统中,用户应该尽可能使用其自带机制~~如白名单,最近任务卡片锁定,电池优化等~~保留后台。(可参考[Don't kill my app!](https://dontkillmyapp.com)

长按项目可以创建启动器快捷方式。(非原生系统可能需要事先手动授予添加桌面图标权限)从Android7.0开始,为下拉任务栏的快速设置面板提供*电源菜单**锁屏*图块。(从CyanogenMod 12.1开始至Android版本7.0之前提供*电源菜单*瓷块)
**长按**项目可以创建**启动器快捷方式**。(非原生系统可能需要事先手动授予添加桌面图标权限)从Android7.0开始,为下拉任务栏的快速设置面板提供*电源菜单**锁屏*图块。(从CyanogenMod 12.1开始至Android版本7.0之前提供*电源菜单*瓷块)

为防止误操作,在特权模式中,除*锁屏**系统电源菜单*外,其他项目均需要再次确认。

Expand Down
18 changes: 18 additions & 0 deletions app/src/main/res/raw/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@

This android app is used to control the power state.

There are 3 operation modes:
* **RESTRICTED MODE**: Functionality is limited in rootless environments.
* **PRIVILEGED MODE**: All functions are available with root access.
* **~~FORCE MODE~~**: Force power off for some items under root access.
(Only as a backup mode for compatibility with earlier non-standard systems, which is **not recommended** in most cases because of some security risks)

To circumvent the inherent flaws and limitations of the regular mechanism, starting from Android 6.0, it is **strongly recommended** to use this app with [**Shizuku Manager**](https://shizuku.rikka.app/zh-hans/download.html)! Granting Shizuku permission to this app to enjoy better operating experiences.

![`loading Shizuku's icon...`](https://shizuku.rikka.app/logo.png)

With root access, use the *Switch mode* button to switch between PRIVILEGED MODE and FORCE MODE. The items with corresponding force mode will **change color and bold**.

RESTRICTED MODE may requires persistent accessibility service, so notification will be left on to maintain foreground process status when the mode is enabled, it can be blocked manually. In some systems, you may have to use other means to keep the service running. (See [Don't kill my app!](https://dontkillmyapp.com))

**Long press** an item to create a **launcher shortcut**. (Some custom systems may need to manually grant permission to add desktop icons in advance) Starting from Android 7.0, provide *Power menu* and *Lock screen* tiles for the quick settings panel. (On CyanogenMod 12.1+, just *Power menu* tile is provided)

In order to prevent misoperation, except for *Lock screen* and *Sys power menu*, other items need to be confirmed again in PRIVILEGED MODE.

## Author
[@ryuunoakaihitomi github.com](https://github.com/ryuunoakaihitomi)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import github.ryuunoakaihitomi.powerpanel.BuildConfig
import timber.log.Timber

/**
* 目前使用的是`Firebase`和`Huawei AppGallery Collect`
* 目前使用的是`Firebase`和`Huawei AppGallery Connect`
*/
object InternalDoerImpl : InternalDoer {

Expand Down

0 comments on commit 91cf8ec

Please sign in to comment.