sdcard: Allow building as a static library

 * Split main() out in order to allow linking with a multi-call
   executable such as recovery.

Change-Id: I3325135e47e4dd5af3912f5ce67ec64007d54a63
init: define BOARD_CHARGING_CMDLINE parameters

Change-Id: I722e49e2a13418bf887c361c85e9d102168ca973
Revert "init.rc: Create /storage mountpoint so Dalvik can mark as slave in zygotes"

No longer needed as Dalvik no longer marks /storage as slave in zygotes.

This reverts commit 4a8f70d11b225fbf56aca6e494f4de35fc727dc7.

Change-Id: I0bfb86f2cc10ccdc10daa7419ac4d252c8dfbae8
Merge tag 'android-4.3_r3.1' of https://android.googlesource.com/platform/system/core into cm-10.2

Android 4.3 Release 3.1
Merge remote-tracking branch 'cm/cm-10.2' into jb3
Merge pull request #1 from BytecodeMe/jb3

Merge branch cm-10.2
Revert changes to main init.rc file

Move these to the CM init, there's no need to have them here.

Revert "rootdir: Set permissions for additional interactive sysfs nodes"

This reverts commit d4a936e3585a2a085a2edd0d6861201aa99b4817.

Revert "init: provide initial pemissions for ondemand governor"

This reverts commit bb23f09b4bc5996c88553dcb9857357c1b6516d8.

Revert "Allow 'system' user to modify cpufreq control files"

This reverts commit 2aaa54be95527144341e5fb82c67b2be7f06ac71.

Change-Id: I8889d6f6d3346cf7920bb3e8d5d52291d40d6b5e