Commit graph

2904 commits

Author SHA1 Message Date
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
Michael Bestas
e5969e2d1c
roomservice: Search for repos in lineage snippet too
Change-Id: Id544d4bce731b14dbc7656382163d4657c347b83
2017-06-17 20:01:23 +03:00
Michael Bestas
21b9d391e7
roomservice: Remove support for devices in main manifest
* We are using roomservice for all devices since a long time

Change-Id: Ice5c37de154ca3fb4cf69a8401e5bbe3c9e56e2a
2017-06-17 19:58:55 +03: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
Valerio Pilo
24658d614e sensitive_pn: Added sensitive number for the Netherlands
* See https://www.blijfgroep.nl/kennis-delen/feiten-en-cijfers

Change-Id: I70e62f67b0139cf467b3446b02c8ebce7330cdd2
2017-05-29 13:22:09 +00:00
Ali B
8bb74813de sensitive_pn: add sensitive numbers for Turkey
* See http://alo144.aile.gov.tr/
      http://alo183.aile.gov.tr/

Change-Id: I360ee3fc1310c825121e8203eedd4887fc2b6944
2017-05-29 09:57:52 +00:00
Anik1199
471a9be035 sensitive_pn: Add sensitive phone number for Bangladesh
* Check http://nhc.gov.bd

Change-Id: Idbc664fae9c5380ae927898e0cac79262790d815
2017-05-29 18:13:43 +10:00
Brinly Taylor
976b17e226 sensitive_pn: Add US number
* See: http://www.thehotline.org

Change-Id: Ia56567f1f5fdb82f4ec61e20fe644066f03b1cb7
2017-05-29 08:02:39 +00:00
João Paulo Just Peixoto
d409afe338 Add sensitive phone numbers for Brazil
Change-Id: I69904b190adfee83c49ad49ae19d9bf7eea62b46
2017-05-29 05:55:59 +00:00
Brinly Taylor
7b9fa169e3 sensitive_pn: reorder by MCC code
* Organise this by MCC number numerically.

Change-Id: I9493a8a4427675955881b924915fd42d5f402b6a
2017-05-29 05:54:55 +00:00
Brinly Taylor
2ca43d1e21 sensitive_pn: Add Australian sensitive phone number.
* See:  1800 RESPECT - https://www.dss.gov.au/our-responsibilities/women/programs-services/reducing-violence/help-and-support

Change-Id: Iaea9b84298bfc17ae7c698135c6fd43875b50db9
2017-05-29 05:49:38 +00:00
Brinly Taylor
3a02137d88 sensitive_pn: Add New Zealand sensitive numbers.
* See for the number : https://womensrefuge.org.nz

Change-Id: I44210532061d2a33db15a0cb30a19c1a3235b155
2017-05-29 05:42:40 +00:00
Olaia Segovia
7c5e4cbf2f (2/2) Make sensitive phone numbers not to be shown in call log history.
Considering sensitive phone numbers to be, hotlines dealing with
violence against women.
In the EU, these numbers do not show up in the phone bill.
In order to avoid these phone numbers to be listed in the Call Log, we
have implemented a new XML file which is parsed with phone numbers
from different countries to be filtered. This file needs to be copied to
device via desired Android.mk file in order to be able to process it.
The comparison is made checking the network MCC the SIM is connected to
in order to consider roaming and multisim scenarios.

Test: CallLogManagerTest.testDontLogCallsToSensitivePhoneNumber PASS

Change-Id: I2e78d0f3e13d1ad1298613651ece136e30b86dfe
Signed-off-by: Olaia Segovia <olaia.segovia@bq.com>
2017-05-26 19:30:06 +00:00
ShevT
eb37f20c81 overlay: Enable Wi-Fi by default on first boot
* Fixes SetupWizard crash

Change-Id: Id97a7d0b8a0f4396a527aff6425a087a859018af
2017-05-26 08:08:21 +00:00
Sebastian Haderecker
a4cfcca9e4 Show full alarm info
Globally enable full alarm info in quick settings drawer.

Screenshots: https://goo.gl/photos/ycuvZZFD1ssyWu8B6

This detailed info is pretty useful why not enable it for all devices.

