174 Commits

Author SHA1 Message Date
Jorim Jaggi
339e884bc0 Handle configuration changes in recents manually
Change-Id: I0c62fffbed25e4b51fef4b34f8cab2ab69b76c32
2015-10-30 11:06:16 +00:00
Winson
190fe3bf88 Refactoring secondary user recents logic.
- Removing old broadcasts in favor of direct aidl interface between
  system and secondary users.  Also moving user specific implementation
  into RecentsImpl, allowing Recents to handle proxying between users.

Change-Id: I4bd5ef1d1ee47309b7c754f50a5e8b2e2aab988f
2015-10-22 12:26:21 -07:00
Michael Wright
244f776855 resolve merge conflicts of f013c3f111 to master.
Change-Id: I2045187f8fa948a1733cb9a2cdc0a69ae97b5907
2015-10-20 23:48:55 +01:00
Michael Wright
9209c9cd9a Add SystemUI component to watch for keyboard attachment.
Add a new SystemUI component to watch for keyboard attachment /
detachment. If the config specifies the name of a keyboard that is
packaged with the device, then SystemUI will ask the user if they
would like to enable BT (if disabled) and then attempt to pair to the
device.

Bug: 22876536
Change-Id: I786db35524d49706d5e61d8b8bc71194d50113f3
2015-10-12 15:21:37 +01:00
Winson
6aa91e6357 Removing unused resources.
Change-Id: Ie013b164892eaccaaab7b8c2bcdd3cb5ac51a485
2015-09-25 20:13:25 +00:00
Winson
147ecaf3ba Ensure RecentsActivity is resizeable.
- Removing old code related to multi-stack layouts.

Change-Id: Ib9b820d2a65ff15e9cd8e5255e3e858b611e5aa9
2015-09-17 16:34:15 -07:00
Fyodor Kupolov
4f5de340c9 Renamed primaryUserOnly to systemUserOnly
In the split mode, broadcast receivers and activities marked as
systemUserOnly will be running as system. This is a non-functional change for
non-split system user mode.

Bug: 22958572
Change-Id: I0f7d4f4a81275bc326bf630a776c695e8b5291a6
2015-08-25 18:26:49 -07:00
Jim Miller
4ea5152bd8 am 849b9e58: am ce6fb7bb: am 7ef77271: am bea9d7b9: Merge "Reset fingerprint lockout timer when strong auth is used." into mnc-dr-dev
* commit '849b9e58d6775a393f7d86a6305b658c6af9d16f':
  Reset fingerprint lockout timer when strong auth is used.
2015-08-19 02:21:58 +00:00
Jim Miller
e0507bbbf9 Reset fingerprint lockout timer when strong auth is used.
Fixes bug 22565462

Change-Id: I4842877839845e7fe103396d8ca8104928568c04
2015-08-18 13:01:31 -07:00
Daniel Sandler
26df5a6263 am cf59d059: am 98e684e7: am b66e755b: am 64b05c0f: am 9f238a94: Merge "Introducing M Land." into mnc-dev
* commit 'cf59d059a51f33cd28b05f4c248c164bd22f95f4':
  Introducing M Land.
2015-08-16 03:02:26 +00:00
Dan Sandler
8df3cfe6b8 Introducing M Land.
The "M" is for Multiplayer.

Bug: 21984798
Change-Id: Id752b8efe54ff0ac38854a129188027137d64dd5
2015-08-14 15:51:13 -04:00
Fyodor Kupolov
b66cec2277 am 3c01ac0b: am fc0b2e98: am df961732: am f9fdb08c: am 4988378c: Merge "Introduced android.permission.PEERS_MAC_ADDRESS permission" into mnc-dev
* commit '3c01ac0b199d787f6a81b01ab3b6296421ea40a0':
  Introduced android.permission.PEERS_MAC_ADDRESS permission
2015-07-30 22:10:22 +00:00
Fyodor Kupolov
136a2e7fc9 Introduced android.permission.PEERS_MAC_ADDRESS permission
Introduced signature-level permission android.permission.PEERS_MAC_ADDRESS.
It allows access to MAC addresses of WiFi and Bluetooth peer devices, without
having location permission or even if location is turned off.

