Commit Graph

2873 Commits

Author SHA1 Message Date
Simon Josefsson
1ad1f1a341 Work around that 'make-key' has rc 1 on success.
The 'make_key' script returns rc 1 on both failure and success, so work
around by ignoring exit code from that script.
2017-03-04 10:26:45 +01:00
Gabriele M
5f124ae55b Add target to make a flashable su addon
Run 'make addonsu' to make a flashable zip to install the addon and
'make addonsu-remove' for a flashable zip that removes it.

Change-Id: I5b2fe67f98f2474b923c074dc6025b47c6db2ae0
2017-02-27 23:33:02 -05:00
Gabriele M
52996421a1 backuptool: Preserve the SELinux context of the files
Add a function that allows to copy files preserving their SELinux
context that is generic enough to work with both busybox and toybox.

Change-Id: If2c245863df5675c18dbf43b6bcedeb33383fc38
2017-02-27 23:33:02 -05:00
Gabriele M
cf276aa7cd backuptool: Don't rely on the order of the elements in the list
We should not test symlinks using -e or -f, otherwise the order in
which the files are backed up and restored matters.

Change-Id: I9b87972b27a63ef562c0c5f46f943eafd0a08ce1
2017-02-27 23:33:02 -05:00
Zhao Wei Liew
70e53042eb cm: Import init.superuser.rc into init.local.rc
With change I73bbf37e547323846cd863b3dcea5c890f9ee969,
we need to move all the contents of the su service into
the main init.cm.rc file.

Change-Id: Id7cf00738dcb81935b27e5de33d1f7dd2b2fcdb3
2017-02-27 23:33:02 -05:00
Brinly Taylor
5da6b60229 cm: Add BQ Aquaris X5 (paella) maintainers.
Change-Id: I782dd3109ea441d2d0bf77a86d1b3b22d6a2a673
2017-02-24 05:12:05 +00:00
ElDainosor
1966e99909 apn: Updating Movistar Argentina APN
This change updates the APN settings, removing the proxy and the port. 
  This, according to movistar itself, makes the connection slower and 
  will be shut down soon.

More info on their forum: 
https://foro.movistar.com.ar/threads/43044-NOVEDAD-Apagado-de-Proxy

Change-Id: I705e6ed2237503ee67c7371bf3595b461dfbbd9c
(cherry picked from commit 08eb71e86a4218817496eee60a80d21a5781e1b3)
2017-02-19 21:11:15 +00:00
Wolfgang Wiedmeyer
4971a943eb
build-toolchain: more common path for gold ld
also remove obsolete TODO

Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
2017-02-18 16:28:59 +01:00
Wolfgang Wiedmeyer
d93a358a4a
sign-build: consider device-specific releasetools code for Galaxy S2
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
2017-02-15 01:56:01 +01:00
codeworkx
edbf4ba227 add LeEco Le Pro3 maintainers
Change-Id: I4798d78f264b375be3942f15d6f41a2fb9821fc4
2017-02-14 21:06:36 +01:00
Wolfgang Wiedmeyer
37254642e9
remove LineageOS bootanimation
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
2017-02-12 20:29:44 +01:00
Wolfgang Wiedmeyer
64dba5e9e2
Merge remote-tracking branch 'lineageos/cm-13.0' into replicant-6.0
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
2017-02-12 19:41:06 +01:00
Zhao Wei Liew
dee66450bb cm: bootanimation: Fail the build if mogrify is absent
We're no longer using convert, but mogrify.

Change-Id: Ifd58527b49e5548dd94b35a8cf0ffa4ad5196804
2017-02-11 12:09:58 +00:00
nicknitewolf
49d115a88a apns: Add SingTel hi!card sim APN
Change-Id: I0715dcdfb7ff845f0d156e2a0919ae6ce02a72b0
(cherry picked from commit 0258f3e8a2e308353264ffd531330770ee0f5ec9)
2017-02-10 22:20:02 +00:00
Daniel Marsee
c9fc176de8 apns: Update H2O Wireless for LTE
New H2O Wireless APN to allow LTE is PRODATA, not att.mvno
New settings were copied from 
http://easygo.h2owirelessnow.com/easygo/images/english/APN_SETTING-2014.pdf.

