summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* Exit immediately on some linklib failuresKenny Root2010-10-211-4/+2
| | | | | | | | If the library couldn't be printed to the string, installd should fail early instead of trying to chmod() back to uninitialized stat struct. Bug: 3121721 Change-Id: I8a3604954ae657a1e07c1ad8d5569aa80aff9e0a
* allow dumpstate to work for non-root users.Nick Kralevich2010-10-211-13/+15
| | | | Change-Id: Iaad4a097f5e09914842955dafbc0a09cc7a1db48
* Merge "Include the framework copy of the OpenMAX headers instead of ↵Andreas Huber2010-10-151-3/+3
|\ | | | | | | referencing external/opencore." into gingerbread
| * Include the framework copy of the OpenMAX headers instead of referencing ↵Andreas Huber2010-10-151-3/+3
| | | | | | | | | | | | | | external/opencore. Change-Id: I762f59acf5e1f770e4d7c2d89af362bfffebefa6 related-to-bug: 3101573
* | NFC: Move NFC service implementation out of system_server.Nick Pelly2010-10-151-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | NFC service is now an application service in packages/apps/Nfc. NFC service is registered through ServiceManager.addService(), and the proxy object NfcAdapter obtains a handle to it through ServiceManager.getService(). **Important** Had to add new symbols AID_NFC / NFC_UID / android.uid.nfc and modify service_manager.c, Process.java and PackageManagerService.java in order to force the com.android.nfc process to take a fixed uid, so that it can use ServiceManager.addService(). Most of the JNI has moved to packages/apps/Nfc/jni. However NdefRecord and NdefMessage require some in-process native code, so android_com_NdefMessage.cpp and android_com_NdefRecord.cpp stay in frameworks/base/core/jni. They link to a very small library libnfc_ndef.so that implements NDEF message parsing. This has been added to core.mk so all devices (even without NFC hardware) can work with NDEF data. Bug: 3041259 Bug: 3097445 Change-Id: If8f00ce8f2053acfc9319ca366d4a9c02bd396e6 Signed-off-by: Nick Pelly <npelly@google.com>
* Symlink application lib directory when on SD cardKenny Root2010-10-073-0/+168
| | | | | | | | This will help legacy games that use dlopen() to directly access the /data/data/<app>/lib directory before the ApplicationInfo.nativeLibraryDir was part of the API. Change-Id: Ie9f3e7239b6334708b5d086ffafe66a507f6d9da
* refactored screenshot codeMathias Agopian2010-10-041-18/+7
| | | | | | | | | | | the core screenshot function now can capture the screen at any lower resolution performing bilinear filtering. we also now have some client code to interface with the screenshot service. it's now possible to request a screenshot at a lower resolution. Change-Id: I33689bba98507ab928d0898b21596d0d2fe4b953
* new screencap commandMathias Agopian2010-10-042-0/+71
| | | | | | | this captures the framebuffer via surfaceflinger APIs and outputs it to stdout. this is intended to be used by adbd. Change-Id: I057e331d28dd92bd45a2c7037ab93e220bbd65f3
* Merge "KeyStore: Update the parameters of generating master keys." into ↵Chia-chi Yeh2010-10-011-24/+71
|\ | | | | | | gingerbread
| * 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
* | Merge "Fix bug #3055578 ("adb shell bmgr list sets" generates NPE and cannot ↵Fabrice Di Meglio2010-10-011-1/+4
|\ \ | |/ |/| | | be run again when device has no account setup)" into gingerbread
| * Fix bug #3055578 ("adb shell bmgr list sets" generates NPE and cannot be run ↵Fabrice Di Meglio2010-10-011-1/+4
| | | | | | | | | | | | | | | | | | again when device has no account setup) - fix NPE - code cleaning Change-Id: Ieb30b666d995de8cbd27ee6d17e2178e7ea670f6
* | 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
* Merge "Squashed commit of the following:" into gingerbreadAndreas Huber2010-09-281-0/+6
|\
| * Squashed commit of the following:Andreas Huber2010-09-271-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 29a4d3effb05a2e074cb0693316ab1977baeb0b6 Author: Andreas Huber <andih@google.com> Date: Mon Sep 27 12:01:32 2010 -0700 Fully working implementation of MPEG2TSWriter (for AAC and AVC sources). Change-Id: I8a32a47565b647bf6c078c520e39565e08ea0d84 commit f4dec4c3899f3be393508e180d6c07e249d3335e Author: Andreas Huber <andih@google.com> Date: Mon Sep 27 10:36:31 2010 -0700 More reliable identification of MPEG2 transport streams. Don't keep scanning forever in case the stream does not have both audio and video tracks. Change-Id: Icc5b4e8be145b2805e8776559546a6818342aea7 commit 4fe3cc942f9b3d3cf54138b828c41214aa916dd2 Author: Andreas Huber <andih@google.com> Date: Mon Sep 27 08:23:39 2010 -0700 test code Change-Id: I16560a17661407d06497f99ff88230724bb898af commit 64d988b24f49f179a90fa677be11c823959e734b Author: Andreas Huber <andih@google.com> Date: Thu Sep 23 14:42:52 2010 -0700 First shot at supporting writing to an MPEG2 transport stream. Change-Id: Ie537939a99fa3ddc0c7661c47c18277584817c74 Change-Id: If78fd034af8f6e8ceac8dbeff96d5ecb3f6b96dc
* | Move SipService out of SystemServer to phone process.Hung-ying Tyan2010-09-281-0/+1
|/ | | | | | | Companion CL: https://android-git/g/#change,70187 http://b/issue?id=2998069 Change-Id: I90923ac522ef363a4e04292f652d413c5a1526ad
* Some debugging support.Dianne Hackborn2010-09-242-13/+105
| | | | | | | | | | | | | - New feature to "am monitor" to have it automatically launch gdbserv for you when a crash/ANR happens, and tell you how to run the client. - Update dumpstate to match new location of binder debug logs - Various commented out logs that are being used to track down issues. Change-Id: Ia5dd0cd2df983a1fc6be697642a4590aa02a26a5
* Instead of just writing one track to the .mp4 file, write all of them (at ↵Andreas Huber2010-09-241-42/+111
| | | | | | most 1 video and 1 audio track). Also support httplive URIs in the stagefright commandline tool. Change-Id: I67b287cf76546191f398939aabe4480d9e79a948
* Merge "Proper sync-frame detection for sources that don't already provide ↵Andreas Huber2010-09-241-12/+105
|\ | | | | | | it." into gingerbread
| * Proper sync-frame detection for sources that don't already provide it.Andreas Huber2010-09-231-12/+105
| | | | | | | | Change-Id: Iafeee847b015c5cf6bec6dd5fac22a8d3e8cb78e
* | Fix issue #3022508: Crash during media scanDianne Hackborn2010-09-231-0/+214
|/ | | | | | | | | | | | | | | | | | | | | | Don't kill processes for excessive wake lock use, even if they are in the background, as long as they have running services. Also fix some problems with this, such as not noting the kill in battery stats. And add killing of processes for cpu usage as well, along with some optimizations to computing CPU usage. And fix BatteryWaster to be better behaving for testing these cases. Add new "monitor" command to am to watch as the activity manager does stuff (so we can catch things at the point of ANR). Finally some miscellaneous debug output for the stuff here, as well as in progress debugging of an ANR. Change-Id: Ib32f55ca50fb7486b4be4eb5e695f8f60c882cd1
* Allow record to set input color format as a command line optionJames Dong2010-09-191-11/+49
| | | | | | o Only YUV420SP and YUV420P are supported Change-Id: I425e8b29d9dca8c05066c1cd777f8bdede52964a
* Make sure stagefright -o terminates even if we're using a raw audio source ↵Andreas Huber2010-09-161-1/+3
| | | | | | (such as .wav pcm) Change-Id: Iec809df89e6b75706cf5b1ce21006c2e217e018f
* Track client requests through location manager.Dianne Hackborn2010-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a problem where applications could ask the location manager to do very heavy-weight things (like... say... update location every minute), which would get accounted against the system instead of the application because ultimately it is the system making the heavy calls (wake locks, etc). To solve this, we introduce a new class WorkSource representing the source of some work. Wake locks and Wifi locks allow you to set the source to use (but only if you are system code and thus can get the permission to do so), which is what will be reported to the battery stats until the actual caller. For the initial implementation, the location manager keeps track of all clients requesting periodic updates, and tells its providers about them as a WorkSource param when setting their min update time. The network location provider uses this to set the source on the wake and wifi locks it acquires, when doing work because of the update period. This should also be used elsewhere, such as in the GPS provider, but this is a good start. Change-Id: I2b6ffafad9e90ecf15d7c502e2db675fd52ae3cf
* Allow installd to handle large partitionsKenny Root2010-09-073-21/+27
| | | | | | | Use int64_t because we're RPCing over to Java which uses a Long to represent the filesystem space. Change-Id: I842b2cf9f2ff8f980ff5895c1c8eb9ebefa1ea31
* When dropping privileges, check return values.Nick Kralevich2010-09-011-2/+12
| | | | | | | | | setuid() and family can fail. Check return values to make sure this doesn't happen unexpectedly. Also call setgid() to drop root group permissions. Change-Id: Id06fbe6239e2ed2fe23368695e333514e0581e6d
* Add some encoding parameters for the "record" utilityJames Dong2010-08-311-1/+19
| | | | | | - TODO: remove some of the hard coded values Change-Id: Ib58bbb8af45fd102176ac49da0a71613a12fa5fc
* Add more debugging to installdKenny Root2010-08-042-3/+13
| | | | | | | If a command to installd fails, it would be nice to know exactly why. Log failures and the errno associated with the failures. Change-Id: Ia3122675f243037c556d3a49d06da7e03b8c59f6
* Merge "Various changes to improve rtsp networking, reduce packet loss and ↵Andreas Huber2010-07-221-5/+36
|\ | | | | | | adapt to ALooper API changes." into gingerbread
| * Various changes to improve rtsp networking, reduce packet loss and adapt to ↵Andreas Huber2010-07-221-5/+36
| | | | | | | | | | | | ALooper API changes. Change-Id: I110e19d5ce33e597add3ffbd3e3ff3815862396d
* | Merge "new SensorService" into gingerbreadMathias Agopian2010-07-212-0/+6
|\ \ | |/ |/|
| * new SensorServiceMathias Agopian2010-07-192-0/+6
| | | | | | | | | | | | | | remove old sensor service and implement SensorManager on top of the new (native) SensorManger API. Change-Id: Iddb77d498755da3e11646473a44d651f12f40281
* | Add a seek test to the stagefright commandline tool.Andreas Huber2010-07-211-1/+67
|/ | | | Change-Id: Ibf3517afa288fc4c7e2184c11bc7a63594f321df
* 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-142-4/+4
| | | | | | | | moved surfaceflinger, audioflinger, cameraservice all native services should now reside in this location. Change-Id: Iee42b83dd2a94c3bf5107ab0895fe2dfcd5337a8
* Support for writing the extracted data to an .mp4 file in the stagefright ↵Andreas Huber2010-07-012-3/+36
| | | | | | commandline tool. Change-Id: I972324a8fc9757e6e8116b0270ec0882106f8733
* Remove most stagefright property overrides, remove VorbisPlayer and ↵Andreas Huber2010-06-231-4/+0
| | | | | | | VorbisMetadataRetriever as this functionality is now provided by stagefright. Change-Id: Ieafe75a4550c273ad59b4518d7cd4c0fce0f7cce related-to-bug: 2370115
* Merge "Make sure sine: is supported again in stagefright commandline tool." ↵Andreas Huber2010-06-221-1/+1
|\ | | | | | | into gingerbread
| * Make sure sine: is supported again in stagefright commandline tool.Andreas Huber2010-06-211-1/+1
| | | | | | | | Change-Id: I703f1a8b7556543ef71b141dc8e38d8b82d8c6dc
* | Start of work on passing around StrictMode policy over Binder calls.Brad Fitzpatrick2010-06-212-2/+8
|/ | | | | | | | | | | | This is (intendend to be) a no-op change. At this stage, Binder RPCs just have an additional uint32 passed around in the header, right before the interface name. But nothing is actually done with them yet. That value should right now always be 0. This now boots and seems to work. Change-Id: I135b7c84f07575e6b9717fef2424d301a450df7b
* Simplify the code in the stagefright commandline utility.Andreas Huber2010-06-102-14/+4
| | | | Change-Id: Ia222b25ef12af34f6434421fd96b67eca800d1ab
* Fail gracefully if the user fails to supply necessary args to bmgrChristopher Tate2010-06-091-0/+10
| | | | | | Fixes bug #2755355 Change-Id: I4690756bb5077a6b4bbbfb232cd852cad43cef77
* more clean-up in preparation of bigger changesMathias Agopian2010-05-281-1/+1
| | | | | | | the most important change here is the renaming of ISurfaceFlingerClient to ISurfaceComposerClient Change-Id: I94e18b0417f50e06f21377446639c61f65f959b3
* Make the -o option actually terminate.Andreas Huber2010-05-201-0/+3
| | | | Change-Id: I91b70ee5c3e1fc9b8bb645e219af296867692e65
* am 3c16154a: am 2723e092: Merge "Better handling of codec initialization ↵Andreas Huber2010-05-201-1/+6
|\ | | | | | | | | | | | | | | | | failure in the player and thumbnail extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize." into froyo Merge commit '3c16154a3309fe250177d69f3fcd5b6e9a82d1b3' into kraken * commit '3c16154a3309fe250177d69f3fcd5b6e9a82d1b3': Better handling of codec initialization failure in the player and thumbnail extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize.
| * am 2723e092: Merge "Better handling of codec initialization failure in the ↵Andreas Huber2010-05-201-1/+6
| |\ | | | | | | | | | | | | | | | | | | | | | | | | player and thumbnail extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize." into froyo Merge commit '2723e09229ce916724861ab90b6b8fc7c9ea9f2e' into froyo-plus-aosp * commit '2723e09229ce916724861ab90b6b8fc7c9ea9f2e': Better handling of codec initialization failure in the player and thumbnail extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize.
| | * Better handling of codec initialization failure in the player and thumbnail ↵Andreas Huber2010-05-201-1/+6
| | | | | | | | | | | | | | | | | | | | | extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize. Change-Id: I5cba02ee85a41e43c2623053de40f26e2cf2efe4 related-to-bug: 2699505
* | | am d6c0bb0f: merge from open-source masterThe Android Open Source Project2010-05-191-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'd6c0bb0f0f3827f1c336db20ac9dc0eb90cd46fa' into kraken * commit 'd6c0bb0f0f3827f1c336db20ac9dc0eb90cd46fa': Removed Calls to deprecated APIs
| * | merge from open-source masterThe Android Open Source Project2010-05-191-1/+1
| |\ \ | | |/ | |/| | | | Change-Id: I0598edad283a177a5ddcc30e20d2284503e6038e