Skip to content

Commit 4b09213

Browse files
committed
chore: sync with microG unofficial installer
Signed-off-by: ale5000 <15793015+ale5000-git@users.noreply.github.com>
1 parent 3bf6c37 commit 4b09213

13 files changed

Lines changed: 174 additions & 21 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ docs/CODEOWNERS text eol=lf
2424
*.json text eol=lf
2525
*.mjs text eol=lf
2626
*.xml text eol=lf
27+
*.yaml text eol=lf
2728
*.yml text eol=lf
2829
*.dis text eol=lf
2930

.github/workflows/periodic-checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,17 @@ jobs:
4040
codecovyml_path='${{ github.workspace }}/.codecov.yml'
4141
if test -f "${codecovyml_path}"; then
4242
status='0'
43+
# NOSONAR_BEGIN
4344
wget -qO- --post-file "${codecovyml_path:?}" https://codecov.io/validate || status="${?}"
45+
# NOSONAR_END
4446
if test "${status:?}" -eq 0; then echo 'Result: pass'; else echo 'Result: fail'; exit "${status:?}"; fi
4547
fi
4648
codecovyml_path='${{ github.workspace }}/codecov.yml'
4749
if test -f "${codecovyml_path}"; then
4850
status='0'
51+
# NOSONAR_BEGIN
4952
wget -qO- --post-file "${codecovyml_path:?}" https://codecov.io/validate || status="${?}"
53+
# NOSONAR_END
5054
if test "${status:?}" -eq 0; then echo 'Result: pass'; else echo 'Result: fail'; exit "${status:?}"; fi
5155
fi
5256

.github/workflows/scripts-testing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ jobs:
8989
prepare_shell 'busybox' 'bin' 'https://busybox.net/downloads/binaries/1.35.0-x86_64-linux-musl/busybox'
9090
prepare_shell 'busybox-x86' 'bin' 'https://busybox.net/downloads/binaries/1.35.0-i686-linux-musl/busybox'
9191
prepare_shell 'busybox-x86-legacy' 'bin' 'https://busybox.net/downloads/binaries/1.30.0-i686/busybox'
92+
# NOSONAR_BEGIN
9293
prepare_shell 'bosh' 'tar.xz' 'http://fuz.su/pub/schilytools/bin/schily-2024-03-21-x86_64-linux-gcc.tar.xz'
94+
# NOSONAR_END
9395
fi
9496
printf 'cache_is_outdated=%s\n' "${CACHE_IS_OUTDATED:?}" >> "${GITHUB_OUTPUT?}"
9597
- name: "Delete outdated cache"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ user.gradle
4949
/build
5050
/cmdline
5151

52+
/docs/_build/
53+
5254
# Custom project folders
5355
/cache/
5456
/output/

.readthedocs.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# SPDX-FileCopyrightText: NONE
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
# Read the Docs configuration file
6+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
7+
8+
version: 2
9+
10+
# Set the OS, Python version and other tools you might need
11+
build:
12+
os: "ubuntu-lts-latest"
13+
tools:
14+
python: "3"
15+
jobs:
16+
post_install:
17+
- pip install sphinx-rtd-theme
18+
19+
# Build documentation in the "docs/" directory with Sphinx
20+
sphinx:
21+
configuration: "docs/conf.py"
22+
fail_on_warning: true
23+
24+
# Optionally build your docs in additional formats such as PDF and ePub
25+
formats:
26+
- pdf
27+
- htmlzip

README.rst

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ Google sync add-on
88
:Author: `ale5000 <https://github.com/ale5000-git>`_
99
:License: `GPLv3.0 or later <./LICENSE.rst>`_
1010

11-
.. image:: https://api.reuse.software/badge/github.com/micro5k/google-sync-addon
12-
:alt: REUSE status
13-
:target: https://api.reuse.software/info/github.com/micro5k/google-sync-addon
14-
1511
.. image:: https://codecov.io/gh/micro5k/google-sync-addon/branch/main/graph/badge.svg
1612
:alt: Coverage
1713
:target: https://codecov.io/gh/micro5k/google-sync-addon
1814

