83b40f69bef4ba17bb63ac30d52f661a12d5b4f4 |
|
26-Apr-2017 |
Dianne Hackborn <hackbod@google.com> |
Work on issue #36891897: Need to ensure foreground services can't... ...hide themselves The activity manager now keeps track of all apps that are running foreground services and builds a notification showing them to the user. We ensure they are shown to the user for at least 30 seconds (configurable). If foreground services are executed while the screen is off, their apps will be shown to the user for at least 30 seconds after the screen turns back on. While doing this I am also adding a new process state to distinguish between "important background" stuff that should bypass bg check vs. ones that don't. By default, these now no longer bypass bg check, which is really the expected (and documented) behavior. There is a new bind flag to allow them to bypass bg check, which is currently only used by the IME. Also add some new job scheduler commands that will be used to write new tests cases for jobs timing out. Bug: 36891897 Test: manual Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958
/frameworks/base/services/core/java/com/android/server/DropBoxManagerService.java
|
6df866a8510af2776c48425a361f708ae7f5d7d6 |
|
31-Mar-2017 |
Jeff Sharkey <jsharkey@android.com> |
Enforce PACKAGE_USAGE_STATS for usage data. Some system services are offering package usage data through both public/system APIs and through dump() calls. In principle, usage data hould always be protected with PACKAGE_USAGE_STATS, so start enforcing that. (Otherwise if a user blocked PACKAGE_USAGE_STATS access to an app, that app could still obtain the data via dump() if they held the DUMP permission.) Bottom line, let's respect the user's wishes. Protecting the entire output like this is pretty blunt, but future CLs can add more nuance to the output if desired. Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest Bug: 32806790 Change-Id: I46173562713bea7d89e12a4313c78eb52ea8d77d
/frameworks/base/services/core/java/com/android/server/DropBoxManagerService.java
|
fe9a53bc45fd0124a876dc0a49680aaf86641d3e |
|
31-Mar-2017 |
Jeff Sharkey <jsharkey@android.com> |
Consistent dump() permission checking. This change introduces new methods on DumpUtils that can check if the caller has DUMP and/or PACKAGE_USAGE_STATS access. It then moves all existing dump() methods to use these checks so that we emit consistent error messages. Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest Bug: 32806790 Change-Id: Iaff6b9506818ee082b1e169c89ebe1001b3bfeca
/frameworks/base/services/core/java/com/android/server/DropBoxManagerService.java
|
d79d203b357b8ac54c36e028d8bb80e3a39165f5 |
|
23-Aug-2016 |
Jeff Sharkey <jsharkey@android.com> |
Bring back wtf() for missing services. Publish DropBox extremely early during boot process so that it can pick up wtf() calls while booting. Bug: 28634953 Change-Id: Ie71d53fc125ebc47fa08ef59a8b7e4f66f2e805c
/frameworks/base/services/core/java/com/android/server/DropBoxManagerService.java
|
ca7a43b5dad127def73b86c0540acce7a895609d |
|
03-Aug-2016 |
songjinshi <songjinshi@xiaomi.com> |
Merge "Fixes the system server crash issue caused by uncatched exception." am: b68106cf2a Change-Id: Ia28f7bdad020dbb3695934cae1f193037de41fcb
|
c5e249b9e06b3637a2931b338b5d5ce7b7cfb1e5 |
|
27-Jul-2016 |
songjinshi <songjinshi@xiaomi.com> |
Fixes the system server crash issue caused by uncatched exception. The restat method of the StatFs may throw an IllegalArgumentException, so we must to catch it and throw an IOException for the caller of the trimToFit(),this fix can improve system stability. https://code.google.com/p/android/issues/detail?id=218359 Change-Id: I54a2f569eea67d3ab628944e3586ca918ec70283 Signed-off-by: songjinshi <songjinshi@xiaomi.com>
/frameworks/base/services/core/java/com/android/server/DropBoxManagerService.java
|
28532d00267c73b8e0fa5235169fa72c414e1cd0 |
|
21-Apr-2016 |
Tobias Thierer <tobiast@google.com> |
frameworks/base: Avoid Long object allocations in Long.valueOf() Replace usages where the Long is immediately unboxed or thrown away with Long.parseLong(). In TaskRecord.java, I also fixed up similar uses of {Boolean,Integer}.valueOf() Tested: built frameworks/base successfully. Bug: 28289401 (cherry picked from commit 4bd017d6a5437f153b2b0a149a5dde0b85bf6907) Change-Id: Icfa4708946e774f4a1bacf185c3fd11a7087017e
/frameworks/base/services/core/java/com/android/server/DropBoxManagerService.java
|
4bd017d6a5437f153b2b0a149a5dde0b85bf6907 |
|
21-Apr-2016 |
Tobias Thierer <tobiast@google.com> |
frameworks/base: Avoid Long object allocations in Long.valueOf() Replace usages where the Long is immediately unboxed or thrown away with Long.parseLong(). In TaskRecord.java, I also fixed up similar uses of {Boolean,Integer}.valueOf() Tested: built frameworks/base successfully. Bug: 28289401 Change-Id: I1fad536853a68c7b0707cbf02989aca155064843
/frameworks/base/services/core/java/com/android/server/DropBoxManagerService.java
|
e4de5a0d3b6e0c897c1cea0912b58e11db962365 |
|
23-Sep-2015 |
Xiaohui Chen <xiaohuic@google.com> |
Cleanup OWNER references. Bug: 19913735 Change-Id: I2150c6baaab80fe11312e4401394a2a8da52e595
/frameworks/base/services/core/java/com/android/server/DropBoxManagerService.java
|
0935f3ce512a62f943d2cc4daa65145ad6937c34 |
|
28-May-2015 |
Tim Kilbourn <tkilbourn@google.com> |
Refactor DropBoxManagerService as a SystemService. Move the binder stub inside the service and inherit from SystemService to take advantage of SystemServiceManager. Change-Id: Ic6fff50ccfcf6c9626ffca8d61f627c055608953
/frameworks/base/services/core/java/com/android/server/DropBoxManagerService.java
|
22510ef27424088e90224c38590df0c575ad0192 |
|
13-Nov-2014 |
Jeff Sharkey <jsharkey@android.com> |
Fix NPE in DropBoxManagerService.dump() Bug: 18374803 Change-Id: Id1f66a0887d1584f97b127e837a4fad31f7d9d57
/frameworks/base/services/core/java/com/android/server/DropBoxManagerService.java
|
9158825f9c41869689d6b1786d7c7aa8bdd524ce |
|
22-Nov-2013 |
Amith Yamasani <yamasani@google.com> |
Move some system services to separate directories Refactored the directory structure so that services can be optionally excluded. This is step 1. Will be followed by another change that makes it possible to remove services from the build. Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
/frameworks/base/services/core/java/com/android/server/DropBoxManagerService.java
|