Commit Graph

20775 Commits

Author SHA1 Message Date
Dianne Hackborn
44c49d9291 am 77817a6b: am 4b091802: am 3ed0079f: am 8a9df5a2: Merge "Fix issue #17574819: Chrome browser process is killed in background..." into lmp-dev
* commit '77817a6b4e3bf133505e079de654afff0ba25b0d':
  Fix issue #17574819: Chrome browser process is killed in background...
2014-09-20 00:19:34 +00:00
Dianne Hackborn
5dc8f3ff16 am 9f547d09: am c8baca41: am ae1e4824: am cfcaa31f: Merge "Work on issue #17381033: Program icon and shortcut disappear after..." into lmp-dev
* commit '9f547d09c19dc8aea3f7cffd84ade9ecc7ed17a6':
  Work on issue #17381033: Program icon and shortcut disappear after...
2014-09-20 00:19:29 +00:00
Christopher Tate
37a52a103a am 27935970: am 4f3cb005: am 9c236001: am a739f0df: Logspam is spam
* commit '2793597078ee6cbb04eafea48ba0ee89f0b73449':
  Logspam is spam
2014-09-19 23:56:20 +00:00
Dianne Hackborn
cf456e3c22 Merge "Fix issue #17574819: Chrome browser process is killed in background..." into lmp-dev 2014-09-19 23:26:18 +00:00
Dianne Hackborn
cfb67ee40c Merge "Work on issue #17381033: Program icon and shortcut disappear after..." into lmp-dev 2014-09-19 23:24:19 +00:00
Dianne Hackborn
0ed82e2c21 Work on issue #17381033: Program icon and shortcut disappear after...
...running monkey test overnight [FACTORY ROM BLOCKER]

Add surface tracing to debug output.

Change-Id: I65f7fc90c51b0805f7e0090141c33d6b60ccb3b4
2014-09-19 16:22:50 -07:00
Christopher Tate
eae9216770 Logspam is spam
This turns out to happen a lot in normal usage, but we're logging
copiously about it each time.  It's reporting "oh hey we're already
in this state" -- and so the log is not useful anyway.

Logspam is spam.

Bug 15169507

Change-Id: Ie2d01ff1b0b3600dd9c15ccf83d60875558f1dc2
2014-09-19 22:49:20 +00:00
Dianne Hackborn
5f950269ce am 7e3752e6: am 24a306c5: am 3052e6ed: am cb2775a7: Merge "Add new activity dumpsys command to persist all data." into lmp-dev
* commit '7e3752e6f54955de8084dc9f320483f79fbc88a4':
  Add new activity dumpsys command to persist all data.
2014-09-19 22:26:20 +00:00
Dianne Hackborn
0fe3c25658 Fix issue #17574819: Chrome browser process is killed in background...
...due to dying renderer process

Don't kill processes if they are bound to a service but not impacting
oom adjustment.

Change-Id: I1cc44e633feaeaad6e996b79a6cfd7b386c04095
2014-09-19 15:09:39 -07:00
Jeff Sharkey
f05822e21a am db6c7541: am 84dc7b17: am 4e6d1f66: am 9e8359ab: Merge "Fix bugs when system apps reclaim permissions." into lmp-dev
* commit 'db6c754149e1c28652a58f3f09327385b936b491':
  Fix bugs when system apps reclaim permissions.
2014-09-19 21:47:46 +00:00
Dianne Hackborn
79572afb33 Merge "Add new activity dumpsys command to persist all data." into lmp-dev 2014-09-19 21:41:39 +00:00
Jeff Sharkey
804d37fd57 Merge "Fix bugs when system apps reclaim permissions." into lmp-dev 2014-09-19 20:58:45 +00:00
Michael Wright
b2be25dde2 am ff49e280: am 249e6220: am 2b5563f1: am 66bbf591: Merge "Respect intent-filter priority for system keyboard layouts." into lmp-dev
* commit 'ff49e280f46a698e9cb564f1aecb70cf2765e037':
  Respect intent-filter priority for system keyboard layouts.
