Commit Graph

7326 Commits

Author SHA1 Message Date
Jeff Sharkey
5ca0b3462d Merge "When system server goes down, crash admins." into nyc-dev 2016-03-02 03:17:45 +00:00
Jeff Sharkey
dbff9ca4a5 When system server goes down, crash admins.
Apps making calls into the system server may end up persisting
internal state or making security decisions based on the perceived
success or failure of a call, or the default values returned.

The reality is that if the system process just died, init will be
along shortly to kill all running apps, so we should have no problem
rethrowing the RemoteException as a RuntimeException.

Bug: 27364859
Change-Id: I866a8c3c9682da1de2a31fe8b4ffcc9d7f4d8ba0
2016-03-01 20:15:40 -07:00
Jeff Sharkey
60b7bcc614 Merge "When system server goes down, crash apps more." into nyc-dev 2016-03-02 02:42:16 +00:00
Jeff Sharkey
c53962d4ed When system server goes down, crash apps more.
Apps making calls into the system server may end up persisting
internal state or making security decisions based on the perceived
success or failure of a call, or the default values returned.

The reality is that if the system process just died, init will be
along shortly to kill all running apps, so we should have no problem
rethrowing the RemoteException as a RuntimeException.

Bug: 27364859
Change-Id: Ife0bcb079636c88d54c44d17eb580409fd79028b
2016-03-01 19:29:16 -07:00
Vadim Tryshev
791d078d0b Merge "Revert "Adding getManagedUserBadgedDrawableForDensity() to PackageManager."" into nyc-dev 2016-03-02 01:52:19 +00:00
Vadim Tryshev
093622f089 Revert "Adding getManagedUserBadgedDrawableForDensity() to PackageManager."
This reverts commit 9f68f41a58.

Caused breakage.

Change-Id: I441737f61f6f38ed9f440211b52bbac0f74982e3
2016-03-02 01:51:42 +00:00
Jeff Sharkey
19c7699309 Merge "Don't evict SharedPreferences when migrate no-op." into nyc-dev 2016-03-02 00:53:13 +00:00
Vadim Tryshev
6b1eb711d4 Merge "Adding getManagedUserBadgedDrawableForDensity() to PackageManager." into nyc-dev 2016-03-02 00:49:32 +00:00
Wale Ogunwale
75f5de62fe Merge "Relaunch activity resumed if it got resumed before relaunching." into nyc-dev 2016-03-02 00:45:04 +00:00
Vadim Tryshev
9f68f41a58 Adding getManagedUserBadgedDrawableForDensity() to PackageManager.
It allows badging an image regardless of of the user (no
user id parameter). The styling for managed users is applied.

This is useful for new cases where the existing functions
wouldn't badge the icon, but we need it.

Bug: 25192539
Change-Id: I20ca2d7265cbc3a47c050a72ec1843cc0a481c74
2016-03-02 00:41:26 +00:00
Lorenzo Colitti
7f2b6e2a84 Merge "Don't pass calling contexts into static services." into nyc-dev 2016-03-02 00:33:42 +00:00
Keun-young Park
8486706aff Merge "Revert "make isUiModeLocked, isNightModeLocked test api"" into nyc-dev 2016-03-01 22:59:14 +00:00
Keun-young Park
92373d23ee Revert "make isUiModeLocked, isNightModeLocked test api"
This reverts commit b493a7dffe.

Change-Id: I651b7ee5b9ca5d7fa1cde1c625bbaa585e186544
2016-03-01 22:58:15 +00:00
Jeff Sharkey
390f2ed66b Don't evict SharedPreferences when migrate no-op.
When calling migrateSharedPreferencesFrom(), only evict the in-memory
caches when we actually moved files around.

