OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoAutomatic translation import
Michael Bestas [Sun, 10 Mar 2019 22:22:31 +0000 (00:22 +0200)]
Automatic translation import

Change-Id: I883549e61ac8ea1f3846320d59620eeea0a1d362

5 years agoMake adb use a custom prop for adb root
syphyr [Sat, 24 Nov 2018 22:06:36 +0000 (23:06 +0100)]
Make adb use a custom prop for adb root

Change-Id: Ibc6b06d5e4729bd76fc26ffcd072a2ba4219c708

5 years agoBACKPORT: Disable changing lock when device is not provisioned.
Doris Ling [Tue, 31 Jul 2018 21:04:44 +0000 (14:04 -0700)]
BACKPORT: Disable changing lock when device is not provisioned.

When the device is not yet provisioned and settings is launched:
- disable the entry point for changing device lock
- remove the search panel from settings home page
- remove the search menu

Bug: 110034419
Test: make RunSettingsRoboTests
Change-Id: Ieb7eb0e8699229ec0824ccc19d7b958ac44965a2
Merged-In: Ieb7eb0e8699229ec0824ccc19d7b958ac44965a2
(cherry picked from commit 770f4abf9de2bb7d74497cc4b5f6795023229ef2)
CVE-2018-9501

5 years agoAutomatic translation import
Michael Bestas [Sun, 14 Oct 2018 10:46:05 +0000 (13:46 +0300)]
Automatic translation import

Change-Id: I0f13a7ad827e30b8b769fae67a23d3cfbd3e5aa0

5 years agoMerge translations of Bluetooth confirmation text
Antony Sargent [Tue, 13 Feb 2018 00:17:54 +0000 (16:17 -0800)]
Merge translations of Bluetooth confirmation text

This is a manual merge of the translated strings from the master branch
of the 'bluetooth_pairing_shares_phonebook' string. The fix for this bug
requires these translations because the fix was to slightly reword the
confirmation text in the pairing dialog and stop substituting in the
device name.

Bug: 62672248
Test: manual
Change-Id: I829baada46cdb2314021d8772feb8811072e41d8
(cherry picked from commit 732b65ca4de0bf9cedeb3f2369a2ca596e78cfd3)

5 years agoDO NOT MERGE Fix unexpected behavior in Bluetooth pairing
Hansong Zhang [Mon, 2 Apr 2018 17:48:18 +0000 (10:48 -0700)]
DO NOT MERGE Fix unexpected behavior in Bluetooth pairing

* Set default PBAP permission to false
* Remove all newline and tab characters in Bluetooth device name

Bug: 72872376
Bug: 73173182
Test: manual
Change-Id: Ib3b99017c8da01446ce6302d43dcfb1ef8fba02c
(cherry picked from commit 4f58c19afa6531fbc56222775dc776f8b976881c)

5 years agoTitle is different after tapping "Memory used by apps"
Honglu Yin [Fri, 15 Jan 2016 06:21:14 +0000 (14:21 +0800)]
Title is different after tapping "Memory used by apps"

“App usage” is displayed as title after tapping
“Memory used by apps” on “Memory” screen. Change the
title from “App usage” to “Memory used by apps” for
consistency.

Change-Id: I3bada43f1fea1ae9acabb151ac68b60900a26dda

5 years agosettings: wifi: Default to numeric keyboard for static IP items
Tom Marshall [Tue, 28 Jun 2016 22:26:59 +0000 (15:26 -0700)]
settings: wifi: Default to numeric keyboard for static IP items

CYAN-7646

Change-Id: Ibc02cdcc863d2ae373b24bcfd5b97bf63de99222

6 years agoAutomatic translation import
Michael Bestas [Sat, 5 May 2018 16:20:27 +0000 (19:20 +0300)]
Automatic translation import

Change-Id: I9f8bebea19bb7fdcd11253676d3ec875739a8c3e

6 years agoAutomatic translation import
Michael Bestas [Thu, 19 Apr 2018 19:45:26 +0000 (22:45 +0300)]
Automatic translation import

Change-Id: I16a8623218ecee42034d0ea4263a6fd7d0742174

6 years agoPrivacyGuard: skip icon lookup for OP_NONE
Dan Pasanen [Fri, 16 Mar 2018 01:42:36 +0000 (20:42 -0500)]
PrivacyGuard: skip icon lookup for OP_NONE

* OP 0 (zero) is OP_COARSE_LOCATION. We only want to
  skip a lookup when the OP is OP_NONE (-1).

Change-Id: I64366aff1aa90bb71c2b99dae5485b0262860107

6 years agoPrivacyGuard: add a couple more missing icons
Dan Pasanen [Fri, 16 Mar 2018 01:40:44 +0000 (20:40 -0500)]
PrivacyGuard: add a couple more missing icons

