summaryrefslogtreecommitdiffstats
path: root/services/core/java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add APIs for verifier to grant at install and revoke permissions" ↵Svet Ganov2015-07-162-47/+115
|\ | | | | | | into mnc-dev
| * Add APIs for verifier to grant at install and revoke permissionsSvet Ganov2015-07-152-47/+115
| | | | | | | | | | | | bug:22231699 Change-Id: Ie0c758bf73699f50bf99ff5aa0bf98dcc9004e37
* | Merge "Work on issue #22516282: ChooserTarget URI grants not forwarded" into ↵Dianne Hackborn2015-07-163-27/+39
|\ \ | | | | | | | | | mnc-dev
| * | Work on issue #22516282: ChooserTarget URI grants not forwardedDianne Hackborn2015-07-163-27/+39
| | | | | | | | | | | | | | | | | | | | | | | | Add new option to startActivityAsCaller() which allows you to specify that we should not do security checks on the target activity being launched. Change-Id: Ie6b28807b96fef35ccdff93b0a01066cfd8fa307
* | | Merge "DefaultPermission: GET_ACCOUNTS is now in CONTACTS" into mnc-devMakoto Onuki2015-07-161-10/+2
|\ \ \
| * | | DefaultPermission: GET_ACCOUNTS is now in CONTACTSMakoto Onuki2015-07-161-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | Bug 22532312 Change-Id: If7ad0faa3a196bb28da1ddc13788c0430df1d1ee
* | | | Merge "Verfiy global apps with device owner" into mnc-devTodd Kennedy2015-07-161-3/+8
|\ \ \ \
| * | | | Verfiy global apps with device ownerTodd Kennedy2015-07-161-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applications installed for a specific user must be verfied as that user. However, apps that are installed globally [i.e. UserHandle.ALL] should not be verified by every user on the device. Instead, they should be verified by the device owner. Bug: 21901423 Change-Id: I5fd3f690d08e7e911a3c86f09bbfcd4eb635b418
* | | | | Merge "Animate app exit for cases where the app is already hidden before ↵Wale Ogunwale2015-07-161-7/+11
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | transition" into mnc-dev
| * | | | Animate app exit for cases where the app is already hidden before transitionWale Ogunwale2015-07-161-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is possible for an app token to be marked as hidden and exiting because the previous activity destory is completed before we are good-to-go with app transition since we are still waiting for the opening app to be done drawing. In this case we don't apply the exiting animation since the token is not changing visibility state during the app transition (it is already hidden and we are telling it to hide...). We now allow the animation to load if the token is already hidden and marked as exiting. Bug: 22381703 Change-Id: I5c27b6c3c1f810f05b2d716122055c6f12d0a167
* | | | | Don't send app links to the parent if status = never (part 2)Nicolas Prevot2015-07-161-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To qualify for cross-profile app linking, an intent should resolve with a better status than "NEVER". Moved this check from canForwardTo into the source method, getCrossProfileDomainPreferredLpr, to stop bad resolutions leaking out. BUG:22287521 Change-Id: I195979d78a783864d841a81f358780912bbf168e
* | | | | Merge "Remove redundant cancel events from FingerprintService" into mnc-devVineeta Srivastava2015-07-161-23/+38
|\ \ \ \ \
| * | | | | Remove redundant cancel events from FingerprintServiceJim Miller2015-07-151-23/+38
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where the framework was sending repeat cancel events in response to terminal status (onAuthenticated(), onError()) which causes the underlying HAL implementation to get into a weird state. Now, only client-initiated events like an explicit cancellation or starting another authentication/enrollment invokes fingerprintd's cancel() method. Fixes bug 22438498 Change-Id: I762bab1c8635924848f9f4334db47a07130d5ae3
* | | | | Merge "Fix a bug disappearing installerPackageName info of packages after ↵Chris Tate2015-07-161-0/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | reboot." into mnc-dev
| * | | | | Fix a bug disappearing installerPackageName info of packages after reboot.hyemin.hwang2015-07-151-0/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If user install apps from playstore, system has installerPackageName attribute of app. but, after reboot, some apps(have sharedUserID) installerPackageName attribute disappearing. because lack of copy routine. So, I added copy routine(installerPackageName). Testcase : 1. Install app(has sharedUserId, ex Lync2013) from market. 2. Confirm package info from packages.xml(exist installer info). 3. reboot. 4. Re-confirm package info from packages.xml(not exist installer info). Cherry-pick from AOSP master. Bug 22513758 Change-Id: I3fea3e573c056f6c2f574715d2ebef4df8b75a68
* | | | | Merge "Intent filters need CATEGORY_BROWSABLE to be app-linking eligible" ↵Christopher Tate2015-07-161-8/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | into mnc-dev
| * | | | | Intent filters need CATEGORY_BROWSABLE to be app-linking eligibleChristopher Tate2015-07-151-8/+6
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Bug 22504009 Change-Id: I565b2ba4d1e5deeee8ede3363819deec206dbf58
* | | | | Merge "Bug: 21589105 Rescoping SYSTEM_ALERT_WINDOW..." into mnc-devBilly Lau2015-07-162-10/+26
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Bug: 21589105 Rescoping SYSTEM_ALERT_WINDOW...Billy Lau2015-07-162-10/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AppOpsManager: Changed the default mode for SYSTEM_ALERT_WINDOW to MODE_DEFAULT instead of MODE_ALLOWED. Otherwise, an app that did not declare for this permission will actually be allowed to perform OP_SYSTEM_ALERT_WINDOW, which is undesirable. This change also allows callers to make their own decision based on the current policy (M vs pre-M apps). policy/PhoneWindowManager: Added additional checks that will handle MODE_DEFAULT - this happens when an app is newly installed but not yet configured. wm/WindowManagerService: Enriched some checks to include the treatment of MODE_DEFAULT - this will allow pre-M apps uninterupted capability to draw on top of other apps. Change-Id: I8de77730e158c97587427820cfba721bd5607bea
* | | | | Merge "Fix issue #22487155: Device unresponsive (deadlock in system_server)" ↵Dianne Hackborn2015-07-151-10/+14
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | into mnc-dev
| * | | | | Fix issue #22487155: Device unresponsive (deadlock in system_server)Dianne Hackborn2015-07-151-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using my magic potion, Deadlock-B-Gone! Change-Id: If5c0a2b18134dc95444f3782ab5aa475414b5839
* | | | | | Merge "Resolve based on the correct user's default browser" into mnc-devChristopher Tate2015-07-151-3/+2
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Resolve based on the correct user's default browserChristopher Tate2015-07-151-3/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Bug 22509659 Change-Id: Iac75e7b40609bf2c81d266e0568fbfbeb71bb3aa
* | | | | Merge "Grant default permissions to the setup app robustly." into mnc-devSvet Ganov2015-07-152-15/+9
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Grant default permissions to the setup app robustly.Svet Ganov2015-07-152-15/+9
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a zoo of components that handle the home intent and have different priority. There is no reliable way to distinguish the setup app from the other apps that handle home as some of them have lower priority than the setup app and some higher. This change adds a dedicated category to recognize the default setup app. Uncommented the code that grants accounts permissions as the get_accounts permission is now a runtime permission and can be granted. bug:22471024 bug:22501463 Change-Id: I41726751fa2567cbcd7d09c7acfa7615b8aba577
* | | | Improve tracking of screen on reasons.Dianne Hackborn2015-07-159-28/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - New screen on app op to record the last time each app has caused the screen to be turned on. - New battery stats event that tells us the reason the screen has been asked to turn on. - Propagate out power manager API to specify the reason a caller is asking to have the screen turned on. Note that currently the window flag to turn the screen on bypasses much of this because it is being handled in the window manager by just directly telling the power manager to turn the screen on. To make this better we need a new API where it can specify who it is calling the API for. Change-Id: I667e56cb1f80508d054da004db667efbcc22e971
* | | | Bump mms whitelist time up to 1 minute.Dianne Hackborn2015-07-141-1/+1
| | | | | | | | | | | | | | | | Change-Id: I09074c440430580fcfb2581275defe61c63c8ae8
* | | | Fix issue #21626564: MMS should be receivied while DozingDianne Hackborn2015-07-143-49/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now place whoever is receiving the MMS on the temporary whitelist while doing so, so they can get network access to download it. There was also an issue that needed to be fixed where we were no longer updating the list of allowed uids while dozing based on their proc states... we now do that. Also did a bit of optimization of the temp white list update path do the network policy manager, instead of going through a broadcast we now directly call in to the network policy manager. This also allows us to have a synchronous version of updating the list, so we can know the app has network access before we tell it to do anything. Finally added battery stats events for things going on and off the whitelist so we can diagnose the behavior there. Change-Id: Ic7fe010af680034d9f8cb014bb135b2addef7455
* | | | Merge "Added sendBroadcastMultiplePermissions method" into mnc-devFyodor Kupolov2015-07-153-95/+121
|\ \ \ \
| * | | | Added sendBroadcastMultiplePermissions methodFyodor Kupolov2015-07-143-95/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added Context.sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) method, which allows an array of required permissions to be enforced. Bug: 21852542 Change-Id: I27c9130e8f004b428452501ebc8a36aabde1f343
* | | | | BatteryStats: Fix deadlockAdam Lesinski2015-07-151-2/+6
|/ / / / | | | | | | | | | | | | | | | | Bug:22486756 Change-Id: I20e10cc344b128bfa156c5aada93d3fb2b0fcaa3
* | | | Merge "Revert "Allow array of required permissions in sendBroadcast"" into ↵Fyodor Kupolov2015-07-143-121/+95
|\ \ \ \ | | | | | | | | | | | | | | | mnc-dev
| * | | | Revert "Allow array of required permissions in sendBroadcast"Fyodor Kupolov2015-07-143-121/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b4e7283c9afd9fb15ebd63f6ce9b75c9c1af658b. Change-Id: Ie8390964bda5bdfa869cee8f46584043d8e7c664
* | | | | Merge "Allow array of required permissions in sendBroadcast" into mnc-devFyodor Kupolov2015-07-143-95/+121
|\ \ \ \ \ | |/ / / /
| * | | | Allow array of required permissions in sendBroadcastFyodor Kupolov2015-07-143-95/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added Context.sendBroadcast(Intent intent, String[] receiverPermissions) method, which allows an array of required permissions to be enforced. Bug: 21852542 Change-Id: I3b8ff258fa9f3249c344bb8093b820b24eef00c0
* | | | | Merge "Clear binder id when determining external storage state" into mnc-devSvetoslav2015-07-141-2/+9
|\ \ \ \ \
| * | | | | Clear binder id when determining external storage stateSvetoslav2015-07-141-2/+9
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | bug:22472435 Change-Id: I5badd51cb9fb2244395880eb1bbff8f4aa0abb8c
* | | | | Merge "Allow notification strings to be unredacted in dump output." into mnc-devDan Sandler2015-07-142-29/+49
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Allow notification strings to be unredacted in dump output.Dan Sandler2015-07-102-29/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This won't happen automatically and unredacted strings will still not appear in bugreports, but if you are attached via adb you can now do `dumpsys notification --unredact` to get the contents of String/CharSequence fields and extras emitted along with the rest of the dump. The arg handling is also improved so that multiple filters can be specified at once, e.g. --package (was "p") to restrict to a single package, and --stats to get JSON output. Bug: 20451514 Change-Id: I37fc5ce86c7e28e8f8286917f6764d64bc081108
* | | | | Merge "Add checks for READ_PRIVILEGED_PHONE_STATE." into mnc-devAmit Mahajan2015-07-141-4/+10
|\ \ \ \ \
| * | | | | Add checks for READ_PRIVILEGED_PHONE_STATE.Amit Mahajan2015-07-141-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Callers will have either PRIVILEGED or regular READ_PHONE_STATE. Bug: 22468536 Change-Id: I60251f61250a975f4147b027d2539824a728e3b5
* | | | | | Merge "Log NetworkRequestInfo to get more detailed history" into mnc-devErik Kline2015-07-141-12/+27
|\ \ \ \ \ \
| * | | | | | Log NetworkRequestInfo to get more detailed historyErik Kline2015-07-141-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 21641983 Bug: 22235775 Bug: 22299819 Bug: 22358164 Change-Id: I48a2d162dd499a3590f06d805267a63822856969
* | | | | | | Fix buildSvet Ganov2015-07-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2c97e405eaec7ee1569fcddc872ff2a98c829efe
* | | | | | | Merge "Teach storage appops." into mnc-devSvet Ganov2015-07-144-49/+149
|\ \ \ \ \ \ \
| * | | | | | | Teach storage appops.Svet Ganov2015-07-134-49/+149
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For modern apps targeting M SDK and up the external storage state is deterined by granted permissions. For apps targeting older SDK the storage access is determined by app ops correspning to the storage permissions as the latter are always granted. When app ops change we do not remount as we kill the app process in both cases enabling and disabling an app op since legacy code is not prepared for dynamic behavior where an operation that failed may next succeed. Hence, we remount when we start the app. For modern apps we don't kill the app process on a permission grant, therefore we synchronously remount the app storage. bug:22104923 Change-Id: I601c19c764a74c2d15bea6630d0f5fdc52bf6a5a
* | | | | | | Merge "Default browser should not supersede intent filter priorities" into ↵Christopher Tate2015-07-141-16/+33
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | mnc-dev
| * | | | | | | Default browser should not supersede intent filter prioritiesChristopher Tate2015-07-131-16/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 22304850 Change-Id: Ie4deffea2621fdc03a9bfe35690ecd109eed1a04
* | | | | | | | Merge "Check signatures of privileged persistent apps for granting defailt ↵Svet Ganov2015-07-141-7/+12
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | permissions" into mnc-dev
| * | | | | | | Check signatures of privileged persistent apps for granting defailt permissionsSvet Ganov2015-07-101-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:22391058 Change-Id: I56d060f0435fadf87a8cf255ea887dd5b3903821