Add group qcom_oncrpc and give permissions to ril-daemon and /dev/oncrpc

Change-Id: I703d011f6cc07ead0df103a748dc462203ddd24b
init: support init.target.rc

 * Via CAF
 * emmc-fs based off recent changes from aosp

Change-Id: I5bfd9c316d4b3befceb3e51e94425b346a39cd48
init: add detection of charging mode

-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: I6dab7438830b093bfa623b4eb8adb0c592cb45c3
init: implement a new 'log' command, useful to debug property events

liblog is not usable, because stderr and stdout are redirected to
/dev/null to control the android log output.

Only forked processes are able to write to the android logs...

Change-Id: I24288789426dfa0496b95b6238583edcab84ba44
Note: accept parameters: log [-t topic] [-p level] <message>
      limit : strings beginning with "--" are not handled
Allow 'system' user to modify cpufreq control files

This is needed by CPU Settings

 This is the 2nd commit message:

Fix PowerHAL cpufreq permissions

The process containing PowerHAL didn't have group permissions to open
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor|max_freq|min_freq.

Modified permissions to match AOSP using the system user as the owner.

Change-Id: Idbdad8b00b8ad7d7d2a845287cccbabb58fc5aba
rootdir: Change sysfs permissions to allow user control ksm

Change-Id: I44f7838d56c987244263d47807f9d8110b710e3f
Allow system to call custom reboot cmd

Change-Id: Ib6081a10f11e7bfc0fe5ad150c8de6ec75b0e95f
Increase CMD_ARGS_MAX in FrameworkListener

This increases the maximum number of arguments for a framework command
from 16 to 32. 16 arguments are already used by NetworkManagementService
.startTethering().

Change-Id: I9abe07cce9676f2c87853cd88ae2ca25b7e52046
Add required permissions and files for data

 - Add /data/radio
 - Set gateway property after DNS
 - Allow radio users to set properties associated with
   all rmnet interfaces. Not just rmnet0

Change-Id: I8f972f91bdf40cd7f36648bf1778f469d12c11f3
init: Properly detect hardware revision

 * get_hardware_name was returning early if the hardware type was set on
   the command line, and not proceeding to parse it from /proc/cpuinfo
 * Fix it so that it always parses ro.revision :)

Change-Id: Ibdde61c9f21aad7e0b951a982e109a3cba84e3b8
unpackbootimg (squashed)

unpackbootimg ported forward from eclair

port forward pagesize arg from eclair

unpackbootimg should output BOARD_PAGE_SIZE

output page size in mkbootimg

add an option to override the pagesize for boot images created by nubs. ie, acer liquid mkliquidbootimg.

Update unpackbootimg to verify the Android boot image magic value. It will also search the first 512 bytes for padding.

unpackbootimg: Fix up the padding search in case the magic does not fall on a 8 byte boundary.

unpackbootimg: Fix magic search.

unpackbootimg: apparently mkbootimg no longer accepts hex values

unpackbootimg: Need to also update the written file.
Change-Id: I2717bd5ab90e4c631932788cff8561b79aa10232
enable init.d scripts

Change-Id: I55a6c2c3e2a69b578d0bdbe1b50cb317d18dd052
system/core: Add command NATIVE_WINDOW_SET_BUFFERS_SIZE

Add native window command to set user defined buffer size.

Change-Id: Id6d1f96daba81e8aba83479b5bda6ce0bfabb6e7
init: Add "export_rc" command to export env from a specified file

New export_rc command to import environment variables from
a specified file at the time the command is executed.

Differences between "import" and "export_rc":
1) export_rc can only import environment vars
2) export_rc is performed when the command
   is executed rather than at the time the
   command is parsed (i.e. "import")

Example:
in /init.rc:
    on post-fs
        export_rc /system/etc/init.xyz.rc

in /system/etc/init.xyz.rc:
    export LD_PRELOAD /system/lib/libxyz.so

Change-Id: If616dea5b508c27e9f7a95b5e9db696ecea2fdee
Add HTC Logging functions to support newer HTC props.

ifdef'd with HTCLOG.

Patchset2: remove unused function.

Patchset3: add indents to returns.

Change-Id: I70d0a6878dddf0f41d96735febda82c93496d8ec
init: set owner for ondemands boostpulse

Change-Id: I3c69a8a8a3a62fc844b13ccd98592c32f1385cc5
system/core: Add command NATIVE_WINDOW_UPDATE_BUFFERS_GEOMETRY

Add native window command to update buffer buffer width, height
and format before queuing the buffer.

Change-Id: Ic133f89afb762cfce5084af820af5f9bad2a4a0b
rootdir: Update cpufreq permissions when governor changes

 * Requires a kernel change to send the uevent.
 * This should alleviate some frustration that the performance/kernel
   folks have expressed regarding the Power HAL.

rootdir: Tighten permissions on boostpulse nodes

 * New PowerHAL code will only write to this as the system user, so
   remove the need for it to be world writable.

rootdir: tighted perms no interactive boostpulse
 * Interactive gov only supports write

rootdir: clamp perms moar
 * no need for world read
 * remove depreciated boosttime from ondemand

Change-Id: Ia9e69a6feff7c5ef1ff34a1180225e4008e8130f
Signed-off-by: Andrew Sutherland <dr3wsuth3rland@gmail.com>
add sd-ext mount point

* just set perms, rest moved to custom init script

Change-Id: I2db2cedb492113f4f880b41f765787e5d69d8f50
Signed-off-by: Andrew Sutherland <dr3wsuth3rland@gmail.com>
camera: change camera node permissions and add certain parameters.

Change-Id: Ia68160601c2b2ba3eebde9963b3972f2a09ff84a

Conflicts:
	include/system/camera.h