Change-Id: Ic09f9c9a8db90877fa2842d076762a14bdf154ca
(cherry picked from commit a434e63395933d22ef8731858ee9af8e824408d3)
2017-02-10 22:19:34 +00:00
Paul Keith
895fce99c8 apns: Remove differentiation between FreedomPop GSM APNs
* Unnecessary due to differing mcc/mnc

Change-Id: Ica43ec381d4aa1873f2e332adf31381fac309e1b
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
(cherry picked from commit 4f163738655de88ec6b2818028bbf8356d4a4e39)
2017-02-10 22:19:15 +00:00
Paul Keith
71c83d686d apns: Correct FreedomPop US LTE APN
* This is not run on 3 UK's network, but AT&T's

Change-Id: I81c8881b04ebd5c7a24794835097056d9075d9a2
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
(cherry picked from commit 6dc33ac9c59065c676bb908fea860ba48be9acc6)
2017-02-10 22:18:49 +00:00
Paul Keith
ab2315ce65 apns: Add differentiation to FreedomPop Global GSM APN
Change-Id: Ifd45a3ce39002ff3f1668e03b2ddb822a096d326
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
(cherry picked from commit 4e3f2767361509326367bd25e1ab6ab0742795ca)
2017-02-10 22:17:57 +00:00
Paul Keith
7971d7e53d apns: Add FreedomPop US LTE sim APN
Change-Id: I91a9f5d503e49161399ab3f73cad4d8a8174c40b
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
(cherry picked from commit 3576ede78cf34a01bb0aeb7afb6def521be3c5a9)
2017-02-10 22:17:48 +00:00
Matt Mower
2cd690e9cc apns: Update H2O Wireless
* It's H2O, not H20
* Update based on
  - https://www.h2owirelessnow.com/mainControl.php?page=dataManualConfig
  - https://www.h2owirelessnow.com/images/pdf/ManualConfigurations011211.pdf

Change-Id: I181f0aa1fe3a67afd37b65a0f93107f242b479e1
(cherry picked from commit 0e579746302af63a749972bfcdca8bd643ba7ad5)
2017-02-10 22:16:58 +00:00
Paul Keith
c245bf435a apns: Correct FreedomPop Global GSM APN
* Type configuration is empty, not "default,supl"

Change-Id: I4d9bb0e4d61058dbf256059c3ba6b217faabcf78
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
(cherry picked from commit 1bbf68ffee1f8eb85e4d10a7841f52401f6791e9)
2017-02-10 22:16:19 +00:00
Christopher N. Hesse
d2bf7327bb bootanimation: Use mogrify to convert images in place
Fixes bootanimation generation for Darwin/BSD.

Change-Id: Id9e38bcb9db7b550f22bda1250dbb515599e8f93
(cherry picked from commit 70658805a6ddbecd55877fafe4fba8b2efd83f74)
2017-02-10 18:18:03 +00:00
Tom Powell
8e2fedf3ce vendor/cm: symlink repopick to build/tools
Change-Id: I04b86c7b9445dc98510ba9b3f89a9a9410b26033
2017-02-04 15:32:20 -08:00
Sean hoyt
dc9d6a4bfd Fix def_enable_mobile_data overlay
Change-Id: I2f7e38e2726df641089e291725bc25904ac35537
2017-02-03 02:05:13 +00:00
Abhisek Devkota
cb84ed654b Default mobile data in OOBE to off
Encourage WiFi usage first, and let folks with limited
 sim plans make the choice to enable

