summaryrefslogtreecommitdiffstats
path: root/libcutils
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Multi-user external storage support.Jeff Sharkey2012-08-152-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remount rootfs as recursively shared, so that mount changes are propagated into child namespaces. Mount external storage for access from adb. Clean multi-user dependencies for use in Dalvik. Also define external storage paths. Bug: 6925012 Change-Id: I375de581a63f4f36667894c56a34a9dd45361e8f
* | | am e8e73b01: am 311a4758: Merge "Remove system/core\'s remnants of SH support."Jean-Baptiste Queru2012-08-132-141/+0
|\ \ \ | |/ / |/| / | |/ | | * commit 'e8e73b01399e8d3c3fc6b94d26ef9cc49b33dda8': Remove system/core's remnants of SH support.
| * Remove system/core's remnants of SH support.Elliott Hughes2012-08-112-141/+0
| | | | | | | | | | | | SH support is long dead. Change-Id: I6be2763ca9f1ad8b3f9b09a8ad2f1d67f1e7f802
* | Include to define uid_t.Jeff Sharkey2012-08-081-3/+3
| | | | | | | | Change-Id: I02d36346fc3c6236bd64309798b434405f8dfef7
* | Native utils for working with user and app IDs.Jeff Sharkey2012-08-072-1/+34
|/ | | | | Bug: 6925012 Change-Id: I56f18826fd324f60b6e446cebd30719258e40990
* Enhance native stack dumps.Jeff Brown2012-06-082-1/+96
| | | | | | | | | | | | | | | | | | | | | | | | | Provides a new mechanism for dumpstate (while running as root) to request that debuggerd dump the stacks of native processes that we care about in bug reports. In this mode, the backtrace is formatted to look similar to a Dalvik backtrace. Moved the tombstone generating code into a separate file to make it easier to maintain. Fixed a bug where sometimes the stack traces would be incomplete because we were not waiting for each thread to stop after issuing PTRACE_ATTACH, only the main thread. So sometimes we were missing traces for some threads. Refactored the logging code to prevent accidentally writing data to logcat when explicitly dumping a tombstone or backtrace from the console. Only root or system server can request to dump backtraces but only root can dump tombstones. Bug: 6615693 Change-Id: Ib3edcc16f9f3a687e414e3f2d250d9500566123b
* cutils: sched_policy: remove audio app/sys groups, merge into fgDima Zavin2012-06-041-31/+4
| | | | | | Bug: 6528015 Change-Id: I6c2658b62442d811b53c6d18476fbd6cd45f9e3f Signed-off-by: Dima Zavin <dima@android.com>
* cutils: sched_policy: make bg group be nested under fgDima Zavin2012-06-041-4/+4
| | | | | | | | | Adds an apps cgroup which will contain fg tasks. Move the bg group nested underneath it. Bug: 6538553 Change-Id: I55279415da625e15a5bb061c2b45fbe7f7a4c047 Signed-off-by: Dima Zavin <dima@android.com>
* Revert "Revert "Use O_CLOEXEC when opening cgroup fds.""Jeff Brown2012-05-081-5/+5
| | | | This reverts commit 4df54bc4a85eacfff9c81dc0a7ebf3fd88a99982.
* Add stubs for host builds.Jeff Brown2012-05-081-17/+30
| | | | | Bug: 4466013 Change-Id: I5633c841e71a48357bb04cd7ccc02550c17bde22
* Revert "Use O_CLOEXEC when opening cgroup fds."Jeff Brown2012-05-081-5/+5
| | | This reverts commit e1440d81aef58e8b9983ab1f4540dc1fe5e63ab7
* Use O_CLOEXEC when opening cgroup fds.Jeff Brown2012-05-081-5/+5
| | | | | Bug: 4466013 Change-Id: I0d2e915fc550a0ecaccad5e452dd4c87fc878b8b
* Support full 32 bits for socket tags.Jeff Sharkey2012-05-021-3/+1
| | | | | Bug: 5321184 Change-Id: Iabd668674e60626caafc9b66b29fdbddc3724f58
* Add more SP_ constantsGlenn Kasten2012-04-231-14/+80
| | | | Change-Id: I52c8ea33b9b915fc08546f2ca0b191391f58506b
* Scheduling group cleanup - add comment, SP_DEFAULTGlenn Kasten2012-04-201-0/+21
| | | | | | | | Also tid == 0 maps to gettid() on platforms that support it. This is needed by mediaserver code that was formerly using the old C++ API. Change-Id: I8baaa3e42315c9b924cec26b6da01e7cb69e0078
* cutils: return the remote uid on netlink recv failureGeremy Condra2012-03-291-6/+25
| | | | | | | | This change adds a layer of indirection to uevent's uevent_kernel_multicast_recv, allowing dependent code to get the remote endpoint if desired. Change-Id: If2f00708a1dd6196c415b1ebc2a7eeb72399a90e
* Provide portable wrapper for qsort_r.Jeff Brown2012-03-192-0/+85
| | | | | | | | | qsort_r() is declared differently on BSD and GNU libc and may be absent on other platforms. Provide qsort_r_compat() which should work everywhere. Change-Id: I17a9026573b1ed971ff7d79895e7eb41ba108807
* Add missing includes.Jeff Brown2012-03-192-0/+2
| | | | | | Caused warnings about implicitly defined malloc() and sprintf(). Change-Id: Ia56309adc11caf5801ffd88e374c512b785cfd93
* Merge "cutils: str_parms: when deleting entry, need to also remove key"Dima Zavin2012-03-191-9/+44
|\
| * cutils: str_parms: when deleting entry, need to also remove keyDima Zavin2012-03-141-9/+44
| | | | | | | | | | | | | | | | | | | | When removing one entry, we can't just remove it from the map since key will not be freed. So, instead, search through the map for the key and free it once it is found. Change-Id: Id745c166a4acc5ea25f6d6cdbfe4f8fbc21cbbb3 Reported-by: Xin Qian <xqian@marvell.com> Signed-off-by: Dima Zavin <dima@android.com>
* | Merge "Add get_sched_policy_name() and use in ps and top"Glenn Kasten2012-03-151-0/+12
|\ \ | |/ |/|
| * Add get_sched_policy_name() and use in ps and topGlenn Kasten2012-03-151-0/+12
| | | | | | | | | | | | | | This will make it easier to add additional policies (cgroups) if needed. Also added comments to the sched_policy APIs. Change-Id: I33ce1cc4deae10983241f7391294b7a512d2c47c
* | cutils: str_parms: free the key if the value was replaced during create/addDima Zavin2012-03-141-1/+5
|/ | | | | | Change-Id: I9f31da62f10f78ed11693a7c04e2be29b0790c93 Reported-by: Xin Qian <xqian@marvell.com> Signed-off-by: Dima Zavin <dima@android.com>
* Merge "Added rules to build 64-bit libraries: lib64cutils.a and lib64log.a"Andrew Hsieh2012-03-131-0/+11
|\
| * Added rules to build 64-bit libraries: lib64cutils.a and lib64log.aAndrew Hsieh2012-03-011-0/+11
| | | | | | | | | | | | | | | | | | | | | | Both libraries are needed to build four shared libraries in 64-bit for 64-bit emulator with "-gpu on" lib64OpenglRender.so lib64EGL_translator.so lib64GLES_CM_translator.so lib64GLES_V2_translator.so Change-Id: If57f72d4661a74f1d5e537568881f39132e0b43d
* | Revert "cutils: str_parms: make test executable build for host instead"Dima Zavin2012-03-121-2/+2
| | | | | | | | This reverts commit 7d31e6e53392ca6ce7fbe8f17efbeda8b0e91ccf.
* | cutils: str_parms: make test executable build for host insteadDima Zavin2012-03-121-2/+2
| | | | | | | | | | Change-Id: I711e03aaf859107c697c6dcb82e0ab83e94570ba Signed-off-by: Dima Zavin <dima@android.com>
* | cutils: str_parms: test str_parms_add_str tooDima Zavin2012-03-121-0/+1
| | | | | | | | | | Change-Id: I93f0e577aff6b8ff23a44e29f9942a26545b6dc8 Signed-off-by: Dima Zavin <dima@android.com>
* | cutils: str_parms: need to also dup the key when adding to hashDima Zavin2012-03-121-4/+7
|/ | | | | Change-Id: Iabdd2061cbc36c6f4d4eb6e46bd757b5b52e0027 Signed-off-by: Dima Zavin <dima@android.com>
* libcutils: Use proper private header to access C library's <time.h> extensionDavid 'Digit' Turner2012-01-131-1/+8
| | | | | | | | The strftime_tz() function is not a standard C library function and should not appear in <time.h>. Instead, it is being moved to <bionic_time.h>, a private header only available to platform libraries. Change-Id: I4dc18939b9380725dfaa20c9e417296363bc52f4
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-085-7/+7
| | | | | Bug: 5449033 Change-Id: Ibcffdcf620ebae1c389446ce8e9d908f11ac039c
* Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-053-23/+23
| | | | | Bug: 5449033 Change-Id: I1e070511b6a538e9f1c94657356437a457d58882
* Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-045-15/+15
| | | | | Bug: 5449033 Change-Id: I4951baa981f09a84ce483e3d1bd0f9ebe009035f
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-034-28/+28
| | | | | Bug: 5449033 Change-Id: I9244d927f14c750cd359ebffb1fc1c355a755d5a
* Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGESteve Block2011-10-264-18/+18
| | | | | Bug: 5449033 Change-Id: Ib453f869977a6e909095a578bbf0420851f887d2
* qtaguid: shhhh. LOGI -> LOGVJP Abgrall2011-09-221-5/+7
| | | | | | | Less verbose output. Bug: 5360129 Change-Id: Id32a7c61d51b6a16f50a5c8bcc75a2feaa0e34b1
* libcutils: qtaguid: Support new functions, add tag resource tracking.JP Abgrall2011-09-141-22/+132
| | | | | | | | | | | | | | | | | | | | | | | * Add support for deleteTagData(tag, uid) setCounterSet(counterSetNum, uid) setPacifier(on) * Add resource tracking (If only kernel process termination had a hook) Because the xt_qtaguid netfilter module needs to keep track of tagged sockets, it needs a way to know when the process owning the socket has died. Normally the app will untag the sockets. But not on crash. So the process opens the qtaguid misc dev, which is closed on crash, at which point the xt_qtaguid can force-untag the processes sockets, and thus allowing their refcount to go down and release them. * Add pacifier support Add function to enable/disable pacification of the xt_qtaguid kernel module. (mostly for debugging) Change-Id: I7f2228e65208046dd37ec1c7407ee307d5ba9b99
* cutils: only build klog for targetDima Zavin2011-09-041-2/+1
| | | | | Change-Id: Id524753ca5e7271a498fdf03179bba3fdaed5729 Signed-off-by: Dima Zavin <dima@android.com>
* init/cutils: move list utility code to cutils from initDima Zavin2011-09-022-0/+38
| | | | | Change-Id: I357ceee813700297d8343159f22a07659e768d41 Signed-off-by: Dima Zavin <dima@android.com>
* init/cutils: move kernel logging interface to libcutils from initDima Zavin2011-09-022-0/+61
| | | | | Change-Id: Ia0f91b1fcd6cae69d76bf3dd841340958db938a8 Signed-off-by: Dima Zavin <dima@android.com>
* libcutils/init: move uevent socket opening code to libcutilsDima Zavin2011-09-021-0/+31
| | | | | Change-Id: I90adf78c0eb6185505f2bf7b62e96e25ab918345 Signed-off-by: Dima Zavin <dima@android.com>
* libcutils: qtaguid: support socket untagging, return errors.Ashish Sharma2011-08-071-13/+36
| | | | | | | | | - Enable and rename qtaguid_tagSocket() - Add qtaguid_untagSocket() - Return kernel errors to caller Change-Id: I8e33c8832b7f6b24ed9081f36ce1ea9ae6b099c0 Signed-off-by: Ashish Sharma <ashishsharma@google.com>
* Remove the simulator target from all makefiles.Jeff Brown2011-07-111-16/+0
| | | | | | Bug: 5010576 Change-Id: I2fcf31af681d92880e5d31a46d5f6777f7ca1977
* Move qtaguid.c from common sources in Android.mk to fix windows build.Ashish Sharma2011-07-101-3/+2
| | | | Change-Id: I0a2d1615108b6c10064b3635d05699748a1341a4
* Add communication support for xt_qtaguid(network traffic accounting) kernel ↵Ashish Sharma2011-07-082-1/+46
| | | | | | module. Change-Id: Ie0fb5b593987c53ee6f906fe6e0caab5a581d5a1
* Merge "Config utils improvement"Eric Laurent2011-05-271-0/+12
|\
| * Config utils improvementEric Laurent2011-05-261-0/+12
| | | | | | | | | | | | Added a function to free resources allocated by config node tree. Change-Id: I2ee8ae642899ec4501fa6e490c5be7efaa2d738e
* | Tracking merge of dalvik-dev to masterjeffhao2011-05-272-0/+45
| | | | | | | | | | | | | | | | | | | | Reordered bootclasspath to allow verification of all framework methods. git cherry-pick --no-commit ec164a0170955fe63106c2576a65bc4ffb1df425 Address CVE-2011-1090. git cherry-pick --no-commit 3365288d3c00072689cd9d733e055561cadc87b5 Change-Id: I6a89bc600ced06a0cb84ae1670cb7a6ea39de9c8
* | Merge "Crypto changes for devices that don't write ext4 fs on wipe"Ken Sumrall2011-05-262-1/+68
|\ \ | |/ |/|
| * Crypto changes for devices that don't write ext4 fs on wipeKen Sumrall2011-05-262-1/+68
| | | | | | | | | | | | | | This adds a new function to libcutils, partition_wiped(). This is used to determine if a partition is wiped. Change-Id: Ibb388976c6b5bd3923b62d8f79b2b97748abf6c1