15+
.. image:: https://api.reuse.software/badge/github.com/micro5k/google-sync-addon
16+
:alt: REUSE status
17+
:target: https://api.reuse.software/info/github.com/micro5k/google-sync-addon
18+
1919

2020
Description
21-
-----------
21+
===========
2222
Google sync add-on is a flashable zip created by ale5000 for a simple installation of Google sync adapters on Android from 4.4 to 16 (excluding Android 6.x).
2323

2424
**IMPORTANT:** In addition to the normal installation as a pure flashable zip, there are plans for the future (but not in the short term) to also support the installation as a *Magisk* module.
@@ -37,33 +37,55 @@ This project is available on GitHub_, on GitLab_ as well as on XDA_.
3737

3838

3939
Download
40-
--------
40+
========
4141
.. image:: https://img.shields.io/github/v/release/micro5k/google-sync-addon.svg?cacheSeconds=3600
4242
:alt: GitHub latest release
4343
:target: `Download`_
4444

4545
`Download instructions <docs/INSTRUCTIONS.rst>`_
4646

4747

48-
Copyright
49-
---------
50-
© 2016-2019, 2021-2026 ale5000
51-
52-
5348
Code analysis
54-
-------------
49+
=============
5550
.. image:: https://github.com/micro5k/google-sync-addon/actions/workflows/code-lint.yml/badge.svg
5651
:alt: Code lint workflow
5752
:target: https://github.com/micro5k/google-sync-addon/actions/workflows/code-lint.yml
5853

59-
.. image:: https://www.codefactor.io/repository/github/micro5k/google-sync-addon/badge
60-
:alt: CodeFactor Badge
61-
:target: https://www.codefactor.io/repository/github/micro5k/google-sync-addon
54+
.. image:: https://sonarcloud.io/api/project_badges/measure?project=micro5k_google-sync-addon&metric=reliability_rating
55+
:alt: SonarQube reliability rating
56+
:target: https://sonarcloud.io/summary/new_code?id=micro5k_google-sync-addon
6257

6358
.. image:: https://app.codacy.com/project/badge/Grade/0a3cd4857c224c59afa38e4cdfeb9486
6459
:alt: Codacy Badge
6560
:target: https://app.codacy.com/gh/micro5k/google-sync-addon/dashboard
6661

67-
.. image:: https://sonarcloud.io/api/project_badges/measure?project=micro5k_google-sync-addon&metric=reliability_rating
68-
:alt: SonarQube reliability rating
69-
:target: https://sonarcloud.io/summary/new_code?id=micro5k_google-sync-addon
62+
.. image:: https://www.codefactor.io/repository/github/micro5k/google-sync-addon/badge
63+
:alt: CodeFactor Badge
64+
:target: https://www.codefactor.io/repository/github/micro5k/google-sync-addon
65+
66+
67+
68+
Contributing
69+
============
70+
If you want to improve the project, please review our `contributing guidelines <docs/CONTRIBUTING.rst>`_.
71+
72+
We are grateful for all our contributors!
73+
74+
Please check the `contributors list <docs/CONTRIBUTORS.md>`_ for more details.
75+
76+
77+
Donations
78+
=========
79+
.. image:: https://img.shields.io/badge/Donate-FFF000?logo=ko-fi&logoSize=auto&logoColor=black&cacheSeconds=21600
80+
:alt: Support this project
81+
:target: ./docs/DONATE.rst
82+
83+
I maintain this project on my own in my spare time.
84+
If it's been helpful to you, please consider supporting its development!
85+
86+
Want to help out? You can find all the details in our `donation guide <./docs/DONATE.rst>`_.
87+
88+
89+
Copyright
90+
=========
91+
© 2016-2019, 2021-2026 ale5000