Change-Id: I9529d85f3d22af73b9baf255d47681ec43089b14
2017-02-02 23:35:24 +00:00
Wolfgang Wiedmeyer
62d7769c27
sign-build: Galaxy S2 needs special treatment
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
2017-01-29 19:19:05 +01:00
Wolfgang Wiedmeyer
93788fff24
add i9305 to targets
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
2017-01-27 21:39:56 +01:00
Scott Warner
8b06d3a3b1 bootanimation: Limit the PNGs to 250 colors
Some systems seem to have with the convert command as-is:
convert: Cannot write PNG8 or color-type 3; colormap is NULL

Because we are writing PNG8, there area a max of 256 colors total.
Explicitly telling convert to stay under the max fixes the issue.

Change-Id: I595fb4503396ca20226ea76bf7b15ed9878752fd
2017-01-27 14:28:10 +00:00
Wolfgang Wiedmeyer
fa42a81463
AR9271 firmware
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
2017-01-27 00:20:39 +01:00
Wolfgang Wiedmeyer
c57d61c790
sign-build: support signing multiple devices
Also make sure that the scripts find the signapk.jar.

Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
2017-01-26 22:07:23 +01:00
Eloi Carracedo
c126a4e795 apns: Add Freedompop foggmobile APN
Used for freedompop in Spain.
Change-Id: Iae465f70bc7dad535eea8f13de425857093045c3
(cherry picked from commit 9ec810f6830a97300f2ed29b96b1858ec2bab539)
2017-01-20 00:29:37 +00:00
Dan Pasanen
642b513a80 bootanimation: get all the parts
Change-Id: I6f2b38a64629f918b79d28ba8b1d0d6535901142
2017-01-19 22:03:01 +00:00
Asher Simonds
cac593aa29 cm: bootanimation: Improve boot animation
* Make it run at 60 FPS
 * Slow down the pace to make it more relaxed

Change-Id: I563b09da875c53f1cd456606ee7a6200e8841bb1
(cherry picked from commit 070053c6abf1d2d23a9cbbcf910db139fde8100c)
2017-01-19 13:25:31 +00:00
Adrian DC
2a2b14a051 extract_utils: Detect output existence before moving it for backup
* Avoids:
    Cleaning output directory (./../../../vendor/.../.../proprietary)..
    mv: cannot stat './../../../vendor/.../.../proprietary/*':
    No such file or directory

Change-Id: I3258e64f3997f139d8db4fb4e07d14964a469c78
(cherry picked from commit 3c6bdac74bc212b26f723aa8697099fd636451a8)
2017-01-18 23:29:17 +00:00
Zhao Wei Liew
80926bd327 cm: bootanimation: Clear intermediaries
Make sure that any changes to the boot animation can be picked up
and rebuilt by running 'mka bootanimation.zip'.

Change-Id: Ice10e919df4c1b651c5c5dbb9700cab38eeac748
(cherry picked from commit e796a286bd72df3e4715164171a3e7ef6d2eadb2)
2017-01-18 13:34:43 +00:00
Asher Simonds
2371d23f28 vendor: lineage boot animation
Change-Id: Iff2087eb97aee5e586eecf3898f0066d99bc885c
2017-01-17 19:29:58 +08:00
Matt Mower
fecbcbe269 extract_utils: Introduce variable INITIAL_COPYRIGHT_YEAR
Let a device specify INITIAL_COPYRIGHT_YEAR=XXXX in setup-makefiles.sh
so that the correct copyright(s) is/are included in vendor makefiles.
The CyanogenMod copyright is retained when INITIAL_COPYRIGHT_YEAR<2017
and the LineageOS copyright is now included for >=2017.

Change-Id: I6895b5b69bc7ba399042ac3c29e17f3209d15f1b
(cherry picked from commit 8945f5e8c796a3fca6fe2ae3cd90df331959c167)
2017-01-16 21:47:25 +00:00
Abhisek Devkota
2d28880a51 Disable SU by default
- We plan on distributing an addon for our SU
- Developers that want SU by default can export
    WITH_SU=true to their env
- This helps with application compatibility for
    various services, while maintaining user flexibility

