Commit Graph

2993 Commits

Author SHA1 Message Date
Sam Mortimer
477d8fee68 vendor/lineage: Rebrand cleanup
*) Rebrand remaining text references

Change-Id: I70ffb30519d40237c8266e208449a5e27140d2b3
2017-11-14 05:32:14 +00:00
Gabriele M
e6df25b3d9 extract_utils: Fix pinning when not cleaning vendor dir
Skip the extraction of pinned files if the ones currently available
have the expected sha1. If we don't, we will overwrite pinned files
with potentially incorrect files when the current vendor files are
not moved to a temporary directory (i.e. when not cleaning vendor).

Change-Id: I640d6bf2ed98eb366a4df17f0ebeaec81cb5274b
2017-11-13 12:27:13 +00:00
Rashed Abdel-Tawab
fd8b8290b6 envsetup: Create remotes with build if repo is build/make
Google moved the repo on O and its causing chaos with
aospremote and cafremote

Change-Id: Ie8b02d21c981cabfc95e7c2545194e79734c4de6
2017-10-24 22:01:00 -04:00
Dan Pasanen
edc1cebc2f kernel: clean up this madness
* WARNING: this intentionally breaks the build on devices who
  are not setting BOARD_KERNEL_IMAGE_NAME and are still setting
  TARGET_USES_UNCOMPRESSED_KERNEL or TARGET_KERNEL_APPEND_DTB

* The logic here is insanity and if all of this can be done
  by simply setting BOARD_KERNEL_IMAGE_NAME, why have all this
  extra cruft?

* Use cases:
  - Set a kernel image name without "-dtb" on the end, you get a kernel.
    Nothing more.
  - Set a kernel image name with "-dtb" on the end, you get an kernel
    with an appended dt.
  - Set a kernel image name without "-dtb" on the end, and set
    BOARD_KERNEL_SEPARATED_DT. You get a kernel and a separated dt.img.
  - Set a kernel image name with "-dtb" on the end, and set
    BOARD_KERNEL_SEPARATED_DT. You're crazy.

Change-Id: I5c3fc6eb727255684278ff562c0ee3faa7124b6b
2017-10-17 16:19:19 +00:00
Bruno Martins
a1b47e3d10 Whitelist some of our own broadcast actions
* Starting with Oreo, all the apps that target O+ are always subject to
   background restrictions (android/platform_frameworks_base@42a386b771).

   The manifest-registered receivers of apps with a targetSdkVersion
   higher than 25 won't receive the broadcast. Instead, a message similar
   to the following will appear in LogCat:

       10-07 14:13:49.594   719   736 W BroadcastQueue: Background execution not allowed: receiving Intent { act=lineageos.intent.action.LID_STATE_CHANGED flg=0x20000010 (has extras) } to org.lineageos.flipflap/.EventReceiver

 * Exempt some of our broadcast actions so that we can keep targetting
   the latest SDK.

Change-Id: I075608e18994f64db5e89658757dca307f07c417
2017-10-16 18:47:13 +00:00
Sam Mortimer
c10885231f Refactor Lineage init rc file
*) Put Lineage rc files in /system/etc/init instead of /init.lineage.rc

*) Split into function specific files (vibrator-specific stuff moved to
   our custom vibrator HAL service)

Change-Id: I1d00950253fbf7fdd7a4b7bd52adbed971923575
2017-10-15 03:06:48 +00:00
Gabriele M
6c3c2c0bca extract_utils: Allow to interrupt the extraction
We want to cleanup our temporary files independently on the signal,
so just execute a trap on 0. This will ensure temporary files are
always removed and doesn't require any extra care when trapping
signals such as SIGINT that require an explicit exit call.

