Commit Graph

3319 Commits

Author SHA1 Message Date
James Dong 032afc1d52 Merge "Close a security hole - do not give world readable/writable access to /data/drm" into ics-mr1 2012-01-11 16:16:07 -08:00
Xavier Ducrohet a33c6ee92b am e0b55791: am 07ad9f2a: Add USB Vendor ID for Fujitsu and Lumigon.
* commit 'e0b557915123b7ad022ff5d0a7a3d4dd2ee7c2fe':
  Add USB Vendor ID for Fujitsu and Lumigon.
2012-01-11 12:05:16 -08:00
Xavier Ducrohet e0b5579151 am 07ad9f2a: Add USB Vendor ID for Fujitsu and Lumigon.
* commit '07ad9f2a127b2836c7d45a503a5f3ef7517218f3':
  Add USB Vendor ID for Fujitsu and Lumigon.
2012-01-11 12:03:31 -08:00
Xavier Ducrohet 07ad9f2a12 Add USB Vendor ID for Fujitsu and Lumigon.
Change-Id: Icd013b362366815527834cbf54aa4ecac2b7750d
2012-01-11 11:55:45 -08:00
Dima Zavin ed8d4a9c59 am f4d9bc4f: am f90b0e04: rootdir: convert all usages of to
* commit 'f4d9bc4ffec8e878429a1341dfff33bc02a59a0e':
  rootdir: convert all usages of $prop to ${prop}
2012-01-11 09:36:53 -08:00
Dima Zavin 7574a68414 am 37080d00: am 84bf9af7: init: use init\'s property expansion code for setprop/write
* commit '37080d0045009c6161ea0fb52272b6c920fa0da7':
  init: use init's property expansion code for setprop/write
2012-01-11 09:36:52 -08:00
Dima Zavin 1a9878a049 am 920d6d8a: am 78a1b1fe: init: delay importing files until after parsing the current file
* commit '920d6d8ab23fc4c8043294f005ecab47b705d7b7':
  init: delay importing files until after parsing the current file
2012-01-11 09:36:52 -08:00
Dima Zavin b97caf8543 am 96e9a260: am 5511c84a: init: export all androidboot cmd line values as ro.boot.xx props
* commit '96e9a2602adadf79cf2b319c71562d450fc6c544':
  init: export all androidboot cmd line values as ro.boot.xx props
2012-01-11 09:36:51 -08:00
Dima Zavin faa19e45fc am d7abdb21: am 3e7b7739: init: import the hardware specific init file in init.rc
* commit 'd7abdb21b3201de10bde3347e6de443f44f362ca':
  init: import the hardware specific init file in init.rc
2012-01-11 09:36:51 -08:00
Dima Zavin d81200a86e am 079d56d0: (-s ours) am a6235eac: init: allow init file imports to use properties in names
* commit '079d56d0bdcbc04672e83557d06d716eaef44d4f':
  init: allow init file imports to use properties in names
2012-01-11 09:36:50 -08:00
Dima Zavin f15671c505 am 82d5f40d: (-s ours) am d7634c9c: init: initialize property area early at boot
* commit '82d5f40d32d8188ba6963034636a9f2353f12ffa':
  init: initialize property area early at boot
2012-01-11 09:33:59 -08:00
Dima Zavin f4d9bc4ffe am f90b0e04: rootdir: convert all usages of to
* commit 'f90b0e04a61ab3bf5239afb2f7157aabe5fbca8f':
  rootdir: convert all usages of $prop to ${prop}
2012-01-11 07:09:59 -08:00
Dima Zavin 37080d0045 am 84bf9af7: init: use init\'s property expansion code for setprop/write
* commit '84bf9af758c84da7d9ff2929bce06bf2b2f239b8':
  init: use init's property expansion code for setprop/write
