aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* init: add detection of charging modePrashant Somashekar2012-07-102-1/+32
| | | | | | | | | | | | -when BOARD_CHARGING_MODE_BOOTING_LPM is set to a path_to_sysfs_attribute then it and lpm.rc will be read accordingly. -adapted from techomancer's original change: (add detection of charging mode, remove the code for parsing param.lfs, since it is not needed) http://goo.gl/I19GG Change-Id: I64c2379225e00afaaf17ee03eab67546781668f8
* unpackbootimg (squashed)Koushik Dutta2012-07-103-0/+176
| | | | | | | | | | | | | | | | | | | | unpackbootimg ported forward from eclair Change-Id: I74d2df0b47d40e7105cc58c2b05f8f383dc7f8a0 port forward pagesize arg from eclair Change-Id: Ia789a4f392a3890aa0efa7efb42032482b48beb0 unpackbootimg should output BOARD_PAGE_SIZE Change-Id: Ieb5cda01943a33da97eee4d025f56c2c6e7560e8 output page size in mkbootimg add an option to override the pagesize for boot images created by nubs. ie, acer liquid mkliquidbootimg. Change-Id: Ie0c7e67edf5ae59019517e72b9be8c0b81388e41
* init: Support for emmc boot and init.target.rcSteve Kondik2012-07-101-0/+17
| | | | | | * Via CodeAurora Change-Id: Iaa9ed356574f364d8061e8941cffc3d458efc603
* Add group qcom_oncrpc and give permissions to ril-daemon and /dev/oncrpcNaveen Kalla2012-07-102-1/+3
| | | | Change-Id: I022aae4a81c720a026ea6c1a41bda30acbe60224
* RECOVERY_PRE_COMMAND_CLEAR_REASON and extended reboot argumentsTanguy Pruvot2012-07-103-11/+35
| | | | | | | | fix the 2 new warnings created by our 4-lines recovery patch ;p Allow also to override toolbox reboot applet, for bootmenu Change-Id: I975af19a8f295d1e341c7433f96f669db611f89c
* debuggerd: Extend condition for exclusion of the fconstd instructionArne Coucheron2012-07-101-0/+5
| | | | | | | | The fconstd instruction only exists in ARM cores with VFPv3 or later. Currently all supported ARMv6 targets do not have VFPv3 or later, so let's just extend based on this trend. Change-Id: Icbbaadb69564b9bab7b55fdada408247c214f038
* libcutils : reboot mount fixDanesh M2012-07-101-4/+7
| | | | | | | | | On aries for eg, cache needs to be rw for the RECOVERY_PRE_COMMAND to work because we write to /cache/.startrecovery This patchset moves the RECOVERY_PRE_COMMAND prior to the remount. Change-Id: Iab1da9a15e64e8831b04e4eb21d824de5f8bd0eb
* add missing string.h include needed for memsetAndrew Sutherland2012-07-101-0/+4
| | | | Change-Id: Ieeb9e95919d1bea183f01da9fbab0c5c8c8d1925
* Use RECOVERY_PRE_COMMAND before calling __reboot() recoveryatinm2012-07-102-0/+9
| | | | | | | | | | | | | | | For the Power menu, frameworks/base/core/jni/android_os_Power.cpp#L180 already uses RECOVERY_PRE_COMMAND if TARGET_RECOVERY_PRE_COMMAND is defined in the BoardConfig.mk for a device to make a system() call before calling __reboot() for recovery. This commit adds the same thing to the other places that we know we are getting into recovery using __reboot(), namely, adb reboot recovery, the reboot binary and init in the case of errors. Change-Id: If0a9c7f22de2aa187c921b60ad5edd77b49e095d
* init: Include extra init file in /system/etc/init.local.rcjerpelea2012-07-101-0/+3
| | | | Change-Id: I2324b3be767a4bf2e0d32645a355f14e0b894c5b
* do not install recovery on bootKoushik Dutta2012-07-101-4/+0
|
* liblog: Move kineto and qcom RIL messages to radio logSteve Kondik2012-07-101-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | Squashed commits from CM7 liblog: I <3 you Kineto, but STFU. Kineto's native library obliterates the logs with debug info, which makes me a sad panda when trying to debug other things. Send it to the RADIO bucket instead. Change-Id: I6e6a7a54a84d41cd189f9eb48518b990b8b13a89 Added QCRIL to filter rules. QCRIL from LG P500 generate too much logcat output (about 20 lines per second) so it will be good to filter it. Change-Id: I29d1fcd16d0fbf9ba456b09087c33c21242faa8e Mecha: Move qc-ril related logging to the radio log Change-Id: Ibf4eb91068b53e389ca437bcc4e52d66be92639a Change-Id: I8e9d646fe6f7910205a3c19702a283bdb6921342
* Stub property_set_syncEmilio López2012-07-102-1/+12
| | | | | | This is needed by Motorola RILs Change-Id: If4ede6b958cde4ee4450fef7a3106d52bfb5d5d1
* init: Implement exec supportEmilio López2012-07-101-1/+35
| | | | | | Code copied from CM7 implementation by Steve Kondik Change-Id: Ie8f11e9dc9e552aa7a4fe354995daaf8f0d99a11
* ADB Logcat colored output.Pierre Zurek2012-07-103-16/+87
| | | | | | | | | This patch adds a new '-C' option to logcat so that the output is colored with colors similar to the ones in DDMS. Simply type "adb logcat -C" to use it. Works well with bash in gnome-terminal. Change-Id: Ie72199ecca0e04f2082c993f5763646bb09da61ea
* init: Add net device permission controls for LGE devicesRicardo Cerqueira2012-07-101-0/+13
| | | | | | | These are used by lge-ril to control the state of the mobiledata interfaces Change-Id: Ia869f08564c1f4907240289a32a10e0f3413d8a9a
* Squashed adb fixes.Koushik K. Dutta2012-07-102-2/+17
| | | | | | | | | | | | fix up adb to prefer /sbin/sh if it exists allow always insecure Change-Id: I5c15731c95d123488e90aaeac5b497f556b53363 Conflicts: adb/Android.mk
* adb: Fix adb tcpip commandBenoit Goby2012-06-121-3/+3
| | | | | | | | | When running "adb tcpip 5555", adb create a service socket named "tcpip:5555". Only compare the 6 first chars "tcpip:" to decide if we enable exit_on_close. Bug: 6650130 Change-Id: I0835973de044f1cfde0e859ff0277c0ccc2630a3
* Merge "Enable tracing on user builds" into jb-devJamie Gennis2012-06-112-5/+32
|\
| * Enable tracing on user buildsJamie Gennis2012-06-082-5/+32
| | | | | | | | | | | | | | | | | | | | | | This change adds init.rc steps to: * allow kernel tracing to be enabled via adb * allow a limited set of kernel trace events to be enabled via adb * allow the kernel trace to be read via adb * allow all users to write to the kernel trace from userland Bug: 6513400 Change-Id: Ic3c189b5697aa5edf88d2f507c932971bed6caff
* | Remove a stray newline in the backtrace output.Jeff Brown2012-06-081-1/+1
| | | | | | | | | | Bug: 6615693 Change-Id: I1ac1746286afb77c3f5c4042c4592333ebb08a51
* | Enhance native stack dumps.Jeff Brown2012-06-0814-893/+1326
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | rootdir: init.rc: remove audio app/sys groups, merge to fgDima Zavin2012-06-041-16/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change, the audio rr/fifo threads will just run in the fg cgroup. Also, the RR budget for the apps fg/bg threads has been bumped to 80%. Ideally, the bg budget would be much smaller but there are legacy libraries that seem to be very sensitive to this so for now keep it at this value. Bug: 6528015 Change-Id: I08f295e7ba195a449b96cd79d954b0529cee8636 Signed-off-by: Dima Zavin <dima@android.com>
* | 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>
* | core: init.rc: create apps cgroup for fg tasks, move bg under itDima Zavin2012-06-041-13/+13
| | | | | | | | | | | | Bug: 6538553 Change-Id: I7c29975aa376bcdda9d6bbd1fd3e04fdb1c1b1fe 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>
* audio policy: allow disabling A2DP for media.Eric Laurent2012-05-241-0/+1
| | | | | | | | | Added FORCE_NO_BT_A2DP forced use to allow applications to override default policy to use A2DP whenever connected. Bug 6485897. Change-Id: I0039232ea6cce4121f375961b2c153d1a0d92e49
* Merge "Reuse system properties for p2p" into jb-devIrfan Sheriff2012-05-231-43/+60
|\
| * Reuse system properties for p2pIrfan Sheriff2012-05-231-43/+60
| | | | | | | | | | | | | | | | | | | | | | | | p2p interfaces keep increasing. Reuse a single "p2p" phrase to track all p2p specific properties. Longer term, we will remove the use of system properties for dhcp Also, fixed some warnings Bug: 6522164 Change-Id: Ibe9a68a1b5db9d5b0fe88c854d9f94b1b9930970
* | Increase cpu.rt_runtime_us to 10% for fg and bg groupsColin Cross2012-05-161-2/+2
|/ | | | | | | GPS on yakju puts SCHED_RR threads in the fg and bg groups, and is unhappy with 0.1% limits. Increase the limits to 10%. Change-Id: I971c9b0a815890d41694b965fdd2b023937a4411
* Add USB Vendor ID for Yulong Coolpad.Xavier Ducrohet2012-05-141-0/+3
| | | | | | Bug: 6217375 Change-Id: I8931c42e8d3088cc4df8c6e56b323a7392cad5ef
* Merge "Delete dead code." into jb-devJeff Brown2012-05-111-441/+0
|\
| * Delete dead code.Jeff Brown2012-05-111-441/+0
| | | | | | | | | | | | | | This file is not compiled and not used. Bug: 6435382 Change-Id: I3a08690950f1c77f8b0bc57a9e5cdb6eb402ac77
* | Merge "init: Set perms for interactive cpufreq governor boostpulse" into jb-devTodd Poynor2012-05-111-0/+1
|\ \
| * | init: Set perms for interactive cpufreq governor boostpulseTodd Poynor2012-05-031-0/+1
| | | | | | | | | | | | Change-Id: Ia4b028f58f9d48bad2525744497f10884d11c5d6
* | | Merge "fastboot: Change -w to format after the erase of userdata & cache" ↵JP Abgrall2012-05-113-5/+29
|\ \ \ | |_|/ |/| | | | | into jb-dev
| * | fastboot: Change -w to format after the erase of userdata & cacheJP Abgrall2012-05-073-5/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the bootloader doesn't support formatting of those partitions (either because it doesn't support the getvar commands needed or the partition type is not supported), the errors are printed but doesn't halt processing of subsequent commands. Change-Id: I816ac2e5e7593846fcb4fd39c793a8dbdd996f6f Signed-off-by: Mike J. Chen <mjchen@google.com>
* | | Increase rt_runtime_us to 1000 for foreground and bg_non_interactiveColin Cross2012-05-101-2/+2
| | | | | | | | | | | | | | | | | | | | | rt_runtime_us=0 can cause deadlocks if a SCHED_FIFO/SCHED_RR thread is moved into the wrong cgroup. Change-Id: I4633392fb529039dff6ba5d3a6b672e0de9fc2d9
* | | Merge "Camera: Document expected error codes for start face detect." into jb-devEino-Ville Talvala2012-05-101-1/+2
|\ \ \
| * | | Camera: Document expected error codes for start face detect.Eino-Ville Talvala2012-05-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clarify when BAD_VALUE is expected from the camera start face detect command. Bug: 6459066 Change-Id: Id1b3d5047dee2c509aa6e374a5ed439a776b0b87
* | | | Merge "change /fstab.* perms to 0640" into jb-devDoug Zongker2012-05-101-1/+1
|\ \ \ \
| * | | | change /fstab.* perms to 0640Doug Zongker2012-05-071-1/+1
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's safe to change the permissions on files in the root partitions; incremental OTA now knows how to handle this case. This reverts commit 08c370cc50e4bdae5a59f4ddfd1e3874bb36579d. Change-Id: I503bf8ebd037fa9715494c6539e5430eee47acfe
* | | | Merge "ANativeWindow: add set_post_transform_crop" into jb-devJamie Gennis2012-05-091-16/+38
|\ \ \ \ | |_|/ / |/| | |
| * | | ANativeWindow: add set_post_transform_cropJamie Gennis2012-05-071-16/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change replaces the set_active_rect function with set_post_transform_crop. There is a temporary set_active_rect function that calls set_post_transform_crop for compatibility while commiting to multiple git repositories. Change-Id: Ia7c171186fd277d5a36f6068ace93a9ce1c82d28
* | | | 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
* | | | Merge "Revert "Use O_CLOEXEC when opening cgroup fds."" into jb-devJeff Brown2012-05-081-5/+5
|\ \ \ \
| * | | | Revert "Use O_CLOEXEC when opening cgroup fds."Jeff Brown2012-05-081-5/+5
| | | | | | | | | | | | | | | This reverts commit e1440d81aef58e8b9983ab1f4540dc1fe5e63ab7
* | | | | Merge "Use O_CLOEXEC when opening cgroup fds." into jb-devJeff Brown2012-05-081-5/+5
|\| | | | | |_|/ / |/| | |
| * | | Use O_CLOEXEC when opening cgroup fds.Jeff Brown2012-05-081-5/+5
| |/ / | | | | | | | | | | | | Bug: 4466013 Change-Id: I0d2e915fc550a0ecaccad5e452dd4c87fc878b8b