Commit Graph

29003 Commits

Author SHA1 Message Date
Svetoslav Ganov
618e065cc1 am 546a3449: am e12a685c: am 02d6c013: am 90b030ba: Merge "Do not show removed permissions in the UI - framework" into mnc-dev
* commit '546a34490fbb31e40199e325473c5a510b61b55b':
  Do not show removed permissions in the UI - framework
2015-08-08 07:15:24 +00:00
Dianne Hackborn
b2aff68c0d am e98e0b45: am 0e6bd33e: am 42f6d217: am fc81be94: Merge "Fix issue #23037093: "Write system settings" permission value fails..." into mnc-dev
* commit 'e98e0b4544a970039b3e01b50d8d282dad96c260':
  Fix issue #23037093: "Write system settings" permission value fails...
2015-08-08 07:07:13 +00:00
Svetoslav Ganov
e12a685c37 am 02d6c013: am 90b030ba: Merge "Do not show removed permissions in the UI - framework" into mnc-dev
* commit '02d6c013e4be4b5e09562c922506c1153347d161':
  Do not show removed permissions in the UI - framework
2015-08-08 07:03:16 +00:00
Svetoslav Ganov
02d6c013e4 am 90b030ba: Merge "Do not show removed permissions in the UI - framework" into mnc-dev
* commit '90b030bae8cc1f13da7948fef4aff1d171a2885a':
  Do not show removed permissions in the UI - framework
2015-08-08 06:57:32 +00:00
Dianne Hackborn
0e6bd33efa am 42f6d217: am fc81be94: Merge "Fix issue #23037093: "Write system settings" permission value fails..." into mnc-dev
* commit '42f6d217f55ed0891f6f438fd22cc54f5da3a1f3':
  Fix issue #23037093: "Write system settings" permission value fails...
2015-08-08 06:51:30 +00:00
Svetoslav Ganov
90b030bae8 Merge "Do not show removed permissions in the UI - framework" into mnc-dev 2015-08-08 06:48:38 +00:00
Dianne Hackborn
42f6d217f5 am fc81be94: Merge "Fix issue #23037093: "Write system settings" permission value fails..." into mnc-dev
* commit 'fc81be947fcbb0d738a75eb2c6d560c52f7f9a99':
  Fix issue #23037093: "Write system settings" permission value fails...
2015-08-08 06:43:39 +00:00
Dianne Hackborn
fc81be947f Merge "Fix issue #23037093: "Write system settings" permission value fails..." into mnc-dev 2015-08-08 06:35:03 +00:00
Svet Ganov
3e0be7440b Do not show removed permissions in the UI - framework
bug:23043018

Change-Id: Ia5cf49f299eda627d9fde2b34498812afcb3a6d5
2015-08-07 23:06:04 -07:00
Dianne Hackborn
4d34bb8304 Fix issue #23037093: "Write system settings" permission value fails...
...to persist after reboot

We were writing a corrupt settings file, so would always reset back
to the default app ops state after boot...!

Also add new appops service commands to manually write and read
its settings, since that is very useful for testing.

Change-Id: Ia510507764738fd82e45ec0be6db840c6ea30c28
2015-08-07 18:37:21 -07:00
Billy Lau
4a10b66df3 am 99271a39: am 9751afcf: am 26ab6ed3: am 70f998e5: Merge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS" into mnc-dev
* commit '99271a3995e35c64105b2778f695ca6dd716a3f2':
  Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS
2015-08-07 22:49:52 +00:00
Billy Lau
9751afcfbc am 26ab6ed3: am 70f998e5: Merge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS" into mnc-dev
* commit '26ab6ed3efd9bc55e342caabade46d00f8304240':
  Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS
2015-08-07 22:34:20 +00:00
Dianne Hackborn
0385e3e908 am 8e63bbfd: am efa4dee1: am 977d421a: am f0e5501e: Merge "Fix issue #22989030: Separate battery whitelists" into mnc-dev
* commit '8e63bbfd00ee27fcdbb04cfc0cf96ccdb2c50cc5':
  Fix issue #22989030: Separate battery whitelists
