Skip to content

Commit 3bf6c37

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

File tree

3 files changed

+43
-6
lines changed

3 files changed

+43
-6
lines changed

.all-contributorsrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"projectName": "google-sync-addon",
3+
"projectOwner": "micro5k",
4+
"repoType": "github",
5+
"files": [
6+
"docs/CONTRIBUTORS.md"
7+
],
8+
"imageSize": 100,
9+
"commit": true,
10+
"commitConvention": "angular",
11+
"commitType": "docs",
12+
"contributorsPerLine": 6,
13+
"contributorsSortAlphabetically": true,
14+
"linkToUsage": true,
15+
"skipCi": true,
16+
"contributors": []
17+
}

docs/CONTRIBUTORS.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--
2+
SPDX-FileCopyrightText: (c) 2026 ale5000
3+
SPDX-License-Identifier: GPL-3.0-or-later
4+
SPDX-FileType: DOCUMENTATION
5+
-->
6+
7+
# Contributors ✨
8+
9+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/en/emoji-key/)):
10+
11+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
12+
<!-- ALL-CONTRIBUTORS-LIST:END -->
13+
14+
This project follows the [all-contributors](https://allcontributors.org/) specification.
15+
Contributions of any kind are welcome!

zip-content/inc/common-functions.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ export ASSOCIATED_LOOP_DEVICES=''
3434
export MOUNTED_APEX_CHILDREN=''
3535
readonly ROLLBACK_TEST='false'
3636

37-
# Minimum size threshold (in bytes) for app rollback eligibility
38-
readonly APP_MIN_SIZE_FOR_ROLLING_BACK='102400' # 100 KiB
37+
# Default maximum API level used when an upper bound is not specified in configuration.
38+
# 999 is intentionally higher than any realistic Android API level and effectively means "no upper limit"
39+
readonly DEFAULT_MAX_API_LEVEL='999'
40+
41+
# Minimum size threshold (in bytes) for app rollback eligibility => 100 KiB
42+
readonly APP_MIN_SIZE_FOR_ROLLING_BACK='102400'
3943

4044
# shellcheck disable=SC3040,SC2015
4145
{
@@ -2317,10 +2321,10 @@ perform_installation()
23172321
done
23182322

23192323
if test "${API:?}" -lt 21; then
2320-
if test "${CPU64}" != false; then
2324+
if test "${CPU64:?}" != 'false'; then
23212325
perform_secure_copy_to_device 'lib64'
23222326
fi
2323-
if test "${CPU}" != false; then
2327+
if test "${CPU:?}" != 'false'; then
23242328
perform_secure_copy_to_device 'lib'
23252329
fi
23262330
fi
@@ -2821,7 +2825,7 @@ setup_app()
28212825
_output_dir=''
28222826
_installed_file_list=''
28232827

2824-
if test "${API:?}" -ge "${_min_api:?}" && test "${API:?}" -le "${_max_api:-999}"; then
2828+
if test "${API:?}" -ge "${_min_api:?}" && test "${API:?}" -le "${_max_api:-"${DEFAULT_MAX_API_LEVEL:?}"}"; then
28252829
if test "${_optional:?}" = 'true' && test "${LIVE_SETUP_ENABLED:?}" = 'true'; then
28262830
choose "Do you want to install ${_vanity_name:?}?" '+) Yes' '-) No'
28272831
if test "${?}" -eq 3; then _install='1'; else _install='0'; fi
@@ -2903,7 +2907,7 @@ setup_lib()
29032907

29042908
_output_dir="${_dir:?}"
29052909

2906-
if test "${API:?}" -ge "${_min_api:?}" && test "${API:?}" -le "${_max_api:-999}"; then
2910+
if test "${API:?}" -ge "${_min_api:?}" && test "${API:?}" -le "${_max_api:-"${DEFAULT_MAX_API_LEVEL:?}"}"; then
29072911
if test "${_optional:?}" = 'true' && test "${LIVE_SETUP_ENABLED:?}" = 'true'; then
29082912
choose "Do you want to install ${_vanity_name:?}?" '+) Yes' '-) No'
29092913
if test "${?}" -eq 3; then _install='1'; else _install='0'; fi
@@ -3420,6 +3424,7 @@ _timeout_compat()
34203424
}
34213425

34223426
_esc_keycode="$(printf '\033')"
3427+
readonly _esc_keycode
34233428
_choose_remapper()
34243429
{
34253430
local _key

0 commit comments

Comments
 (0)