Change-Id: I6d52159676f805c3698ff59c896d943a3a4b25db
2017-01-15 03:16:31 +00:00
Abhisek Devkota
d687ac59b2 vendorsetup: match lineage naming for build roster
Change-Id: Ic8853443faf74a864ac14e7b29bd3c885083f63a
2017-01-14 15:09:05 -08:00
Zhao Wei Liew
76b66c1ab8 cm: config: Remove obsolete props
All usages of ro.com.android.dataroaming default to false.
The rest of the props are no longer used.

Change-Id: I2320e82a1859f8c13f3430a43aa8714186158ee0
2017-01-14 06:34:55 +00:00
David Marble
84cfb7f0d1 http_prebuilt: Improve retrieval of artifacts from archive
The current version always redownloads the artifact.
Kali does not like the nested md5sum command and ignores it
leaving file checksum value blank so the test always fails.
A temporary variable is used to get around this limitation
of kali.

The echo "Downloading..." command has been modified to actually
print and has been moved so it only does so when downloading
the artifact.

Change-Id: I115860a87e55399a652d6548fe50f6204337f854
(cherry picked from commit 20c06fd75e09f3910ec699bdc54eec08f6bb4594)
2017-01-12 18:33:30 +00:00
Wolfgang Wiedmeyer
8cb84ac243
overlay: hdpi Replicant wallpaper
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
2017-01-11 04:07:52 +01:00
Brandon McAnsh
1846ec0341 http_prebuilt: Implement archive of artifacts
* checksum will be downloaded and asserted to prevent a
    redownload every clean
* Archives will exist (invisibly) at vendor/cm/prebuilt/archive

Change-Id: I637e86cacd146d665044a119885900dc4660e22b
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
2017-01-08 15:58:48 +00:00
Rashed Abdel-Tawab
3521fa5a3b bootanim: Use a for loop to make part# folders
Change-Id: Iec90f3521e589de4e8352c0349e1a0751d65d989
2017-01-04 11:05:55 +08:00
David Marble
f5897a1be6 Fix wrong bootanimation.zip from mkdir .../part{0..2}
For some reason the mkdir command:
mkdir -p $ANDROID_PRODUCT_OUT/obj/BOOTANIMATION/bootanimation/part{0..2}
creates a directory part{0..2} instead of three separate directories.
Non-fatal build errors and a 386 byte bootanimation.zip file result.
This explicitly creates each directory.

Change-Id: Ia6ae0e4f64521992de8cc34a376af3eaac5c8819
2017-01-04 11:05:55 +08:00
Griffin Millender
5517e01a9e cm: Rework boot animation generation
Keep the largest bootanimation extracted
and resize it at build-time.

Change-Id: Iee32f18440ff955d13ed85b273e97cbd540721fc
2017-01-04 11:05:55 +08:00
codeworkx
b20aa05024 vendor: add codeworkx as leeco le 2 (s2) maintainer
Change-Id: I7aac3f09097ae4c8dbd3e7a2cd2672b3f8a6aa52
2017-01-03 17:38:30 +01:00
Wolfgang Wiedmeyer
0d8994fdd7
sign-build: Support $OUT_DIR_COMMON_BASE
$OUT_DIR_COMMON_BASE allows to set a different output directory in the
Android build environment.

Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
2017-01-02 21:22:19 +01:00
Dan Pasanen
68718f9760 vendor: Add a task for getting prebuilts via http
* Gello being our first pawn
 * Use curl instead of wget (more powerful)
 * Ensure the intermediates directory exists prior to download

Change-Id: If19c18638a14a8b9ab55470ae6ee5a2deda2e3ec
2017-01-02 04:18:11 +00:00
Zhao Wei Liew
a4ae4813c2 cm: Rebrand CM_VERSION to LINEAGE_VERSION
Change-Id: I59edb97b51d43b7c7f5fa01e00972244fc2530dc
2017-01-02 04:08:56 +00:00