Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
675 changes: 675 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Android CI](https://github.com/almothafar/SimpleBatteryNotifier/workflows/Android%20CI/badge.svg)](https://github.com/almothafar/SimpleBatteryNotifier/actions)
[![Android](https://img.shields.io/badge/Android-8.0%2B%20(API%2026%2B)-green?logo=android)](https://developer.android.com/about/versions/oreo)
[![Java](https://img.shields.io/badge/Java-25-orange?logo=openjdk)](https://openjdk.org/)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](LICENSE.md)

A lightweight Android app to keep you informed about your battery status — without heavy resource usage or unnecessary "power saver" bloat.

Expand Down Expand Up @@ -126,7 +126,13 @@ Before submitting:
---

## 📄 License
Licensed under the Apache License, Version 2.0 - see the [LICENSE](LICENSE) file for details.
Licensed under the **GNU General Public License v3.0** — see the [LICENSE.md](LICENSE.md) file.

This is free, open-source software: you may use, study, modify, and share it, **including commercially**. The one condition is copyleft — if you distribute this app or a derivative of it, you must keep it open source under GPLv3 and make your source code available. Closed-source / proprietary forks are not permitted.

Copyright © 2024–2026 Al-Mothafar Al-Hasan

**Acknowledgements:** the battery gauge (`CircularProgressBar`) is derived from [circular_progress_bar](https://github.com/ylyc/circular_progress_bar) by Leon Cheng, used under the Apache License 2.0 — see [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md).

---

Expand Down
23 changes: 23 additions & 0 deletions THIRD-PARTY-NOTICES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Third-Party Notices

Simple Battery Notifier is licensed under the GNU GPL v3 (see [LICENSE.md](LICENSE.md)).
It includes third-party code that is provided under its own license, listed below.

## circular_progress_bar

- **Source:** https://github.com/ylyc/circular_progress_bar
- **Copyright:** Copyright (C) 2013 Leon Cheng
- **License:** Apache License, Version 2.0 — a full copy is provided in
[`licenses/Apache-2.0.txt`](licenses/Apache-2.0.txt), and is also available at
http://www.apache.org/licenses/LICENSE-2.0

The file
`app/src/main/java/com/almothafar/simplebatterynotifier/ui/widget/CircularProgressBar.java`
is **derived from** this project and has been **modified** (it extends `ProgressBar`
with a 270° gauge, adds the `cpb_*` styleable, auto-fitting title/subtitle, and a
pulse/glow animation, among other changes).

The Apache License 2.0 is compatible with the GNU GPL v3. As permitted by that
license, the derived file and the combined work are distributed under the GNU GPL v3,
while the original portions remain subject to the Apache 2.0 copyright and notice
above.
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
/*
* Copyright 2015 Al-Mothafar Al-Hasan
* Simple Battery Notifier
* Copyright (C) 2015-2026 Al-Mothafar Al-Hasan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* This file is derived from "circular_progress_bar" by Leon Cheng
* (https://github.com/ylyc/circular_progress_bar), Copyright (C) 2013 Leon Cheng,
* originally licensed under the Apache License, Version 2.0. This file has been
* modified from the original (extends ProgressBar with a 270-degree gauge, the
* cpb_* styleable, auto-fitting title/subtitle, pulse/glow animation, and more).
*
* http://www.apache.org/licenses/LICENSE-2.0
* The Apache-2.0-licensed original is used in compliance with that license; a
* copy of the Apache License 2.0 is provided in licenses/Apache-2.0.txt and the
* attribution is recorded in THIRD-PARTY-NOTICES.md. Apache 2.0 is compatible
* with the GNU GPL v3, so the modifications and the combined work are licensed
* under the GNU GPL v3 (see the project LICENSE.md).
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package com.almothafar.simplebatterynotifier.ui.widget;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
<string name="about_description">تطبيق خفيف يُبقيك على اطّلاع على حالة بطاريتك — تنبيهات عند المستويين التحذيري والحرج، وإشعارات اكتمال الشحن وارتفاع الحرارة، وسرعة الشحن، ومعلومات عن صحة البطارية. بلا حشو ولا حيل «توفير طاقة» — مجرّد تنبيهات بطارية بسيطة.</string>
<!-- %1$s is the developer name -->
<string name="about_developer">طوّره %1$s</string>
<string name="about_open_source">برنامج حر ومفتوح المصدر، مرخَّص بموجب رخصة Apache 2.0.</string>
<string name="about_open_source">برنامج حر ومفتوح المصدر، مرخَّص بموجب رخصة جنو العمومية العامة الإصدار 3.</string>
<string name="about_disclaimer">قراءات البطارية وأرقام الصحة والشحن مصدرها جهازك وهي تقديرية — اعتبرها إرشادية لا قياسات دقيقة. يُقدَّم هذا التطبيق «كما هو» دون أي ضمان من أي نوع.</string>
<string name="about_view_github">عرض على GitHub</string>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
<string name="about_description">A lightweight app that keeps you informed about your battery — alerts at warning and critical levels, full-charge and high-temperature notifications, charging speed, and battery health insights. No bloat, no “power saver” gimmicks — just simple battery notifications.</string>
<!-- %1$s is the developer name -->
<string name="about_developer">Developed by %1$s</string>
<string name="about_open_source">Free and open-source software, licensed under the Apache License 2.0.</string>
<string name="about_open_source">Free and open-source software, licensed under the GNU General Public License v3.0.</string>
<string name="about_disclaimer">Battery readings, health and charging figures come from your device and are estimates — treat them as guidance, not exact measurements. This app is provided “as is”, without warranty of any kind.</string>
<string name="about_view_github">View on GitHub</string>
<string name="about_github_url" translatable="false">https://github.com/almothafar/SimpleBatteryNotifier</string>
Expand Down
5 changes: 3 additions & 2 deletions LICENSE → licenses/Apache-2.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Extended Support. While redistributing
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
Expand All @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024-2025 SimpleBatteryNotifier Contributors
Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -199,3 +199,4 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.