Commit graph

995 commits

Author SHA1 Message Date
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
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
Eric Meddaugh
a045e5d39e apns: Adjust Sprint LTE internet to allow tether
Change-Id: I5a2b4924a1d61f1d15de8d148c2e1cbbaa6db16e
2018-06-25 17:39:56 +02:00
Dan Pasanen
524fe03bfb backuptool: introduce addon.d script versioning
* Since A/B addon.d scripts are going to need to do things in a
  specific way or things could go horribly wrong for a user, let's
  introduce versioning so that scripts can claim to be compatible.

* A script can denote it is compatible with addon.d version 2 by
  adding: "# ADDOND_VERSION=2" somewhere in its script.

* Only A/B will require version 2 scripts for now, and version 2
  scripts will still run on non-A/B. Additionally if a script does
  not explicitly denote its version, assume its version 1.

* Version 1: The same old scripts we've always used. We cannot assume
             these will all work with A/B backuptools.

* Version 2: Scripts that denote they are compatible with version 2
             must be aware of the fact that A/B devices will run this
             script for a rom, during a seamless update, mounted at
             /postinstall. The best way to ensure compatibility would
             be to use the pre-designated functions found in the
             backuptool[,_ab].functions scripts.

Change-Id: I5573018dabd21bb64c7c964e2081806072a75243
2018-06-22 16:24:09 +02:00
Dan Pasanen
4a049b563c vendor: add custom backuptools and postinstall script for A/B OTAs
* A/B OTA devices wont run backuptools in recovery (because they don't
  go in to recovery to do an OTA). In these cases let's use a modified
  version to backup/restore from within android upon postinstall.

* Add backuptool_postinstall.sh which will be run prior to the normal
  postinstall script in order to backup/restore via addon.d scripts.

* This needs to be done in such a manner because we need /postinstall
  mounted rw instead of the ro with context= options which are used for
  the normal postinstall (dexopt) script.

Change-Id: I51511870634dd1ec5388adafddb446f95cc5a950
2018-06-22 16:09:56 +02:00
Bruno Martins
c77fba3153 apns-conf: Remove obsolete APNs for PT carriers
Change-Id: Ib815841d8deae6bca971e2e53db383c0fe1cd6a0
2018-06-17 12:42:29 +02:00
Olivier Karasangabo
a596b92246
apns: Add UPC Mobile
Change-Id: I0ab1433337d4f0b334db2fd926bb69d4561b1ff6
2018-05-28 21:56:43 +02:00
Adrian DC
9dde3d63e8 backuptool: Temporarily render version check permissive
* Due to both following commits, backuptool went permissive
    and lineage properties got lost from the system on devices
    that do not have BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED

    "backuptool: Take into account new location for system default props"
    Change-Id: I62046447876c2198a0c4f88a4f36f4723d417617

    "lineage: Move to Google's method of defining system default props"
    Change-Id: I6cb0e28a7599b010b389cc541015a37010a00f4b

 * Once the properties issue is properly resolved in the sources,
    a period of time is required for "most" of the users to upgrade
    their system with fixed lineage properties before we break addons
    by repairing the backuptool script globally

Change-Id: Iea8865ea9bb05eed56a8a0a7b95e3f04b01c4bae
2018-05-18 22:04:29 +02:00
razorloves
0a0c3e7567 apn: Fix typo in Rogers roaming protocol
Change-Id: I93f3137ffffdbb742dd698dcdc63467db5108004
2018-05-11 19:16:52 -05:00
Eric Meddaugh
28c5dfb43d apns: Adjust MetroPCS apn to allow USB tether
Change-Id: I41f0c7688dc38eb334fabb845f026c37fbb92655
2018-05-11 11:51:51 +02:00
Michael W
05e43ffc39 prebuilts: Fix Telfort apn
* Remove proxy
* Source https://android.googlesource.com/device/sample/+/android-7.1.2_r27/etc/apns-full-conf.xml#646 BUGBASH-766

Change-Id: I924169cd3cb3d76d362f71ff6b65dba28b9ef54a
2018-05-05 13:59:20 +02:00
Louis Rousseau
aab3507c00 apns: updated entries for Koodo
Removed proxy values to match current version of
https://www.koodomobile.com/help/setting-data-your-non-koodo-phone

