Commit graph

3384 commits

Author SHA1 Message Date
Rashed Abdel-Tawab
a836d79629 lineage: Move some kernel definitions to BoardConfigKernel
Kernel source settings should always come at BoardConfig population
time so things that use the variable later don't end up pointing to
an empty or wrong variable.

The following is also squashed in:

Author: Christopher N. Hesse <raymanfx@gmail.com>
Date:   Fri Aug 10 00:23:54 2018 +0200
    tasks: kernel: Honor prebuilt kernel flag
    For devices that want to use a prebuilt kernel, TARGET_KERNEL_SOURCE
    would still be set to TARGET_AUTO_KDIR, meaning the build system would
    still try to build the kernel if TARGET_AUTO_KDIR was present.
    Setting TARGET_PREBUILT_KERNEL indicates this is not wanted, so don't
    attempt to do it.
    Change-Id: Ic79b3ac1b9c946fd258ada43dce2b08bb74ea0d9

Change-Id: If046b86ff0d18c76898e90295be873a8379f678a
2018-10-20 21:50:38 +02:00
Paul Keith
cd6a1689a0 Revert "soong_config: Add TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS"
* The per-process API level override will take care of this

This reverts commit cf7f7d48d0.

Change-Id: I3c0b5879ddf8e9dcc0b56a6e9a2855e515685389
2018-10-19 02:20:24 +02:00
Michael Bestas
c77bb3a5ba kernel: Correct CROSS_COMPILE_ARM32 toolchain
* Missed in the original commit that switched to
  androidkernel toochain

Change-Id: I9b6d2e7216b48d22bcb7eec62c4fd9c05a895d18
2018-10-10 18:30:54 +02:00
Youhan Wang
fa7702c08d RJIO: Change Roaming protocal to IPV4V6.
Bug:19664
Change-Id: Icf80b445de9fd0fab9ac708c8c153faa5ad5fd9e
2018-10-07 16:33:57 +02:00
Meng Wang
f130a434b6 apns: update RJIO APNs
Changes:
1. Rename "Internet" to "JIO 4G" per carrier request
2. Make IMS APN invisible per carrier request
3. Remove "carrier_enabled=true" to reduce
   redundency as that's default value

Bug: 32935086
Change-Id: Ic7ce9978ed03aa24f116cad3b4fb049277864b89
2018-10-07 16:33:57 +02:00
TheStrix
5aad07422e extract_utils: Fix output dex file name generated by vdexExtractor
- Reflect the changes required by:
   ff58255706
 - Also fix JARVDEX file path for deodexing jars

Change-Id: Ief355b0bd9e69a67b552d0bd2060f43adb39fb5f
2018-10-07 12:17:35 +02:00
codeworkx
1c29bf66dd extract_utils: add CDEX support via compact_dex_converter
Source: https://github.com/anestisb/vdexExtractor#compact-dex-converter

Change-Id: I63664cae02e51a05e5a62c0c5c0595eead6c6513
2018-10-05 18:25:46 +02:00
Han Wang
c5175f31f3 overlay: Remove config_persistUsbDriveNotification
* No one changes this overlay, so we assume it always be true

Change-Id: Iaa5674a7c5c20a2bad59acaea66629c720710a91
2018-09-30 02:32:28 +02:00
Nvertigo
1682f8a763 apns: NOS: fix tethering and mms.
This fixes BUGBASH-2328 for Portuguese carrier NOS (mcc="268"
  mnc="03").

  This is an ugly workaround since you can't edit the APN definition
  anymore: if you try to save an APN with type dun, you get the error
  message: "Carrier does not allow adding APNs of type dun." But it's
  working.

  Since the preinstalled APNs does not need to be edited and this
  doesn't break anything else for this carrier, this is acceptable.

  Thanx to tfae@xda.

Change-Id: Ic81a9549bf9610805e68b9be56c811b008cbdacb
2018-09-30 01:04:24 +02:00
codeworkx
485f65f633 tools: update smali/baksmali to 2.2.5
Change-Id: I0d9b2f8acde17b20576d66d87ab9a8c51865e4dc
Source: https://bitbucket.org/JesusFreke/smali/downloads/
2018-09-24 16:22:10 +02:00
codeworkx
fcad7cfc40 tools: update vdexExtractor from 0.4.1 to 0.5.2 for P compat
Source: https://github.com/anestisb/vdexExtractor

Linux
Compiled on  : Arch Linux, 4.18.8-arch1-1-ARCH
Compiled with: Clang 6.0.1 (tags/RELEASE_601/final)
Target: x86_64-pc-linux-gnu

Darwin
Compiled on  : MacOSX 10.13
Compiled with: Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.4.0

Change-Id: I4f1ac8a9aa01887edf54a4f59e4a99f34e870606
2018-09-24 16:22:09 +02:00
Paul Keith
1b5fa5e8c6
lineage: Use add_json_str_omitempty directive for TARGET_LD_SHIM_LIBS
* The code is ifdef'ed out, so let's match that expecation here

