Wound up in a deadlock. We held mPackages lock and called the mount
service. This called into the AppOps service which tried to obtain
its lock. On another thread, we held the AppOps service lock which
called into PackageManager service and tried to take mPackages.
Ideally, we'd never hold an internal lock when calling externally.
In practice, that's not always fixable [for example, code change
would be too great to not hold the AppOps lock when calling into
the PackageManager service].
Bug: 28169075
Change-Id: If0a7f1361c7be9385b1f629f68ebc0556b08ab06
A text filter may shorten the text, so we need to use the text
that's actually in the View, not the text we requested, to move
the selection.
Also removing the override of performAccessibilityActionInternal,
which should have been done as part of adding text actions initially.
Bug: 28253708
Change-Id: I184f49dcba0238f4ccc222597cefca258393b263
If a package targets a pre-release SDK [eg a letter version] it should not
be allowed to be upgraded by a release SDK [eg a number version]. If one
absolutely must upgrade to a release SDK, use the "--force-sdk" option
during install.
Bug: 28345311
Change-Id: Ic9fb209968e7c5da2c80c5ca4c0f44f5125f610a
When in FINISH_AFTER_VISIBLE mode, we need to check visibility of
both the current activity, and the activity to be resumed. If the
resumed activity is already visible, we should finish immediately.
We can't put it into stopping state and wait because there won't be
a window visible callback from the next activity.
bug: 28378359
Change-Id: Ib1fb44acfec33616da76f48102cc00b453e41914
When upgrading a package, we need to fill in the "origUsers" field
so that we can clone the installed state correctly. This was done
for child package, but never set for the parent package.
Also fix a bug where a secondary user requested a package to be
moved. Because that move was pushed onto a Handler, the calling
userId appeared to be the device owner instead of the user that
actually requested the move. (Later in the upgrade flow there is
code that force-installs the package for the requesting user.)
Bug: 26729822
Change-Id: I2d2a007c73558f29a3f8c1408ec373fce6e87761
* changes:
Merge "docs: Added section describing Launcher Shortcuts." into mnc-mr-docs am: 9d4afa9 am: ecb8164
Merge "docs: Document test artifact preference setting b/24810371" into mnc-mr-docs am: a6d7a32 am: dd4cc3b
add 64-bit requirement for linux bug: 26288626 am: 584d18b am: 40ed41b
Merge "Removed mention of JRE8 in sdk setup" into mnc-mr-docs am: 2f24634 am: cabbf5c3
Merge "update system reqs for accelerated emulator bug: 27817059" into mnc-mr-docs am: 69c05a7 am: 6a9dcc7
There is no GCC 4.6. am: 7ca1829 am: 4fa2558
Remove obsolete note about libatomic. am: 59daf35 am: 7fd9ff6
Remove an obsolete paragraph. am: e2ff842 am: e57e4b3
Remove an out of date detail. am: 931a0a4 am: ff0d46f
Fix case of libc++. am: 3e94f7e am: cbd6ce1
Merge "Fix typo." into mnc-mr-docs am: ad5d64b am: dbfb0c6
Merge "docs: Remove obsolete deep link term from AS 2.0 Code Tools page b/28075206" into mnc-docs am: b93a913 am: 33f241d am: d67e559
Merge "Docs: minor AS 2.0 related fixes" into mnc-mr-docs am: a598807 am: 9d9cea5
Merge "docs: Document test artifact preference setting b/24810371" into mnc-docs am: 53ae576 -s ours am: 0c615f4 am: bb93651
Merge "Docs: Minor fixes to Background Optimizations and Doze docs" into mnc-mr-docs am: 6bd5c3d am: a572a3a
URLs are hard, Mr. Eason. am: 9938f2b am: 6c5079b
add studio 2.0 blog post to the "latest" feed for studio landing page am: 2e4bcfd am: 78fab38
delete irrelevant manifest documentation am: 3c8d502 am: 1800bef
Merge "make hero header and image link to download studio" into mnc-mr-docs am: 2890c65 am: f6783df
Merge "Docs: Added image for CTL config" into mnc-mr-docs am: 78bad64 am: df51dd1
add notice about compatiblity with N Preview (bug:27830549) improve linux 32-bit library information (bug:27962189), add a note about JDK 8 compatibility on Mac, and a few other edits to installation guide and system reqs. am: d69b727 am: 1b30208
Merge "Docs: Added release notes for SDK Tools 25.0.0" into mnc-mr-docs am: ffb094d am: 16c507d
Merge "Add 2.0 download file names, sizes, sums" into mnc-mr-docs am: 8a7a91d am: 3443287
Merge "docs: Updated support library release notes for 23.3.0" into mnc-mr-docs am: 3db9afa am: a37dd29
Merge "add instructions to change Android SDK location when using N Preview bug: 28017690" into mnc-mr-docs am: e5cbba2 am: 414150f
Merge "Docs: Added AS 2.0 Release Notes" into mnc-mr-docs am: a49d235 am: ecb082f
Merge "docs: Data Binding 2.0 updates b/26892478" into mnc-docs am: 2ebdbd2 am: a9b10e3 am: e10717c
Merge "docs: Emulator 25.0.10 docs for AS 2.0 release b/24816712" into mnc-docs am: 9e9b15e am: 566c9be am: b0ccc39
Merge "Docs: Minor edit to IR docs to mention longer intial/clean builds" into mnc-mr-docs am: e60e315 am: f2a8f83
Merge "docs: AVD Manager docs for AS 2.0 b/26907919" into mnc-docs am: 8dbdfc4 am: 027d322 am: 97c36d3