Change-Id: Ic17cb9a9e1f0e59381815a1b2e8eb4f37f3e3e89
2018-04-30 17:48:51 +02:00
razorloves
a9e0134376 apn: Update APNs for MetroPCS
- Add missing ims apn. Without this, pixel and nexus users were not
    able to use ims features.
  - Set the mtu value. This improves data connection reliability.
  - These changes match with pixel's aosp apn.

Change-Id: I170de2c92cc916424c266dc972a6538599640b7c
2018-04-23 19:34:18 +02:00
Dan Pasanen
f7b93ce5a0 lineage-radio: disable ims services on ro.radio.noril
Change-Id: I598dbaaaead2c9cfd50cd41f3bed193dfe17e147
2018-04-20 05:51:44 +02:00
razorloves
86f03b8f83 apn: Add protocol for fido and rogers
Pixels will only establish a data connection to these carriers using
IPv6, so this fixes the reports of no cellular data and no mms.
Also, this matches with what aosp has.

Change-Id: I07768f817cf6bb4997dd737cc467fb146c959434
2018-04-14 04:27:59 +02:00
Alexander Kaindl
fb7b1fd92a apn: Add APN for spusu MVNO
Change-Id: I3772b955f758083986d8d2862cf3ec32609c19a1
2018-03-29 18:28:19 +00:00
Bruno Martins
1022cc7c50 backuptool: Take into account new location for system default props
* System default props defined using PRODUCT_SYSTEM_DEFAULT_PROPERTIES
   are stored into /system/etc/prop.default, so that's the location where
   ro.lineage.version prop needs to be checked now. Although, fallback
   to the old location to allow sucessful upgrades.

Change-Id: I62046447876c2198a0c4f88a4f36f4723d417617
2018-03-03 00:46:45 +00:00
Paul Keith
c6b6c98a2b lineage: Allow IPv6 on roaming for T-Mobile US APNs
* Fixes roaming on T-Mobile NL with a T-Mobile US SIM

Change-Id: Ied51d5297af1fafe9907c6dc2e7678f63a62363a
2018-02-05 16:45:35 +01:00
Paul Keith
20b8197bfc lineage: Consolidate T-Mobile US APNs
* MMS doesn't need to have its own APN
* This matches https://support.t-mobile.com/docs/DOC-2090 and
  was verified against a T-Mobile Galaxy Note 5 on stock

Change-Id: I254de82de012ea4b052d7751d4910f13692c970a
2018-02-05 16:45:28 +01:00
Dan Pasanen
0f9080a12e vendor: update vzw apns
* Add support for bearer 18
* Update mmsc urls
* Remove bad dun apn
* Set approprite auth_types
* Set visibility
* Update max_conns

Change-Id: Ie9256f10899343242c64ae3896434b4c994f3dac
2018-02-02 13:21:55 +00:00
Paul Keith
3957e06d5a sensitive_pn: Fix typo in sensitive phone number
* There was an extra digit hiding in here
* Corrected from: https://www.safehorizon.org/hotlines/

Change-Id: I75f179f0b263514df54acf4adc1df0f8ff3f3ada
2018-01-29 02:50:01 +02:00
Jamie
e446022782 sensitive_pn: Add some more numbers for Canada
* Mostly child abuse numers, some for violence against women
* From: http://www.children.gov.on.ca/htdocs/English/childrensaid/reportingabuse/CASLocations.aspx

Change-Id: I18add946c242eeac1c6f0859a3fd5f4fe073c6ce
2018-01-29 02:50:01 +02:00
Paul Keith
765c9d1104 sensitive_pn: Sort file
* Sort MCC orders
* Sort phone number orders
* Remove one duplicate phone number entry (116123 in GB)
* Add a note about maintaining this file

Change-Id: Ifcf392c1ca54c0daf37248a647d401d4a93dd355
2018-01-29 02:50:01 +02:00
Matthew Freund
b8a586b0e8 Added more USA sensitive phone numbers
Change-Id: I241b79a4e0a5252a010e5d8b2c1315334f5ae03f
2018-01-29 02:50:01 +02:00
systemcrash
ab2bed7056 Add APN for iD Mobile UK MVNO
Change-Id: I3af3a5a93676b0750cfa7d025e6114130fa809c8
2018-01-29 02:50:01 +02:00
systemcrash
9ddc8182cb Added Cape Verde carrier CVMóvel default APN as configured by sales agents
Change-Id: Ic63f75c8fd8720ac04ee52b7a98e0f60ee82284d
2018-01-21 19:26:35 +00:00
Matthew Freund
e03ab09f8b sensitive_pn: added Belgium & Switzerland
Change-Id: I2af43571b07504fe379656e2ecd65759b9295172
2018-01-17 11:27:58 +00:00
Jonas Schwarz
81bc93bfd1 Updated Syma APN
Accordind to https://www.symamobile.com/parametrage-internet.html#8 the Syma APN should be symamobile.com not symacom.fr
I had to edit the APN manually to get it working

