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

Change-Id: I703d011f6cc07ead0df103a748dc462203ddd24b
init: Support for emmc boot and init.target.rc

 * Via CodeAurora

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
core: allow radio users to access all rmnet* interface

Change-Id: I3e812b803d11ac5e470b2c2dcce363545238beb2
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
init: Add an emmc-specific configuration file

 * Load init.emmc.rc if emmc_boot is set
 * This makes startup much cleaner for devices with a mess of vendor RC
   configurations.

Change-Id: If0874c652eff7f56a49971d434328347ad6e6d3c
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
init: Add option to disable the initlogo

 * It looks like crap on some hardware due to different framebuffer
   formats. Just disable it if the option is set.

Change-Id: Id4c301bbf7d17c317317a5587331fb64c04754a8
charger: Add support for non-standard charging interfaces

 * Certain devices may have multiple battery devices or broken uevent
   reporting when a power supply is disconnected.
 * Add a new BOARD_BATTERY_DEVICE_NAME to force which device to monitor.

Change-Id: I9c928295994b678b26c10cbaaabb80e606e61c15
charger: allow custom charger res

Change-Id: Ia075b2be750688946951e1f138972aae25902dbf
Example: BOARD_CHARGER_RES := device/samsung/galaxys2/res/charger
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: Ib500e65283706d860d62cb487720008d7331ce2d
init: Add net device permission controls for LGE devices

These are used by lge-ril to control the state of the mobiledata
interfaces

Change-Id: Ia869f08564c1f4907240289a32a10e0f3413d8a9a
init: Let radio user manipulate service properties

I'm seeing some devices (with broadcom's btld) in which the
radio services (RIL) use the service. namespace to pass or store
data...

Conflicts:

	init/property_service.c

Change-Id: I6e3177689a12b0925064e615408bc1e0f175bcf3