Commit graph

3151 commits

Author SHA1 Message Date
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
Paul Keith
35b22a327f lineage: qcom: Enable media extensions for all QC devices
* This is now needed for the latest legacy HAL1 hacks, which were
  previously the only devices not using media extensions.
* Enable it for all QC devices to avoid running into
  issues with devices not having this enabled in the future.

Change-Id: I484840e712f7da6d0064a5f8016e8061b9cba838
2018-04-26 05:18:32 +02:00
Adrian DC
41927e4838 soong_config: Add TARGET_HAS_LEGACY_CAMERA_HAL1 variable
* Soong product variable 'has_legacy_camera_hal1'

Change-Id: I10800cba0c431297b5d7aad6e97d57a01232d73e
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2018-04-24 00:17:32 +02:00
razorloves
a9e0134376 apn: Update APNs for MetroPCS
- Add missing ims apn. Without this, pixel and nexus users were not
    able to use ims features.
  - Set the mtu value. This improves data connection reliability.
  - These changes match with pixel's aosp apn.

Change-Id: I170de2c92cc916424c266dc972a6538599640b7c
2018-04-23 19:34:18 +02:00
Michael Bestas
9e6bde5205 envsetup: Fix lineageremote for caf projects
Change-Id: I9d98cef27deea805904f4500c4bc02905da885f4
2018-04-22 03:45:42 +02:00
Dan Pasanen
f7b93ce5a0 lineage-radio: disable ims services on ro.radio.noril
Change-Id: I598dbaaaead2c9cfd50cd41f3bed193dfe17e147
2018-04-20 05:51:44 +02:00
Nathan Chancellor
ca40331215 build: kernel: Use LLVM_PREBUILTS_VERSION if no version is specified
Some ROMs may want to track Google's master branch, which has Clang 6
and 7 toolchains available, as it gets rid of some hacks in the kernel
source. Unfortunately, with the current default choosing logic, the
latest one would be chosen, which it shouldn't be. Use the variable set
in build/make/core/clang/versions.mk, as that's what was intended.

Change-Id: I607c7f750f62caabee4cdccea67846feb7f632fa
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
2018-04-16 20:56:13 +02:00
ReedN
3bcf10a442 Fix Android "Work Profiles" also known as AfW 'Android for Work'
Android for Work (AfW) has 'Work Profiles' that allow separated profiles
to be created so employers can allow employees to have work e-mail on
their phones (for example).

To work properly the 'ManagedProvisioning' module needs to have a proper
set of vendor required apps specified in the
'vendor_required_apps_managed_profile.xml' file.  This is the task of the
OEM so that they can specify which apps will replace stock apps.  This is
the reason why the stock AOSP code is blank.

There is a set of minimum defaults needed as specified in Android documentation:
https://source.android.com/devices/tech/admin/implement#required_apps
(They give an example from a Nexus phone)

With the default set apps correctly specified Google's open source test code
'Test DPC' should be able to complete successfully.

https://github.com/googlesamples/android-testdpc/
(Also available on Google Play:  Example code distributed by
Google to help developers implement)

The changes contained here allow LineageOS to successfully create a
'Work Profile' with 'Test DPC'.

Change-Id: I6b8ccb53149e9070712eac329e44f6c72f812410
(cherry picked from commit ac0cb02076386aff20c0af164845a89308b4dff9)
2018-04-14 20:21:37 +02:00
razorloves
86f03b8f83 apn: Add protocol for fido and rogers
Pixels will only establish a data connection to these carriers using
IPv6, so this fixes the reports of no cellular data and no mms.
Also, this matches with what aosp has.

Change-Id: I07768f817cf6bb4997dd737cc467fb146c959434
2018-04-14 04:27:59 +02:00
Simon Shields
8d96edd816 build: dt_image: support prebuilt DT images
If for whatever reason we need a prebuilt DT image,
it has to end up in target files for the signing slave.
Change BOARD_KERNEL_PREBUILT_DT to hold the path of the
prebuilt DT image, if it's going to be used.