Change-Id: I62ccdc6bdcf8803e47c2f454a6ece622e06027d1
2018-01-17 11:27:52 +00:00
Saylance
dc0dfc9501 apns-conf: Update Ukrainian APNs
Using information from operators sites.

* Rebranding UMC -> MTS -> Vodafone
* Rebranding life -> lifecell
* Rebranding Utel -> TriMob
* Brand merging Jeans -> MTS (Vodafone)
* Brand merging Beeline -> Kyivstar
* Brand merging Ace_Base -> Kyivstar
* Cleanup unused apns

Change-Id: I9646488604c71d6a2b3acae61eb6cdd0d55540bd
Signed-off-by: Saylance <bogdanpower@ukr.net>
2017-12-30 12:08:36 +00:00
Louis Popi
e49657031e apn: Remove "hipri,dun" from Bouygues Telecom
* Unbreaks MMS very slow transfer

Change-Id: Ib3da8d07424044e4791b2ffabd6dad2e975812c3
2017-12-30 12:08:03 +00:00
Celoxocis
4822d9bdc2 Add M-tel (BIH) APN for M-tel Frend data plan
* http://www.mtel.ba/frend-plan
 * Frend spoken "friend" is their voice & data plan

Change-Id: I014f7549d936c64abb3801596d940cee7703f790
Signed-off-by: Celoxocis <celox.ocis@gmail.com>
2017-12-30 12:08:00 +00:00
Adrian DC
93256e4ac9
vendor: lineage: Upgrade to LineageOS 15.1
* Update backuptool versions
 * Update text references
 * Set version minor to 1

Change-Id: I30eea1f1cb01e2165311364cc62b589669bb1290
2017-12-07 01:36:18 +01:00
hedwig34
e77b6a2f8c Updated apns for device bringup for S4 Mini - serranolteusc
Change-Id: I22172debc835f6fd99bd2ed0afdfbe197f993345
2017-12-04 19:56:41 +00:00
meganukebmp
75b12b2196 sensitive_pn: Add BG human trafficking and domestic abuse hotlines
http://animusassociation.org/en/
http://080020100.bg/eng

Change-Id: I7560ce3a65731feab7bd9d3f9be1fe092254651c
2017-11-23 13:47:05 +00:00
Sam Mortimer
c10885231f Refactor Lineage init rc file
*) Put Lineage rc files in /system/etc/init instead of /init.lineage.rc

*) Split into function specific files (vibrator-specific stuff moved to
   our custom vibrator HAL service)

Change-Id: I1d00950253fbf7fdd7a4b7bd52adbed971923575
2017-10-15 03:06:48 +00:00
67891abc
d4d509ccf3 vendor: We are now LineageOS
Change-Id: I411cd912eb4fd1f752da03ab8027089aac92fc86
2017-10-04 07:40:47 +00:00
Gabriele M
f395bed811
Create /data/lineage_updates to store updates
GmsCore deletes the files in /data/ota_package/, including the files
downloaded by Updater. Create a new directory where Updater can store
its files not to have them disappear randomly.

Change-Id: Ifdfbc7f81eb5f2c4370d02f0634c869fdbb848b4
2017-09-02 19:44:15 +03:00
Luca Stefani
5c60e4fd24
lineage: Complete the rebrand
* TODO: Rebrand cmsdk when it's in a working state

Change-Id: I0d8d573f9e0032110ae3a0f54ebe11a877b83137
2017-08-23 17:33:22 +03:00
Abhisek Devkota
62764465b1 Update initial attach for Tmo US
Change-Id: Ib7b0db56099be1fbe10787014c0b3730edb865e4
2017-08-19 20:57:49 +00:00
Alexandre Oliveira
3af5191522 Add Correios Celular (BR) APN
Change-Id: I34b2aa557fc0532194423b1c04b6469ad4ead2ec
2017-08-08 02:17:32 +00:00
Keita Espinoza
36dcbd41d3 Add WOM Internet/MMS (CL) apn
Change-Id: I2a3e39ff76f78c9ad37fb2f36b9d40b7b5bf6a4d
2017-08-05 02:11:45 +00:00
jumoog
54afae56fd sensitive_pn: add EU 116 Numbers
116006 - Victims of crime
116111 - Child Helplines
116123 - Emotional support helpline

