Commit Graph

3173 Commits

Author SHA1 Message Date
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
Bruno Martins
c77fba3153 apns-conf: Remove obsolete APNs for PT carriers
Change-Id: Ib815841d8deae6bca971e2e53db383c0fe1cd6a0
2018-06-17 12:42:29 +02:00
Michael Bestas
307008e754 lineage: qcom: Set thermal & vr HAL pathmaps
Change-Id: I1f9e5060764fe8e4e0f58c0ded1f6bf1b28c0567
2018-06-12 19:01:16 +02:00
Gabriele M
0fcc122018 repopick: Update SSH queries result to match HTTP queries
Needed after the recent repopick changes.

Change-Id: I14f57afefeb9579d1d9896d8dc4512645b5b68e9
2018-06-11 22:52:51 +02:00
Joey
579241a761 vendor: introduce Trust interface
Change-Id: I1af2e4caab08b6b77db56e1be62247e55cd5a270
Signed-off-by: Joey <joey@lineageos.org>
2018-06-03 21:59:17 +02:00
Michael Bestas
132c6018fb lineage: qcom: Enable TARGET_USES_COLOR_METADATA for msm8937 & msm8953
* This is set in qcom device trees for all UM platforms

Change-Id: I6feb714e725e7cd81a4428d16a89954b796fac70
2018-06-03 00:03:42 +02:00
Ethan Chen
70c217a5b8 build: Clean up makefile inclusions
* Include MTK/QCOM rules directly from the build/core/config.mk hook.
* Place main.mk hook and main_version.mk into build/core with the rest
  of the make system hooks.

Change-Id: Iad2f808f3e3eefbd2be2ca5facb907ff31babbb7
2018-05-30 21:50:44 +02:00
Olivier Karasangabo
a596b92246 apns: Add UPC Mobile
Change-Id: I0ab1433337d4f0b334db2fd926bb69d4561b1ff6
2018-05-28 21:56:43 +02:00
Ethan Chen
6554f104b5 build: Use TOPDIR, not TOP
Change-Id: I5b2677c22aa878e46e01f4e5b31769e21937c38a
2018-05-28 18:47:48 +02:00
Bruno Martins
8c8d7ef238 clear_vars: Remove Maven leftovers
Change-Id: I2a94d0868334bb4e76398b1b435e67cd8a47e633
2018-05-24 18:20:06 +02:00
Ethan Chen
36ba142248 build: Remove HTTP_PREBUILT
* It appears the only user of this was Gello, which is no longer using
  it.
* Remove this deprecated directive

Change-Id: I6ab869c2f2c3b891b58b9a750e7ce882f169f296
2018-05-22 23:42:08 -07:00
Ethan Chen
e00f7c4fe9 build: Remove maven make rules
* These were leftovers from cyngn days

Change-Id: I11b17e7c8bbba9cf5ca2ccad304654180423f6ad
2018-05-23 00:19:26 +02:00
Adrian DC
9dde3d63e8 backuptool: Temporarily render version check permissive
* Due to both following commits, backuptool went permissive
    and lineage properties got lost from the system on devices
    that do not have BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED

    "backuptool: Take into account new location for system default props"
    Change-Id: I62046447876c2198a0c4f88a4f36f4723d417617

    "lineage: Move to Google's method of defining system default props"
    Change-Id: I6cb0e28a7599b010b389cc541015a37010a00f4b

 * Once the properties issue is properly resolved in the sources,
    a period of time is required for "most" of the users to upgrade
    their system with fixed lineage properties before we break addons
    by repairing the backuptool script globally

Change-Id: Iea8865ea9bb05eed56a8a0a7b95e3f04b01c4bae
2018-05-18 22:04:29 +02:00
Adrian DC
3d92f57ca0 lineage: Isolate LineageOS versions properties for build.prop
* Our properties were supposed to go to /system/etc/prop.default
    after the following commit:
    "lineage: Move to Google's method of defining system default props"
    Change-Id: I6cb0e28a7599b010b389cc541015a37010a00f4b

 * However if BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED is not true,
    only /default.prop will retain the properties contents of
    ADDITIONAL_DEFAULT_PROPERTIES and PRODUCT_SYSTEM_DEFAULT_PROPERTIES,
    and none of our versioning identification was held in the system

 * Enabling BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED globally would
    break all properties on devices that handle partitions usually
    at the device level rather than the kernel due to mounting races

 * Create a new main_version.mk file to isolate LineageOS properties
    that define the system's versions identifications, and use the
    ADDITIONAL_BUILD_PROPERTIES internal build variable to include
    from build/make through a common vendor main.mk entrypoint

Change-Id: I0060141c097b3d14c3710eee1e0caf7110634967
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2018-05-18 20:38:33 +02:00
Christopher N. Hesse
e74d3b7659 verity: Implement verity tool
This allows for toggling block device verification at runtime.

Both A/B and non-A/B devices as well as VB1.0 and VB2.0 (AVB)
are supported.

Change-Id: If6bec67a000074804f71fa098ad46ba395cac635
2018-05-17 13:33:05 +02:00
razorloves
0a0c3e7567 apn: Fix typo in Rogers roaming protocol
Change-Id: I93f3137ffffdbb742dd698dcdc63467db5108004
2018-05-11 19:16:52 -05:00
Eric Meddaugh
28c5dfb43d apns: Adjust MetroPCS apn to allow USB tether
Change-Id: I41f0c7688dc38eb334fabb845f026c37fbb92655
2018-05-11 11:51:51 +02:00
Bruno Martins
be7db53a33 lineage: Remove FFmpeg plugin remnants
* Support hasn't been brought up in Oreo

Change-Id: Ie74dd232d4c45d73c4f6d1a9a03faa065106f85e
2018-05-09 00:31:32 +02:00
Bruno Martins
bc91545931 lineage: Stop inheriting from no longer existing closed sources
Change-Id: Ie0010c0c216f02cc14c91dedae15eb3e87e3d908
2018-05-08 17:21:58 +02:00
Michael W
05e43ffc39 prebuilts: Fix Telfort apn
* Remove proxy
* Source https://android.googlesource.com/device/sample/+/android-7.1.2_r27/etc/apns-full-conf.xml#646 BUGBASH-766

Change-Id: I924169cd3cb3d76d362f71ff6b65dba28b9ef54a
2018-05-05 13:59:20 +02:00
Louis Rousseau
aab3507c00 apns: updated entries for Koodo
Removed proxy values to match current version of
https://www.koodomobile.com/help/setting-data-your-non-koodo-phone

Change-Id: Ic17cb9a9e1f0e59381815a1b2e8eb4f37f3e3e89
2018-04-30 17:48:51 +02:00
Abhisek Devkota
3ef035976c Fix migration from pre-O for AndroidTV devices (2/2)
Change-Id: I81fb44cb18c081d61cab5743b7a1176e6a8fe422
2018-04-27 06:36:25 +02:00
Aaron Kling
6fc81b4b23 Add Nvidia enhancements soong flag
Change-Id: I1bec17d2457944350dcb5a22c6d571d3ace913a7
2018-04-26 05:31:02 +02:00