summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* Merge change 6198 into donutAndroid (Google) Code Review2009-07-061-0/+53
|\ | | | | | | | | * changes: keystore: Provide a generic getter for native components.
| * keystore: Provide a generic getter for native components.Chia-chi Yeh2009-07-061-0/+53
| |
* | Add password field for WiFi configuration.Chung-yih Wang2009-07-051-4/+12
|/ | | | | | | 1. the certtool.h is modified for avoiding the side effect, for saving the configuration with wpa_supplicant. 2. put the loadLibrary back in CertTool.java 3. Fix incorrect JNI declarations.
* Two small checks in keymgmt.Chung-yih Wang2009-07-033-1/+10
| | | | | 1. Enforce the state check in listkey(). 2. Enforce the password length check.
* Add a 'wipe' operation to BmgrChristopher Tate2009-07-021-0/+26
| | | | | "bmgr wipe PACKAGE" now issues the backup transport clearBackupData() operation for the given package.
* Remove the null-termination for Java string compatibility.Chung-yih Wang2009-07-021-1/+1
| | | | | | 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.
* Merge change 5615 into donutAndroid (Google) Code Review2009-07-0210-619/+1098
|\ | | | | | | | | * changes: Implement the generic mini-keystore for security.
| * Implement the generic mini-keystore for security.Chung-yih Wang2009-07-0210-619/+1098
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Implement persistent enable/disable of the backup managerChristopher Tate2009-06-291-0/+55
|/ | | | | | | | | Backup & restore is still enabled by default, but with the expectation that it will be enabled during the course of the Setup Wizard or some other privileged entity that has notified the user about the ramifications. While disabled, data-changed notices will still be collected, but no backup pass will be scheduled. When the backup manager is later enabled, any pending data-changed notices will then be processed and the apps invoked for backup.
* Use system properties to track the current transportChristopher Tate2009-06-261-11/+54
| | | | | | | | | | | | | | | This change retools the transport selection mechanism a fair bit. Transports are now specified by name rather than by numeric ID, and the name of the currently selected transport is stored in a persistent system property under the name "persist.service.bkup.trans". The name -> IBackupTransport translation is now handled by maintaining a map from the names to the live IBackupTransport objects that correspond. The Google transport service observer now registers and unregisters the transport as the service goes up and down. The bmgr command has been expanded to include real transport interrogation and selection by name, and some documentation has been written for it.
* Use a long for restore tokenDan Egnor2009-06-261-2/+2
|
* Add some error reporting & info to bmgr's outputChristopher Tate2009-06-261-3/+17
|
* Add some helpful tests scripts for backup and make bmgr restore wait until ↵Joe Onorato2009-06-251-11/+33
| | | | the backup is done.
* Give the bmgr command an IRestoreObserver too.Joe Onorato2009-06-251-2/+13
|
* Fix bug 1829561 ("am profile" with bad filename kills process).Dianne Hackborn2009-06-241-2/+17
| | | | | | | | The am command is now the one that takes care of opening the target file, handling the opened file descriptor to the process that will be profiled. This allows you to send profile data to anywhere the shell can access, and avoids any problems coming up from the target process trying to open the file.
* Use signatures on restoreChristopher Tate2009-06-181-0/+21
| | | | | | | | | | On restore now, the backup manager gets the signature blocks corresponding to the restore set from the transport. It then validates those signatures against the on-device app signatures, and refuses to restore data to an app whose on-device sig block does not match the backup image's. Also actually implement 'bmgr transport N' so that we can select the local transport easily during runtime.
* Merge change 4337 into donutAndroid (Google) Code Review2009-06-163-72/+235
|\ | | | | | | | | * changes: Change the keystore APIs.
| * Change the keystore APIs.Chung-yih Wang2009-06-173-72/+235
| | | | | | | | | | 1. simplify the keypair selection in UI. 2. add the user certificate and key into the keystore for keygen feature.
* | checkpoint BackupDatAInput / RestoreHelperJoe Onorato2009-06-161-24/+5
| |
* | More bmgr work; fix clear-data signallingChristopher Tate2009-06-161-5/+49
|/ | | | | | The 'list sets' and 'restore token#' commands from bmgr now do what they are supposed to. At this point we see the restore target's data being cleared properly and its agent being launched and invoked for restore.
* Revert "dumpstate: Temporarily disable dumping /proc/slabinfo to avoid ↵Mike Lockwood2009-06-161-4/+0
| | | | | | kernel crash." This reverts commit 666c11d13fbf7b8e0502d44a94ffa00597ce92eb.
* Sketch out a 'bmgr' command line toolChristopher Tate2009-06-155-0/+379
| | | | | Not finished, but eventually will allow adb shell access to the Backup Manager for testing purposes etc.
* Merge change 3940 into donutAndroid (Google) Code Review2009-06-111-0/+4
|\ | | | | | | | | * changes: dumpstate: Temporarily disable dumping /proc/slabinfo to avoid kernel crash.
| * dumpstate: Temporarily disable dumping /proc/slabinfo to avoid kernel crash.Mike Lockwood2009-06-111-0/+4
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Provide the Keystore feature in the framework.Chung-yih Wang2009-06-112-20/+27
|/ | | | | -- added the keystore library for Java application. -- changed the marshalling of the keystore function return.
* Merge change 3427 into donutAndroid (Google) Code Review2009-06-094-0/+467
|\ | | | | | | | | * changes: First version of the keystore service.
| * First version of the keystore service.Chung-yih Wang2009-06-084-0/+467
| | | | | | | | | | | | | | | | | | | | | | | | The keystore service is protected by the user 'keystore'. Only keystore user/group can access the key content. All users are able to do the following commands from shell as well: listcerts listuserkeys installcert removecert installuserkey removeuserkey
* | Merge change 3184 into donutAndroid (Google) Code Review2009-06-041-1/+1
|\ \ | | | | | | | | | | | | * changes: The '-D' option for the 'am' command appears to be optional, so reflect that in the usage.
| * | The '-D' option for the 'am' command appears to be optional, so reflect that ↵Marco Nelissen2009-06-041-1/+1
| |/ | | | | | | in the usage.
* | rename a few files to camel-case, add copyright noticesMathias Agopian2009-06-041-1/+16
|/
* Define TARGET_CPU_ABI for finding native code in .apksDianne Hackborn2009-05-221-0/+3
|
* Merge change 2336 into donutAndroid (Google) Code Review2009-05-221-1/+2
|\ | | | | | | | | * changes: dumpstate: Add to AID_SDCARD_RW group to fix saving bugreports to the SD card.
| * dumpstate: Add to AID_SDCARD_RW group to fix saving bugreports to the SD card.Mike Lockwood2009-05-221-1/+2
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Merge change 2230 into donutAndroid (Google) Code Review2009-05-221-2/+2
|\ \ | |/ |/| | | | | * changes: runtime: Add CAP_SYS_NICE to the system server capabilities list so it can (eventually) move arbitrary threads into different cgroups
| * runtime: Add CAP_SYS_NICE to the system server capabilities list so itSan Mehat2009-05-211-2/+2
| | | | | | | | | | | | can (eventually) move arbitrary threads into different cgroups Signed-off-by: San Mehat <san@google.com>
* | split boot animation out of SurfaceFlingerMathias Agopian2009-05-214-0/+410
|/ | | | | | Conflicts: data/etc/platform.xml
* this might fix the buildJoe Onorato2009-05-201-1/+1
|
* Hook up the backup data writer, and add a utility to read the backup data files.Joe Onorato2009-05-203-0/+327
|
* Fix issue where apps could prevent the user from going home.Dianne Hackborn2009-05-191-15/+25
| | | | | | | | | | 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.
* Add intent for gservices override, and handle empty arguments properlyDan Egnor2009-05-151-1/+1
| | | | in the "am" utility.
* Implement issue #1783881 (manifest option for adb-install-only apps)Dianne Hackborn2009-05-121-19/+25
| | | | | | | | | | | You can now use android:testOnly="true" to not allow your .apk to be installed as a normal app. The only way to do so is with the pm command and giving the -t option, which sets a new INSTALL_ALLOW_TEST flag when installing. I also used this to clean up the install API... actually, mostly to hide it, since it is not accessible to apps so shouldn't be in the SDK. We will be doing some more work on it, so this will prevent adding yet another backwards-compatibility-for-no-reason version.
* PackageManager keeps track of who installed what.Jacek Surazski2009-05-121-2/+12
| | | | Stores the package name of the installer app in packages.xml
* Implement targetSdkVersion and maxSdkVersion, plus version code names.Dianne Hackborn2009-05-081-0/+3
| | | | | | | | This adds new attributes for specifying a targetSdkVersion and maxSdkVersion. There is a new ApplicationInfo flag that is set if the application has set its targetSdkVersion to the current platform or later. Also you can now use a string for minSdkVersion and targetSdkVerion, to indicate you are building against a development tree instead of an official platform.
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-181-5/+8
|
* auto import from //branches/cupcake_rel/...@138607The Android Open Source Project2009-03-132-3/+3
|
* auto import from //depot/cupcake/@136745The Android Open Source Project2009-03-051-1/+47
|
* auto import from //depot/cupcake/@136594The Android Open Source Project2009-03-052-1/+13
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0370-0/+8832
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0370-8832/+0
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-192-13/+31
|