Change-Id: I46ccc3547922b6ab5fdcf8798bd5269b7465a92d
Signed-off-by: Sebastian Haderecker <sebastian.haderecker@gmail.com>
2017-05-25 08:44:46 +00:00
Dobroslaw Kijowski
65f03f1408 extract_utils: fix extracting XML files containing binary characters
When a line from the XML file contains a character which grep classifies
as a binary one, it will omit this line at all. Moreover it will append
'Binary file matches' to the stdout. This behavior breaks some XML files.
To fix this issue, let's tell grep to process a binary file as if it were
text.

Change-Id: I6ec5689f73a0926870e502f3f8ee77346b47d05f
2017-05-18 12:37:08 +02:00
Dan Pasanen
fbaeadb8f5 cm: Remove Gello
* Jelly is more lightweight and much easier to maintain. Gello can
  live on if someone decides they want to compile it and host it
  somewhere.

Change-Id: Ifbd611056892dc8627edcb1d2bf3eadb6ac25b15
2017-05-11 10:02:58 -05:00
Joey Rizzoli
177ab036d0 cm: nuke browser, welcome jelly
* Aosp browser is really old and insecure, remove it
* Jelly is a simple webview-based browser, so it relies on installed webview,
  which makes it secure as long as webview is updated
* Gello is still alive, it overrides Jelly instead of Browser target

Change-Id: Idd1dbe37879e1c1d466b93f5e754f1108f4dcfa6
Signed-off-by: Joey Rizzoli <joey@lineageos.org>
2017-05-01 20:37:54 +00:00
Arne Coucheron
ca8cd53bcc cm: Remove obsolete and unused overlays and configs
Change-Id: I9c7e208ece6c484fbc4f5d6c5470998bf0c6fb46
2017-04-30 00:22:19 +02:00
Michael Bestas
d67ef7821d
addonsu: Add Lineage version to zip name
* Avoid confusion

Change-Id: I823d77e037b0d0dc2a4b9f0466d594213c72e179
2017-04-28 23:55:39 +03:00
Gabriele M
5b33c6c1d5 Add target to make a flashable su addon
Run 'make addonsu' to make a flashable zip to install the addon and
'make addonsu-remove' for a flashable zip that removes it.

Change-Id: I5b2fe67f98f2474b923c074dc6025b47c6db2ae0
2017-04-20 04:06:38 +00:00
Christopher N. Hesse
1e7c3f00c6 kernel: Fix broken C_INCLUDE_PATH for Darwin
Commit 7fb9251dfc modified
the expansion in an illegal way.

Fix the broken env variable.

Change-Id: Ib3029fa995d6a4b0416887a2ef2e4792c9e6bb27
(cherry picked from commit 90b437e784c19fc428c24891cc96705b89b786df)
2017-04-11 23:08:32 +00:00
Rashed Abdel-Tawab
7fb9251dfc kernel: Include openssl headers and dylibs on darwin
The easiest and best way to get openssl on darwin is using homebrew,
however homebrew refuses to link openssl (and for good reason) in
order to prevent conflicts with Apple's homegrown version. Include
the openssl headers and dylibs from the dir that homebrew installs
openssl to let 4.4 kernels compile.

Change-Id: I06b66768fbdd4855fd57b88100d646ed6e311a59
2017-04-09 00:44:05 -05:00
Dan Pasanen
b782210019 Revert "YOLO"
This reverts commit 430f569db3.

Change-Id: I99c4245625629940d83fe535fbdb79fe1b9b4887
2017-04-09 00:43:57 -05:00
Dan Pasanen
2f40cfa17a Revert "Br0Zip"
This reverts commit dd4ee0c2e3.

Change-Id: If2a884670142a88b3df1daeadede99be6a9e7167
2017-04-09 00:43:57 -05:00
Rashed Abdel-Tawab
c59cbe0c90 build: Update smali and baksmali to 2.2.0
Change-Id: I4ee68b1152d41a80138e1df92f2f8316e471d658
2017-04-09 00:43:57 -05:00
Dan Pasanen
8ee2386925 charger: updates for 7.1.2 minui
Change-Id: I613799e7ed332d11333ba166f7df310b86deb450
2017-04-05 10:40:52 -05:00
Michael Gernoth
29f3b5775b roomservice: handle devices with underscores
This change correctly handles devices with underscores in their
name even if there is a device with the same name after the last
underscore (spyder, umts_spyder) by not allowing any underscores
in the manufacturers name.

