Commit Graph

28140 Commits

Author SHA1 Message Date
Jay Freeman (saurik) e7cb137f32 added chdir/chroot commands to init for mount switching/pivoting 2009-08-27 07:43:28 -07:00
Jay Freeman (saurik) 9f28bde9eb Trivial implementation of init's import command. 2009-08-27 07:40:19 -07:00
Android Code Review 12a5b8804c Merge change 2903
* changes:
  completed implementation of "trigger" for init
2009-08-27 07:36:36 -07:00
San Mehat 87a9fe1766 am 9b158910: am bd3f7ded: Merge change 22836 into eclair
Merge commit '9b1589102cc1f543d172417510b21d0108200c72'

* commit '9b1589102cc1f543d172417510b21d0108200c72':
  rootdir: init.rc: Copy kernel crash dumps to /data and free kernel resources
2009-08-26 17:15:24 -07:00
San Mehat 2d534e4d84 am 5be5da9a: am fc279227: Merge change 22835 into eclair
Merge commit '5be5da9a1176fe2e648070375683b4b412e1cb17'

* commit '5be5da9a1176fe2e648070375683b4b412e1cb17':
  init: builtins: Add 'copy' command to init.rc parser
2009-08-26 17:15:22 -07:00
San Mehat 9b1589102c am bd3f7ded: Merge change 22836 into eclair
Merge commit 'bd3f7dedeb0f15bcf5e5b527732b54e45647e78b' into eclair-plus-aosp

* commit 'bd3f7dedeb0f15bcf5e5b527732b54e45647e78b':
  rootdir: init.rc: Copy kernel crash dumps to /data and free kernel resources
2009-08-26 17:13:22 -07:00
San Mehat 5be5da9a11 am fc279227: Merge change 22835 into eclair
Merge commit 'fc279227ec9af8b49d3b3ec63096e4839f099411' into eclair-plus-aosp

* commit 'fc279227ec9af8b49d3b3ec63096e4839f099411':
  init: builtins: Add 'copy' command to init.rc parser
2009-08-26 17:13:21 -07:00
Android (Google) Code Review bd3f7dedeb Merge change 22836 into eclair
* changes:
  rootdir: init.rc: Copy kernel crash dumps to /data and free kernel resources
2009-08-26 17:11:32 -07:00
Android (Google) Code Review fc279227ec Merge change 22835 into eclair
* changes:
  init: builtins: Add 'copy' command to init.rc parser
2009-08-26 17:11:18 -07:00
San Mehat 21541872c3 rootdir: init.rc: Copy kernel crash dumps to /data and free kernel resources
Signed-off-by: San Mehat <san@google.com>
2009-08-26 16:39:59 -07:00
San Mehat 7c44fe5925 init: builtins: Add 'copy' command to init.rc parser
Signed-off-by: San Mehat <san@google.com>
2009-08-26 16:39:59 -07:00
Jack Palevich a4944fb380 am 973246de: am c158427e: Merge change 22828 into eclair
Merge commit '973246de432427fbfaf79635a1199ad811e17886'

* commit '973246de432427fbfaf79635a1199ad811e17886':
  Preliminary struct and union support.
2009-08-26 16:19:30 -07:00
Jack Palevich 973246de43 am c158427e: Merge change 22828 into eclair
Merge commit 'c158427e5edbac3ef180d1e35f99e445b11e3672' into eclair-plus-aosp

* commit 'c158427e5edbac3ef180d1e35f99e445b11e3672':
  Preliminary struct and union support.
2009-08-26 16:18:35 -07:00
Android (Google) Code Review c158427e5e Merge change 22828 into eclair
* changes:
  Preliminary struct and union support.
2009-08-26 16:16:45 -07:00
Jack Palevich 9221bcccb3 Preliminary struct and union support.
Working features:
 - struct
 - union
 - nested structs
 - anonymous structs
 - forward declarations
 - '.' and '->'
 - copying structs using '='

Missing features:
 - passing structs by value
 - returning structs by value
 - typedef
 - sizeof

Example:

struct v {float x, y, z, w; };

void add(struct v* result, struct v* a, struct v* b) {
    result->x = a->x + b->x;
    result->y = a->y + b->y;
    result->z = a->z + b->z;
    result->w = a->w + b->w;
}

Reworked size-of and alignment logic to support structs.

