Commit graph

3265 commits

Author SHA1 Message Date
Ethan Chen
bf38db2a5e kernel: Handle kernel modules correctly
Place kernel module output in the correct location.
Perform depmod steps (copied from build-image-kernel-modules function in
build/make/core/Makefile).
See: https://source.android.com/devices/architecture/kernel/modular-kernels

Change-Id: I6e70012a5c1acdb276f9bee0d57631d2805f71ea
2017-12-31 01:41:57 +00:00
Saylance
dc0dfc9501 apns-conf: Update Ukrainian APNs
Using information from operators sites.

* Rebranding UMC -> MTS -> Vodafone
* Rebranding life -> lifecell
* Rebranding Utel -> TriMob
* Brand merging Jeans -> MTS (Vodafone)
* Brand merging Beeline -> Kyivstar
* Brand merging Ace_Base -> Kyivstar
* Cleanup unused apns

Change-Id: I9646488604c71d6a2b3acae61eb6cdd0d55540bd
Signed-off-by: Saylance <bogdanpower@ukr.net>
2017-12-30 12:08:36 +00:00
Louis Popi
e49657031e apn: Remove "hipri,dun" from Bouygues Telecom
* Unbreaks MMS very slow transfer

Change-Id: Ib3da8d07424044e4791b2ffabd6dad2e975812c3
2017-12-30 12:08:03 +00:00
Celoxocis
4822d9bdc2 Add M-tel (BIH) APN for M-tel Frend data plan
* http://www.mtel.ba/frend-plan
 * Frend spoken "friend" is their voice & data plan

Change-Id: I014f7549d936c64abb3801596d940cee7703f790
Signed-off-by: Celoxocis <celox.ocis@gmail.com>
2017-12-30 12:08:00 +00:00
Dan Pasanen
9fc50bbf73 qcom_utils: allow overriding get-vendor-board-platforms
* Some devices need this function to return something, yet also do not
  set BOARD_USES_QCOM_HARDWARE. Allow them to override this.

Change-Id: I3cf78da39b006ba805ae35fde7379357faa10250
(cherry picked from commit 012cc275e09346ef7909b6a5a144aed59b375ccd)
2017-12-26 00:36:18 +00:00
Rashed Abdel-Tawab
b52c70881d
envsetup: Automatically replace qcom/opensource with qcom-opensource
CAF doesn't use qcom/opensource in their paths, so automatically adjust
the project path for this when using cafremote

Change-Id: I6252fbd1c3e8a545c0d54eefb6b730b893821574
2017-12-24 22:44:11 +02:00
Dan Pasanen
1cdd380e69 repopick: support auth'ing to gerrit and picking drafts
* Use requests if installed. If not fall back to urllib. This is
  done because users may or may not have requests installed and
  requiring them to do so for simple http stuff isn't really
  reasonable.

* If requests is installed and a .gerritrc file exists in the
  user's HOME directory, try to get credentials out of it
  for the given gerrit instance. If auth for the correct gerrit
  instance exists, use it to auth to gerrit. If no .gerritrc
  exists, just use requests with no auth.

  Example ~/.gerritrc entry:
  review.lineageos.org|invisiblek|httppasswordhere

Change-Id: I95be26d51bfd31b53f3613e8dbfb7bba46324571
2017-12-21 00:11:43 +00:00
Dan Pasanen
2965342b9a repopick: use https by default for repopicking
Change-Id: Iae1fde3515b0377a2b9253102c82d28b0fdaca4a
2017-12-15 16:50:12 +00:00
Rashed Abdel-Tawab
81eecf9584 lineage: overlay: Use default AOSP power menu list
* We shouldn't be changing the default behaviour anyway, plus
  Airplane Mode toggle is horrid on 8.1 right now

Change-Id: Ie795443f840e023f0c67f2a6729a7d702bc37cd5
2017-12-11 11:19:48 -08:00
Adrian DC
93256e4ac9
vendor: lineage: Upgrade to LineageOS 15.1
* Update backuptool versions
 * Update text references
 * Set version minor to 1