* Add new icon for "Turn on screen" (ic_phone_android from
  https://github.com/google/material-design-icons)

* Use music note icon for media volume

Change-Id: I9c8d314906b973319c7aeb7d0d173c7a12925b94

6 years agoPrivacy Guard: Add icon for VPN permission
Tobias Tefke [Sun, 11 Mar 2018 16:58:28 +0000 (17:58 +0100)]
Privacy Guard: Add icon for VPN permission

Change-Id: I5f940c1966f9df755bc2643414b34b0303eac0a1

6 years agoAppOps: Add missing copyrights to icons
Michael Bestas [Sat, 31 Mar 2018 18:58:31 +0000 (21:58 +0300)]
AppOps: Add missing copyrights to icons

Change-Id: I73edf6f9d8f77ad1e4ffadbda7894ebc392f6af1

6 years agoAppOps: Add missing icons for alarm, bluetooth, stats, toast
Michael W [Thu, 11 Jan 2018 21:36:00 +0000 (22:36 +0100)]
AppOps: Add missing icons for alarm, bluetooth, stats, toast

* Obviously missing, so adding them

Change-Id: Ic36991db468fb2c2888c243971ac381d08ff60ff

6 years agoAppOpsDetails: Display all missing ops
Michael W [Tue, 9 Jan 2018 22:46:00 +0000 (23:46 +0100)]
AppOpsDetails: Display all missing ops

* Add a new template for the remaining ops
* Set the visibility of all ops to true

* Inspired by Gabriele M <moto.falcon.git@gmail.com>

Change-Id: I4f160a995a294dfbfd3013bbd29c0a9c8766ff24

6 years agoAutomatic translation import
Michael Bestas [Tue, 27 Mar 2018 22:48:11 +0000 (01:48 +0300)]
Automatic translation import

Change-Id: If7a850c73de02fce6b5784691e9e640dae72ac3e

6 years agoAutomatic translation import
Michael W [Sat, 17 Feb 2018 13:33:44 +0000 (14:33 +0100)]
Automatic translation import

Change-Id: I04f7bab2d7bba39f2e906beb24d860618ab883f6

6 years agoReword bluetooth confirmation dialog
Antony Sargent [Wed, 6 Sep 2017 23:15:59 +0000 (16:15 -0700)]
Reword bluetooth confirmation dialog

Changing the text near the checkbox allowing contacts/call history
access from "Allow $device_name to access your contacts and call
history" to just "Allow access to your contacts and call history" to
avoid problem where a properly crafted remote device name can make the
"to access your contacts and call history" text get pushed down below
the fold, and mislead users into thinking the checkbox has a different
meaning.

Bug: 62672248
Test: manual (initiate bluetooth pairing with another phone or a
computer, observe pairing dialog text)

Change-Id: I770852739f6791c2b9a36ab45c526bab3f3b9be1
(cherry picked from commit e14d38a3833676a9ee36155371136b83c4bfadb7)

6 years agoAutomatic translation import
Michael Bestas [Sun, 4 Feb 2018 02:33:08 +0000 (04:33 +0200)]
Automatic translation import

Change-Id: I5df3a574bc2911ce4aa50f0390f668ffc6029400

6 years agoFingerprintEnrollFindSensor: Don't overlay front for side sensors
Paul Keith [Fri, 26 Jan 2018 21:23:03 +0000 (22:23 +0100)]
FingerprintEnrollFindSensor: Don't overlay front for side sensors

* Both the base image and the base image + overlay are equally nonsense
  for devices with a side fingerprint scanner, but for those that overlay
  a custom fingerprint enrollment graphic, this image overlay wreaks havoc
* Only set this overlay to be visible if the sensor is on the front, to
  allow devices with side sensors to only overlay the base image

Change-Id: I7cbcea4830d4526cf9f7d139e7f84f21117fa9c4

6 years agoDevelopmentSettings: Fix possible NPE
Michael W [Sun, 14 Jan 2018 18:13:11 +0000 (19:13 +0100)]
DevelopmentSettings: Fix possible NPE

* getSystemService() can return null if the service is not
  available
* Check this before accessing a method
* Edge case: This code is usually not called on every device

Change-Id: I722638f2647dde7fb7d6a9a29c4a0e82314231c7

6 years agoDevelopmentSettings: Hide OEM unlock by default
Bruno Martins [Tue, 9 Jan 2018 15:41:02 +0000 (15:41 +0000)]
DevelopmentSettings: Hide OEM unlock by default

 * The "OEM unlocking" toogle should not be visible on any
   device running LineageOS, for obvious reasons. Allow it only
   to show up for Google devices, such as Pixel, that set
   ro.oem_unlock_supported=1.

Change-Id: I2b09974fc24e783b985de213b504e964771cbcb7

6 years agoAutomatic translation import
Michael W [Sat, 13 Jan 2018 15:16:17 +0000 (16:16 +0100)]
Automatic translation import

Change-Id: Iba732c48a7ed8c8b161970aedcf4465c5e88534a

6 years agoSettings: Hide physical keyboard settings when no phys. keyboard exists
Michael W [Wed, 15 Nov 2017 22:12:00 +0000 (23:12 +0100)]
Settings: Hide physical keyboard settings when no phys. keyboard exists

* Instead of showing settings which are useless, make them dependent on
  availability of a hardware keyboard

Change-Id: Ib9bd30d1445b59fb34540dcc1f3dbe5aa6e1d91e

6 years agoSettings: Remove dead code
Michael W [Sun, 19 Nov 2017 11:25:10 +0000 (12:25 +0100)]
Settings: Remove dead code

* The layout around most of that code was removed "temporarily"
  two years ago
  (Commit 976bb3f45915bdd5165d9a50402d4c1163dae809)
* Very unlikely to come back
* Remove java code and xml code which we don't need (anymore)

Change-Id: I57baf42138db0546b7464f5c7e818ce0940e9a10

6 years agoAppOps: Refactor code
Michael W [Sun, 19 Nov 2017 11:06:27 +0000 (12:06 +0100)]
AppOps: Refactor code

* Functions should be short
* Gain readability by moving around code

Change-Id: I227aaa8e0b259555fb74d9b52c3a69d72638ef10

6 years agoAutomatic translation import
Abhisek Devkota [Sat, 16 Dec 2017 19:33:41 +0000 (11:33 -0800)]
Automatic translation import

Change-Id: If3f8545b706e282f109f92e66d208e0f5e4b8ae1

6 years agoAutomatic translation import
Abhisek Devkota [Tue, 12 Dec 2017 05:55:55 +0000 (21:55 -0800)]
Automatic translation import

Change-Id: Idef0fabcdd57824d47354e23f434d9e21c4bf7c1

6 years agoDO NOT MERGE. ActivityPicker shouldn't grant permissions.
Jeff Sharkey [Mon, 12 Jun 2017 23:33:58 +0000 (17:33 -0600)]
DO NOT MERGE. ActivityPicker shouldn't grant permissions.

This picker has no business granting any Uri permissions, so remove
any grant flags that malicious apps may have tried sneaking in.

Test: builds, boots
Bug: 32879772
Change-Id: I91c48c73287a271bd6c99e60e216dead22e68764
(cherry picked from commit 3f218e8431cb5648bcb46131551c133ba53ef870)
(cherry picked from commit b5e93969a5e0c3a3f07e068dbc763cdd995a0e21)

6 years agoBugFix:Correct fullBearer in APNSettings
Libo Jin [Tue, 25 Apr 2017 05:09:04 +0000 (13:09 +0800)]
BugFix:Correct fullBearer in APNSettings

Change-Id: Ic66a28256c2df258cb61ea053f9d4279a37bbb02
CRs-Fixed: 2036775

6 years agoTelephony: Fix Crash in SimStatus Fragment
Sneh Bansal [Tue, 21 Feb 2017 12:33:41 +0000 (18:03 +0530)]
Telephony: Fix Crash in SimStatus Fragment

Null pointer exception caused because data connection state change
event triggered before the fragment could attach to the activity.
Add a null check before using the attached activity.

Change-Id: I3d9c8ca55ebcb481ba9de8012e27b592e0b9c0c5
CRs-Fixed: 2007186

6 years agoSettings: fix vibrate for calls in Setting app displayed incorrect issue
huiwan [Wed, 18 Jan 2017 08:07:03 +0000 (16:07 +0800)]
Settings: fix vibrate for calls in Setting app displayed incorrect issue

"vibrate for calls" status isn't updated after change by call setting, update
the status onResume while back to Settings.

CRs-Fixed: 1112360

Change-Id: Idd7eb25cf6abac25bcf43327361eb495dd19be9c

6 years agoSettings: back icon doesn't work in format SD as portable page.
guangl [Mon, 16 Jan 2017 10:17:07 +0000 (18:17 +0800)]
Settings: back icon doesn't work in format SD as portable page.

Need to use the setHasOptionsMenu(true) method to
activate response of "back" button.

Change-Id: If5e4ead126a44fd469daf803b38ece2c8828fdcc
CRs-Fixed: 1111775

6 years agoSettings: Fix settings force close
guangl [Thu, 15 Dec 2016 08:14:43 +0000 (16:14 +0800)]
Settings: Fix settings force close

No Activity found to handle Intent
{com.android.settings.Settings$ScreenLockSuggestionActivity}

Check whether activity exists before start activity.

Change-Id: Ib8736577fb280b4af0ba22126a094e788e570e5d
CRs-Fixed: 1101735

6 years agoSettings: Fix crash when disconnect wifi
jianhuac [Wed, 21 Dec 2016 03:29:44 +0000 (11:29 +0800)]
Settings: Fix crash when disconnect wifi

The context of fragmente is null before it was added into Activity.
Need check that whether fragmente have been add into activity before
invoke context related operations.

Change-Id: I24167666fe40f4513dbe1213b1be36849ea74052

6 years agoSettings: Strings: Modify a few german summaries
Michael W [Sun, 19 Nov 2017 09:55:58 +0000 (10:55 +0100)]
Settings: Strings: Modify a few german summaries

* They take too much space in german
* They also lack accuracy in translation

Change-Id: I7e4119f6534d25cd0ab9c5abe71be45d8ac0f40b

6 years agoAppOps: Add info if app doesn't request any blockable permissions
Michael W [Sun, 12 Nov 2017 14:03:25 +0000 (15:03 +0100)]
AppOps: Add info if app doesn't request any blockable permissions

* Instead of only showing a blank page, actually show an info
* This makes the screen look like it's actually blank on
  purpose

Change-Id: Ibae3ada4ecf8559c3000028f80ff5cf054410699

6 years agoAppOps: Add icon for "Toggle cellular data"
Michael W [Sat, 11 Nov 2017 16:21:50 +0000 (17:21 +0100)]
AppOps: Add icon for "Toggle cellular data"

Change-Id: I2b2d7bcbf2eb97d5a97df3455daea32384333566

6 years agoFix wrong format in AndroidManifest.xml
songkailun [Fri, 29 Sep 2017 01:42:05 +0000 (09:42 +0800)]
Fix wrong format in AndroidManifest.xml

N/A

Change-Id: Idf3b9c22e65d15013f5e3e2f5a1e9719d35ede3a
Signed-off-by: songkailun <songkailun@xiaomi.com>
6 years agoAutomatic translation import
Abhisek Devkota [Sat, 21 Oct 2017 18:11:15 +0000 (11:11 -0700)]
Automatic translation import

Change-Id: I479e6e749f9cc3443c386d2a7a7e31ef265abbd2

6 years agoSettings: Correct german translation for 1 registered fingerprint
Michael W [Fri, 6 Oct 2017 11:53:04 +0000 (11:53 +0000)]
Settings: Correct german translation for 1 registered fingerprint

* It's "1 Fingerabdruck", not "1 Fingerabdrücke" (thats plural)

Change-Id: I3273ad92eb8d8c9dceaaa8c385a6da86bfe2d5f8

6 years agoDisabling the activate button when paused
Suprabh Shukla [Tue, 15 Aug 2017 03:33:12 +0000 (03:33 +0000)]
Disabling the activate button when paused

This revises the previous attempt to drop taps when another window is
obscuring the device admin details. Any system alert windows or toasts
are disabled when the activity is in focus, otherwise the button is
disabled so no floating activities can obscure it and delegate taps back
to the security sensitive "Activate" button.

Test: CtsVerifier -> Device Administration -> Device Admin Tapjacking Test

Bug: 35056974
Change-Id: I292a44e713ea4a4b0305ca3b3b21f1c82fd73c2b
Merged-In: I292a44e713ea4a4b0305ca3b3b21f1c82fd73c2b
(cherry picked from commit 8e08a9bb715ff6a6b6bfa9556c3666a10f87053a)

6 years ago[2/3] Settings: add burnIn protection setting
Joey Rizzoli [Wed, 30 Aug 2017 12:01:54 +0000 (14:01 +0200)]
[2/3] Settings: add burnIn protection setting

Change-Id: I48e86a019d43a935619fbbe3a67750121ccb398d
Signed-off-by: Joey Rizzoli <joey@lineageos.org>
6 years agoAutomatic translation import
Abhisek Devkota [Mon, 18 Sep 2017 18:48:07 +0000 (11:48 -0700)]
Automatic translation import

Change-Id: I48d32bf6322273081cb671ccee12edb28af97f86

6 years agoAppOpsState: Hide undeclared Privacy Guard OPs
Gabriele M [Thu, 31 Aug 2017 23:46:30 +0000 (01:46 +0200)]
AppOpsState: Hide undeclared Privacy Guard OPs

Since commit f02e0409eafcccbbaa1efda309946cbbd4f1f51c
("Settings: Always show Privacy Guard permissions"), all the Privacy
Guard OPs are shown independently on whether the application declared
the associated permission or not. This solved the UI inconsistencies,
but it's still confusing. Instead of always showing these special OPs,
hide them, unless unless the application declared the associated
permission or the OP doesn't have an associated permission.

Note: if a Privacy Guard OP is not associated to any permission it
will appear for every application with Privacy Guard enabled,
bringing back the UI inconsistency solved with f02e0409eafcccbbaa.
This doesn't happen with the current set of OPs.

Change-Id: Iddc92b3547187e24140a328d50c5ac09bc1a7ccf

6 years agoBack-port ag/2491664
Phil Weaver [Wed, 12 Jul 2017 21:07:07 +0000 (14:07 -0700)]
Back-port ag/2491664

Bug: 62196835
Test: Verify overlays disappear on a11y capabilities
dialog.

Change-Id: Ic675012dd9faa8e53d1d4b126b3ba68fecdab992
(cherry picked from commit e76e053595660ed2a75adb33ee124a7bfbed164b)

6 years agoAppOpsDetails: Generate correct summary when changing list prefs
Gabriele M [Thu, 31 Aug 2017 20:41:06 +0000 (22:41 +0200)]
AppOpsDetails: Generate correct summary when changing list prefs

MODE_ENTRIES are strings of numbers, not names.

Change-Id: I749a808951d5359e92b6974714874f705c373342

6 years agoSettings: Allow devices to provide remote gesture preferences
Bruno Martins [Sun, 20 Aug 2017 23:46:49 +0000 (00:46 +0100)]
Settings: Allow devices to provide remote gesture preferences

 * Not all devices can use common gestures as implemented in CMParts

Change-Id: Iae4ca9fc686e3dc82411524688841211e0cceb7b

6 years agoSettings: Fix internal storage summary for non-emulated storage devices
Dominggoes Isakh [Tue, 25 Jul 2017 21:00:36 +0000 (23:00 +0200)]
Settings: Fix internal storage summary for non-emulated storage devices

BUGBASH-355

Change-Id: Ie14e8f71792d60cf300b844b798d51ea7f6dced8

6 years agoSettings: Change Updater package name
Gabriele M [Sun, 2 Jul 2017 15:50:48 +0000 (17:50 +0200)]
Settings: Change Updater package name

Change-Id: I03077201b084d3931f0f3237d36bab4321ed7b3a

6 years agoAutomatic translation import
Abhisek Devkota [Sat, 19 Aug 2017 22:34:38 +0000 (15:34 -0700)]
Automatic translation import

Change-Id: Icac641d9d6538a2ce9ae73a83607330ef5c4af5f

6 years agoSettings: Always show Privacy Guard permissions
Gabriele M [Sun, 6 Aug 2017 11:08:51 +0000 (13:08 +0200)]
Settings: Always show Privacy Guard permissions

Enabling Privacy Guard for an app simply means switching a set of
operations to MODE_ASK, independently on whether the application
actually declared those ops (though a permission) or not. The
framework keeps track only of the ops with a non-default value. As
consequence, all the ops set by Privacy Guard that aren't declared
by the app through its manifest are effectively lost when set to
their default value and the settings won't show them.

Never hide the Privacy Guard ops to provide a consistent UI.

Change-Id: Iafcf058f5e2074982bf45f8c82ef8d027b9358f0

6 years agoRevert "Settings[Wifi]: fix the input invalid length for WEP encryption."
Dominggoes Isakh [Sun, 13 Aug 2017 15:31:33 +0000 (15:31 +0000)]
Revert "Settings[Wifi]: fix the input invalid length for WEP encryption."

This reverts commit 9663c3179fad5e7de7bf4bf31e40649749f33861.

Change-Id: I3879ddb0ff53359c9d154045a6fcb067603e30f9

6 years agoAppOps: Switch to an HashMap
Luca Stefani [Sun, 13 Aug 2017 19:05:23 +0000 (21:05 +0200)]
AppOps: Switch to an HashMap

* Remove now unneeded getDrawableForOp function

Change-Id: Iefefd55797bee1ceebfcf7ab18bebaa9b56bdd19

6 years agoSettings: Add a shortcut icon for carrier selection
Michael W [Fri, 11 Aug 2017 17:05:27 +0000 (19:05 +0200)]
Settings: Add a shortcut icon for carrier selection

* This is a re-implementation from cm-13.0
* The new implementation pop ups a SIM chooser in case of
  multisim and opens the network operator selection for the
  selected sim rather than the first one
* In case of single-sim it directly opens the network operator
  selection for the sim

Change-Id: Iad7f43b3e56449432fe009bf44d68d703768981e

6 years agoAppOps: Redesign
Michael W [Fri, 11 Aug 2017 13:47:05 +0000 (15:47 +0200)]
AppOps: Redesign

* To match other settings, overhaul the current view by
  converting it to a PreferenceScreen
* While on it, fix bug with icons not shown if previous perm
  would have the same icon
* Add some additional icons for permissions

BUGBASH-621

Change-Id: I38fc01e02cd1711ee943717c42af4f40c51d94a6

6 years agoAutomatic translation import
Abhisek Devkota [Wed, 9 Aug 2017 03:15:48 +0000 (20:15 -0700)]
Automatic translation import

Change-Id: I3308403c1408559457a5b18078b81c69c6403032

6 years agoAutomatic translation import
Abhisek Devkota [Fri, 4 Aug 2017 05:47:28 +0000 (22:47 -0700)]
Automatic translation import

Change-Id: Iaff69c111d8606a9656ad7a5b6ccab52953287ea

6 years agoAutomatic translation import
Abhisek Devkota [Fri, 28 Jul 2017 02:53:10 +0000 (19:53 -0700)]
Automatic translation import

Change-Id: Ib4f0f84165eab6323b92deb5ef6b5a2bd6811304

6 years agoAutomatic translation import
Abhisek Devkota [Wed, 26 Jul 2017 03:24:38 +0000 (20:24 -0700)]
Automatic translation import

Change-Id: I6172bd12b39b8c24c4a26fea769cdca0e743e65c

6 years agoMSIM: Fix user set DDS sub in hotswap cases.
Umashankar Godachi [Fri, 8 Jan 2016 14:24:43 +0000 (19:54 +0530)]
MSIM: Fix user set DDS sub in hotswap cases.

Currently if user set DDS sim is removed and inserted,
dds will not fallback to user preferred sub.

Fix: Save the user preferred DDS sub in DB and set it
as DDS sub, when sim is removed and inserted.

Change-Id: Ic34fdbad70a7dc99a0fa5de9cbb9d24caa6bac87
CRs-Fixed: 958445

6 years agoAutomatic translation import
Abhisek Devkota [Sat, 22 Jul 2017 19:42:00 +0000 (12:42 -0700)]
Automatic translation import

Change-Id: I75288afc20a228fbaff597e351376871c596d1e2

6 years agoBring back some physical keyboard settings
Gabriele M [Thu, 6 Jul 2017 09:07:27 +0000 (11:07 +0200)]
Bring back some physical keyboard settings

These preferences were originally in AOSP, but they were then removed
and we brought them back with 572f90bdf8183e42c522fdf041b20b064ffc8549
("Settings: Add toggles for several CM additions"). So they are not
our addition as commit 5aa2f34b1c78c5b41f25b820c1f29b29c58e0cae
("Settings: Add toggles for several CM additions") implies and they
are currently dummy switches. Bring back the code needed to handle
these preferences.

Please note that these preferences simply control whether the current
on-screen keypad can or cannot process hard keyboard events.

BUGBASH-761

Change-Id: I4e90e009a998fadfcbd48b07aa9ad3164a01cb1a

6 years agoAutomatic translation import
Abhisek Devkota [Sat, 8 Jul 2017 04:20:10 +0000 (21:20 -0700)]
Automatic translation import

Change-Id: Ic6d3ddbe2d724cfb563fd247b4bc7c03555e9182

6 years agoMerge tag 'android-7.1.2_r24' into cm-14.1
Dan Pasanen [Wed, 5 Jul 2017 22:32:29 +0000 (17:32 -0500)]
Merge tag 'android-7.1.2_r24' into cm-14.1

Android 7.1.2 release 24

# gpg: Signature made Fri 30 Jun 2017 01:19:32 PM CDT
# gpg:                using DSA key E8AD3F819AB10E78
# gpg: Can't check signature: No public key

6 years agoAutomatic translation import
Abhisek Devkota [Tue, 4 Jul 2017 00:24:58 +0000 (17:24 -0700)]
Automatic translation import

Change-Id: I6c44588a033fc828a8f565b17c6eaf1ab981d228

6 years agoAutomatic translation import
Abhisek Devkota [Sat, 1 Jul 2017 05:06:41 +0000 (22:06 -0700)]
Automatic translation import

Change-Id: I0fed25bc5a4c37837f500fd89de8d8462cb3a530

6 years agoSettings: Hide disabled lockscreen blur from search index
Adrian DC [Thu, 22 Jun 2017 20:11:58 +0000 (22:11 +0200)]
Settings: Hide disabled lockscreen blur from search index

 * Hides lockscreen background blur from search results
    when the feature is not not available

Change-Id: If2e425027a193bacee166ce89da48f28f71133c7

6 years agoAutomatic translation import
Abhisek Devkota [Fri, 23 Jun 2017 03:56:21 +0000 (20:56 -0700)]
Automatic translation import

Change-Id: Ibedb962093ebe7f297aff95ca9cd9236155b2abe

6 years agoSettings: handle decrypting larger pattern sizes for sw600dp
Michael Bestas [Mon, 19 Jun 2017 21:56:07 +0000 (00:56 +0300)]
Settings: handle decrypting larger pattern sizes for sw600dp

* Apply bc86445070a5ea526242d8e4e4389d7824a75fd4 to layout-sw600dp
  in order to fix decryption with pattern larger than 3x3 on tablets

BUGBASH-671

Change-Id: Ic831adc73b7ab942c2f9b5bc65844b8f3c9f6f2d

6 years agoRevert "Settings: Fix internal storage summary for non-emulated storage"
Dominggoes Isakh [Sun, 21 May 2017 21:20:41 +0000 (21:20 +0000)]
Revert "Settings: Fix internal storage summary for non-emulated storage"

This reverts commit c78a1d176be96e6acdb570b00a3e15df9fe1ddf7.

Change-Id: If3d3e5a6b1b30e077010b67c2c5db89fbed6d97d

6 years agoSettings: Fix automatic hotspot turn off summary
Elektroschmock [Sat, 3 Jun 2017 06:33:48 +0000 (08:33 +0200)]
Settings: Fix automatic hotspot turn off summary

Change-Id: I066cf2c1d757a4bfb8a84094969710f58e444422

6 years agoAutomatic translation import
Abhisek Devkota [Thu, 1 Jun 2017 03:10:01 +0000 (20:10 -0700)]
Automatic translation import

Change-Id: I672872cab276b372f666268c712c0e91bd7d2bbb

6 years agoDouble tap to sleep anywhere on the lock screen [2/3]
Matssa56 [Tue, 30 May 2017 19:50:38 +0000 (21:50 +0200)]
Double tap to sleep anywhere on the lock screen [2/3]

Change-Id: I4d8e760603a53f854aabd15acaa70482d4a6ecc5

6 years agoSettings: Disable Lockscreen Media Art [2/3]
beanstown106 [Sat, 24 Oct 2015 01:07:35 +0000 (21:07 -0400)]
Settings: Disable Lockscreen Media Art [2/3]

* Toggle to choose whether or not to show album art/media art on lockscreen

Change-Id: Ieea583a0e42c317e1651ecaba66ac07c02934250

6 years agoSettings: Make string untranslatable
Elektroschmock [Thu, 1 Jun 2017 18:38:44 +0000 (20:38 +0200)]
Settings: Make string untranslatable

Change-Id: I722ade33583f5d7595cff8ff658b93823830c453

6 years agoSquash commit of SAR and IC Code.
Adnan Begovic [Fri, 16 Jan 2015 16:31:29 +0000 (16:31 +0000)]
Squash commit of SAR and IC Code.

TICKET: CYNGNOS-1586

Settings: Show SAR on Regulatory Info (from CM11)

This brings these three commits from CM11:

Settings: Create SAR level preference, allow overlay.
Change-Id: I1af616696702f72b8a6276b3b01e940d61735137

Change Regulatory Info Activity to prefer string over image
Change-Id: I9ea5c2bf469af8f654ec4e4bb4f2a8a5738e6a95

Settings: Allow Regulator Information Dialog Title to be overlaid.
Change-Id: I5aead313589f5d5291d20a0388d2d8bc7242b711

Settings: Refactory regulatory dialog. Display IC Code.

Change-Id: Id268830404d09eed318e38474fe1a9062fc4e962

6 years agoFix phishing attack in ChooseLockGeneric
Steven Ng [Mon, 15 May 2017 17:30:04 +0000 (18:30 +0100)]
Fix phishing attack in ChooseLockGeneric

Cherry-pick of 436256c36d69549c77320d073bef27649c1b1d6e

Test: 1) make and run SettingsTests. It passes.
      2) Manual test 1
         a) On a device supports fingerprint, set a password but not fingerprint.
         b) adb shell am start -a android.app.action.SET_NEW_PARENT_PROFILE_PASSWORD
         c) Confirm Lock password screen is shown
         d) Select "Skip fingerprint". There isn't a second lock password confirmation screen.
         e) A new password can be set successfully.
      3) Manual test 2
         a) Repeat step 2)a) - 2)c)
         b) Select "Fingerprint + PIN". There isn't a second lock password confirmation screen.
         c) A new password and fingerprint can be enrolled successfully.

