Vladimir Panteleev
ff69cbdc2f
Enable bash strict mode
...
Ensure scripts do not continue in case of an unforeseen error.
Continuing after an error may lead to a critical step of the process
being skipped, thus silently producing the wrong result.
Related changes:
- Remove two explicit exit code checks, as this checking is now done
implicitly by the shell.
- Remove the over-zealous trap specification in make_key.
The EXIT trap already fires on INT/QUIT signals.
- Remove the 'exit 1' statement in make_key.
The exit code is already propagated on error.
- Switch boolean expression order in make_key to make use of
short-circuit evaluation (and thus only evaluate $3 if it is set).
- Overwrite existing symlinks when linking signing keys
- Ignore SIGPIPE from `yes`
- Explicitly allow DEVICE_LIST_xxx variable to be empty
- Remove '|| exit' clauses (these had been added only to "cd"
commands, in response to a ShellCheck warning); these are now
redundant
- Temporarily disable strict mode flags when invoking Android build
scripts and functions, as these are incompatible with them
2021-08-14 11:33:45 +00:00
Vladimir Panteleev
0d9466b2e4
Address ShellCheck warnings
...
In practice:
- Fix mangling of backslashes when reading password from keyboard
- Fix generating keys with filenames containing special characters
- Avoid unnecessary sed invocations
Also address remaining pedantic fixes.
SC2181 is not addressed in this commit, as it will be addressed
elsewhere ("Enable bash strict mode").
2021-08-14 11:33:38 +00:00
Philip Nagler-Frank
7db93ab20e
Merge pull request #199 from lineageos4microg/dependabot/github_actions/docker/build-push-action-2.6.1
...
Bump docker/build-push-action from 2.5.0 to 2.6.1
2021-08-09 16:29:09 +02:00
Philip Nagler-Frank
1a745a5435
Merge pull request #191 from lineageos4microg/dependabot/github_actions/docker/login-action-1.10.0
...
Bump docker/login-action from 1.9.0 to 1.10.0
2021-08-09 16:28:58 +02:00
Philip Nagler-Frank
4ac105b30d
Merge pull request #205 from lineageos4microg/dependabot/github_actions/docker/metadata-action-3.4.1
...
Bump docker/metadata-action from 3.3.0 to 3.4.1
2021-08-09 16:28:43 +02:00
Philip Nagler-Frank
70b668f26b
Merge pull request #206 from Ammako/openjdk-8-tls
...
Re-enable TLSv1/TLSv1.1 in OpenJDK 8 config
2021-08-09 16:28:19 +02:00
Ammako
0388a875ba
Fix mistake
2021-07-30 08:46:07 -04:00
Ammako
8c1c440aa7
Move logic back to Dockerfile
...
Improved to avoid issues in the future
2021-07-30 08:43:35 -04:00
Ammako
68e57b904c
Only enable TLSv1/TLSv1.1 at runtime
...
Only for cm-14.1 and lineage-15.1 branches
2021-07-24 08:45:54 -04:00
Ammako
86086d50b2
Merge branch 'lineageos4microg:master' into openjdk-8-tls
2021-07-24 06:32:44 -04:00
Ammako
17b897e716
Re-enable TLSv1/TLSv1.1 in OpenJDK 8 config
...
Fixes building 14.1, should also fix building 15.1
2021-07-23 22:35:01 +00:00
dependabot[bot]
9d28416c08
Bump docker/metadata-action from 3.3.0 to 3.4.1
...
Bumps [docker/metadata-action](https://github.com/docker/metadata-action ) from 3.3.0 to 3.4.1.
- [Release notes](https://github.com/docker/metadata-action/releases )
- [Commits](98669ae865...8b842e721d
)
---
updated-dependencies:
- dependency-name: docker/metadata-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-15 13:14:11 +00:00
dependabot[bot]
d007dbe665
Bump docker/build-push-action from 2.5.0 to 2.6.1
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 2.5.0 to 2.6.1.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](ad44023a93...1bc1040cae
)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-02 13:16:40 +00:00
dependabot[bot]
9a40e4180f
Bump docker/login-action from 1.9.0 to 1.10.0
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](28218f9b04...f054a8b539
)
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-23 18:42:07 +00:00
Philip Nagler-Frank
ade044d8f3
Merge pull request #192 from martin-v/patch-1
...
PR `push` should not trigger a docker push
2021-06-23 20:41:29 +02:00
Martin Vietz
2b3e77ce16
PR push
should not trigger a docker push
2021-06-23 15:36:27 +00:00
Philip Nagler-Frank
4011dff6d3
Merge pull request #189 from martin-v/master
...
Add docker build/push based on github action
2021-06-21 09:15:34 +02:00
Martin Vietz
470e3574a4
Add dependabot config to update github actions
2021-06-19 01:19:00 +02:00
Martin Vietz
820c469083
Add docker build/push based on github action
2021-06-19 01:06:36 +02:00
Philip Nagler-Frank
ec8711e189
Merge pull request #162 from petefoth/work-with-python-3
...
Update build_manifest.py to get rid of python2->3 related error
2021-06-17 15:18:01 +02:00
Philip Nagler-Frank
f6b0805fb2
Merge pull request #178 from bananer/permissioncontroller_spoofing
...
Don't patch PermissionController for restricted signature spoofing
2021-06-17 15:17:31 +02:00
Philip Nagler-Frank
bb38f8274e
Merge branch 'master' into permissioncontroller_spoofing
2021-06-17 15:17:23 +02:00
Philip Nagler-Frank
214c038d24
Merge pull request #174 from bananer/shellcheck
...
Improvements suggested by Shellcheck
2021-06-17 15:16:13 +02:00
Philip Nagler-Frank
7ce6026f04
Merge pull request #153 from bananer/docs_for_ota
...
Better documentation on how to set up OTA updates
2021-06-17 15:15:56 +02:00
Philip Nagler-Frank
3dea7d7976
Merge pull request #152 from bananer/build_props
...
copy build.prop file together with zip
2021-06-17 15:15:38 +02:00
Philip Nagler-Frank
bde815981f
Don't patch PermissionController for restricted signature spoofing
2021-05-07 08:27:09 +02:00
Philip Nagler-Frank
0438f3f0a6
SC2115: Use "${var:?}" to ensure this never expands to /* .
2021-04-13 16:22:49 +02:00
Philip Nagler-Frank
95ebd38f3d
SC2061: Quote the parameter to -name so the shell won't interpret it.
2021-04-13 16:18:16 +02:00
Philip Nagler-Frank
f58473f4cd
SC2143: Use grep -q instead of comparing output with [ -n .. ].
2021-04-13 16:16:17 +02:00
Philip Nagler-Frank
969d55e44f
SC2237: Use [ -n .. ] instead of ! [ -z .. ].
2021-04-13 16:09:46 +02:00
Philip Nagler-Frank
4aabdabd43
SC2086: Double quote to prevent globbing and word splitting.
2021-04-13 16:00:12 +02:00
Philip Nagler-Frank
738e9b1bd1
SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
2021-04-13 15:59:22 +02:00
Philip Nagler-Frank
b4ee898f3f
Add support for building Lineage 18.1 ( #148 )
...
* add patches for android R
* don't request user input when patching
* update names of branches and devices in readme
* fail fast when patch does not apply cleanly
2021-04-01 15:49:45 +02:00
Pete Fotheringham
17d572cff6
Update build_manifest.py to get rid of python2->3 related error
2021-02-17 07:03:39 +00:00
Philip Nagler-Frank
78531e0d02
more details on how to set up OTA
2021-01-29 17:58:03 +01:00
Philip Nagler-Frank
cbf8560e3a
document ZIP_SUBDIR
2021-01-29 17:57:48 +01:00
Philip Nagler-Frank
17b2da63ec
copy build.prop file together with zip
2021-01-28 18:11:34 +01:00
Darío Hereñú
f012e2084b
README: Minor fix on line 03 ( #106 )
2021-01-19 12:38:20 +01:00
Philip Nagler-Frank
c565b41e0c
Update url to branch list in Dockerfile comment ( #117 )
...
Matches url in readme now
2021-01-19 12:37:05 +01:00
Philip Nagler-Frank
ded6b5d565
Align with Dockerfile best practices ( #147 )
...
* minimize number of layers in Dockerfile
* don't call apt-get upgrade in Dockerfile
* remove apt cache after installing packages in Dockerfile
* replace depreacted Maintainer field in Dockerfile
* copy files after adding dependencies
2021-01-19 12:35:51 +01:00
Benjamin Gaillard
c947aa6f63
Use recovery.img over boot.img if available (issue #134 ) ( #145 )
2021-01-19 09:44:59 +01:00
thrillfall
3792a9d3b2
move boot.img to output directory ( #136 )
...
Also move recovery image to out directory
2021-01-14 14:55:32 +01:00
Simon Polack
30405bb940
Fix ccache which is no longer shipped with AOSP
...
..by adding a ENV VAR pointing to the actual executable.
Taken out of StolenHal Pull Request.
2020-08-16 01:51:30 +02:00
Simon Polack
4f145950dd
Cleanup leftovers of opendelta
2020-08-16 01:44:51 +02:00
Simon Polack
aca1a10efb
Docker: Base on Ubuntu 20.04
2020-08-16 01:43:19 +02:00
SolidHal
90b3957918
Don't include keys in PRODUCT_EXTRA_RECOVERY_KEYS, causes build signing error
2020-08-15 22:52:19 +02:00
Simon Polack
1cc6a653cd
Add android Q sig spoofing patch
2020-08-15 19:16:05 +02:00
Simon Polack
4a18e077b3
Add keys for networkstack
...
Resolves error
FAILED: ninja: 'user-keys/networkstack.x509.pem', needed by 'out/soong/.intermediates/packages/modules/CaptivePortalLogin/CaptivePortalLogin/android_common/CaptivePortalLogin.apk', missing and no known rule to make it
See:
https://android-review.googlesource.com/q/I7257a472d702e82acdadffc4e0535c63a8bd591d
2020-08-15 19:16:05 +02:00
Simon Polack
60c8c9de4e
Define branch specifics statically instead of smart logic
2020-08-14 22:49:24 +02:00
SolidHal
d75cb19d8f
remove opendelta support, opendelta seems to have been dropped from omnirom
2020-08-14 21:22:02 +02:00