2012-01-11 07:09:58 -08:00
Dima Zavin 920d6d8ab2 am 78a1b1fe: init: delay importing files until after parsing the current file
* commit '78a1b1fe1ab76964e35b4a4788238b197bfd613d':
  init: delay importing files until after parsing the current file
2012-01-11 07:09:58 -08:00
Dima Zavin 96e9a2602a am 5511c84a: init: export all androidboot cmd line values as ro.boot.xx props
* commit '5511c84a50617d1b3c280beb49de38ed1aae21c6':
  init: export all androidboot cmd line values as ro.boot.xx props
2012-01-11 07:09:57 -08:00
Dima Zavin d7abdb21b3 am 3e7b7739: init: import the hardware specific init file in init.rc
* commit '3e7b7739e3d4d7aaaa363645501036dafcc30ed3':
  init: import the hardware specific init file in init.rc
2012-01-11 07:09:56 -08:00
Dima Zavin 079d56d0bd am a6235eac: init: allow init file imports to use properties in names
* commit 'a6235eacf4b06b14b19125618d7aca570dbc02b0':
  init: allow init file imports to use properties in names
2012-01-11 07:09:55 -08:00
Dima Zavin 82d5f40d32 am d7634c9c: init: initialize property area early at boot
* commit 'd7634c9cdad7bec39294a993b0bc898eaf709829':
  init: initialize property area early at boot
2012-01-11 07:09:55 -08:00
Dima Zavin f90b0e04a6 rootdir: convert all usages of $prop to ${prop}
Change-Id: Ic2472606e869d23c0f499a192cd7bb21ca3cf5b5
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-11 04:36:13 -08:00
Dima Zavin 84bf9af758 init: use init's property expansion code for setprop/write
Change-Id: I3c284860cc8d5106ac2b086e62baeb6263873935
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-11 04:36:09 -08:00
Dima Zavin 78a1b1fe1a init: delay importing files until after parsing the current file
If we process the import directive inline, then the ordering of the
commands for the "on xxx" sections would be a little unexpected. The
init.rc files do not really have an implied  order as to which section
appears and gets processed first. The init code itself provides that
ordering explicitly. For the user, the expectation is that if both the
current file and the imported file define a section (e.g. "on init"),
then the commands in the current file will be executed first, and then
the ones from the imported file(s).

The current implementation did not do that. It processed the import
directive inline, and thus the imported (i.e. dependent) files would
appear first in the command lists for the sections. This created
unintended side effects and the solution would have been to try and
put the import lines somewhere in the middle of the init file. This
would be difficult to notice and hard to extract the dependencies.

To solve this, we add the imports to a list for each file being parsed
and process the list after finishing parsing the file. This provides
predictable order for imports and provides a logical flow from the
user perspective: the currently parsed file gets to run its commands
before the files being imported.

Change-Id: I06dc35ff286314060e16b18923683cd2787269de
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-11 04:36:06 -08:00
Dima Zavin 5511c84a50 init: export all androidboot cmd line values as ro.boot.xx props
Also, clean up how we initialize the ro.xx properties and process
the kernel command line.

Change-Id: Iedda6c90e31340a189171a44b2767480403354f7
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-11 04:36:02 -08:00
Dima Zavin 3e7b7739e3 init: import the hardware specific init file in init.rc
This removes the hardcoding of the file import in init and instead
allows the init.rc file to fully control what is loaded.

Change-Id: I933e5bbab57f1e8705a370d660f92c6508da94d2
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-11 04:35:58 -08:00
Dima Zavin a6235eacf4 init: allow init file imports to use properties in names
Adds new property syntax in init files during init file filename
expansion during the import command:
${prop.name}

So, one can do:  import /init.${ro.hardware}.usb.rc

Should convert other usages of property names to use the new function.

Change-Id: I9205d7d7a2da620bc8e6b89ac0eb554fad53ded3
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-11 04:35:53 -08:00
Dima Zavin d7634c9cda init: initialize property area early at boot
The property service is still started later, but the property area
and the initial boot properties are initialized before the init.rc
file is processed. This allows init.rc files to have access to boot
properties during parsing.

