Commit graph

3213 commits

Author SHA1 Message Date
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
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