summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-4.2.2_r1' of ↵Steve Kondik2013-02-151-1/+8
|\ | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/native into 1.1 Android 4.2.2 release 1 Conflicts: libs/ui/GraphicBufferAllocator.cpp Change-Id: Id60a6580bf5a3ba04f8e1e2b1b950e0b93888166
| * bugreport: Add /proc/interrupts dumpDmitry Shmidt2012-11-071-0/+3
| | | | | | | | | | | | | | Bug: 7301178 Change-Id: Ifad3b981ac904d4637d69dfc223d5bb2c9d80bda Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
| * bugreport: Add wlan FW counters dump for bcmdhdDmitry Shmidt2012-11-071-1/+5
| | | | | | | | | | | | | | Bug: 7494877 Change-Id: I4d24dbcf7596777ec02ab1312c2ab996ba7688f1 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | dumpstate: Squash fixes from CM 10.0Mike Kasick2012-12-121-3/+29
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit ba3723de8d13126027706bbbe6f9657da231b9bd Author: Mike Kasick <mike@kasick.org> Date: Wed Oct 31 20:31:05 2012 -0400 dumpstate: Fix calls to su to specify a shell command Superuser's su requires that shell commands be specified with the "-c" option. Fix calls to su to explicitly specify this option. commit 78cd73fce82fd0b5ee98a6136c847932ba8c636b Author: Mike Kasick <mike@kasick.org> Date: Wed Oct 31 18:53:58 2012 -0400 dumpstate: Skip subsequent showmaps if the first run fails. dumpstate takes over six minutes to run as each call to "su" (which dumpstate uses opportunistically on states that require root privileges to access) takes approximately one second to process. The vast majority of these "su" calls are made to "showmap", which is called for every running process. These calls nearly always fail, either because dumpstate is denied root access, or because "showmap" isn't installed. This greatly speeds up the dumpstate process by skipping subsequent "showmap" attempts if the first run (on process init) fails. Change-Id: Ibdfa996afff541dc30251da7ab01ac4987ae2ebc
* dumpstate: add kernel memory fragmentation unusable indexColin Cross2012-10-281-0/+1
| | | | | | | | Dump /d/extfrag/unusable_index in bugreports. It shows the percentage of memory in each zone that is not available for allocations for each order. Change-Id: I2af6680cb609887ea7b3d6107d1aa88bd0206b52
* Include Global table in bugreports.Jeff Sharkey2012-10-011-1/+1
| | | | | Bug: 7257648 Change-Id: I84c7230fd115cf9d7269bc5367026b52cbcc86ac
* Merge "Use a named constant rather than a magic number." into jb-mr1-devElliott Hughes2012-09-171-1/+2
|\
| * Use a named constant rather than a magic number.Elliott Hughes2012-09-171-1/+2
| | | | | | | | Change-Id: I86e8c91c6f5628df3eec38faf28598cc8cef2ea3
* | am e917bfbd: am 09a22fc2: Merge "Allow disable of dumpstate vibrate"jp abgrall2012-09-171-5/+11
|\ \ | |/ |/| | | | | * commit 'e917bfbd19c265ef09c90f93f5dc175fc62259f5': Allow disable of dumpstate vibrate
| * Allow disable of dumpstate vibrateJohn Michelau2012-09-171-5/+11
| | | | | | | | Change-Id: I747b757f4b5e2d6a472b7b2a19f8c1ca8a4b7fdd
* | Add stack dump from drmserver process to bugreportsJames Dong2012-09-101-0/+1
| | | | | | | | | | | | | | | | This would be helpful tracking down ANR issues in drmserver o related-to-bug: 7132419 Change-Id: I7eceaa0c29af26bd0092110be6bddf8f4c063545
* | add /d/sync to dumpstateMathias Agopian2012-08-081-0/+1
| | | | | | | | Change-Id: I24f8f3e0420c2198ae3981fc067fb660898655e8
* | move sensorservice from frameworks/base to frameworks/nativeMathias Agopian2012-06-282-0/+44
| | | | | | | | | | | | this commit also imports all of sensorservice history. Change-Id: Iadffcc92be600c48175b8afadcb15b6648532b3f
* | am 4f0dfaa7: am 9be7caf3: Merge "Include stack traces for certain native ↵Jeff Brown2012-06-084-38/+82
|\ \ | |/ | | | | | | | | | | processes in bugreport." into jb-dev * commit '4f0dfaa7c338870eb58d96fe40234505734db728': Include stack traces for certain native processes in bugreport.
| * Include stack traces for certain native processes in bugreport.Jeff Brown2012-06-084-38/+82
| | | | | | | | | | Bug: 6615693 Change-Id: I64c3b3ce0bba62d9c332a795f7d979fb753dc27b
* | dumpstate: handle old style "adb bugreport"Nick Kralevich2012-06-061-36/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When "adb bugreport" was run on previous adb releases, it called "adb shell dumpstate". In later versions of Android, this was changed to "adb shell bugreport", which starts the dumpstate service. Modify the dumpstate command so that it calls bugreport when it's not running as root. This allows both "adb shell dumpstate" and "adb shell bugreport" to have the exact same output. Bug: 6391938 Change-Id: Ia32bb9ebc579db3bee7caa0fe66dc3f124d60a12
* | dumpstate: Add kernel wakeup sources infoTodd Poynor2012-05-221-0/+1
|/ | | | Change-Id: I0f95afd6815c1403d8400a18ef3cd19d936d4601
* Dump packages.xml as root.Jeff Sharkey2012-05-171-1/+1
| | | | | Bug: 6501151 Change-Id: Ied638bdbe9ed6fbf749a44de8ac1f9d4167829c1
* dumpstate: collect xtables based iface stats, update iptables info.JP Abgrall2012-05-161-2/+5
| | | | | | | | The newer kernels now have /proc/net/xt_qtaguid/iface_stat_fmt. Add the extra iptables output and remove ip6tables for nat which doesn't exist. Change-Id: I819c707b337a707ca0acd87d9ab38cd68ca0f36c
* Ignore SIGPIPE is some of the tools used via bugreportJP Abgrall2012-05-112-0/+3
| | | | | | | | | | | adb bugreport > b & sleep 5; kill $? will show that a bunch of tools will SIGPIPE when trying to output data which is normal. We don't have a way on linux (bsd yes), to set NOSIGPIPE on the file desc passed down via fork/exec. Bug: 6447319 Change-Id: I25b30a823addcff89d252f162d0a07035d4fdd3f
* SF doesn't need more than a few binder threadsMathias Agopian2012-04-191-0/+3
| | | | Change-Id: Ic4659fb81f9990cc7caf84a496a8ae659a1d16a9
* Add sdcard_r group to dumpstate.Jeff Sharkey2012-04-111-1/+2
| | | | | Bug: 6321962 Change-Id: I318cd88493396f3d8adb5d4d0fc7a12ee40ba737
* dumpstate: don't follow symlinks when creating /data/anr/traces.txtNick Kralevich2012-04-061-1/+1
| | | | | | | | Make Android more robust against symlink attacks when /data/anr is world-writable. Bug: 5614000 Change-Id: I9a7e4c4ec9aa4300ac30a968db0dcd276f364ab6
* Ensure that /data/anr/traces.txt is world-writableNick Kralevich2012-04-061-0/+7
| | | | | | | | | | | | The umask changed for init. We have to force /data/anr to be world readble and /data/anr/traces.txt to be world writable so dalvik processes can write to it. Hopefully this is a short term change while we investigate tightening up these permissions. Bug: 6300296 Change-Id: Iacb4c9f1bc69d2ac679697f9cf9a52694f888489
* move dumpstate and dumpsys from frameworks/base to frameworks/nativeColin Cross2012-03-268-0/+1297
| | | | Change-Id: I8a5318022ce5cd3e7c8055f21fe5da74639aa6c0
* Move keystore to system/security repoKenny Root2012-02-156-1333/+0
| | | | | | | Move keystore to system/security at revision a91203b08350b2fc7efda5b1eab39e7541476b3a Change-Id: I7dbd625b864e9c63489b08e9fd28dfb22da81072
* Merge "Fix build warnings"Glenn Kasten2012-02-131-1/+1
|\
| * Fix build warningsGlenn Kasten2012-01-111-1/+1
| | | | | | | | Change-Id: Ia5b8da2cfed7ae02c9e8e03e8bae22b2a68684a0
* | Some hardening of isolated processes by restricting access to services.Dianne Hackborn2012-02-091-1/+1
|/ | | | | | | | | | | | | | | Services now must explicitly opt in to being accessed by isolated processes. Currently only the activity manager and surface flinger allow this. Activity manager is needed so that we can actually bring up the process; SurfaceFlinger is needed to be able to get the display information for creating the Configuration. The SurfaceFlinger should be safe because the app doesn't have access to the window manager so can't actually get a surface to do anything with. The activity manager now protects most of its entry points against isolated processes. Change-Id: I0dad8cb2c873575c4c7659c3c2a7eda8e98f46b0
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-5/+5
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-061-1/+1
| | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
* Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-041-1/+1
| | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
* Remove the simulator target from all makefiles.Jeff Brown2011-07-111-4/+0
| | | | | | Bug: 5010576 Change-Id: I04d722f258951a3078fe07899f5bbe8aac02a8e8
* Remove more simulator support code.Jeff Brown2011-07-118-1190/+0
| | | | | | Bug: 5010576 Change-Id: Ie6c8665306bf4e822693b76f25c3a0f05c12d42d
* Eliminate single-process mode.Jeff Brown2011-07-081-65/+22
| | | | | | Bug: 5010576 Change-Id: Id450dc83efed4897d1e4ff451530fed14457aace
* Revert "Add keychain user with special keystore access permissions"Brian Carlstrom2011-06-301-1/+0
| | | | | | | | | | | This reverts commit 8c2a1a90a81f04573bfa578eab32f5fd4a30eafb. Conflicts: cmds/keystore/keystore.c Bug:4970237 Change-Id: I626023d695becfada47e5f319b18e0889b766563
* KeyStore: fix test-keystoreChia-chi Yeh2011-06-271-4/+5
| | | | Change-Id: I1dcbd5c3cc7569c397d2480cda76288a9e28cd5c
* KeyStore: allow system user to get secrets from keystore.Chia-chi Yeh2011-06-261-1/+1
| | | | Change-Id: I9cb41344c17fb33e6614a45d46368a9c43e3dce7
* Reinitialize KeyStore::mMasterKey after unlock (and add test-keystore)Brian Carlstrom2011-06-232-0/+273
| | | | | | Bug: 4599735 Change-Id: Iee38a2e2929c45b6405214c9012819da09b273af
* KeyStore.reset changesBrian Carlstrom2011-06-021-3/+1
| | | | | | | | | | | | | restore keystore reset behavior of removing master key. otherwise after reboot keystore has is LOCKED and not UNINITIALIZED cmds/keystore/keystore.cpp when removing password, reset the keystore, so it doesn't remain locked with a now bogus password. core/java/com/android/internal/widget/LockPatternUtils.java Change-Id: If5e0bb50b42599e9ca27a8b91d6cec12528419a1
* Integrating keystore with keyguard (Part 1 of 4)Brian Carlstrom2011-06-015-621/+851
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: frameworks/base keystore rewrite keyguard integration with keystore on keyguard entry or keyguard change KeyStore API simplification packages/apps/Settings Removed com.android.credentials.SET_PASSWORD intent support Added keyguard requirement for keystore use packages/apps/CertInstaller Tracking KeyStore API changes Fix for NPE in CertInstaller when certificate lacks basic constraints packages/apps/KeyChain Tracking KeyStore API changes Details: frameworks/base Move keystore from C to C++ while rewriting password implementation. Removed global variables. Added many comments. cmds/keystore/Android.mk cmds/keystore/keystore.h cmds/keystore/keystore.c => cmds/keystore/keystore.cpp cmds/keystore/keystore_cli.c => cmds/keystore/keystore_cli.cpp Changed saveLockPattern and saveLockPassword to notify the keystore on changes so that the keystore master key can be reencrypted when the keyguard changes. core/java/com/android/internal/widget/LockPatternUtils.java Changed unlock screens to pass values for keystore unlock or initialization policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java policy/src/com/android/internal/policy/impl/PatternUnlockScreen.java KeyStore API changes - renamed test() to state(), which now return a State enum - made APIs with byte[] key arguments private - added new KeyStore.isEmpty used to determine if a keyguard is required keystore/java/android/security/KeyStore.java In addition to tracking KeyStore API changes, added new testIsEmpty and improved some existing tests to validate expect values. keystore/tests/src/android/security/KeyStoreTest.java packages/apps/Settings Removing com.android.credentials.SET_PASSWORD intent with the removal of the ability to set an explicit keystore password now that the keyguard value is used. Changed to ensure keyguard is enabled for keystore install or unlock. Cleaned up interwoven dialog handing into discrete dialog helper classes. AndroidManifest.xml src/com/android/settings/CredentialStorage.java Remove layout for entering new password res/layout/credentials_dialog.xml Remove enable credentials checkbox res/xml/security_settings_misc.xml src/com/android/settings/SecuritySettings.java Added ability to specify minimum quality key to ChooseLockGeneric Activity. Used by CredentialStorage, but could also be used by CryptKeeperSettings. Changed ChooseLockGeneric to understand minimum quality for keystore in addition to DPM and device encryption. src/com/android/settings/ChooseLockGeneric.java Changed to use getActivePasswordQuality from getKeyguardStoredPasswordQuality based on experience in CredentialStorage. Removed bogus class javadoc. src/com/android/settings/CryptKeeperSettings.java Tracking KeyStore API changes src/com/android/settings/vpn/VpnSettings.java src/com/android/settings/wifi/WifiSettings.java Removing now unused string resources res/values-af/strings.xml res/values-am/strings.xml res/values-ar/strings.xml res/values-bg/strings.xml res/values-ca/strings.xml res/values-cs/strings.xml res/values-da/strings.xml res/values-de/strings.xml res/values-el/strings.xml res/values-en-rGB/strings.xml res/values-es-rUS/strings.xml res/values-es/strings.xml res/values-fa/strings.xml res/values-fi/strings.xml res/values-fr/strings.xml res/values-hr/strings.xml res/values-hu/strings.xml res/values-in/strings.xml res/values-it/strings.xml res/values-iw/strings.xml res/values-ja/strings.xml res/values-ko/strings.xml res/values-lt/strings.xml res/values-lv/strings.xml res/values-ms/strings.xml res/values-nb/strings.xml res/values-nl/strings.xml res/values-pl/strings.xml res/values-pt-rPT/strings.xml res/values-pt/strings.xml res/values-rm/strings.xml res/values-ro/strings.xml res/values-ru/strings.xml res/values-sk/strings.xml res/values-sl/strings.xml res/values-sr/strings.xml res/values-sv/strings.xml res/values-sw/strings.xml res/values-th/strings.xml res/values-tl/strings.xml res/values-tr/strings.xml res/values-uk/strings.xml res/values-vi/strings.xml res/values-zh-rCN/strings.xml res/values-zh-rTW/strings.xml res/values-zu/strings.xml res/values/strings.xml packages/apps/CertInstaller Tracking KeyStore API changes src/com/android/certinstaller/CertInstaller.java Fix for NPE in CertInstaller when certificate lacks basic constraints src/com/android/certinstaller/CredentialHelper.java packages/apps/KeyChain Tracking KeyStore API changes src/com/android/keychain/KeyChainActivity.java src/com/android/keychain/KeyChainService.java support/src/com/android/keychain/tests/support/IKeyChainServiceTestSupport.aidl support/src/com/android/keychain/tests/support/KeyChainServiceTestSupport.java tests/src/com/android/keychain/tests/KeyChainServiceTest.java Change-Id: Ic141fb5d4b43d12fe62cb1e29c7cbd891b4be35d
* Support wrapping app processes to inject debug instrumentation.Jeff Brown2011-05-241-1/+1
| | | | | | Bug: 4437846 Change-Id: I4552501c693716b14714afb5c5248edaca9547ab
* Replace a custom AndroidRuntime::findClass with a more targeted fix.Elliott Hughes2011-04-131-20/+19
| | | | | | | This seems simpler and more contained, and I think the comment explaining why hoop-jumping is necessary is a bit clearer now. Change-Id: Ief4afd7cbb42188ed835fce23e497520bdb753a8
* Add keychain user with special keystore access permissionsBrian Carlstrom2011-04-081-0/+1
| | | | Change-Id: I02fe5171add62c5cd9f57b01bc137f3bc1cb3a69
* KeyStore: Update the parameters of generating master keys.Chia-chi Yeh2010-10-011-24/+71
| | | | | | | | To improve the security, the parameters to generate the master key has been changed. Special cares has been taken to prevent from permanent damages of the existing data during the transition process. Change-Id: I0c93f3de28a9fcd314932675ccfb65a7f11fa3ff
* KeyStore: Initialize IV correctly.Chia-chi Yeh2010-09-301-1/+1
| | | | Change-Id: Idbf207dfcc11b92e606cbf4fd3732ed7a8aa3416
* KeyStore: Fix the return value when send() or recv() has an error.Chia-chi Yeh2010-09-301-1/+4
| | | | Change-Id: I20a63c76bd29b1a9f8959a6c4fe5a5b8a9a971b4
* added BinderService<> template to help creating native binder servicesMathias Agopian2010-07-141-12/+19
| | | | Change-Id: Id980899d2647b56479f8a27c89eaa949f9209dfe
* move native services under services/Mathias Agopian2010-07-141-1/+1
| | | | | | | | moved surfaceflinger, audioflinger, cameraservice all native services should now reside in this location. Change-Id: Iee42b83dd2a94c3bf5107ab0895fe2dfcd5337a8
* keystore: rephrase the comment to make the usage more clear.Chia-chi Yeh2010-03-171-3/+5
| | | | Change-Id: I529ca7ed443060089c95fe96dd230288be4b6c96