Change-Id: I30eea1f1cb01e2165311364cc62b589669bb1290
2017-12-07 01:36:18 +01:00
Rashed Abdel-Tawab
61f5e144d5 lineage: Add TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY variable handling
Change-Id: I6f1cbcd883e91c8c3724dbe53732c7e777e21657
2017-12-05 15:32:55 -08:00
Rashed Abdel-Tawab
bab7be30ed vendor: Disable statusbar padding by default
Change-Id: I9e68c69f1033297ef1ec739167597b6123112f94
2017-12-05 15:32:55 -08:00
hedwig34
e77b6a2f8c Updated apns for device bringup for S4 Mini - serranolteusc
Change-Id: I22172debc835f6fd99bd2ed0afdfbe197f993345
2017-12-04 19:56:41 +00:00
conbold
575c63567e extract_utils: Use temporary folder for system dump
* This way it's automatically deleted at the end of the extraction

Change-Id: I77b3357875b8070d370f04c5a245f9aa3ca1939c
2017-12-03 22:44:11 +00:00
Adrian DC
df29022a38 repopick: Support overriding the default commits count to check
* Support passing -c 20 to consider 20 changes instead of 10

Change-Id: I2b36228fb0020501896c800b13713aef284a5772
2017-11-28 09:41:19 +00:00
Dan Pasanen
86d668be40 vendor: enable multi-user across all devices
Change-Id: I5da0d4cc431a76d71fd6236a4f55a282a843ef96
2017-11-27 22:30:39 -08:00
Paul Keith
d402d120d4 extract-files: Bring back old behavior for SRC
* Previously, you could just specify a SRC directly
  after './extract-files', and it would work, but
  now, the arg '-p/--path' is required for the same
  behavior to be applied for the extraction
* Add a catch-all case that just sets SRC if the arg
  doesn't match any of the args that we care about
* Make the ordering of the cases alphabetical

Change-Id: Ia2ad42d444904ead6b3bd6d910af363eb7f015cc
2017-11-24 15:38:07 +00:00
meganukebmp
75b12b2196 sensitive_pn: Add BG human trafficking and domestic abuse hotlines
http://animusassociation.org/en/
http://080020100.bg/eng

Change-Id: I7560ce3a65731feab7bd9d3f9be1fe092254651c
2017-11-23 13:47:05 +00:00
Ethan Chen
c3532d9bfb lineage: Add privapp permissions for Lineage applications
Change-Id: I9901e1c6314d0531c1762fc7eba7597f342ef177
2017-11-19 05:03:46 +00:00
Tom Marshall
f15c371403 lineage: build: kernel: Rework kernel module logic
The existing kernel module logic does not detect failed kernel module
builds.  This is because the module build logic is a long shell chain
that invokes make macros which are not intended to be used in this way.
The essense of the issue is that we get a shell chain that looks like:

	cmd && cmd && var=value; cmd && var=value; cmd;

The shell breaks this into three separate commands.  The first builds
the modules.  The other two are the macro invocations.  So the result
of the command is the result of the last macro invocation, which will
always succeed even if the modules fail to build.

The issue is made worse by the existing build rule conflating the built
kernel modules and the installed kernel modules.

Fix this by reducing the built kernel module command to a single shell
command and creating a separate target INSTALLED_KERNEL_MODULES.  Any
kernel module build failure will show up properly.  The commands for
INSTALLED_KERNEL_MODULES do not invoke any macros and should avoid the
issue described above.

Finally, this also removes the fake target no-external-modules and
unifies the install logic for in-tree and out-of-tree modules.

Change-Id: I3d13056e217e1e937c8c3a345032682ffc394bca
2017-11-15 23:57:39 +00:00
Paul Keith
b11d5736b0 build: Make eat use the latest zip in $OUT
* Fixes weird issues with timestamp differences

Change-Id: Ibeb0c5043b646faab6ce372290acf7efb4f22e15
2017-11-15 17:39:12 +00:00
Kevin F. Haggerty
a2440d0898 lineage: Append time of day to zip names for unofficials
* Helpful when building multiple builds in a day

Change-Id: Ia0096ea5fbc3e479a549b7805523b2b06cb223da
2017-11-15 17:38:41 +00:00
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