-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple front-end named ACC Settings
#110
Comments
You're not supposed to use camelcase there.
You get exit code 11 when current is not in the Avoid using regular acc commands. I strongly recommend reading notes/tips for front-end developers (I will update this section), default config and terminal commands. You may also want to read the issues authored by me at AccA's repo. |
Keep this issue open for anything related to your new project. |
Okay, I'll be doing all front-end development related discussions under this issue. I now know that exit code 11 is for My current development plan is to imitate the acca's UI. Make a general switch, status display, configuration editing. So I mainly use |
As well as for
Camelcase variables are internal. By the way, you can set multiple props with a single command - that's more efficient (i.e.,
What to use with --set (this is in the default configuration section): cc cooldown_capacity sc shutdown_capacity mt max_temp st shutdown_temp ccu cooldown_custom rbsp reset_batt_stats_on_pause s charging_switch ab apply_on_boot mcc max_charging_current l lang af amp_factor lc loop_cmd |
Is the intent of this to not conflict with acca? I noticed that acca installs acc in its own application data directory. This way as acca is uninstalled, acc is automatically removed as well. Should I install acc into my application data directory as well? Does the exit code also apply with
|
This is not mandatory.
This is optional and I'm improving the default behavior.
Yes, 0 (success), 1 (failure), 3 (no busybox) and 4 (no root).
Speaking of Here's an updated documentation in HTML format. |
Some of the output of
|
ACC Settings
ACC Settings
ACC Settings
The output of Let the front-end parse only what makes sense to you. Here's what you should focus on: STATUS=Charging # Charging, Not charging (idle mode) or Discharging Note that the power information refers to what is actually supplied to the battery, not what's coming from the adapter. I'll add this to the doc. |
The README was updated. Also, here's the right way of initializing acc on boot_completed AND main_activity:
Single line shell script: |
Why create and detect |
No.
Here's a more concise way of handling this:
The script: I'll update the doc. |
I get it. My previous implementing was:
The downside of this is that if the user manually shuts down the daemon, then reopen the app will cause the daemon to start unexpectedly. I have another question: do I need to run |
No. Keep those great questions coming! |
Note: this "manual" initialization is only strictly required if Magisk is not installed - and only once per boot session. |
As an app, it is difficult to detect the presence of |
|
No, those work together.
Those reset Android battery statistics (stats). |
Questions about
|
Not necessarily.
The allowed range is 0-9999 milliamperes
Charging switches that fail to disable charging are automatically unset, unless the trailing string ( Note: autmode is on when either |
A usable version is out: https://github.com/CrazyBoyFeng/AccSettings/releases There are still some features planning:
Please let me know if you have any comments or suggestions. |
I've only been doing light testing lately. |
acc v2021.9.19 is up!
|
Originally, the purpose of Also, did you miss the case when |
Of course, this is only relevant when If one installs acc on their grandpa's phone, with capacity_mask, they would not get mad at all. |
I seem to understand that the formula |
I forgot to mention that besides the formula, there's a filter that won't allow Android to get any readings below 2%. |
I think What do you think of this idea? |
Sure. |
Among other changes, the next release will include the following:
Your front-end is looking great! P.S., capacity_freeze2 worked just like capacity_sync. |
Here's some info you might find useful. ACC daemon does not have to be restarted after making changes to the config. There are a few exceptions:
Profiles Those are simply different config files. Examples: Copy the config: Current config: Default config: Edit the copy:
Use the copy:
Back to the main config:
|
I'm using Also, I have not implemented multi-profile support with the current |
Multi-profiles work well with scheduling. Only |
Got it, using |
|
Yes.
No, this is yet to be implemented. Use |
Github at its best, really. You guys together are stronger than the power of nature. |
To clarify, the front-end is at https://github.com/CrazyBoyFeng/AccSettings |
thats.... the author's work? great job |
As you know, I'm writing a new simple front-end.
Currently I have some questions about handling exit codes.
The exit code
11
means e-current out of range.The e-current-related commands are these:
--set cooldownCurrent=x
--set maxChargingCurrent=x
--set --current=x
(Is this any different from the one above? The indroduction doesn't say it is an alias.)And when does the
11
return?The text was updated successfully, but these errors were encountered: