The service will offer updateUserConfig, getUserConfig, and
userConfigContains methods, which will be used from LineageParts and
fwb. The service will also observe Settings.Global.BUGREPORT_IN_POWER_MENU
and Settings.Secure.LOCKDOWN_IN_POWER_MENU to update the GlobalActions
dialog when these are updated.
Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: I46663ab1ffe6f8d8b2a3dc7dbe54a65b7a62046a
Partially follow the order of config_globalActionsList and bring emergency and lockdown to top. Some of the order isn't followed as some items such as users and airplane don't exist in AOSP's list but are much more frequently used than, say, bugreport.
Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: Ie49e77fd99ad0f0dee7c6c7956fc7c1d0474ee63
Make sure that the option has effect ONLY when battery is uh...
fully charged.
Additionally add previously missing logging.
Change-Id: Ib232d0ea6652230a2435be6931f964dc04a30f71
* In certain network situations (e.g. while changing from wifi to
cellular) it can happen, that the HashMap is modified while the stats
are currently being recalculated
* We can prevent this by moving adding and removing of any network
to the same handler so the callbacks can happen without breaking the
flow
* Move the existing code in handleMessage into some little helper
methods so it stays simple and readable
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/2870
Change-Id: I38c0c27a4f76fab5aeee013beab346c088bbbd59
On FDE we check wether keyguard is enabled before starting non-core
services like ProfileManager.
All method calls are already guarding RemoteException for a binder
fail, so just throw one if getService() fails.
Change-Id: I44a3a5ea56a5277d84d96a0bc2c7135433811e20
For Spotify and other players that allow music controls for
remote devices (PC, PS4) through the media notification
Change-Id: I38887f8b1cff1a0c1e3adadbfe37d5af59b5cdcc
Since Android 10 arrived, the support for manual SIM provisioning
was never ported. In fact, there seems to be a way to do that
using some bits of AOSP code.
This way we get rid of the telephony-ext dependency for good.
Change-Id: Ibe4e430d696782032b7d9840ab36db040c3a4df9
* Don't call ConnectionManager.get* methods from within the callback,
docs say it's racy.
* Remove the NetworkState struct whilst we're here. It was
useful for debug during development but is no longer needed.
Change-Id: Ia1abbdfa31b258c38ba809844340d0dc06e5bd07
*) Regular interface stats don't include hw offload tethering
statistics so collect and include them in our traffic
calculations.
Change-Id: Id72577429840f65ae20d7b80e7490ec41d826579
* This conflicts with AOSP gestures implemention now, and
the framework part is hard to port.
* Furthermore the original implementation has the following
bugs/issues:
1. Pressing power button or double tap does not wake up the device
2. No soft-key buttons when opening the keyboard
3. Probably more
Change-Id: Ia233c3b9d0aa7426f0fd15dffe4da203b4e09b1d
* Moving SensitivePhoneNumbers to sdk got us significantly bigger
zip packages due to libphonenumber being part of every package that is
using org.lineageos.platform or org.lineageos.platform.internal
* In order to correct this, move the "phone" folder to an own library that
statically links libphonennumber and subsequentially make use of that
package where needed
Change-Id: I4effd7a9248290aeb23ab47ff8e30385dce4401a
* Constructor is called during boot, adding boot time where
it's not necessary
* Use the first actual call to a function to parse the list
Change-Id: I02548d004c5d78db65c872247cd36a0405d826ea
* Now that there are more users than just call log, it is better to parse
the XML-file just once
* Keep an instance around for the various users of this class
Change-Id: Iff1510dc40d68a211a6a1c5f19e4ca9ac64c3fcd
* When calling the number with intl. prefix it is currently not hidden
* Remove the international prefix before checking th number
Test:
Before:
116006 - hidden
+49116006 - not hidden
004911606 - not hidden
After:
116006 - hidden
+49116006 - hidden
0049116006 - hidden
Change-Id: I72ec2c9a4da87ef243c59c8c4bab33585fdbd854
* Instead of only checking the current or default MCC to hide a number,
see if any of the connected networks would hide a number
* This makes sure that e.g. for multiple sims (e.g. living next to the
country border, having one sim for each country) and accidentially using
the wrong sim for a call, the number would still get hidden
Change-Id: I2692d00217d3143fd55122cee9064528bb09352d
* In order to access the classes in Dialer, we need to expose them
This was extracted from the original implementation in Telecom
Author: Olaia Segovia <olaia.segovia@bq.com>
Date: Thu Mar 16 08:40:30 2017 +0100
(1/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: I4a59ff0577942ce56924f1a434ae0a3a38eacc62
Signed-off-by: Olaia Segovia <olaia.segovia@bq.com>
Author: Paul Keith <javelinanddart@gmail.com>
Date: Thu Jun 22 19:40:56 2017 +0200
SensitivePhoneNumbers: Handle lists of MCC codes
* Some countries have multiple MCC codes, so handle it
* In the sensitivePN network field, enter the list of
MCCs like so: https://review.lineageos.org/178233
Change-Id: I34225473404b2be2640ea9ab05691dc985c49fa0
Author: Paul Keith <javelinanddart@gmail.com>
Date: Thu Jul 6 16:12:12 2017 -0500
SensitivePhoneNumbers: Fix number comparison
* Currently, we just compare the strings for equality,
which results in incorrect detection of sensitive nums
a lot of the time, because adding (or removing) the
country code is enough to make the detection fail,
meaning the call to that phone number is logged
* Use Android's PhoneNumberUtils comparison method to
fix this, since it takes these factors into account
Change-Id: I26ac180f8a6552cf87a4bada1d370f0ebb884ee1
Author: Michael W <baddaemon87@gmail.com>
AuthorDate: 2019-09-07 18:34:57 +0200
CallLog: Fix improper call to SensitivePhoneNumbers
* isSensitiveNumber expects a subId to be passed, but with the current
implementation gets a PhoneAccountHandle
* Actually pass the subId and make the call use an int, while on it
* Fall back to the default subId only when we get an
INVALID_SUBSCRIPTION_ID
Change-Id: Id6d64f2c9f76d94d1b4d9851317ea2cc7e07323b
Change-Id: I241c1652105b82d1d15549332cb6e274d7c726ce
* Fix bp and manifest to work with AndroidJUnitRunner.
* Remove broken tests (we no longer intercept in fw/b
settings provider and QS_USE_MAIN_TILES was removed).
* Tests pass when executed using:
adb shell am instrument org.lineageos.lineagesettings.tests/androidx.test.runner.AndroidJUnitRunner
(see README.md for more info)
Change-Id: I3fcf4885c61106f43e99847293220afee78e2f6a