Improved encoding of ARM immediate constants.
2009-08-26 16:15:07 -07:00
Mike Lockwood cef31a0254 adb: Fix emulator support.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 14:46:18 -07:00
Xavier Ducrohet f71c71148c Fix broken 'adb root' command.
Change-Id: I75bf01863e82967a7214d3e31b8db792690716c1
2009-08-26 14:46:18 -07:00
Mike Lockwood 2f38b69971 adb: Improved support for running adb over TCP/IP
Added new commands:

adb connect <host>:<port> (to connect to a device via TCP/IP)
adb tcpip <port>          (to restart adbd on the device to listen on TCP/IP)
adb usb                   (to restart adbd on the device to listen USB)

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 14:46:18 -07:00
Raphael 26f3de6738 BUG 2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDK 2009-08-26 14:46:18 -07:00
Mike Lockwood ecfb75d9e4 adb: Fix infinite loop in Linux host device discovery.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 14:46:18 -07:00
Mike Lockwood 668cc77101 adb: print better error message when there are insufficient permissions for a device.
Now, a command like "adb shell" will print "insufficient permissions for device"
instead of "device not found" if adb does not have permissions to communicate with the device.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 14:46:18 -07:00
Mike Lockwood a8be72f653 adb: update call to register_usb_transport in Mac and Windows builds.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 14:46:18 -07:00
Mike Lockwood 95b837d38b adb: On Linux, detect USB devices for which adb does not have permissions to communicate with.
adb devices will now list devices without adequate file system permissions in /dev/bus/usb as:

