102525 Commits

Author SHA1 Message Date
Nick Kralevich
f00529d901 Merge "PackageManagerService: update grantPermission / revokePermission" into jb-mr2-dev 2013-03-25 18:14:04 +00:00
Nick Kralevich
c498614414 PackageManagerService: update grantPermission / revokePermission
Currently, grantPermission / revokePermission only handles development
permissions. This change extends these two functions to handle normal
and dangerous permissions.

A normal / dangerous permission can modified if it is marked as
optional (android:required="false") using the "am grant" / "am revoke"
commands.

Currently, this change is a no-op. The package parser code
does not currently honor <uses-permission android:required="false"> in
the application's manifest, and assumes a permission is always required.

This change sets the ground for future optional permissions work.

Change-Id: I34f02ffd714e8a9a37b9f87df89cef915b1b6780
2013-03-25 11:01:20 -07:00
Nick Kralevich
7d2a4b4139 am 754aa113: Merge "AppSecurityPermissions: minor code cleanup" into jb-mr2-dev
* commit '754aa113821046f563a5773ad07e9f4ea49804eb':
  AppSecurityPermissions: minor code cleanup
2013-03-25 17:42:14 +00:00
Nick Kralevich
754aa11382 Merge "AppSecurityPermissions: minor code cleanup" into jb-mr2-dev 2013-03-25 17:37:35 +00:00
Eric Laurent
e4ad1a7420 am 7c566bf3: Merge "audio service: add config option for fixed volume" into jb-mr2-dev
* commit '7c566bf3e4a10d74588b3e92ea3f6af310930f37':
  audio service: add config option for fixed volume
2013-03-25 17:10:47 +00:00
Joe Malin
421435d2be Android Training: Accessing Contacts
Change-Id: I4de9f2a9ef18415225e1c85d53602bbaacbb7bb6
2013-03-25 10:10:35 -07:00
Eric Laurent
7c566bf3e4 Merge "audio service: add config option for fixed volume" into jb-mr2-dev 2013-03-25 17:08:28 +00:00
rpcraig
1e0c8e6989 Proper security labeling of multi-user data directories.
This patch covers 2 cases. When an app is installed
and the resulting data directory is created for all
existing users. And when a new user is created and
all existing app data directories are created for
the new user.

Change-Id: Iacaba6d9d18d5337e65713960d14efe32006b330
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
2013-03-25 14:35:00 +00:00
The Android Automerger
61a9962c61 merge in jb-mr2-release history after reset to jb-mr2-dev 2013-03-25 05:56:01 -07:00
Robert Craig
d3f8d0333c Add seinfo parsing to PackageManagerService.
This patch set allows the PMS to parse the
mac_permissions.xml file which contains the
seinfo values. Each package that is installed
on the device will be assigned an seinfo value
based on policy. This seinfo value will help label
the app process and data directory.  Modifications
include adjustments to ApplicationInfo.java
to store the seinfo tag per package as well as
adjustments to installd to communicate the seinfo
tag to libselinux.

Change-Id: I61ad1ea12fb6a9a6d0b108ec163bc4bf4c954b58
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
2013-03-25 06:33:03 -04:00
Nick Kralevich
10ac1d125a AppSecurityPermissions: minor code cleanup
Convert more instance variables to private.
Delete some dead code.
Simplify some code.

Change-Id: Iedd55857138b71b2915b9886128adfcd9e4b3c57
2013-03-24 15:49:33 -07:00
Dianne Hackborn
dd24a32b7c am 37f180b4: Merge "App ops: don\'t crash when provide read access is off." into jb-mr2-dev
* commit '37f180b4a52e4c1d0b6a7b400b6579b7ff25f307':
  App ops: don't crash when provide read access is off.
2013-03-23 01:47:45 +00:00
Dianne Hackborn
37f180b4a5 Merge "App ops: don't crash when provide read access is off." into jb-mr2-dev 2013-03-23 01:43:37 +00:00
Dianne Hackborn
9fa39bd255 App ops: don't crash when provide read access is off.
If the caller supplied an empty selection string (instead
of null) we would crash due to creating a bad SQLite statement.

Change-Id: I462803b80c81815ed9a3a320c23060daa28e8114
2013-03-22 18:42:14 -07:00
Dianne Hackborn
8277f24865 am b685faa2: Merge "Implement #8323587, #8323342, #8323590: new features." into jb-mr2-dev
* commit 'b685faa2cee2f8d74c82547fa7585027cbcfba5f':
  Implement #8323587, #8323342, #8323590: new features.