Change-Id: I59c8e276c3dd28c4f46222f66d626e48b2aa6551
2018-09-22 07:59:58 -06:00
Danny Baumann
fc6e3810e6
soong_config: Allow process-specific override of target SDK version
Change-Id: I775e852c17af12d2233e644e3db10c10bcb20d19
2018-09-20 19:24:38 -06:00
codeworkx
d51aef27d5 lineage: disable adb auth on eng build
We have to set ro.adb.secure to 0 on eng builds to get access.

Change-Id: Ie128f78c52c2f46b0a26d57eeed6a186aa7d9b67
2018-09-14 14:35:14 +02:00
Sam Mortimer
af96975506 vendor/lineage: Add support for java source overlays
*) Set JAVA_SOURCE_OVERLAYS in a device makefile as follows:
   # Java sourcefile overlays (for Android.bp built modules only)
   # Format is a whitespace separated set of rules, each of which
   # structured as follows:
   # modulename|overlay directory|glob pattern within overlay dir
   JAVA_SOURCE_OVERLAYS := \
           org.lineageos.hardware|$(LOCAL_PATH)/lineagehw|**/*.java

*) As of this commit, java sources overlays are only allowed for
   module org.lineageos.hardware.

Change-Id: I6be1c12567081357f5231a84df98ac002c0563b4
2018-09-12 19:50:45 +02:00
Kevin F. Haggerty
59009f8a5e soong_config: Allow extension of valid gralloc 1.0 buffer usage bits
* fw/native change I7f4174581e24e361577640b9263514a168ed482d
  implemented validation of the buffer description info prior to
  creating the descriptor. Some of our legacy devices need to
  whitelist additional usage bits to support various functionality.
* The TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS variable can contain
  a singular roll-up value (e.g., 0x02000000U), a left-shifted bit
  (e.g., (1 << 25)), a bitwise OR of these things, or essentially
  anything that the compiler can choke down.

Change-Id: I2127d33b03426b5e0f981aae837e07d82163fa17
2018-09-10 23:31:20 +02:00
Rashed Abdel-Tawab
403a0ad3d8 overlay/common: Unlock swipe gesture nav bar
* The setting will only appear on devices with software nav bar.

Change-Id: I243992335282456aa8198228382094ddeb5e577b
2018-09-09 19:39:42 +02:00
jhenrique09
d36312c1fd overlay: Set searchbar and suggestion corner radius
Change-Id: Ife8253f423c61c59437df82494e95ecf54f34e04
2018-09-07 17:23:44 +02:00
Ethan Chen
7992a6e919 qcom_target: Add wlan-caf to CFI paths
* The default AOSP hardware/qcom/wlan path is listed in
  PRODUCT_CFI_INCLUDE_PATHS since wpa_supplicant is compiled with
  control flow integrity checks. Add the Qualcomm WLAN variant to
  PRODUCT_CFI_INCLUDE_PATHS as well so wpa_supplicant can safely link
  it without exploding.

Change-Id: Id5577846e1e1ea11f8a665d62847c80803e285f7
2018-09-07 10:43:18 +02:00
Adrian DC
0f8230b528 repopick: Warn about empty commits instead of failing
* If a cherry-pick results in an empty commit
    (hints about git commit --allow-empty),
    we should warn instead of failing all repopicks

Change-Id: I8410d7d02c4118c8072de609cf3c291e2d8523e6
2018-09-05 22:41:06 +02:00
Rashed Abdel-Tawab
a94cf0c781 qcom: Declare PRODUCT_SOONG_NAMESPACES for HALs
HALs are starting to move to blueprint files, which means that pathmap
ifeqs no longer work. This results in modules with the same name in
different platform HAL directories. Since these modules aren't used or
linked anywhere outside the HAL directories and a device's device.mk,
we can safely use a soong namespace to isolate the different HAL
directories' blueprints. This defines the PRODUCT_SOONG_NAMESPACES
make flag so make knows which namespace to look in as well.

Change-Id: I549e6da863465d79b12c7453aa169d5d963afa52
2018-09-03 22:30:59 +01:00
Rashed Abdel-Tawab
b8ac142535 lineage: Move QC board variables earlier
These variables are usually set in a device's BoardConfig, setting them
in qcom_target is at the very end of the "configuration process" which
results in them being unavailable to plenty of other configuration
"things" (ex. soong namespaces or soong config). Move them to right
after a device's BoardConfig has been found and loaded.

Change-Id: Iddd731202d22ed3f8eb010197ce20d3c75a1f40a
2018-09-03 22:30:59 +01:00
Kevin F. Haggerty
d1ec4b453c soong_config: Add add_json_str_omitempty function
* This function wraps add_json_str so that it does not add the soong
  variable key:value pair to json structure if the second argument
  (value) is empty/unset, preventing the need for more complex
  conditional logic in the middle the code that builds the struct
* This concept allows us to make use of the omitempty field option
  for purposes like single variables controlling ifdef blocks as well
  as carrying the desired value

Change-Id: I99c8c162069c2aa8ff3d0bab2636b01181e74a9d
2018-09-03 08:21:15 +02:00
Bruno Martins
d4e632e9d1 overlay/common: Do not show wallpaper attribution
* We do not ship Google's wallpapers

Change-Id: I7203aaf2c3a426fcc303cd3b3fa13085a8a99b0c
2018-09-03 01:01:14 +02:00
Luca Stefani
d934700c0d build: Add dtbo task
Change-Id: I1101cb204ab583a204447d63e6a031a17179dfe7
(cherry picked from commit 8bffb053db418022c7cba5d67234412edd675862)
2018-09-02 13:08:16 +02:00
Michael Bestas
a504aa4498 envsetup: Add githubremote function
* Useful for picking changes from our repositories
  to AOSP based repositories before forking them

Change-Id: I4f1d733354591fd3db431dd590ccf46e12f6a342
2018-08-30 23:17:00 +02:00
Luca Stefani
dab1569b81 Add rules for non platform apps that use hidden APIs
Change-Id: I483f00cc0735f47665c5cb61ed0a187fb4e7d655
2018-08-30 20:51:09 +02:00
LuK1337
040b292b8d privapp-permissions: Add FlipFlap permissions
Change-Id: I6be90c2558c439d3994f6438690d7b3d84069ef6
2018-08-28 02:14:34 +02:00
Bruno Martins
b169042dfe soong_config: Remove extra spacing
* Let's not rewrite the whole list while adding new vars

Change-Id: Icab6116839bbb74a75d207310562faf9d780828b
2018-08-27 10:08:54 +01:00
Ethan Chen
53f62b407b config: Use standard inherit-product-if-exists for vendor/extra
* prepend-product-if-exists was developed specifically to handle some
  special cases where Cyanogen Inc configuration ordering needed to be
  handled ahead of the standard inclusion order.

Change-Id: Ia3e041fb9e3c84d0763d18e4a401121bc210b976
2018-08-27 09:51:45 +01:00
Joey
7b701643b0 lineage: enable roundIcons by default
We're using circular shape for adaptive icons,
by turning roundIcons on we either get
better circular icons (for apps such as Chrome) or
the same icons as before.

Trebuchet will still allow to swap icons shape

Change-Id: If64ecb427b98e099c55fd3eebdb49dad9cb3dbf2
Signed-off-by: Joey <joey@lineageos.org>
2018-08-27 09:51:27 +01:00
Paul Keith
46de78018c lineage: Disable IPv4 for T-Mobile (and MetroPCS) domestically
* T-Mobile's domestic network is IPv6 only, and T-Mobile
  support recommends setting IPv6 only for max compat
* T-Mobile support also recommends IPv4 only for roaming,
  however compat issues have been discovered in the past
* Switching to IPv6 only domestically fixes an issue with
  literal IPv4 addresses failing to resolve properly on ether

Change-Id: I7e394c6b7eebf9c106eaea5e000fe021adf421e6
2018-08-27 09:49:55 +01:00
Rashed Abdel-Tawab
ebdb57604c
lineage: Ignore neverallows
Change-Id: I35a39ec73c0047f93124f72249a6fa936fe0875a
2018-08-25 14:27:34 -07:00
Rashed Abdel-Tawab
6b3bcf2531 overlay: Enable rounded corners for dialogues and buttons
Change-Id: I92bca0b670b93390582ba28ed6c582c83d976828
2018-08-25 15:15:00 +08:00
Bruno Martins
bd9f8a4be6 overlay: Remove back button panic overlay
* Google decided to kill the feature.
   See the related fw/base commit for reference:
   bb97879c95

Change-Id: Iaa85020c4b2ab69d4e7cf7415e04e08990a9ea4d
2018-08-22 22:20:20 +02:00
Rashed Abdel-Tawab
658abd5f3a overlay: Fix status bar padding for all devices
Pie's date in the notification panel is screwed up with 0 padding sadly.
(observe the date above the wifi toggle)
Before: https://ibb.co/jAQxVp
After: https://ibb.co/n7BRO9

Change-Id: I85b51c9c6e74789bef9f7c30443fa019c093f20f
2018-08-17 00:43:28 +01:00
Rashed Abdel-Tawab
37fd8844be overlay: Default materials buttons to not all caps
Change-Id: I1916f33d82ef4e103e6d69359489b4eac5425224
2018-08-16 14:27:42 +01:00
Rashed Abdel-Tawab
e4868ccb6b lineage: Exclude all lineage overlays from RRO
None of this is device specific and therefore needs to be excluded from
RRO overlay packages

Change-Id: I24d882b783a8d7c9e494298e2c26c8ef689a515a
2018-08-16 14:27:42 +01:00
Bruno Martins
8d3ac29f24 config/common: Clean up debug packages
* Include all debug packages via PRODUCT_PACKAGES_DEBUG.

 * Remove oprofiled and sqlite3 from the list, because the former
   no longer exists and the latter is already part of
   build/target/product/core_base.mk. Also remove gdbserver, since
   it's already built by default.

Change-Id: Icde54061cd5a85d381b756364287344c3d216957
(cherry picked from commit e4d54e65cef919a77d51cce721eb741d2e512688)
2018-08-16 14:27:40 +01:00
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