2247 Commits

Author SHA1 Message Date
Android (Google) Code Review
4492bcb851 Merge change 6081 into donut
* changes:
  Migrate to the CertTool library.
2009-07-03 18:40:54 -07:00
Android (Google) Code Review
6b1ab2572e Merge change 6187 into donut
* changes:
  Fix strings.
2009-07-03 09:44:29 -07:00
Hung-ying Tyan
0102dc6b22 Fix strings.
* Changes
  + Remove "Up time:" from ongoing event display.
  + Add hint in disconnected notification.
2009-07-04 00:24:48 +08:00
Chung-yih Wang
bf20b9963a Migrate to the CertTool library.
Keystore is reimplemented and it is mainly for storing
(key, value) pair generically. The certificate related
APIs are moved to the class CertTool instead.

Updates:
  Provide the getInstance() which gives the singleton.
  Fix the missing construction of the BIO in cert.c.
2009-07-04 00:22:51 +08:00
Android (Google) Code Review
24ad29c6db Merge change 6177 into donut
* changes:
  Two small checks in keymgmt.
2009-07-03 08:51:59 -07:00
Android (Google) Code Review
7b8f782eaa Merge change 6183 into donut
* changes:
  Fix null data handling in ServiceCommand.writeCommand()
2009-07-03 02:52:55 -07:00
Hung-ying Tyan
116d890aea Fix null data handling in ServiceCommand.writeCommand() 2009-07-03 17:38:59 +08:00
Android (Google) Code Review
2f97e984b5 Merge change 6130 into donut
* changes:
  Make backup agent run in the system process as well.
2009-07-03 00:00:19 -07:00
Android (Google) Code Review
922f1b85b9 Merge change 6146 into donut
* changes:
  Fixing 1949086 Sholes telephony crash after waking from sleep.
2009-07-02 22:39:17 -07:00
Chung-yih Wang
a734207fd1 Two small checks in keymgmt.
1. Enforce the state check in listkey().
2. Enforce the password length check.
2009-07-03 12:14:36 +08:00
Wink Saville
1eee698c3e Fixing 1949086 Sholes telephony crash after waking from sleep. 2009-07-02 20:50:11 -07:00
Charles Chen
4bca97ecaf Removing IPA - IPA is already handled by the phoneme tag. 2009-07-02 17:21:22 -07:00
Android (Google) Code Review
b29f8283d0 Merge change 6155 into donut
* changes:
  Unhide android.speech.tts.TextToSpeech
2009-07-02 16:45:12 -07:00
Jean-Michel Trivi
62788e9b48 Unhide android.speech.tts.TextToSpeech 2009-07-02 16:29:30 -07:00
Android (Google) Code Review
7e8cbfc2bc Merge change 6143 into donut
* changes:
  Fix the simulator.
2009-07-02 15:24:43 -07:00
Marco Nelissen
d595c79cdd Fix the simulator. 2009-07-02 15:23:26 -07:00
Christopher Tate
d23d7f2d12 Add a 'wipe' operation to Bmgr
"bmgr wipe PACKAGE" now issues the backup transport clearBackupData() operation
for the given package.
2009-07-02 14:37:50 -07:00
Android (Google) Code Review
e15df4017c Merge change 6132 into donut
* changes:
  If we can't get the restore set's metadata, don't continue
2009-07-02 14:30:56 -07:00
Christopher Tate
8c0324752a If we can't get the restore set's metadata, don't continue
Without the metadata we can't verify the version number or the signatures of the
apps whose data we'd be trying to restore against the apps present on device.
This is not acceptable; we need to refuse to give data to an unauthenticated
app.
2009-07-02 14:28:47 -07:00
Amith Yamasani
426cc62598 Make backup agent run in the system process as well. 2009-07-02 14:25:21 -07:00
Android (Google) Code Review
fe11ea5e2d Merge change 6126 into donut
* changes:
  Use 'LOCAL_PATH' instead of 'local_path', so it's easier to see a diff of the two .mk files.
2009-07-02 14:20:08 -07:00
Marco Nelissen
632d553580 Use 'LOCAL_PATH' instead of 'local_path', so it's easier to see a diff of the two .mk files. 2009-07-02 14:18:30 -07:00
Android (Google) Code Review
0d81f63687 Merge change 6102 into donut
* changes:
  Backup Wifi supplicant data.
2009-07-02 13:19:55 -07:00
Android (Google) Code Review
9701b3d594 Merge change 5979 into donut
* changes:
  Remove the constraint to assign new uid when code path changes for system packages
2009-07-02 12:20:29 -07:00
Christopher Tate
4e3e50cfa7 Clean up the last two literal permission string usages 2009-07-02 12:14:05 -07:00
Android (Google) Code Review
7c5ae202c5 Merge change 6104 into donut
* changes:
  Add a "clear backed-up data" method to the backup mechanism
2009-07-02 12:10:42 -07:00
Amith Yamasani
16d79e56ca Backup Wifi supplicant data.
WifiService requests a backup when it writes wifi configuration to disk.
Backup the wifi supplicant file when settings provider runs backup.
2009-07-02 12:05:32 -07:00
Android (Google) Code Review
a642e31398 Merge change 6090 into donut
* changes:
  Adding strings for data root and data files - these are needed for returning this information in an Intent from checkVoiceData.