2015-08-07 22:30:17 +00:00
Billy Lau
26ab6ed3ef am 70f998e5: Merge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS" into mnc-dev
* commit '70f998e57df2b3ed79331669a93a0ba314f25e7d':
  Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS
2015-08-07 22:22:24 +00:00
Billy Lau
70f998e57d Merge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS" into mnc-dev 2015-08-07 22:16:03 +00:00
Dianne Hackborn
efa4dee126 am 977d421a: am f0e5501e: Merge "Fix issue #22989030: Separate battery whitelists" into mnc-dev
* commit '977d421af9466ed6cd83630f6ba91c873f501e5b':
  Fix issue #22989030: Separate battery whitelists
2015-08-07 22:13:02 +00:00
Dianne Hackborn
977d421af9 am f0e5501e: Merge "Fix issue #22989030: Separate battery whitelists" into mnc-dev
* commit 'f0e5501e093c688cd293308e0aafc2b55326c255':
  Fix issue #22989030: Separate battery whitelists
2015-08-07 22:06:00 +00:00
Dianne Hackborn
f0e5501e09 Merge "Fix issue #22989030: Separate battery whitelists" into mnc-dev 2015-08-07 21:58:38 +00:00
Dianne Hackborn
4a503b1ece Fix issue #22989030: Separate battery whitelists
We now have a new whitelist you can put apps in, which
opts them out of the old battery saver mode and new app idle,
but doesn't keep them from going in to doze.  This is for a few
special cases that we had previously whitelisted for battery saver,
and inherited to the new modes...  ultimately we should figure out
how to get these apps out of the whitelist completely, but this
will help for now.

Apps in this new whitelist are not shown in the UI, because they
are still significantly restricted by not being able to operate
normally in doze.  This also means they are still visible in the
list of all apps for the user to be able to put them on/off the
complete whitelist if that is what they really want.

In the course of doing this, I needed to clean up code in the
network policy manager to better separate management of the
two firewall rules that now have different whitelists applied
to them.  This also hopefully just generally simplifies and cleans
up that code.  Hopefully!

Change-Id: I92e15f2f85899571dd8b049b5e3eb1354f55f353
2015-08-07 14:23:32 -07:00
Nicolas Prévot
6d23b1419f am 2c661d5a: am ed73021b: am 543fd8be: am 288e82f8: Merge "Keep intent verification status of system apps when uninstalling them." into mnc-dev
* commit '2c661d5a624730c223d514125d025ffeda002ab7':
  Keep intent verification status of system apps when uninstalling them.
2015-08-07 19:55:38 +00:00
Jason Monk
e0d9fe5985 am 635270c5: am a01965e2: am 69a07d40: am 69ed3308: Merge "Allow system to disable lockscreen" into mnc-dev
* commit '635270c5b69da17d80da5e165266ba655c12738e':
  Allow system to disable lockscreen
2015-08-07 19:39:54 +00:00
Nicolas Prévot
ed73021b33 am 543fd8be: am 288e82f8: Merge "Keep intent verification status of system apps when uninstalling them." into mnc-dev
* commit '543fd8be753ac751235adb59f5e8c5cedba3b162':
  Keep intent verification status of system apps when uninstalling them.
2015-08-07 19:39:38 +00:00
Nicolas Prévot
543fd8be75 am 288e82f8: Merge "Keep intent verification status of system apps when uninstalling them." into mnc-dev
* commit '288e82f8f67db894c43bf4ea659ca832f979c65a':
  Keep intent verification status of system apps when uninstalling them.
2015-08-07 19:30:40 +00:00
Nicolas Prévot
288e82f8f6 Merge "Keep intent verification status of system apps when uninstalling them." into mnc-dev 2015-08-07 19:23:52 +00:00
Jason Monk
a01965e22a am 69a07d40: am 69ed3308: Merge "Allow system to disable lockscreen" into mnc-dev
* commit '69a07d401a3d40de6d5f17eeaf642db12401fe2f':
  Allow system to disable lockscreen
