Commit graph

928 commits

Author SHA1 Message Date
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
Han Wang
939e2e69d1 prebuilt: Clean up lineage-system.rc
* There is no reference to ANDROID_CACHE now, and
   /persist does not exist on most devices, neither
   can we write to it.

Change-Id: I91af1e6f571ced317d195e3a7901bf4c269486a1
2020-07-31 17:47:04 +02:00
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