List of devices attached
????????????	no permissions

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 14:46:18 -07:00
Guang Zhu e64004d327 adb: Use correct language ID when retrieving USB serial number.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 14:46:18 -07:00
Mike Lockwood 63e6152748 adb: Remove adbd from simulator build.
It no longer compiles without recent kernel headers.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 14:46:18 -07:00
Mike Lockwood 5f4b051235 adb: add "adb reboot" command.
This will allow rebooting the device via adb on any build, including user builds.
An optional argument can be provided
(for example, "adb reboot bootloader" or adb reboot recovery")

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 14:46:18 -07:00
Mathias Agopian 3969080e23 get rid of utils/executablepath.h, which now lives in the simulator 2009-08-26 14:46:18 -07:00
Nick Pelly 22048ef325 Allow adb to use ANDORID_SERIAL env variable to specify the device to talk to.
Overridden by -s.
2009-08-26 14:46:18 -07:00
Mike Lockwood c1f46267fa am 0f832535: am a3e8a6ad: adb: Fix emulator support.
Merge commit '0f83253596e7c23c98c141224238841a3102e5f6'

* commit '0f83253596e7c23c98c141224238841a3102e5f6':
  adb: Fix emulator support.
2009-08-26 12:58:34 -07:00
Mike Lockwood 0f83253596 am a3e8a6ad: adb: Fix emulator support.
Merge commit 'a3e8a6ad56d60d2ad6c580004f86920d73acc62c' into eclair-plus-aosp

* commit 'a3e8a6ad56d60d2ad6c580004f86920d73acc62c':
  adb: Fix emulator support.
2009-08-26 12:56:58 -07:00
Mike Lockwood a3e8a6ad56 adb: Fix emulator support.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 12:50:22 -07:00
Chuck Tuffli 1e070846f8 Fix incorrect check for LOG_UEVENTS
LOG_UEVENTS is a boolean value as defined in system/core/init/init.h.
Therefore, code should use an #if check and not an #ifdef check as the
macro will always be defined.
2009-08-26 09:26:46 -07:00
Hiroshi Takekawa 7acf3386cc init.rc: Fixes typo: sytem -> system. 2009-08-26 19:51:04 +09:00
Xavier Ducrohet 43492e4ff4 am 15e37df0: am 1bba53f7: Fix broken \'adb root\' command.
Merge commit '15e37df00d4480a51500f7cdc26181db08238c7f'

* commit '15e37df00d4480a51500f7cdc26181db08238c7f':
  Fix broken 'adb root' command.
2009-08-26 00:02:15 -07:00
Xavier Ducrohet 15e37df00d am 1bba53f7: Fix broken \'adb root\' command.
Merge commit '1bba53f7c851068c127d16ba160cd3074d6027db' into eclair-plus-aosp

* commit '1bba53f7c851068c127d16ba160cd3074d6027db':
  Fix broken 'adb root' command.
2009-08-25 23:59:57 -07:00
Xavier Ducrohet 1bba53f7c8 Fix broken 'adb root' command.
Change-Id: I75bf01863e82967a7214d3e31b8db792690716c1
2009-08-25 20:16:14 -07:00
Mike Lockwood 9534696a43 am 5f642969: am 968c8f07: Merge change 22503 into eclair
Merge commit '5f64296995844981fdfebebdd4b5d84044df3c28'

* commit '5f64296995844981fdfebebdd4b5d84044df3c28':
  adb: Improved support for running adb over TCP/IP
2009-08-25 16:34:27 -07:00
Mike Lockwood 5f64296995 am 968c8f07: Merge change 22503 into eclair
Merge commit '968c8f07031c881dbb2e27b308d88f76e2917121' into eclair-plus-aosp

* commit '968c8f07031c881dbb2e27b308d88f76e2917121':
  adb: Improved support for running adb over TCP/IP
2009-08-25 16:32:35 -07:00
Android (Google) Code Review 968c8f0703 Merge change 22503 into eclair
* changes:
  adb: Improved support for running adb over TCP/IP
2009-08-25 16:31:38 -07:00
Robert Greenwalt bcb9b1f9b1 am ba298801: am e2e89382: Merge change 22636 into eclair
Merge commit 'ba2988015fd34b3f51c7a11bc65ef4548045f9ad'

* commit 'ba2988015fd34b3f51c7a11bc65ef4548045f9ad':
  Allow radio to modify net.ppp* properties for dns
2009-08-25 15:56:57 -07:00
Robert Greenwalt ba2988015f am e2e89382: Merge change 22636 into eclair
Merge commit 'e2e89382d675dee0b3dc2db981064c3d14fa8ac7' into eclair-plus-aosp

* commit 'e2e89382d675dee0b3dc2db981064c3d14fa8ac7':
  Allow radio to modify net.ppp* properties for dns
2009-08-25 15:54:45 -07:00
Android (Google) Code Review e2e89382d6 Merge change 22636 into eclair
* changes:
  Allow radio to modify net.ppp* properties for dns
2009-08-25 15:52:22 -07:00
Robert Greenwalt 0ab3a93aba Allow radio to modify net.ppp* properties for dns
The radio bringup script was changed from operating as root to operating as radio.  This is
preventing it from adding the "net.ppp0.dns0" and "net.ppp0.dns1" properties that
ConnectivityService needs to correctly set dns.

bug: 2077628
2009-08-25 13:55:57 -07:00
Jay Freeman (saurik) 11e1c42df6 completed implementation of "trigger" for init 2009-08-25 13:00:11 -07:00
Jack Palevich 79dce8722e am 87d8ccb0: am c0f25335: Make pointer casting work.
Merge commit '87d8ccb07ed0aa4ee55dd473c36191892cbcdd6e'

* commit '87d8ccb07ed0aa4ee55dd473c36191892cbcdd6e':
  Make pointer casting work.
2009-08-25 12:29:09 -07:00
Jack Palevich 87d8ccb07e am c0f25335: Make pointer casting work.
Merge commit 'c0f253359f11c087a3ffc92b46755c6c96f57899' into eclair-plus-aosp

* commit 'c0f253359f11c087a3ffc92b46755c6c96f57899':
  Make pointer casting work.
2009-08-25 12:27:16 -07:00
Jack Palevich c0f253359f Make pointer casting work. 2009-08-25 12:23:43 -07:00
Jack Palevich 4d03dd0f1c am 67132d9d: am 0f400c59: Add runtime check for whether or not the OTCC-output tests can be run.
Merge commit '67132d9d27dcf892fe8113c567f2ae75350b2db1'

* commit '67132d9d27dcf892fe8113c567f2ae75350b2db1':
  Add runtime check for whether or not the OTCC-output tests can be run.
2009-08-25 12:01:12 -07:00
Jack Palevich 67132d9d27 am 0f400c59: Add runtime check for whether or not the OTCC-output tests can be run.
Merge commit '0f400c59b815c94cd925a843e8529240e6ca7535' into eclair-plus-aosp

* commit '0f400c59b815c94cd925a843e8529240e6ca7535':
  Add runtime check for whether or not the OTCC-output tests can be run.
2009-08-25 11:59:33 -07:00
Jack Palevich 0f400c59b8 Add runtime check for whether or not the OTCC-output tests can be run.
This means we don't have to manually specify the --norunotcc flag.
2009-08-25 11:57:13 -07:00