d04aaa323c3a788d26f18fc66e0a59b47e525b38 |
|
13-Jun-2016 |
Amith Yamasani <yamasani@google.com> |
More thorough cleansing of expired users If any /data/system_[c|d]e folders were not erased when the user was removed (maybe due to a reboot), make sure they're cleaned up on restart as well as when the userId is recycled later. Mark the users' system folders with the correct serial number for later verification. AccountManager shouldn't be querying accounts of partially created/destroyed users. Change-Id: I4313756b7464f34cd5ce4fb296d61daa50b41fcb Fixes: 29285673
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
26704957fe48d75a5b4f3a51cff520a9e4d8b82c |
|
13-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Don't take the DPMS lock in DPMI.createPackageSuspendedDialogIntent This method is called by AM with the lock held, so can't take the DPMS lock. It still takes a different lock, but we don't call into the external world while holding this lock, so this is fine. Bug 29242568 Change-Id: Idbecdd7d97385ca66c693903443471fdbae833e6
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
c29f62c7388f550da2c7368c5dbc0aec7d1564fe |
|
07-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Push DO/PO package names from DPMS to PM Bug 29126573 Change-Id: I95ea1559f6acf5d2f0e1b0953568cdfc938e83b9
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
6f7362d92573e4ae693bc513dca586d6a4eb087b |
|
04-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Introducing ShortcutManager What's supported: - Most APIs are implemented, except for SM.updateShortcuts(), the icon APIs in LA, and LA.startShortcut(). - Persisting information, except for icons - Throttling In addition, now PersistableBundle has a public copy constructor from a Bundle. (Do we want to @hide it?) TODOs: - Add icon support - Implement missing APIs - Listen to PACKAGE_* broadcasts and do clean-up - Support multi-launcher apps (pinned shortcuts per launcher) - Dev option to reset throttling - Load throttling config from Settings - Backup & restore - Figure out LauncherApps permissions (BIND_APPWIDGETS??) - Other minor TODOs in the code - Better javadoc Note: This requires Idf2f9ae816e1f3d822a6286a4cf738c14e29a45e Bug 27325877 Change-Id: Ia5aa555a4759df5f79a859338f1dc5e624cd0e35
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
8212ae0aee1700b9c287ebadf15af8dacdc8eae6 |
|
10-Feb-2016 |
Jeff Sharkey <jsharkey@android.com> |
Consistent naming for internal storage APIs. Also completely remove a few confusingly named deprecated APIs. Change-Id: Ia7e4ea3190a97f0a7dfa9bebf2118da0866ec38f
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
3fc437e89b018f258a3dee1a83014555aa156dc4 |
|
15-Dec-2015 |
Michal Karpinski <mkarpinski@google.com> |
DPM changes to support remote bugreports Bug: 22860136 Change-Id: If984318e421f511d9b0fc7138aacd36d5334698f
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
e7927da1b6dc4f96714aa9bc4fbb71b3659f8cea |
|
25-Nov-2015 |
Makoto Onuki <omakoto@google.com> |
Don't call DPM from UserManager to avoid lock inversion - Also make sure DPMS.mOwners is always guarded with DPMS.this. (and remove synchronization from Owners.) Bug 25796840 Change-Id: I83f7b78e7b437d9c2a2b1d6e714346cd15f95330
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
1a2cd74526113b45d9108b6997609122c4311fb1 |
|
16-Nov-2015 |
Makoto Onuki <omakoto@google.com> |
More work on layered user restrictions. - Now when DO/PO sets a user restriction, DPMS pushes it to UMS and then UMS persists it, in order for UserManager.hasUserRestriction() to never have to talk with DPMS, which would cause lock inversion. - Also apply user restrictions when a user start. - This is an updated version of the abandoned CL -- the difference is, ActivityManager no longer has to call DPMS. - Also removed an unnecessary write to userlist.xml in UMS. upgradeIfNecessaryLP(). Bug 23902097 Bug 25388912 Bug 25354031 Bug 25641040 Change-Id: I0948aea06ad7d0f45fe612a431d765faddfe3c58
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
803d6757fd23096e437e6fecd51ea6dda918b536 |
|
30-Oct-2015 |
Makoto Onuki <omakoto@google.com> |
Do not allow DO and PO running on the same user. Bug 25346603 Change-Id: Ic5fbed82466a538fbf64ef802fc2624dd67313bb
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
068c54a5be697c3df4657dcda33cd17c4b547710 |
|
13-Oct-2015 |
Makoto Onuki <omakoto@google.com> |
Layer user restrictions - Now DPMS remembers user restrictions set by DO / PO in their ActiveAdmin. - User restrictions set by DO/PO will no longer be saved by UserManger. Instead, when needed, UMS will consult DPMS to build "effective" user restrictions. - UM.getUserRestrictions() will now always return "effective" user restrictions. - DPMS migrates existing user restrictions per the eng spec. - Also now UM.setUserRestrictions() will crash. UMS.setUserRestrictions() has been removed. This was needed because UM.setUserRestrctions(UM.getUserRestrictions()) will no longer be a valid use like it used to be. - Also introduced a fined-grained lock for user restrictions in UM to avoid deadlock between DPMS and also for better performance. Bug 23902097 Change-Id: If0e1e49344e2f3e9226532d00777976d1eaa7df3
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
a52562ca9a4144cf30e6d5c6ffe856cc8e284464 |
|
02-Oct-2015 |
Makoto Onuki <omakoto@google.com> |
setDeviceOwner() now requires a full component name. Bug 20149907 Change-Id: I24e66159d1d966925aa3a494b1e2839b07cdafa2
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
a4f119790e32fcce56586e7324d508e35cb30a2a |
|
01-Oct-2015 |
Makoto Onuki <omakoto@google.com> |
First cut of user restriction layering. - Start persisting restrictions set by DO/PO. - Also dump user restrictions on dumpsys - More changes will follow, including migration. - Now System settings are mockable. Bug 23902097 Bug 23902477 Change-Id: I0bda22f484e1a8e259a1feb2df83c5f4a29116da
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
e7ee54ee7f4985bc743053d38d21f33c70220f05 |
|
21-Sep-2015 |
Craig Lafayette <craiglafa@google.com> |
Remove device initializer agent Bug: 23216982 Change-Id: I867c0b5f4165983d1ed2623a655f6a2a5e3770bb
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
72a3a0c7d24f629bca38ee2652491307e4e706da |
|
26-Sep-2015 |
Makoto Onuki <omakoto@google.com> |
Fix OwnersTest when run with -e package It was because UserManager.get() returns a static cached instance but we should always be using the mock instance that's created for each test. Bug 24378326 Change-Id: Id4663e7676d2d0130622055a97fbde0884714349
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
b643fb0e67460344ade2e3db92738999f8168496 |
|
23-Sep-2015 |
Makoto Onuki <omakoto@google.com> |
Use a factory class for dependency injection, add more tests. - Extracting into a factory allows us to use mocks in other classes. (Such as Owners.) - Also removed broken test ApplicationRestrictionsTest. Instead added a new simplified test to DevicePolicyManagerTest. - Also stop caching rarely used instances in DPMS. Bug 24061108 Bug 24275172 Change-Id: Ice9e57204b18e7b5f6b115126dab2209041439c2
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
58b684f1cdc52467b71c42cfae18433a19ce7d0b |
|
04-Sep-2015 |
Makoto Onuki <omakoto@google.com> |
[split system] Tentatively support running DO on meat user - setDeviceOwner() now takes a user ID. (We can infer it from Binder, but we still need it for the dpm command.) - Change broadcast target UID for DO to the DO user - Start the DO user on boot complete. TODO Investigate whether this is actually the good timing. TODO Prevent the DO user from being killed Bug 23827706 Change-Id: I227dbd444f1f4e94d98c317489d151554fe79d91
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
2714d448b12797a5050834f952fd1166246e558e |
|
03-Sep-2015 |
Makoto Onuki <omakoto@google.com> |
Replace all occurrences of HashMap/HashSet with ArrayMap/ArraySet. Also fix the command line for OwnersTest in javadoc. Change-Id: I53c222aa13eee179c5abf7e6ba95c6cbe9a7f47f
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
c9754cf0dfa66d39ce9ea0d2eeab5f7c442a9686 |
|
31-Aug-2015 |
Makoto Onuki <omakoto@google.com> |
Add unit tests for file persisting in Onwers. Bug 23432442 Change-Id: If10ed5a46084695b2aca1286713b8baea8c2a418
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
28988383182073aad6b96688db5b2801c42b11d7 |
|
31-Aug-2015 |
Makoto Onuki <omakoto@google.com> |
Fix bug in Owners It was always failing to read policy files. Bug 23432442 Change-Id: Ia71a746bbed279c4b27a9ebdf454a3cb4dfa786d
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|
99aeac27ebc5ad54c0095122251cc0258713c263 |
|
31-Aug-2015 |
Makoto Onuki <omakoto@google.com> |
Rename DeviceOwner to Owners Bug 23432442 Change-Id: Ic59c880d45126fbcf50b1bd31e37b2b64e2f3a6d
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/Owners.java
|