Change-Id: Ieff4f15c44a9ac9d5a543d14c140ebd72c0e7344
2017-10-14 22:55:22 +01:00
Sam Mortimer
19ce2d3ad2 vendor/lineage: sdk rebrand: step 2: update file contents
Change-Id: Ib61b9b559c4b0e536979e5cb25fba50aa56c138d
2017-10-12 22:33:59 +00:00
Sam Mortimer
f13a6df311 vendor/lineage: sdk rebrand: step 1: update paths
Change-Id: If51b9122d7d7d0ee25fd77278a808442d461b8a0
2017-10-12 22:33:45 +00:00
Rashed Abdel-Tawab
00c0766852 extract_files: Mark vendor etc files as proprietary
Change-Id: Iad8d87a18e5b1dc68c7f2265c0e35a9313804408
2017-10-08 17:34:12 -04:00
Christian Oder
c16f327f51 extract_utils: cover vendor/frameworks
Change-Id: If60b9b6c47cfd9c32477f92ad87011eddb41753b
2017-10-08 23:17:18 +02:00
Rashed Abdel-Tawab
0ca7643957 extract_files: Add support for treble compatible makefiles
To be honest, this name is a little misleading, this is how it should
have been done in the first place. This allows devices to copy vendor
files to the proper location depending on TARGET_COPY_OUT_VENDOR rather
than hardcoding system/vendor. This allows devices with dedicated vendor
partitions to copy directly to vendor. The only reason it's optional
is that some nexi set TARGET_COPY_OUT_VENDOR to system which would cause
some weird breakage.

Change-Id: Ic46bc1086737835340abef9f61693d386bc6a5dc
2017-10-07 21:24:15 +00:00
Rashed Abdel-Tawab
11186d6c83 extract_files: Adjust deodex path and tmpdir
* Make a tempdir using the mktemp command rather than just making a
  dir in /tmp to accomodate for systems that don't set proper perms
  or dont have /tmp
* Fix the deodex procedure to pull files from the right path

Change-Id: I181863599b6670e3a149069dbb7b13ebf73bae8e
2017-10-07 21:24:15 +00:00
67891abc
d4d509ccf3 vendor: We are now LineageOS
Change-Id: I411cd912eb4fd1f752da03ab8027089aac92fc86
2017-10-04 07:40:47 +00:00
M1cha
15f226c23a extract_utils: implement LOCAL_MODULE_RELATIVE_PATH
Change-Id: Ia97633652ff9647a6e82013b208097be5c5575a9
2017-09-20 22:12:36 -04:00
Rashed Abdel-Tawab
54b5d5e1e5 extract_utils: Add VDEX deodex capabilities for oreo
Oreo introduces new optimized dex files (or vdex). While smali/baksmali
have supported vdex since 2.2.1, you actually have to have the .vdex in
the same location as the .oat or else the smali will fail due to not
finding the .vdex. Copy it (if it exists) and echo a warning since vdex
deodexing is still experimental.

Change-Id: Ic612751be45a8b6e54b8794b426a4d5adbbf13d2
2017-09-20 22:12:36 -04:00
Adrian DC
ac4a1be47b overlay: Remove default APN overlays
Change-Id: I7e7e4bc70d37cfd413ab6d9725fc39dc652ed6e9
2017-09-12 16:05:19 -07:00
Adrian DC
cf7f7d48d0 soong_config: Add TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS
* Soong product variable 'needs_text_relocations'

Change-Id: Ia22c94922f37c49f0d66a67747efa0ee97b4e477
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2017-09-13 00:28:09 +02:00
Simon Shields
7ef0e17066 build: soong: put lineage variables in the "Lineage" struct
Change-Id: I9ed55cea0c55f0078f8f97ad4037b16ed11c0156
2017-09-12 22:25:15 +00:00
Luca Stefani
76dd1e5e16 Charger: Remove old alarm interface and update timerfd interface
Oreo doesn't allow usage of the old alarm interface anymore, so
simply remove it and switch to timerfd. Also update the timerfd
interface from CAF O release