Change-Id: Iae9ed1093c821831a864b39ae6bc697e62b94757
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-11 04:35:49 -08:00
Vladimir Chtchetkine 729eb83d68 am 88ffed14: (-s ours) am ae429828: Cherry-picked from c4f37eed7 in master. Do not merge.
* commit '88ffed14ce314a8e1feb17b701dce8074516f92c':
  Cherry-picked from c4f37eed7 in master. Do not merge.
2012-01-10 16:30:38 -08:00
Vladimir Chtchetkine 88ffed14ce am ae429828: Cherry-picked from c4f37eed7 in master. Do not merge.
* commit 'ae4298286896cbef22b2af285a3f651e8f498185':
  Cherry-picked from c4f37eed7 in master. Do not merge.
2012-01-10 16:28:42 -08:00
Vladimir Chtchetkine 1feff62f36 am 8642b9b0: (-s ours) am 74159657: Cherry-picked from c13daef7b on master. Do not merge.
* commit '8642b9b0c757f9e1fcd091aad6ce1b97e16724e2':
  Cherry-picked from c13daef7b on master. Do not merge.
2012-01-10 16:22:30 -08:00
Vladimir Chtchetkine 8642b9b0c7 am 74159657: Cherry-picked from c13daef7b on master. Do not merge.
* commit '74159657687aadab4c82e4fd7e7a54d16c045d95':
  Cherry-picked from c13daef7b on master. Do not merge.
2012-01-10 16:19:45 -08:00
Vladimir Chtchetkine ae42982868 Cherry-picked from c4f37eed7 in master. Do not merge.
Fix the build.

Conditionally compile code that is intended to run inside the emulator only.

Change-Id: Ie82e415b2ff52395616f85871dddb38e65b0ed55
2012-01-10 16:19:09 -08:00
Vladimir Chtchetkine 7415965768 Cherry-picked from c13daef7b on master. Do not merge.
Use QEMU pipe for ADB communication when running in emulator.

Change-Id: I7934b6272c2a9825d244ce76ff65dbce6e54ebff
2012-01-10 16:03:17 -08:00
Steve Block ceabb17306 Rename LOG_ASSERT to ALOG_ASSERT DO NOT MERGE
Bug: 5449033
Change-Id: I991dc84c366d8f33e5439894c23df561bbc50b83
2012-01-10 21:13:57 +00:00
Steve Block 8f2e8b0a45 am a9b84a7e: Add ALOG version of LOG_ASSERT
* commit 'a9b84a7e0b3ecb389a62bc6abb8c2fea3a4a30a6':
  Add ALOG version of LOG_ASSERT
2012-01-10 11:32:17 -08:00
Doug Zongker 9c568c74ae Merge "add "adb sideload" and sideload connection state" 2012-01-10 10:17:54 -08:00
Doug Zongker 447f061da1 add "adb sideload" and sideload connection state
Recovery will soon support a minimal implementation of adbd which will
do nothing but accept downloads from the "adb sideload" command and
install them.  This is the client side command (mostly resurrected out
of the old circa-2007 "adb recover" command) and the new connection
state.

Change-Id: I4f67b63f1b3b38d28c285d1278d46782679762a2
2012-01-10 10:09:07 -08:00
Dima Zavin 683a09352a rootdir: convert all usages of $prop to ${prop}
Change-Id: Ic2472606e869d23c0f499a192cd7bb21ca3cf5b5
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-10 09:37:55 -08:00
Steve Block a9b84a7e0b Add ALOG version of LOG_ASSERT
This is now required by some projects.

