{"id":13683452,"url":"https://github.com/VR-25/acc","last_synced_at":"2025-04-30T13:30:43.974Z","repository":{"id":38086087,"uuid":"186099340","full_name":"VR-25/acc","owner":"VR-25","description":"Advanced Charging Controller","archived":false,"fork":false,"pushed_at":"2025-04-20T17:47:11.000Z","size":2401,"stargazers_count":1892,"open_issues_count":7,"forks_count":111,"subscribers_count":30,"default_branch":"dev","last_synced_at":"2025-04-20T18:38:23.214Z","etag":null,"topics":["acca","accapp","accu","accu-battery","android","battery-lifespan","battery-longevity","battery-service-life","charging-current","charging-voltage","control-charging","disable-charging","extend-battery","li-ion","lithium-ion","magisk"],"latest_commit_sha":null,"homepage":"https://github.com/Magisk-Modules-Repo/acc","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VR-25.png","metadata":{"files":{"readme":"README.html","changelog":"changelog.md","contributing":null,"funding":".github/FUNDING.yml","license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":"VR25","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":"VR25","issuehunt":null,"otechie":null,"custom":"https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=iprj25@gmail.com\u0026lc=US\u0026item_name=VR25+is+creating+free+and+open+source+software.+Donate+to+suppport+their+work.\u0026no_note=0\u0026cn=\u0026currency_code=USD\u0026bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted"}},"created_at":"2019-05-11T07:01:48.000Z","updated_at":"2025-04-20T17:47:15.000Z","dependencies_parsed_at":"2023-12-21T16:46:49.814Z","dependency_job_id":"7a2c34e2-0e2e-46e5-a2d4-895f4fa06565","html_url":"https://github.com/VR-25/acc","commit_stats":{"total_commits":566,"total_committers":10,"mean_commits":56.6,"dds":"0.028268551236749095","last_synced_commit":"c5e14149d5a91e83e59bfad54daeeb44701355e1"},"previous_names":[],"tags_count":105,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VR-25%2Facc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VR-25%2Facc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VR-25%2Facc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VR-25%2Facc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VR-25","download_url":"https://codeload.github.com/VR-25/acc/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251712834,"owners_count":21631447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acca","accapp","accu","accu-battery","android","battery-lifespan","battery-longevity","battery-service-life","charging-current","charging-voltage","control-charging","disable-charging","extend-battery","li-ion","lithium-ion","magisk"],"created_at":"2024-08-02T13:02:11.839Z","updated_at":"2025-04-30T13:30:43.945Z","avatar_url":"https://github.com/VR-25.png","language":"Shell","readme":"\u003c!DOCTYPE html\u003e\u003chtml\u003e\u003chead\u003e\u003cmeta charset=\"utf-8\"\u003e\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"\u003e\u003cstyle\u003e@font-face {\n  font-family: octicons-link;\n  src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ7xiuVv/ocTRF42mNgZGBgYGbwZOBiAAFGJBIMAAizAFoAAABiAGIAznjaY2BkYGAA4in8zwXi+W2+MjCzMIDApSwvXzC97Z4Ig8N/BxYGZgcgl52BCSQKAA3jCV8CAABfAAAAAAQAAEB42mNgZGBg4f3vACQZQABIMjKgAmYAKEgBXgAAeNpjYGY6wTiBgZWBg2kmUxoDA4MPhGZMYzBi1AHygVLYQUCaawqDA4PChxhmh/8ODDEsvAwHgMKMIDnGL0x7gJQCAwMAJd4MFwAAAHjaY2BgYGaA4DAGRgYQkAHyGMF8NgYrIM3JIAGVYYDT+AEjAwuDFpBmA9KMDEwMCh9i/v8H8sH0/4dQc1iAmAkALaUKLgAAAHjaTY9LDsIgEIbtgqHUPpDi3gPoBVyRTmTddOmqTXThEXqrob2gQ1FjwpDvfwCBdmdXC5AVKFu3e5MfNFJ29KTQT48Ob9/lqYwOGZxeUelN2U2R6+cArgtCJpauW7UQBqnFkUsjAY/kOU1cP+DAgvxwn1chZDwUbd6CFimGXwzwF6tPbFIcjEl+vvmM/byA48e6tWrKArm4ZJlCbdsrxksL1AwWn/yBSJKpYbq8AXaaTb8AAHja28jAwOC00ZrBeQNDQOWO//sdBBgYGRiYWYAEELEwMTE4uzo5Zzo5b2BxdnFOcALxNjA6b2ByTswC8jYwg0VlNuoCTWAMqNzMzsoK1rEhNqByEyerg5PMJlYuVueETKcd/89uBpnpvIEVomeHLoMsAAe1Id4AAAAAAAB42oWQT07CQBTGv0JBhagk7HQzKxca2sJCE1hDt4QF+9JOS0nbaaYDCQfwCJ7Au3AHj+LO13FMmm6cl7785vven0kBjHCBhfpYuNa5Ph1c0e2Xu3jEvWG7UdPDLZ4N92nOm+EBXuAbHmIMSRMs+4aUEd4Nd3CHD8NdvOLTsA2GL8M9PODbcL+hD7C1xoaHeLJSEao0FEW14ckxC+TU8TxvsY6X0eLPmRhry2WVioLpkrbp84LLQPGI7c6sOiUzpWIWS5GzlSgUzzLBSikOPFTOXqly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==) format('woff');\n}\n\n@media (prefers-color-scheme: dark) {\n  body,\n  [data-theme=\"dark\"] {\n    /*dark*/\n    color-scheme: dark;\n    --color-prettylights-syntax-comment: #8b949e;\n    --color-prettylights-syntax-constant: #79c0ff;\n    --color-prettylights-syntax-entity: #d2a8ff;\n    --color-prettylights-syntax-storage-modifier-import: #c9d1d9;\n    --color-prettylights-syntax-entity-tag: #7ee787;\n    --color-prettylights-syntax-keyword: #ff7b72;\n    --color-prettylights-syntax-string: #a5d6ff;\n    --color-prettylights-syntax-variable: #ffa657;\n    --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;\n    --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;\n    --color-prettylights-syntax-invalid-illegal-bg: #8e1519;\n    --color-prettylights-syntax-carriage-return-text: #f0f6fc;\n    --color-prettylights-syntax-carriage-return-bg: #b62324;\n    --color-prettylights-syntax-string-regexp: #7ee787;\n    --color-prettylights-syntax-markup-list: #f2cc60;\n    --color-prettylights-syntax-markup-heading: #1f6feb;\n    --color-prettylights-syntax-markup-italic: #c9d1d9;\n    --color-prettylights-syntax-markup-bold: #c9d1d9;\n    --color-prettylights-syntax-markup-deleted-text: #ffdcd7;\n    --color-prettylights-syntax-markup-deleted-bg: #67060c;\n    --color-prettylights-syntax-markup-inserted-text: #aff5b4;\n    --color-prettylights-syntax-markup-inserted-bg: #033a16;\n    --color-prettylights-syntax-markup-changed-text: #ffdfb6;\n    --color-prettylights-syntax-markup-changed-bg: #5a1e02;\n    --color-prettylights-syntax-markup-ignored-text: #c9d1d9;\n    --color-prettylights-syntax-markup-ignored-bg: #1158c7;\n    --color-prettylights-syntax-meta-diff-range: #d2a8ff;\n    --color-prettylights-syntax-brackethighlighter-angle: #8b949e;\n    --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;\n    --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;\n    --color-fg-default: #e6edf3;\n    --color-fg-muted: #848d97;\n    --color-fg-subtle: #6e7681;\n    --color-canvas-default: #0d1117;\n    --color-canvas-subtle: #161b22;\n    --color-border-default: #30363d;\n    --color-border-muted: #21262d;\n    --color-neutral-muted: rgba(110,118,129,0.4);\n    --color-accent-fg: #2f81f7;\n    --color-accent-emphasis: #1f6feb;\n    --color-success-fg: #3fb950;\n    --color-success-emphasis: #238636;\n    --color-attention-fg: #d29922;\n    --color-attention-emphasis: #9e6a03;\n    --color-attention-subtle: rgba(187,128,9,0.15);\n    --color-danger-fg: #f85149;\n    --color-danger-emphasis: #da3633;\n    --color-done-fg: #a371f7;\n    --color-done-emphasis: #8957e5;\n  }\n}\n\n@media (prefers-color-scheme: light) {\n  body,\n  [data-theme=\"light\"] {\n    /*light*/\n    color-scheme: light;\n    --color-prettylights-syntax-comment: #57606a;\n    --color-prettylights-syntax-constant: #0550ae;\n    --color-prettylights-syntax-entity: #6639ba;\n    --color-prettylights-syntax-storage-modifier-import: #24292f;\n    --color-prettylights-syntax-entity-tag: #116329;\n    --color-prettylights-syntax-keyword: #cf222e;\n    --color-prettylights-syntax-string: #0a3069;\n    --color-prettylights-syntax-variable: #953800;\n    --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;\n    --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;\n    --color-prettylights-syntax-invalid-illegal-bg: #82071e;\n    --color-prettylights-syntax-carriage-return-text: #f6f8fa;\n    --color-prettylights-syntax-carriage-return-bg: #cf222e;\n    --color-prettylights-syntax-string-regexp: #116329;\n    --color-prettylights-syntax-markup-list: #3b2300;\n    --color-prettylights-syntax-markup-heading: #0550ae;\n    --color-prettylights-syntax-markup-italic: #24292f;\n    --color-prettylights-syntax-markup-bold: #24292f;\n    --color-prettylights-syntax-markup-deleted-text: #82071e;\n    --color-prettylights-syntax-markup-deleted-bg: #ffebe9;\n    --color-prettylights-syntax-markup-inserted-text: #116329;\n    --color-prettylights-syntax-markup-inserted-bg: #dafbe1;\n    --color-prettylights-syntax-markup-changed-text: #953800;\n    --color-prettylights-syntax-markup-changed-bg: #ffd8b5;\n    --color-prettylights-syntax-markup-ignored-text: #eaeef2;\n    --color-prettylights-syntax-markup-ignored-bg: #0550ae;\n    --color-prettylights-syntax-meta-diff-range: #8250df;\n    --color-prettylights-syntax-brackethighlighter-angle: #57606a;\n    --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;\n    --color-prettylights-syntax-constant-other-reference-link: #0a3069;\n    --color-fg-default: #1F2328;\n    --color-fg-muted: #656d76;\n    --color-fg-subtle: #6e7781;\n    --color-canvas-default: #ffffff;\n    --color-canvas-subtle: #f6f8fa;\n    --color-border-default: #d0d7de;\n    --color-border-muted: hsla(210,18%,87%,1);\n    --color-neutral-muted: rgba(175,184,193,0.2);\n    --color-accent-fg: #0969da;\n    --color-accent-emphasis: #0969da;\n    --color-success-fg: #1a7f37;\n    --color-success-emphasis: #1f883d;\n    --color-attention-fg: #9a6700;\n    --color-attention-emphasis: #9a6700;\n    --color-attention-subtle: #fff8c5;\n    --color-danger-fg: #d1242f;\n    --color-danger-emphasis: #cf222e;\n    --color-done-fg: #8250df;\n    --color-done-emphasis: #8250df;\n  }\n}\n\nbody {\n    width: 980px;\n    margin-right: auto;\n    margin-left: auto;\n    background-color: var(--color-canvas-default);\n}\n\n.markdown-body .octicon-link:before {\n  font: normal normal normal 16px/1 octicons-link;\n  display: inline-block;\n  text-decoration: none;\n  text-rendering: auto;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n  content: '\\f05c';\n  vertical-align: middle;\n}\n\n.markdown-body {\n  -ms-text-size-adjust: 100%;\n  -webkit-text-size-adjust: 100%;\n  margin: 0;\n  color: var(--color-fg-default);\n  background-color: var(--color-canvas-default);\n  font-family: -apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Noto Sans\",Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\";\n  font-size: 16px;\n  line-height: 1.5;\n  word-wrap: break-word;\n}\n\n.markdown-body .octicon {\n  display: inline-block;\n  fill: currentColor;\n  vertical-align: text-bottom;\n}\n\n.markdown-body h1:hover .anchor .octicon-link:before,\n.markdown-body h2:hover .anchor .octicon-link:before,\n.markdown-body h3:hover .anchor .octicon-link:before,\n.markdown-body h4:hover .anchor .octicon-link:before,\n.markdown-body h5:hover .anchor .octicon-link:before,\n.markdown-body h6:hover .anchor .octicon-link:before {\n  width: 16px;\n  height: 16px;\n  content: ' ';\n  display: inline-block;\n  background-color: currentColor;\n  -webkit-mask-image: url(\"data:image/svg+xml,\u003csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'\u003e\u003cpath fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'\u003e\u003c/path\u003e\u003c/svg\u003e\");\n  mask-image: url(\"data:image/svg+xml,\u003csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'\u003e\u003cpath fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'\u003e\u003c/path\u003e\u003c/svg\u003e\");\n}\n\n.markdown-body details,\n.markdown-body figcaption,\n.markdown-body figure {\n  display: block;\n}\n\n.markdown-body summary {\n  display: list-item;\n}\n\n.markdown-body [hidden] {\n  display: none !important;\n}\n\n.markdown-body a {\n  background-color: transparent;\n  color: var(--color-accent-fg);\n  text-decoration: none;\n}\n\n.markdown-body abbr[title] {\n  border-bottom: none;\n  -webkit-text-decoration: underline dotted;\n  text-decoration: underline dotted;\n}\n\n.markdown-body b,\n.markdown-body strong {\n  font-weight: var(--base-text-weight-semibold, 600);\n}\n\n.markdown-body dfn {\n  font-style: italic;\n}\n\n.markdown-body h1 {\n  margin: .67em 0;\n  font-weight: var(--base-text-weight-semibold, 600);\n  padding-bottom: .3em;\n  font-size: 2em;\n  border-bottom: 1px solid var(--color-border-muted);\n}\n\n.markdown-body mark {\n  background-color: var(--color-attention-subtle);\n  color: var(--color-fg-default);\n}\n\n.markdown-body small {\n  font-size: 90%;\n}\n\n.markdown-body sub,\n.markdown-body sup {\n  font-size: 75%;\n  line-height: 0;\n  position: relative;\n  vertical-align: baseline;\n}\n\n.markdown-body sub {\n  bottom: -0.25em;\n}\n\n.markdown-body sup {\n  top: -0.5em;\n}\n\n.markdown-body img {\n  border-style: none;\n  max-width: 100%;\n  box-sizing: content-box;\n  background-color: var(--color-canvas-default);\n}\n\n.markdown-body code,\n.markdown-body kbd,\n.markdown-body pre,\n.markdown-body samp {\n  font-family: monospace;\n  font-size: 1em;\n}\n\n.markdown-body figure {\n  margin: 1em 40px;\n}\n\n.markdown-body hr {\n  box-sizing: content-box;\n  overflow: hidden;\n  background: transparent;\n  border-bottom: 1px solid var(--color-border-muted);\n  height: .25em;\n  padding: 0;\n  margin: 24px 0;\n  background-color: var(--color-border-default);\n  border: 0;\n}\n\n.markdown-body input {\n  font: inherit;\n  margin: 0;\n  overflow: visible;\n  font-family: inherit;\n  font-size: inherit;\n  line-height: inherit;\n}\n\n.markdown-body [type=button],\n.markdown-body [type=reset],\n.markdown-body [type=submit] {\n  -webkit-appearance: button;\n  appearance: button;\n}\n\n.markdown-body [type=checkbox],\n.markdown-body [type=radio] {\n  box-sizing: border-box;\n  padding: 0;\n}\n\n.markdown-body [type=number]::-webkit-inner-spin-button,\n.markdown-body [type=number]::-webkit-outer-spin-button {\n  height: auto;\n}\n\n.markdown-body [type=search]::-webkit-search-cancel-button,\n.markdown-body [type=search]::-webkit-search-decoration {\n  -webkit-appearance: none;\n  appearance: none;\n}\n\n.markdown-body ::-webkit-input-placeholder {\n  color: inherit;\n  opacity: .54;\n}\n\n.markdown-body ::-webkit-file-upload-button {\n  -webkit-appearance: button;\n  appearance: button;\n  font: inherit;\n}\n\n.markdown-body a:hover {\n  text-decoration: underline;\n}\n\n.markdown-body ::placeholder {\n  color: var(--color-fg-subtle);\n  opacity: 1;\n}\n\n.markdown-body hr::before {\n  display: table;\n  content: \"\";\n}\n\n.markdown-body hr::after {\n  display: table;\n  clear: both;\n  content: \"\";\n}\n\n.markdown-body table {\n  border-spacing: 0;\n  border-collapse: collapse;\n  display: block;\n  width: max-content;\n  max-width: 100%;\n  overflow: auto;\n}\n\n.markdown-body td,\n.markdown-body th {\n  padding: 0;\n}\n\n.markdown-body details summary {\n  cursor: pointer;\n}\n\n.markdown-body details:not([open])\u003e*:not(summary) {\n  display: none !important;\n}\n\n.markdown-body a:focus,\n.markdown-body [role=button]:focus,\n.markdown-body input[type=radio]:focus,\n.markdown-body input[type=checkbox]:focus {\n  outline: 2px solid var(--color-accent-fg);\n  outline-offset: -2px;\n  box-shadow: none;\n}\n\n.markdown-body a:focus:not(:focus-visible),\n.markdown-body [role=button]:focus:not(:focus-visible),\n.markdown-body input[type=radio]:focus:not(:focus-visible),\n.markdown-body input[type=checkbox]:focus:not(:focus-visible) {\n  outline: solid 1px transparent;\n}\n\n.markdown-body a:focus-visible,\n.markdown-body [role=button]:focus-visible,\n.markdown-body input[type=radio]:focus-visible,\n.markdown-body input[type=checkbox]:focus-visible {\n  outline: 2px solid var(--color-accent-fg);\n  outline-offset: -2px;\n  box-shadow: none;\n}\n\n.markdown-body a:not([class]):focus,\n.markdown-body a:not([class]):focus-visible,\n.markdown-body input[type=radio]:focus,\n.markdown-body input[type=radio]:focus-visible,\n.markdown-body input[type=checkbox]:focus,\n.markdown-body input[type=checkbox]:focus-visible {\n  outline-offset: 0;\n}\n\n.markdown-body kbd {\n  display: inline-block;\n  padding: 3px 5px;\n  font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;\n  line-height: 10px;\n  color: var(--color-fg-default);\n  vertical-align: middle;\n  background-color: var(--color-canvas-subtle);\n  border: solid 1px var(--color-neutral-muted);\n  border-bottom-color: var(--color-neutral-muted);\n  border-radius: 6px;\n  box-shadow: inset 0 -1px 0 var(--color-neutral-muted);\n}\n\n.markdown-body h1,\n.markdown-body h2,\n.markdown-body h3,\n.markdown-body h4,\n.markdown-body h5,\n.markdown-body h6 {\n  margin-top: 24px;\n  margin-bottom: 16px;\n  font-weight: var(--base-text-weight-semibold, 600);\n  line-height: 1.25;\n}\n\n.markdown-body h2 {\n  font-weight: var(--base-text-weight-semibold, 600);\n  padding-bottom: .3em;\n  font-size: 1.5em;\n  border-bottom: 1px solid var(--color-border-muted);\n}\n\n.markdown-body h3 {\n  font-weight: var(--base-text-weight-semibold, 600);\n  font-size: 1.25em;\n}\n\n.markdown-body h4 {\n  font-weight: var(--base-text-weight-semibold, 600);\n  font-size: 1em;\n}\n\n.markdown-body h5 {\n  font-weight: var(--base-text-weight-semibold, 600);\n  font-size: .875em;\n}\n\n.markdown-body h6 {\n  font-weight: var(--base-text-weight-semibold, 600);\n  font-size: .85em;\n  color: var(--color-fg-muted);\n}\n\n.markdown-body p {\n  margin-top: 0;\n  margin-bottom: 10px;\n}\n\n.markdown-body blockquote {\n  margin: 0;\n  padding: 0 1em;\n  color: var(--color-fg-muted);\n  border-left: .25em solid var(--color-border-default);\n}\n\n.markdown-body ul,\n.markdown-body ol {\n  margin-top: 0;\n  margin-bottom: 0;\n  padding-left: 2em;\n}\n\n.markdown-body ol ol,\n.markdown-body ul ol {\n  list-style-type: lower-roman;\n}\n\n.markdown-body ul ul ol,\n.markdown-body ul ol ol,\n.markdown-body ol ul ol,\n.markdown-body ol ol ol {\n  list-style-type: lower-alpha;\n}\n\n.markdown-body dd {\n  margin-left: 0;\n}\n\n.markdown-body tt,\n.markdown-body code,\n.markdown-body samp {\n  font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;\n  font-size: 12px;\n}\n\n.markdown-body pre {\n  margin-top: 0;\n  margin-bottom: 0;\n  font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;\n  font-size: 12px;\n  word-wrap: normal;\n}\n\n.markdown-body .octicon {\n  display: inline-block;\n  overflow: visible !important;\n  vertical-align: text-bottom;\n  fill: currentColor;\n}\n\n.markdown-body input::-webkit-outer-spin-button,\n.markdown-body input::-webkit-inner-spin-button {\n  margin: 0;\n  -webkit-appearance: none;\n  appearance: none;\n}\n\n.markdown-body .mr-2 {\n  margin-right: var(--base-size-8, 8px) !important;\n}\n\n.markdown-body::before {\n  display: table;\n  content: \"\";\n}\n\n.markdown-body::after {\n  display: table;\n  clear: both;\n  content: \"\";\n}\n\n.markdown-body\u003e*:first-child {\n  margin-top: 0 !important;\n}\n\n.markdown-body\u003e*:last-child {\n  margin-bottom: 0 !important;\n}\n\n.markdown-body a:not([href]) {\n  color: inherit;\n  text-decoration: none;\n}\n\n.markdown-body .absent {\n  color: var(--color-danger-fg);\n}\n\n.markdown-body .anchor {\n  float: left;\n  padding-right: 4px;\n  margin-left: -20px;\n  line-height: 1;\n}\n\n.markdown-body .anchor:focus {\n  outline: none;\n}\n\n.markdown-body p,\n.markdown-body blockquote,\n.markdown-body ul,\n.markdown-body ol,\n.markdown-body dl,\n.markdown-body table,\n.markdown-body pre,\n.markdown-body details {\n  margin-top: 0;\n  margin-bottom: 16px;\n}\n\n.markdown-body blockquote\u003e:first-child {\n  margin-top: 0;\n}\n\n.markdown-body blockquote\u003e:last-child {\n  margin-bottom: 0;\n}\n\n.markdown-body h1 .octicon-link,\n.markdown-body h2 .octicon-link,\n.markdown-body h3 .octicon-link,\n.markdown-body h4 .octicon-link,\n.markdown-body h5 .octicon-link,\n.markdown-body h6 .octicon-link {\n  color: var(--color-fg-default);\n  vertical-align: middle;\n  visibility: hidden;\n}\n\n.markdown-body h1:hover .anchor,\n.markdown-body h2:hover .anchor,\n.markdown-body h3:hover .anchor,\n.markdown-body h4:hover .anchor,\n.markdown-body h5:hover .anchor,\n.markdown-body h6:hover .anchor {\n  text-decoration: none;\n}\n\n.markdown-body h1:hover .anchor .octicon-link,\n.markdown-body h2:hover .anchor .octicon-link,\n.markdown-body h3:hover .anchor .octicon-link,\n.markdown-body h4:hover .anchor .octicon-link,\n.markdown-body h5:hover .anchor .octicon-link,\n.markdown-body h6:hover .anchor .octicon-link {\n  visibility: visible;\n}\n\n.markdown-body h1 tt,\n.markdown-body h1 code,\n.markdown-body h2 tt,\n.markdown-body h2 code,\n.markdown-body h3 tt,\n.markdown-body h3 code,\n.markdown-body h4 tt,\n.markdown-body h4 code,\n.markdown-body h5 tt,\n.markdown-body h5 code,\n.markdown-body h6 tt,\n.markdown-body h6 code {\n  padding: 0 .2em;\n  font-size: inherit;\n}\n\n.markdown-body summary h1,\n.markdown-body summary h2,\n.markdown-body summary h3,\n.markdown-body summary h4,\n.markdown-body summary h5,\n.markdown-body summary h6 {\n  display: inline-block;\n}\n\n.markdown-body summary h1 .anchor,\n.markdown-body summary h2 .anchor,\n.markdown-body summary h3 .anchor,\n.markdown-body summary h4 .anchor,\n.markdown-body summary h5 .anchor,\n.markdown-body summary h6 .anchor {\n  margin-left: -40px;\n}\n\n.markdown-body summary h1,\n.markdown-body summary h2 {\n  padding-bottom: 0;\n  border-bottom: 0;\n}\n\n.markdown-body ul.no-list,\n.markdown-body ol.no-list {\n  padding: 0;\n  list-style-type: none;\n}\n\n.markdown-body ol[type=\"a s\"] {\n  list-style-type: lower-alpha;\n}\n\n.markdown-body ol[type=\"A s\"] {\n  list-style-type: upper-alpha;\n}\n\n.markdown-body ol[type=\"i s\"] {\n  list-style-type: lower-roman;\n}\n\n.markdown-body ol[type=\"I s\"] {\n  list-style-type: upper-roman;\n}\n\n.markdown-body ol[type=\"1\"] {\n  list-style-type: decimal;\n}\n\n.markdown-body div\u003eol:not([type]) {\n  list-style-type: decimal;\n}\n\n.markdown-body ul ul,\n.markdown-body ul ol,\n.markdown-body ol ol,\n.markdown-body ol ul {\n  margin-top: 0;\n  margin-bottom: 0;\n}\n\n.markdown-body li\u003ep {\n  margin-top: 16px;\n}\n\n.markdown-body li+li {\n  margin-top: .25em;\n}\n\n.markdown-body dl {\n  padding: 0;\n}\n\n.markdown-body dl dt {\n  padding: 0;\n  margin-top: 16px;\n  font-size: 1em;\n  font-style: italic;\n  font-weight: var(--base-text-weight-semibold, 600);\n}\n\n.markdown-body dl dd {\n  padding: 0 16px;\n  margin-bottom: 16px;\n}\n\n.markdown-body table th {\n  font-weight: var(--base-text-weight-semibold, 600);\n}\n\n.markdown-body table th,\n.markdown-body table td {\n  padding: 6px 13px;\n  border: 1px solid var(--color-border-default);\n}\n\n.markdown-body table td\u003e:last-child {\n  margin-bottom: 0;\n}\n\n.markdown-body table tr {\n  background-color: var(--color-canvas-default);\n  border-top: 1px solid var(--color-border-muted);\n}\n\n.markdown-body table tr:nth-child(2n) {\n  background-color: var(--color-canvas-subtle);\n}\n\n.markdown-body table img {\n  background-color: transparent;\n}\n\n.markdown-body img[align=right] {\n  padding-left: 20px;\n}\n\n.markdown-body img[align=left] {\n  padding-right: 20px;\n}\n\n.markdown-body .emoji {\n  max-width: none;\n  vertical-align: text-top;\n  background-color: transparent;\n}\n\n.markdown-body span.frame {\n  display: block;\n  overflow: hidden;\n}\n\n.markdown-body span.frame\u003espan {\n  display: block;\n  float: left;\n  width: auto;\n  padding: 7px;\n  margin: 13px 0 0;\n  overflow: hidden;\n  border: 1px solid var(--color-border-default);\n}\n\n.markdown-body span.frame span img {\n  display: block;\n  float: left;\n}\n\n.markdown-body span.frame span span {\n  display: block;\n  padding: 5px 0 0;\n  clear: both;\n  color: var(--color-fg-default);\n}\n\n.markdown-body span.align-center {\n  display: block;\n  overflow: hidden;\n  clear: both;\n}\n\n.markdown-body span.align-center\u003espan {\n  display: block;\n  margin: 13px auto 0;\n  overflow: hidden;\n  text-align: center;\n}\n\n.markdown-body span.align-center span img {\n  margin: 0 auto;\n  text-align: center;\n}\n\n.markdown-body span.align-right {\n  display: block;\n  overflow: hidden;\n  clear: both;\n}\n\n.markdown-body span.align-right\u003espan {\n  display: block;\n  margin: 13px 0 0;\n  overflow: hidden;\n  text-align: right;\n}\n\n.markdown-body span.align-right span img {\n  margin: 0;\n  text-align: right;\n}\n\n.markdown-body span.float-left {\n  display: block;\n  float: left;\n  margin-right: 13px;\n  overflow: hidden;\n}\n\n.markdown-body span.float-left span {\n  margin: 13px 0 0;\n}\n\n.markdown-body span.float-right {\n  display: block;\n  float: right;\n  margin-left: 13px;\n  overflow: hidden;\n}\n\n.markdown-body span.float-right\u003espan {\n  display: block;\n  margin: 13px auto 0;\n  overflow: hidden;\n  text-align: right;\n}\n\n.markdown-body code,\n.markdown-body tt {\n  padding: .2em .4em;\n  margin: 0;\n  font-size: 85%;\n  white-space: break-spaces;\n  background-color: var(--color-neutral-muted);\n  border-radius: 6px;\n}\n\n.markdown-body code br,\n.markdown-body tt br {\n  display: none;\n}\n\n.markdown-body del code {\n  text-decoration: inherit;\n}\n\n.markdown-body samp {\n  font-size: 85%;\n}\n\n.markdown-body pre code {\n  font-size: 100%;\n}\n\n.markdown-body pre\u003ecode {\n  padding: 0;\n  margin: 0;\n  word-break: normal;\n  white-space: pre;\n  background: transparent;\n  border: 0;\n}\n\n.markdown-body .highlight {\n  margin-bottom: 16px;\n}\n\n.markdown-body .highlight pre {\n  margin-bottom: 0;\n  word-break: normal;\n}\n\n.markdown-body .highlight pre,\n.markdown-body pre {\n  padding: 16px;\n  overflow: auto;\n  font-size: 85%;\n  line-height: 1.45;\n  color: var(--color-fg-default);\n  background-color: var(--color-canvas-subtle);\n  border-radius: 6px;\n}\n\n.markdown-body pre code,\n.markdown-body pre tt {\n  display: inline;\n  max-width: auto;\n  padding: 0;\n  margin: 0;\n  overflow: visible;\n  line-height: inherit;\n  word-wrap: normal;\n  background-color: transparent;\n  border: 0;\n}\n\n.markdown-body .csv-data td,\n.markdown-body .csv-data th {\n  padding: 5px;\n  overflow: hidden;\n  font-size: 12px;\n  line-height: 1;\n  text-align: left;\n  white-space: nowrap;\n}\n\n.markdown-body .csv-data .blob-num {\n  padding: 10px 8px 9px;\n  text-align: right;\n  background: var(--color-canvas-default);\n  border: 0;\n}\n\n.markdown-body .csv-data tr {\n  border-top: 0;\n}\n\n.markdown-body .csv-data th {\n  font-weight: var(--base-text-weight-semibold, 600);\n  background: var(--color-canvas-subtle);\n  border-top: 0;\n}\n\n.markdown-body [data-footnote-ref]::before {\n  content: \"[\";\n}\n\n.markdown-body [data-footnote-ref]::after {\n  content: \"]\";\n}\n\n.markdown-body .footnotes {\n  font-size: 12px;\n  color: var(--color-fg-muted);\n  border-top: 1px solid var(--color-border-default);\n}\n\n.markdown-body .footnotes ol {\n  padding-left: 16px;\n}\n\n.markdown-body .footnotes ol ul {\n  display: inline-block;\n  padding-left: 16px;\n  margin-top: 16px;\n}\n\n.markdown-body .footnotes li {\n  position: relative;\n}\n\n.markdown-body .footnotes li:target::before {\n  position: absolute;\n  top: -8px;\n  right: -8px;\n  bottom: -8px;\n  left: -24px;\n  pointer-events: none;\n  content: \"\";\n  border: 2px solid var(--color-accent-emphasis);\n  border-radius: 6px;\n}\n\n.markdown-body .footnotes li:target {\n  color: var(--color-fg-default);\n}\n\n.markdown-body .footnotes .data-footnote-backref g-emoji {\n  font-family: monospace;\n}\n\n.markdown-body .pl-c {\n  color: var(--color-prettylights-syntax-comment);\n}\n\n.markdown-body .pl-c1,\n.markdown-body .pl-s .pl-v {\n  color: var(--color-prettylights-syntax-constant);\n}\n\n.markdown-body .pl-e,\n.markdown-body .pl-en {\n  color: var(--color-prettylights-syntax-entity);\n}\n\n.markdown-body .pl-smi,\n.markdown-body .pl-s .pl-s1 {\n  color: var(--color-prettylights-syntax-storage-modifier-import);\n}\n\n.markdown-body .pl-ent {\n  color: var(--color-prettylights-syntax-entity-tag);\n}\n\n.markdown-body .pl-k {\n  color: var(--color-prettylights-syntax-keyword);\n}\n\n.markdown-body .pl-s,\n.markdown-body .pl-pds,\n.markdown-body .pl-s .pl-pse .pl-s1,\n.markdown-body .pl-sr,\n.markdown-body .pl-sr .pl-cce,\n.markdown-body .pl-sr .pl-sre,\n.markdown-body .pl-sr .pl-sra {\n  color: var(--color-prettylights-syntax-string);\n}\n\n.markdown-body .pl-v,\n.markdown-body .pl-smw {\n  color: var(--color-prettylights-syntax-variable);\n}\n\n.markdown-body .pl-bu {\n  color: var(--color-prettylights-syntax-brackethighlighter-unmatched);\n}\n\n.markdown-body .pl-ii {\n  color: var(--color-prettylights-syntax-invalid-illegal-text);\n  background-color: var(--color-prettylights-syntax-invalid-illegal-bg);\n}\n\n.markdown-body .pl-c2 {\n  color: var(--color-prettylights-syntax-carriage-return-text);\n  background-color: var(--color-prettylights-syntax-carriage-return-bg);\n}\n\n.markdown-body .pl-sr .pl-cce {\n  font-weight: bold;\n  color: var(--color-prettylights-syntax-string-regexp);\n}\n\n.markdown-body .pl-ml {\n  color: var(--color-prettylights-syntax-markup-list);\n}\n\n.markdown-body .pl-mh,\n.markdown-body .pl-mh .pl-en,\n.markdown-body .pl-ms {\n  font-weight: bold;\n  color: var(--color-prettylights-syntax-markup-heading);\n}\n\n.markdown-body .pl-mi {\n  font-style: italic;\n  color: var(--color-prettylights-syntax-markup-italic);\n}\n\n.markdown-body .pl-mb {\n  font-weight: bold;\n  color: var(--color-prettylights-syntax-markup-bold);\n}\n\n.markdown-body .pl-md {\n  color: var(--color-prettylights-syntax-markup-deleted-text);\n  background-color: var(--color-prettylights-syntax-markup-deleted-bg);\n}\n\n.markdown-body .pl-mi1 {\n  color: var(--color-prettylights-syntax-markup-inserted-text);\n  background-color: var(--color-prettylights-syntax-markup-inserted-bg);\n}\n\n.markdown-body .pl-mc {\n  color: var(--color-prettylights-syntax-markup-changed-text);\n  background-color: var(--color-prettylights-syntax-markup-changed-bg);\n}\n\n.markdown-body .pl-mi2 {\n  color: var(--color-prettylights-syntax-markup-ignored-text);\n  background-color: var(--color-prettylights-syntax-markup-ignored-bg);\n}\n\n.markdown-body .pl-mdr {\n  font-weight: bold;\n  color: var(--color-prettylights-syntax-meta-diff-range);\n}\n\n.markdown-body .pl-ba {\n  color: var(--color-prettylights-syntax-brackethighlighter-angle);\n}\n\n.markdown-body .pl-sg {\n  color: var(--color-prettylights-syntax-sublimelinter-gutter-mark);\n}\n\n.markdown-body .pl-corl {\n  text-decoration: underline;\n  color: var(--color-prettylights-syntax-constant-other-reference-link);\n}\n\n.markdown-body g-emoji {\n  display: inline-block;\n  min-width: 1ch;\n  font-family: \"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\";\n  font-size: 1em;\n  font-style: normal !important;\n  font-weight: var(--base-text-weight-normal, 400);\n  line-height: 1;\n  vertical-align: -0.075em;\n}\n\n.markdown-body g-emoji img {\n  width: 1em;\n  height: 1em;\n}\n\n.markdown-body .task-list-item {\n  list-style-type: none;\n}\n\n.markdown-body .task-list-item label {\n  font-weight: var(--base-text-weight-normal, 400);\n}\n\n.markdown-body .task-list-item.enabled label {\n  cursor: pointer;\n}\n\n.markdown-body .task-list-item+.task-list-item {\n  margin-top: 4px;\n}\n\n.markdown-body .task-list-item .handle {\n  display: none;\n}\n\n.markdown-body .task-list-item-checkbox {\n  margin: 0 .2em .25em -1.4em;\n  vertical-align: middle;\n}\n\n.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox {\n  margin: 0 -1.6em .25em .2em;\n}\n\n.markdown-body .contains-task-list {\n  position: relative;\n}\n\n.markdown-body .contains-task-list:hover .task-list-item-convert-container,\n.markdown-body .contains-task-list:focus-within .task-list-item-convert-container {\n  display: block;\n  width: auto;\n  height: 24px;\n  overflow: visible;\n  clip: auto;\n}\n\n.markdown-body ::-webkit-calendar-picker-indicator {\n  filter: invert(50%);\n}\n\n.markdown-body .markdown-alert {\n  padding: var(--base-size-8, 8px) var(--base-size-16, 16px);\n  margin-bottom: 16px;\n  color: inherit;\n  border-left: .25em solid var(--color-border-default);\n}\n\n.markdown-body .markdown-alert\u003e:first-child {\n  margin-top: 0;\n}\n\n.markdown-body .markdown-alert\u003e:last-child {\n  margin-bottom: 0;\n}\n\n.markdown-body .markdown-alert .markdown-alert-title {\n  display: flex;\n  font-weight: var(--base-text-weight-medium, 500);\n  align-items: center;\n  line-height: 1;\n}\n\n.markdown-body .markdown-alert.markdown-alert-note {\n  border-left-color: var(--color-accent-emphasis);\n}\n\n.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title {\n  color: var(--color-accent-fg);\n}\n\n.markdown-body .markdown-alert.markdown-alert-important {\n  border-left-color: var(--color-done-emphasis);\n}\n\n.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title {\n  color: var(--color-done-fg);\n}\n\n.markdown-body .markdown-alert.markdown-alert-warning {\n  border-left-color: var(--color-attention-emphasis);\n}\n\n.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title {\n  color: var(--color-attention-fg);\n}\n\n.markdown-body .markdown-alert.markdown-alert-tip {\n  border-left-color: var(--color-success-emphasis);\n}\n\n.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title {\n  color: var(--color-success-fg);\n}\n\n.markdown-body .markdown-alert.markdown-alert-caution {\n  border-left-color: var(--color-danger-emphasis);\n}\n\n.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title {\n  color: var(--color-danger-fg);\n}\n\u003c/style\u003e\u003ctitle\u003eREADME\u003c/title\u003e\u003c/head\u003e\u003cbody\u003e\u003carticle class=\"markdown-body\"\u003e\u003cdiv class=\"markdown-heading\"\u003e\u003ch1 class=\"heading-element\"\u003eAdvanced Charging Controller (ACC)\u003c/h1\u003e\u003ca id=\"user-content-advanced-charging-controller-acc\" class=\"anchor\" aria-label=\"Permalink: Advanced Charging Controller (ACC)\" href=\"#advanced-charging-controller-acc\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003chr\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#description\"\u003eDESCRIPTION\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#license\"\u003eLICENSE\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#disclaimer\"\u003eDISCLAIMER\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#warnings\"\u003eWARNINGS\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#donations\"\u003eDONATIONS\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePREREQUISITES\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\n\u003ca href=\"#quick-start-guide\"\u003eQUICK START GUIDE\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#notes\"\u003eNotes\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003ca href=\"#building-andor-installing-from-source\"\u003eBUILDING AND/OR INSTALLING FROM SOURCE\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#dependencies-build\"\u003eDependencies (Build)\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\n\u003ca href=\"#build-tarballs-and-flashable-zips\"\u003eBuild Tarballs and Flashable Zips\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#notes-1\"\u003eNotes\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003ca href=\"#install-from-local-source-or-github\"\u003eInstall from Local Source or GitHub\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#notes-2\"\u003eNotes\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#default-configuration\"\u003eDEFAULT CONFIGURATION\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\n\u003ca href=\"#setupusage\"\u003eSETUP/USAGE\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#terminal-commands\"\u003eTerminal Commands\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#plugins\"\u003ePLUGINS\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\n\u003ca href=\"#notestips-for-front-end-developers\"\u003eNOTES/TIPS FOR FRONT-END DEVELOPERS\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#basics\"\u003eBasics\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#installingupgrading-acc\"\u003eInstalling/Upgrading ACC\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#uninstalling-acc\"\u003eUninstalling ACC\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#initializing-acc\"\u003eInitializing ACC\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#managing-acc\"\u003eManaging ACC\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003ca href=\"#troubleshooting\"\u003eTROUBLESHOOTING\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#acc--t-results-seem-inconsistent\"\u003e\u003ccode\u003eacc -t\u003c/code\u003e Results Seem Inconsistent\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#charging-switch\"\u003eCharging Switch\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#custom-max-charging-voltage-and-current-limits\"\u003eCustom Max Charging Voltage And Current Limits\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#diagnosticslogs\"\u003eDiagnostics/Logs\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#finding-additionalpotential-charging-switches-quickly\"\u003eFinding Additional/Potential Charging Switches Quickly\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#install-upgrade-stop-and-restart-processes-seem-to-take-too-long\"\u003eInstall, Upgrade, Stop and Restart Processes Seem to Take Too Long\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#restore-default-config\"\u003eRestore Default Config\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#samsung-charging-always-stops-at-70-capacity\"\u003eSamsung, Charging \u003cem\u003eAlways\u003c/em\u003e Stops at 70% Capacity\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#slow-charging\"\u003eSlow Charging\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#unable-to-charge\"\u003eUnable to Charge\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#unexpected-reboots\"\u003eUnexpected Reboots\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#warp-vooc-and-other-fast-charging-tech\"\u003eWARP, VOOC and Other Fast Charging Tech\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#why-did-accd-stop\"\u003eWhy Did accd Stop?\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#power-supply-logs-help-needed\"\u003ePOWER SUPPLY LOGS (HELP NEEDED)\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#localization\"\u003eLOCALIZATION\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\n\u003ca href=\"#tips\"\u003eTIPS\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#always-limit-the-charging-current-if-your-battery-is-old-andor-tends-to-discharge-too-fast\"\u003e\u003cem\u003eAlways\u003c/em\u003e Limit the Charging Current If Your Battery is Old and/or Tends to Discharge Too Fast\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#generic\"\u003eGeneric\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#google-pixel-devices\"\u003eGoogle Pixel Devices\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/home/v/Downloads/git/acc/override_battery_mah_capacity\"\u003eOverride Battery mAh Capacity\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/home/v/Downloads/git/acc/override_broken_temperature_sensor\"\u003eOverride Broken Temperature Sensor\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#frequently-asked-questions-faq\"\u003eFREQUENTLY ASKED QUESTIONS (FAQ)\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#links\"\u003eLINKS\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eDESCRIPTION\u003c/h2\u003e\u003ca id=\"user-content-description\" class=\"anchor\" aria-label=\"Permalink: DESCRIPTION\" href=\"#description\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eACC is an Android software mainly intended for \u003ca href=\"https://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries\" rel=\"nofollow\"\u003eextending battery service life\u003c/a\u003e.\nIn a nutshell, this is achieved through limiting charging current, temperature and voltage.\nAny root solution is supported.\nRegardless of whether the system is rooted with KernelSU/Magisk, the installation is always \"systemless\".\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eLICENSE\u003c/h2\u003e\u003ca id=\"user-content-license\" class=\"anchor\" aria-label=\"Permalink: LICENSE\" href=\"#license\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eCopyright 2017-2024, VR25\u003c/p\u003e\n\u003cp\u003eThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\u003c/p\u003e\n\u003cp\u003eThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\u003c/p\u003e\n\u003cp\u003eYou should have received a copy of the GNU General Public License\nalong with this program. If not, see \u003ca href=\"https://www.gnu.org/licenses/\" rel=\"nofollow\"\u003ehttps://www.gnu.org/licenses/\u003c/a\u003e.\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eDISCLAIMER\u003c/h2\u003e\u003ca id=\"user-content-disclaimer\" class=\"anchor\" aria-label=\"Permalink: DISCLAIMER\" href=\"#disclaimer\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eAlways read/reread this reference prior to installing/upgrading this software.\u003c/p\u003e\n\u003cp\u003eWhile no cats have been harmed, the author assumes no responsibility for anything that might break due to the use/misuse of it.\u003c/p\u003e\n\u003cp\u003eTo prevent fraud, do NOT mirror any link associated with this project.\nDo NOT share builds (tarballs/zips)! Share official links instead.\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eWARNINGS\u003c/h2\u003e\u003ca id=\"user-content-warnings\" class=\"anchor\" aria-label=\"Permalink: WARNINGS\" href=\"#warnings\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eACC manipulates Android low level (\u003ca href=\"https://duckduckgo.com/lite/?q=kernel+android\" rel=\"nofollow\"\u003ekernel\u003c/a\u003e) parameters which control the charging circuitry.\nThe author assumes no responsibility under anything that might break due to the use/misuse of this software.\nBy choosing to use/misuse it, you agree to do so at your own risk!\u003c/p\u003e\n\u003cp\u003eSome devices, notably from Xiaomi (e.g., Poco X3 Pro), have a faulty PMIC (Power Management Integrated Circuit) that can be triggered by acc.\nThe issue blocks charging.\nEnsure the battery does not discharge too low.\nUsing acc's auto shutdown feature is highly recommended (default shutdown_capacity is 5).\u003c/p\u003e\n\u003cp\u003eRefer to \u003ca href=\"https://forum.xda-developers.com/t/rom-official-arrowos-11-0-android-11-0-vayu-bhima.4267263/post-85119331\" rel=\"nofollow\"\u003ethis XDA post\u003c/a\u003e for additional details.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/lybxlpsv\"\u003elybxlpsv\u003c/a\u003e suggests booting into bootloader/fastboot and then back into system to reset the PMIC.\u003c/p\u003e\n\u003cp\u003eIn case of bootloop, one can easily generate persistent logs and/or stop/disable acc.\nACC daemon initializes 60 seconds after the boot animation stops.\nThis gives plenty of time to run \u003ccode\u003epkill -9 -f accd\u003c/code\u003e to kill the waiting process or \u003ccode\u003eaccd -x\u003c/code\u003e to generate persistent logs (\u003ccode\u003e/sdcard/accd-*.log\u003c/code\u003e) for debugging the bootloop.\n\u003ccode\u003eaccd -x\u003c/code\u003e also sets the disable flag (\u003ccode\u003e/data/adb/vr25/acc-data/disable\u003c/code\u003e). This file prevents the daemon from starting again. It's removed manually or by the installer.\n\u003ccode\u003eacc -t\u003c/code\u003e always implies \u003ccode\u003e-x\u003c/code\u003e and tries to auto-blacklist switches that trigger unwanted reboots.\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eDONATIONS\u003c/h2\u003e\u003ca id=\"user-content-donations\" class=\"anchor\" aria-label=\"Permalink: DONATIONS\" href=\"#donations\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003ePlease, support the project with donations (\u003ca href=\"#links\"\u003elinks\u003c/a\u003e at the bottom).\nAs the project gets bigger and more popular, the need for coffee goes up as well.\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003ePREREQUISITES\u003c/h2\u003e\u003ca id=\"user-content-prerequisites\" class=\"anchor\" aria-label=\"Permalink: PREREQUISITES\" href=\"#prerequisites\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries\" rel=\"nofollow\"\u003eMust read - how to prolong lithium ion batteries lifespan\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eAndroid or KaiOS\u003c/li\u003e\n\u003cli\u003eAny root solution (e.g., KernelSU, Magisk, SuperSU, etc)\u003c/li\u003e\n\u003cli\u003e\n\u003ca href=\"https://github.com/Magisk-Modules-Repo/busybox-ndk\"\u003eBusybox*\u003c/a\u003e (only if not rooted with KernelSU or Magisk)\u003c/li\u003e\n\u003cli\u003eNon KernelSU/Magisk installs require a way of running \u003ccode\u003e/data/adb/vr25/acc/service.sh\u003c/code\u003e on boot to initialize acc.\u003c/li\u003e\n\u003cli\u003eTerminal emulator\u003c/li\u003e\n\u003cli\u003eRoot text editor (optional)\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e* A busybox binary can simply be placed in \u003ccode\u003e/data/adb/vr25/bin/\u003c/code\u003e.\nPermissions (\u003ccode\u003e0755\u003c/code\u003e) are set automatically, as needed.\nPrecedence: /data/adb/vr25/bin/busybox \u0026gt; KernelSu's or Magisk's busybox \u0026gt; system's busybox\u003c/p\u003e\n\u003cp\u003eOther executables or static binaries can also be placed in \u003ccode\u003e/data/adb/vr25/bin/\u003c/code\u003e (with proper permissions) instead of being installed system-wide.\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eQUICK START GUIDE\u003c/h2\u003e\u003ca id=\"user-content-quick-start-guide\" class=\"anchor\" aria-label=\"Permalink: QUICK START GUIDE\" href=\"#quick-start-guide\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003col start=\"0\"\u003e\n\u003cli\u003e\n\u003cp\u003eAll commands/actions require root.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eInstall/upgrade: flash* the zip or use a front-end app.\nThere are two additional ways of upgrading: \u003ccode\u003eacc --upgrade\u003c/code\u003e (online) and \u003ccode\u003eacc --flash\u003c/code\u003e (zip flasher).\nRebooting after installation/removal is generally unnecessary.\nManual uninstall before upgrade is unnecessary.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e[Optional] run \u003ccode\u003eacc\u003c/code\u003e (wizard). That's the main command to remember.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e[Optional] run \u003ccode\u003eacc pause_capacity resume_capacity\u003c/code\u003e (default \u003ccode\u003e75 70\u003c/code\u003e) to set the battery levels at which charging should pause and resume, respectively.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eIf you come across any issues, refer to the \u003ca href=\"#troubleshooting\"\u003etroubleshooting\u003c/a\u003e, \u003ca href=\"#tips\"\u003etips\u003c/a\u003e and \u003ca href=\"#frequently-asked-questions-faq\"\u003eFAQ\u003c/a\u003e sections below.\nRead as much as you can, prior to reporting issues and/or asking questions.\nOftentimes, solutions/answers will be right before your eyes.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eNotes\u003c/h3\u003e\u003ca id=\"user-content-notes\" class=\"anchor\" aria-label=\"Permalink: Notes\" href=\"#notes\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eSteps \u003ccode\u003e2\u003c/code\u003e and \u003ccode\u003e3\u003c/code\u003e are optional because there are default settings.\nFor details, refer to the \u003ca href=\"#default-configuration\"\u003edefault configuration\u003c/a\u003e section below.\nUsers are encouraged to try step \u003ccode\u003e2\u003c/code\u003e - to familiarize themselves with the available options.\u003c/p\u003e\n\u003cp\u003eSettings can be overwhelming. Start with what you understand.\nThe default configuration has you covered.\nDon't ever feel like you have to configure everything. You probably shouldn't anyway - unless you really know what you're doing.\u003c/p\u003e\n\u003cp\u003eUninstall: run \u003ccode\u003eacc --uninstall\u003c/code\u003e or flash* \u003ccode\u003e/data/adb/vr25/acc-data/acc-uninstaller.zip\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eACC runs in some recovery environments as well.\nUnless the zip is flashed again, manual initialization is required.\nThe initialization script is \u003ccode\u003e/data/adb/vr25/acc/service.sh\u003c/code\u003e.\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eBUILDING AND/OR INSTALLING FROM SOURCE\u003c/h2\u003e\u003ca id=\"user-content-building-andor-installing-from-source\" class=\"anchor\" aria-label=\"Permalink: BUILDING AND/OR INSTALLING FROM SOURCE\" href=\"#building-andor-installing-from-source\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eDependencies (Build)\u003c/h3\u003e\u003ca id=\"user-content-dependencies-build\" class=\"anchor\" aria-label=\"Permalink: Dependencies (Build)\" href=\"#dependencies-build\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul\u003e\n\u003cli\u003egit, wget, or curl (pick one)\u003c/li\u003e\n\u003cli\u003ezip\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eBuild Tarballs and Flashable Zips\u003c/h3\u003e\u003ca id=\"user-content-build-tarballs-and-flashable-zips\" class=\"anchor\" aria-label=\"Permalink: Build Tarballs and Flashable Zips\" href=\"#build-tarballs-and-flashable-zips\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eDownload and extract the source code: \u003ccode\u003egit clone https://github.com/VR-25/acc.git\u003c/code\u003e\nor \u003ccode\u003ewget  https://github.com/VR-25/acc/archive/master.tar.gz -O - | tar -xz\u003c/code\u003e\nor \u003ccode\u003ecurl -L#  https://github.com/VR-25/acc/archive/master.tar.gz | tar -xz\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ccode\u003ecd acc*\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ccode\u003esh build.sh\u003c/code\u003e (or double-click \u003ccode\u003ebuild.bat\u003c/code\u003e on Windows 10+, if you have Windows subsystem for Linux (with zip) installed)\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch4 class=\"heading-element\"\u003eNotes\u003c/h4\u003e\u003ca id=\"user-content-notes-1\" class=\"anchor\" aria-label=\"Permalink: Notes\" href=\"#notes-1\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ccode\u003ebuild.sh\u003c/code\u003e automatically sets/corrects \u003ccode\u003eid=*\u003c/code\u003e in \u003ccode\u003e*.sh\u003c/code\u003e and \u003ccode\u003eupdate-binary\u003c/code\u003e files.\nTo skip generating archives, run the build script with a random argument (e.g. \u003ccode\u003esh build.sh h\u003c/code\u003e).\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eTo update the local source code, run \u003ccode\u003egit pull --force\u003c/code\u003e or re-download it (with \u003ccode\u003ewget\u003c/code\u003e/\u003ccode\u003ecurl\u003c/code\u003e) as described above.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eInstall from Local Source or GitHub\u003c/h3\u003e\u003ca id=\"user-content-install-from-local-source-or-github\" class=\"anchor\" aria-label=\"Permalink: Install from Local Source or GitHub\" href=\"#install-from-local-source-or-github\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ccode\u003e[export installDir=\u0026lt;parent install dir\u0026gt;] sh install.sh\u003c/code\u003e installs acc from the extracted source.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ccode\u003esh install-online.sh [-c|--changelog] [-f|--force] [-k|--insecure] [-n|--non-interactive] [%parent install dir%] [commit]\u003c/code\u003e downloads and installs acc from GitHub - e.g., \u003ccode\u003esh install-online.sh dev\u003c/code\u003e.\nThe order of arguments doesn't matter.\nFor upgrades, if \u003ccode\u003e%parent install dir%\u003c/code\u003e is not supplied, the original/current is used.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ccode\u003esh install-tarball.sh [module id, default: acc] [parent install dir (e.g., /data/data/mattecarra.accapp/files)]\u003c/code\u003e installs the tarball (\u003ccode\u003eacc*gz\u003c/code\u003e) from the script's location.\nThe archive must be in the same directory as this script - and obtained from GitHub: \u003ca href=\"https://github.com/VR-25/acc/archive/$commit.tar.gz\"\u003ehttps://github.com/VR-25/acc/archive/$commit.tar.gz\u003c/a\u003e (\u003ccode\u003e$commit\u003c/code\u003e examples: \u003ccode\u003emaster\u003c/code\u003e, \u003ccode\u003edev\u003c/code\u003e, \u003ccode\u003ev2020.5.20-rc\u003c/code\u003e).\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eOne can also use a single command to download and install acc:\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u003ccode\u003ecurl -sSL https://raw.githubusercontent.com/VR-25/acc/dev/install-online.sh | /system/bin/sh -s dev\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003ewget -qO- https://raw.githubusercontent.com/VR-25/acc/dev/install-online.sh | /system/bin/sh -s dev\u003c/code\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch4 class=\"heading-element\"\u003eNotes\u003c/h4\u003e\u003ca id=\"user-content-notes-2\" class=\"anchor\" aria-label=\"Permalink: Notes\" href=\"#notes-2\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ccode\u003einstall-online.sh\u003c/code\u003e is the \u003ccode\u003eacc --upgrade\u003c/code\u003e back-end.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eThe default parent installation directories, in order of priority, are: \u003ccode\u003e/data/data/mattecarra.accapp/files/\u003c/code\u003e (ACC App, but only for non KernelSU/Magisk installs), \u003ccode\u003e/data/adb/modules/\u003c/code\u003e (KernelSU/Magisk) and \u003ccode\u003e/data/adb/vr25/\u003c/code\u003e (other root solutions).\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eNo argument/option is strictly mandatory.\nThe exception is \u003ccode\u003e--non-interactive\u003c/code\u003e for front-end apps.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eThe \u003ccode\u003e--force\u003c/code\u003e option to \u003ccode\u003einstall-online.sh\u003c/code\u003e is meant for re-installation and downgrading.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ccode\u003esh install-online.sh --changelog --non-interactive\u003c/code\u003e prints the version code (integer) and changelog URL (string) when an update is available.\nIn interactive mode, it also asks the user whether they want to download and install the update.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eYou may also want to read \u003ca href=\"#terminal-commands\"\u003eTerminal Commands\u003c/a\u003e \u0026gt; \u003ccode\u003eExit Codes\u003c/code\u003e below.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eDEFAULT CONFIGURATION\u003c/h2\u003e\u003ca id=\"user-content-default-configuration\" class=\"anchor\" aria-label=\"Permalink: DEFAULT CONFIGURATION\" href=\"#default-configuration\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cpre\u003e\u003ccode\u003e#DC#\n\nconfigVerCode=202504250\n\nallowIdleAbovePcap=true\nampFactor=\nbattStatusWorkaround=true\ncapacity=(5 101 70 75 false)\ncooldownCurrent=\ncooldownRatio=()\ncurrentWorkaround=false\nforceOff=false\nlanguage=en\noffMid=true\nprioritizeBattIdleMode=true\nrebootResume=false\nresetBattStats=(false false false)\ntemperature=(45 50 40 55)\ntempLevel=0\nvoltFactor=\n\napplyOnBoot=()\n\napplyOnPlug=()\n\nbattStatusOverride=''\n\nchargingSwitch=()\n\nidleApps=()\n\nmaxChargingCurrent=()\n\nmaxChargingVoltage=()\n\nrunCmdOnPause=''\n\n\n\n# SYNTAX\n\n# allowIdleAbovePcap=true|false\n# ampFactor=1000|1000000\n# applyOnBoot=([CTRL_FILE1::RAW_VALUE[::DEFAULT]] [CTRL_FILE2::RAW_VALUE[::DEFAULT]...] [--exit])\n# applyOnPlug=([CTRL_FILE1::RAW_VALUE[::DEFAULT]] [CTRL_FILE2::RAW_VALUE[::DEFAULT]...])\n# battStatusOverride=Idle|Discharging|'code to PRINT value for _status'\n# battStatusWorkaround=true|false\n# capacity=(shutdown_capacity=% cooldown_capacity=% resume_capacity=% pause_capacity=% capacity_mask=true|false)\n# chargingSwitch=([CTRL_FILE1 ON OFF [CTRL_FILE2 ON OFF...] [--]])\n# cooldownCurrent=mA|mA%\n# cooldownRatio=(cooldown_charge=seconds cooldown_pause=seconds)\n# currentWorkaround=true|false\n# forceOff=true|false\n# idleApps=(comma or space-separated patterns matching Android package names)\n# language=LANGUAGE_CODE\n# maxChargingCurrent=(MILLIAMPS [CTRL_FILE1::RAW_VALUE::DEFAULT CTRL_FILE2::RAW_VALUE::DEFAULT...])\n# maxChargingVoltage=(MILLIVOLTS [CTRL_FILE1::RAW_VALUE::DEFAULT CTRL_FILE2::RAW_VALUE::DEFAULT...] [--exit])\n# offMid=true|false\n# prioritizeBattIdleMode=true|false|no\n# rebootResume=true|false\n# resetBattStats=(reset_batt_stats_on_pause=true|false reset_batt_stats_on_unplug=true|false reset_batt_stats_on_plug=true|false)\n# runCmdOnPause='COMMAND...'\n# temperature=(cooldown_temp=ºC max_temp=ºC resume_temp=ºC shutdown_temp=ºC)\n# tempLevel=%\n# voltFactor=1000|1000000\n\n\n\n# NOTES\n\n# Do not edit this in Windows Notepad, ever!\n# It replaces LF (Linux/Unix) with CRLF (Windows) line endings.\n\n# Nullifying values that should not be null causes unexpected behavior.\n# However, doing it with \"--set var=\" restores the default value of \"var\".\n# In other words, for regular users, \"--set\" is safer than modifying the config file directly.\n\n# Do not feel like you must configure everything!\n# Do not change what you don't understand.\n\n# The daemon does not have to be restarted to apply changes. It picks them up automatically within seconds.\n\n\n\n# INTERNAL FUNCTIONS\n\n# at HH:MM command1, commmand2...   scheduler\n# e.g.,\n#   at 2:14 acc --notif 2:14 AM now\\!\n#   at 22:30 acc -n 22:30 now\\!\n\n# batt_cap   print battery level\n\n# calc \u0026lt;operation...\u0026gt;   float  calculator\n\n# set_temp_level \u0026lt;0-100\u0026gt;   refer to temp_level (tl) below\n\n# voltage_now   prints the instantaneous charging voltage\n\n\n\n# INTERNAL VARIABLES\n\n# $_DPOL  discharge polarity (+|-)\n# $_status   Charging|Discharging|Idle\n# $_STI   switch test iterations (default: 5)\n# $batt   expands to the /sys/class/power_supply/battery (or equivalent) directory\n# $battCapacity   $batt/capacity file\n# $battStatus   $batt/status file\n# $currFile   current_now file\n# $idleThreshold   mA absolute value to consider charging status=Idle (default: 10)\n# $temp   temperature reporting file\n# ${isAccd:-false}   true|false (whether accd in running)\n\n\n\n# The \"date\" command\n# $(date +FORMAT)\n# FORMAT specifies display format string using strftime(3) syntax:\n\n# %% literal %             %n newline              %t tab\n# %S seconds (00-60)       %M minute (00-59)       %m month (01-12)\n# %H hour (0-23)           %I hour (01-12)         %p AM/PM\n# %y short year (00-99)    %Y year                 %C century\n# %a short weekday name    %A weekday name         %u day of week (1-7, 1=mon)\n# %b short month name      %B month name           %Z timezone name\n# %j day of year (001-366) %d day of month (01-31) %e day of month ( 1-31)\n# %N nanosec (output only)\n\n# %U Week of year (0-53 start sunday)   %W Week of year (0-53 start monday)\n# %V Week of year (1-53 start monday, week \u0026lt; 4 days not part of this year)\n\n# %F \"%Y-%m-%d\"     %R \"%H:%M\"        %T \"%H:%M:%S\"    %z numeric timezone\n# %D \"%m/%d/%y\"     %r \"%I:%M:%S %p\"  %h \"%b\"          %s unix epoch time\n# %x locale date    %X locale time    %c locale date/time\n\n\n\n# ALIASES (for use with --set only)\n\n# allow_idle_above_pcap aiapc\n# amp_factor af\n# apply_on_boot ab\n# apply_on_plug ap\n# batt_status_override bso\n# batt_status_workaround bsw\n# capacity_mask cm\n# charging_switch s\n# cooldown_capacity cc\n# cooldown_charge cch\n# cooldown_current cdc\n# cooldown_pause cp\n# cooldown_temp ct\n# current_workaround cw\n# force_off fo\n# idle_apps ia\n# lang l\n# max_charging_current mcc\n# max_charging_voltage mcv\n# max_temp mt\n# resume_temp rt\n# off_mid om\n# pause_capacity pc\n# prioritize_batt_idle_mode pbim\n# reboot_resume rr\n# reset_batt_stats_on_pause rbsp\n# reset_batt_stats_on_plug rbspl\n# reset_batt_stats_on_unplug rbsu\n# resume_capacity rc\n# run_cmd_on_pause rcp\n# shutdown_capacity sc\n# shutdown_temp st\n# temp_level tl\n# volt_factor vf\n\n\n\n# FINE, BUT WHAT DOES EACH OF THESE VARIABLES ACTUALLY MEAN?\n\n\n# configVerCode #\n# This is checked during updates to determine whether the config should be patched. Do NOT modify.\n# The value is not necessarily the same as acc's version code.\n\n\n# allow_idle_above_pcap (aiapc) #\n#\n# Type: Boolean\n# Default: true\n#\n# If set to false, accd will avoid idle mode (if possible) when capacity \u0026gt; pause_capacity.\n# This is useful for forever-plugged setups, where battery longevity is a top priority.\n# Idle mode is good, but \"storing\" a highly charged battery for a LONG time is a bad idea.\n# The recommended capacity range for long-term/forever-plugged is 40-60%.\n\n\n# amp_factor (af) # volt_factor (vf) #\n#\n# Type: Integer (usually 1000000 or 1000)\n# Defaults: Null\n#\n# Unit multiplier for conversion (e.g., 1V = 1000000uV, 1A = 1000000mA).\n# ACC can automatically determine the units, but the mechanism is not 100% foolproof.\n# Leave those properties alone, unless acc -i misreports current/voltage values.\n\n\n# apply_on_boot (ab) # apply_on_plug (ap) #\n#\n# Type: String (CTRL_FILE1::VALUE::DEFAULT CTRL_FILE2::VALUE::DEFAULT... --exit)\n# Default: Null\n#\n# e.g., acc -s ab=wireless/voltage_max::9000000 (forces fast wireless charging on Pixel devices)\n#\n# This is for general kernel tweaking.\n# For ab, settings are applied on boot and on daemon start/restart.\n# For ap, settings are applied periodically, while charging.\n#\n# Default values (optional) are restored when the daemon stops.\n# \"--exit\" (for ab only) instructs accd to stop after applying settings.\n\n\n# batt_status_override (bso) #\n#\n# Type: String (Idle|Discharging|'code to PRINT value for _status')\n# Default: Null\n#\n# Overrides the battery status determined by the not_charging function.\n# It can be Idle, Discharging (both case sensitive), or a script to PRINT the desired value for the _status variable.\n# When it's Idle or Discharging, _status will be set to that value if the charging switch state is off.\n# This only works in conjunction with an enforced charging switch (set manually, has a trailing \" --\").\n#\n# Usage scenario: the switch \"main/cool_mode 0 1\" supports idle mode. However, sometimes it doesn't respond soon enough (e.g., due to fast charging).\n# The user can then enforce it with \"acc -ss\" and set \"batt_status_override=Idle\".\n# This means, when \"main/cool_mode\" is \"on\" (0), _status will be determined by the not_charging function (as usual), but when it's off (1), _status will be Idle, overriding the not_charging function's logic.\n#\n# If the user were to write their own logic, it would be something like the following:\n# batt_status_override='[ $(cat main/cool_mode) -eq 1 ] \u0026amp;\u0026amp; printf Idle || :'\n# The \"|| :\" part is mandatory to avoid issues with \"set -e\", which acc uses extensively.\n\n\n# batt_status_workaround (bsw) #\n#\n# Type: Boolean\n# Default: true\n#\n# With this enabled (true), in addition to just reading POWER_SUPPLY_STATUS, if the battery is \"Charging\" and current is within 40mA (inclusive), battery status is considered \"Idle\".\n# Status is considered \"Discharging\", if the current's polarity changes after calling the disable_charging function.\n# By not relying solely on the information provided by POWER_SUPPLY_STATUS, this approach dramatically boosts compatibility.\n# This must be disabled on systems that report wrong/misleading charging current values.\n\n\n# capacity_mask (cm) #\n#\n# Type: Boolean\n# Default: false\n#\n# This forces Android to report \"capacity = (capacity - shutdown _capacity) * 100 / (pause_capacity - shutdown_capacity)\", effectively masking capacity limits.\n# It also prevents Android from getting capacity readings below 2%, since some systems shutdown before battery level actually drops to 0%.\n# Use case: Secretly install acc on a relative's device, and enable this, so that they always see the regular 0-100% battery level scale.\n\n\n# charging_switch (s) #\n#\n# Type: String (CTRL_FILE1 ON OFF CTRL_FILE2 ON OFF... --)\n# Default: Null (automatic)\n#\n# If unset, acc cycles through its database and sets the first switch/group that successfully disables charging.\n# If later, the set switch/group fails 3 times in a row, acc unsets it, moves it to the end of the list and repeats the above.\n# If all switches fail to disable charging, chargingSwitch is unset and acc/d exit with code 7.\n#\n# This automated process can be disabled by appending \" --\" to the switch/group.\n# e.g., acc -s s=\"battery/charging_enabled 1 0 --\"\n# \"acc -ss\" always appends \" --\".\n#\n# Certain switches tend to be problematic/unreliable under specific condition (e.g., screen off, fast charging, heavy load).\n# Sometimes, this is caused by rogue thermal management programs (e.g., mi_thermald).\n# To mitigate this, one may want to try force_off or a thermal mod.\n\n\n# cooldown_capacity (cc) #\n#\n# Type: Integer (percentage)\n# Default: 101\n#\n# Battery level or millivolts at which the cooldown cycle starts.\n# Cooldown reduces battery stress induced by prolonged exposure to high temperature and high charging voltage.\n# It does so through periodically pausing charging for a few seconds (cooldown_pause, more details below).\n# Requires cooldown_current OR \"cooldown_charge and cooldown_pause\".\n\n\n# cooldown_charge (cch) # cooldown_pause (cp) #\n#\n# Type: Integer (seconds)\n# Defaults: null\n#\n# Those dictate the cooldown cycle intervals (seconds).\n# When not set, the cycle is disabled.\n# Suggested values are cch=50 and cp=10.\n# If charging gets slower than desired, try cch=50 and cp=5.\n# Note that cooldown_capacity and cooldown_temp can be disabled individually by assigning them values that would never be reached under normal circumstances.\n# cooldown_current optionally works with ratios as well (cooldown_charge: regular current, cooldown_pause: cooldown_current).\n\n\n# cooldown_current (cdc) #\n#\n# Type: Integer (milliamps)\n# Default: Null\n#\n# Instead of pausing charging for cooldown_pause seconds, limit the max charging current (e.g., to 500 (mA) or even 50% (of the max current).\n# cooldown_pause and cooldown_charge are optional.\n# When the value is a percentage, temp_level is used as back-end, rather than the regular current control logic.\n\n\n# cooldown_temp (ct) #\n#\n# Type: Integer (°C)\n# Default: 45\n#\n# Temperature (°C) at which the cooldown cycle starts.\n# Cooldown reduces the battery degradation rate by lowering the device's temperature.\n# Requires cooldown_current OR \"cooldown_charge and cooldown_pause\".\n\n\n# current_workaround (cw) #\n#\n# Type: Boolean\n# Default: false\n#\n# If set to true, acc only uses current control files whose paths match \"batt\".\n# This is necessary only if the current limit affects both input and charging current values.\n# Enable if low current values don't work.\n\n\n# force_off (fo) #\n#\n# Type: Boolean\n# Default: false\n#\n# Enable this only as last resort, if the set charging switch is stubbornly reset by the system.\n# Oftentimes, userspace thermal management daemons (e.g., mi_thermald) and/or driver bugs are behind charging control issues.\n\n\n# idle_apps (ia) #\n#\n# Type: String\n# Default: Null\n#\n# This is a list of comma or space-separated patterns matching Android package names.\n# When a matched app is running in the foreground, acc daemon enables idle mode.\n# e.g., acc -s ia=maps,codm,pokemon\n\n\n# lang (l) #\n#\n# Type: String\n# Default: en\n#\n# Display language, when null, English (en) is assumed.\n# WARNING: Current translations are poor/outdated.\n\n\n# max_charging_current (mcc) # max_charging_voltage (mcv) #\n#\n# Type: Integer (milliamps/millivolts)\n# Defaults: Null\n#\n# Control files are automatically added by accd when the array has just one element (the milliamps/millivolts value).\n# If the second element of the array (array[1]) starts with \"-\", accd recognizes it as an instruction to update the control files.\n# This is useful for setting/changing current and voltage limits without a frontend (--set or app).\n# Simply put, if the user has the following in their config, accd automatically adds/updates the control files:\n#   maxChargingCurrent=(1000) # Control files will be added.\n#   maxChargingVoltage=(4000 -battery/voltage_max bms/voltage_max) # Control files will be updated. The \"-\" is mandatory after changing the value (first element). Otherwise, the change has no effect.\n#\n# Notes: The maximum current that can be set via dedicated commands is 9999 mA. For voltage, the max is 4300 mV. One can override those by editing the config directly. When the charging current value is a percentage, temp_level is used as back-end, rather than the regular current control logic.\n\n\n# max_temp (mt) # resume_temp (rt) #\n#\n# Type: Integer (°C)\n# Defaults: mt=50, rt=40\n#\n# Those two work together and are NOT tied to the cooldown cycle.\n# At max_temp, charging is paused.\n# If charging is paused due to capacity \u0026gt;= pause_capacity, it resumes when capacity \u0026lt;= resume_capacity AND temp \u0026lt;= max_temp.\n# If charging is paused due to temp \u0026gt;= max_temp, it resumes when capacity \u0026lt; pause_capacity AND temp \u0026lt;= resume_temp\n\n\n# off_mid (om) #\n#\n# Type: Boolean\n# Default: true\n#\n# Whether to turn off charging after rebooting the system or restarting accd, if capacity is within resume_capacity and pause_capacity.\n\n\n# one-line scripts #\n#\n# Type: String\n# Default: Null\n#\n# Every line that begins with \":\" is interpreted as a shell script.\n# This feature can be useful for many things, including setting up persistent config profiles (i.e., source a file that overrides the main config).\n# All script lines are executed whenever the config is loaded/sourced.\n# This happens regularly while the daemon is running, and at least once per command run.\n#\n# Note: Due to user data encryption, files used in one-line scripts must reside somewhere in /data/adb/, just like acc's own data files.\n# Ignore if your data isn't encrypted.\n#\n# Tip: One can schedule tasks with the following construct:\n# : sleep profile; at 22:00 acc -s pc=50 mcc=500 mcv=3900, acc -n Switched to night profile\n#\n# WARNING: All scripts must always return zero. Appending \"|| :\" ensures that.\n\n\n# pause_capacity (pc) # resume_capacity (rc) #\n#\n# Type: Integer (percentage)\n# Defaults: pc=75, rc=70\n#\n# Battery level or millivolts at which charging shall be paused/resumed.\n\n\n# prioritize_batt_idle_mode (pbim) #\n#\n# Type: Boolean | String (pbim=no)\n# Default: true\n#\n# Battery idle mode, also called \"standby mode\" or \"charging bypass\", is the ability of running off the charger, as if the battery were disconnected from the device.\n# Not all devices support this, but there's also emulated idle mode (refer to the readme), which works on all devices.\n#\n# If enabled, charging switches that support battery idle mode take precedence.\n# This is only relevant when the switch is automatically determined -- i.e., charging_switch is not set or it has no trailing \" --\".\n# In other words, this variable is only used when acc is automatically testing charging switches.\n# When set to \"no\", it has the opposite effect (prioritize non-idle mode).\n\n\n# reboot_resume (rr) #\n#\n# Type: Boolean\n# Default: false\n#\n# Reboot (when capacity capacity is at or below resume_capacity) to re-enable charging.\n# This is only for devices whose switches can't re-enable charging.\n# A warning Android notification is posted 60 seconds prior, for the user to block the action, if they so please.\n\n\n# reset_batt_stats_on_pause (rbsp) # reset_batt_stats_on_plug (rbspl) # reset_batt_stats_on_unplug (rbsu) #\n#\n# Type: Boolean\n# Default: false\n#\n# Reset battery stats after a given event.\n\n\n# run_cmd_on_pause (rcp) #\n#\n# Type: String\n# Default: Null\n#\n# Run commands* after pausing charging.\n# * Usually a script (\"sh some_file\" or \". some_file\")\n\n\n# shutdown_capacity (sc) #\n#\n# Type: Integer (percentage)\n# Default: 5\n#\n# When the battery is discharging, its level/millivolts is at or below shutdown_capacity, and the device has been running for 15 minutes or more, acc daemon turns the device off to reduce the discharge rate, and protect the battery from potential damage, induced by voltage below the operating range.\n# A value less than 1 disables it.\n# An Android warning notification is posted shortly before the shutdown, giving some time to abort the process.\n\n\n# shutdown_temp (st) #\n#\n# Type: Integer (°C)\n# Default: 55\n#\n# Shutdown the system if battery temperature \u0026gt;= this value.\n\n\n# temp_level (tl) #\n#\n# Type: Integer (percentage)\n# Default: 0\n#\n# This is an alternate current limiting feature.\n# Some devices have adjustable \"temperature levels\" and/or charge_control_limit, siop_level parameters.\n# At the highest level, charging current is blocked.\n# The stock values are generally integers, ranging from 0 to 6, 7 or so. siop_level (Samsung) ranges from 0 to 100).\n# For greater flexibility, this variable stores a percentage value, which is internally mapped to the system's scales.\n\n#/DC#\n\u003c/code\u003e\u003c/pre\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eSETUP/USAGE\u003c/h2\u003e\u003ca id=\"user-content-setupusage\" class=\"anchor\" aria-label=\"Permalink: SETUP/USAGE\" href=\"#setupusage\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eAs the \u003ca href=\"#default-configuration\"\u003edefault configuration\u003c/a\u003e (above) suggests, ACC is designed to run out of the box, with little to no customization/intervention.\u003c/p\u003e\n\u003cp\u003eThe only command you have to remember is \u003ccode\u003eacc\u003c/code\u003e.\nIt's a wizard you'll either love or hate.\u003c/p\u003e\n\u003cp\u003eIf you feel uncomfortable with the command line, skip this section and use a front-end app instead.\u003c/p\u003e\n\u003cp\u003eAlternatively, you can use a \u003ccode\u003etext editor\u003c/code\u003e to modify \u003ccode\u003e/data/adb/vr25/acc-data/config.txt\u003c/code\u003e.\nThe config file itself has configuration instructions.\nThose are the same found in the \u003ca href=\"#default-configuration\"\u003edefault configuration\u003c/a\u003e section, above.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eTerminal Commands\u003c/h3\u003e\u003ca id=\"user-content-terminal-commands\" class=\"anchor\" aria-label=\"Permalink: Terminal Commands\" href=\"#terminal-commands\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cpre\u003e\u003ccode\u003e#TC#\n\nUsage\n\n  acc   Wizard\n\n  accd   Start/restart accd\n\n  accd.   Stop acc/daemon\n\n  accd,   Print acc/daemon status (running or not)\n\n  acc [pause_capacity/millivolts [resume_capacity/millivolts, default: pause_capacity/millivolts - 5%/50mV]]\n    e.g.,\n      acc 75 70\n      acc 80 (resume_capacity defaults to 80% - 5)\n      acc 3900 (same as acc 3900 3870, great idle mode alternative)\n\n  acc [options] [args]   Refer to the list of options below\n\n  acca [options] [args]   acc optimized for front-ends\n\n  acc[d] -x [options] [args]   Sets log=/sdcard/Download/acc[d]-${device}.log; useful for debugging unwanted reboots\n\n  A custom config path can be specified as first parameter (second if -x is used).\n  If the file doesn't exist, the current config is cloned.\n    e.g.,\n      acc /data/acc-night-config.txt --set pause_capacity=45 resume_capacity=43\n      acc /data/acc-night-config.txt --set --current 500\n      accd /data/acc-night-config.txt --init\n\n  Notes regarding accd:\n    - The order of \"--init|-i\" does not matter.\n    - The config path string shall not contain \"--init|-i\".\n\n\nOptions\n\n  -b|--rollback [nv]   Restore previous installation; with \"n\" flag, the config is not restored; with \"v\" flag, nothing is done other than printing the version that would have been restored\n\n  -c|--config [[editor] [editor_opts] | g for GUI]   Edit config (default editor: nano/vim/vi)\n    e.g.,\n      acc -c (edit w/ nano/vim/vi)\n      acc -c less\n      acc -c cat\n\n  -c|--config a|d string|regex   Append (a) or delete (d) string/pattern to/from config\n    e.g.,\n      acc -c a : sleep profile, at 22:00 acc -s pc=50 mcc=500 mcv=3900, acc -n switched to sleep profile (append a schedule)\n      acc -c d sleep (remove all lines matching \"sleep\")\n\n  -c|--config h string   Print config help text associated with \"string\" (config variable)\n    e.g., acc -c h rt (or resume_temp)\n\n  -d|--disable [#%, #s, #m, #h or #mv (optional)]   Disable charging\n    e.g.,\n      acc -d 70% (do not recharge until capacity \u0026lt;= 70%)\n      acc -d 1h (do not recharge until 1 hour has passed)\n      acc -d 4000mv (do not recharge until battery voltage \u0026lt;= 4000mV)\n\n  -D|--daemon   Print daemon status, (and if running) version and PID\n    e.g., acc -D (alias: \"accd,\")\n\n  -D|--daemon [start|stop|restart]   Manage daemon\n    e.g.,\n      acc -D start (alias: accd)\n      acc -D restart (alias: accd)\n      accd -D stop (alias: \"accd.\")\n\n  -e|--enable [#%, #s, #m, #h or #mv (optional)]   Enable charging\n    e.g.,\n      acc -e 75% (recharge to 75%)\n      acc -e 30m (recharge for 30 minutes)\n      acc -e 4000mv (recharge to 4000mV)\n\n  -f|--force|--full [capacity] [-a] [additional opts/args]   Charge once to a given capacity (default: 100%), without restrictions\n    e.g.,\n      acc -f 95 (charge to 95%)\n      acc -f (charge to 100%)\n      acc -f -s mcc=500 (charge to 100% with a 500 mA limit)\n      acc -f 90 -a (the -a (auto) tries to restart accd automatically shortly after the charger is unplugged; not supported by all devices)\n\n  -F|--flash [\"zip_file\"]   Flash any zip files whose update-binary is a shell script\n    e.g.,\n      acc -F (lauches a zip flashing wizard)\n      acc -F \"file1\" \"file2\" \"fileN\" ... (install multiple zips)\n      acc -F \"/sdcard/Download/Magisk-v20.0(20000).zip\"\n\n  -h|--help [[editor] [editor_opts] | g for GUI]   Print this help text, plus the config\n\n  -H|--health \u0026lt;mAh\u0026gt;   Print estimated battery health\n\n  -i|--info [case insensitive egrep regex (default: \".\")]   Show battery info\n    e.g.,\n      acc -i\n      acc -i volt\n      acc -i volt,curr (multiple patterns)\n\n  -l|--log [-a|--acc] [[editor] [editor_opts] | g for GUI]   Print/edit accd log (default) or acc log (-a|--acc)\n    e.g.,\n      acc -l (same as acc -l less)\n      acc -l rm\n      acc -l -a cat\n      acc -l grep ': ' (show explicit errors only)\n\n  -la   Same as -l -a\n\n  -l|--log -e|--export   Export all logs to /sdcard/Download/acc-logs-$deviceName.tgz\n    e.g., acc -l -e\n\n  -le   Same as -l -e\n\n  -n|--notif [[\"STRING\" (default: \":)\")] [USER ID (default: 2000 (shell))]]   Post Android notification; may not work on all systems\n    e.g., acc -n \"Hello, World!\"\n\n  -p|--parse [\u0026lt;base file\u0026gt; \u0026lt;file to parse\u0026gt;] | \u0026lt;file to parse\u0026gt;]   Helps find potential charging switches quickly, for any device\n    e.g.,\n      acc -p   Parse /logs/power_supply-\\*.log and print potential charging switches not present in /ch-switches\n      acc -p /sdcard/power_supply-harpia.log   Parse the given file and print potential charging switches that are not already in /ch-switches\n      acc -p /sdcard/charging-switches.txt /sdcard/power_supply-harpia.log   Parse /sdcard/power_supply-harpia.log and print potential charging switches absent from /sdcard/charging-switches.txt\n\n  -r|--readme [g for GUI]]   Open the manual\n\n  -R|--resetbs   Reset battery stats\n    e.g., acc -R\n\n  -s|--set   Print current config\n    e.g., acc -s\n\n  -s|--set file   Get config from file (in \"acc -s\" format); the file's path must be absolute; partial config is supported\n    e.g., acc -s /data/config\n\n  -s|--set prop1=value \"prop2=value1 value2\"   Set [multiple] properties\n    e.g.,\n      acc -s charging_switch=\n      acc -s pause_capacity=60 resume_capacity=55 (shortcuts: acc -s pc=60 rc=55, acc 60 55)\n      acc -s \"charging_switch=battery/charging_enabled 1 0\" resume_capacity=55 pause_capacity=60\n    Note: all properties have short aliases for faster typing; run \"acc -c cat\" to see them\n\n  -s|--set c|--current [milliamps|-]   Set/print/restore_default max charging current (range: 0-9999 mA)\n    e.g.,\n      acc -s c (print current limit)\n      acc -s c 500 (set)\n      acc -s c - (restore default)\n\n  -sc [milliamps|-]   Same as above\n\n  -s|--set l|--lang   Change language\n    e.g., acc -s l\n\n  -sl   Same as above\n\n  -s|--set d|--print-default [egrep regex (default: \".\")]   Print default config without blank lines\n    e.g.,\n      acc -s d (print entire defaul config)\n      acc -s d cap (print only entries matching \"cap\")\n      acc -s cap,temp (multiple patterns)\n\n  -sd [egrep regex (default: \".\")]   Same as above\n\n  -s|--set p|--print [egrep regex (default: \".\")]   Print current config without blank lines (refer to previous examples)\n\n  -sp [egrep regex (default: \".\")]   Same as above\n\n  -s|--set r|--reset [a]   Restore default config (\"a\" is for \"all\": config and control file blacklists, essentially a hard reset)\n    e.g.,\n      acc -s r\n\n  -sr [a]   Same as above\n\n\n  -s|--set s|charging_switch   Enforce a specific charging switch\n    e.g., acc -s s\n\n  -ss    Same as above\n\n  -s|--set s:|chargingSwitch:   List known charging switches\n    e.g., acc -s s:\n\n  -ss:   Same as above\n\n  -s|--set s::|chargingSwitch::   List working charging switches and mcc, mcv \u0026amp; tl support status\n    e.g., acc -s s::\n\n  -ss::   Same as above\n\n  -s|--set v|--voltage [millivolts|-] [--exit]   Set/print/restore_default max charging voltage (range: 3700-4300 mV)\n    e.g.,\n      acc -s v (print)\n      acc -s v 3900 (set)\n      acc -s v - (restore default)\n      acc -s v 3900 --exit (stop the daemon after applying settings)\n\n  -sv [millivolts|-] [--exit]   Same as above\n\n  -t|--test [ctrl_file1 on off [ctrl_file2 on off]]   Test custom charging switches\n    Implies -x, as in acc -x -t ...\n    e.g.,\n      acc -t battery/charging_enabled 1 0\n      acc -t /proc/mtk_battery_cmd/current_cmd 0::0 0::1 /proc/mtk_battery_cmd/en_power_path 1 0 (\"::\" is a placeholder for \" \" - MTK only)\n\n  -t|--test [file]   Test charging switches from a file (default: /ch-switches)\n    Implies -x, as in acc -x -t ...\n    e.g.,\n      acc -t (test known switches)\n      acc -t /sdcard/experimental_switches.txt (test custom/foreign switches)\n\n  -t|--test [p|parse]   Parse potential charging switches from the power supply log (as \"acc -p\"), test them all, and add the working ones to the list of known switches\n    Implies -x, as in acc -x -t p\n    e.g., acc -t p\n\n  -T|--logtail   Monitor accd log (tail -F)\n    e.g., acc -T\n\n  -u|--upgrade [-c|--changelog] [-f|--force] [-n|--non-interactive]   Online upgrade/downgrade\n    e.g.,\n      acc -u dev (upgrade to the latest dev version)\n      acc -u (latest version from the current branch)\n      acc -u master^1 -f (previous stable release)\n      acc -u -f dev^2 (two dev versions below the latest dev)\n      acc -u v2020.4.8-beta --force (force upgrade/downgrade to v2020.4.8-beta)\n      acc -u -c -n (if update is available, prints version code (integer) and changelog)\n      acc -u -c (same as above, but with install prompt)\n\n  -U|--uninstall   Completely remove acc and AccA\n    e.g., acc -U\n\n  -v|--version   Print acc version and version code\n    e.g., acc -v\n\n  -w[#]|--watch[#] [pattern1,pattern2,...]   Monitor battery uevent\n    e.g.,\n      acc -w (update info every second)\n      acc -w0.5 (update info every half a second)\n      acc -w0 (no extra delay)\n      acc -w curr,volt\n\n\nExit Codes\n\n  0. True/success\n  1. False or general failure\n  2. Incorrect command syntax\n  3. Missing busybox binary\n  4. Not running as root\n  5. Update available (\"--upgrade\")\n  6. No update available (\"--upgrade\")\n  7. Failed to disable charging\n  8. Daemon already running (\"--daemon start\")\n  9. Daemon not running (\"--daemon\" and \"--daemon stop\")\n  10. All charging switches fail (--test)\n  11. Current (mA) out of 0-9999 range\n  12. Initialization failed\n  13. Failed to lock /acc.lock\n  14. ACC won't initialize, because a \"disable\" flag is set\n  15. Idle mode is supported (--test)\n  16. Failed to enable charging (--test)\n\n  Logs are exported automatically (\"--log --export\") on exit codes 1, 2 and 7.\n\n\nTips\n\n  Commands can be chained for extended functionality.\n    e.g., charge for 30 minutes, pause charging for 6 hours, charge to 85% and restart the daemon\n    acc -e 30m \u0026amp;\u0026amp; acc -d 6h \u0026amp;\u0026amp; acc -e 85 \u0026amp;\u0026amp; accd\n  One can take advantage of one-line scripts and the built-in \"at\" function to schedule profiles (refer back to -c|--config).\n\n  Sample profile\n    acc -s pc=60 mcc=500 mcv=3900\n      This keeps battery capacity between 55-60%, limits charging current to 500 mA and voltage to 3900 millivolts.\n      It's great for nighttime and \"forever-plugged\".\n\n  Refer to acc -r (or --readme) for the full documentation (recommended)\n\n#/TC#\n\u003c/code\u003e\u003c/pre\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003ePLUGINS\u003c/h2\u003e\u003ca id=\"user-content-plugins\" class=\"anchor\" aria-label=\"Permalink: PLUGINS\" href=\"#plugins\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eThose are scripts that override functions and some global variables.\nThey should be placed in \u003ccode\u003e/data/adb/vr25/acc-data/plugins/\u003c/code\u003e.\nFiles are sorted and sourced.\nFilenames shall not contain spaces.\nHidden files and those without the \u003ccode\u003e.sh\u003c/code\u003e extension are ignored.\u003c/p\u003e\n\u003cp\u003eThere are also \u003cem\u003evolatile\u003c/em\u003e plugins (gone on reboot, useful for debugging): \u003ccode\u003e/dev/.vr25/acc/plugins/\u003c/code\u003e.\nThose override the permanent.\u003c/p\u003e\n\u003cp\u003eA daemon restart is required to load new/modified plugins.\u003c/p\u003e\n\u003cp\u003eAn alternative to plugins are one-line scripts. Refer to the \u003ca href=\"#default-configuration\"\u003edefault configuration\u003c/a\u003e section above.\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eNOTES/TIPS FOR FRONT-END DEVELOPERS\u003c/h2\u003e\u003ca id=\"user-content-notestips-for-front-end-developers\" class=\"anchor\" aria-label=\"Permalink: NOTES/TIPS FOR FRONT-END DEVELOPERS\" href=\"#notestips-for-front-end-developers\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eBasics\u003c/h3\u003e\u003ca id=\"user-content-basics\" class=\"anchor\" aria-label=\"Permalink: Basics\" href=\"#basics\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eACC does not require KernelSU/Magisk.\nAny root solution works, as long as busybox is installed.\u003c/p\u003e\n\u003cp\u003eUse \u003ccode\u003e/dev/acca\u003c/code\u003e instead of regular \u003ccode\u003eacc\u003c/code\u003e.\nIt's optimized for front-ends, guaranteed to be readily available after installation/upgrades and significantly faster than its \u003ccode\u003eacc\u003c/code\u003e counterpart.\nAdditionally, \u003ccode\u003e/dev/acca --set prop1=bla prop2=\"bla bla\" ...\u003c/code\u003e runs asynchronously (non-blocking mode) - meaning, multiple instances of it work in parallel.\u003c/p\u003e\n\u003cp\u003eIt may be best to use long options over short equivalents - e.g., \u003ccode\u003e--set charging_switch=\u003c/code\u003e instead of \u003ccode\u003e-s s=\u003c/code\u003e.\nThis makes code more readable (less cryptic).\u003c/p\u003e\n\u003cp\u003eInclude provided descriptions of ACC features/settings in your front-end.\nProvide additional information (trusted) where appropriate.\nExplain settings/concepts as clearly and as concisely as possible.\u003c/p\u003e\n\u003cp\u003eTake advantage of acc exit codes.\nRefer back to \u003ccode\u003eSETUP/USAGE \u0026gt; [Terminal Commands](#terminal-commands) \u0026gt; Exit Codes\u003c/code\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eInstalling/Upgrading ACC\u003c/h3\u003e\u003ca id=\"user-content-installingupgrading-acc\" class=\"anchor\" aria-label=\"Permalink: Installing/Upgrading ACC\" href=\"#installingupgrading-acc\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eThis should be trivial.\nThe simplest way is flashing acc from KernelSU/Magisk module manager.\u003c/p\u003e\n\u003cp\u003eAlternatively, \u003ccode\u003einstall.sh\u003c/code\u003e, \u003ccode\u003einstall-online.sh\u003c/code\u003e or \u003ccode\u003einstall-tarball.sh\u003c/code\u003e can be used.\nFor details, refer back to \u003ca href=\"#install-from-local-source-or-github\"\u003einstall from local source or GitHub\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eDevelopers can also use the \u003cem\u003eupdateJSON\u003c/em\u003e API.\nThe front-end downloads and parses \u003ca href=\"https://raw.githubusercontent.com/VR-25/acc/master/module.json\" rel=\"nofollow\"\u003ethis JSON file\u003c/a\u003e.\nThe format is as follows:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e{\n    \"busybox\": \"https://github.com/Magisk-Modules-Repo/busybox-ndk\",\n    \"changelog\": \"https://raw.githubusercontent.com/VR-25/acc/master/changelog.md\",\n    \"curl\": \"https://github.com/Zackptg5/Cross-Compiled-Binaries-Android/tree/master/curl\",\n    \"tgz\": \"https://github.com/VR-25/acc/releases/download/$version/acc_${version}_${versionCode}.tgz\",\n    \"tgzInstaller\": \"https://github.com/VR-25/acc/releases/download/$version/install-tarball.sh\",\n    \"version\": \"STRING\",\n    \"versionCode\": INT,\n    \"zipUrl\": \"https://github.com/VR-25/acc/releases/download/$version/acc_${version}_${versionCode}.zip\"\n}\n\u003c/code\u003e\u003c/pre\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eUninstalling ACC\u003c/h3\u003e\u003ca id=\"user-content-uninstalling-acc\" class=\"anchor\" aria-label=\"Permalink: Uninstalling ACC\" href=\"#uninstalling-acc\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eEither run \u003ccode\u003e/data/adb/vr25/acc/uninstall.sh\u003c/code\u003e (no reboot required) or uninstall from KernelSU/Magisk module manager and reboot.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eInitializing ACC\u003c/h3\u003e\u003ca id=\"user-content-initializing-acc\" class=\"anchor\" aria-label=\"Permalink: Initializing ACC\" href=\"#initializing-acc\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eOn \u003ccode\u003eboot_completed\u003c/code\u003e receiver and \u003ccode\u003emain activity\u003c/code\u003e, run:\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003etest -f /dev/acca || /data/adb/vr25/acc/service.sh\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eExplanation:\u003c/p\u003e\n\u003cp\u003eACC's working environment must be initialized - i.e., by updating the stock charging config (for restoring without a reboot) and pre-processing data for greater efficiency.\nThis is done exactly once after boot.\nIf it were done only after installation/upgrade, one would have to reinstall/upgrade acc after every kernel update.\nThat's because kernel updates often change the default power supply drivers' settings.\u003c/p\u003e\n\u003cp\u003eSince acc's core executables are dynamic ([expected to] change regularly), those are linked to \u003ccode\u003e/dev/\u003c/code\u003e to preserve the APIs.\nThe links must be recreated once after boot (since \u003ccode\u003e/dev/\u003c/code\u003e is volatile).\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eaccd\u003c/code\u003e is a symbolic link to \u003ccode\u003eservice.sh\u003c/code\u003e.\nIf service.sh is executed every time the \u003ccode\u003emain activity\u003c/code\u003e is launched, accd will be repeatedly restarted for no reason.\nThus, we run \u003ccode\u003etest -f /dev/acca || /data/adb/vr25/acc/service.sh\u003c/code\u003e, as opposed to just \u003ccode\u003e/data/adb/vr25/acc/service.sh\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eNotes\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eThis \"manual\" initialization is only \u003cem\u003estrictly\u003c/em\u003e required for non KernelSU/Magisk installs -- and only once per boot session. In other words, KernelSU and Magisk already run \u003ccode\u003eservice.sh\u003c/code\u003e shortly after boot.\u003c/li\u003e\n\u003cli\u003eACC's installer always initializes it.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eManaging ACC\u003c/h3\u003e\u003ca id=\"user-content-managing-acc\" class=\"anchor\" aria-label=\"Permalink: Managing ACC\" href=\"#managing-acc\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eAs already stated, front-ends shall use the executable \u003ccode\u003e/dev/acca\u003c/code\u003e.\nRefer to the \u003ca href=\"#default-configuration\"\u003edefault configuration\u003c/a\u003e and \u003ca href=\"#terminal-commands\"\u003eterminal commands\u003c/a\u003e sections above.\u003c/p\u003e\n\u003cp\u003eThe default config reference has a section entitled \"aliases\".\nUse ONLY those with \u003ccode\u003e/dev/acca --set\u003c/code\u003e!\ni.e., \u003ccode\u003e/dev/acca --set chargingSwitch=...\u003c/code\u003e is not supported!\nUse either \u003ccode\u003es\u003c/code\u003e or \u003ccode\u003echarging_switch\u003c/code\u003e.\n\u003ccode\u003echargingSwitch\u003c/code\u003e and all the other \"camelcase\" style variables are for internal use only (i.e., private APIs).\u003c/p\u003e\n\u003cp\u003eDo not parse the config file directly.\nUse \u003ccode\u003e--set --print ['regex']\u003c/code\u003e and \u003ccode\u003e--set --print-default ['regex']\u003c/code\u003e.\nRefer back to \u003ca href=\"#terminal-commands\"\u003eterminal commands\u003c/a\u003e for details.\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eTROUBLESHOOTING\u003c/h2\u003e\u003ca id=\"user-content-troubleshooting\" class=\"anchor\" aria-label=\"Permalink: TROUBLESHOOTING\" href=\"#troubleshooting\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eacc -t Results Are Inconsistent\u003c/h3\u003e\u003ca id=\"user-content-acc--t-results-are-inconsistent\" class=\"anchor\" aria-label=\"Permalink: acc -t Results Are Inconsistent\" href=\"#acc--t-results-are-inconsistent\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eRefer to \"default config \u0026gt; batt_status_workaround\".\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eCharging Switch\u003c/h3\u003e\u003ca id=\"user-content-charging-switch\" class=\"anchor\" aria-label=\"Permalink: Charging Switch\" href=\"#charging-switch\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eBy default, ACC uses whichever \u003ca href=\"https://github.com/VR-25/acc/blob/dev/install/ctrl-files.sh\"\u003echarging switch\u003c/a\u003e works (\"automatic\" mode).\nHowever, things don't always go well.\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eSome switches are unreliable under certain conditions (e.g., while the screen is off).\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eOthers hold a \u003ca href=\"https://duckduckgo.com/lite/?q=wakelock\" rel=\"nofollow\"\u003ewakelock\u003c/a\u003e.\nThis causes fast battery drain when charging is paused and the device remains plugged.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eCharging keeps being re-enabled by the system, seconds after acc daemon disables it.\nAs a result, the battery eventually charges to 100% capacity, regardless of pause_capacity.\nRefer to config \u0026gt; force_off.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eHigh CPU load (drains battery) was also reported.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eIn the worst case scenario, the battery status is reported as \u003ccode\u003edischarging\u003c/code\u003e, while it's actually \u003ccode\u003echarging\u003c/code\u003e.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eIn such situations, one has to enforce a switch that works as expected.\nHere's how to do it:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eRun \u003ccode\u003eacc -t\u003c/code\u003e to see which switches work.\u003c/li\u003e\n\u003cli\u003eRun \u003ccode\u003eacc -ss\u003c/code\u003e to enforce a working switch.\u003c/li\u003e\n\u003cli\u003eTest the reliability of the set switch. If it doesn't work properly, try another.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eSince not everyone is tech savvy, ACC daemon automatically applies settings for certain devices for greater compatibility.\nThese are in \u003ccode\u003eacc/oem-custom.sh\u003c/code\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eCustom Max Charging Voltage And Current Limits\u003c/h3\u003e\u003ca id=\"user-content-custom-max-charging-voltage-and-current-limits\" class=\"anchor\" aria-label=\"Permalink: Custom Max Charging Voltage And Current Limits\" href=\"#custom-max-charging-voltage-and-current-limits\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eUnfortunately, not all kernels support these features.\nWhile custom current limits are supported by most (at least to some degree), voltage tweaking support is \u003cem\u003eexceptionally\u003c/em\u003e rare.\u003c/p\u003e\n\u003cp\u003eThat said, the existence of potential voltage/current control file doesn't necessarily mean these are writable* or the features, supported.\u003c/p\u003e\n\u003cp\u003e* Root is not enough.\nKernel level permissions forbid write access to certain interfaces.\u003c/p\u003e\n\u003cp\u003eSometimes, restoring the default current may not work without a system reboot.\nA workaround is setting the default max current value or any arbitrary high number (e.g., 9000 mA).\nDon't worry about frying things.\nThe device will only draw the max it can take.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eWARNING\u003c/strong\u003e: limiting voltage causes battery state of charge (SoC) deviation on some devices.\nThe  battery management system self-calibrates constantly, though.\nThus, as soon as the default voltage limit is restored, it'll start \"fixing\" itself.\u003c/p\u003e\n\u003cp\u003eLimiting current, on the other hand, has been found to be universally safe.\nSome devices do not support just any current value, though.\nThat's not to say out-of-range values cause issues.\nThese are simply ignored.\u003c/p\u003e\n\u003cp\u003eIf low current values don't work, try setting \u003ccode\u003ecurrent_workaround=true\u003c/code\u003e.\nRefer to the \u003ca href=\"#default-configuration\"\u003edefault configuration\u003c/a\u003e section for details.\u003c/p\u003e\n\u003cp\u003eOne can override the default lists of max charging current/voltage control files by copying \u003ccode\u003eacc/ctrl-files.sh\u003c/code\u003e to \u003ccode\u003e/data/adb/vr25/acc-data/plugins/\u003c/code\u003e and modifying it accordingly.\nNote that default limits must be restored prior to that to avoid the need for a system reboot.\nReminder: A daemon restart is required to load new/modified plugins.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eDiagnostics/Logs\u003c/h3\u003e\u003ca id=\"user-content-diagnosticslogs\" class=\"anchor\" aria-label=\"Permalink: Diagnostics/Logs\" href=\"#diagnosticslogs\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eVolatile logs (gone on reboot) are stored in \u003ccode\u003e/dev/.vr25/acc/\u003c/code\u003e (\u003ccode\u003e.log\u003c/code\u003e files only).\nPersistent logs reside in \u003ccode\u003e/data/adb/vr25/acc-data/logs/\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eacc -le\u003c/code\u003e exports all acc logs, plus Magisk's and extras to \u003ccode\u003e/data/adb/acc-data/logs/acc-$device_codename.tgz\u003c/code\u003e.\nThe logs do not contain any personal information and are never automatically sent to the developer.\nAutomatic exporting (local) happens under specific conditions (refer back to \u003ccode\u003eSETUP/USAGE \u0026gt; Terminal Commands \u0026gt; Exit Codes\u003c/code\u003e).\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eInstall, Upgrade, Stop and Restart Processes Seem to Take Too Long\u003c/h3\u003e\u003ca id=\"user-content-install-upgrade-stop-and-restart-processes-seem-to-take-too-long\" class=\"anchor\" aria-label=\"Permalink: Install, Upgrade, Stop and Restart Processes Seem to Take Too Long\" href=\"#install-upgrade-stop-and-restart-processes-seem-to-take-too-long\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eThe daemon stop process implies complete reversal of changes made to the charging management system.\nSometimes, \u003cstrong\u003ethis requires the charger to be plugged\u003c/strong\u003e.\nThat's because some devices have kernel bugs and/or bad charging driver implementations.\nThat said, accd is always stopped \u003cem\u003egracefully\u003c/em\u003e to ensure the restoration takes place.\nOne who knows what they're doing, can force-stop accd by running \u003ccode\u003epkill -9 -f accd\u003c/code\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eKernel Panic and Spontaneous Reboots\u003c/h3\u003e\u003ca id=\"user-content-kernel-panic-and-spontaneous-reboots\" class=\"anchor\" aria-label=\"Permalink: Kernel Panic and Spontaneous Reboots\" href=\"#kernel-panic-and-spontaneous-reboots\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eControl files that trigger these are automatically backlisted (commented out in \u003ccode\u003e/data/adb/acc-data/logs/write.log\u003c/code\u003e).\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eRestore Default Config\u003c/h3\u003e\u003ca id=\"user-content-restore-default-config\" class=\"anchor\" aria-label=\"Permalink: Restore Default Config\" href=\"#restore-default-config\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eThis can potentially save a lot of time and grief.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eacc --set --reset\u003c/code\u003e, \u003ccode\u003eacc -sr\u003c/code\u003e or \u003ccode\u003erm /data/adb/vr25/acc-data/config.txt\u003c/code\u003e (failsafe)\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eSamsung, Charging \u003cem\u003eAlways\u003c/em\u003e Stops at 70% Capacity\u003c/h3\u003e\u003ca id=\"user-content-samsung-charging-always-stops-at-70-capacity\" class=\"anchor\" aria-label=\"Permalink: Samsung, Charging Always Stops at 70% Capacity\" href=\"#samsung-charging-always-stops-at-70-capacity\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eThis is a device-specific issue (by design?).\nIt's caused by the \u003cem\u003estore_mode\u003c/em\u003e charging control file.\nSwitch to \u003cem\u003ebatt_slate_mode\u003c/em\u003e to prevent it.\nRefer back to \u003ca href=\"#charging-switch\"\u003echarging switch\u003c/a\u003e above for details on that.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eSlow Charging\u003c/h3\u003e\u003ca id=\"user-content-slow-charging\" class=\"anchor\" aria-label=\"Permalink: Slow Charging\" href=\"#slow-charging\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eAt least one of the following may be the cause:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eCharging current and/or voltage limits\u003c/li\u003e\n\u003cli\u003eCooldown cycle (non optimal charge/pause ratio, try 50/10 or 50/5)\u003c/li\u003e\n\u003cli\u003eTroublesome charging switch (refer back to \u003ccode\u003eTROUBLESHOOTING \u0026gt; Charging Switch\u003c/code\u003e)\u003c/li\u003e\n\u003cli\u003eWeak adapter and/or power cord\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eUnable to Charge\u003c/h3\u003e\u003ca id=\"user-content-unable-to-charge\" class=\"anchor\" aria-label=\"Permalink: Unable to Charge\" href=\"#unable-to-charge\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eRefer back to the \u003ca href=\"#warnings\"\u003ewarnings\u003c/a\u003e section above.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eUnexpected Reboots\u003c/h3\u003e\u003ca id=\"user-content-unexpected-reboots\" class=\"anchor\" aria-label=\"Permalink: Unexpected Reboots\" href=\"#unexpected-reboots\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eWrong/troublesome charging control files may trigger unwanted reboots.\nACC blacklist [some of] these automatically (registered in \u003ccode\u003e/data/adb/vr25/acc-data/logs/write.log\u003c/code\u003e, with a leading hashtag).\nSometimes, there may be false positives in there - i.e., due to unexpected reboots caused by something else. Thus, if a control file that used to work, suddenly does not, see if it was blacklisted (\u003ccode\u003eacc -t\u003c/code\u003e also reveals blacklisted switches).\nSend \u003ccode\u003ewrite.log\u003c/code\u003e to the developer once the reboots have stopped.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eWARP, VOOC and Other Fast Charging Tech\u003c/h3\u003e\u003ca id=\"user-content-warp-vooc-and-other-fast-charging-tech\" class=\"anchor\" aria-label=\"Permalink: WARP, VOOC and Other Fast Charging Tech\" href=\"#warp-vooc-and-other-fast-charging-tech\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eCharging switches may not work reliably with the original power adapter.\nThis has nothing to do with acc.\nIt's bad design by the OEMs themselves.\nIf you face issues, either try a different charging switch or a regular power brick (a.k.a., slow charger).\nYou may also want to try stopping charging by limiting current/voltage.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eWhy Did accd Stop?\u003c/h3\u003e\u003ca id=\"user-content-why-did-accd-stop\" class=\"anchor\" aria-label=\"Permalink: Why Did accd Stop?\" href=\"#why-did-accd-stop\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eRun \u003ccode\u003eacc -l tail\u003c/code\u003e to find out.\nThis will print the last 10 lines of the daemon log file.\u003c/p\u003e\n\u003cp\u003eA relatively common exit code is \u003ccode\u003e7\u003c/code\u003e - meaning all charging switches failed to disable charging.\nIt usually happens due to kernel issues (refer to the previous subsection - \u003ca href=\"#charging-switch\"\u003echarging switch\u003c/a\u003e).\nThe daemon only stops due to this if acc is set to automatically determine the switches to use (default behavior).\nManually setting a working switch with \u003ccode\u003eacc -ss\u003c/code\u003e or \u003ccode\u003eacc -s s=\"SWITCHES GO HERE --\"\u003c/code\u003e disables auto mode and prevents accd from stopping if the set the charging switches fail.\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003ePOWER SUPPLY LOGS (HELP NEEDED)\u003c/h2\u003e\u003ca id=\"user-content-power-supply-logs-help-needed\" class=\"anchor\" aria-label=\"Permalink: POWER SUPPLY LOGS (HELP NEEDED)\" href=\"#power-supply-logs-help-needed\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003ePlease run \u003ccode\u003eacc -le\u003c/code\u003e and upload \u003ccode\u003e/data/adb/vr25/acc-data/logs/power_supply-*.log\u003c/code\u003e to \u003ca href=\"https://www.dropbox.com/request/WYVDyCc0GkKQ8U5mLNlH\" rel=\"nofollow\"\u003emy dropbox\u003c/a\u003e (no account/sign-up required).\nThis file contains invaluable power supply information, such as battery details and available charging control files.\nA public database is being built for mutual benefit.\nYour cooperation is greatly appreciated.\u003c/p\u003e\n\u003cp\u003ePrivacy Notes\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eName: random/fake\u003c/li\u003e\n\u003cli\u003eEmail: random/fake\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eSee current submissions \u003ca href=\"https://www.dropbox.com/sh/rolzxvqxtdkfvfa/AABceZM3BBUHUykBqOW-0DYIa?dl=0\" rel=\"nofollow\"\u003ehere\u003c/a\u003e.\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eLOCALIZATION\u003c/h2\u003e\u003ca id=\"user-content-localization\" class=\"anchor\" aria-label=\"Permalink: LOCALIZATION\" href=\"#localization\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eCurrently Supported Languages and Translation Levels (default, full, good, fair, minimal)\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eChinese, simplified (zh-rCN): minimal\u003c/li\u003e\n\u003cli\u003eChinese, traditional (zh-rTW): minimal\u003c/li\u003e\n\u003cli\u003eEnglish (en): default\u003c/li\u003e\n\u003cli\u003eFrench (fr): good\u003c/li\u003e\n\u003cli\u003eGerman (de_DE): fair\u003c/li\u003e\n\u003cli\u003eIndonesia (id): minimal\u003c/li\u003e\n\u003cli\u003ePortuguese, Portugal (pt-PT): minimal\u003c/li\u003e\n\u003cli\u003eTurkish (tr): good\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eTranslation Notes\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eStart with copies of \u003ca href=\"https://github.com/VR-25/acc/blob/dev/install/strings.sh\"\u003eacc/strings.sh\u003c/a\u003e and, optionally, \u003ca href=\"https://github.com/VR-25/acc/blob/dev/README.md\"\u003eREADME.md\u003c/a\u003e.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eModify the header of strings.sh to reflect the translation (e.g., # Español (es)).\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAnyone is free and encouraged to open translation \u003ca href=\"https://duckduckgo.com/lite/?q=pull+request\" rel=\"nofollow\"\u003epull requests\u003c/a\u003e.\nAlternatively, a \u003cem\u003ecompressed\u003c/em\u003e archive of translated \u003ccode\u003estrings.sh\u003c/code\u003e and \u003ccode\u003eREADME.md\u003c/code\u003e files can be sent to the developer via Telegram (link below).\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eUse \u003ccode\u003eacc -sl\u003c/code\u003e (--set --lang): language switching wizard or \u003ccode\u003eacc -s l=\u0026lt;lang_string\u0026gt;\u003c/code\u003e to set a language.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eTIPS\u003c/h2\u003e\u003ca id=\"user-content-tips\" class=\"anchor\" aria-label=\"Permalink: TIPS\" href=\"#tips\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003e\n\u003cem\u003eAlways\u003c/em\u003e Limit the Charging Current If Your Battery is Old and/or Tends to Discharge Too Fast\u003c/h3\u003e\u003ca id=\"user-content-always-limit-the-charging-current-if-your-battery-is-old-andor-tends-to-discharge-too-fast\" class=\"anchor\" aria-label=\"Permalink: Always Limit the Charging Current If Your Battery is Old and/or Tends to Discharge Too Fast\" href=\"#always-limit-the-charging-current-if-your-battery-is-old-andor-tends-to-discharge-too-fast\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eThis extends the battery's lifespan and may even \u003cem\u003ereduce\u003c/em\u003e its discharge rate.\u003c/p\u003e\n\u003cp\u003e750-1000mA is a good range for regular use.\u003c/p\u003e\n\u003cp\u003e500mA is a comfortable minimum - and also very compatible.\u003c/p\u003e\n\u003cp\u003eIf your device does not support custom current limits, use a dedicated (\"slow\") power adapter.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eGeneric\u003c/h3\u003e\u003ca id=\"user-content-generic\" class=\"anchor\" aria-label=\"Permalink: Generic\" href=\"#generic\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eForce fast charge: \u003ccode\u003eappy_on_boot=\"/sys/kernel/fast_charge/force_fast_charge::1::0 usb/boost_current::1::0 charger/boost_current::1::0\"\u003c/code\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eGoogle Pixel Devices\u003c/h3\u003e\u003ca id=\"user-content-google-pixel-devices\" class=\"anchor\" aria-label=\"Permalink: Google Pixel Devices\" href=\"#google-pixel-devices\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eForce fast wireless charging with third party wireless chargers that are supposed to charge the battery faster: \u003ccode\u003eapply_on_plug=wireless/voltage_max::9000000\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThis may not work on all Pixel devices.\nThere are no negative consequences when it doesn't.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eExport/import Config\u003c/h3\u003e\u003ca id=\"user-content-exportimport-config\" class=\"anchor\" aria-label=\"Permalink: Export/import Config\" href=\"#exportimport-config\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eExport: \u003ccode\u003eacc -s \u0026gt; /sdcard/Download/config.txt\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eImport: \u003ccode\u003eacc -s /sdcard/Download/config.txt\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003ePartial import is supported - meaning, users can share just a portion of the config (e.g., \u003ccode\u003eacc -sp curr,volt \u0026gt; file\u003c/code\u003e); whoever imports this, gets just those changes.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eOverride Battery mAh Capacity\u003c/h3\u003e\u003ca id=\"user-content-override-battery-mah-capacity\" class=\"anchor\" aria-label=\"Permalink: Override Battery mAh Capacity\" href=\"#override-battery-mah-capacity\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eAn \"extended\" battery won't charge fully if the kernel still has the stock \u003ccode\u003echarge_full_design\u003c/code\u003e value.\nSome devices allow that to be modified. If that's the case for you, use \u003ccode\u003eapply_on_boot\u003c/code\u003e to set the desired value(s) in \u003ccode\u003e/sys/class/power_supply/*/charge_full_design\u003c/code\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch3 class=\"heading-element\"\u003eOverride Broken Temperature Sensor\u003c/h3\u003e\u003ca id=\"user-content-override-broken-temperature-sensor\" class=\"anchor\" aria-label=\"Permalink: Override Broken Temperature Sensor\" href=\"#override-broken-temperature-sensor\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp\u003eIf your battery's thermistor always reports a negative value, and charging is very slow or even off, see if the following helps (paste and run):\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eacc -c d temp_cool; acc -c a ':; for i in */temp_cool */temp_cold; do [ -f $i ] || continue; chown 0:0 $i \u0026amp;\u0026amp; chmod 0644 $i \u0026amp;\u0026amp; echo \"-999\" \u0026gt; $i \u0026amp;\u0026amp; chown 0444 $i || :; done'\u003c/code\u003e\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eFREQUENTLY ASKED QUESTIONS (FAQ)\u003c/h2\u003e\u003ca id=\"user-content-frequently-asked-questions-faq\" class=\"anchor\" aria-label=\"Permalink: FREQUENTLY ASKED QUESTIONS (FAQ)\" href=\"#frequently-asked-questions-faq\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cblockquote\u003e\n\u003cp\u003eHow do I report issues?\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eOpen issues on GitHub or contact the developer on Telegram (preferred) or XDA (links below).\nAlways provide as much information as possible.\nAttach \u003ccode\u003e/sdcard/Download/acc-logs-*.tgz\u003c/code\u003e - generated by \u003ccode\u003eacc -le\u003c/code\u003e \u003cem\u003eright after\u003c/em\u003e the problem occurs.\nRefer back to \u003ccode\u003eTROUBLESHOOTING \u0026gt; Diagnostics/Logs\u003c/code\u003e for additional details.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eWhy won't you support my device? I've been waiting for ages!\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eFirstly, have some extra patience!\nSecondly, several systems don't have intuitive charging control files; I have to dig deeper - and oftentimes, improvise; this takes time and effort.\nLastly, some systems don't support custom charging control at all;  in such cases, you have to keep trying different kernels and uploading the respective power supply logs.\nRefer back to \u003ccode\u003ePOWER SUPPLY LOGS (HELP NEEDED)\u003c/code\u003e.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eWhy, when and how should I calibrate the battery manager?\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eWith modern battery management systems, that's generally unnecessary.\u003c/p\u003e\n\u003cp\u003eHowever, if your battery is underperforming, you may want to try the procedure described at \u003ca href=\"https://batteryuniversity.com/article/bu-603-how-to-calibrate-a-smart-battery\" rel=\"nofollow\"\u003ehttps://batteryuniversity.com/article/bu-603-how-to-calibrate-a-smart-battery\u003c/a\u003e .\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eI set voltage to 4080 mV and that corresponds to just about 75% charge.\nBut is it typically safer to let charging keep running, or to have the circuits turn on and shut off between defined percentage levels repeatedly?\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eIt's not much about which method is safer.\nIt's specifically about electron stability: optimizing the pressure (voltage) and current flow.\u003c/p\u003e\n\u003cp\u003eAs long as you don't set a voltage limit higher than 4200 mV, and don't leave the device plugged in for extended periods of time, you're good with that limitation alone.\nOtherwise, the other option is actually more beneficial - since it mitigates high pressure (voltage) exposure/time to a greater extent.\nIf you use both, simultaneously - you get the best of both worlds.\nOn top of that, if you enable the cooldown cycle, it'll give you even more benefits.\u003c/p\u003e\n\u003cp\u003eEver wondered why lithium ion batteries aren't sold fully charged? They're usually ~40-60% charged. Why is that?\nKeeping a battery fully drained, almost fully drained or 70%+ charged for a long times, leads to significant (permanent) capacity loss\u003c/p\u003e\n\u003cp\u003ePutting it all together in practice...\u003c/p\u003e\n\u003cp\u003eNight/heavy-duty/forever-plugged profile: keep capacity within 40-60% (e.g., acc 50 45) and/or voltage around ~3900 mV\u003c/p\u003e\n\u003cp\u003eDay/regular profile: max capacity: 75-80% and/or voltage no higher than 4100 mV\u003c/p\u003e\n\u003cp\u003eTravel profile: capacity up to 95% and/or voltage no higher than 4200 mV\u003c/p\u003e\n\u003cp\u003e* \u003ca href=\"https://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries/\" rel=\"nofollow\"\u003ehttps://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries/\u003c/a\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eI don't really understand what the \"-f|--force|--full [capacity]\" is meant for.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eConsider the following situation:\u003c/p\u003e\n\u003cp\u003eYou're almost late for an important event.\nYou recall that I stole your power bank and sold it on Ebay.\nYou need your device and a good battery backup.\nThe event will take the whole day and you won't have access to an external power supply in the middle of nowhere.\nYou need your battery charged fast and as much as possible.\nHowever, you don't want to modify ACC config nor manually stop/restart the daemon.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eDo I have to install/upgrade both ACC and AccA?\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eTo really get out of this dilemma, you have to understand what ACC and AccA essentially are.\u003c/p\u003e\n\u003cp\u003eACC is a Android program that controls charging.\nIt can be installed as an app (e.g., AccA) module, Magisk module or standalone software. Its installer determines the installation path/variant. The user is given the power to override that.\u003c/p\u003e\n\u003cp\u003eA plain text file holds the program's configuration. It can be edited with any root text editor.\nACC has a command line interface (CLI) - which in essence is a set of Application Programing Interfaces (APIs). The main purpose of a CLI/API is making difficult tasks ordinary.\u003c/p\u003e\n\u003cp\u003eAccA is a graphical user interface (GUI) for the ACC command line. The main purpose of a GUI is making ordinary tasks simpler.\nAccA ships with a version of ACC that is automatically installed when the app is first launched.\u003c/p\u003e\n\u003cp\u003eThat said, it should be pretty obvious that ACC is like a fully autonomous car that also happens to have a steering wheel and other controls for a regular driver to hit a tree.\nThink of AccA as a robotic driver that often prefers hitting people over trees.\nDue to extenuating circumstances, that robot may not be upgraded as frequently as the car.\nUpgrading the car regularly makes the driver happier - even though I doubt it has any emotion to speak of.\nThe back-end can be upgraded by flashing the latest ACC zip.\nHowever, unless you have a good reason to do so, don't fix what's not broken.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eDoes acc work also when Android is off?\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eNo, but this possibility is being explored.\nCurrently, it does work in recovery mode, though.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eI have this wakelock as soon as charging is disabled. How do I deal with it?\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eThe best solution is enforcing a charging switch that doesn't trigger a wakelock.\nRefer back to \u003ccode\u003eTROUBLESHOOTING \u0026gt; Charging Switch\u003c/code\u003e.\nA common workaround is having \u003ccode\u003eresume_capacity = pause_capacity - 1\u003c/code\u003e. e.g., resume_capacity=74, pause_capacity=75.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eWhat's idle mode, and how do I set it up?\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eIt's the ability of running off the charger.\nThe battery behaves as if it were physically disconnected from the device.\nThe primary indicator of idle mode is charging current around 0 mA. One can customize idleThreshold (absolute value).\u003c/p\u003e\n\u003cp\u003eIdle mode is great for extended device use (e.g., GPS navigation, gaming, server). Use it when the charger must be plugged for a long time (or permanently).\u003c/p\u003e\n\u003cp\u003eIMPORTANT: lithium batteries have the longest lifespan when kept about 40-60% charged (about 3.7-3.9ish Volts). That said, try not to use idle mode above 60% too often.\u003c/p\u003e\n\u003cp\u003eNot all devices support the \"native\" idle mode. Hence, variants of \"emulated\" idle mode are available:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eLimit the charging voltage (requires kernel support) to a value that gets you close to the desired battery level. To avoid false positives, determine the value only after the device has been unplugged for a minute or so.\u003c/li\u003e\n\u003cli\u003ePause/resume charging based on voltage thresholds (e.g., acc 3900 keeps voltage within 3850 and 3900 millivolts).\u003c/li\u003e\n\u003cli\u003eSet resume_capacity to (pause_capacity - 1), e.g., acc 50 49.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eNotes\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eIn idle mode, the battery does discharge, although very slowly. The same happens to a battery that is sitting on a shelf.\u003c/li\u003e\n\u003cli\u003eIn emulated idle mode, the battery tends to hold its charge, since it works as a \"passthrough\" device. Imagine pouring water into a glass that is already full.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cblockquote\u003e\n\u003cp\u003eHow do I enable \"smart charging\"?\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eConfigure day and night profiles:\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eacc -c a \": day profile; at 6:00 \\\"acc -s pc=75 mcc= mcv=4100; acc -n 'Switched to day profile'\\\"\"; acc -c a \": night profile; at 22:00 \\\"acc -s pc=50 mcc=500 mcv=3900; acc -n 'Switched to night profile'\\\"\"\u003c/code\u003e\u003c/p\u003e\n\u003chr\u003e\n\u003cdiv class=\"markdown-heading\"\u003e\u003ch2 class=\"heading-element\"\u003eLINKS\u003c/h2\u003e\u003ca id=\"user-content-links\" class=\"anchor\" aria-label=\"Permalink: LINKS\" href=\"#links\"\u003e\u003cspan aria-hidden=\"true\" class=\"octicon octicon-link\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://enroll.zellepay.com/qr-codes?data=eyJuYW1lIjoiSVZBTkRSTyIsInRva2VuIjoiaXByajI1QGdtYWlsLmNvbSIsImFjdGlvbiI6InBheW1lbnQifQ==\" rel=\"nofollow\"\u003eDonate - Zelle: iprj25 @ gmail . com\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://app.airtm.com/send-or-request/send\" rel=\"nofollow\"\u003eDonate - Airtm, username: ivandro863auzqg\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026amp;business=iprj25@gmail.com\u0026amp;lc=US\u0026amp;item_name=VR25+is+creating+free+and+open+source+software.+Donate+to+suppport+their+work.\u0026amp;no_note=0\u0026amp;cn=\u0026amp;currency_code=USD\u0026amp;bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted\" rel=\"nofollow\"\u003eDonate - Credit/Debit Card\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://liberapay.com/vr25\" rel=\"nofollow\"\u003eDonate - Liberapay\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://patreon.com/vr25\" rel=\"nofollow\"\u003eDonate - Patreon\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://paypal.me/vr25xda\" rel=\"nofollow\"\u003eDonate - PayPal Me\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/MatteCarra/AccA/releases\"\u003eFrontend - ACC App\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/CrazyBoyFeng/AccSettings\"\u003eFrontend - ACC Settings\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries\" rel=\"nofollow\"\u003eMust Read - How to Prolong Lithium Ion Batteries Lifespan\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://t.me/vr25_xda\" rel=\"nofollow\"\u003eTelegram Channel\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://t.me/acc_group\" rel=\"nofollow\"\u003eTelegram Group\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://t.me/vr25xda\" rel=\"nofollow\"\u003eTelegram Profile\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/VR-25/acc\"\u003eUpstream Repository\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003ca href=\"https://forum.xda-developers.com/apps/magisk/module-magic-charging-switch-cs-v2017-9-t3668427\" rel=\"nofollow\"\u003eXDA Thread\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/article\u003e\u003c/body\u003e\u003c/html\u003e","funding_links":["https://patreon.com/VR25","https://liberapay.com/VR25","https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=iprj25@gmail.com\u0026lc=US\u0026item_name=VR25+is+creating+free+and+open+source+software.+Donate+to+suppport+their+work.\u0026no_note=0\u0026cn=\u0026currency_code=USD\u0026bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted","https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026amp;business=iprj25@gmail.com\u0026amp;lc=US\u0026amp;item_name=VR25+is+creating+free+and+open+source+software.+Donate+to+suppport+their+work.\u0026amp;no_note=0\u0026amp;cn=\u0026amp;currency_code=USD\u0026amp;bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted","https://liberapay.com/vr25","https://patreon.com/vr25","https://paypal.me/vr25xda"],"categories":["Shell","🔋 Battery and Power Management"],"sub_categories":["Charging and Power Control"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVR-25%2Facc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVR-25%2Facc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVR-25%2Facc/lists"}