Change-Id: I22fc00630072cbf18976239dc039bf2135946045
2017-09-11 04:10:59 +00:00
Adrian DC
f69910d67f libhealthd: Add android-base and minui include paths
* Required to access android-base/unique_fd.h

 * Includes following commit from CAF device/qcom/common

healthd: Add include path for minui.h
The minui.h header file path has changed such that it
now resides within recovery/minui/include. Update the
healthd makefile to reflect this
Change-Id: I4ed371156b075f5b96404480b3703f113003979b

Change-Id: I60bc31ecaa07dad40b37265ded37d64b492bd029
2017-09-11 04:10:35 +00:00
Gabriele M
f395bed811 Create /data/lineage_updates to store updates
GmsCore deletes the files in /data/ota_package/, including the files
downloaded by Updater. Create a new directory where Updater can store
its files not to have them disappear randomly.

Change-Id: Ifdfbc7f81eb5f2c4370d02f0634c869fdbb848b4
2017-09-02 19:44:15 +03:00
Gabriele M
c7b874ba03 Replace CMUpdater with Updater
Change-Id: I117f6c062177cace86766085d190c629f036d4da
2017-09-02 19:43:28 +03:00
Gabriele M
afbbe4bf7e config: Add new prop for major.minor build version
This only include the major and minor version as returned
by the updater.

Change-Id: I4b203fcddb9ab60958063906c3ed4aa6f0607277
2017-09-02 19:42:57 +03:00
Michael Bestas
9c720fd55d lineage: Remove partner interface
Change-Id: I22ad161f4587703b7f3c2919890a19e69c1a8e0f
2017-09-02 19:39:38 +03:00
Michael Bestas
5eeceeb6a3 lineage: Remove app suggest feature
Change-Id: I3322de2eb8b49fd7b32d03a2c2c0421692c4ff40
2017-09-02 19:38:56 +03:00
Michael Bestas
d0cc480de5 lineage: Remove LiveLockScreenService
Change-Id: I8148e8a6c49f940c23b89e4f5fe697808dd08e93
2017-09-02 19:38:09 +03:00
Michael Bestas
366426fb12 lineage: Remove theme engine leftovers
Change-Id: Ife3fa6d6bfb5994fa120a959e6c5ba1faf6b2416
2017-09-02 19:37:09 +03:00
Michael Bestas
ad3a57032a lineage/aosp/cafremote: Make variables local
* Certain order of running these commands on different repos can
  end up producing broken remotes, because the variables are
  exported globally (looking at you PFX)

Change-Id: I0b679f04264d964ed9a0f0d1adfdbaeac9403ec8
2017-08-27 12:39:42 +00:00
Michael Bestas
af3532bef5 envsetup: Fix lineageremote for AOSP projects
* lineageremote was not working properly for pure AOSP projects
  because there is no github remote.
* Read and convert AOSP remote name if there is no github remote

Change-Id: I629f0a8ae3be09d539e18d63a9738c32fb24496c
2017-08-27 12:39:15 +00:00
Luca Stefani
9f3c85ae11 vendor: Kill telephony-ext
Change-Id: If50a5f28f1d90758f4cddec74b34bf18c2765cfa
2017-08-26 12:04:48 -07:00
Adrian DC
154df245a5 build: Remove breaking global flags
Change-Id: I9bbc75ce4701dc70c17b1d80c40e8b98e961dd2a
2017-08-25 07:57:31 -05:00
André Pinela
f3a4230e9f tasks: enhancement to create LineageOS ota package
- modify for LineageOS
- add bacon target
- don't touch aosp otapackage target

Change-Id: Id243c3099b4914ed3b53efc42c0c7dac9d56dea8
Signed-off-by: André Pinela <sheffzor@gmail.com>
2017-08-25 07:57:31 -05:00
Simon Shields
4ed4605ed8 lineage: add soong bits for boardflags
Change-Id: If01db1eb6b1432a6c4d26d5c9701895ab4dc3ff5
2017-08-25 07:53:37 -05:00
Luca Stefani
19464ebac0 vendor: Kill sepolicy
* Will be re-written in device/lineage