2009-07-02 11:31:14 -07:00
Christopher Tate
ee0e78af5a Add a "clear backed-up data" method to the backup mechanism
It's now possible to ask that the backup manager wipe the saved data for a given
application from the backing store.  LocalTransport implements this now but the
Google backend does not yet.  When the data is wiped, the on-device backup state
is also wiped to ensure that the next backup pushes all necessary data.

Bmgr has not yet been modified to actually call into this method, but it will
be soon.
2009-07-02 11:30:29 -07:00
Charles Chen
99a0feecd0 Adding strings for data root and data files - these are needed
for returning this information in an Intent from checkVoiceData.
2009-07-02 11:29:26 -07:00
Android (Google) Code Review
c7396025e5 Merge change 6084 into donut
* changes:
  Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug 1956726)
2009-07-02 11:00:41 -07:00
Android (Google) Code Review
d3de90f38d Merge change 5995 into donut
* changes:
  Turn off kerning when testing TextUtils.ellipsize().
2009-07-02 10:46:37 -07:00
Android (Google) Code Review
3bc64a2cb9 Merge change 6088 into donut
* changes:
  WifiManager: Limit the number of WifiLocks that can be active simultaneously.
2009-07-02 10:40:33 -07:00
Mike Lockwood
617750604c WifiManager: Limit the number of WifiLocks that can be active simultaneously.
This is to prevent a bad app from using up all the global references in the
system process due to allocating too many DeathRecipients.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-02 13:25:00 -04:00
James Dong
a1b653d41d Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug 1956726) 2009-07-02 10:04:20 -07:00
Android (Google) Code Review
7de4bd9b40 Merge change 6045 into donut
* changes:
  Remove the null-termination for Java string compatibility.
2009-07-02 08:34:35 -07:00
Chung-yih Wang
fa927c046a Remove the null-termination for Java string compatibility.
1. Also change the keyname delimiter in CertTool.java.
2. Return NOTFOUND if the result.len==0 in the listKeys().
3. Define the keystore states in the class Keystore.
2009-07-02 23:08:39 +08:00
Android (Google) Code Review
288fe16c20 Merge change 6043 into donut
* changes:
  System and Secure settings backup.
2009-07-02 05:01:23 -07:00
Amith Yamasani
220f4d633b System and Secure settings backup.
This backs up the basic system and secure settings. THe restoration doesn't
take effect immediately. You many need to restart the runtime to see all
restored values take effect.
2009-07-02 04:58:09 -07:00
Chung-yih Wang
eec11827a6 Add CertTool for handling the keygen and certificate download.
1. Have the new Keystore for mini-keystore impelemntation.
2. Add CertTool library and jni dll for handling keygen and certificates.
3. Make Reply hidden.
4. Revert some 'incorrect' change and correct the description.
2009-07-02 18:56:12 +08:00
Android (Google) Code Review
d45dcbec85 Merge change 5615 into donut
* changes:
  Implement the generic mini-keystore for security.
2009-07-02 00:16:21 -07:00
Chung-yih Wang
70246ebb9b Implement the generic mini-keystore for security.
1. We will progressively migrate to this implementation.
2. For richc to have a quick review on the keymgmt part.
3. Add remove_key and make sure all functions are working.
4. Add permission check for get operation.
5. Return the retry count if unlock failed.
6. Add the reset operation for keystore reset.
7. Add the putfile shell command for putting the key value from file.
8. Fix the boundary issue during parsing command.
9. Use the ' ' as delimiter and reset the reply structure for each request.
10. Add change password retry count check.
11. Extract the read_marshal/write_marshal for certtool.h.
12. Remove the old implementation.
2009-07-02 14:08:20 +08:00
Daisuke Miyakawa
40336782ea Add tests. internal bug id 1868702. 2009-07-02 14:33:39 +09:00
Dianne Hackborn
d7cd29da91 Add facility to run setup wizard after an update.
The system now keeps a tag of the last version (just an arbitrary string)
that the setup wizard was run for.  If this is different than the current
one in the setup wizard, then setup is launched at boot.

This introduces a new intent action for the part of the setup wizard that
gets run for an ungrade, which the system uses to find its current version
tag for comparing against what was last stored.  It is up to the launched
setup activity update the stored setting to reflect its current value,
once it is happy.
2009-07-01 20:20:47 -07:00
Dianne Hackborn
cf098294da Move backup state to settings, change permission checks to use symbol.
This changes the backup service to use the settings provider instead
of system properties, correspondingly making it off by default and
allowing specific devices to define the transport.  Also tweaks
the permission checks to use the permission symbol instead of raw
strings.

This requires some corresponding changes in the vendor projects.
2009-07-01 20:12:36 -07:00
Android (Google) Code Review
2bbb80e183 Merge change 5994 into donut
* changes:
  Less logging in some places.  More in others.
2009-07-01 18:04:40 -07:00
Eric Fischer
1f0dac38df Turn off kerning when testing TextUtils.ellipsize().
Otherwise, the different text measurement methods produce slightly
different results and cause the text to show different results for
Spanned vs. non-Spanned source strings.

Bug 1837826
2009-07-01 18:04:23 -07:00
Joe Onorato
9a5e3e115f Less logging in some places. More in others. 2009-07-01 21:04:03 -04:00
Romain Guy
a54755962c Cleanup a bunch of warnings in app widgets code. 2009-07-01 17:21:12 -07:00
Suchi Amalapurapu
b24a96701a Remove the constraint to assign new uid when code path changes for system packages 2009-07-01 16:16:56 -07:00