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
17b2da63ec
copy build.prop file together with zip
2021-01-28 18:11:34 +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
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
Evan Goode
1f9f92e22f
Send some User-Agent other than "Python-urllib"
...
Looks like GitLab is using CloudFlare to block requests of raw files from user agents matching "Python-urllib*". So we'll just send a generic browser user agent instead.
2020-04-11 10:14:54 -04:00
Nicola Corna
e724032a86
Add gitlab.com/the-muppets as additional source for proprietary files
...
Manifests can not be used as-is, as they have some incompatibilities
(like the re-define of the already existing "gitlab" remote) with the
build system.
2019-10-05 10:53:43 +02:00
Nicola Corna
c3478c3352
Remove openjdk-7
...
OpenJDK 7 was previously taken from the Debian experimental repo, but is
has been removed.
OpenJDK 7 is needed to build LineageOS/Cyanogenmod 11.0-13.0, so
support for those version is dropped.
2019-08-21 10:00:45 +02:00
Samuel Wein
50027d7dd2
Add support for building LineageOS-16.0 ( #30 )
...
* Added initial Android 9 / LineageOS 16.0 support
* Add muppets16 containing Lineage-16.0 themuppets repos. Updated src/build.sh to allow building Lineage-16.0
* [Fix] Fixed switch for which themuppets repo to use
* [Fix] TheMuppets now supplies 16.0 manifests. Deleting local copy
* [fix] Fixed signing builds in Lineage-16.0 and added kmod to the docker image. (thanks @corna for both)
* Fix Android < 9 builds
2019-04-19 07:14:16 +02:00
Nicola Corna
1fba7e2e99
Move -maxdepth before -name in find calls
...
A warning message is displayed if -maxdepth is specified after -name.
2018-05-09 06:58:26 +02:00
Nicola Corna
de38c17ca3
Don't set IFS or shopt
...
Changing the default IFS or shopt creates issues when sourcing
build/envsetup.sh
Fixes #13 .
2018-05-09 06:55:07 +02:00
Nicola Corna
93cc0e5cb5
Fix LineageOS Updater URL
...
The Updater URL property and format has changed in e930cf7 (cm-14.1) and
5252d60 (lineage-15.1), now the full URL (plus the placeholders) must be
specified.
2018-04-17 07:03:36 +02:00
Nicola Corna
d39ed8fea2
Replace '! -z' with '-n'
2018-04-16 19:15:09 +02:00
Nicola Corna
4924220cb7
Use xargs -r
when removing the old repo logs
2018-03-17 18:19:30 +01:00
Nicola Corna
fb179acc0a
Override device-specific location providers settings
...
Some devices (currently addison, nx512j and oneplus3) set
config_enableNetworkLocationOverlay=false, binding permanently
com.qualcomm.location as location provider and forbidding us to use
com.google.gms as a location provider.
2018-03-16 18:23:01 +01:00
Nicola Corna
43e95e1720
Fix old file removal
2018-03-16 11:24:29 +01:00
Nicola Corna
7e1ccbb8d3
Remove old repo logs
2018-03-14 10:51:52 +01:00
Nicola Corna
5ffe75049a
Generate new signing keys when missing
2018-03-08 11:36:41 +01:00
Nicola Corna
ebe71e31f1
Use Bash-specific redirect
2018-03-06 20:50:14 +01:00
Nicola Corna
746c8740f6
Log the repo output
2018-03-06 20:47:13 +01:00
Nicola Corna
b55109556f
Merge master and multibranch
2018-03-06 20:46:12 +01:00
Nicola Corna
ead08cc100
Fix cron
2018-02-28 21:32:58 +01:00
Nicola Corna
876c28dc8f
Automatically select the correct OTA_PROP
2018-02-28 21:32:58 +01:00
Nicola Corna
a6d122f30b
Don't delete the latest build of the old LineageOS releases
2018-02-28 21:32:58 +01:00
Nicola Corna
426f63bf9c
Prepare for LineageOS 15.1
2018-02-28 21:32:55 +01:00
Nicola Corna
37c76f39f5
Add --force-sync to repo sync
2018-01-14 09:42:41 +01:00
Nicola Corna
f5d5ba5d5b
Suppress kill output
2018-01-10 09:42:37 +01:00
Nicola Corna
8ea3313409
Minor fix
2018-01-08 00:20:06 +01:00
Nicola Corna
cf65924949
Pass the result of the current build to post-build.sh
2018-01-06 10:16:38 +01:00
Nicola Corna
ddffcfaae8
Kill the relevant processes before unmounting the overlay
2018-01-04 13:59:09 +01:00
Nicola Corna
4d481dd1c4
Fix umount
...
Make sure all the relevant processes have been stopped before
unmounting the overlay.
2018-01-03 19:23:04 +01:00
Nicola Corna
6ec2ffde0d
Remove extra quotes inside for loop
2017-12-20 11:37:43 +01:00
Nicola Corna
8d7ef9dc73
Move the mirror to a separate volume
2017-12-19 23:25:42 +01:00
Nicola Corna
1795489a83
Manually stop Jack after each build
2017-12-17 15:29:45 +01:00
Nicola Corna
d2d44ea4c6
Use quotes on all the variables
2017-12-15 10:32:24 +01:00
Nicola Corna
2e47ada281
Adapt clean options to the new build system
2017-12-15 10:16:46 +01:00
Nicola Corna
97ca3efbcc
Minor fix
2017-12-15 09:32:41 +01:00
Nicola Corna
b136ccaf72
Fix manifests' rsync
2017-12-13 16:34:19 +01:00
Nicola Corna
324a10e762
Add multibranch support
...
It's now possible to build multiple branches with the same docker image.
A full LineageOS mirror is downloaded and created locally (~200 GB).
2017-12-13 12:13:36 +01:00
Nicola Corna
4176346648
Add SHA256 sum
2017-11-10 08:06:32 +01:00
Nicola Corna
2011570233
Restrict the builds search
2017-11-10 08:06:32 +01:00
Nicola Corna
51bc22ca56
Make the ccache size configurable
2017-11-06 16:31:37 +01:00
Fabian Köster
633e8018e0
Pass BRANCH_NAME to repo init
2017-11-04 09:33:05 +01:00
Nicola Corna
a281145b70
Copy all the files inside the user scripts folder
2017-11-01 18:38:29 +01:00
Nicola Corna
4ef85b9fe3
Add external scripts support
2017-10-27 10:57:23 +02:00
Nicola Corna
5552c1922a
Add configurable build.prop key
...
It has been changed from 'cm.updater.uri' to 'lineage.updater.uri' in
LineageOS 15.0 (https://review.lineageos.org/#/c/191274/ ).
2017-10-19 07:26:33 +02:00
Nicola Corna
d912e4b030
Improve the logging
2017-10-19 07:26:32 +02:00
Nicola Corna
53250fcbe3
Log patch and git output to DEBUG_LOG
2017-10-17 18:48:36 +02:00
Nicola Corna
ef9f15ce01
Use build/core/version_defaults.mk to determine the current Android version
2017-08-24 00:40:55 +02:00
Nicola Corna
625e715e4a
Add an option to generate the OpenDelta's builds JSON file
2017-08-09 12:21:37 +02:00
Nicola Corna
fba75880fa
Use the appropriate signature spoofing patch
2017-08-07 18:55:16 +02:00
Nicola Corna
12ea4694e3
Fix delta cleanup
2017-07-06 17:14:53 +02:00
Nicola Corna
d0d4576ed9
Change license to GPLv3
2017-06-06 09:12:26 +02:00
Nicola Corna
772389357c
Add DELETE_OLD_ZIPS and DELETE_OLD_DELTAS
2017-06-06 09:12:25 +02:00
Nicola Corna
6a2b51c155
Fix the zip date when the build has started the day before
2017-06-03 08:55:54 +02:00
Nicola Corna
40847c7763
Add RELEASE_TYPE
2017-06-03 08:55:53 +02:00
Nicola Corna
f170ae7a6a
Specify PRODUCT_EXTRA_RECOVERY_KEYS
2017-05-27 16:15:34 +02:00
Nicola Corna
74fabf1e65
Minor zip copy fix
2017-05-27 08:11:08 +02:00
Nicola Corna
290aeb2d07
Minor fix
2017-05-27 08:11:08 +02:00
Nicola Corna
7403fce5c8
Add support for delta files
2017-05-27 08:11:08 +02:00
Nicola Corna
c841a467c6
Minor fix
2017-05-22 12:58:04 +02:00
Nicola Corna
134a82710e
Add SIGNATURE_SPOOFING
2017-05-22 12:45:28 +02:00
Nicola Corna
37f1814a22
Use build_number.txt to identify target file zips
2017-05-18 10:00:39 +02:00
Nicola Corna
57fd1379b8
Replace make clean
with rm -rf out/target/product/<codename>
...
`make clean` fails with a weird error
2017-05-18 07:26:04 +02:00
Nicola Corna
0cc32390fa
Add ZIP_SUBDIR
2017-05-17 00:33:15 +02:00
Nicola Corna
a0469e094e
Add SHA256
2017-05-14 20:22:43 +02:00
Nicola Corna
a169b9f590
Restrict the signature spoofing permission to privileged apps only
2017-05-07 23:06:40 +02:00
Nicola Corna
515085a6a9
Remove CUSTOM_STATIC_JAVA_LIBRARY
2017-05-07 23:06:40 +02:00
Nicola Corna
5f8b9d2ca9
Sign the builds manually
2017-05-07 23:06:34 +02:00
Nicola Corna
c6063d7ab7
Switch to Ubuntu 16.04
2017-05-05 17:20:22 +02:00
Nicola Corna
b235a6e245
Add "now" option
2017-05-05 15:42:03 +02:00
Nicola Corna
fd59136e29
Multiple changes
...
* Add MicroG's signature spoofing patch
* Add ENVs for custom packages, custom Java libraries and keys path
* Change git protocol from git:// to https://
* Increase ccache limit to 100 GB
2017-05-03 22:35:24 +02:00
Julian Xhokaxhiu
4c0f2f2629
Refine ncurses5 installation
...
Rather than building on the Docker Hub, let's install prebuilt packages. Therefore apacman is no more required.
2017-02-23 23:33:58 +01:00
Julian Xhokaxhiu
f96e5d2795
Re-enable logging print from cron script
...
Log from cron script were not output if not DEBUG was active
2017-02-17 18:29:13 +01:00
Julian Xhokaxhiu
789da2da48
Clean out the build even if it fails
...
In order to restart fresh the next time
2017-02-17 18:27:09 +01:00
Julian Xhokaxhiu
7f5ef167ea
Improve overall logging
2017-01-24 22:31:34 +01:00
Julian Xhokaxhiu
f0ad560831
Fix the cleaning logic of the out directory
2017-01-23 23:06:38 +01:00
Julian Xhokaxhiu
ce4f043def
Redirect output
...
And fix the copy of the local manifest syntax
2017-01-22 14:02:59 +01:00
Julian Xhokaxhiu
1bf0736112
Wrong property set for the OTA URL
...
We should use PRODUCT_PROPERTY_OVERRIDES which seems to be kept until the final stage where the build.prop is being built
2017-01-22 00:28:03 +01:00
Julian Xhokaxhiu
9821556629
Minor aesthetic enhancements to logs
2017-01-22 00:07:57 +01:00
Julian Xhokaxhiu
b655ad3fe6
Rename OUT_DIR to ZIP_DIR
...
It was confusing the build system which was placing any output file inside the final output directory
2017-01-21 23:59:02 +01:00
Julian Xhokaxhiu
344ad3ddb6
More verbose logging
...
And small enhancements towards building logic ( Move the ZIPs only if the brunch command finished successfully )
2017-01-21 13:49:54 +01:00
Julian Xhokaxhiu
d37f232193
Add smart support for Local Manifests
...
Now you can prepare them before hand, and when the build will start will take them in consideration everytime.
Before you had to wait at least the first round of build to be able to add your local manifest.
2017-01-21 11:56:58 +01:00
Julian Xhokaxhiu
7d0f33d18c
Forward stderr to stdout
2017-01-21 11:46:10 +01:00
Julian Xhokaxhiu
4ac22955a8
Some logs were left out from DEBUG
...
Include them as well
2017-01-17 20:51:31 +01:00
Julian Xhokaxhiu
acc11df22a
Enhance the build script with Debug and Clean capabilities
...
User can decide if he wants to get the build logs in its entirely or just resume.
Also added a flag to configure if the script should clean artifacts once the ROM was built or not.
2017-01-17 19:35:03 +01:00
Julian Xhokaxhiu
a156e12764
A lot of improvements
...
Fixing cron job, enhancing log output, remove custom manifest URL option ( users can always upload custom manifest by accessing their .repo folder mapped via volume anyway )
2017-01-15 23:03:17 +01:00
Julian Xhokaxhiu
7142edf4dd
printenv output was not compatible with crontab
...
Triage by sedding the output in a proper way
2017-01-12 23:51:01 +01:00
Julian Xhokaxhiu
c4f50fd23d
It seems cronjob is running but not the shell script
...
Refine again
2017-01-12 22:38:54 +01:00
Julian Xhokaxhiu
a6f149a63d
Refactor a little cron functionality
2017-01-11 21:48:48 +01:00
Julian Xhokaxhiu
56ba6677f6
Fix again the cronjob for good
...
I hope this will be the last fix required
2017-01-10 21:06:35 +01:00
Julian Xhokaxhiu
38cbef20f0
Fix the cronjob init
...
Syntax was wrong
2017-01-09 20:08:31 +01:00
Julian Xhokaxhiu
59233f4d0e
Fix the cron command
2017-01-08 22:59:42 +01:00
Julian Xhokaxhiu
e623387130
Add support for Custom manifests
...
Through this patch we will enable this Docker to build LineageOS forks
2017-01-08 19:35:25 +01:00
Julian Xhokaxhiu
d5b1deadbe
Hook into one common makefile to inject the OTA URL
...
And make sure the source stays clean for the next repo sync
2017-01-08 19:28:32 +01:00
Julian Xhokaxhiu
53c7778701
Fix permissions for crontab file
...
And move ADDITIONAL_DEFAULT_PROPERTIES export to build.sh
2017-01-08 18:24:23 +01:00
Julian Xhokaxhiu
71d28d2203
First commit
2017-01-08 17:37:37 +01:00