overview: https://ec.europa.eu/digital-single-market/en/116-helplines
per country: https://ec.europa.eu/digital-single-market/en/116-your-country

Change-Id: I7f7eccd3dc743a164e219152f26feda17cfb1b75
2017-07-28 13:37:51 +02:00
Bauuuuu
7dff2f7ae7 apns: correct the mvno_match_data for MasMovil Spain
* fixes the broken auto-detection for MasMovil Spain

Change-Id: I6fadeb3703e78d6ba6b2fe9420b9a45cd1f78de1
2017-07-26 19:07:19 +00:00
Julien Humbert
8146415ace sensitive_pn: Include France DOM (Overseas regions) codes
France has 7 MCC codes, but only include the 2 DOM (Overseas regions) codes here.
* Metropolitan France: 208
* Guadeloupe, Martinique, Guyane: 340
* La Réunion, Mayotte, TAAF (French Southern and Antarctic Lands): 647

The 4 others MCC codes aren't covered by those number as stated on their website.
* Saint-Pierre-et-Miquelon: 308
* Wallis-et-Futuba: 543
* Nouvelle-Calédonie: 546
* Polynésie française: 547

See:
* http://www.solidaritefemmes.org/appeler-le-3919
* http://www.allo119.gouv.fr/

Change-Id: If13e2c2cfa669b76178182f9aa2d0f19772a45a3
2017-07-24 18:17:15 +00:00
Paul Keith
ff7a5e4a63 sensitive_pn: Enter full list of Indian MCC codes
* India has mutliple MCC codes, so input all of them

Change-Id: I6c74b99d4c893f84d73a1cffd1a7880bc5d9c67f
2017-07-06 14:34:14 -05:00
Harry Youd
168bca4677 sensitive_pn: Enter full list of GB MCC codes
GB has 2 MCC codes, enter them both here

Change-Id: I6902499bb3ec60c6aa0dc1db6b0f01d2497b34ac
2017-07-06 14:34:14 -05:00
Paul Keith
112ffc142a sensitive_pn: Enter full list of US MCC codes
* The USA has mutliple MCC codes, so input all of them

Change-Id: I4a6a903a38ee737053f8c3c7dcd56d6d2ef791a3
2017-07-06 14:34:12 -05:00
AI Lion
302c065cdb Add LTE support for China Telecom Macau.
Notice: I am very likely the only one here having a Macau SIM card, so I am the only one who can confirm this change.
Please do not paste APN settings copied from other vendors or devices. 
The exactly APN used in MIUI is not MMC455/MNC07 but MMC455/MNC02, maybe Xiaomi has done extra calculations to do so.

It is a waste of time to argue which APN is “BETTER”. This one works for China Telecom Macau LTE. I can confirm this. If you live out of Macau, you can't.
Screenshot: https://pics.mustu.cn/assets/52c546f9-e883-4335-a090-c9e66ec1c77e.png

CTWAP and CTNET are not discussed in this change.
CTNET is for 3G. There are still someone using 3G. You can add one if you are interested in this, or I will add one if I have a confirmed APN settings from China Telecom Macau staffs.
CTWAP is outdated. If you use CTWAP in China, most apps will tell you "CTWAP is deprecated, use CTNET instead.".

China is moving from 3G to 4G/LTE, and will soon be moving from 4G to 5G. If you live out of China, please simply +1 and merge it. If you live in China and having problem with this APN, we can discuss this with beer and snacks.

For now, there is NO APN settings for MMC455/MNC07, so this APN won't harm anyone else living out of Macau.

Merge this change, that's it.


Update:
Add CTNET for MMC455/MNC07
Screenshot: https://pics.mustu.cn/assets/bbd9e8ee-7af5-4d5e-af6d-3722de329ef0.png

Change-Id: I8600dbbb8d3ea567f04a516d7a296dbaaebc5216
2017-07-04 05:34:59 +00:00
Julien Humbert
ee7a90ed71 apns-conf: Add Japan Umobile APNs
Umobile/Usen Music/Umobile for iPhone/Umobile LTE使い放題: https://umobile.jp/service/setting/d/
Umobile Max: https://umobile.jp/service/setting/max/
Umobile Premium: https://umobile.jp/service/setting/premium/
Umobile Super: https://umobile.jp/service/setting/super/