Change-Id: If4015c6a9f2391b205d2886bcf7f6e51f371ce08
2012-01-09 22:50:36 +00:00
Steve Block 01dda204cd Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
Bug: 5449033
Change-Id: Ibcffdcf620ebae1c389446ce8e9d908f11ac039c
2012-01-08 11:03:26 +00:00
Christopher Tate 36afde3387 Merge "Tell the user to unlock/confirm backup & restore operations" 2012-01-06 15:46:14 -08:00
Christopher Tate bffa4ca9ad Tell the user to unlock/confirm backup & restore operations
People are being confused about the silent failure of backup/restore
when they didn't know they had to unlock the device & confirm the
backup/restore operation, so now adb prints a brief reminder.

Change-Id: I1b32913f0ad0cf6e30bf235dc975b9e983b533fd
2012-01-06 15:43:03 -08:00
Dima Zavin 829c0b8d9e Merge changes I3c284860,I06dc35ff,Iedda6c90,I933e5bba,I9205d7d7,Iae9ed109
* changes:
  init: use init's property expansion code for setprop/write
  init: delay importing files until after parsing the current file
  init: export all androidboot cmd line values as ro.boot.xx props
  init: import the hardware specific init file in init.rc
  init: allow init file imports to use properties in names
  init: initialize property area early at boot
2012-01-06 15:26:30 -08:00
James Dong 09cdc0ea12 Close a security hole - do not give world readable/writable access to /data/drm
o related-to-bug: 5834297

Change-Id: I8e459610b4f69999be37364c2359b2bac82d4a2a
2012-01-06 15:20:20 -08:00
Dima Zavin ebe2cb312d init: use init's property expansion code for setprop/write
Change-Id: I3c284860cc8d5106ac2b086e62baeb6263873935
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-05 15:02:28 -08:00
Dima Zavin 304f12270d init: delay importing files until after parsing the current file
If we process the import directive inline, then the ordering of the
commands for the "on xxx" sections would be a little unexpected. The
init.rc files do not really have an implied  order as to which section
appears and gets processed first. The init code itself provides that
ordering explicitly. For the user, the expectation is that if both the
current file and the imported file define a section (e.g. "on init"),
then the commands in the current file will be executed first, and then
the ones from the imported file(s).

The current implementation did not do that. It processed the import
directive inline, and thus the imported (i.e. dependent) files would
appear first in the command lists for the sections. This created
unintended side effects and the solution would have been to try and
put the import lines somewhere in the middle of the init file. This
would be difficult to notice and hard to extract the dependencies.

To solve this, we add the imports to a list for each file being parsed
and process the list after finishing parsing the file. This provides
predictable order for imports and provides a logical flow from the
user perspective: the currently parsed file gets to run its commands
before the files being imported.

Change-Id: I06dc35ff286314060e16b18923683cd2787269de
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-05 15:02:00 -08:00
Dima Zavin 8886112d87 init: export all androidboot cmd line values as ro.boot.xx props
Also, clean up how we initialize the ro.xx properties and process
the kernel command line.

Change-Id: Iedda6c90e31340a189171a44b2767480403354f7
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-05 15:02:00 -08:00
Dima Zavin 7634bf87cf init: import the hardware specific init file in init.rc
This removes the hardcoding of the file import in init and instead
allows the init.rc file to fully control what is loaded.

Change-Id: I933e5bbab57f1e8705a370d660f92c6508da94d2
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-05 15:02:00 -08:00
Dima Zavin 976b878a0a init: allow init file imports to use properties in names
Adds new property syntax in init files during init file filename
expansion during the import command:
${prop.name}

So, one can do:  import /init.${ro.hardware}.usb.rc

Should convert other usages of property names to use the new function.

Change-Id: I9205d7d7a2da620bc8e6b89ac0eb554fad53ded3
Signed-off-by: Dima Zavin <dima@android.com>
2012-01-05 15:01:57 -08:00
Steve Block ae8b56c0d1 Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE
Bug: 5449033
Change-Id: I1e070511b6a538e9f1c94657356437a457d58882
2012-01-05 22:25:38 +00:00
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