Change-Id: I755d129efbc69b712a20833b7b51187bfd66e844
2017-08-25 07:53:36 -05:00
Luca Stefani
52b7080796 vendor: Add project pathmap defs
Change-Id: I5357eadcf6efe6ddbd6686ed69db0d59114e0a5d
2017-08-25 07:53:02 -05:00
Luca Stefani
c22b0dcf34 vendor: Move to PRODUCT_DEFAULT_PROPERTY_OVERRIDES
Change-Id: I96c4da13c0f15795432eef7af24a21e7a5903cd4
2017-08-25 07:51:48 -05:00
Luca Stefani
75a79d6889 core: Move ro.device.cache_dir to common.mk
Change-Id: Ic2e2284de064c6f9fa1aa8d9ba6b7af19c671c4e
2017-08-25 07:50:34 -05:00
Luca Stefani
076c27b91a vendor: build: Add mk_timer
Change-Id: Ib7ce1e7c662fe0555d296e125241c222f89f671d
2017-08-23 17:33:26 +03:00
Luca Stefani
085af72a05 vendor: build: Kill schedtool
Change-Id: Idd6cc6679b1e84f365a5a18645590c549af20af5
2017-08-23 17:33:25 +03:00
Luca Stefani
74df07039a envsetup: Update mka for O
Change-Id: I36ec10be9152f135ec3645b4304e63ea30d06774
2017-08-23 17:33:25 +03:00
Luca Stefani
eae93144d2 envsetup: Kill mms
* soong/ninja is blazing fast rendering this command useless

Change-Id: I2241d7309f41c0d11b6c32b9a2c1193f6e0a2ab2
2017-08-23 17:33:25 +03:00
Luca Stefani
5c60e4fd24 lineage: Complete the rebrand
* TODO: Rebrand cmsdk when it's in a working state

Change-Id: I0d8d573f9e0032110ae3a0f54ebe11a877b83137
2017-08-23 17:33:22 +03:00
Dan Pasanen
91f7620c4d vendor: change vendor to lineage
Change-Id: I2df13091f5d62b552ef434aef1a389f4fe1249e0
2017-08-23 03:26:28 +03:00
Ashwin Ramesh
b0ea62a5df envsetup: Fix installboot on ZSH
* ZSH errors out when it doesn't find anything in $OUT/system/lib/modules/.
* So add a check to avoid error while using installboot() with a target
  that doesn't have modules enabled.

Change-Id: Ibe66f6962943e9b90c7059a4c9b4ded558318326
2017-08-21 16:46:34 +00:00
Michael Bestas
4279948a43 charger: Remove battery_fail images
* These are copied from system/core/healthd,
  avoid unnecessary build warnings

Change-Id: Id087169ebb2d70d2d1ad4d8c9a8cfd20578fc7f2
2017-08-20 12:58:56 +00:00
Abhisek Devkota
62764465b1 Update initial attach for Tmo US
Change-Id: Ib7b0db56099be1fbe10787014c0b3730edb865e4
2017-08-19 20:57:49 +00:00
Luca Stefani
d6e2fbcf8e tasks: kernel: Kill unexisting wiki reference
Change-Id: Ib43012206ba7028072d39495bda32d82dd72bdc6
2017-08-17 18:54:35 +00:00
dianlujitao
3bc9c18e11 build: qcom_target: Add sdm660
Change-Id: I90a44e040280bd43c40b06e14f658a5cf7e30297
2017-08-17 16:55:48 +00:00
Bruno Martins
0753ae0d68 templates: Default to sanitize vendor folder during extraction
* This was always the default behaviour and doesn't require
   any additional argument in order to make use of pinning feature
   (pinned blobs are only considered when vendor folder is removed)

Change-Id: I34ff7678bd6800a2c593e9fe128cc151c59967da
2017-08-16 23:00:21 +01:00