Change-Id: Id2883e9c04f8e67bfdbca83824c42e36005dada6
2017-06-26 18:35:29 +00:00
Michael Bestas
bb634aafdb sensitive_pn: Add sensitive numbers for Greece
Change-Id: I69153122a230d5b46924e9300d2ead90a6580ed4
2017-06-25 10:42:06 +00:00
jumoog
244370e5b9 sensitive_pn: fix Czech Republic MCC
Czech Republic MCC is 230 not 420 (Saudi Arabia)

Change-Id: I7429c22a35249d6124a6a47ed5f288b5449bd4c6
2017-06-25 11:32:18 +02:00
Sean hoyt
9a4fe2b37d sensitive_pn: Add Taiwanese sensitive numbers
1955 Foreign Workers Counseling and Protection Hotline 
113 Children and Women Protection Hotline
886-2-5388-3095, 886-3-555-7953 Counter Human Trafficking Hotline

Sources: 
http://www.hchpb.gov.tw/eng/index.php?catid=237&id=6
http://www.hchpb.gov.tw/eng/index.php?catid=237&id=3

Change-Id: I1fcdc78703b324c37cd8e7921b21d63d53f9e8b3
2017-06-24 20:46:14 +00:00
Olexandr Nesterenko
f00861841c Add sensitive numbers for Ukraine.
Source: http://www.la-strada.org.ua :
Human Trafficking Counteraction: "0-800-500-22-5"
Domestic Violence Counteraction: "0-800-500-33-5" or "386"
Child Rights Protection: "0-800-500-33-5" or "386"
Gender And Human Rights: "0-800-500-33-5"

Source: http://www.la-strada.org.ua/ucp_mod_content_show_30_robota-garyachoyi-liniyi.html :
National Child Toll Free Hotline "0-800-500-22-5" or "772"

Change-Id: I63a02f34853b86914383d9d8666036cd684bc3b3
2017-06-22 21:38:55 +00:00
Liam Mendes
b9b2e57c32 Add Virgin Media Ireland to APN's
Add Virgin Mobile Ireland by Virgin Media to the list of LineageOS APNs. 

