1022 Commits

Author SHA1 Message Date
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
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