Bug: 33059280
Change-Id: I1078c6e303fc41aeeb370e5d6518d1f16b5837f1
Merged-In: I1078c6e303fc41aeeb370e5d6518d1f16b5837f1
(cherry picked from commit 14153fd25b4757add2107d35e71fcfbb55c1e419)
(cherry picked from commit 34f28f8feee2ac914794c9895fba2a20ba4f3906)

6 years agoresolve merge conflicts of 3964c51bf2 to nyc-dev
Dmitry Dementyev [Thu, 9 Mar 2017 00:32:00 +0000 (16:32 -0800)]
resolve merge conflicts of 3964c51bf2 to nyc-dev

Bug: 33123882
Test: manual tests
Merged-In: If68343d155364654fa7db55ace3fb3c4db508c7e
Change-Id: I17ceca883819a161c4eab2a414abf0b64c320378
(cherry picked from commit 0f04a5a93f846d6f2d528ab6ae0c9e37d701e438)

6 years agoFix crash when calling remove() with a null variable
LuK1337 [Tue, 23 May 2017 13:05:25 +0000 (15:05 +0200)]
Fix crash when calling remove() with a null variable

Change-Id: I5b79e0b15b356cf69208f13cc3a16968c7fd94a8

7 years agoAutomatic translation import
Abhisek Devkota [Thu, 18 May 2017 05:22:46 +0000 (22:22 -0700)]
Automatic translation import