Source: https://www.virginmedia.ie/customer-support/mobile/device-support/?page=device/samsung/galaxy-s8/topic/internet-apn/setup-internet-on-your-phone
(there's nothing special about the S8, but the support website requires a phone to be chosen to reveal APN settings)

Change-Id: I2e85f506180a41d522de6c77b855305e46704fb5
2017-06-22 16:43:24 +00:00
Julien Humbert
42ded0625c sensitive_pn: Add additional FR number
* See: http://www.allo119.gouv.fr/

Change-Id: I3a4301b743c880ab9187a3988c206210a235639e
2017-06-21 21:46:10 +02:00
Tim Graham
f3972a9a7f sensitive_pn: Add additional GB numbers
Childline National Child Abuse Hotline
Phone Number: 0800 1111

* See: https://www.childline.org.uk/get-support/contacting-childline/

Samaritans Hotline
Phone Number: 116 123

* See: http://www.samaritans.org/how-we-can-help-you/contact-us

Change-Id: Ic5971d35f4c5c93b82d5ca1b9f22def522196cc0
2017-06-20 23:58:59 +00:00
Bruno Martins
f2e9a83ec7 sensitive_pn: Add additional PT numbers
* Reference: http://www.apav.pt/vd/index.php/apoio-a-vitima

Change-Id: I3c7f82626912e659bd9f625e3c84d3e48fe35bbb
2017-06-20 22:49:12 +00:00
Alexandre Oliveira
9e1a579a55 sensitive_pn: add missing phone number for Brazil
- Added number 181
  (http://www.anatel.gov.br/Portal/exibirPortalPaginaEspecial.do?codItemCanal=746&codCanal=277)

Change-Id: I7ee8364116562b5b1976f8c624d79b27c21be100
2017-06-19 05:16:31 +00:00
Noam Tamim
f5049a6a89 Add sensitive numbers for Israel.
* source: Israeli Police, https://www.police.gov.il/contentpage.aspx?pid=125.

Change-Id: If9625421dead4f6677bea4d6a187e33ef0bf11fb
2017-06-09 01:18:39 +00:00
drastic-krutor
5436ebc7a3 sensitive_pn: Add sensitive phone numbers for Czech Republic
* Check http://www.psychoportal.cz/linky-duvery
* Check http://www.capld.cz/linky-duvery-cr

Change-Id: I5fdccddd80645183e674eb60947ccafa7a7b6c79
2017-06-06 13:31:27 +00:00
Tim Lewis
8c8b1376f9 sensitive_pn: Add Canadian sensitive numbers
* Source: http://www.dawncanada.net/issues/issues/we-can-tell-and-we-will-tell-2/crisis-hotlines/

Change-Id: Ie138f513fb47cb2faa6961940f0d92f79c5862dc
2017-06-06 10:20:41 +10:00
Brinly Taylor
fa5fdd6771 sensitive_pn: Add more numbers from the Netherlands
* 08002000 (national institute 'Veilig thuis' that offers help to domestic violence victims: https://www.vooreenveiligthuis.nl/ )
* 09009999001 (national institute 'Hulplijn Seksueel Misbruik' that offers help to victims of sexual assault: https://www.verbreekdestilte.nl/ )
* 08000432 (national institute 'Kindertelefoon' that offers help to children and teenagers under abuse: https://www.kindertelefoon.nl/ )
* 09000101 (national institute 'Slachtofferhulp Nederland' that also offers help to victims of the above and other crimes: https://www.slachtofferhulp.nl/ )

Author wishes to remain anonymous, so submitting here on behalf of them.

* Source:  https://www.rijksoverheid.nl/onderwerpen/huiselijk-geweld/vraag-en-antwoord/wat-moet-ik-doen-bij-huiselijk-geweld

Change-Id: Icc91ebfacc2f3c4265db0d35a1ccb90efe42b125
2017-06-06 10:12:19 +10:00
Gabriele M
4fe35097b3 fix check_blacklist function to work on wiped /system partition
If /system is empty, /tmp/addon.d/ will not exist, "*sh" won't be
expanded, md5sum will not generate any output and the variable $s
will be empty. Therefore grep, which will receive only one arg, will
start to read the standard input and never exit, causing the
installation to never end. Fix this checking whether we have files
to read or not.

Change-Id: I656eab42e54b3f81da8c5ac81374b9deddcf8484
2017-06-04 19:46:13 +00:00
Brinly Taylor
140d378f4f sensitive_pn: Add sensitive numbers for Serbia
* Source: http://www.mup.gov.rs/wps/portal/sr/gradjani/saveti/nasilje%20u%20porodici/

Change-Id: Id941e47347ac2b8c7230d314e1b7fb750e4dec1e
2017-06-04 15:00:55 +10:00
Brinly Taylor
62741ba915 sensitive_pn: Add sensitive phone numbers for India
* Reference: https://www.jaagore.com/womens-help-line-numbers

Change-Id: Ib2b0930882dbfaaba248c8e3aee964ee37a2133b
2017-06-01 10:02:49 +10:00
Matthias Urlichs
8c3ee9c0f4 sensitive_pn: Add more numbers for Germany
* add numbers for crisis hotline / Telefonseelsorge
* Reference: http://www.telefonseelsorge.de

Change-Id: Ida9ea1d108db9a36fde84d2c63a0ab7316abf19a
2017-06-01 10:02:45 +10:00
Arne Coucheron
4b1013f3b3 sensitive_pn: Add sensitive phone numbers for Norway
Ref: https://psykiskhelse.no/hjelpetelefoner-og-nettsteder

Change-Id: I600deec0f6e3d2cc2334fc148e3762cfef4fb571
2017-05-31 06:29:58 +00:00
Kasual
7201def8b5 sensitive_pn: Add additional US numbers
Childhelp National Child Abuse Hotline
Phone Number: 800-4-A-CHILD (800-422-4453)

National Sexual Assault Hotline
Phone Number: 800-656-HOPE (4673)

* See: https://www.womenshealth.gov/mental-health/hotlines/

Change-Id: I1769b0612c77f2843a2c967a853d7eafc9c2bb5e
2017-05-29 22:44:55 +00:00
qjohn
05eb2b3684 sensitive_pn: add sensitive number for Indonesia
* Check http://www.komnasperempuan.go.id/kontak-kami/

Change-Id: Idf48d596382e71ac5a68c84bdb6fbe85d6441895
2017-05-29 22:41:42 +00:00
Calin
5d2999052e sensitive_pn: Add sensitive phone number for Romania
Reference: http://www.fundatiasensiblu.ro/

* Also order Netherlands

Change-Id: If35b030a591aabef0e26e51593ab7514abffeada
Signed-off-by: Calin <nilac8991@gmail.com>
2017-05-29 16:36:34 +02:00