2015-08-07 18:54:57 +00:00
Amith Yamasani
8857528dd4 am d7256292: am 3ad53f76: am 85b3d034: am 1fbc1b3b: Merge "Fix partial user cleanup on restart" into mnc-dev
* commit 'd72562923b915f6a9231967492e9af18e7d8dd6d':
  Fix partial user cleanup on restart
2015-08-07 18:50:17 +00:00
Dianne Hackborn
78f1428565 am 70419f5a: am 5096ee81: am 0fe3e455: am 3d06ea03: Merge "Debugging for issue #22556778: Starting under voice control not allowed" into mnc-dev
* commit '70419f5ab53889d7a4636e3fd62b7c3a7f9e8b54':
  Debugging for issue #22556778: Starting under voice control not allowed
2015-08-07 18:50:07 +00:00
Jason Monk
69a07d401a am 69ed3308: Merge "Allow system to disable lockscreen" into mnc-dev
* commit '69ed33087d77e32a1f1475adf00b9d87580960aa':
  Allow system to disable lockscreen
2015-08-07 18:46:58 +00:00
Jason Monk
69ed33087d Merge "Allow system to disable lockscreen" into mnc-dev 2015-08-07 18:40:19 +00:00
Amith Yamasani
3ad53f765e am 85b3d034: am 1fbc1b3b: Merge "Fix partial user cleanup on restart" into mnc-dev
* commit '85b3d0347955d7244f7d5b89f80482a73e70a0ed':
  Fix partial user cleanup on restart
2015-08-07 18:36:14 +00:00
Dianne Hackborn
5096ee814b am 0fe3e455: am 3d06ea03: Merge "Debugging for issue #22556778: Starting under voice control not allowed" into mnc-dev
* commit '0fe3e45555067af269105d23b3234baa8db7497d':
  Debugging for issue #22556778: Starting under voice control not allowed
2015-08-07 18:36:05 +00:00
Billy Lau
a7238a397d Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS
Merge the CHANGE_NETWORK_STATE permission with WRITE_SETTINGS.

AndroidManifest.xml:
Raised the protection level of CHANGE_NETWORK_STATE permission from
normal to signature|appops and pre23|preinstall for compatibility

provider/Settings:
Wrote new helper methods to check if app is allowed to change network
state.

ConnectivityManager.java & ConnectivityService.java:
Replace enforcement checks for CHANGE_NETWORK_STATE with
checkAndNoteChangeNetworkStateOperations instead.

Change-Id: If8c2dd3c76a5324ca43f1d90fa17973216c2bcc5
2015-08-07 19:29:51 +01:00
Amith Yamasani
85b3d03479 am 1fbc1b3b: Merge "Fix partial user cleanup on restart" into mnc-dev
* commit '1fbc1b3b4b742cdba25d32d65a9813933a37005f':
  Fix partial user cleanup on restart
2015-08-07 18:28:16 +00:00
Amith Yamasani
1fbc1b3b4b Merge "Fix partial user cleanup on restart" into mnc-dev 2015-08-07 18:21:30 +00:00
Dianne Hackborn
0fe3e45555 am 3d06ea03: Merge "Debugging for issue #22556778: Starting under voice control not allowed" into mnc-dev
* commit '3d06ea0349d6afb4248ab47151424bf64cdf5a2d':
  Debugging for issue #22556778: Starting under voice control not allowed
2015-08-07 18:15:01 +00:00
Nicolas Prevot
b5ab2ffc21 Keep intent verification status of system apps when uninstalling them.
When creating a work profile, system apps are uninstalled and then
sometimes reinstalled.
In the process, they lose their intent verification status.

BUG:22943461
Change-Id:I5b008c6de2125f190063b08908076a649067c60d
2015-08-07 19:13:01 +01:00
Amith Yamasani
a7892486c2 Fix partial user cleanup on restart
Internal volume was not available during PackageManagerService creation,
which resulted in a zombie user's folder not being cleaned after a reboot.

Add the internal volume earlier in the boot cycle so that it can be accessed
for user cleanup.