2013-03-23 01:30:35 +00:00
Dianne Hackborn
b685faa2ce Merge "Implement #8323587, #8323342, #8323590: new features." into jb-mr2-dev 2013-03-23 01:26:08 +00:00
Fabrice Di Meglio
071f6333dd Fix bug #8447352 Contextual ActionBar vertical divider is incorrectly aligned in RTL mode
- add missing RTL drawables
- known issue: please note that because dalvik is caching drawables, a Locale change will
still show the wrong version of the drawables. You will need to reboot the device to see
the correct versions.

Change-Id: Ic522ba54ef19b0ff573b3a56c46ee76176aff4bb
2013-03-22 18:23:03 -07:00
Michael Wright
4e58e9c579 am 53d13667: Fix log tags in trackball debugging
* commit '53d13667e39f12644d03278c33298351ac68ec26':
  Fix log tags in trackball debugging
2013-03-23 01:00:59 +00:00
Michael Wright
53d13667e3 Fix log tags in trackball debugging
Change-Id: I02a623c96aff8b6ffbe11161feea39ad26ba0e83
2013-03-23 00:57:51 +00:00
Michael Wright
c8ee44d4b6 Remove misleading documentation from SystemClock
Change-Id: Ic97f911dca5c2b8911a4b2c670c4c79578f2cec0
2013-03-22 17:55:14 -07:00
Dianne Hackborn
119bbc378d Implement #8323587, #8323342, #8323590: new features.
8323587: Add feature for supporting app widgets
8323342: Add feature for replacing the home screen
8323590: Add feature for supporting input methods

The app widget service looks for the app widget feature
and refuses to work if it doesn't exist.  I didn't do
this for the input method service because some devices
will probably want to still make use of that mechanism
without supporting third party input methods.

Change-Id: Ie3b089105e104f4d767cdb03cdbe4fdb1c17382e
2013-03-22 17:27:25 -07:00
Svetoslav
8d023d80ea am 320a31c6: Merge "Incorrect unbinding of accessibility services." into jb-mr2-dev
* commit '320a31c604230566c2d269edf4327c97d99966a1':
  Incorrect unbinding of accessibility services.
2013-03-23 00:17:15 +00:00
Svetoslav
320a31c604 Merge "Incorrect unbinding of accessibility services." into jb-mr2-dev 2013-03-23 00:14:43 +00:00
Svetoslav
cefac5acc8 Incorrect unbinding of accessibility services.
If no accessibility services are enabled, we disable the
accessibility event firing to save resources. When the last
such services is disabled the system was not unbinding. As
a result the user was seeing the touch exploration enable
dialog when the service that requested it is disabled. Also
there is one service the system is bound to that is not used.

bug:8439191

Change-Id: I6f37f2573a815bfb29870298aa0abbb1fa105588
2013-03-22 17:13:01 -07:00
Dianne Hackborn
c31dc85848 am 1a89c532: Merge "New media button API." into jb-mr2-dev
* commit '1a89c5324badd10dac142a5a0c40a203503db65f':
  New media button API.
2013-03-22 23:18:15 +00:00
Dianne Hackborn
1a89c5324b Merge "New media button API." into jb-mr2-dev 2013-03-22 23:13:49 +00:00
Craig Mautner
78089c3c22 am 5341f377: Merge "Reduce situations where black thumbnail occurs." into jb-mr2-dev
* commit '5341f377ccdd71471894d23afaab4d7a75fd03ba':
  Reduce situations where black thumbnail occurs.
2013-03-22 22:54:46 +00:00
Michael Wright
a329c83d66 am 88a0765d: Merge "Add pipelining optimization to IME dispatching" into jb-mr2-dev
* commit '88a0765dd4f18ce367f2874f5972816644090b0d':
  Add pipelining optimization to IME dispatching
2013-03-22 22:54:44 +00:00
Craig Mautner
5341f377cc Merge "Reduce situations where black thumbnail occurs." into jb-mr2-dev 2013-03-22 22:51:57 +00:00
Michael Wright
88a0765dd4 Merge "Add pipelining optimization to IME dispatching" into jb-mr2-dev 2013-03-22 22:49:53 +00:00
Jeff Tinker
90defba919 Load crypto plugins from additional shared libraries
Currently crypto plugins are expected to be in libdrmdecrypt.so.
When there are multiple plugins supporting different schemes,
this approach requires source code integration across
vendors which is unmanagable.  Also, for integration with
MediaDrm where the crypto keys are obtained from a drm server,
the MediaCrypto plugin needs to interoperate with the MediaDrm
plugin. This change allows {MediaCrypto, MediaDrm} pairs that
are logically related to be implemented in a common shared
library.

Multi-repository commit, goes with:
https://googleplex-android-review.googlesource.com/287838