Bug: 21852542
Bug: 22728628
Change-Id: If0ff80636e57b38dbedc8fcf5f520a3a6d6f734e
2015-07-27 12:33:43 -07:00
Amith Yamasani
5891a346ab resolved conflicts for merge of 54e9686d to master
Change-Id: I5352ba632c8481168ad6a08861e73b058e617d29
2015-07-24 13:50:58 -07:00
Fyodor Kupolov
bb7ee1ce47 am 9008192e: am b02f646c: am 71b4c049: am f9e60801: am a5e25f33: Merge "Added ACCESS_COARSE_LOCATION permission for BT" into mnc-dev
* commit '9008192e354165cc81fe16cf38241987e796c271':
  Added ACCESS_COARSE_LOCATION permission for BT
2015-07-24 20:33:30 +00:00
Amith Yamasani
2c5aeeaaaa Merge "Require permission for internal broadcast" into mnc-dev 2015-07-24 19:12:16 +00:00
Fyodor Kupolov
a5e25f33a5 Merge "Added ACCESS_COARSE_LOCATION permission for BT" into mnc-dev 2015-07-24 17:54:14 +00:00
Yasuhiro Matsuda
2c24b88dac Merge "Remove UsbStorageActivity, which is no longer used." 2015-07-24 08:45:45 +00:00
Amith Yamasani
d81f8270be Require permission for internal broadcast
It was possible for other apps to request removal of the guest user
that was handled by an internal receiver in SystemUI.

Fix requires the broadcast sender to have an internal permission
so that only SystemUI can send that broadcast (PendingIntent).

Bug: 22671268
Change-Id: I63a8ced692e6d1cb2872b962ad247a827dbafbc6
2015-07-23 17:59:41 -07:00
Fyodor Kupolov
a86101724b Added ACCESS_COARSE_LOCATION permission for BT
It is required to receive BluetoothDevice.ACTION_FOUND intents

Bug: 21852542
Change-Id: I0437c74c753567e8c6beb4bf70a30ddf0aaa4f3b
2015-07-23 12:47:06 -07:00
Jason Monk
431ad737a4 Move tuner enable point to QS
Long clicking on settings gear in QS causes it to accelarate and
spin, when released it will open and enable the tuner.  On first
opening there will be a warning dialog.

Also add way to disable tuner from tuner screen. This way it can
be removed from its former home in Developer Settings.  All tuner
settings are reset when disabled to match developer settings
behavior.

Bug: 22462605
Change-Id: Ie700a6a15e6c3caccf7cd1885da73328e6fac6ab
2015-07-22 14:40:53 -04:00
Yasuhiro Matsuda
32e708ff6f Remove UsbStorageActivity, which is no longer used.
UsbStorageActivity has not been used since the following CL.
https://googleplex-android-review.git.corp.google.com/#/c/673367/

BUG: 19993667
Change-Id: I96ff4cafa947c24aae1e5f76678fef72ac368c91
2015-07-22 22:18:27 +09:00
Amit Mahajan
1cfd45701b Do not check runtime READ_PHONE_STATE if caller has the privileged one.
Also removed READ_PHONE_STATE from SystemUI since it has
READ_PRIVILEGED_PHONE_STATE.

Bug: 22376654
Change-Id: I437f9bf324950cb70bae5be76699824da5897a6f
2015-07-10 17:15:59 -07:00
Robert Greenwalt
0f1ed304c1 Fix Permission Typo.
There is no 'd' in privilege.  And there is no spell checking in Manifests.

bug:22358954
Change-Id: Ia122f51a81dc35760f277e23fe0f5a6d3d739457
2015-07-08 16:57:45 -07:00
Jeff Sharkey
a80d264be6 Fix crash looping SystemUI.
Bug: 22358954
Change-Id: Ie8539d7f866ae722edd071f6b20e8f8881d82434
2015-07-08 16:11:55 -07:00
Robert Greenwalt
8b0f3873a0 Merge "Add/Fix Permission check on SubscriptionManager." into mnc-dev 2015-07-08 21:26:17 +00:00
Robert Greenwalt
278b8f9509 Add/Fix Permission check on SubscriptionManager.
Things that are modifing should check the modify permission.