2014-09-19 20:41:59 +00:00
Jason Monk
a39fa441ad am ac045858: am 684e6734: am 8a03fc04: am 99b33ccb: Merge "Fix crash in PacManager" into lmp-dev
* commit 'ac045858d28a4b4066dcf4df35a18f415ed7a52c':
  Fix crash in PacManager
2014-09-19 20:10:12 +00:00
Dianne Hackborn
ce0fd7665f Add new activity dumpsys command to persist all data.
Very useful for testing persisting/restoring, to make sure
that all pending changes have been written.

Change-Id: I0e3b7cd3af8afb0b6e751e086081566ab00b76c9
2014-09-19 12:58:15 -07:00
Michael Wright
4bc92b064b Merge "Respect intent-filter priority for system keyboard layouts." into lmp-dev 2014-09-19 19:52:54 +00:00
Jason Monk
f6b46cb8b1 Fix crash in PacManager
The PacManager would clear the pac url by setting it to null, however
everywhere else, pac url is cleared to Uri.EMPTY.  This sometimes leads
to an NPE when PAC is set and cleared rapidly and take down the whole
framework.

Bug: 17581527
Change-Id: I84ce215f4f6a8a7e804372fc0a1e20ac609a21f1
2014-09-19 18:34:32 +00:00
Jeff Sharkey
bfed9f34c0 Fix bugs when system apps reclaim permissions.
Recently we started letting system apps always take precedence over
third-party apps when defining permissions.  This change fixes that
logic to claim the permission immediately, instead of delaying until
after the next reboot.  (Permissions are always reevaluated after
each install.)

We also tighten the constraints slightly to prevent two system
apps from fighting over a permission definition; the first system
app to claim the permission wins.

Bug: 17526617
Change-Id: I49686407f5e99322bc511795c653c5d702becd9d
2014-09-19 11:11:25 -07:00
Christoph Studer
830c9d126a am 1e8fc379: am bd2a955f: am 6ea89f54: am 82485096: Merge "Remove FLAG_FOREGROUND_SERVICE on Service.stopForeground()" into lmp-dev
* commit '1e8fc379a3bfe711e7ad00c99718563d6d2d81dd':
  Remove FLAG_FOREGROUND_SERVICE on Service.stopForeground()
2014-09-19 17:19:12 +00:00
Jeff Sharkey
66434643d5 am c10d90bc: am 201cc84d: am 3bbec99f: am e6c4fb00: Merge "Only revoke ownerless grants when unprivileged." into lmp-dev
* commit 'c10d90bcd89c5b19297965c7d4f5c3cdc5e07ab4':
  Only revoke ownerless grants when unprivileged.
2014-09-19 17:19:07 +00:00
Christoph Studer
bc46c83073 Merge "Remove FLAG_FOREGROUND_SERVICE on Service.stopForeground()" into lmp-dev 2014-09-19 16:43:47 +00:00
Amith Yamasani
d587057246 am 4ad6b3ef: am 10c291a7: am e1206a34: am ba108d11: Merge "Allow primary user profile owner to set device restrictions" into lmp-dev
* commit '4ad6b3ef184424e36915bc046e04706f2dded0e2':
  Allow primary user profile owner to set device restrictions
2014-09-19 16:40:50 +00:00
Jeff Sharkey
c1cdd4bda3 Merge "Only revoke ownerless grants when unprivileged." into lmp-dev 2014-09-19 16:32:52 +00:00
Jeff Sharkey
29b2516012 Only revoke ownerless grants when unprivileged.
Recently we relaxed revokeUriPermission() to allow apps to revoke
Uri permissions that had been granted to them, but this uncovered
bugs in apps that had been relying on the previous no-op behavior.

To mitigate this, only revoke ownerless Uri permissions when in the
unprivileged state; an active owner indicates that another component
of the calling app still needs the permission.