Change-Id: I9900466a5a8365d6f1ded2ccfcf1c340676399f9

7 years agoAutomatic translation import
Abhisek Devkota [Fri, 28 Apr 2017 22:16:51 +0000 (15:16 -0700)]
Automatic translation import

Change-Id: Ic3ee208ccf46dec1e0d7ea2b549b13ae4fb6e2f3

7 years agoRevert "Settings: Lost cached BT devices in found devices list"
huiwan [Mon, 13 Feb 2017 01:50:58 +0000 (09:50 +0800)]
Revert "Settings: Lost cached BT devices in found devices list"

This reverts commit 4bf5b15e47e8090cef0698abf310d8a4f8f33246.

Change-Id: Ifd38bb12583f9a49c102084a62c889415a95fec8
CRs-Fixed: 1111656

7 years agoSettings[Wifi]: fix the input invalid length for WEP encryption.
huiwan [Wed, 25 Jan 2017 05:12:17 +0000 (13:12 +0800)]
Settings[Wifi]: fix the input invalid length for WEP encryption.

Add following check for WEP password:
        WEP40, WEP104, WEP128 -- 5, 13, 16
        HEX -- 10, 26, 32, character&number only

Change-Id: Ia76583f23ed860fcce7ff80f7bc7a70579c1bb88
CRs-Fixed: 1115766

