Steve Block
fe71a61e5b
Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE
...
Bug: 5449033
Change-Id: I4951baa981f09a84ce483e3d1bd0f9ebe009035f
2012-01-04 19:23:34 +00:00
Steve Block
8d66c49258
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
...
Bug: 5449033
Change-Id: I9244d927f14c750cd359ebffb1fc1c355a755d5a
2012-01-03 22:32:30 +00:00
Jean-Baptiste Queru
17aad1469a
Revert "Fix build"
...
This reverts commit 25a89e771a
.
2011-11-15 13:59:05 -08:00
Steve Block
98520ab9a6
am 67b11cba
: am 25a89e77
: Fix build
...
* commit '67b11cba5bccd0cdc3ce6117a19c5f036f95d35f':
Fix build
2011-11-15 13:07:22 -08:00
Steve Block
67b11cba5b
am 25a89e77
: Fix build
...
* commit '25a89e771aae292193244852166564e83e36232b':
Fix build
2011-11-15 11:10:09 -08:00
Steve Block
25a89e771a
Fix build
...
Change-Id: Icbe57024e6018600d47a68132f53f15d7602dc92
2011-11-15 10:58:49 -08:00
Jean-Baptiste Queru
1941c91389
am 4ef824e9
: am 71619f13
: am 604f52e3
: Reconcile with AOSP master
...
* commit '4ef824e9481625270aa065cc4d0625e8c8d9e0df':
2011-10-28 15:43:04 +00:00
Steve Block
4ddc88e73e
am 16210c12
: am 31a02dba
: Fix build
...
* commit '16210c12bc0a8dab5523289de1e51b6fe8d38053':
Fix build
2011-10-28 15:38:18 +00:00
Steve Block
16210c12bc
am 31a02dba
: Fix build
...
* commit '31a02dba709166df30b7c3352222c550146d7c81':
Fix build
2011-10-28 15:36:45 +00:00
Steve Block
31a02dba70
Fix build
...
Change-Id: Icbe57024e6018600d47a68132f53f15d7602dc92
2011-10-28 15:38:20 +01:00
Steve Block
69f4cd7f5a
Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE
...
Bug: 5449033
Change-Id: Ib453f869977a6e909095a578bbf0420851f887d2
2011-10-26 09:59:23 +01:00
Steve Block
5fb44952f6
Rename (IF_)LOG() to (IF_)ALOG() DO NOT MERGE
...
Bug: 5449033
Change-Id: Id318736a9caa58c6da2683f8663699ce998e79d8
2011-10-25 16:28:35 +01:00
Romain Guy
6bcd4d3e73
Add ANDROID_API macro to export symbols
...
Change-Id: I55294713c8dd1ac32d6013d084f1bb502fc3572f
2011-10-12 13:45:59 -07:00
JP Abgrall
243123fb41
libcutils: qtaguid: Support new functions, add tag resource tracking.
...
* 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
2011-09-14 15:00:40 -07:00
Dima Zavin
da04c52ab1
init/cutils: move list utility code to cutils from init
...
Change-Id: I357ceee813700297d8343159f22a07659e768d41
Signed-off-by: Dima Zavin <dima@android.com>
2011-09-02 12:11:18 -07:00
Dima Zavin
8f91282ebe
init/cutils: move kernel logging interface to libcutils from init
...
Change-Id: Ia0f91b1fcd6cae69d76bf3dd841340958db938a8
Signed-off-by: Dima Zavin <dima@android.com>
2011-09-02 12:11:17 -07:00
Dima Zavin
2d55e02d0f
libcutils/init: move uevent socket opening code to libcutils
...
Change-Id: I90adf78c0eb6185505f2bf7b62e96e25ab918345
Signed-off-by: Dima Zavin <dima@android.com>
2011-09-02 12:11:17 -07:00
Ashish Sharma
fa2f985b29
libcutils: qtaguid: support socket untagging, return errors.
...
- Enable and rename qtaguid_tagSocket()
- Add qtaguid_untagSocket()
- Return kernel errors to caller
Change-Id: I8e33c8832b7f6b24ed9081f36ce1ea9ae6b099c0
Signed-off-by: Ashish Sharma <ashishsharma@google.com>
2011-08-10 12:25:11 -07:00
Ashish Sharma
13825eb0a3
Fix header file inclusion for type uid_t.
...
Change-Id: I401fc0b41b4b77114fce7240662c9dfe4509e841
2011-08-10 12:23:30 -07:00
Ashish Sharma
60daf104a1
Add communication support for xt_qtaguid(network traffic accounting) kernel module.
...
Change-Id: Ie0fb5b593987c53ee6f906fe6e0caab5a581d5a1
2011-08-10 12:23:25 -07:00
Ashish Sharma
9b5c774369
libcutils: qtaguid: support socket untagging, return errors.
...
- Enable and rename qtaguid_tagSocket()
- Add qtaguid_untagSocket()
- Return kernel errors to caller
Change-Id: I8e33c8832b7f6b24ed9081f36ce1ea9ae6b099c0
Signed-off-by: Ashish Sharma <ashishsharma@google.com>
2011-08-07 23:22:59 -07:00
Ashish Sharma
6dce8322d6
Fix header file inclusion for type uid_t.
...
Change-Id: I401fc0b41b4b77114fce7240662c9dfe4509e841
2011-07-10 14:04:25 -07:00
Ashish Sharma
8626cce5f3
Add communication support for xt_qtaguid(network traffic accounting) kernel module.
...
Change-Id: Ie0fb5b593987c53ee6f906fe6e0caab5a581d5a1
2011-07-08 19:17:03 -07:00
Jean-Baptiste Queru
b6c15de82a
tweak for forward-compatibility
...
Change-Id: I1896be16622b452a3652412af3c64f8c550f71d0
2011-06-18 10:41:31 -07:00
Eric Laurent
3142a203b3
Merge "Config utils improvement"
2011-05-27 10:20:00 -07:00
jeffhao
2b8f76cdbb
Tracking merge of dalvik-dev to master
...
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
2011-05-27 00:50:44 -07:00
Ken Sumrall
e555f54965
Merge "Crypto changes for devices that don't write ext4 fs on wipe"
2011-05-26 20:01:19 -07:00
Ken Sumrall
b05b0b5d3b
Crypto changes for devices that don't write ext4 fs on wipe
...
This adds a new function to libcutils, partition_wiped().
This is used to determine if a partition is wiped.
Change-Id: Ibb388976c6b5bd3923b62d8f79b2b97748abf6c1
2011-05-26 19:42:32 -07:00
Eric Laurent
c3cf1a8278
Config utils improvement
...
Added a function to free resources allocated by config node tree.
Change-Id: I2ee8ae642899ec4501fa6e490c5be7efaa2d738e
2011-05-26 13:57:03 -07:00
Dima Zavin
4af1cf2bd7
cutils: add popcount/popcountl/popcountll static inline definitions
...
Just pass them through to their specific GCC builtins. If we find
that the builtins are not performing well or have other issues, we can
pull in existing public implementations and/or write arch-specific
helpers if necessary.
Change-Id: I278e6b73d75fac88808ed4546070d288c06f79e0
Signed-off-by: Dima Zavin <dima@android.com>
2011-05-12 08:41:49 -07:00
Nick Kralevich
57de8b8f27
rename uevent_checked_recv to uevent_kernel_multicast_recv
...
Change-Id: I1839627490080efcbb7269699709064856312f8b
2011-05-11 14:58:24 -07:00
Iliyan Malchev
3ffd793a1d
native_handle.h: fix declaration
...
Change-Id: I452a517ee6982995318802eb4bbb23bd79401c4d
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-05-02 17:27:37 -07:00
Dima Zavin
0e02fcab11
Merge "libcutils: add a simple string parameter parsing ("a=b;c=d;") helper utils"
2011-04-27 17:07:12 -07:00
Nick Kralevich
4682abaaa6
am b0d0e260
: resolved conflicts for merge of 2baeb898
to honeycomb-plus-aosp
...
* commit 'b0d0e260bd6118959fa0e2d3c84037b3e0178551':
Fold uevent message origin checking from init into libcutils.
2011-04-27 13:49:59 -07:00
Nick Kralevich
b0d0e260bd
resolved conflicts for merge of 2baeb898
to honeycomb-plus-aosp
...
Change-Id: Ib3169b3a36aa13ef413da624355b1737e9b76fd9
2011-04-27 13:09:24 -07:00
Vernon Tang
3f582e92f0
Fold uevent message origin checking from init into libcutils.
...
Change-Id: I7cbc0cb840d1b4962e6c360fdad9a9c0ce20e87b
2011-04-28 05:16:21 +10:00
Nick Kralevich
bb738d6727
am de35f274
: am 03752be0
: am 0c297f5e
: Merge "Revert "Fold uevent message origin checking from init into libcutils.""
...
* commit 'de35f2741c4e32e331a92be99f7c04b92b94beb2':
Revert "Fold uevent message origin checking from init into libcutils."
2011-04-27 10:37:48 -07:00
Nick Kralevich
de35f2741c
am 03752be0
: am 0c297f5e
: Merge "Revert "Fold uevent message origin checking from init into libcutils.""
...
* commit '03752be0a437d12e19ac73ebe23385fe6f756e2c':
Revert "Fold uevent message origin checking from init into libcutils."
2011-04-27 10:35:06 -07:00
Nick Kralevich
de9e65dd65
Revert "Fold uevent message origin checking from init into libcutils."
...
This reverts commit 8405ec0e75
.
The original change does not compile.
2011-04-27 10:21:24 -07:00
Nick Kralevich
3268eda4dc
am e3ab4245
: am a7cf7ed9
: am 282c2ab4
: Merge "Fold uevent message origin checking from init into libcutils."
...
* commit 'e3ab42457077ec2a66bac553e59a7fee08d4fa9e':
Fold uevent message origin checking from init into libcutils.
2011-04-27 10:00:34 -07:00
Nick Kralevich
e3ab424570
am a7cf7ed9
: am 282c2ab4
: Merge "Fold uevent message origin checking from init into libcutils."
...
* commit 'a7cf7ed93486240ca48a407e67c7c3683a3b93aa':
Fold uevent message origin checking from init into libcutils.
2011-04-27 09:59:14 -07:00
Vernon Tang
8405ec0e75
Fold uevent message origin checking from init into libcutils.
...
Change-Id: I1a38e611a7ad990f74306ce453740a1eeed2416d
2011-04-27 14:17:15 +10:00
Dima Zavin
0fad7d023f
libcutils: add a simple string parameter parsing ("a=b;c=d;") helper utils
...
Change-Id: Ifabeb75550fa6e351434e6e6d036b19331daf6c1
Signed-off-by: Dima Zavin <dima@android.com>
2011-04-20 19:04:40 -07:00
Carl Shapiro
b60d9ce1fc
Make atomic-inline.h usable from ordinary C++ code.
...
Change-Id: I18dcba9cb3adc22f26403e94df4b2684f51090ed
2011-04-11 20:00:42 -07:00
Alexandre Elias
412514ea60
Add ifndef guards to remaining logging macros.
...
Change-Id: I5fce9bffdb9e52d50059034fd1cc05ba7f0e3b87
2011-03-29 16:24:45 -07:00
Dima Zavin
29d1f53a56
Merge "cutils: add popcount/popcountl/popcountll static inline definitions"
2011-03-14 14:14:49 -07:00
Ken Sumrall
e3aeeb4de3
Try to unmount writable filesystems when rebooting
...
Ext4 filesystems like to be unmounted before rebooting. The Android system
doesn't have a traditional Linux init setup, and shutting down the system
was not much more than calling sync(2) and reboot(2). This adds a new
function to libcutils called android_reboot(). By default, it calls sync()
and then remounts all writable filesystems as read-only and marks them clean.
There is a flag parameter in which the caller can ask for sync() not to be
called, or to not remount the filesystems as read-only. Then it will call
reboot(2) as directed by the other parameters. This change also updates
adb, init and toolbox to call the new android_reboot() function.
Fixes bugs 3350709 and 3495575.
Change-Id: I16d71ffce3134310d7a260f61ec6f4dd204124a7
2011-03-10 18:11:46 -08:00
Dima Zavin
5a809b90e9
cutils: add popcount/popcountl/popcountll static inline definitions
...
Just pass them through to their specific GCC builtins. If we find
that the builtins are not performing well or have other issues, we can
pull in existing public implementations and/or write arch-specific
helpers if necessary.
Change-Id: I278e6b73d75fac88808ed4546070d288c06f79e0
Signed-off-by: Dima Zavin <dima@android.com>
2011-03-10 15:09:16 -08:00
Carl Shapiro
0a16d83969
Remove unconditional swap from the android atomic operations suite.
...
Bug: 3381237
Change-Id: I7bdc7c8eb4c1cc6303d96e40ca2f196a007c4dd2
2011-01-23 14:09:17 -08:00
Andy McFadden
2bf937e6bb
Use DMB ST for store fence.
...
Change-Id: Ic713f30fcec0f2d2eb486c549917575ff0afa82f
2010-10-01 11:29:48 -07:00