Bug: 27387346
Change-Id: I4fb534e55c0d3df7c574f18d2a853ef824635b8e
2016-03-01 15:25:06 -07:00
George Mount
f445f76eca Merge "Clear child fragment manager after it is destroyed." into nyc-dev 2016-03-01 21:41:45 +00:00
George Mount
b67d34f10e Merge "Ensure that fragments are created in added order." into nyc-dev 2016-03-01 21:40:54 +00:00
Todd Kennedy
4f858aaa5a Merge "Revert "Revert "Remove deprecated methods / classes""" into nyc-dev 2016-03-01 20:39:59 +00:00
Wale Ogunwale
6e66695777 Merge "Add activity onStop lifecycle to event logs." into nyc-dev 2016-03-01 20:34:15 +00:00
Jeff Sharkey
9ad8613bbb Suppress StopInfo exception based on target API.
Bug: 27429026
Change-Id: Ibf0b058b1f921c20fbc3c72045467883a8934f67
2016-03-01 12:18:40 -07:00
Winson Chung
1f3eca97b9 Merge "Disable extracting the bg color from the window background." into nyc-dev 2016-03-01 19:07:36 +00:00
Keun-young Park
63f2c9b0cb Merge "make isUiModeLocked, isNightModeLocked test api" into nyc-dev 2016-03-01 18:37:57 +00:00
Calin Juravle
e1ac71fe99 Merge "Restrict the cases when we profile guided compile an apk" into nyc-dev 2016-03-01 17:59:20 +00:00
Dimitry Ivanov
1984d78330 Merge "Display Toast with linker warnings after Activity.onStart()" into nyc-dev 2016-03-01 17:50:02 +00:00
Filip Gruszczynski
c3b6179fca Relaunch activity resumed if it got resumed before relaunching.
This fixes following scenario:
1) first activity starts second activity and expects results; first
activity gets paused;
2) second activity finishes and returns a result;
3) first activity is still paused and receives the result from the second
activity; first activty requests a local relaunch; relaunch gets
scheduled and is marked as launching paused (because the activity is
still paused)
4) first activity resumes;
5) first activity relaunches and finishes in paused state.

The fix makes it drop the information about launching paused if it is
local when it gets resumed in step 4.

Bug: 25674611
Bug: 26116905
Change-Id: Ieeef3f0d5c311679882fdc59c13fd8a99e3d3a20
2016-03-01 09:29:14 -08:00
Adam Powell
3518feda21 Correct state loss tracking for FragmentTransaction.commitNow
Booleans are hard.

Bug 27419920

Change-Id: I91a746aa14cad36bf77ec6224ffc13b00dc39ae7
2016-03-01 09:07:44 -08:00
Michal Karpinski
8fc5462ee1 Merge "Adding SecurityException information to all device logging DPM public methods" into nyc-dev 2016-03-01 15:57:44 +00:00
Wale Ogunwale
cd7043e99a Add activity onStop lifecycle to event logs.
Also added reasons why onPause and onResume are called.

Bug: 27384433
Change-Id: If6c304f577b601511f6d9b948061d2cfa0dcb970
2016-03-01 07:29:17 -08:00
Michal Karpinski
b58e4966db Adding SecurityException information to all device logging DPM public methods
Bug: 22860162
Change-Id: I6cdfad2dcdf14896c855debef34964def190e110
2016-03-01 15:26:56 +00:00
Todd Kennedy
a67932374d Revert "Revert "Remove deprecated methods / classes""
This reverts commit 5cbeb59026.

Change-Id: Id96010364d65e6131221ebbcc8ce5889a2da256c
2016-03-01 07:19:33 -08:00
Julia Reynolds
2319dd3a66 Merge "Api review: AutomaticZenRule" into nyc-dev 2016-03-01 15:05:36 +00:00
Fyodor Kupolov
57b82f38c4 Merge "Allow system to bypass DISALLOW_SHARE_LOCATION restriction" into nyc-dev 2016-03-01 01:22:00 +00:00
Dimitry Ivanov
cad065fb7f Merge "Explicitly check for updated system apps" into nyc-dev 2016-03-01 00:51:38 +00:00
Dianne Hackborn
72041bb2c6 Merge "Fix issue #27385109: control activity behavior without triggering..." into nyc-dev 2016-03-01 00:35:40 +00:00
Dimitry Ivanov
b2b8c3c1d9 Explicitly check for updated system apps
Unbundled apps should not be allowed to share
linker-namespaces with default namespace; it implies
that they will not have unlimited access to private
native libs once updated.

Bug: http://b/27189432
Change-Id: I60295b9b31d700016add93537418fdcce5a77719
2016-02-29 16:23:10 -08:00
Winson
073a526ba7 Disable extracting the bg color from the window background.
Bug: 27406401
Change-Id: Id03a7d5d199d324d67301c060551db2d3a52e5ac
2016-02-29 16:09:18 -08:00
Jeff Sharkey
753c347efd Merge "Parcelable classes should always be final." into nyc-dev 2016-03-01 00:02:43 +00:00
Jeff Sharkey
50d1c044b5 Parcelable classes should always be final.
Also hide ConnectivityMetricsEvent which isn't being used yet.