7 years agoSettings: Fix internal storage summary for non-emulated storage
Dominggoes Isakh [Mon, 10 Apr 2017 21:42:08 +0000 (23:42 +0200)]
Settings: Fix internal storage summary for non-emulated storage

BUGBASH-355

Change-Id: I5df43d0c46ab5cf742fa5ddb8a8c44056d375026

7 years agoAutomatic translation import
Abhisek Devkota [Thu, 20 Apr 2017 19:08:53 +0000 (12:08 -0700)]
Automatic translation import

Change-Id: Ia6079a3ee5f6487b2217d8414e882944d6dd06ed

7 years agoMerge tag 'android-7.1.2_r2' into cm-14.1
Dan Pasanen [Wed, 5 Apr 2017 13:46:36 +0000 (08:46 -0500)]
Merge tag 'android-7.1.2_r2' into cm-14.1

Android 7.1.2 Release 2 (N2G47E)

Change-Id: I45b519f43290a79b86f3976cddecf1a0199ced25

7 years agoAutomatic translation import
Abhisek Devkota [Wed, 29 Mar 2017 21:25:37 +0000 (14:25 -0700)]
Automatic translation import

Change-Id: I8cd9b7447d49c85770f51b0080b17585b2485596

7 years agoRevert "[2/2] settings: support setting a separate encryption password"
Joey Rizzoli [Sun, 26 Mar 2017 19:06:49 +0000 (21:06 +0200)]
Revert "[2/2] settings: support setting a separate encryption password"

