Commit graph

3519 commits

Author SHA1 Message Date
Ethan Chen
b7b49cc07d build: Use ifeq/else ifeq/else construction in board config
* Instead of nesting ifeq/else/ifeq/else/endif/endif construction, make
  allows the more readable ifeq/else ifeq/else/endif construction. Use it
  instead.

Change-Id: Ifd2635929799db593e04a13827f05c97e95487e4
2019-06-25 23:13:21 +02:00
Ethan Chen
5512b647e0 build: Set mode for makefiles
* These shouldn't be executable.

Change-Id: Idcb4e46f0ac69116b4837cd31f9f2e506b41a3f2
2019-06-25 23:13:21 +02:00
Michael Bestas
fcc1e1967a Whitelist permissions for AOSP FM radio app
* Sort the file while we are at it.

Change-Id: I8dec9ece1c1523dcb77421b6912bbef91efb1485
2019-06-25 21:41:08 +02:00
Nolen Johnson
76cdd01250 lineage: partner_gms: Add minimal configuration flag
Change-Id: I245138b19448a193f8cbd12d5d26db295a4f4cdd
2019-06-18 21:37:21 +02:00
Erfan Abdi
a4d6ce67e7 soong_config: Add flag for devices use metadata as FDE key
Change-Id: I5f70280e72613a8f850cb3263c45e95e80cb8b3c
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
2019-06-16 12:47:01 +02:00
Rashed Abdel-Tawab
8613ea0ac1 kernel: Set correct kernel compiler prefixes for aarch64 clang
These configuration options are set based on the Google configurations
located in kernels
(ex. https://github.com/LineageOS/android_kernel_google_wahoo/blob/lineage-16.0/build.config)

This is composed of 2 parts:

Revert "kernel: Correct CROSS_COMPILE_ARM32 toolchain"

This reverts commit c77bb3a5ba.
This breaks builds when building with upstream commit
ad15006cc78459d059af56729c4d9bed7c7fd860. That commit fixes LD being
used from outside the path, however androidkernel toolchains don't
have elfedit. Google specifically doesn't use androidkernel, so we
need to follow them on this.

Set CROSS_COMPILE_PREFIX to aarch64-linux-android- for clang builds

Upstream commit ad15006cc78459d059af56729c4d9bed7c7fd860 makes the
kernel build system use GCC toolchains for elfedit, so we have to
actually use a real GCC toolchain, not the androidkernel one.

Change-Id: I79ac4ac47d3ba6c2abbc5ce40e56ed5c707295b4
2019-06-16 06:27:43 +02:00
Marc Bourgoin
7a85b90de1 apn: Update German carriers
*From https://android.googlesource.com/device/google/wahoo/+/android-8.1.0_r29/apns-full-conf.xml
 *Removed A LOT of defunct APN settings. Most are MVNO's that use the major networks.
 *t-mobile -> Telekom
 *eplus & Blau & BASE -> o2

Change-Id: I7552ee091262bc53bb394d9fa89cdee1bdccb84f
2019-06-15 22:11:33 +02:00
Asher Simonds
492a60f487 Update default wallpaper
Change-Id: I4ca1327604848a2b83a06f78655a68e53b9cb148
Signed-off-by: Joey <joey@lineageos.org>
2019-06-12 12:48:48 +02:00
Luca Weiss
5ee35ea356 repopick: cmp() is not available in Python 3, define it manually
Change-Id: I16a89aa555e62f105d888e87cb43afd26606076b
2019-06-08 00:01:05 +02:00
Asher Simonds
337f13e448 Update default wallpaper
Change-Id: Icfb58abdda66636e220187269d32475e917eb11f
Signed-off-by: Joey <joey@lineageos.org>
2019-06-06 11:29:32 +02:00
Rashed Abdel-Tawab
60fe93525a lineage: Rework DTBO image generation
Currently we handle the DTBO images from start to finish, including
AVB footers, and just drop them in $(PRODUCT_OUT)/dtbo.img when done.
While this works for the most part, we are limited in what we can do
with the DTBO images. For example non-A/B device recovery images must
have a copy of the DTBO image appended to recovery (see AOSP docs:
https://source.android.com/devices/bootloader/recovery-image ). This
means that we need to pass the pre-AVB dtbo image into
BOARD_PREBUILT_DTBOIMAGE in order to let the AOSP build system handle it.

This commit reworks the way the DTBO images are built, placing them at
$(PRODUCT_OUT)/dtbo-pre.img instead and setting BOARD_PREBUILT_DTBOIMAGE
to that path so the AOSP build system can pick the images up and sign
them and append to recovery (for applicable devices).

Change-Id: I8819d7cd92ba298de67dbc7f6b321917ba8524f1
2019-06-06 07:17:27 +02:00
Bruno Martins
a4414a49ec overlay: Hide the option to show battery percentage
* The option is available in Status bar settings,
   as per our additions. Remove duplicate to improve UX.

Change-Id: I60a737617f192f5f0699ce50cfc3edc52c862492
2019-06-03 03:14:07 +02:00
Nicholas Lim
10ca86d1ff apns: Update Singapore's APNs
* Based off: https://android.googlesource.com/device/sample/+/master/etc/apns-full-conf.xml

Change-Id: Ie724a1f7f26d5bbcefb4459c5f92fcbc7c8bbff8
2019-06-01 16:28:09 +02:00
Joey
515f8e0a18 Build our wallpapers app
Change-Id: I02c8548ca4ac156846da1e4a0839240978b90e57
Signed-off-by: Joey <joey@lineageos.org>
2019-05-31 15:51:35 +02:00
Volodymyr Zhdanov
20505e9ca1 charger: add 400dpi symlink
* used by google bonito
* https://android.googlesource.com/device/google/bonito/+/refs/tags/android-9.0.0_r39/device-bonito.mk#18

Change-Id: Idd0b4640ee4896c86b25a5457fe889c28e49a283
2019-05-23 02:50:50 +02:00
Rashed Abdel-Tawab
fc5a8fa0ad lineage: Build Fi GMS product if WITH_GMS_FI is defined
Change-Id: Ia141fec1168e21726718cf11da83bb5ca0f68a56
2019-05-23 02:41:38 +02:00
blunden
6b5af98a3b Actually include legacy privapp whitelist
Change-Id: I11f4d524a628f3fddb3a6a0c6fe645922123fc89
2019-05-19 12:51:39 +02:00
blunden
f972f5ea63 Whitelist permissions under legacy package names
The lack of these whitelisted permissions causes a bootloop
when upgrading from earlier OS versions on devices that enforce
the whitelist.

Change-Id: I76b8fad5f0c49a7d008d19e7a116b5f19c75f739
2019-05-19 02:32:48 +02:00
Reza Feizi
701610828f
apns: Update IRAN APNs
* References : operators sites

Change-Id: If9b8df78bc5b35fa71432535dfae1a256e6beb62
2019-05-06 11:53:33 +03:00
Thor Lee
75975892b4 kernel: Fix modules path generated in modules.dep
This patch fixes the error generated path of modules in modules.dep.

Tested on Redmi Note 5(whyred).

Before:
/vendorlib/modules/test-iosched.ko:
/vendorlib/modules/mpq-adapter.ko:
/vendorlib/modules/ufs_test.ko: /vendorlib/modules/test-iosched.ko
/vendorlib/modules/rdbg.ko:
/vendorlib/modules/br_netfilter.ko:
/vendorlib/modules/gspca_main.ko:
/vendorlib/modules/mpq-dmx-hw-plugin.ko: /vendorlib/modules/mpq-adapter.ko

After:
/vendor/lib/modules/test-iosched.ko:
/vendor/lib/modules/mpq-adapter.ko:
/vendor/lib/modules/ufs_test.ko: /vendor/lib/modules/test-iosched.ko
/vendor/lib/modules/rdbg.ko:
/vendor/lib/modules/br_netfilter.ko:
/vendor/lib/modules/gspca_main.ko:
/vendor/lib/modules/mpq-dmx-hw-plugin.ko: /vendor/lib/modules/mpq-adapter.ko

Change-Id: I84d51f4c418fda0d99890db0fd5d976c42f54295
2019-05-02 10:00:49 +02:00
aleksei74
c670f14863 apns : Update the KT IMS apn
Update KT IMS apn for VoLTE

reference site:
https://android.googlesource.com/device/sample/+/refs/tags/android-9.0.0_r35/etc/apns-full-conf.xml#25304

Change-Id: Iaa7924aeb6038e7ecefe56042bc19af0b0db82c2
2019-04-24 19:09:32 +09:00
Michael Bestas
f8b28f1364 config: Include old AOSP alarms/notifications/ringtones
Change-Id: I8546d20098a0d117c5349dbeb73cfe1e72030990
2019-04-12 02:08:21 +03:00
Christopher N. Hesse
5ee8c8b0a9 images: Add 420dpi symlink
Change-Id: If184d3e3c5e4545e8baba665366b59390718ac02
Signed-off-by: Christopher N. Hesse <raymanfx@gmail.com>
(cherry picked from commit 70e7015d73b8fdd5258732863012f7b06d8347f5)
2019-04-09 09:20:28 +02:00
jperal
13cff90427 Add APN ION Mobile & APN for Roaming
Change-Id: Ie3103db1fcdd41e70024fceaf96d070f2d66577c
2019-03-14 22:39:27 +01:00
razorloves
26d738bac6 config: Remove duplicate keyguard.no_require_sim prop
Added here:
https://github.com/LineageOS/android_build/blob/lineage-16.0/target/product/full_base_telephony.mk

Change-Id: If94b53efa9612bec8ef296a9d6df86add3b0f7c1
2019-03-14 10:22:53 +01:00
razorloves
b0e4491d07 overlay: Move managed profiles overlay to frameworks/base
The ManagedProvisioning xml's were moved in Pie.
Also added missing managed_device and managed_user xml's.
This fixes 'Android for Work'.

REF: ebe73b6e94
     b6a9f94d67

Change-Id: If911b4ee1890600e47af73c7fe0fcca4dc73eb26
2019-03-14 07:33:59 +01:00
Ethan Chen
9985f596b3 kernel: Use build-image-kernel-modules instead of copying it
* Call the build system's build-image-kernel-modules function instead of
  redefining all of it inline ourselves.

Change-Id: Ifc4bd3c452393389a14174f4cc29a8f7ef064b93
2019-03-09 13:41:19 -08:00
Ethan Chen
a325446555 kernel: Use a macro for kernel build targets
Change-Id: Idb61ddbfd630401da09a0c3207aaab7e25bc4b14
2019-03-09 13:41:19 -08:00
Ethan Chen
0724f78af4 kernel: Detect kernel module usage better
* Check for any actual kernel modules, rather than just the presence of
  kernel modules being enabled as a kernel feature.

Change-Id: I6b7e82d5c59dd57621d9f9e2d1fd606997790d1c
2019-03-09 13:41:19 -08:00
Ethan Chen
a8750b4a6e kernel: Move kernel module dir cleanup/creation to module install target
* The directories used by the kernel module install rules are performed
  as part of the rules in the kernel build itself. This is likely a
  leftover from before kernel module install was separated.

Change-Id: Iee2f73a0f8e0f274b1c2931ba57277ff14d7f5cc
2019-03-09 13:41:19 -08:00
Ethan Chen
117a0fd3b2 kernel: Move full kernel build guard flag below all targets
* The Pixel DTBO generation step should also be guarded by the full
  kernel build flag.

Change-Id: I06d230b1b32ad9d974f90bfe6ae82008f4454d83
2019-03-09 13:41:19 -08:00
Ethan Chen
995aff2a45 kernel: Add more threads to kernel build process
Change-Id: I9c90de7820308542c7bb15605df519976dd04e0b
2019-03-09 13:41:19 -08:00
Arekusu Rin
4b93d993db sensitive_pn: New United Kingdom helplines
*Added new helplines for the United Kingdom, including helplines for
Scotland, Northern Ireland, Wales and Britain. Further numbers may be
available at websites such as http://www.itv.com/thismorning/helplines
and https://helplines.org/helplines/?fwp_helpline_region=national.

Change-Id: I3682c9e8c14d7124a76a054498e1eaf0f1ded52c
2019-03-08 12:35:03 +01:00
Vladimir Oltean
4818c230b3 extract_utils: introduce support for executing blob fixups
* Traditionally, the task of hex-editing blobs has been approached in 2 ways:
  (1) Do it out-of-band, commit the modified blob, and record its edited
      sha1sum in proprietary-files.txt (aka pin it).
  (2) Do it in-band, by adding code to the device-level extract-files.sh
      (usually this performs patchelf or sed). This code runs after the
      extract_utils functions were invoked.
* Problems of approach (1):
    - It relies on verbal (basically commit message) documentation of
      the hex-editing that was done. Makes it more difficult to reproduce.
    - Each time blobs are updated, pinning needs to be temporarily removed,
      hex-editing done again manually and new hash put back.
* Problems of approach (2):
    - It is incompatible with the concept of pinning, which is useful
      for kanging blobs from another device. A pinned blob would either:
        - Match the hash, get hex-edited, then it won't match the hash
          next time around.
        - Not match the hash (because of, say, hex-editing), then the
          extraction script would use an unwanted blob version instead of the
          pinned one (either that, or say "!! file not found in source").

* In summary, this patch adds system-wide support for approach (2) in order
  to address the aforementioned shortcomings.

* At device level, users of extract_utils who wish to perform blob
  fixups can override a blob_fixup() Bash function in their
  extract-files.sh immediately after running "source ${HELPER}". The
  blob_fixup() function will be called by the common extract() function
  after extracting every individual blob, giving the user the
  opportunity to hook custom code after this operation takes place.

* In proprietary-files.txt, the line corresponding to this blob which
  needs fixups can look in one of 2 ways:

(a) vendor/lib64/vendor.qti.gnss@1.0_vendor.so

    Do this if you are taking the blob from the stock ROM. The fixup
    script will always run after the blob is extracted.

(b) vendor/lib64/vendor.qti.gnss@1.0_vendor.so|249c76153f8de014bf2dd2ab623ee3d87741fbc8|f7e9ee8e3804887a2f3939128e860767e6f27258

    Do this if you are kanging the blob from somebody else. The pinning
    logic now applies for both the pre- and the post-fixup hashes. The
    fixup script will only run if the blob doesn't match the hex-edited blob,
    although the fixup script should really be idempotent.

Change-Id: Ifdd73c885d995c645f6210597537693d1a2f903f
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:44:53 +02:00
Vladimir Oltean
bff959a5ab extract_utils: template: introduce kang mode
Change-Id: Idc196359a7cb6fd8de53ebdc23700322486a2a7d
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:42:24 +02:00
Vladimir Oltean
d5d0fea744 extract_utils: template: make --section argument non-positional
Change-Id: I3b991bd125c0f92900d625158cd826b4b9f53a3b
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:42:24 +02:00
Vladimir Oltean
4931a0604a extract_utils: template: use quotation marks and variable curly braces consistently
* This makes sure that multi-word arguments are passed correctly from
  extract-files.sh towards the common extract_utils helper. An example
  would be extract-files --section "Hello World".
* IMPORTANT: device repositories that use a device/common split
  typically do something like this to invoke the common script from the
  device one:

  ${MY_DIR}/../common/extract-files.sh $@

  This is incorrect because the quotation marks are missing, and will
  lead to incorrect parameter parsing. The correct way is:

  ${MY_DIR}/../common/extract-files.sh "$@"

* The curly braces are only for cosmetic consistency.

Change-Id: Idf0885546379f47e675ec5e9dfb304706e512129
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:42:24 +02:00
Vladimir Oltean
5238ba8fe5 extract_utils: make --section match words anywhere in the line
Change-Id: Ia3fe2160f0f4bc7da1b5bd31a21080af51b41fab
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:42:24 +02:00
Vladimir Oltean
bec92ebaec extract_utils: introduce -k (kang mode) option
* The use case is easier updating of pinned blobs. When --kang is set,
  pinning is automatically ignored, and the script will print lines at
  its output that can be directly copied back into the
  proprietary-files.txt.
* Best served together with --section ${SECTION}, and proper grouping
  of the proprietary-files.txt.

Change-Id: I648fbcbd4580a4a002b00828bcfee18d1e265d7b
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:42:24 +02:00
Vladimir Oltean
c503446ec3 extract_utils: cleanup variable names and arguments passed to extract() function
* This also makes the --section argument non-positional, since otherwise
  it is not possible to easily support more than one optional positional
  argument. This is in preparation of one more optional argument to come
  in a follow-up patch: --kang.

Change-Id: Ieb142e0854319defb9a278ab68cd4aeefd0fbdd5
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:42:24 +02:00
Vladimir Oltean
78d690d12c extract_utils: be compatible with system-as-root layouts
* The use case is that if you have the following layout:
  $TOP --- system.img
       |
       +-- vendor.img
  you should be able (from $TOP) to:
    mkdir system; mount -o ro,loop system.img system
    mkdir vendor; mount -o ro,loop vendor.img vendor
  and then (from device tree)
    ./extract-files.sh $TOP

  But this doesn't work if system.img is SAR and contains another
  "system" dir inside. This patch makes sure it searches for a "system"
  dir in the provided path as well, if it couldn't find the blob
  anywhere else.

Change-Id: Ib49cd5b587b3a57478a66ff69cf840270c2b1403
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:42:24 +02:00
Vladimir Oltean
4fe79b11c1 extract_utils: drop the "/system/" prefix from prints of blob names
* This makes the printed output closer to the proprietary-files.txt syntax

Change-Id: I81b844bb6bb1d1a2f91a39151a892fbfc0bed20b
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-03-03 16:42:24 +02:00
dianlujitao
506c0b7342 libbfqio: Remove vendor variant
Change-Id: I40a9d4f9ac06187b01222e4d6afb7f99517c6920
2019-03-01 11:38:25 +08:00
Alessandro Astone
e5acfae08c soong_config: Add BOOTLOADER_MESSAGE_OFFSET
* libbootloader_message now uses Android.bp

Change-Id: I750a04be97dbe01564d45cd605744b15f209e408
2019-02-26 16:47:50 +01:00
theimpulson
7484149d3c vendor/lineage: Drop obsolete TW_EXCLUDE_SUPERSU flag
* Reference commits:
* https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/31609/
* https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/31745/

Change-Id: I7efbdc3ebee29095b36612660e065b6d7c603a93
2019-02-24 18:37:40 +01:00
Jacob Willoughby
42252b823b Add APN for XFINITY Mobile
Change-Id: I0ae20dc5c982cc0b65fa8ef3a5c3eee7c0190441
2019-02-19 10:38:41 +01:00
Michael W
562f26ff45 apns: Add new Virgin Mobile apn
https://community.virginmedia.com/t5/Virgin-Mobile/New-Purple-Virgin-Mobile-SIM-and-need-the-APN-settings-for-data/td-p/3597569

BUGBASH-2269

Change-Id: I177e04f982a9c6669a39638e376598bde0601f7e
(cherry picked from commit e9b4abc428888aa1d32419e99d7b1d0f94470574)
2019-02-19 10:34:08 +01:00
razorloves
1fb9ca5bd8 apn: Update the Ultra Mobile apn
Add dun apn type to fix hotspot/tethering.
Also update according to https://www.ultramobile.com/data-settings/

BUGBASH-2371

Change-Id: I202cc7be26403d774e8694dd4386391d3576ea66
(cherry picked from commit 367ca28f8206a1e5be8655fb2f1c2e4972d7e8e3
2019-02-19 10:28:35 +01:00
Luca Stefani
48406e8afd Never allow neverallows
Change-Id: Ibf07e9e319d676666e3e7389720c24917e38a9ac
2019-02-16 21:14:14 +01:00
Michael Bestas
79e91fe4ca addonsu: Don't mount SAR system to /system
Change-Id: Ic2f0a994477a5bc04b32e24b0bd4baaa2773ff55
2019-02-12 10:06:12 -06:00