The latest version of the Android platform, deployable to Android-powered devices, includes fixes to the permissions-checking in certain areas of the framework. Specifically, the Android system now properly checks and enforces several existing permissions where it did not do so in the previous release. Because of these changes in enforcement, you are strongly encouraged to test your application against the new Android 1.5 system image included in this SDK, to ensure that it functions normally.
In particular, if your application uses any of the system areas listed below, you should add the required permissions to the application's manifest and then test the areas of your code that depend on the permission-protected services. Even if you believe your application does not use the permissions-protected services, you should compile and test your application under the latest platform version to ensure that users will not encounter problems when using your application.
The changes to permissions are as follows:
- When an application requests access to device camera (through android.hardware.camera), the CAMERA permission check is now properly enforced.
- When an application requests access to device audio capture (through android.media.MediaRecorder), the RECORD_AUDIO permission check is now properly enforced.
For more information, see the issue described in the oCert advisory below:
- The SDK includes a new version of the Google APIs add-on. The add-on provides an updated com.google.android.maps external library that fixes compile errors related to certain classes such as GeoPoint. For information about the Google APIs add-on and the library it provides, see:
- The SDK add-on architecture now lets device manufacturers specify a USB Vendor ID in their add-ons.
- The android tool provides a new command that scans SDK add-ons for their USB Vendor IDs and makes them available to adb (OS X and Linux versions of the SDK only). The command is android update adb. On Windows versions of the SDK, a custom USB driver is included that supports the "Google" and "HTC" Vendor IDs, which allow adb to recognize G1 and HTC Magic devices. For other devices, contact the device manufacturer to obtain a USB driver, especially if you have an SDK add-on that defines a new USB Vendor ID.
- The telephony, sensor, and geo fix issues in the emulator are now fixed.
- When you use adb to uninstall an upgraded application, the Android system now properly restores any permissions that had already been granted to the previous (downgrade) version of the application
$ android update adb $ adb kill-server $ adb start-server