Commit graph

863 commits

Author SHA1 Message Date
LuK1337
2057f50e48 config: Install {Lato,Rubik} fonts and their overlay packages
Change-Id: I3fe93982095722d22e726baf9561a6bde31f5bf1
2020-05-14 01:05:45 +01:00
shagbag913
e754d88c2a aosp_audio: copy our own old AOSP alarm variants
* "Old" appended to metadata title to prevent duplicate alarm sound
   names in picker

Change-Id: I695a3760b8ae13c5cf959104dfb8b2336c6b0125
2020-03-12 19:22:26 +01:00
z3DD3r
284ec83fee backuptool: Fix backup/restore functionality
Backup/restore functionality was broken in the
Ia1f4ae95c9e4dae4df844853e81c264bc838f177 change
because of incorrect check of the function's result.

check_prereq() function refactored to return 0 if
backuping/restoration is possible. Any work should be
performed only if check_prereq() succeeds.

Change-Id: Ic977dba675df58a228ef4b882b25beb66cc9d2c6
2020-03-04 20:32:58 +03:00
z3DD3r
fa8a442ba2 backuptool: Properly unmount system partition
For non AB devices system partition should be unmounted
if check_prereq function fails.

This patch also refactors backuptool a bit for AB devices
in order to look same as backuptool for non AB devices.

Change-Id: Ia1f4ae95c9e4dae4df844853e81c264bc838f177
2020-03-04 12:42:10 +03:00
Wang Han
e43d699cfe backuptool: Remove backup blacklist/whitelist
Change-Id: Ia89e6fa4c31377a429e0dfa912d0b61393696009
2020-03-03 16:12:08 +01:00
Marc Bourgoin
835b434363 apn: Update Canadian carriers
*From https://android.googlesource.com/device/google/wahoo/+/android-8.1.0_r29/apns-full-conf.xml
 *Mobilicity removed. Defunct since 2016.
 *Wind -> Freedom Mobile

Change-Id: I3d8501a82441adbb9cdc385c990bef997dba6f97
2020-02-21 02:44:48 +02:00
Davide Garberi
18745cffe8 prebuilt: backuptool: Drop addond version check on A-only
* This check was supposed to check whether the script
   addon.d version was lower than backuptool's

 * Given that the backuptool addon.d version is 1, this
   isn't going to happen ever making this check completely
   unuseful

Change-Id: I2464749b52bf4e8825e0b4ef42500ee7d3bbfa61
2020-02-09 11:33:21 +01:00
Davide Garberi
497a6aef36 backuptool: Execute check_blacklist from the current directory
* For some odd reasons executing `cd /system/addon.d` makes the system
   hang and unmount error:
     umount: /system_root: Device or resource busy
 * Don't change directory to not allow the system partition hang

Change-Id: I3d30bdc59c2f05d16823e99046c1dce2e1e6eb73
2020-02-03 14:47:59 +01:00
Davide Garberi
6b83f943ad backuptool: Run check_{black, white}list with proper system path
* If any of these two function gets run on a recovery mounting system
   to /system, /system/addon.d won't exist while /system/system/addon.d will.
 * Run the functions with $S as argument to make this work correctly