Bug: 27415331
Change-Id: Iacdccddda504f3f669185f807b4f35b8dc2b0212
2016-02-29 16:46:09 -07:00
Colin Cross
414c529a4f Merge "Add dumpsys meminfo --unreachable" into nyc-dev 2016-02-29 22:19:40 +00:00
Dianne Hackborn
4a18c26609 Fix issue #27385109: control activity behavior without triggering...
...isUserAMonkey for testing purpose

Add an argument for the caller to specify if they are a poo flinging
monkey.

Change-Id: I0e149a8d78776abaf07517bd4ae886047b7f4252
2016-02-29 12:37:11 -08:00
Ruben Brunk
b77f9ec93a Merge "Revert "DO NOT SUBMIT: Hide VR features for preview."" into nyc-dev 2016-02-29 19:50:37 +00:00
Ruben Brunk
e5d76e8276 Revert "DO NOT SUBMIT: Hide VR features for preview."
This reverts commit cfa66a2a45.

Change-Id: Ibf36092205b14c29935d1f28be5f5b5f64b1d16c
2016-02-29 19:50:15 +00:00
Ruben Brunk
8ccb68af89 Merge "DO NOT SUBMIT: Hide VR features for preview." into nyc-dev 2016-02-29 19:43:55 +00:00
Jeff Sharkey
369f509d56 Sigh, someone is pushing 2MB through StopInfo.
Bug: 27401092
Change-Id: Ib27a56ecc63662ce2d6210890ac65eca09fac9d6
2016-02-29 11:29:37 -07:00
Keun-young Park
b493a7dffe make isUiModeLocked, isNightModeLocked test api
bug: 27365818
Change-Id: I2813493bb10f02741bd7c47a144fdc43eced0030
2016-02-29 10:17:17 -08:00
Lorenzo Colitti
cf9597791e Don't pass calling contexts into static services.
When initializing a service, StaticOuterContextServiceFetcher
passes the calling context to it. This causes a leak if the
service stores the context in a static variable.

Instead, pass in the application context, which will never be
freed for the life of the application, and correspondingly rename
StaticOuterContextServiceFetcher to
StaticApplicationContextServiceFetcher.

Bug: 27147995
Change-Id: Ic67ebc32df7368184c2935f0327491fdc7d69836
2016-02-29 16:08:34 +09:00
Jeff Sharkey
f8880561e6 When system server goes down, crash apps more.
Similar to first patch, but now using new "rethrowFromSystemServer()"
method which internally translates DeadObjectException into
DeadSystemException.  New logic over in Log.printlns() now
suppresses the DeadSystemException stack traces, since they're
misleading and just added pressure to the precious log buffer space.

Add some extra RuntimeInit checks to suppress logging-about-logging
when the system server is dead.

Bug: 27364859
Change-Id: I05316b3e8e42416b30a56a76c09cd3113a018123
2016-02-27 17:17:01 -07:00
Adrian Roos
7006b01f5d Merge "Fix crash with decorated custom notifications" into nyc-dev 2016-02-27 02:29:15 +00:00
Dimitry Ivanov
4449ef5b6a Display Toast with linker warnings after Activity.onStart()
Displays list of problems linker encountered with app's
native code including
1. Unauthorized access to private platform libraries.
2. Text relocations
3. Invalid DT_NEEDED entires

This change is intended only for preview/beta releases and to
be reverted before the first release build.

Bug: http://b/27365747
Change-Id: I08735472059248c901ef22042682d574fb2b0c92
2016-02-26 18:16:14 -08:00
Selim Cinek
9620d8652b Merge "Adapted the notficication style" into nyc-dev 2016-02-27 01:19:46 +00:00
Adrian Roos
5081c0de54 Fix crash with decorated custom notifications
Clones notifications before adding them to remote views so
the original stays parcelable on its own.

Also prevents the compatibility inflation from triggering when
an app uses a decorating style to prevent recursive wrapping.
Those styles only exist on N and later anyways.

Also fixes the compatibility inflation in listeners.

Bug: 27368615
Change-Id: Iedf3036bf315dd9c7b476c7e8bcce57de5b5c9c8
2016-02-26 17:11:29 -08:00