summaryrefslogtreecommitdiffstats
path: root/cmds
Commit message (Collapse)AuthorAgeFilesLines
...
* Offer to move both code and data together.Jeff Sharkey2015-04-305-98/+201
| | | | | | | | | | | | | We now move code under /data/app/com.example when a complete move is requested. This really only works for new cluster-style installs that also have native libraries and OAT contained inside. Teach measuring code about cluster-style installs when measuring app footprint. Also offer to measure private data space for all users. Bug: 19993667, 20275578 Change-Id: I6df7b947cb5cc8a4552f56f4b64a661e8512389f
* Inclide checkin format of dumpsys package in bugreport.Ashish Sharma2015-04-281-0/+1
| | | | Change-Id: I809377f80e314b358eba22fa916e53c81cac2c47
* am a36a43b3: am c200d20e: am dfc30ae3: Merge "Command to move private app ↵Jeff Sharkey2015-04-105-55/+149
|\ | | | | | | | | | | | | data between volumes." * commit 'a36a43b354b248cef9407de42fb6b87e1c7085f6': Command to move private app data between volumes.
| * Command to move private app data between volumes.Jeff Sharkey2015-04-105-55/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New "mvuserdata" command will move all private app data from one volume UUID to another. It leverages the existing "cp" toybox command to do the heavy lifting for all known users, preserving details like timestamps and permissions. It invokes restorecon() to correctly label the new location when the copy is finished. Changes installd to no longer drop capabilities, so we run as root again. This also allows us to exec "cp" with CAP_DAC_OVERRIDE and CAP_FOWNER still in effect. Bug: 19993667 Change-Id: I1f407a7c4a1af97ca5afc27b04eb16b4936cbdef
* | am 8571e647: am 997eb5dd: am 44a38d93: Merge "Start accepting volume UUIDs ↵Jeff Sharkey2015-04-093-31/+38
|\ \ | |/ | | | | | | | | | | from framework." * commit '8571e647da1e9c2227d22034ba6462235273cb02': Start accepting volume UUIDs from framework.
| * Start accepting volume UUIDs from framework.Jeff Sharkey2015-04-093-31/+38
| | | | | | | | | | | | | | | | | | We're now parsing and passing through volume UUIDs sent across the command socket. The "!" argument value is treated as null, which means internal storage. Bug: 19993667 Change-Id: I17729a769ce687a2e94e85991a6338c77ded0b66
* | am ad6f4996: am 25327881: am 066fadb9: Merge "More volume UUID awareness."Jeff Sharkey2015-04-097-148/+115
|\ \ | |/ | | | | | | * commit 'ad6f4996dc909dcb8e6e369bf41be514077fb142': More volume UUID awareness.
| * More volume UUID awareness.Jeff Sharkey2015-04-097-148/+115
| | | | | | | | | | | | | | | | | | | | | | Teach free_cache() and restorecon_data() about building per-volume paths. Also clean up restorecon_data() by using std::string when building paths. Clearer names for path building utility methods, and tests to verify. Bug: 19993667 Change-Id: Iacfbcdaa5b901cc2490bc8eba366dfdeb44f1d93
* | am 6930a29a: am cae83eca: am f9ab2ad2: Merge "Installd: Fix Clang build"Andreas Gampe2015-04-091-5/+2
|\ \ | |/ | | | | | | * commit '6930a29af13f4a958fa7cba544233d2febe4040b': Installd: Fix Clang build
| * Installd: Fix Clang buildAndreas Gampe2015-04-091-5/+2
| | | | | | | | | | | | Remove some unused parameters and variables. Change-Id: I507ae48fe1744b800ceb29192d463fd26c2ccda7
* | am 65fe5dfd: am cbde9b92: am d107c305: Merge "Plumb through volume UUID when ↵Jeff Sharkey2015-04-097-243/+132
|\ \ | |/ | | | | | | | | | | building paths." * commit '65fe5dfdcd08650e0dfbb39f4a716567fb910cab': Plumb through volume UUID when building paths.
| * Merge "Plumb through volume UUID when building paths."Jeff Sharkey2015-04-097-243/+132
| |\
| | * Plumb through volume UUID when building paths.Jeff Sharkey2015-04-077-243/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since app data paths can live on expanded storage devices, accept the target volume UUID when building paths. The null UUID indicates the default internal storage. To improve readability, start using std::string in several places, which throws when allocations fail. For now, perform last-second sanity checks on incoming path arguments, but we'll eventually want to check arguments as they come through installd.cpp, instead of crashing the entire daemon. Also remove "lib" symlink code from install() and make_user_data(), since we're no longer supporting /data/app-lib. The framework already uses linklib() to create the right symlink for the selected ISA-specific library dir. Bug: 19993667 Change-Id: Ib9343575ffb62bf3981e19375de8f3822fc31e28
* | | am b8d1ee37: am 19db8c88: am ab91d03b: Merge "installd: Add support for ↵Richard Uhler2015-04-093-26/+40
|\ \ \ | |/ / | | | | | | | | | | | | | | | SELF_PATCHOAT_NEEDED." * commit 'b8d1ee37c4a6897442f5d381d5eb7162e04fcebd': installd: Add support for SELF_PATCHOAT_NEEDED.
| * | Merge "installd: Add support for SELF_PATCHOAT_NEEDED."Richard Uhler2015-04-093-26/+40
| |\ \
| | * | installd: Add support for SELF_PATCHOAT_NEEDED.Richard Uhler2015-04-073-26/+40
| | |/ | | | | | | | | | Change-Id: Ib9a6373f98474f1242367b5285086251a9d580e5
* | | am d029e95a: am 1b0a8702: am ad436ab5: Merge "dumpstate: scrub APANIC"Mark Salyzyn2015-04-081-3/+0
|\ \ \ | |/ / | | | | | | | | | * commit 'd029e95a58ea0927ebd3431d9991cd316e568002': dumpstate: scrub APANIC
| * | dumpstate: scrub APANICMark Salyzyn2015-04-081-3/+0
| |/ | | | | | | | | Bug: 19525200 Change-Id: Ia2d2857cac953fb4ceafb66ddf775d89d7a777b1
* | am eb3704a5: am 9e99fce8: am 1cd030be: Merge "Switch installd to compile as ↵Jeff Sharkey2015-04-076-41/+43
|\ \ | |/ | | | | | | | | | | C++." * commit 'eb3704a58e62c0f85cfea776df1040b677263c80': Switch installd to compile as C++.
| * Switch installd to compile as C++.Jeff Sharkey2015-04-076-41/+43
| | | | | | | | | | | | | | This is the minimal change needed to switch it over to C++, which paves the way for using more robust utilities like std::string. Change-Id: I80ed6280146875eb6ddbbb340c05450388ca13f0
| * Valid APK paths now include expanded storage.Jeff Sharkey2015-04-074-5/+16
| | | | | | | | | | | | | | | | Apps on expanded storage live at /mnt/expand/<uuid>/app/com.example, so we need to relax one more directory level. Bug: 19993667 Change-Id: I347ec7b92435ea69e632ed5d5fdfabe38ce0b56e
* | am b58e6cbf: am 4914f85f: am 8f43f77d: Merge "Use AID_SYSTEM as uid when ↵Fyodor Kupolov2015-04-071-12/+2
|\ \ | |/ | | | | | | | | | | creating oat dir" * commit 'b58e6cbfa726add05bbe5e31e8ca13815ccf2049': Use AID_SYSTEM as uid when creating oat dir
| * Use AID_SYSTEM as uid when creating oat dirFyodor Kupolov2015-04-071-12/+2
| | | | | | | | | | | | | | | | | | Previously AID_INSTALL was used, which was causing permission denied errors when PackageManager was trying to recursively rename staging directory Bug: 19550105 Bug: 20087446 Change-Id: I3a9e3056c1fbc1ce0077a3ce52cf77ea6b5085ee
* | Merge "Valid APK paths now include expanded storage."Jeff Sharkey2015-04-074-5/+16
|\ \
| * | Valid APK paths now include expanded storage.Jeff Sharkey2015-04-064-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | Apps on expanded storage live at /mnt/expand/<uuid>/app/com.example, so we need to relax one more directory level. Bug: 19993667 Change-Id: I347ec7b92435ea69e632ed5d5fdfabe38ce0b56e
* | | Merge "Add support for int64, float, double types to service command."Jeff Brown2015-04-071-2/+32
|\ \ \
| * | | Add support for int64, float, double types to service command.Jeff Brown2015-04-061-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | Comes in handy for invoking transactions that require these types. Change-Id: I8f14519a2531ab2ec7f3218ecda6d1868f6dd7b3
* | | | am 7b5f82d8: am 46072d58: am a60ff367: Merge "Remove useless ↵Elliott Hughes2015-04-061-6/+4
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| | | | | | | \'svcmgr_handle\' (which had wrong type)." * commit '7b5f82d8d726e4bcd21c19340c0743a728bc0253': Remove useless 'svcmgr_handle' (which had wrong type).
| * | Merge "Remove useless 'svcmgr_handle' (which had wrong type)."Elliott Hughes2015-04-061-6/+4
| |\ \
| | * | Remove useless 'svcmgr_handle' (which had wrong type).Elliott Hughes2015-04-031-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also use the 'ptr' union member rather than 'handle'. Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com> Change-Id: I68e5336cd3af3bc61dbddd2b33d7e1512c0c329c
* | | | am 2d4cf62a: am 8d9f899a: am 031fec0b: Merge "ServiceManager: Print ↵Elliott Hughes2015-04-041-1/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | kernel/userspace binder version" * commit '2d4cf62a2cdfbfbbca5757eb7dd1498d118bf7c9': ServiceManager: Print kernel/userspace binder version
| * | | ServiceManager: Print kernel/userspace binder versionSerban Constantinescu2015-04-031-1/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | This patch adds extra logging for the binder version in case the userspace and kernel versions differ. Change-Id: I9859b29099726cfcfe5ca23d88ed2e101a06af1a Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
* | | am bce77997: am ebca76c2: am 9cad1985: Merge "Fix errors caused by unused ↵Fyodor Kupolov2015-04-031-2/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | variables" * commit 'bce7799786ae712bba9b58f1f99cd12ee05b5cf3': Fix errors caused by unused variables
| * | Fix errors caused by unused variablesFyodor Kupolov2015-04-021-2/+1
| | | | | | | | | | | | Change-Id: Ie52ae0e9a642504ee7b78c6bc54b61549cfb0342
* | | am a46d5e4b: am 63750cb6: am 4eb88f88: Merge "Support for storing OAT files ↵Fyodor Kupolov2015-04-033-27/+116
|\ \ \ | |/ / | | | | | | | | | | | | | | | in app directory" * commit 'a46d5e4b9a598330e2a79395dbd201ab88aded00': Support for storing OAT files in app directory
| * | Merge "Support for storing OAT files in app directory"Fyodor Kupolov2015-04-023-27/+116
| |\ \
| | * | Support for storing OAT files in app directoryFyodor Kupolov2015-03-303-27/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes to installd: - dexopt now allows oat_dir param for custom output directory - Added helper method calculate_oat_file_path for calculating oat file output location based on oat_dir and apk_path. Bug: 19550105 Change-Id: I6b079207310583adeb6dad918a58034a059e34c4
* | | | am a231a128: am 0f9bf17a: am 23b204e1: Merge "servicemanager: ↵Mark Salyzyn2015-04-011-2/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | service_manager missing include for string.h" * commit 'a231a1287815e80a5ab11e30254005b81254d891': servicemanager: service_manager missing include for string.h
| * | | servicemanager: service_manager missing include for string.hMark Salyzyn2015-04-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | service_manager.c gets string.h inherited from private/android_filesystem_config.h it should not rely on this in the future. The intent is to move fs_config function into libcutils and thus deprecate any need for string.h in this include file. Bug: 19908228 Change-Id: Icc95ee02bf02c596463868b1330d209d1bd5c58a
* | | | am 059e9c02: am 8c60cec0: am 5881c8dd: Merge "Installd: Support dex2oat ↵Andreas Gampe2015-03-311-0/+12
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | | | | | | | threads system property" * commit '059e9c023eb025472db6775f9c2a95191dd6c2bf': Installd: Support dex2oat threads system property
| * | Installd: Support dex2oat threads system propertyAndreas Gampe2015-03-301-0/+12
| |/ | | | | | | | | | | | | Check dalvik.vm.dex2oat-threads in installd and pass to dex2oat. Bug: 19992386 Change-Id: I5e7806cf560607d31a1d6901dffb14bee538c9cc
* | am 3e785e2e: am 88c52865: am 0faebfb2: Merge "Add trace_event_clock_sync to ↵John Reck2015-03-271-0/+13
|\ \ | |/ | | | | | | | | | | atrace" * commit '3e785e2ef93b068630d0ffb5178a5f38cc249a3d': Add trace_event_clock_sync to atrace
| * Add trace_event_clock_sync to atraceJohn Reck2015-03-261-0/+13
| | | | | | | | Change-Id: I8adce15210d82df09ff3a39ddd8df617aeb16a42
* | am da08fc67: am b84a3dde: am bc5aceb1: Merge "Store odex files in oat/<isa>/ ↵Richard Uhler2015-03-261-14/+38
|\ \ | |/ | | | | | | | | | | directory." * commit 'da08fc672ff9643ada87a38fb98c7bd604b678ad': Store odex files in oat/<isa>/ directory.
| * Store odex files in oat/<isa>/ directory.Richard Uhler2015-03-251-14/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously odex files were stored alongside the dex location as: dex location: /foo/bar/base.apk odex location: /foo/bar/<isa>/base.odex This changes where odex files are stored, adding an "oat" directory: dex location: /foo/bar/base.apk odex location: /foo/bar/oat/<isa>/base.odex See also the corresponding changes in platform/art and platform/build. Bug: 19550105 Change-Id: I4c6be4f0c41ff175904846db8e360c4af815b265
* | am a290b4b9: am b4cf4d7d: am 6dad1713: Merge "Use verify-at-runtime if ↵Mathieu Chartier2015-03-231-0/+7
|\ \ | |/ | | | | | | | | | | debug.usejit is true" * commit 'a290b4b9121dab04c2989ab88017b8286075914b': Use verify-at-runtime if debug.usejit is true
| * Merge "Use verify-at-runtime if debug.usejit is true"Mathieu Chartier2015-03-211-0/+7
| |\
| | * Use verify-at-runtime if debug.usejit is trueMathieu Chartier2015-03-201-0/+7
| | | | | | | | | | | | | | | Bug: 19735273 Change-Id: Ib65b50dbde00184544a1341f351a0fe0ef504d32
* | | am 4b9d0b9b: am f3201498: Merge "dumpstate: add O_CLOEXEC"Nick Kralevich2015-03-192-11/+11
|\ \ \ | |/ / | | | | | | | | | * commit '4b9d0b9b676afec086bf579015b2f74623b357fd': dumpstate: add O_CLOEXEC
| * | dumpstate: add O_CLOEXECNick Kralevich2015-03-192-11/+11
| |/ | | | | | | | | | | | | | | Add O_CLOEXEC to various file descriptor calls, to avoid leaking file descriptors to dumpstate's child processes. Bug: 18342188 Change-Id: I74c47a98dfddc29c618067ad53d879b98ed1d87a