bug: 19259681
Change-Id: I27c7501d6777deec902b9cd47e194eadef391869
2015-07-06 15:16:46 -07:00
Jeff Sharkey
32e80d7588 Permission to view shared storage for all users.
Typical apps are restricted so they can only view shared storage
belonging to the user they're running as.  However, a handful of
system components need access to shared storage across all users,
such as DefaultContainerService and SystemUI.

Since WRITE_MEDIA_STORAGE already offers this functionality by
bypassing any FUSE emulation, reuse it to grant the "sdcard_rw" GID
which is no longer handed out to third-party apps.  Then we change
the FUSE daemon to allow the "sdcard_rw" GID to see shared storage
of all users.

Bug: 19995822
Change-Id: I504c2a179ba74f142ed0d32da5baa69f4212cd82
2015-07-06 10:54:28 -07:00
Rubin Xu
c85c639312 Remove ExternalMediaFormatActivity
This activity is no longer used by any part of the framework.

Bug: 9433509
Change-Id: Iace394b7a11b75ed75b2eefc05990626a7e68ac2
2015-07-02 16:53:57 +01:00
Xiaohui Chen
ffcfe3411f usb debugging: show alert to secondary user
Bug: 12785423
Change-Id: If7f60899cfdaca7bdad560bd59a78f5be74c24be
2015-06-03 09:32:19 -07:00
Winson Chung
8858e6e98d Adding a delete action to the screenshot notification.
Bug: 21161917
Change-Id: I03e2073ef09e9aea00b523eddbe2b9122d280d89
2015-05-27 17:40:57 -07:00
Dan Sandler
696f6a3c48 Mmm mmm mmm mmm.
Change-Id: I23b560694b9cc0eb2103ec16769b0446099d1e83
2015-05-15 16:10:22 -04:00
Jason Monk
11a77446c5 Add QS Tuner
Change-Id: I908d0161b7209b8e99299f5cb3eb58f3d7b52752
2015-05-13 20:59:23 -04:00
Jason Monk
295a337781 Add SysUI Tuner
Change-Id: I9b0fabbe913b8297d8c668b6416a7be856adb9d5
2015-05-12 11:01:02 -04:00
Adam Powell
d4d34150b3 Cancel a screenshot notification after a share target is chosen.
Use the (relatively) new API for supplying a callback when a user
makes a selection from the system ChooserActivity to clear out the
screenshot notification after it has been shared to another app.

Change-Id: If023a26d690c5ae8e29f28e2422f694ae4b654cb
2015-04-17 19:42:52 -07:00
Lorenzo Colitti
e14627e4f3 Give SystemUI the OVERRIDE_WIFI_CONFIG permission.
Settings already has this permission, and SystemUI needs it as
well so that the changes made by Wi-Fi Quick Settings are
recognized to be made by the system and not just by any app.

Bug: 20081183
Change-Id: Ie1760fc24f5f74839718fff9763f38c80cdda3ff
2015-04-15 12:33:13 +09:00
Jorim Jaggi
64e71cd6cc Merge changes from topic 'assist'
* changes:
  Add test assist to implement motion study
  Implement new assist gesture and motion
  Add flag to voice interactor for supporting assist gesture
  Add more internal API's for assist
  Add ability to start voice interaction session directly
2015-04-03 18:26:41 +00:00
Jorim Jaggi
25e12abc5b Add ability to start voice interaction session directly
Add internal API's for SystemUI to start a voice interaction session
directly, without using an intent.

Make the assist gesture use that ability, if available.