This reverts commit c585070fc70c88643ca6f568f8c4cab6d21144a8.

Separated encryption password implementation is currently not so well implemented
and it exposes some additional security issues

Change-Id: I0000476d3fae0ad067b741366efe62787213515b
Signed-off-by: Joey Rizzoli <joey@lineageos.org>
7 years agoSettings: Fix AOSP WiFi AP translations
Michael Bestas [Mon, 15 Sep 2014 22:02:26 +0000 (01:02 +0300)]
Settings: Fix AOSP WiFi AP translations

* Add missing spaces between SSID and AP security

Change-Id: Idcd284a16cbd10a0e73db8bfda988f2ad3e6e6f1

7 years agoSettings: Fix german string
Michael W [Sun, 26 Mar 2017 14:43:20 +0000 (16:43 +0200)]
Settings: Fix german string

* This string seems to have had some issues when AOSP/CAF did
  the german translation
* Add the proper translation

Change-Id: I39e68554e10bb12515c1504c3f4fba51e00fb3f4

7 years agoAutomatic translation import
Abhisek Devkota [Wed, 22 Mar 2017 19:41:41 +0000 (12:41 -0700)]
Automatic translation import

Change-Id: Ief8c65986599ff601d91cfdad521f697d41d37d6

7 years agoFix zen mode allowed event preference summary.
Danny Baumann [Mon, 4 Jan 2016 14:24:03 +0000 (15:24 +0100)]
Fix zen mode allowed event preference summary.