Bug: 22483086
Change-Id: I8f3ffbb25f3902d00a96d1ee2d7a79373c5e35b7
2015-08-07 11:09:05 -07:00
Dianne Hackborn
3d06ea0349 Merge "Debugging for issue #22556778: Starting under voice control not allowed" into mnc-dev 2015-08-07 18:06:01 +00:00
Dianne Hackborn
74aefdf28f Debugging for issue #22556778: Starting under voice control not allowed
Better error messages in log to explain what is going on.

Change-Id: Ie686a323ceedd42453b6581fe79653b407d49ee5
2015-08-07 10:37:21 -07:00
Svetoslav Ganov
9bf912c1cf am 5ed03384: am 1f514608: am 5a624aad: am 38d30dc5: Merge "Immediately kill a shared user process on a permission revocation." into mnc-dev
* commit '5ed0338499b4f6cb8fd9eeedae7c89133c02d247':
  Immediately kill a shared user process on a permission revocation.
2015-08-07 15:55:55 +00:00
Svetoslav Ganov
1f51460887 am 5a624aad: am 38d30dc5: Merge "Immediately kill a shared user process on a permission revocation." into mnc-dev
* commit '5a624aad5faa0a71ce6495671caac1ccd90544ba':
  Immediately kill a shared user process on a permission revocation.
2015-08-07 15:40:35 +00:00
Svetoslav Ganov
5a624aad5f am 38d30dc5: Merge "Immediately kill a shared user process on a permission revocation." into mnc-dev
* commit '38d30dc547825bdde2756f588692063a28749e8d':
  Immediately kill a shared user process on a permission revocation.
2015-08-07 15:33:48 +00:00
Svetoslav Ganov
38d30dc547 Merge "Immediately kill a shared user process on a permission revocation." into mnc-dev 2015-08-07 15:27:49 +00:00
Jason Monk
b978ce7f25 Allow system to disable lockscreen
Even when there is a pin.

Bug: 22920549
Change-Id: Ib84e1c3ac67be0318d4186c66ee582a49969e373
2015-08-07 09:21:51 -04:00
Jeff Davidson
5061b51669 am 2fe51373: am 22d20774: am 20de377b: am 1d7c3254: Merge "Correctly propagate permissions when uninstalling updates." into mnc-dev
* commit '2fe5137315b45738043038a052c50257fa2fbeaa':
  Correctly propagate permissions when uninstalling updates.
2015-08-07 02:13:37 +00:00
Jeff Davidson
22d207747f am 20de377b: am 1d7c3254: Merge "Correctly propagate permissions when uninstalling updates." into mnc-dev
* commit '20de377beb17273a2d2dcd5715c418eec1ac897e':
  Correctly propagate permissions when uninstalling updates.
2015-08-07 01:55:07 +00:00
Svetoslav
aa41add33b Immediately kill a shared user process on a permission revocation.
1. When a permission is revoked we kill the app immediately but do
   not do an immediate kill for shared uid processes. This fixes it.

2. Remove system APIs that are used only by the package installer.

bug:22984670

Change-Id: I3d4ae52ea8679f894aa7c5972941263903479183
2015-08-06 18:47:41 -07:00
Jeff Davidson
20de377beb am 1d7c3254: Merge "Correctly propagate permissions when uninstalling updates." into mnc-dev
* commit '1d7c32548c30c62a35c54a624f89d5f9db31b9d4':
  Correctly propagate permissions when uninstalling updates.
2015-08-07 01:46:58 +00:00
Jeff Davidson
1d7c32548c Merge "Correctly propagate permissions when uninstalling updates." into mnc-dev 2015-08-07 01:39:14 +00:00
Wale Ogunwale
606d11977d am 4aaafab5: am 10068894: am 60f7eb38: am a0ef49c4: Look for recent tasks in live stacks.
* commit '4aaafab50ff2ce8e85a9bb854ff846d90d44efc0':
  Look for recent tasks in live stacks.
2015-08-07 01:35:24 +00:00