summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Fix backup agent unbindChristopher Tate2009-06-041-40/+1
| | | | | | | The handwritten binder transaction passing wasn't propagating the agent-destroy transaction to the client side. Oops. Also, remove obsolete run-one-agent code from the backup manager service.
* More backup workChristopher Tate2009-06-032-61/+233
| | | | | | | | | | | | | | | | | | | | * Put in some permission enforcement around agent connection notification and full-backup scheduling. * Full backup now applies to any package, not just backup participants who have declared their own android:backupAgent * The process of running the backup operation on the set of apps who have been queued for it is now done in a separate thread, with a notification mechanism from the main Backup Manager service to pass along new-agent binding knowledge. There's no longer one do-backup message on the primary Handler per target application. * The new backup thread sets up the desired transport now and passes along the newly backed-up data to it for each backup target. Two transports have been defined so far, GoogleTransport and AdbTransport; both are stubs at present. Note that at present the backup data output file seems to be properly created, but after doBackup() is called on the test app's agent it's still zero size.
* Merge change 3094 into donutAndroid (Google) Code Review2009-06-031-0/+1
|\ | | | | | | | | * changes: Grant permissions to older package when deleting an updated system application. When a system app gets updated, the permissions are granted to the new pkg. Similary when this updated pkg(from data partition) gets removed, the older pkg from system partition is restored. but the permissions are'nt being granted explicitly and so the restore fails. This fix addresses specific bugs related to uninstall of updated system apps. These code paths will be revisited later but this fix is needed for OTA's that might fall back to older versions of system apps.
| * Grant permissions to older package when deleting an updated system application.Suchi Amalapurapu2009-06-031-0/+1
| | | | | | | | | | | | | | When a system app gets updated, the permissions are granted to the new pkg. Similary when this updated pkg(from data partition) gets removed, the older pkg from system partition is restored. but the permissions are'nt being granted explicitly and so the restore fails. This fix addresses specific bugs related to uninstall of updated system apps. These code paths will be revisited later but this fix is needed for OTA's that might fall back to older versions of system apps.
* | * Moved supports-density tag under manifestMitsuru Oshima2009-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Refactored Compatibility code * Added CompatibilityInfo class * Removed getApplicationScale from Context * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context * Expandable support * Added expandable tag under manifest * Old application w/o expandable is given the default screen size ([320, 480] x density). * The non-expandable window is centered.
* | Track activity foreground CPU usage for battery stats.Amith Yamasani2009-06-033-2/+48
|/ | | | | | | Track the foreground CPU time of an activity so that we can tell if apps are spending more time in the background compared to foreground. Update power profile values for screen backlight and GPS. Fix some javadoc bugs (milliseconds vs. microseconds).
* Adding internal method replacePreferredActivity.Satish Sampath2009-06-031-0/+37
| | | | | | | | | | This was required because we need a way to set the preferred activity for a particular intent filter based on user selection (in our case the ACTION_WEB_SEARCH intent filter for selecting the preferred search engine from the list of available search engines providers). The current addPreferredActivity call was not sufficient since it leaves the existing preferred activities in the list and does not remove them, which this call does.
* TODO's from Teleca with modifications from wink.Wink Saville2009-06-011-22/+6
|
* base: Rename WRITE_SDCARD -> WRITE_EXTERNAL_STORAGESan Mehat2009-06-011-1/+1
| | | | Signed-off-by: San Mehat <san@google.com>
* Retool the backup process to use a new 'BackupAgent' classChristopher Tate2009-05-313-95/+356
| | | | | | | | | | | | | | | Backups will be handled by launching the application in a special mode under which no activities or services will be started, only the BackupAgent subclass named in the app's android:backupAgent manifest property. This takes the place of the BackupService class used earlier during development. In the cases of *full* backup or restore, an application that does not supply its own BackupAgent will be launched in a restricted manner; in particular, it will be using the default Application class rather than any manifest-declared one. This ensures that the app is not running any code that may try to manipulate its data while the backup system reads/writes its data set.
* Enforce permissions for PhoneStateListener events.Jaikumar Ganesh2009-05-291-23/+35
| | | | | | | | PhoneStateListener events like LISTEN_CALL_STATE_CHANGED, have privacy information like phone numbers and hence, need to be protected with a permission. The permission READ_PHONE_STATE is used for this purpose. Use the permission trick to ensure backward compatability.
* Fix wifi multicast API for public use.Robert Greenwalt2009-05-281-4/+10
| | | | Applying API review comments and taking it public.
* Activity Manager changes the scheduling group of processes.Dianne Hackborn2009-05-262-3/+33
| | | | | | | | | | | | The algorithm for this is currently very simple: all persistent processes are always in the normal scheduling group, all other processes are normal if their oom_adj is as good or better than VISIBLE, otherwise they are in the background group. Note that this currently results in a fair number of log messages about not being able to change the group, since the system process does not have permission to do so. Once a kernel fix is in, these will go away and the code will start working.
* Sensors: Use a native_handle for the data channel instead of a single file ↵Mike Lockwood2009-05-232-20/+63
| | | | | | | | | descriptor. This eliminates the requirement that all sensors share a single file descriptor. This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Merge change 2364 into donutAndroid (Google) Code Review2009-05-221-0/+28
|\ | | | | | | | | * changes: Initial checkin for App Fuel Gauge infrastructure.
| * Initial checkin for App Fuel Gauge infrastructure.Amith Yamasani2009-05-221-0/+28
| | | | | | | | | | This adds the PowerProfile class and data file that provides power consumption numbers for different subsystems. Also added Audio/Video subsystems to track on a per UID basis.
* | Define TARGET_CPU_ABI for finding native code in .apksDianne Hackborn2009-05-221-20/+27
| |
* | location: Replace ILocationCollector interface with new ILocationProvider methodMike Lockwood2009-05-211-29/+8
|/ | | | | | | | | | | | This change replaces ILocationCollector with a more general mechanism that passes locations received from a provider to all other providers. The network location provider now uses this to implement the location collector. In the future, this could be used to inject network locations to the GPS as aiding data. This change also removes the now obsolete permission INSTALL_LOCATION_COLLECTOR. Signed-off-by: Mike Lockwood <lockwood@android.com>
* Hook up the backup data writer, and add a utility to read the backup data files.Joe Onorato2009-05-201-6/+15
|
* Merge change 2017 into donutAndroid (Google) Code Review2009-05-201-14/+14
|\ | | | | | | | | * changes: Increment BatteryStatsImpl's VERSION. That'll make it stop trying to interpret older records with the new format. Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
| * Increment BatteryStatsImpl's VERSION.Robert Greenwalt2009-05-191-14/+14
| | | | | | | | | | That'll make it stop trying to interpret older records with the new format. Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
* | ActivityManagerService sends bug reports on crashes and ANRsJacek Surazski2009-05-204-11/+184
| | | | | | | | | | | | | | If an installerPackageName was specified when the app was installed, looks for a receiver of ACTION_APP_ERROR in that package. If found, this is the bug report receiver and the crash/ANR dialog will get a "Report" button. If pressed, a bug report will be delivered.
* | Fix issue where apps could prevent the user from going home.Dianne Hackborn2009-05-193-28/+254
|/ | | | | | | | | | Now we have a 5-second time after home is pressed, during which only the home app (and the status bar) can switch to another app. After that time, any start activity requests that occurred will be executed, to allow things like alarms to be displayed. Also if during that time the user launches another app, the pending starts will be executed without resuming their activities and the one they started placed at the top and executed.
* Telephony: Allow getCellLocation() if client has permission ACCESS_FINE_LOCATIONMike Lockwood2009-05-191-3/+7
| | | | | | | ACCESS_FINE_LOCATION should imply ACCESS_COARSE_LOCATION, so either of these permissions should be sufficient to allow TelephonyManager.getCellLocation(). Signed-off-by: Mike Lockwood <lockwood@android.com>
* Minor performance improvement when filtering intents by package.Mihai Preda2009-05-191-1/+6
| | | | Don't consider the activities that have no intent filters.
* Merge change 1579 into donutAndroid (Google) Code Review2009-05-183-184/+461
|\ | | | | | | | | * changes: Teleca 2b changes
| * Teleca 2b changesWink Saville2009-05-183-184/+461
| |
* | Merge change 1881 into donutAndroid (Google) Code Review2009-05-181-2/+14
|\ \ | | | | | | | | | | | | * changes: WifiService: Wifi power management change
| * | WifiService: Wifi power management changeMike Lockwood2009-05-181-2/+14
| |/ | | | | | | | | | | | | | | | | | | | | Put Wifi into an idle state immediately if the screen is turned off and the Wifi interface has no IP address. We will continue to keep Wifi up for 15 minutes in the case where the screen is turned off when Wifi is fully connected. This will allow us to go into a low power mode faster when Wifi is not actively being used. It also avoids bringing up Wifi if the user just turns on the screen for a few seconds to check the clock, etc. Fixes bug b/1736920 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Add a new window flag to display a window when keyguard is shown.Suchi Amalapurapu2009-05-181-3/+0
| |
* | remove unused ContentResolver parameter from IntentResolver.queryIntent.Mihai Preda2009-05-183-26/+14
|/
* Implement compatibility support for WRITE_SDCARD permission.Dianne Hackborn2009-05-151-1/+18
| | | | | | | | | | | Now old applications will automatically be granted it. Also renamed it from SDCARD_WRITE to WRITE_SDCARD to be consistent with our other permissions, and re-arranged how we do targetSdkVersion to actually be usuable for this kind of stuff. Note that right now this results in basically all apps being given the WRITE_SDCARD permission, because their targetSdkVersion is not set. I will be dealing with that in a future change.
* Allow intent resolution to be constrained by package name.Mihai Preda2009-05-152-4/+62
|
* Accessibility feature - framework changes (replacing 698, 699, 700, 701 and ↵svetoslavganov2009-05-143-10/+709
| | | | merging with the latest Donut)
* Merge change 1590 into donutAndroid (Google) Code Review2009-05-142-18/+131
|\ | | | | | | | | * changes: Add wifi multicast filter api (enable/disable). Fixes 1833432. Automatically re-disables any request when the app exits/crashes. Also hooked into Battery Stats for power managment analysis.
| * Add wifi multicast filter api (enable/disable).Robert Greenwalt2009-05-132-18/+131
| | | | | | | | | | Fixes 1833432. Automatically re-disables any request when the app exits/crashes. Also hooked into Battery Stats for power managment analysis.
* | Merge changes 1591,1596 into donutAndroid (Google) Code Review2009-05-141-5/+3
|\ \ | | | | | | | | | | | | | | | * changes: Add a new feature to android.os.Debug to add the ability to inject only specific fields when calling setFieldsOn(). Fixes #1836075. Adds consistency checks for the View hierarchy. To enable them, you need a debug build and ViewDebug.sConsistencyCheckEnabled set to true in debug.prop. This change also lets you easily enable drawing and layout profiling in ViewRoot by setting ViewRoot.sProfileDrawing, ViewRoot.sProfileLayout and ViewRoot.sShowFps in debug.prop with a debug build.
| * | Fixes #1836075. Adds consistency checks for the View hierarchy. To enable ↵Romain Guy2009-05-131-5/+3
| | | | | | | | | | | | them, you need a debug build and ViewDebug.sConsistencyCheckEnabled set to true in debug.prop. This change also lets you easily enable drawing and layout profiling in ViewRoot by setting ViewRoot.sProfileDrawing, ViewRoot.sProfileLayout and ViewRoot.sShowFps in debug.prop with a debug build.
* | | Get the backup calling through to the file backup helper.Joe Onorato2009-05-141-0/+3
| | | | | | | | | | | | | | | This includes some cleanup to make the parameters match between BackupService.onBackup and FileBackupHelper.performBackup.
* | | am 5d6d773: AI 148824: Fix issue #1851541 (sharedUserId requests not beiDianne Hackborn2009-05-131-0/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Merge commit '5d6d773fab559fdc12e553d60d789f3991ac552c' into donut * commit '5d6d773fab559fdc12e553d60d789f3991ac552c': AI 148824: Fix issue #1851541 (sharedUserId requests not being checked for matching signatures on .apk).
| * | AI 148824: Fix issue #1851541 (sharedUserId requests not being checked for ↵Dianne Hackborn2009-05-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | matching signatures on .apk). To address issues where we could leave half-installed applications around if there was a failure during the install, we split getPackageLP() into two phases: the first would create the record, and only after doing all verification checks would we call insertPackageSettingLP() to do the remaining part of the original implementation and actually insert the record into the data structures. Unfortunately it was only in insertPackageSettingLP() that we would set the sharedUser field of the PackageSetting structure, so when before that we went to verify certificates, we didn't think it had requested a shared user ID, and let it through without checking. This fix simply sets the sharedUser field when the PackageSetting structure is first created, so we will actually check against its certs. We still also set this again in insertPackageSettingLP(), but there is no harm in this because the only time we call this function is in that big install func, which just passes in the same shared user that it had when first getting the package. BUG=1851541 Automated import of CL 148824
| * | AI 144256: Need to show opt-in screen for location collection.Amith Yamasani2009-04-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a screen to the setup wizard, after login, to ask user to opt-in for location collection. Added a dialog to Settings when user turns on Network location. Fixed a security permission issue in LocationManagerService related to this change. BUG=1752566 Automated import of CL 144256
| * | AI 143896: Fix issue #1748954 and #1737952:Dianne Hackborn2009-03-311-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #1748954 (New status bar fades into all white background): FrameLayout wasn't updating its foreground drawable when its padding changed, which would happen as the status bar is shown and hidden. To fix this I also ended up fixing a problem in the view debug stuff where we couldn't get a bitmap for a view that is the full screen size because it is too big... actually I just went ahead and added another function to snapshot the view hierarchy which works a lot better for us anyway. #1737952 (Home screen icons overlap with the notification bar after exiting any camera app): Originally I punted this because it only happened in rare situations, but now that home is always portrait it happens a lot more so it is more important to fix. This involved a few things to clean up hiding/showing the status bar: - We now determine when to hide and show it during layout, which allows us to do this at the time it is actually needed rather than during animation after we can actually catch it for the initial display of a window. This required tweaking the layout API so the policy can request a second layout pass if needed. - When doing layout, we are now much more aggressive about skipping the layout of windows. Basically anything that we know will be hidden in the near future is ignored for layout, so that it doesn't glitch as it is transfered out of the screen. The theory being that it is better to leave it as it was originally placed while we are transitioning it out, than to switch it to something slightly more correct. BUG=1748954,1737952 Automated import of CL 143896
| * | AI 143748: Fix issue #1743326 (More battery stats)Dianne Hackborn2009-03-315-33/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds stats for: - Number of raw user events that have happened in the system. - Number of times user activity has been reported, dividied by UID and type of activity. - Duration of screen brightness levels in 4 buckets. - Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them. BUG=1743326 Automated import of CL 143748
| * | AI 143124: Fix bug #1731826, in which auto-connect to remembered networks ↵Eric Shienbrood2009-03-271-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | does not take place. This has the same underlying cause as bug #1739874, so this fixes that bug as well. The problem was that if the supplicant was in the DORMANT state at the time a scan-only Wi-Fi lock was released, the command to stop the Wi-Fi driver would never be issued. This had two main results: first, the driver would stay awake when the screen was blank and it was supposed to be sleeping, leading to excessive battery drain, and second, when the screen was turned back on, there would be no DRIVER-STARTED event generated (because the driver was already running). The DRIVER-STARTED event is the trigger for the framework to issue a RECONNECT command to the supplicant to cause it leave the DORMANT state and look for available remembered networks. To assist in tracking down this problem, and any such problems in the future, I added four counters to keep track of how many times full and scan-only Wi-Fi locks are acquired and released. The counter values are output in the dump() method of WifiService. While doing this, I noticed that because of missing "break" statements, the battery stats that keep track of how much time Wi-Fi locks are held were including the time for full locks in the time reported for scan-only locks. BUG=1731826,1739874 Automated import of CL 143124
| * | Automated import from //branches/cupcake/...@142879,142879Dianne Hackborn2009-03-261-3/+7
| | |
| * | Automated import from //branches/cupcake/...@142870,142870Dianne Hackborn2009-03-251-14/+10
| | |
| * | Automated import from //branches/cupcake/...@142783,142783Chris Tate2009-03-251-4/+11
| | |
| * | Automated import from //branches/cupcake/...@142651,142651Dianne Hackborn2009-03-252-20/+38
| | |
| * | Automated import from //branches/cupcake/...@142392,142392Dianne Hackborn2009-03-241-33/+49
| | |