Simply using lower-cased versions of other strings might work for
English, but not for most other languages.
Also improve formatting of list: Instead of showing 'a, b, c', show 'a,
b and c'.

Change-Id: I7a809e0655cbde3af1695ec3ddf86ec818fb191d

7 years agoAutomatic translation import
Abhisek Devkota [Mon, 20 Mar 2017 20:55:05 +0000 (13:55 -0700)]
Automatic translation import

Change-Id: I2f0b991da6b8ea873f239b67dabd80ef4798058f

7 years agoMake Build Date and API Level unselectable
Harry Youd [Sun, 19 Mar 2017 10:02:13 +0000 (10:02 +0000)]
Make Build Date and API Level unselectable

Change-Id: I5c269ce2ecfbef92e95fc4f0c9b8d31f7f71f462

7 years agoAppOpsDetails: Check app permissions safely
Gabriele M [Wed, 15 Mar 2017 21:05:46 +0000 (22:05 +0100)]
AppOpsDetails: Check app permissions safely

checkOp() throws a SecurityException when the application is not
allowed to perform the given operation. Use  checkOpNoThrow() so
that no exception is thrown. If the operation is not permitted,
AppOpsManager.MODE_ERRORED will be returned and AppOpsDetails will
treat it as MODE_IGNORED (i.e. don't allow).

BUGBASH-52

Change-Id: Ic3177a24ae52438594e65cd19e29a86c1ee299e8

7 years agoAutomatic translation import
Abhisek Devkota [Wed, 15 Mar 2017 20:37:19 +0000 (13:37 -0700)]
Automatic translation import

Change-Id: Ie312b05e9cd833224aa54486d0bd6045e168e410

7 years agoFix possible NPE on SIM settings shutdown.
Danny Baumann [Thu, 16 Feb 2017 13:50:56 +0000 (14:50 +0100)]
Fix possible NPE on SIM settings shutdown.

Change-Id: Ibf6b54fc2b97a780cfd7ace17c54855ef7e70c57

7 years agoClean up SIM enable toggle implementation
Danny Baumann [Tue, 28 Feb 2017 11:26:37 +0000 (12:26 +0100)]
Clean up SIM enable toggle implementation

- Move strings to cm_strings.xml
- Improve string wording
- Remove unused code
- Streamline implementation

Change-Id: I58fc3002cfcc37dd1798819223289cc541bed211