Bug: 17554268
Change-Id: Icc412933b29041ffb699d20136a623440ecc71ec
2014-09-19 09:15:45 -07:00
Amith Yamasani
8d9f121618 Merge "Allow primary user profile owner to set device restrictions" into lmp-dev 2014-09-19 15:51:39 +00:00
Jessica Hummel
82caa19dc8 am d0c8873b: am d5021775: am 1174dbb8: am a38239d3: Merge "bug fix: Allow enableSystemApps to be called by profile and device owner." into lmp-dev
* commit 'd0c8873b29bc14b6962f3f275a1be0fe6df9bd24':
  bug fix: Allow enableSystemApps to be called by profile and device owner.
2014-09-19 15:06:05 +00:00
Jessica Hummel
ccfa1a9799 Merge "bug fix: Allow enableSystemApps to be called by profile and device owner." into lmp-dev 2014-09-19 14:22:43 +00:00
Paul Jensen
d3e90449bd am 329de28a: am 3c062bf5: am 426aed2a: am 2620499a: Merge "Fix to make repeated lingerings work." into lmp-dev
* commit '329de28ae3299ea36a86a5d1106234d9bf6bb1b3':
  Fix to make repeated lingerings work.
2014-09-19 13:27:01 +00:00
Paul Jensen
7bfa35742a Merge "Fix to make repeated lingerings work." into lmp-dev 2014-09-19 11:59:50 +00:00
Jessica Hummel
dd31a10c7f bug fix: Allow enableSystemApps to be called by profile and device owner.
We had an additional check for managed profile in there, so it wasn't working for device owners. Also needed to look at uninstalled packages.

Change-Id: I4813f23b00d7905e92ade582ce082a6f295a322d
Bug: 17384318
2014-09-19 09:56:19 +00:00
Dianne Hackborn
1a50ba057d am 186b584e: am 80113a79: am 1453241b: am 31ce4c62: Merge "Fix issue #17564607: Apps in the managed profile can send any intent..." into lmp-dev
* commit '186b584e5f9d7dc1d0320e159a4ac51d59fb1eea':
  Fix issue #17564607: Apps in the managed profile can send any intent...
2014-09-19 09:30:13 +00:00
Mike Lockwood
15b3c63386 am b4b95714: am e996ea18: am ad421a8b: am 52e5e359: Merge "USB string descriptors are not UTF8, so it is not safe to treat them as such." into lmp-dev
* commit 'b4b957144368a23cd916b7d7f5656141b7cb0dae':
  USB string descriptors are not UTF8, so it is not safe to treat them as such.
2014-09-19 09:30:08 +00:00
Craig Mautner
f9f0380f6d am 44895a9a: am 4e349966: am 888e1a2e: am 992ea042: Merge "Don\'t count finishing activities as effective activities." into lmp-dev
* commit '44895a9a80ab6314640eccb9a3b830b6649cfcff':
  Don't count finishing activities as effective activities.
2014-09-19 09:29:40 +00:00
Christoph Studer
365e4c38d5 Remove FLAG_FOREGROUND_SERVICE on Service.stopForeground()
When services call Service.stopForeground(), remove
FLAG_FOREGROUND_SERVICE from the notification that was supplied
to Service.startForeground().

This enables services to post notifications that become user
dismissable when they switch to being a background service.

Restrict this to targetSdk=L apps to reduce the risk of breaking
existing apps.

Bug: 17551106
Change-Id: Iff8541e5bb2a23ad1fbc9ad80df5fd6eb683148b
2014-09-19 09:53:12 +02:00
Dianne Hackborn
aad42d1204 Merge "Fix issue #17564607: Apps in the managed profile can send any intent..." into lmp-dev 2014-09-19 02:01:58 +00:00
Dianne Hackborn
ace27915d2 Fix issue #17564607: Apps in the managed profile can send any intent...
...to the primary user, even if it was not whitelisted to be forwarded.

The path where getActivityInfo is called for the ResolverActivity
would not correctly apply the requested user ID to the result, so
it wouldn't run under the correct user.

