Ilya Danilkin
6c209510c9
Repack and zipalign APKs only with compressed libs and v1 sig
...
Signed-off-by: Ilya Danilkin <nezorflame@gmail.com >
2020-07-14 14:36:29 +02:00
Yurii Kolesnykov
13f9d7013a
speedup xz compression by using all available threads
...
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com >
2020-03-06 13:14:39 +01:00
mfonville
0021a29a88
support setting the temp directory for signing the builds
2018-07-21 16:52:12 +02:00
osm0sis
aed6dfa48c
Revert "Revert "Switch from SignApk to ZipSigner 2.1 from @topjohnwu""
...
This reverts commit a230ef9654 .
2018-05-20 23:10:21 +02:00
Nicholas Buse
a230ef9654
Revert "Switch from SignApk to ZipSigner 2.1 from @topjohnwu"
...
This reverts commit 8f6e6fa9e8 .
NOTE: There is an issue with this commit with the OpenGApps automated build. It will be re-enabled after the issue is addressed.
2018-04-17 09:14:00 -05:00
osm0sis
8f6e6fa9e8
Switch from SignApk to ZipSigner 2.1 from @topjohnwu
...
https://github.com/topjohnwu/Magisk/tree/master/utils/src/main/java/com/topjohnwu/utils
- signs EDIFY and shell-based zips to both unpack and verify correctly without needing a further zipadjust/MinSignApk
- streams the file input while signing so the memory requirements are minimized (e.g. A 1069mb Open GApps ARM 7.1 AROMA zip was able to be signed on a WinXP VM with 1.0gb of memory!)
- has testkeys built in when no others are supplied on the command line so is completely portable
2018-04-16 10:52:43 -05:00
mfonville
63770a25a6
Update signapk to the version of android 7.1.1_38
...
Thanks @TheCrazyLex for compiling and all the help!
More info: https://github.com/mfonville/platform_build/releases/tag/android-7.1.1_r38
2017-04-14 16:59:27 +02:00
mfonville
ed24218064
ARM64 7.x aroma needs even more memory for signing
2017-04-14 11:53:59 +02:00
mfonville
b123dd55fd
Use JVM UseCompressedOops during APK signing
2017-01-26 16:26:03 +01:00
mfonville
a0c09bf750
Update amount of memory for signing (7.x arm64 aroma is too large)
2016-12-31 11:48:14 +01:00
mfonville
1c9a5493d4
If a zip sign failed, remove the broken output file
2016-12-14 12:40:34 +01:00
mfonville
1b6ae2590a
Need more heap for signing Aroma
2016-12-14 12:32:06 +01:00
mfonville
55cbbd4587
Include our own unzip and tar to try to fix decompression issues
...
that some users are experiencing
2016-09-13 21:10:43 +02:00
mfonville
441365c085
Switch the default compression to LZip
...
-lzip in busybox is now relatively OK for performance
-lzip does have integrity verification (XZ i.e. fucks up contactssync-23)
-Keep using xzdec for aroma, to prevent crash-issues
-we don't have to bundle the xz binary in the lzip packages
2016-09-05 15:50:33 +02:00
mfonville
a7800a3b19
Contactsync is broken again with XZ
...
Revert "Remove compressioncompathack; googlecontactssync extraction works with updated APK"
This reverts commit 3d71dc3925 .
2016-07-26 13:05:31 +02:00
mfonville
847b0dbc2c
Include architecture in name of bundled binary
2016-04-19 16:09:09 +02:00
mfonville
585cbdd1b3
Allow zopfli (re)compression during zipalign
...
A simplified implementation of #175
2016-03-27 13:47:26 +02:00
mfonville
5d2a35160d
Set ZIP compression level via a variable
2016-03-25 11:35:02 +01:00
mfonville
a8929f297b
Update pre-ODEX size estimation heuristic
2016-03-21 00:17:56 +01:00
mfonville
a50847e147
Support building nice log files that detail the contents of packages
2016-03-20 21:05:48 +01:00
mfonville
231edb5e97
Pre-Odex unsigned classes.dex during install
...
Forever grateful to @YashdSaraf not only for his awesome binaries, and for finding the $ZIP issue that was ruining my time
2016-03-18 18:51:45 +01:00
mfonville
3d71dc3925
Remove compressioncompathack; googlecontactssync extraction works with updated APK
2016-03-04 23:47:05 +01:00
mfonville
f32475077e
improve coding style googlecontacts compression compatibility
2016-02-27 11:07:42 +01:00
mfonville
3b009399b8
Take middleground: lzip for non-aroma marshmallow; xz for others
...
It ain't better till we sorted out what is going wrong with contactssync in marshmallow xz
Also support "none" compression
2016-02-26 00:44:28 +01:00
mfonville
a2eb8f8fbe
Allow frankstein xz+lzip combined builds
...
googlecontactssync on 6.0 gives faulty extraction with xz; so use lzip for that app
2016-02-25 23:05:28 +01:00
mfonville
1b1a989fb6
Support both XZ(default and using xzdec) and lzip compression
...
Allows to toggle between xzdec and lzip in build_gapps.sh
Rename creatxz/createlz to compressapp
Make checktools also toggle between xz and lzip command check
Made the various changing aspects of the toggle more dynamic (compress and decompress commands, tar-suffix)
Re-introduce bundlexz
Forced the use of the xzdec binary for all xz-decompression, since we cannot trust busybox's xz-embedded
Included xzdec binaries (Thanks to @YashdSaraf for cross-compiling very optimized builds for us!)
2016-02-25 16:36:21 +01:00
mfonville
e994e41844
Switch to lzip instead of XZ
...
Special busybox with lzip patches from @YashdSaraf
Fix some small typos and add de-facto LGPLv3 to Runtime
NOTE: lzip is much slower than XZ; but it is reliable!
2016-02-21 20:49:04 +01:00
mfonville
2e51f9abb3
Improve busybox and packaging docs/output
2016-02-21 13:38:47 +01:00
mfonville
e9e77dbb2c
Update busybox and its instructions
...
Newest busybox wants bash as shell definition
2016-02-16 16:55:01 +01:00
mfonville
b1fb0b695e
Add busybox usage to update-binary
...
End the installer environment after running our busybox environment
Don't destroy $PATH during busybox run
make chmodx in update-binary variable
2016-02-15 20:04:50 +01:00
Kristian Klausen
6b2d8fb33d
Bundle busybox
...
We only use the busybox "binaries", not any of the system binaries.
This also remove xz-binary, as busybox include xz.
2016-02-15 17:57:48 +01:00
mfonville
9be58762a8
Seperation of update-binary and the actual installer
...
Rename and combine the code update-binary and installer.data into installer.sh
Make update-binary path a variable
Make gprop and gappsremovetxt name variables
2016-02-15 14:54:50 +01:00
mfonville
1b585f73a6
output using certifcate and cryptokey during build
2015-12-13 19:26:49 +01:00
mfonville
4019101be0
fix typos for certificate+keys lines
2015-12-12 01:45:07 +01:00
mfonville
26c4399716
Allow to specify certificate and key file for signing dynamically
2015-12-12 00:44:07 +01:00
mfonville
ee8219722a
If no explicit LICENSE specified, fallback to default Open GApps LICENSE
2015-12-11 17:13:45 +01:00
mfonville
f7392d616f
Allow to specify a LICENSE file in the produced package
2015-12-11 17:11:44 +01:00
mfonville
494132cfbc
Include x86 xzdec in build process
2015-12-08 17:38:02 +01:00
mfonville
78c302ec28
Introduce tidycache command, to clean-up 7 days+ XZarchives
2015-11-25 22:41:59 +01:00
mc1100
5bf48d2760
Use 'nproc' to get the number of available processors
2015-10-06 22:48:45 +02:00
mfonville
a2928a0687
New fallbackarch implementation. Fixes #118
2015-10-06 10:20:15 +02:00
mfonville
914150c5ae
Reduce output during XZ compression to minimum
2015-10-02 23:38:12 +02:00
Eugene San (eugenesan)
2ef2422234
Add failover to non-parallel build mode
2015-10-02 17:23:08 -04:00
Eugene San (eugenesan)
8b4ab7537b
Fix by1 in parallel load report
2015-10-02 11:59:11 -04:00
Eugene San (eugenesan)
b320e48704
Add support for parallelism and settle source code permissions
2015-10-01 16:12:36 -04:00
mfonville
f2fc8158a3
aroma had a comment typo in its folder creation script
2015-09-11 14:32:24 +02:00
mfonville
465f9c9572
Give more memory to java to fix issue #105
...
Update comments where to find jarsigner and keytool
2015-09-05 13:51:27 +02:00
mfonville
adf09a05ab
Integrate the certificate import as part of add_sourceapp.sh
...
Validate certifcates during import
add gms.leanback to priv-app
Contributes to issue #92
2015-09-04 18:35:06 +02:00
mfonville
0142095ef8
Require a recent zipalign that can also align shared object files
2015-09-02 21:40:39 +02:00
mfonville
c8a85eb734
Made coding style consistent
...
Switched from tabs to 2-space indent
Closes issue #8
2015-08-04 16:02:59 +02:00