docs/conf.py

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
# SPDX-FileCopyrightText: NONE
4+
# SPDX-License-Identifier: CC0-1.0
5+
6+
# Configuration file for the Sphinx documentation builder
7+
# For the full list of built-in configuration values, see the documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html
8+
9+
import os
10+
11+
# Functions
12+
def get_version():
13+
props_path = os.path.join(os.path.dirname(__file__), '..', 'zip-content', 'module.prop')
14+
15+
if os.path.exists(props_path):
16+
with open(props_path, 'r') as f:
17+
for line in f:
18+
if line.startswith('version='):
19+
return line.replace('version=', '').lstrip('v').strip()
20+
return '0.0.0-unknown'
21+
22+
# Project information
23+
project = 'Google sync add-on'
24+
author = 'ale5000'
25+
copyright = '2016-2019, 2021-%Y ale5000'
26+
release = get_version()
27+
version = release
28+
29+
# General configuration
30+
needs_sphinx = '8.1'
31+
extensions = [
32+
'sphinx_rtd_theme'
33+
]
34+
35+
# Options for highlighting
36+
highlight_language = 'sh'
37+
38+
# Options for markup
39+
rst_epilog = f"""
40+
.. |release| replace:: v{release}
41+
"""
42+
43+
# Options for source files
44+
master_doc = 'index'
45+
source_suffix = {
46+
'.rst': 'restructuredtext'
47+
}
48+
49+
# Options for HTML output
50+
html_theme = 'sphinx_rtd_theme'
51+
html_context = {
52+
"display_github": True,
53+
"github_user": "micro5k",
54+
"github_repo": "google-sync-addon",
55+
"github_version": "main",
56+
"conf_py_path": "/docs/"
57+
}

docs/index.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
##################
2+
Google sync add-on
3+
##################
4+
..
5+
SPDX-FileCopyrightText: (c) 2026 ale5000
6+
SPDX-License-Identifier: GPL-3.0-or-later
7+
SPDX-FileType: DOCUMENTATION
8+
9+
Welcome to the documentation for **Google sync add-on** |release|.
10+
11+
.. toctree::
12+
:maxdepth: 2
13+
14+
INSTRUCTIONS
15+
BUILD
16+
SUPPORT
17+
CONTRIBUTING
18+
DONATE
19+
SECURITY

sonar-project.properties

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# SPDX-FileCopyrightText: NONE
32
# SPDX-License-Identifier: CC0-1.0
43

@@ -10,3 +9,21 @@ sonar.projectName=Google sync add-on
109

1110
# Encoding of the source code. Default is default system encoding
1211
sonar.sourceEncoding=UTF-8
12+
13+
# Explicitly set the Python version for more precise analysis
14+
sonar.python.version=3.14
15+
16+
# Ignore NOSONAR_BEGIN / NOSONAR_END blocks
17+
sonar.issue.ignore.block=e1
18+
sonar.issue.ignore.block.e1.beginBlockRegexp=NOSONAR_BEGIN
19+
sonar.issue.ignore.block.e1.endBlockRegexp=NOSONAR_END
20+
21+
# List of exceptions
22+
sonar.issue.ignore.multicriteria=e1
23+
24+
# e1 => Ignore shelldre:S7688 (Use "[[" instead of "[" for conditional tests)
25+
sonar.issue.ignore.multicriteria.e1.ruleKey=shelldre:S7688
26+
sonar.issue.ignore.multicriteria.e1.resourceKey=**/*.sh
27+
28+
# Disable coverage
29+
sonar.coverage.exclusions=**/*

tools/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ TOOLS
99

1010
- zipsigner_ **3.0** => zipsigner.jar
1111
- zipsigner_ **3.0** (Dalvik) => zipsigner-dvk.jar
12-
- `BusyBox for Windows`_ **1.38.0-PRE-5856-g0a97e7906 (2025-10-09)** => win/busybox.exe
12+
- `BusyBox for Windows`_ **1.38.0-PRE-6007-g35e590816 (2026-02-25)** (w build) => win/busybox.exe
1313
- `BusyBox legacy for Windows`_ **1.21.0-TIG-931-g7e6a84d (2012-11-29)** => win/busybox-legacy.bin
1414
- Zip_ **3.0** => win/zip.exe
1515
- UnZip_ **6.0** => win/unzip.exe

0 commit comments

Comments
 (0)