Change-Id: I1da47c54bbed26091832a28236d0b06762c92437
2014-09-18 19:01:01 -07:00
Mike Lockwood
51938c205f Merge "USB string descriptors are not UTF8, so it is not safe to treat them as such." into lmp-dev 2014-09-19 02:00:26 +00:00
Michael Wright
8ebac23196 Respect intent-filter priority for system keyboard layouts.
Bug: 17573945
Change-Id: Id357e199b37ef771c4362c2a5c4ae762071f0042
2014-09-18 18:48:19 -07:00
Craig Mautner
6920feedb5 Merge "Don't count finishing activities as effective activities." into lmp-dev 2014-09-18 23:08:25 +00:00
Craig Mautner
4767f4b3a9 Don't count finishing activities as effective activities.
They were being counted as effectiveRoot even though they were
finishing.

Fixes bug 17550936.

Change-Id: Iaf7201e6150095e55f88344e4b257e4ae8f19a2b
2014-09-18 22:40:12 +00:00
Adrian Roos
8df80d6c72 am a20f2112: am 601def51: am a7878cc0: am 5e5c78a6: Merge "Additional check to determine insets for recents animation" into lmp-dev
* commit 'a20f211209e88e609aa82bbb2138d4bbb71306e9':
  Additional check to determine insets for recents animation
2014-09-18 22:25:53 +00:00
Craig Mautner
7d06c3758d am 1b314af5: am 85241024: am d5dad300: am 43ce5500: Merge "Remove activity icon bitmaps from system process." into lmp-dev
* commit '1b314af5a1a4f0d7f4be38b52caa3a2c28a1da4e':
  Remove activity icon bitmaps from system process.
2014-09-18 22:25:39 +00:00
Amith Yamasani
c34dc7cdeb Allow primary user profile owner to set device restrictions
In addition to device owners, profile owners on the primary user
can also set user restrictions that are necessary to lock down the
user.

This is to enable the case of a profile owner registered after setup
wizard is completed, on the primary user.

Also make managed profile vs. profile wording consistent in the
DevicePolicyManager docs.

Bug: 17555025
Change-Id: Ib9d08b8af34a99b25e11757fa7dc83673a7deb32
2014-09-18 15:14:26 -07:00
Christopher Tate
52fbbdd2f3 am 2547a28e: am 235901bf: am bd81fd28: am 6330e891: Merge "Log alarm delivery only when localLOGV" into lmp-dev
* commit '2547a28eab8d98ee8540e46f7e18c29397cbe1b6':
  Log alarm delivery only when localLOGV
2014-09-18 21:52:17 +00:00
Adrian Roos
8f2152c021 Merge "Additional check to determine insets for recents animation" into lmp-dev 2014-09-18 21:30:00 +00:00
Craig Mautner
bc3126f859 Merge "Remove activity icon bitmaps from system process." into lmp-dev 2014-09-18 21:25:24 +00:00
Craig Mautner
648f69b95c Remove activity icon bitmaps from system process.
When a TaskDescription is sent up to the system process, the Bitmap
contained in the mIcon member is immediately flushed to disk and the
name of the file replaces it in the TaskDescription. Thereby saving
mucho RAM for better uses.

Fixes bug 17527308.

Change-Id: Ifac63ea5d12ed091d1eb03e178b8b847a827f940
2014-09-18 14:16:26 -07:00
Christopher Tate
547f97ac93 Merge "Log alarm delivery only when localLOGV" into lmp-dev 2014-09-18 20:56:25 +00:00
Christopher Tate
2ff5a73c3c Log alarm delivery only when localLOGV
Logspam is spam.

Change-Id: I3bb63f3026fc6222eb8e1496b3a5db4cdf3c7f57
2014-09-18 13:47:57 -07:00
Craig Mautner
111e7a005a am 9987f975: am b09baada: am 654ddc13: am 64d2ee09: Merge "Don\'t remove active stacks from window manager" into lmp-dev
* commit '9987f975966e900565fc47de6c9f4363bf25b816':
  Don't remove active stacks from window manager
2014-09-18 19:20:46 +00:00