Commit graph

958 commits

Author SHA1 Message Date
Bruno Martins
70307a29eb prebuilt: Update terminfo path
Due to bash compilation issues, libncurses had to be moved to /system_ext.

Change-Id: Idbc2ac810b98843c00ada4f96b46ebb1c8744128
2022-02-08 13:04:39 +01:00
Alexander Winkowski
8661e04096 apns: Add Unifi
Change-Id: I4c27c4089c548eca528c70d13bb7cb8d87373b54
2022-01-29 14:54:11 +01:00
Mike Auser
2007eddeb7 Changed protocol from IPV6 to IP for Telus
(This is consistent with Google's APNs config.)
These changes have been thoroughly tested on the Telus mobile network.

More Info...
Telus (from Western Canada) doesn't yet fully support IPV6.  As a
result, Telus customers trying to run LineageOS won't have mobile data.
Telus users (including myself) have been running into this
problem for years.  For example...
https://www.reddit.com/r/LineageOS/comments/hyg5hw/change_apn_settings/

Change-Id: I5085c9463e26da7101106525550f1efef2474c5b
2022-01-05 05:36:07 +01:00
Michael W
b4af84e630 vendor: apns: Add auth_type explanation
* Since it's unclear what the numbers are, make it easier to add a new
  apn by specifying the possible values in a comment at the top
* Also add missing copyright (verified, first LineageOS commit was
  indeed 2016)

Change-Id: Icaf292fd79a903bcf9ef5a3813f6288cffc468ad
(cherry picked from commit 7aded097379bd76b9167cc7f5784bcb3a9858066)
2021-12-14 21:43:20 +01:00
Michael W
d636573394 vendor: apns: Fix wrong IPV4 protocols
* The correct string is "IP", not "IPV4"
* Other possible values are "IPV6" or "IPV4V6"
* Source: prebuilts/sdk/30/public/api/android.txt
  Lines: 46832-46834

Change-Id: I3d4729b829f87a4d7ab83584d1aed01d87e10fd2
(cherry picked from commit 7dc952be2a46b2987a293f02dc394d1e5c9809ab)
2021-12-14 21:43:09 +01:00
Michael W
1f9ceb9582 vendor: apns: Remove unused "spn" attribute
* The parsing of apns-conf.xml happens in
  packages/providers/TelephonyProvider/src/com/android/providers/telephony/
  TelephonyProvider.java
* Looking at the code, the only possible occurance of "spn" is as a
  value for "mvno_type"
  -> Remove all spn="" attributes

Change-Id: Ic7fef88c98ad54ea98d702e028a0455de22e55cd
2021-12-14 21:42:56 +01:00
Michael W
4ce4571ffa vendor: apns: Correct Telia
* We have duplicate entries with one of them having a proxy
* According to the issue, no proxy is required
* Since the one with proxy is selected by default, the user has to change
  it manually
  -> Remove the wrong one
* Also correct order: Internet, then MMS

* Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3850

Change-Id: Id3857d74b703b1dd7d16714a3edc6853d4752e64
(cherry picked from commit 7efa2053b6a08da41ddea78bfd30b543693b5c05)
2021-12-14 21:34:28 +01:00
Michael Bestas
48796c9213
Move terminfo to /product
Change-Id: I51a7bc49dab09714cc66d056660a7b2e33ac2c49
2021-11-28 23:58:39 +02:00
Michael Bestas
03d5a8aa29
Revert "FOTA: Create /cache/recovery in init.rc for FOTA"
* This is done in init.rc since 2015

This reverts commit d32b741b5b.

Change-Id: I446b8586befaf1650a4e772890640c9ccde9e35b
2021-11-28 23:53:12 +02:00
Michael Bestas
de372eb7f9
Revert "cm: Give BootReceiver permissions to read fsck log"
* This is done in init.rc since 2019

This reverts commit 1b4eeb3ce7.

Change-Id: Ie3f7cdb9506f7e86f697cde649bcc20af97129ca
2021-11-28 23:53:12 +02:00
Michael Bestas
1f0d9c1341
Reorganize init scripts
* Add init prefix
* Improve naming
* Move to system_ext

Change-Id: Ic6cc600feca48e9f9b83e023a16daed25b5a7de8
2021-11-28 23:53:11 +02:00
Han Wang
c52b5a0883
Remove fake wget
* Toybox supports it now, and there is no real need for
   this tool.

Change-Id: I6f3f8e10f148ffc9626cd150ea21275096d2daed
2021-11-14 20:20:53 +02:00
Han Wang
7be1947e01
prebuilt: Remove lineage-radio.rc
* Devices should use ro.radio.noril and considering vendor
   services now should have a vendor. prefix, this script is
   useless. No device is using this script now.

Change-Id: I7cbb4f966124ca1307aaf1787301b8247d881b26
2021-11-14 20:20:53 +02:00
Michael Bestas
8c26f9b069
Remove color font and icon overlays
These are not used anymore with the new theming

Change-Id: Iacb086f9dacc36fca5c9a9dedcbd2b2ba4f86e6e
2021-10-12 17:52:14 +03:00
LuK1337
be135083d6
Remove IO tuning init scripts
Change-Id: I2ec439990b74cf099a78832fef4b7bc8dd17993c
2021-10-12 17:52:12 +03:00
Michael Bestas
e843a047cd Lineage 19.0
Change-Id: I406a755d475de4ca7f92f58164282c7a07a06743
2021-10-07 19:57:15 +02:00
David Wheatley
359cf85a97 apn: Fix FreedomPop UK
- FreedomPop UK uses three.co.uk for its APN
- Add missing `type` param that prevents use of data on any Three UK or Three MVNO SIM

Change-Id: I5f0656d95070c312d5d563536909f23722857372
2021-10-02 21:12:35 +02:00
David Wheatley
6261bcc96f apn: Update giffgaff APN
As per:
- https://www.giffgaff.com/help/articles/internet-apn-settings-guide
- https://www.giffgaff.com/help/articles/mms-apn-settings-guide

GitLab issue: https://gitlab.com/LineageOS/issues/android/-/issues/3828

Change-Id: Iec3b2c11d529cdbeef9c662a28422824d83ed575
2021-09-30 14:21:42 +02:00
Michael W
bcac3f39f0 apns: Update Vodafone NL
* Source: https://community.vodafone.nl/t5/Diensten/Update-netwerkinstellingen-voor-gebruik-in-het-buitenland/m-p/1850/highlight/true#M1786

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3942
Change-Id: I05c4d6dd6fc1ee8e1f0c51073d8e6d6a518964b2
2021-09-14 17:17:06 +02:00
Martincz Gao
c57312ce4b apns: Update APNs for Chinese carriers
from MIUI v12.0.8.0.QJKCNXM for lmi

The default APN selection for some Chinese carrier SIM cards is
incorrect, resulting in no internet or very slow internet access.
Therefore, replace APN configs from MIUI for all mcc=460 entries.

[TH779] Still keep IPv6 enabled for these APNs.

Signed-off-by: TH779 <i@779.moe>
Change-Id: Id95cbeda2a63764348d07ddcc8caa7b7e49c6f7c
2021-09-09 23:18:03 +02:00
Erik Jensen
31a8d98385 backuptool: Support tab-delimited fstab
Change-Id: Ib3fcde92d0c1ebb8754b11c577e4885d8dd02624
2021-09-04 14:30:36 +02:00
Michael Bestas
f16a9d9d14 Move sensitive_pn.xml to product partition
Change-Id: I9edd9c2641c8e724122e2219f9ffe2b14242f964
2021-07-23 01:04:38 +02:00
Alessandro Astone
14062ab9d2 apns: Add IPV4V6 to EE (UK)
As per https://android.stackexchange.com/a/233395,
without it data transfers may fail with PDN_IPV4_CALL_DISALLOWED

Closes: https://gitlab.com/LineageOS/issues/android/-/issues/3068

Change-Id: I1a663eafa4d913f45478f4dcf062f25a76411abf
2021-07-16 20:58:51 +02:00
dwayne goben
0a78392c43 sensitive_pn: Add two numbers for Italy
– Telefono Amico Italia
   – European Hotline for Missing Children

Change-Id: Ie5abc4b255c1502a38d59fffaa325af76a2b481d
2021-06-03 22:07:19 +02:00
Alessandro Astone
c43ccf2852 apns: Add AT&T 310-280 ids
From Pixel CarrierSettings

Change-Id: I9fd719aa986efe74e42b070f4b19138dd2ae6a72
2021-05-21 11:42:56 +02:00
Nicholas Lim
94aaca4b0e apns-conf: Add TPG Singapore configs
* With (partial) reference to https://android-review.googlesource.com/c/device/sample/+/665341

Change-Id: If94379bc0d834ee4969e6634657f370a98f7cf0b
2021-05-13 19:25:37 +02:00
Michael W
fb59cfdc6d apns: Remove T-Mobile UK
* It's EE now
* Should not be required since 2015:
  "In 2010, it merged with Orange UK to form a joint venture,
  Everything Everywhere, in 2010, which continued to operate the
  T-Mobile and Orange brands until March 2015 and allowed T-Mobile
  customers to utilise Orange's 2G signal and vice versa.
  In 2012, Everything Everywhere launched a new network, branded EE."
  -- https://en.wikipedia.org/wiki/T-Mobile_UK

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3069
Change-Id: Id94a6e156f20b484ea3d23cd3a30f5f9e796b117
2021-05-13 17:28:46 +02:00
Michael W
e21a1e8c9a vendor: apns: Add LIDL Connect
* Source: https://www.apnsettings.org/de/lidl-connect/
* Fixes https://gitlab.com/LineageOS/issues/android/-/issues/3401

Change-Id: I69b1a180d4360a72acf282f95e0af12d60672e87
2021-05-13 17:28:46 +02:00
zhaoguomanong
6c32584ae0 apns: Enable IPV6 for China Telecom
Signed-off-by: zhaoguomanong <zhaoguomanong@gmail.com>
Change-Id: I767ac312ed20bd569959c873e6b6c53f5333da5f
2021-05-13 17:28:46 +02:00
sjllls
9f1696ae64 apns: Enable IPV6 for China Unicom
Change-Id: I5f53961a68c5cb08f8e7ab0d288ae243e5254fff
2021-05-13 17:28:46 +02:00
sjllls
d377a1c9f4 apns: Enable IPV6 for China Mobile
Change-Id: I5294753b8d0a9a83b144e213796246af9b6fa866
2021-05-13 17:28:46 +02:00
Tim Zimmermann
11c43d2e93
backuptool: use correct BLK_PATH on a-only dynamic partitions devices
Change-Id: I295d39e35245e3541648369acbfe79d88ac21865
2021-05-08 16:17:27 +02:00
Sebastiano Barezzi
c966b956bb
apns-conf: Add Kena Mobile entries
* Entries extracted from platina-user 10 QKQ1.190910.002 V12.0.3.0.QDTMIXM release-keys

Change-Id: If30dcb0c544cbe100277795ddfdfffdcb59ad489
2021-05-05 10:48:55 +02:00
Sebastiano Barezzi
ebb8899cbc
apns-conf: Update PosteMobile entries
* PosteMobile is now a full MVNO and it has its own mnc
* Entries extracted from platina-user 10 QKQ1.190910.002 V12.0.3.0.QDTMIXM release-keys

Change-Id: I70d314c558074f2564e88c761c22bc842b973d99
2021-05-05 10:48:55 +02:00
Sebastiano Barezzi
c0541e70f5
apns-conf: Add ho.mobile configs
* Entries extracted from platina-user 10 QKQ1.190910.002 V12.0.3.0.QDTMIXM release-keys

Change-Id: I8f42d4d62a5a60e55cb4345d922629eed7558a29
2021-05-05 10:48:55 +02:00
Sebastiano Barezzi
a10bd28bdb
apns-conf: Update CoopVoce entries
* CoopVoce is now a full MVNO, thus deprecating older ESP entries (still kept here because not all users changed SIM card yet)
* Entries extracted from platina-user 10 QKQ1.190910.002 V12.0.3.0.QDTMIXM release-keys

Change-Id: I9a59ba54926e27ce64d5adbca42fb7b058436e6f
2021-05-05 10:36:57 +02:00
Michael W
70925d642f vendor: apns: Add Ting
* Source: https://help.ting.com/hc/en-us/articles/205428698-APN-setup-guide
* Might also fix https://gitlab.com/LineageOS/issues/android/-/issues/3301

Change-Id: I75db0cf7c0f275b55b3c6a7636a7b0b21a57a3e3
2021-05-01 13:35:47 +02:00
Alessandro Astone
02f0ab69db backuptool: Ensure dedicated partitions are not unused before mounting
* Ignore the block devices in case their mount points are symlinks.
  This is common on devices where maintainers have chosen not to use
  real partitions because of their size being too small to be useful

Also `continue` instead of `break`. Oops.

Change-Id: I3e27abe510219066ecacd81d099220ac8e119f9f
2021-04-07 23:08:20 +02:00
Johannes UNGER
2410404e56 Enable IPV4V6 for APN Yesss
The APN of (Austria) A1's Yesss brand supports IPv4+IPv6 for more than
a year already. Carrier is A1 which officially describes IPv6 support
there: https://www.a1community.net/mobiles-internet-a1-net-cube-316/alle-infos-ipv6-bei-a1-fuer-dein-mobiles-internet-252429

Change-Id: I51f33d4d940ee02f38326228dcbe5cc11a93c129
2021-04-04 10:11:27 +02:00
Michael W
7076898c40 apns: Add Belong
Combines:
* https://www.belong.com.au/support/mobile/fix-a-problem/device-support/what-are-the-mms-settings-for-my-phone-1503981148864
* https://www.4gapn.com/au/en/belong

Change-Id: Ib973be63919a34901f120fe36511a4fa3921ab6f
2021-04-04 10:11:27 +02:00
Michael W
5ad936a051 apns: Fix giffgaff
* Source:
  https://www.giffgaff.com/help/articles/internet-apn-settings-guide

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3070
Change-Id: I1d3c82d8fab704c9178bec639bc09556e3f7715d
2021-04-04 10:11:27 +02:00
Alessandro Astone
7686039f09 apn: Add Visible Wireless (VZW)
Change-Id: I699fc9b247b84520d21c0619014cb93436425e21
2021-03-30 19:33:06 +02:00
Alessandro Astone
adaad8f74f backuptool: Do not set ADDOND_VERSION=2 for a-only
There are addon.d scripts that rely on the value of ADDOND_VERSION
to determine if they're being called from a-only vs a/b backuptool.

If they declare ADDOND_VERSION=3, they shall stop doing that;
otherwise offer them the same environment, that is unset ADDOND_VERSION
for a-only backuptool.

Change-Id: I1be21eda2e6ec9837b3080bb5e7fbe5241318eaa
2021-03-28 18:33:43 +02:00
Alessandro Astone
b5f3a4a72d backuptool: Ensure to cleanup the environment on failure
Change-Id: I6f974a40b4f3f4a0a1f3a4b46bf8e0cfeb81c4ec
2021-03-28 18:33:11 +02:00
Luca Stefani
271ba02664 sensitive_pn: Run XML lint against the schema
Change-Id: I083bd5834f5dd69bdbb5955e9f0e1f8dba760fe5
2021-03-26 11:02:13 +01:00
Michael W
2b30c72a53 sensitive_pn: Convert to new format
* Also: add a lot of additional info for many of the numbers based on
  the comments from the commit prior to this

Change-Id: I937637c8f002d193ed6b23ac60c1f350d7d2eec7
2021-03-26 11:02:13 +01:00
Arekusu Rin
e4359d9a17 sensitive_pn: Comment, add and change numbers for multiple countries.
* Renamed Macedonia to North Macedonia.
* Renamed GB to United Kingdom.

Change-Id: Ibe0968b3679834f86854a86a1104cbde4c1fffaa
2021-03-26 11:02:13 +01:00
Alessandro Astone
f16993e63b backuptool: Correct supported partitions for addon.d v3
* The plan was to support odm & oem too, but it turned out
  unnecessarily complicated due to their symlink setup,
  while being most likely unused.
  The partitions were removed from the list of supported ones
  in a-only backuptool, but were forgotten in ab backuptool.

Change-Id: I58a01cdc3f5c4239048b204f3313f4bf697dd60a
2021-02-18 14:34:21 +01:00
Alessandro Astone
c63fa8441b backuptool: Support seamless backup and restore to extra partitions
For scripts declaring ADDOND_VERSION=3 automatically mount
vendor, product, system_ext and others (when they're dedicated partitions).

Also expose the get_output_path() function to get the path to where
a file is mounted in case it lives in a dedicated partition.

ab exapmles:
get_output_path "system/product/priv-app/MyApp.apk"  = "/postinstall/product/priv-app/MyApk.apk"
get_output_path "system/app/MySystemApp.apk"         = "/postinstall/system/app/MySystemApp.apk"

a-only examples:
get_output_path "/mnt/system/system/product/priv-app/MyApp.apk" = "/mnt/system/system/product/priv-app/MyApp.apk"

******************************************************************
Instead of cycling all scripts for each stage, run
pre-backup -> backup -> post-backup in quick succession
(and likewise for restore), to ensure backwards compatibility
with scripts that wrongly assumed their environment not to
change between steps.
This is needed because we want to undo any mounting done for V3
scripts when executing V2 scripts. If a V2 script did mounting in
pre-restore and expected things to still be mounted in restore,
we would break their (yes incorrect) assumption.

Change-Id: I73fbad6f45824fed99e4482128769435348588f5
2021-02-07 20:07:09 +01:00
Alessandro Astone
6245873019 backuptool_ab: Make tmp actually tmpfs
Change-Id: I668e0f24486197d762981bef4c9f2437c4fa9c14
2021-02-07 20:07:09 +01:00