Change-Id: I08577cda0cbcb22ebe3cb874f5fcafe411c36be3
2013-03-22 15:32:27 -07:00
Christopher Tate
a35c0c0475 am 57b0f363: Merge "Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)" into jb-mr2-dev
* commit '57b0f3638297242baca5db3e8ab4b5aab151f09e':
  Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)
2013-03-22 22:29:14 +00:00
Christopher Tate
57b0f36382 Merge "Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)" into jb-mr2-dev 2013-03-22 22:24:21 +00:00
Chris Craik
27c809dba4 am 81cce37d: Merge "Restore final canvas state after deferred flush" into jb-mr2-dev
* commit '81cce37deda2bd097d245c4d54806a354971a97c':
  Restore final canvas state after deferred flush
2013-03-22 22:15:37 +00:00
Chris Craik
81cce37ded Merge "Restore final canvas state after deferred flush" into jb-mr2-dev 2013-03-22 22:11:33 +00:00
Christopher Tate
fc05434908 Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)
Specifically, throw an explicit IllegalArgumentException if
'len' is negative, rather than falling over in some other
way further down the line.

Change-Id: If955de7ec1a15aa9aa8c42b6994b059e0cdffcee
2013-03-22 15:01:13 -07:00
Dianne Hackborn
961cae9254 New media button API.
This allows sending media buttons to any PendingIntent,
so they can be captured with a registered receiver.

Also add some new ViewTreeObserver APIs; this is all for
a new support library API to watch media buttons while an
app has input focus.

Change-Id: I3c51cef59460662b008c9a2cc87d6a6383c21855
2013-03-22 14:49:28 -07:00
Wink Saville
439eea8328 am c1b40c79: Merge "Add some new constants." into jb-mr2-dev
* commit 'c1b40c79beaec77937a58ffab1de9e02d553cd44':
  Add some new constants.
2013-03-22 21:46:12 +00:00
Jim Miller
26ebeb6d55 am 7b3526d5: Merge "Fix alternate time zone display for clock widget." into jb-mr2-dev
* commit '7b3526d536c2066ba88c5923b2419da2662b3c51':
  Fix alternate time zone display for clock widget.
2013-03-22 21:46:10 +00:00
Wink Saville
c1b40c79be Merge "Add some new constants." into jb-mr2-dev 2013-03-22 21:41:31 +00:00
Jim Miller
7b3526d536 Merge "Fix alternate time zone display for clock widget." into jb-mr2-dev 2013-03-22 21:40:47 +00:00
Jeff Sharkey
527b2578d4 am 9da8c37a: Merge "Move XML utility methods into shared location." into jb-mr2-dev
* commit '9da8c37ab8bb29c813d08a8c7e4fd6431fc52191':
  Move XML utility methods into shared location.
2013-03-22 20:47:57 +00:00
Fabrice Di Meglio
f4efad0551 Fix bug #8200928 ExpandableListView should be RTL-aware
- add indicatorStart/indicatorEnd and childIndicatorStart/childIndicatorEnd properties

Change-Id: I1ee67e47798bbcb31670cc9afde3ccac68338d94
2013-03-22 13:46:08 -07:00
Jeff Sharkey
9da8c37ab8 Merge "Move XML utility methods into shared location." into jb-mr2-dev 2013-03-22 20:45:17 +00:00
Jeff Sharkey
ded7b75d1a Move XML utility methods into shared location.
Change-Id: I15e8f0e4a6c5546d9be956ca0d46715d3441458c
2013-03-22 13:43:41 -07:00
Michael Wright
c8a7e54fef Add pipelining optimization to IME dispatching
Rather than wait for the IME to return before sending it the next input event,
send all available input events as soon as we receive them.

Bug: 7984576
Change-Id: Ie0b1086efc4f9e1ececac22afd997829304bf180
2013-03-22 13:35:57 -07:00
Guang Zhu
4a7fae4953 am eb93cc6a: Merge "add account checks to app launch test" into jb-mr2-dev
* commit 'eb93cc6abba0d8be26ace531179510bffa86782d':
  add account checks to app launch test
2013-03-22 19:34:20 +00:00
Guang Zhu
eb93cc6abb Merge "add account checks to app launch test" into jb-mr2-dev 2013-03-22 19:31:55 +00:00
Craig Mautner
24d88747e9 Reduce situations where black thumbnail occurs.
Pause and retry capturing a thumbnail if the window hasn't yet
been drawn. Still will show black thumbnails if recents is pressed
before window has anything drawn.

Improves bug 7552304.

Change-Id: I550c5a60510bfc4547bbb44451d57b4bc9f49880
2013-03-22 12:07:51 -07:00
Robert Greenwalt
8735745b28 am 55187f18: Prevent NPE in new API.
* commit '55187f18505aad67f824094061af1b6d0a0ebb38':
  Prevent NPE in new API.
2013-03-22 19:07:01 +00:00