Change-Id: I8042d347d271da5c3963824777d399bbc4229aa9
2018-04-13 22:08:42 +02:00
Simon Shields
9b69c8900b lineage: enable building otatools with generic targets
Change-Id: I4bbd32378e159084f8e5dfb852749f77feb31788
2018-04-12 16:35:08 +02:00
Vladimir Oltean
a48b9fe9b6
write_makefiles: fix paths in BUILD_PREBUILT with destination
* proprietary-files.txt entries such as
   "-app/TimeService/TimeService.apk:priv-app/TimeService/TimeService.apk" should
   generate a "LOCAL_SRC_FILES := proprietary/priv-app/TimeService/TimeService.apk"
   in the Makefile definition.
 * However, currently, the prefix_match function is being called on the whole
   PRODUCT_PACKAGES_LIST entry (whole line, including ":"), and therefore,
   TimeService.apk would be included in the APPS list instead of PRIV_APPS.
 * Furthermore, because of the incorrect prefix_match, the generated
   LOCAL_SRC_FILES is "proprietary/app/priv-app/TimeService/TimeService.apk",
   which breaks the build because there is no file at that wrong path.
 * The fix is to make the extract function match up with write_product_packages
   by applying the target_file function on all BUILD_PREBUILT source files.

Change-Id: Ib4859b8854db0f2142bb3f28cce8dd25f7141732
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-04-09 12:55:31 -07:00
Gabriele M
af970b695c repopick: Allow to pick changes by URL
Change-Id: I460c987cc03c4f6ff03ecab1bc39e52cec413c13
2018-04-05 17:34:16 +02:00
Gabriele M
88c0e5d1af repopick: Actually print the patchset number
We are printing the change number twice...

Change-Id: I4f63766d4162f5d016badad662842badd6da3588
2018-04-05 17:34:15 +02:00
Gabriele M
de9e0ae0a5 repopick: Ignore the trailing slash in change numbers
Trailing slashes cause 'patchset' to be an empty string, which
cannot be converted to an int. If we have a trailing slash, ignore
it and pick the current patchset.

Change-Id: Ifad60b7f6ff3dcfd9dd80b2e93b1f909aa360666
2018-04-05 17:34:15 +02:00
Gabriele M
5b610aede3 repopick: Try to keep the changes sorted
Sort the changes according to their parent first and then according
to their number.

Change-Id: Iebdb8789728b2ccd528e19437e162129eb27973c
2018-04-05 17:34:14 +02:00
Giuseppe Barillari
d96e292164 lineage: Camera2 priv-app permissions whitelist
Change-Id: I5247f0640a2b842a9930f0f7a1d1a794751f100f
Signed-off-by: Giuseppe Barillari <joe2k01dev@gmail.com>
2018-04-05 05:12:11 +00:00
Abhisek Devkota
63fb87ba47 vendor: More priv-app whitelist updates
Output of https://source.android.com/devices/tech/config/perms-whitelist

Change-Id: I68ec610cf99399016fe1482730791c9b5e8ae1f5
2018-04-05 05:12:00 +00:00
Paul Keith
a23592c7e9 Revert "LOSCoins"
This reverts commit c9c7968e59.

Change-Id: I20259fea456b415e5136e241e47e08df1a3b0fb5
2018-04-02 00:45:00 +00:00
Joey
c9c7968e59 LOSCoins
Change-Id: I433740f2e3102eeb06b471e80ca6539971a05613
Signed-off-by: Joey <joey@lineageos.org>
2018-04-01 07:42:00 +00:00
Joe Maples
9be579f8d7 extract_utils: Use vdexExtractor for extracting oreo classes.dex
vdexExtractor is a tool made by anestisb that is written in C++
with code taken directly from art. However, anestisb has also added
a quicken decompiler to oatdump that was merged upstream, so we only
need vdexExtractor for 8.1 and 8.0.

Change-Id: Ic2cf2dc627a1ad2fa4d500d02d9eac8b8a9577b5
Signed-off-by: Joe Maples <joe@frap129.org>
2018-03-30 20:46:07 +00:00
Alexander Kaindl
fb7b1fd92a apn: Add APN for spusu MVNO
Change-Id: I3772b955f758083986d8d2862cf3ec32609c19a1
2018-03-29 18:28:19 +00:00
Joey
7091a4ff7a Make Cyan[...] great again!
Change-Id: Iac2b7ccc5a3a26a36d5651923011064b3363b156
Signed-off-by: Joey <joey@lineageos.org>
2018-03-29 08:27:23 +00:00