Commit graph

3301 commits

Author SHA1 Message Date
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
Bruno Martins
9717ee7b80 qcom: Mark some gralloc bits as valid
* Add GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits for all
   the platforms and GRALLOC_USAGE_PRIVATE_10BIT_TP only for the
   UM 4.9-based platforms. Both are defined in the respective
   display HALs (in gralloc/gralloc_priv.h) being the latter
   only available for sdm845.

 * This results in the same as applying https://goo.gl/SR7sFY,
   but it's preferable since it makes use of our own method of
   extending the valid gralloc 1.0 usage bits (see commit 59009f8).
   TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS is extended here on
   purpose and as a bitwise OR of all the values in order not to
   clear what might have been set in the device trees.

Change-Id: I5536f341e75088cc72ac369065011388f0a6d3f1
2019-02-05 11:29:04 +01:00
razorloves
c832b57f5f privapp-permissions: Remove org.lineageos.trebuchet permissions
Trebuchet package name is now 'com.android.launcher3'.

Change-Id: I8a3f7b3f375069cc7a8d61a98dd51940fce84c0c
2019-01-29 13:19:05 -06:00
razorloves
54c01074ea privapp-permissions: Add new launcher3 permissions
Ref: cf019f2a73

Change-Id: If582910de52920a136dce2e2765825fda9e68a02
2019-01-29 06:39:55 -06:00
Vladimir Oltean
b2c382193d extract_utils: fix mismatch with non-lowercase pinned sha1sum
Change-Id: I86421ca69007ad1992aa67deedf7d2e32bbe4dba
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2019-01-17 11:26:34 +01:00
Han Wang
bf74b7f3d7 config: Add Deskclock to power whitelist
* Seems sometimes alarm cannot ring because of doze.

Change-Id: I3a35d2f02de365ea1d3a99ea75e0db9905d482a3
2019-01-11 08:35:05 +01:00
dianlujitao
9b4b5fa403 Remove deprecated ro.device.cache_dir
Change-Id: Ib8253a7b15b09283130d1f9d6ea649bd9e70aaf7
2019-01-09 17:47:02 +01:00
Luca Stefani
b206454557 Don't explicitly build uneeded packages
* libemoji doesn't exist
* libprotobuf-cpp-full is always built and part of VNDK
* librsjni is always built by renderscript

Change-Id: I379aa405f937d54fc7ab1fb7a120683e91f2bbac
2019-01-09 13:01:53 +01:00
Luca Stefani
c4d11905d7 Disable art debug and enable minimize debug info
Change-Id: I12b65c532201bf31f12cfb1d62c4a8bbe2204e2f
2019-01-09 13:01:53 +01:00
Michael Bestas
f3f7eb2d87 soong_config: Add flag for msm8974 1440p EGL workaround
Change-Id: Iad2df3dad223604f1e2c454432b9c9239db8d035
2019-01-06 15:45:08 +02:00
Michael Bestas
eb37bbb7cd soong_config: Add flag for crypto waiting on QSEE to start
* Every single new device supports this logic except
   a few ancient ones and nexus.

Change-Id: I9a5493667c6bb3636468a90df0da65cf5e8c3a8b
2019-01-04 23:59:37 +01:00
Michael Bestas
c61fabe667 soong_config: Add flag for legacy HW FDE
Change-Id: I4ced98000e7349135dfb62bba9579e1dbf6b959c
2019-01-04 23:59:37 +01:00
Michael Bestas
e4dc50fa6a lineage: qcom: Set proper CAF data-ipa-cfg-mgr pathmap
Change-Id: Ibaec558bfe945a204968e7f7a3df85dd91d49483
2019-01-03 23:54:09 +02:00
Ethan Chen
da0ae04cd3 lineage: qcom: Set data-ipa-cfg-mgr pathmap
Change-Id: Ifaf6d008425ef38fa8de2aa734cc4b05654995f2
2019-01-03 19:47:35 +01:00
Joey
b4ebbf8c3f lineage: open sdcard root when launching DocumentsUI
Change-Id: I2df25d81ad3c281f4797cd34f69e75ab4e2fa5cc
Signed-off-by: Joey <joey@lineageos.org>
2018-12-31 22:51:28 +01:00
AnilKumar Chimata
26b6abac8b soong_config: Add new flags for HW FDE
Add new flags for HW FDE to pass CFlags to source code.

CRs-Fixed: 2210986
Change-Id: I70d68f015ee8eb8d123ce863ce8e36d0310bc082
2018-12-26 16:25:32 +00:00
Vladimir Oltean
b8084ec8a5 extract_utils: avoid doing stuff on files that don't exist
* If an apk/jar doesn't exist, the script would still try to deodex it.
* If an xml doesn't exist, the script would still try to "fix" it.
* Take it easier, man, it's not your fault.

Change-Id: I3061fb48b403da5121e3c17dd9ecdb6cd148bf97
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-12-24 01:32:53 +02:00
Rashed Abdel-Tawab
0d2fa55f2f lineage: Dynamically add custom APNs
For Example new devices need the new Sprint APNs, so add a new board flag for
them to set that will make the build system add the new APNs to
the APN config XML. If the flag is not set, continue to use the
old APNs.
To add or replace APNs, the custom_apns.py script has been
added. If CUSTOM_APNS_FILE is defined, custom_apns.py
is run and generates a new version of apns-conf.xml.

Change-Id: I7ff12a4342de2a7663b2b66fd627244214a8dc71
2018-12-13 07:25:18 +01:00
LuK1337
57490e6120 lineage: Support system-as-root A-only backuptool
Change-Id: I8336e5ab3c9d03fae7426044066318b987653d99
2018-12-06 17:45:15 +01:00