Commit graph

3345 commits

Author SHA1 Message Date
Simon Shields
3ece2b0bff soong: rework soong_config for Pie
Change-Id: I3c5001f02975e5487ba66a02217f1d24d2021272
2018-08-16 14:21:23 +01:00
Rashed Abdel-Tawab
8960e3dfd6 kernel: Set CROSS_COMPILE_ARM32 if using aarch64
Google added a 32-bit vDSO to the Wahoo and Marlin kernels on Android P,
requiring a 32-bit toolchain to compile/link, and the build fails when
it is not provided.

Change-Id: I700e66a417ed431c31d82fc950f5e5acd07ab281
2018-08-10 22:00:27 +02:00
Bruno Martins
2944bf3e00 lineage: Make sure to consider our product makefiles
Change-Id: Ia0c7281791b37fff5fce9c62b3f0ba56c35d45ba
2018-08-10 19:37:27 +01:00
Rashed Abdel-Tawab
6326caafb8 Lineage 16.0
Change-Id: Id892a06aac619efaef9c76aea8ced19af49672a6
2018-08-10 19:37:27 +01:00
Rashed Abdel-Tawab
af31664d8a bfqio: Include headers we use
Change-Id: I98a46e80c3a8eee46dd54c39e4e38efc4b96a559
2018-08-10 19:37:27 +01:00
Rashed Abdel-Tawab
3d29315c1e kernel: Remove ANDROID_BUILD_TOP
This is no longer used in Pie, so just get the top dir of the build system
and use that.

Change-Id: I4bc416e471ddeb9810960f4ddcd647b20aa531c2
2018-08-10 19:37:27 +01:00
Bruno Martins
920f209fff backuptool_ab: Pick LineageOS properties from build.prop
* The LineageOS versions properties were removed from the build.prop,
    which is resolved properly in commit:
    "lineage: Keep LineageOS versions properties in build.prop"
    Change-Id: I0060141c097b3d14c3710eee1e0caf7110634967

Change-Id: Ib11670474641d6fd14a00f8421e9fe8d1879bbc2
2018-08-10 20:35:01 +02:00
Adrian DC
05ab72add7 backuptool: Resolve incompatible version grep syntax
* The grep errorlevel output was not properly used by the if,
    therefore allowing a device to upgrade with old addons
    instead of aborting the backuptool steps

 * The LineageOS versions properties were removed from the build.prop,
    which is resolved properly in commit:
    "lineage: Keep LineageOS versions properties in build.prop"
    Change-Id: I0060141c097b3d14c3710eee1e0caf7110634967

 * Introduced in the following commit:
    "backuptool: Take into account new location for system default props"
    Change-Id: I62046447876c2198a0c4f88a4f36f4723d417617

This reverts commit 1022cc7c50.
Change-Id: I7f5a3510f64f0ecabfe9d15b5dbc1a667b210eb8
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2018-08-10 20:35:01 +02:00
Adrian DC
29fca646a6 backuptool: Revert "Temporarily render version check permissive"
This reverts commit fa279c980512c5d25de6bbd4f8d6397a2ae2b252.
Change-Id: Ib3e88ef3ff80bd466c9ec73edc8224713d331657
2018-08-10 20:35:01 +02:00
Paul Keith
86e79255ae lineage: Set perms on reading_mode sysfs
* This is now supported by the common sysfs impl,
  so the perms should be set on the node

Change-Id: I079301a8684f3038b7e5e72b7b2d830259c4fe60
2018-08-10 15:56:05 +02:00
chrmhoffmann
1813f415ab lineage: Allow background broadcast for CAMERA_BUTTON
This enables launch of camera app (snap) when pressing the camera button.

Change-Id: I76fd622031f628b20212e8c7a6239b49fd121a2e
2018-08-05 14:38:33 +02:00
Michael Bestas
95621f3c73 Revert "ota: Validate any installed data's signature against our own"
* otasigcheck doesn't work on encrypted devices and makes
  the zip installation fail since oreo.
* The build part of this was never ported to oreo.

This reverts commit aff5e54c4e.

Change-Id: I411f33c1db64844091c1692ef4706ae541925d4f
2018-08-04 17:46:35 +03:00
LuK1337
03a83c3b9a vendor: Copy org.lineageos.settings permission
Change-Id: Ia662f7789f77bb9b1abe1198db97a5b1767cd3e6
2018-07-31 21:49:17 +02:00
Bruno Martins
1fe63a96ba lineage: Simplify README and update with minor fixes
* Deduplicate info that is already in the Wiki

