Commit graph

914 commits

Author SHA1 Message Date
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
Paul Crowley
916ecda319 init: Make encryption action an argument to mkdir
FscryptSetDirectoryPolicy no longer tries to infer the action from the
filename. Well mostly; it still assumes top-level directories in /data
should be encrypted unless the mkdir arguments say otherwise, but
it warns.

Bug: 26641735
Test: boot, check log messages
Change-Id: Id6d2cea7fb856f17323897d85cf6190c981b443c
2021-02-01 00:55:36 +01:00
Zachariah Anderson
f17c8550f2 lineage: apns: Update T-Mobile US to reflect latest carrier changes
* This fixes VoLTE on the Pixel 4 series, Moto Z2 Force, and
  numerous others - this seems globally required at this point.

* Reference:
  https://www.t-mobile.com/support/devices/android/google-pixel-4/network-apn-and-volte-google-pixel-4

Change-Id: Icd89fbe07f084eb57e74e7ac380c6cffea29c953
2020-12-29 22:02:39 +01:00
Han Wang
4562fe4ef4 prebuilt: Remove content-types.properties
* This is now moved to fw/b and should be overriden in 
   vendor.mime.types.

Change-Id: I0546763be34567816b6e87f2a721f1445c83eaf8
2020-12-16 15:13:28 +01:00
Bruno Martins
e1df13eb4a Lineage 18.1 is here for Xmas
Change-Id: Ic7bd96c188eb97c53cf245f79c85cc0e0d14a094
2020-12-12 03:26:14 +01:00
Thomas Karl Pietrowski
ab69681c1f apn: Ting: Adding missing flag to list of types
Adding "default" to the type list, will allow to connect to mobile internet via LTE again.
According to the user, even if enforcing LTE here, it won't work unless adding "default".

I couldn't find any official resources, just that this APN seems to relate to CDMA and other people fixed the issue by adding the APN manually:
https://help.ting.com/hc/en-us/community/posts/206433277/comments/216019607

Therefore trusting the reporter in the ticket below that default is enough:
https://gitlab.com/LineageOS/issues/android/-/issues/2819

Change-Id: I931f5355af74e197020032a1581dd11abf84f10c
2020-12-05 17:57:03 +01:00
115ek
0cf494c3cb apn: Add netzclub
Change-Id: I4eb4df440c231e1037c359abc59762ffb5d8d074
2020-11-24 18:33:40 +01:00
115ek
63f921ed8d apn: Add MEDIONmobile
Change-Id: I23c5fc451d0d47ee5b6bdf2c09d9684ed9e196c5
2020-11-24 18:33:08 +01:00
Michael Bestas
0463e4feaa apn: Update Greek APN list
* Remove old vodafone entries
* Add ims entries
* Add Nova

Change-Id: Ifa71ea89e88affd1786e8b45bf41cee4f0f56884
2020-11-20 18:07:31 +02:00
althafvly
51db2e2b8e apns: Update APNs for Euskaltel
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/2724

Updated from: https://www.euskaltel.com/eu/enpresak/bezeroa-naiz/hauei-buruzko-zalantzak-ditut/mugikorra/internet-mugikorrean-konfiguratu/android-bat-daukat

Change-Id: I2983b09047f3bde4bf4322b36d47148b6f274224
2020-11-13 11:12:35 +02:00
Han Wang
692b1af12b prebuilt: Remove lineage-livedisplay.rc
* Already present in vendor.lineage.livedisplay@2.0-service-sysfs.rc.

Change-Id: I87ec20e3b0c9e9559963bebe7221f51e1dd4d7f3
2020-10-30 18:20:46 +02:00
Abhijeet Kaur
5412f813b0 Remove notifications from bugreport generation using combo keys
In Q, we added a new bugreport API that asks for user consent before
showing the "Share" notification for the bugreport. We will be migrating
all bugreporting clients to use the API in R.

In the new API workflow we are moving away from broadcasts and using
callbacks to communicate with dumpstate. Finished bugreport notification
broadcast used to share the final path of the bugreport but API now uses
file descriptors instead. Hence, moving away from broadcasts.

The full bugreport in this case can be retrieved from dumpstate directory
using 'adb pull' or finding and attaching the file directly to gmail or
betterbug.

Remove outputfile flag since it's unused.

Bug: 135186519
Bug: 137825702
Test: Build and flash to the device. Create a bugreport using combo
keys, share notification does not pop up. Full bugreport created in
bugreports/ dir

Change-Id: I3c15123a6a4ed62ae9cb87f5dd07db60b1416dfc
2020-10-18 16:31:13 +02:00
Han Wang
b2c606a079 prebuilt: Remove lineage-adb.rc
* Yes, this is no more.

Change-Id: I3cf2831fafc475486018281641c1ff4c2efc810c
2020-10-15 19:52:51 +02:00
razorloves
48ab00f925 backuptool_ab: Use mv instead of cp for restore step
Using cp instead of mv during the restore step resulted in double the
amount of free space and inodes being used.
For example, a nano arm64 opengapps install uses around 500M. But during
a backup/restore process when the Updater is used, it temporarily uses
1G on the other slot.  That causes failed updates on devices that
don't have that much free space on the system partition.

Change-Id: I57ba2e0f52d328d4ff91d47a3db45f47bb8402af
2020-09-25 03:50:30 +02:00
Martin Dünkelmann
a66d3d4e9b Update APNs for O2 Germany & E-Plus
Extracted from sony stock rom firmware 'H8266_Customized DE_1313-6279_52.1.A.3.49_R3C'

E-Plus got merged into O2

Synced the newest O2 changes

Change-Id: I67e6987769d0bcc271e58e7416468faa902a870b
2020-09-21 13:43:44 +02:00
Jan Altensen
dd29a4766a Lineage 18.0
Change-Id: Icda4887efd1a965530213f82fbbf8ae908843b05
2020-09-13 19:45:42 +02:00
althafvly
14c51c7c4a vendor: apns-conf: Add Hits APN
Fixes : https://gitlab.com/LineageOS/issues/android/-/issues/2386

Change-Id: Ie6c3a0a33291f3a1e03abffec5e2dfa62f5773d2
2020-08-20 11:45:46 +02:00
althafvly
5c57616d9b vendor: apns-conf: Drop proxy for Movistar
Updated from : https://comunidad.movistar.es/t5/Soporte-M%C3%B3vil/APN-de-MOVISTAR-Android/m-p/1248474

- Fixes https://gitlab.com/LineageOS/issues/android/-/issues/2169

Change-Id: Ia1181c8fd3a5c066e1ac74b28b0e76d0c3f4626d
2020-08-14 07:56:45 +02:00