summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
* Merge "add "startservice" option to am command-line utility"Doug Zongker2010-02-241-0/+13
|\
| * add "startservice" option to am command-line utilityDoug Zongker2010-02-241-0/+13
| | | | | | | | | | | | Allows starting Services in addition to Activities. Change-Id: Ib078115f6200faa8907b35909af2f64b0c563b38
* | Some framework fixes for apps on sdSuchi Amalapurapu2010-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | change hard coded path in installd fix tests Work around for renaming containers. Do forced unmount when destroying containers. Force a gc in default container service to release handle to parsed package and thus avoid getting killed by vold Some cosmetic changes to PackageManager api. Unit tests for renaming container for MountService Remove internal size limit on app to be installed.
* | Merge "Tag stagefright development tools as "debug-only"."Andreas Huber2010-02-241-0/+6
|\ \ | |/ |/|
| * Tag stagefright development tools as "debug-only".Andreas Huber2010-02-231-0/+6
| |
* | Merge "Add Arp Cache dump"Dmitry Shmidt2010-02-231-0/+1
|\ \ | |/ |/|
| * Add Arp Cache dumpDmitry Shmidt2010-02-231-0/+1
| | | | | | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | Move package from internal to external and vice versa.Suchi Amalapurapu2010-02-191-0/+1
|/
* Merge "Better diagnostics for the stagefright tool and codec performance."Andreas Huber2010-02-171-0/+9
|\
| * Better diagnostics for the stagefright tool and codec performance.Andreas Huber2010-02-171-0/+9
| | | | | | | | related-to-bug: 2450938
* | Don't overwrite ANR traces.txt if it can't be renamed (usuallyDan Egnor2010-02-171-1/+4
|/ | | | | due to lack of permissions, usually due to an old adb running "dumpstate" directly rather than via bugreport).
* Merge "Include install location preference when installing packages. Changes ↵Suchi Amalapurapu2010-02-161-1/+1
|\ | | | | | | include Add new remote call in default container service to determine install location. Rename INSTALL_ON_SDCARD Remove recommentAppInstall method Add some additional flags used in remote stubs. Move check for protected apps prior to copy. Unit tests"
| * Include install location preference when installing packages.Suchi Amalapurapu2010-02-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes include Add new remote call in default container service to determine install location. Rename INSTALL_ON_SDCARD Remove recommentAppInstall method Add some additional flags used in remote stubs. Move check for protected apps prior to copy. Unit tests DefaultContainerService first parses the file uri(if content uri is specified it returns a default install internal only value) and returns a recommended location. Based on which the temporary id is determined either a file name or a container id and the file is copied there. This is then later renamed during install. Todo's light weight parsing of package when determining location since we just need the install location attribute only when finding out recomended location. This will also enable to move the check for updated system apps(cannot be on sdcard) prior to copying.
* | Tweak updatecmds to be able to move entire directories.Dianne Hackborn2010-02-121-16/+83
|/
* Fix simulator build.Marco Nelissen2010-02-111-1/+1
|
* split libsurfaceflinger_client and libcamera_client out of libuiMathias Agopian2010-02-114-6/+8
|
* Fix installd to create /data/data/<pkgname> with appropriate permissions.David 'Digit' Turner2010-02-091-1/+1
| | | | | The directory was created with read+exec rights for others. The patch restricts it to only exec rights.
* Merge "When the extractor is not able to be created successfully, don't crash"James Dong2010-02-052-0/+7
|\
| * When the extractor is not able to be created successfully, don't crashJames Dong2010-02-042-0/+7
| |
* | Merge "Add single-package restore from an app's most-recent data"Chris Tate2010-02-041-1/+1
|\ \ | |/ |/|
| * Add single-package restore from an app's most-recent dataChristopher Tate2010-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renamed the RestoreSession performRestore() method to restoreAll(), and added a new restorePackage() method that only restores the single specified app. In order to restore an app other than itself, the caller must hold the android.permission.BACKUP permission. This change also introduces dataset tracking: the Backup Manager persistently remembers both the current backup dataset's identity and that of the "ancestral" dataset, i.e. the one most recently used for a whole-device restore such as performed by SetupWizard. When a single package is restored via restorePackage(), the selection of most-recent dataset to use is this: 1. The data from the currently-active backup dataset, if such exists. An app that has ever backed up data will therefore get its last- known-good data. 2. The app's data from the ancestral dataset, if such exists. This covers the case of a factory reset followed by reinstallation of an app at a later time. The app had not yet backed anything up post-wipe, but the old data is in the ancestral dataset and should be brought forward when the app reappears. 3. If neither 1. nor 2. exist, there is no data to restore, so just skip it and return failure. Note that the infrastructure to automatically attempt a restore after an application has been installed does not yet exist; that's coming. Change-Id: I0ba170df9885128000c46ed28d3dddda3a63a143
* | Implement system data migration support.Dianne Hackborn2010-02-033-0/+239
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds three new features: - <original-package android:name="com.foo" /> manifest tag. This allows an .apk to specify another package it originally came from, propagating all state and data from the old to new package. - <adopt-permissions android:name="com.foo" /> manifest tag. In some more complicated cases, a new .apk may be a combination of multiple older .apks that each declared their own permissions. This allows you to propagate the permissions from these other .apks into the new one. - A new system/etc/updatecmds directory. You can place files here which describe data files to move from one package to another. (See below for details.) Also in this change: we now clean up the data directories of .apks that disappear from the system image, and some improvements to logging and reporting error messages. A typical file in the updatecmds directory looks like this: ------- com.google.android.gsf:com.google.android.providers.talk databases/talk.db com.google.android.gsf:com.google.android.googleapps databases/gls.db ------- This says that for com.google.android.sfs, there are two packages to move files from: From com.google.android.providers.talk, the file databases/talk.db. From com.google.android.googleapps, the file databases/gls.db As part of moving the file, its owner will be changed from the old package to whoever is the owner of the new package's data directory. If those two files had existed, after booting you would now have the files: /data/data/com.google.android.gsf/databases/talk.db /data/data/com.google.android.gsf/databases/gls.db Note that all three of these facilities assume that the older .apk is completely removed from the newer system. The WILL NOT work correctly if the older .apk still remains.
* AppsOnSd feature - Add default containerSuchi Amalapurapu2010-01-271-1/+17
| | | | | | | | | | | | | | | | | | Add new remote interface to do temporary copies. The new remote stub handling is done on mHandler thread and doesn't need locking for now. Add new InstallArgs class and subclasses to isolate cases for installation. Move resource deletion for failed installs/upgrades to later on in installation cycle. Fix code path for forward locked apps when using scanPackageLI TODO's Fix installation paths to completely use InstallArgs based design later on. Get rid of using flags in various install/uninstall code paths. Ideally InstallArgs should be created using these flags and used in the rest of the code. Function renames. Revisit mount api's.
* Use six dashes instead of five.Dan Egnor2010-01-262-7/+7
|
* Initial checkin of AudioSource and AMRWriter, a pair of classes supporting ↵Andreas Huber2010-01-251-2/+22
| | | | | | pure-audio recording in stagefright. related-to-bug: 2295449
* Merge "Mount/Unmount secure containers Persist flags in PackageSetting. ↵Suchi Amalapurapu2010-01-191-0/+40
|\ | | | | | | Flags are relevant to ApplicationInfo.FLAG_SYSTEM, Application.FLAG_ON_SDCARD, ApplicationInfo.FLAG_FORWARD_LOCK. New pm command to simulate mount/unmount in Pm. This will be removed when MountService/vold event generation gets fixed. Calls from MountService into PackageManager when media gets mounted/unmounted. Scan the packages and grant permissions when the sdcard gets mounted. This api might change again."
| * Mount/Unmount secure containersSuchi Amalapurapu2010-01-191-0/+40
| | | | | | | | | | | | | | | | | | Persist flags in PackageSetting. Flags are relevant to ApplicationInfo.FLAG_SYSTEM, Application.FLAG_ON_SDCARD, ApplicationInfo.FLAG_FORWARD_LOCK. New pm command to simulate mount/unmount in Pm. This will be removed when MountService/vold event generation gets fixed. Calls from MountService into PackageManager when media gets mounted/unmounted. Scan the packages and grant permissions when the sdcard gets mounted. This api might change again.
* | Merge "Upgrade for the stagefright commandline tool to support extracting ↵Andreas Huber2010-01-191-3/+58
|\ \ | |/ |/| | | thumbnails and to optionally prefer software codecs."
| * Upgrade for the stagefright commandline tool to support extracting ↵Andreas Huber2010-01-141-3/+58
| | | | | | | | thumbnails and to optionally prefer software codecs.
* | app install on sdcard. provide skeleton implementationSuchi Amalapurapu2010-01-143-4/+14
|/ | | | | | | | | | | | | | | | | | | | | | to install an app on sdcard, just resources. Add new install path for /asec in installd. ignore . when checking for apk path since the sdcard packages id'ed by package name. Add new -s option to adb shell pm Refactor fwd locked from scanMode to ApplicationInfo. Add new flag for sd install Add new parse flags for fwd locking and installing on sdcard New mock api's in PackageManagerService to invoke MountService api's. These will be refactored again and so have been wrapped internally. Some error codes in PackageManager Changes in PackageManagerService to use mPath and mScanPath during installation and switch to using PackageParser.Package.applicationInfo attributes for source and public resource directories. Some known issues that will be addressed later using system_uid for now. needs some tinkering with uid and packagesetting creation to use the actual app uid error handling from vold not very robust. ignoring lot of things for now sending a delayed destroy to delete packages. will revisit later revisit temp file creation later. just copy for now
* Overhaul of dumpstate (aka bugreport) with cleanups & enhancements:Dan Egnor2010-01-134-604/+473
| | | | | | | | | | | | | | | | - include basic build & timestamp information in the header - collect stack traces immediately at bugreport time - *also* show stack traces from last ANR (as before), if in the last 15 minutes - alphabetize system properties dump - remove now-obsolete (and always questionable) "dumpcrash" functionality - write to a .tmp file first, then rename to the final filename - friendly usage message - output sections include the exact file/command run - source de-weirdification -- it's several hundred lines shorter now The same data is present in the same order as before, and I've tried to preserve all the grep/search targets people might use to find their way through the file.
* less log spewJoe Onorato2010-01-081-1/+1
|
* keystore: compute the padding in an intuitive way.Chia-chi Yeh2009-12-301-7/+3
|
* Add missing shared libraries in linker commands. Currently these libraries areDoug Kwan2009-12-221-3/+3
| | | | linked implicitly via dependencies of other shared libraries.
* Merge change I70f91838Android (Google) Code Review2009-12-221-10/+13
|\ | | | | | | | | * changes: keystore: Add paddings before checksumming.
| * keystore: Add paddings before checksumming.Chia-chi Yeh2009-12-221-10/+13
| | | | | | | | | | | | Also fix a file descriptor leak when file system is nearly full. Bug: 2339184
* | Rework activity manager debug dumps.Dianne Hackborn2009-12-211-10/+14
|/ | | | | | | | | | | | | | | | Change how we do debug dumps from the activity manager to make everything go through the activity manager interface (no more secondary interfaces), and use the command line arguments to control what gets dumped. The output from dumpsys without args still dumps everything. When just dumping the activity service, we now dump a subset of all of the am state that is interesting without being overwhelming. You can use "dumpsys activity -h" to get help with other things that can be dumped.
* am b5c6be6d: am 082e5171: Merge change I895fb7d7 into eclair-mr2Andreas Huber2009-12-171-3/+3
|\ | | | | | | | | | | | | Merge commit 'b5c6be6db25d9e9405ea4cf20bbedd46a62dc0bb' * commit 'b5c6be6db25d9e9405ea4cf20bbedd46a62dc0bb': Squashed commit of the following:
| * Squashed commit of the following:Andreas Huber2009-12-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 144b1c40e9cf08a584c50e1bef7ba3f287e81a4f Author: Andreas Huber <andih@google.com> Date: Wed Dec 16 09:28:23 2009 -0800 This H264 file shows a certain problem even better. commit 3245f1f3b7471975aeeb824a756c987abd610f55 Author: Andreas Huber <andih@google.com> Date: Wed Dec 16 09:20:08 2009 -0800 Using only the QA testfiles now. commit 074817eb3816c5dd70858a3594e3b92d799d873b Author: Andreas Huber <andih@google.com> Date: Tue Dec 15 16:17:39 2009 -0800 Yay, roles are back again now that the API is in place. commit 6d847e4932cc38301ae27cb7283b7f1553a95457 Author: Andreas Huber <andih@google.com> Date: Tue Dec 15 13:01:20 2009 -0800 Added commandline option for specifying the random seed for reproducable tests. commit 62ab37b26336eaa67e49791c41c996acb6acee3f Author: Andreas Huber <andih@google.com> Date: Mon Dec 14 10:53:27 2009 -0800 When issuing a seek it is important that only the first MediaSource::read call has the seek option. commit e77c46644b2fb6862bafa3569f7d304252074f1e Author: Andreas Huber <andih@google.com> Date: Mon Dec 7 16:39:07 2009 -0800 Make sure the tests are actually built, sp<OMXCodec> becomes sp<MediaSource> commit 6df56915bd55a9445b3c6f953d3cc251d81579b8 Author: Andreas Huber <andih@google.com> Date: Thu Dec 3 14:25:36 2009 -0800 Temporarily disable support for querying the roles of OMX components. commit 31bb26930df9e3658dea684cedb4b0f1a06a4a88 Author: Andreas Huber <andih@google.com> Date: Tue Dec 1 13:36:52 2009 -0800 Disregard EOS events, slightly change the way the EOS flag on output buffers is handled. commit 4c382fbc9aebee8197d5988d04378062809e7c48 Author: Andreas Huber <andih@google.com> Date: Tue Dec 1 09:37:24 2009 -0800 New random seek test for the codec tests. Fixed "sticky" end-of-output-buffers flag behaviour in OMXCodec. commit c762eac3e44309592b61a168d66e091cf609fa03 Author: Andreas Huber <andih@google.com> Date: Tue Nov 3 14:13:43 2009 -0800 Fix a typo. commit 50540a59b65c7d476b0193c7494cd75895e6ca6d Author: Andreas Huber <andih@google.com> Date: Tue Nov 3 09:48:35 2009 -0800 Some more fine tuning of the unit tests, make MPEG4Extractor less verbose. commit 1157a7e52a0636706caa235abe16d2ff8a0b8140 Author: Andreas Huber <andih@google.com> Date: Wed Oct 28 12:01:01 2009 -0700 Changes to the IOMX::listNodes API, this now returns the component's roles as well, unit tests now test all components in all supported roles by default. commit 30fbf2d8c6cb927689f7ba75eb550a81e9df488a Author: Andreas Huber <andih@google.com> Date: Mon Oct 26 09:45:26 2009 -0700 Initial check-in of unit tests for OMX components.
* | Add FW log dump for bcm4329Dmitry Shmidt2009-12-163-2/+19
| | | | | | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | am 23915ddd: am eec100b2: Merge change If0d04246 into eclair-mr2Andreas Huber2009-12-101-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit '23915ddde9ce3ed9f1ce50ea321c8fdce612faf0' * commit '23915ddde9ce3ed9f1ce50ea321c8fdce612faf0': Don't count empty buffers when computing the frame rate.
| * Don't count empty buffers when computing the frame rate.Andreas Huber2009-12-101-1/+1
| |
* | am f553a584: am 5921fb51: Merge change I91eb0354 into eclair-mr2Andreas Huber2009-12-072-4/+4
|\ \ | |/ | | | | | | | | | | Merge commit 'f553a58425c66a990dbc5f4579c976a0636fc573' * commit 'f553a58425c66a990dbc5f4579c976a0636fc573': Change OMXCodec::Create to return an sp<MediaSource> instead of an sp<OMXCodec>, this is more general and does not sacrifice any functionality as the remaining OMXCodec APIs are not meant to be public anyway.
| * Change OMXCodec::Create to return an sp<MediaSource> instead of an ↵Andreas Huber2009-12-072-4/+4
| | | | | | | | sp<OMXCodec>, this is more general and does not sacrifice any functionality as the remaining OMXCodec APIs are not meant to be public anyway.
* | am ae34cf92: am 781ac162: Merge change I8768f2cc into eclair-mr2Andreas Huber2009-12-013-0/+104
|\ \ | |/ | | | | | | | | | | Merge commit 'ae34cf92db9c54ba72fdcac33a8ba855a2215e4e' * commit 'ae34cf92db9c54ba72fdcac33a8ba855a2215e4e': A small sample tool to encode pcm audio data to amr, decode it again and play it. Some changes to OMXCodec to properly configure the AMR decoder(s).
| * A small sample tool to encode pcm audio data to amr, decode it again and ↵Andreas Huber2009-12-013-0/+104
| | | | | | | | play it. Some changes to OMXCodec to properly configure the AMR decoder(s).
* | am bf72820e: am b292461c: Merge change I305e1b8f into eclair-mr2Doug Zongker2009-12-011-9/+14
|\ \ | |/ | | | | | | | | | | Merge commit 'bf72820e7775748c7239287b49b81031167b3428' * commit 'bf72820e7775748c7239287b49b81031167b3428': add --esn option to am to allow adding extra with a null value
| * add --esn option to am to allow adding extra with a null valueDoug Zongker2009-11-301-9/+14
| |
* | am c92f3bcd: am e11a1b4d: am f817218e: dumpstate: Pick up the last kernel ↵Dima Zavin2009-11-291-1/+1
|\ \ | |/ | | | | | | | | | | | | | | log from /proc Merge commit 'c92f3bcd556be6086aabcdcf437cc29c2ac605f6' * commit 'c92f3bcd556be6086aabcdcf437cc29c2ac605f6': dumpstate: Pick up the last kernel log from /proc
| * am f817218e: dumpstate: Pick up the last kernel log from /procDima Zavin2009-11-291-1/+1
| |\ | | | | | | | | | | | | | | | | | | Merge commit 'f817218e09a556f20efc81309ba2cdb3475a370b' into eclair-mr2 * commit 'f817218e09a556f20efc81309ba2cdb3475a370b': dumpstate: Pick up the last kernel log from /proc