Change-Id: I8d7b8192332c8d5a1756ac55a15f72aa59ffb6a4
2018-07-31 10:14:32 +02:00
Aaron Kling
6674179a47 ATV: Build LineageCustomizer
Change-Id: I1a9e18516441dd513378bc5332b181b4e059e19b
2018-07-29 01:47:48 +02:00
Nolen Johnson
c40e4c6622 prebuilt: apn: Sprint 2: Drop http definition from MMSC proxy
* This needs to be prefix agnostic so its secure counterpart can
  be used when necessary.

Change-Id: I05475c4a3a90ff6bb8736046aad5eb3f7260e468
2018-07-26 21:06:38 +02:00
Bruno Martins
92746e08f5 tools: Bump baksmali/smali to v2.2.4
Change-Id: Ida7b7a1045080b905a9e93f15d9380df21d3799b
2018-07-26 10:27:17 +02:00
Bruno Martins
db4aa05e62 config/common: Organize filesystems tools
* Along with it, remove tune2fs as the tool is already part of
   build/target/product/core_minimal.mk. Despite Google did quite
   a big cleanup in master branch, it's still built by default.

Change-Id: I4cf1178c2f99eda5a45de4ba79705093de5cd9bf
2018-07-26 08:50:34 +02:00
Nolen Johnson
1e2d49018a prebuilt: apn: Sprint 2: Make IPv6 MMS Proxy default for the apn
* New devices strictly use IPv6 for MMS, and the legacy IPv4 proxy won't
  work on them.

Change-Id: Ic6b2f0922c5eb134ad21b48b2dafe178cd620831
2018-07-25 19:56:16 +02:00
Bruno Martins
344f31cc2e config/common: Remove BluetoothExt from PRODUCT_PACKAGES
* This package seems to be deprecated and it's no longer synced.

Change-Id: I903d7000593a68149ea9cd24d545ccc6fa399de4
2018-07-24 23:48:22 +02:00
Luca Stefani
a1ade7fb7c kernel: Allow installing modules on system
Change-Id: Id4386cd37645dc9e9253410e0b2093cd2e6b04dc
2018-07-19 23:14:32 +02:00
Bruno Martins
cac57c8547 privapp-permissions: Add new Dialer permissions
* Required for call recording

Change-Id: Ie35e872b54feb1d4dca7cee144a1e3ace16439e2
2018-07-18 15:25:06 +01:00
LuK1337
fd798c5177 addonsu: Fix installation on TWRP A/B
* These checks need to be added back otherwise it fails to
  extract files due to 'Too many symbolic links encountered' errors.
* Log:
Installing su addon...
Installing su addon...about to run program [/tmp/mount-system.sh] with 1 args
Extracted file "/system/xbin/su"
Extracted file "/system/addon.d/51-addonsu.sh"
failed to create dir for /system/etc/init/superuser.rc
script aborted: set_metadata: Error on lstat of "/system/etc/init/superuser.rc": Too many symbolic links encountered
set_metadata: Error on lstat of "/system/etc/init/superuser.rc": Too many symbolic links encounterederror: 25
cause: 111
Updater process ended with ERROR: 7

Change-Id: Ibf5082756063f7e703cbc47cf9642677983874ac
2018-07-16 04:59:26 +02:00
Nolen Johnson
611638e195 apns: sprint: Default to legacy n.*, allow x.* as an alternative
* Newer Sprint devices will only get LTE on the x.* variant of
  the APN. Though, using this breaks all legacy Sprint devices
  LTE connection. until we have a majority of post 8996 era
  devices, default to the n.* variant of the APN.