Change-Id: I02e7b91429a9e74d28bdb77e56955dad97ca75ac
2020-02-03 14:47:59 +01:00
Davide Garberi
23d677b5de backuptool: Fix addon.d version check for A-only
* The path /postinstall exists only for A/B, causing:
   grep: /postinstall/tmp/addon.d/*sh: No such file or directory

Change-Id: Ia07b3029e949c3e08302457cd08798a4dde00ef6
2020-02-03 14:47:59 +01:00
Davide Garberi
e40c31887d prebuilt: backuptool: Implement dynamic system mount for A-only
* Dynamically mount system to the path chosen by the recovery through backuptool
* This can be helpful because of the fragmentation that will happen with system mount in recovery after Q

Change-Id: I2d1e775efcf87e33319bc7790d1e54bca72116d3
2020-01-10 19:15:42 +01:00
Bruno Martins
8f3d941706 addond: Remove versioning
It doesn't make sense to keep updating this file on
every new version.

Change-Id: I865764eda559407d29364d686603b4ad80a6b445
2020-01-03 15:55:43 +02:00
Michael Bestas
42020e23f5 Lineage 17.1
Change-Id: Iaf3b75e49677b616a19431da8087c338ee7eb8da
2020-01-03 02:03:00 +02:00
Han Wang
ee283b0857 prebuilt: Remove lineage-governor.rc
* This seems to be a leftover of CM days.

Change-Id: Iff75e120e4a71e64fa45ab3734ab63151ce21cb1
2019-12-01 12:59:18 +01:00
Luca Stefani
243b877ea4 Kill sysinit
Change-Id: Ia8d46d794ff829f3fc39ff48d57fdb6f9c03262d
2019-10-23 01:29:31 +02:00
Bruno Martins
da2c7502a3 common: Copy APN list to $(TARGET_COPY_OUT_PRODUCT)/etc
This handles GSI product

Change-Id: I5754ff9c020e094c5ca5bd08e0572584009558ee
2019-09-27 16:57:25 +02:00
Michael Bestas
24ecfd641c lineage: Remove boosted ringtones
* No longer used by any device and fw/base part is missing

Revert "Update boosted audio files 2/2"

This reverts commit 103c64a964.

Revert "Add volume boosted ringtones (1/2)"

This reverts commit a1c783fb28.

Change-Id: I384f44d515e2bcc237662184de0830836ba95b09
2019-09-13 17:52:19 +03:00
Rashed Abdel-Tawab
b6b3421188 Lineage 17.0
Change-Id: Ib166a6218d18cf192aa314477e4044892b068e97
2019-09-05 10:38:36 +02:00
Bruno Martins
0eba72af4d prebuilts: Remove outdated TCP init script
These props are long deprecated and code cross reference
takes us back to KitKat days.

Change-Id: Id98f6ade71d877b64466906ddb1a1e6dd251904a
2019-09-03 16:05:13 +02:00
Luca Stefani
c4e288c467 backuptool_ab: Make copy_file preserve file/directory attrs
Change-Id: I52c7b124ff8364464643c51b3f17dba4e4e49435
2019-08-24 12:18:05 +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
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
Reza Feizi
701610828f
apns: Update IRAN APNs
* References : operators sites

Change-Id: If9b8df78bc5b35fa71432535dfae1a256e6beb62
2019-05-06 11:53:33 +03: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
jperal
13cff90427 Add APN ION Mobile & APN for Roaming
Change-Id: Ie3103db1fcdd41e70024fceaf96d070f2d66577c
2019-03-14 22:39:27 +01: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
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
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
Kevin F. Haggerty
f4720d0925 lineage-iosched: restorecon scheduler tuneables before touching them
* LineageOS/android_system_sepolicy@0e3235f45d removed open, read,
  and write for init to general sysfs types. As schedulers are
  changed, the related directories gets dynamically torn-down and
  rebuilt, but they lacks proper contexts. We need to make sure the
  context is correct before init can write to these nodes.

Change-Id: Ic6f4567c173799bc56ecccc217040392f73aeaba
2018-11-29 05:57:39 +01:00
Arekusu Rin
ab6ec3af07 sensitive_pn: General update + new Bulgarian phone numbers
Bulgarian numbers: Most of these were directly sourced from Crisis or 
Emergency centers' websites. At least half are from one of the leading 
NGOs' detailed map that includes contact details for numerous hotlines, 
centers, etc.

The non-Bulgarian numbers were sourced from https://116111.eu and
from the CM 14.1 sensitive_pn file.

Change-Id: I925b36ad7f616acf24c4c1e2109ea817a6de9338
(cherry picked from commit c88df996bea6f45093a6493d85c84b2df8a204d8)
2018-10-23 21:22:18 +02:00
Youhan Wang
fa7702c08d RJIO: Change Roaming protocal to IPV4V6.
Bug:19664
Change-Id: Icf80b445de9fd0fab9ac708c8c153faa5ad5fd9e
2018-10-07 16:33:57 +02:00
Meng Wang
f130a434b6 apns: update RJIO APNs
Changes:
1. Rename "Internet" to "JIO 4G" per carrier request
2. Make IMS APN invisible per carrier request
3. Remove "carrier_enabled=true" to reduce
   redundency as that's default value

Bug: 32935086
Change-Id: Ic7ce9978ed03aa24f116cad3b4fb049277864b89
2018-10-07 16:33:57 +02:00
Nvertigo
1682f8a763 apns: NOS: fix tethering and mms.
This fixes BUGBASH-2328 for Portuguese carrier NOS (mcc="268"
  mnc="03").

  This is an ugly workaround since you can't edit the APN definition
  anymore: if you try to save an APN with type dun, you get the error
  message: "Carrier does not allow adding APNs of type dun." But it's
  working.

  Since the preinstalled APNs does not need to be edited and this
  doesn't break anything else for this carrier, this is acceptable.

  Thanx to tfae@xda.

Change-Id: Ic81a9549bf9610805e68b9be56c811b008cbdacb
2018-09-30 01:04:24 +02: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
6326caafb8 Lineage 16.0
Change-Id: Id892a06aac619efaef9c76aea8ced19af49672a6
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
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
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
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
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
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
Luca Stefani
bca9493c45 Add Iliad APN
Change-Id: If6b77458a38b63fdde672714fcc863acd5f47780
2018-06-27 14:22:11 +02:00
James Hilliard
ed3d536151 apns: Add missing sprint roaming APN and set bearer_bitmasks
BUGBASH-780

Change-Id: Ie31e3fda79ee6c9ed02d811e45c63b3231e76227
2018-06-26 20:41:26 -04:00