Without this change, spyder gets resolved to:
device/motorola_umts/spyder
device/motorola/spyder

Only the last one is valid.

With this change, both spyder and umts_spyder get resolved correctly.

Change-Id: I0c95ff126d827a2d6b58875dfcb9327e999f4913
2017-04-03 07:25:01 -05:00
Joey Rizzoli
dd4ee0c2e3 Br0Zip
Change-Id: I84eee4b2bcd4c3564660a99ddbf5f76a38847a93
Signed-off-by: Joey Rizzoli <joey@lineageos.org>
2017-04-02 19:14:33 +00:00
Harry Youd
430f569db3 YOLO
Change-Id: If1605830592dd6cfccd0a06d94736f4e5e09eb7d
2017-04-02 20:03:11 +01:00
Alexander Phinikarides
fc5ab9c2e5 Fix APNs for Cyprus
Change-Id: I71ca194aa95d6f43be2dc277b5ccfdff0e188afd
2017-03-29 19:51:17 +00:00
Dan Pasanen
7dc287f4b9 extract_utils: support extracting directly from an ota zip
* Specify the ota zip name as the only parameter to extract-files.sh
  * Will extract to $CM_ROOT/system_dump
  * Bail out on A/B OTA zips. We cannot support these.
  * Handles block based OTA zips by using sdat2img.py
  * Store the zip's MD5 and check if its already extracted. If so, don't
    bother extracting again

Change-Id: I03038e38dac51e6cb60d493c7e6362754d1daf02
2017-03-27 08:46:48 -05:00
Joey Rizzoli
0277543ee1 cm: remove special access to unused cmfm
An user-installed app with the cmfm package name could take advantage of this

Change-Id: I707df3043b9cd73cefcdea4ad0a28632f78089be
Signed-off-by: Joey Rizzoli <joey@lineageos.org>
2017-03-26 14:02:13 +02:00
Joey Rizzoli
d5b520fd95 cm: allow apps to find profile manager service
avc:  denied  { find } for service=profile pid=7970 uid=10086 scontext=u:r:untrusted_app:s0:c512,c768
    tcontext=u:object_r:cm_profile_service:s0 tclass=service_manager permissive=1
java.lang.RuntimeException: Unable to start activity ComponentInfo{foo.bar/foo.bar.Activity}: java.lang.SecurityException:
    You do not have permissions to change the Profile Manager.: Neither user 10086 nor current process has cyanogenmod.permission.MODIFY_PROFILES.

Ticket: BUGBASH-174

Change-Id: If8706177bf6eef8d5e4c73da4f00cc053987d1ed
Signed-off-by: Joey Rizzoli <joey@lineageos.org>
2017-03-25 22:44:52 +00:00
LuK1337
ad5d9a0ff0 cm: build: Don't convert patchset to int if it's None
* donuts *

Change-Id: I65bfb1741481b01874f21d83b5a43b0902b7d8ea
2017-03-24 23:25:44 +01:00
LuK1337
2756418873 cm: build: Fix cherry picking specific patchsets
Change-Id: I396a1218f141a1ff4cb45252cc01a1487c2afd31
2017-03-24 21:49:55 +00:00
Sean hoyt
fc9a4c5793 Make a data only config
Change-Id: I99d60de61384aa413f64fbd60842c42ee1a169af
2017-03-24 19:59:47 +00:00
Michael W
12ee4592b9 APN: Fix TalkTalk
* https://help2.talktalk.co.uk/manually-entering-mobile-phone-settings

BUGBASH-265

Change-Id: Ie52976ff9df0e755ceebcee9260140e32b56f274
2017-03-24 19:58:32 +00:00
Michael Stucki
84582dd5c5 apns: Update Swiss APNs
* Remove duplicates
* Rename Orange to Salt

Change-Id: Ia2fc82d119e202da5d31383d340ad3ccae48c0ec
2017-03-22 23:32:28 +00:00