Change-Id: I95a26a5d3175dbf6ebd4eb78e9f2720017c8c7e2
2018-07-16 04:59:02 +02:00
Luca Stefani
a9a9cc730c extract_utils: Newline love for adb extraction
Change-Id: Ibbf7a03ed6920d556ed7658c277f37b02d8876b8
2018-07-12 21:28:21 +02:00
Dan Pasanen
bccc735d89 apns: sprint mms: mms.sprintpcs.com > oap7.sprintpcs.com
Change-Id: I64ab9df7877fdb4ea04fce5d377af694e84e8e3e
2018-07-09 08:13:13 +02:00
Dan Pasanen
1ddb6489ae apns: sprint: n.ispsn -> x.ispsn
Change-Id: I3d8074eccd43426cc9db9b49108a189177713d04
2018-07-09 08:13:13 +02:00
Bruno Martins
444a366a68 build: Add support for sdm845 platform
Change-Id: Icda63780d7a422303c73f77bd888c1b30bd4bf79
2018-07-09 00:42:54 +02:00
Adrian DC
a8e06d3593 envsetup: Filter unique push paths in dopush
* Reverse the FILE and TARGET handling to sort
    and filter unique paths to be pushed

 * Resolves the 'mkap systemimage' where
    /system/etc/nano/* symlinks were pushed
    multiple times in loops

Change-Id: I178cec2e1708ad9239d9e544544fca157639e3b5
2018-07-08 20:20:53 +02:00
Adrian DC
6393a3f083 envsetup: Fix adb recovery state detections
* The original commands were checking a file,
    and validating that adb ran without error,
    resulting in an always-true result

 * Fix eat and _adb_connected by properly
    checking the 'test -e' error code

Change-Id: I49f82f04f4b51097be76f03bf7021203665da76f
2018-07-08 20:20:53 +02:00
Vladimir Oltean
d577325ae2 extract_utils: make get_file() able to search paths with and w/o /system prefix
Change-Id: I75eba627646caa8ceb8a30575124c57e5ee9445c
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-07-08 20:14:12 +02:00
Vladimir Oltean
5f15e3e63c extract_utils: extract(): fix src not being searched in "src:dst;args" spec
* Root cause of the issue is improper naming of variables. Turns out,
  there was no variable to even denote where the blob should have been
  searched for, at "src".
* Previously there was one such variable, suggestively called "TARGET", that
  was desperately trying to serve as both, depending on who +2d hacks harder.
* One such example is "c982836 extract_utils: Fix makefile generation issues".
  That patch deliberately trimmed the "src:" from a spec (therefore
  obviously breaking the search at src) but enabling the searching at
  dst, via the good-for-all TARGET variable.
* This patch introduces the following variables:
  - SRC_FILE: absolute path corresponding to SPEC_SRC_FILE in the
    Android filesystem.
  - DST_FILE: absolute path corresponding to SPEC_DST_FILE in the
    Android filesystem. Somewhat analogous to the old TARGET variable,
    but actually contains the leading / as well (/system/bin/adsprpcd
    instead of system/bin/adsprpcd).
* Use existing common get_file() function (which previously was
  impossible to use, because it was impossible to determine calling
  arguments properly) to reduce complexity of handling adb and disk
  image as blob sources.
* Via the new SRC_FILE and DST_FILE variables, search for a blob in all
  possible locations (including paths stripped of "/system" which
  transforms an absolute path in the Android filesystem into a proper
  relative path to that file in a disk image).

Change-Id: Ic40fb4dc93541d8b3f33fde586b773199cf4ded2
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-07-08 20:14:12 +02:00
Vladimir Oltean
d674771760 extract_utils: extract(): rename DEST variable to VENDOR_REPO_FILE
* This denotes the path of the file that results from the extraction
  process, relative to the "proprietary" directory.
* This is a cleanup patch.

Change-Id: I38e759bb6ed697f0a31ca35a7aa9b9b92f8b6793
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-07-08 20:14:12 +02:00
Vladimir Oltean
d652a0675c extract_utils: extract(): rename ARGS variable to SPEC_ARGS
* This is a cleanup patch.

Change-Id: I2a4aac840c06c4f9b94b77b32ead33352ce395ff
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-07-08 20:14:12 +02:00
Vladimir Oltean
da3b64413d extract_utils: extract(): rename FILE variable to SPEC_SRC_FILE
* This is a cleanup patch.

Change-Id: I971b2b9eba5c1f303c0d5f902feaaad25b3b26ed
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-07-08 20:14:12 +02:00
Vladimir Oltean
411e0695f2 extract_utils: extract(): rename FROM variable to SPEC_DST_FILE
* This is a cleanup patch.

Change-Id: I308b0478484ccf9a594078825731606fce5f5507
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-07-08 20:14:12 +02:00
Vladimir Oltean
9564328417 extract_utils: create src_file() function to mirror behavior of target_file()
* This is a cleanup-only patch.

Change-Id: I144252de765686ac3469652994a04820ecc96d4d
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-07-08 20:14:12 +02:00
Vladimir Oltean
2654eaa7ef extract_utils: prefix_match(): do not strip target_args from its output
* The write_product_copy_files() and write_product_packages() functions
  rely on its undocumented behavior of keeping target_args in the
  returned list, because they are users of target_args (such as
  ";PRESIGNED" etc).
* Make the behavior documented.

Change-Id: If71595dca32abd40039706d4fed2d7f12e005365
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-07-08 20:14:12 +02:00
Vladimir Oltean
6a7946baeb extract_utils: target_file() and target_args() cleanup
* Strip target_args from target_file at callee instead of at caller
* WARNING! Changes (improperly documented) behavior of prefix_match()
  function, which is expected to not strip target_args(), and the root
  cause why stripping target_args was currently done at caller. Will be
  addressed in next patch.

Change-Id: I820d2350aa64ff41374809fcb22f812257132652
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-07-08 20:14:12 +02:00
Vladimir Oltean
59074e6832 Revert "extract_files: Add support for paths without system/"
This reverts commit 8b87b09ef7.
This will be addressed cleaner in the cleanup commit to follow.

Change-Id: Iec013bfafdbb334ab2657b10c433158002809b62
2018-07-08 20:14:12 +02:00
Vladimir Oltean
a8b4f887ea Revert "extract_utils: Fix makefile generation issues"
This reverts commit c982836ca6.
This breaks extracting from src in "src:dst", such as from a disk image.
Will be addressed in the cleanup commit that follows.

Change-Id: Iff84a926f0c3bf908320b43ba40235e0a89db644
2018-07-08 20:14:12 +02:00
Demon Singur
e6c0c259fe vendor: build black style
Change-Id: I35026f9c19b5fca2402b7dc937e789aa9e997bb6
Signed-off-by: Joey <joey@lineageos.org>
2018-07-05 21:15:37 +02:00
Luca Stefani
bca9493c45 Add Iliad APN
Change-Id: If6b77458a38b63fdde672714fcc863acd5f47780
2018-06-27 14:22:11 +02:00
James Hilliard
ed3d536151 apns: Add missing sprint roaming APN and set bearer_bitmasks
BUGBASH-780

Change-Id: Ie31e3fda79ee6c9ed02d811e45c63b3231e76227
2018-06-26 20:41:26 -04:00
LuK1337
d39046460e bfqio: Fix warning when building with BOARD_VNDK_VERSION := current
Change-Id: I4f38c80974c403282af6a0a0d4a4c98db63f212f
2018-06-27 00:35:37 +02:00
Bruno Martins
e68dd977e4 vendor: fix ro.adb.secure for vendor-building devices
* This ensures the prop is set correctly for devices
  that build a vendor image by placing the prop in
  /system/etc/prop.default, rather than /vendor/default.prop
  so it'll be in a prop file that is run for mangle_default_prop
  in build/make/tools/post_process_props.py, therby
  setting persist.sys.usb.config correctly to "none".

Change-Id: I4027541cf1eae9dd967636efe35de9578922b725
2018-06-26 06:25:09 +02:00
Eric Meddaugh
a045e5d39e apns: Adjust Sprint LTE internet to allow tether
Change-Id: I5a2b4924a1d61f1d15de8d148c2e1cbbaa6db16e
2018-06-25 17:39:56 +02:00
Christopher N. Hesse
1f94c931e0 addonsu: Fix package for modern devices
Recent devices (e.g. Pixel 2XL aka taimen) do not define any "system"
partition in their fstab, so a plain "mount /system" fails.

Furthermore, trying to get the entry from /etc/recovery.fstab also fails
because the partitions have slot suffixes (e.g. system_a).
So for these devices, we need to figure out the active slot, mount the
system partition (which really contains the whole root) and lastly mount
the actual system partition from the rootfs.

Change-Id: Ibb73a82896c1f6ce6af9c334b8d0908a183913b9
2018-06-22 16:34:05 +02:00
Dan Pasanen
524fe03bfb backuptool: introduce addon.d script versioning
* Since A/B addon.d scripts are going to need to do things in a
  specific way or things could go horribly wrong for a user, let's
  introduce versioning so that scripts can claim to be compatible.

* A script can denote it is compatible with addon.d version 2 by
  adding: "# ADDOND_VERSION=2" somewhere in its script.

* Only A/B will require version 2 scripts for now, and version 2
  scripts will still run on non-A/B. Additionally if a script does
  not explicitly denote its version, assume its version 1.

* Version 1: The same old scripts we've always used. We cannot assume
             these will all work with A/B backuptools.

* Version 2: Scripts that denote they are compatible with version 2
             must be aware of the fact that A/B devices will run this
             script for a rom, during a seamless update, mounted at
             /postinstall. The best way to ensure compatibility would
             be to use the pre-designated functions found in the
             backuptool[,_ab].functions scripts.

Change-Id: I5573018dabd21bb64c7c964e2081806072a75243
2018-06-22 16:24:09 +02:00
Dan Pasanen
4a049b563c vendor: add custom backuptools and postinstall script for A/B OTAs
* A/B OTA devices wont run backuptools in recovery (because they don't
  go in to recovery to do an OTA). In these cases let's use a modified
  version to backup/restore from within android upon postinstall.

* Add backuptool_postinstall.sh which will be run prior to the normal
  postinstall script in order to backup/restore via addon.d scripts.

* This needs to be done in such a manner because we need /postinstall
  mounted rw instead of the ro with context= options which are used for
  the normal postinstall (dexopt) script.

Change-Id: I51511870634dd1ec5388adafddb446f95cc5a950
2018-06-22 16:09:56 +02:00