Change-Id: I88ce3c7514714eb45666884847193585a07417a9
2015-04-03 11:11:51 -07:00
Winson Chung
164bf4d7ea Ensuring that Recents' orientation matches the app behind it.
Bug: 18935635
Change-Id: Idef7f3bced53811c45648f7ee8f6b612df89a231
2015-04-03 10:30:57 -07:00
Michael Wright
d99c5f6fb6 am 72261270: am b42baaa8: am 978cfc39: Merge "SystemUI needs the SET_WALLPAPER permission"
* commit '722612707e7eef745dab573ff226e2bd904295cb':
  SystemUI needs the SET_WALLPAPER permission
2015-03-24 02:56:08 +00:00
Samuel Asteberg
8d516a80a0 SystemUI needs the SET_WALLPAPER permission
If changing wallpaper when low on memory, retrieving the default
wallpaper may return null, which triggers error handling in
ImageWallpaper. This error handling tries to perform
WallpaperManager.clear(), but for that it needs SET_WALLPAPER
permission, which it does not have.

For users with apps that auto change wallpaper, this issue can
be frequent in low-memory conditions.

The solution is to add the permisson.

Change-Id: I81503c1667e3952c2dd15599969f7dcc51623e5b
2015-03-23 13:50:09 +01:00
Jason Monk
78981e0393 Merge "Make QS use SettingsLib's BT code" 2015-03-12 14:23:51 +00:00
Jason Monk
be3c5dbee6 Make QS use SettingsLib's BT code
A couple of changes needed to be made to SettingsLib to support this.
 - SettingsLib needed to track ACTION_CONNECTION_STATE_CHANGED
 - The summary code needed to move from Settings up into SettingsLib
 - Added a getMaxConnectionState to CachedBluetoothDevice
    - This simplifies the states of all of the profiles into
      one.

Change-Id: I7f828f0038ad0cf39274986ece6d486d545f0286
2015-03-02 10:40:21 -05:00
Jim Miller
ba67aee02c Add fingerprint settings support to the framework
- cleanup thread issue and simplify native FingerprintService methods
- add new permissions and enforce them
- add fingerprint hardware detection API

Change-Id: I87c2243ea2412061f1e85b044138480d0161bcdf
2015-02-27 12:03:32 -08:00
Jorim Jaggi
d61f2271c4 Remove dead code #6: Delete old recents implementation
Change-Id: I93b1257563d6352a54141bd4c90d2d4587782fd2
2015-01-07 15:20:13 +01:00
Winson Chung
2002cf5b46 Fixing major regressions in Recents with multi-user. (Bug 18574950)
In the process of front-loading a lot of the loading work, we moved logic
into AlternateRecentsComponent, which is not multi-user friendly.  This CL 
proxies all the necessary events for non-primary users to their own SystemUI 
process to ensure that they handle them correctly, and proxies visibility
changes back to the primary user (since that is the only process with the
right callbacks).

Change-Id: I9fed92214ac4d4e2309ad6ffc35d09b5726c2880
2014-12-10 15:16:55 -08:00
Adrian Roos
752aee8a6f Fix projection permission dialog layering
Bug: 18392920
Change-Id: I32c2c61339cbea9edd4a7a3f80365213fb4a69ac
2014-11-26 18:09:35 +01:00
Craig Stout
36fbc43787 Merge "Use dark theme for usb dialogs on television." into lmp-mr1-dev 2014-11-17 21:28:25 +00:00
Craig Stout
9eef7bce56 Use dark theme for usb dialogs on television.
b/16488215

Change-Id: I8ea2a184b2df36e3f55ba5bd0e8fb121ef0ed48e
2014-11-17 12:36:15 -08:00
Jeff Davidson
bc19c181c8 Enforce VPN control "permission" with an actual permission.
The current implementation uses a whitelist of package names. Use a
system|signature permission instead of rolling our own security and
add that permission to the existing set of whitelisted packages
(SystemUI and VpnDialogs).

In addition to being less of a security risk (using well-known methods
like Context.enforceCallingPermission rather than manually querying
PackageManager and checking UIDs for package names), this enables
other system-privileged apps to control VPN as needed per the below
bug.

Bug: 18327583
Change-Id: I38617965c40d62cf1ac28e3cb382c0877fb1275d
2014-11-12 08:56:20 -08:00