案例:BatteryTruth 點樣喺冇網絡權限之下讀到真實電池健康度
簡單答:BatteryTruth 電池真相直接讀 Android 開放俾所有 App、唔使特別權限嘅電池資料,用硬件電量計嘅數據計出真實滿電容量同健康度,再同你部手機設定顯示嘅數字擺埋一齊對照。成個計算喺手機本機完成,所以 App 根本唔需要網絡;我哋亦刻意冇申請網絡權限,技術上冇辦法將任何資料傳出去。BatteryTruth 係 MuduoPro 自己開發、已上架 Google Play 嘅 App。
要解決嘅問題
手機設定顯示嘅電池健康度,同真實情況可以差成十幾個百分點,但冇人話你知邊個先啱。想知電池係咪要換,或者買二手機想知電池狀況,都需要一個可以獨立核對嘅數字。
點樣做
- 讀電池資料:Android 嘅
BatteryManager開放咗電量、電荷計數、電壓、溫度、電流等資料。根據 Android 官方文件,電荷計數(charge counter)以微安時(µAh)表示電池容量。 - 推算滿電容量:結合電荷計數同當時電量百分比,推算電池而家充滿可以裝幾多電。
- 計健康度:將推算出嘅滿電容量同電池設計容量比較。設計容量可以由用戶輸入,App 亦會按裝置型號建議。
- 對照:將計出嚟嘅健康度,同用戶輸入嘅手機設定顯示數字擺埋一齊,一眼睇到差幾多。
- 記錄趨勢:讀數可以儲存喺手機,睇住電池健康度隨時間點變。
點解刻意唔要網絡
計算本身唔需要上網,所以我哋索性唔申請網絡權限:冇分析工具、冇當機回報、冇廣告、冇會傳送資料嘅第三方 SDK。所有讀數同設定只存喺 App 嘅私有空間,解除安裝就一併刪除,用戶亦可以隨時清除歷史紀錄。
唯一同網絡有關嘅地方,係設定頁一個「上網查詢本機容量」嘅按鈕:撳落去只係將搜尋字串交俾用戶自己嘅瀏覽器,App 本身睇唔到結果。
對用戶嚟講,「資料唔離開你部機」唔係將就,而係賣點:檢查電池嘅工具,冇理由要知你係邊個。
呢個案例教咗我哋咩
- 先問:真係需要呢啲資料?功能唔需要就唔好收集。唔收集,就唔使處理儲存、保安同私隱政策入面嘅一大堆責任。
- 權限越少越好:BatteryTruth 如果用戶唔開常駐通知,就唔會要求任何執行時權限。用戶睇到權限少,自然更放心。
- 私隱政策要寫得明:講清楚讀咩、存咩、傳咩,用戶同上架審核都睇得明。
- 用官方開放嘅資料:唔靠特別權限或者取巧方法,App 更穩定,亦唔怕被平台限制。
想知公司 App 或者系統處理個人資料要留意咩,可以睇《用 AI 處理公司資料安唔安全?》;另外兩個自家產品案例,可以睇《AceSpeller 點樣將默書表相片變成練習》同《我哋點樣用共享快取將 AI 語音成本壓到最低》。
自己做最常卡喺邊?
- 唔知 App 實際需要邊啲權限,結果申請太多,用戶唔敢裝
- 唔同牌子手機回傳嘅數據格式唔同,要逐款測試
- 私隱政策唔知點寫,上架審核一直卡住
- 想加分析或者廣告 SDK,但唔清楚佢哋會傳送咩資料
以上任何一樣卡住咗,都可以搵我哋。簽約前免費諮詢,我哋會直接話你知要做乜、大概幾錢。
我哋可以點幫你
BatteryTruth 同 AceSpeller 都係我哋由設計、開發、上架到更新一手做。MuduoPro 嘅手機 App 開發:可撳原型 HK$5,000 起(約 1 星期)、標準 App HK$30,000 起(約 6–8 星期,iPhone 同 Android,包上架同 1 個月修正支援)、進階 App HK$60,000 起;原始碼同開發者帳戶屬於你。想了解兩個 App,可以去產品頁。所有套餐可以睇套餐同價錢,或者直接同我哋傾一次,簽約前免費諮詢。
資料來源(截至 2026 年 11 月):Android Developers《BatteryManager》;BatteryTruth 《私隱政策》。
Case study: how BatteryTruth reads true battery health without any network permission
The short answer: BatteryTruth reads battery information that Android makes available to every app with no special permission, uses the hardware fuel gauge data to work out true full-charge capacity and health, and puts it side by side with the figure shown in your phone's settings. All the calculation happens on the phone, so the app does not need a network at all; we deliberately did not request network permission, so it is technically incapable of sending anything anywhere. BatteryTruth is an app MuduoPro built itself and has published on Google Play.
The problem
The battery health figure in phone settings can be more than ten points off reality, and nothing tells you which one to trust. Whether you are deciding if a battery needs replacing or checking a second-hand phone, you need a figure you can check independently.
How it works
- Read battery data: Android's
BatteryManagerexposes charge level, charge counter, voltage, temperature, current and more. According to Android's documentation, the charge counter gives battery capacity in microampere-hours (µAh). - Estimate full capacity: combine the charge counter with the current charge percentage to estimate how much the battery holds when full.
- Calculate health: compare that estimated full capacity with the battery's design capacity. Users can enter the design capacity, and the app suggests one based on the device model.
- Compare: show the calculated health next to the figure the user's phone settings report, so the gap is obvious at a glance.
- Track over time: readings can be saved on the phone to see how battery health changes.
Why we deliberately left out the network
The calculation does not need the internet, so we simply did not request network permission: no analytics, no crash reporting, no advertising, no third-party SDKs that send data. All readings and settings stay in the app's private storage and are deleted on uninstall, and users can clear their history at any time.
The only network-related feature is a "look up my model online" button in settings, which simply hands a search query to the user's own browser; the app itself never sees the result.
For users, "your data never leaves your phone" is not a compromise but the selling point: a battery checker has no reason to know who you are.
What this case taught us
- Ask first: do we really need this data? If a feature does not need it, do not collect it. Data you never collect brings no storage, security or privacy-policy obligations.
- Fewer permissions are better: unless users turn on the ongoing notification, BatteryTruth requests no runtime permission at all. Fewer permissions make users more comfortable.
- Write a privacy policy people can read: state clearly what is read, stored and sent, for users and store reviewers alike.
- Use officially exposed data: relying on no special permissions or tricks makes the app more stable and less exposed to platform restrictions.
For what company apps and systems handling personal data should watch, see Is it safe to use AI on company data?. For our other product case studies, see How AceSpeller turns a photo of a dictation list into practice and How a shared cache keeps our AI voice costs down.
Where do people usually get stuck?
- Not knowing which permissions the app really needs, requesting too many, and putting users off installing it
- Different phone brands report data differently, so every model needs testing
- Not knowing how to write the privacy policy, and getting stuck in store review
- Wanting to add analytics or ad SDKs without knowing what data they send
If any of these is where you are stuck, talk to us. Consultation before signing is free, and we will tell you plainly what needs doing and roughly what it costs.
How we can help
We designed, built, published and update both BatteryTruth and AceSpeller ourselves. MuduoPro's mobile app development: clickable prototypes from HK$5,000 (about a week), standard apps from HK$30,000 (about 6–8 weeks, iPhone and Android, including store submission and a month of fixes), advanced apps from HK$60,000; you own the source code and developer accounts. To learn more about both apps, see our products page. See all packages and pricing, or talk to us: consultation before signing is free.
Sources (as of November 2026): Android Developers, BatteryManager; BatteryTruth Privacy Policy.