OSDN Git Service
Chih-Wei Huang [Fri, 13 Nov 2009 19:29:15 +0000 (03:29 +0800)]
vold: rfkill bootstrapping
Simulate rfkill add uevents to change permission of bluetooth devices on boot.
This is better since it works after suspend and wakeup.
Also revert back rfkill handling in hotplug.
Chih-Wei Huang [Fri, 13 Nov 2009 07:16:16 +0000 (15:16 +0800)]
vold: usb drive bootstrapping
The usb drive plugged before booting can be mounted by this change.
Original author: Luke Chen <jschen.cse@gmail.com>
Chih-Wei Huang [Fri, 13 Nov 2009 06:56:33 +0000 (14:56 +0800)]
init: add an option to disable 3D acceleration
If the hardware OpenGL support doesn't work for you,
disable it by adding HWACCEL=0 to cmdline.
Chih-Wei Huang [Fri, 6 Nov 2009 09:59:32 +0000 (17:59 +0800)]
hotplug.c: handle add bluetooth rfkill events
Change the permission and owner of state to be bluetooth service accessible.
Chih-Wei Huang [Fri, 30 Oct 2009 10:58:27 +0000 (18:58 +0800)]
Merge branch 'master' of git://gitorious.org/android-eeepc/core into HEAD
Yi Sun [Wed, 30 Sep 2009 18:51:55 +0000 (11:51 -0700)]
add vold support on usb drive
Yi Sun [Fri, 25 Sep 2009 01:05:44 +0000 (18:05 -0700)]
code clean up and fixed a bug caused by wrong type
Yi Sun [Sat, 12 Sep 2009 00:43:51 +0000 (17:43 -0700)]
fixed a bug caused by the changes in the prop name size
Yi SUn [Wed, 26 Aug 2009 00:50:41 +0000 (17:50 -0700)]
add etherenet state tracker support.
The dhcpcd somehow can not handle multiple interfaces with on command line. I have to create different services for different interfaces
Chih-Wei Huang [Thu, 27 Aug 2009 07:42:40 +0000 (15:42 +0800)]
Fix a possible error on symlinking hotplug. Reported by weiguo10.
Chih-Wei Huang [Mon, 3 Aug 2009 09:02:10 +0000 (17:02 +0800)]
add hotplug
Chih-Wei Huang [Tue, 21 Jul 2009 14:23:27 +0000 (22:23 +0800)]
add mountd
Chih-Wei Huang [Thu, 16 Jul 2009 07:19:21 +0000 (15:19 +0800)]
Fix permission of /dev/video0
Chih-Wei Huang [Tue, 30 Jun 2009 09:33:22 +0000 (17:33 +0800)]
patch from Yi Sun to fix power status issue
Mike Lockwood [Mon, 12 Oct 2009 03:04:18 +0000 (23:04 -0400)]
adb: Add "adb disconnect" command for disconnecting TCP/IP devices.
Also check that device is not already connected in "adb connect"
Change-Id: I5f84b56b63d8c6932f23791cac319fd6bc39d36c
Signed-off-by: Mike Lockwood <lockwood@android.com>
Robert CH Chou [Mon, 21 Sep 2009 01:51:35 +0000 (09:51 +0800)]
Add support for Acer devices
Change-Id: I7045249f86e2b628c31c888e95eb5ba6f6c47251
Mike Lockwood [Mon, 21 Sep 2009 12:09:59 +0000 (08:09 -0400)]
adb: Add USB Vendor IDs for LG and Huawei
Change-Id: Ib47e3e39609bac9cf34f2b9334aa95184b3db71d
Signed-off-by: Mike Lockwood <lockwood@android.com>
Jean-Baptiste Queru [Mon, 21 Sep 2009 02:02:02 +0000 (19:02 -0700)]
Add NOTICE file and license tag for adb
BUG=
1716164
Mike Lockwood [Sat, 19 Sep 2009 20:52:58 +0000 (16:52 -0400)]
adb: Clean up argument passing for create_service_thread()
Change-Id: Id68b312e76215e8e217b42ca0301713dbddfee9e
Signed-off-by: Mike Lockwood <lockwood@android.com>
Joe Onorato [Thu, 3 Sep 2009 23:30:43 +0000 (16:30 -0700)]
Revert "adb: Another attempted workaround for the adb disconnect problem."
This reverts commit
cc1de48dcdf06c76ee14abbe2a237aa51b5b3bad.
lockwood says to take this out.
San Mehat [Sun, 11 Oct 2009 00:35:13 +0000 (17:35 -0700)]
libsysutils: Fix some bugs in NetlinkListener and NetlinkEvent
Signed-off-by: San Mehat <san@android.com>
Android Code Review [Thu, 17 Sep 2009 21:04:33 +0000 (14:04 -0700)]
Merge change 10445
* changes:
added SuperH atomic support to libcutils
Sean McNeil [Wed, 10 Jun 2009 14:59:02 +0000 (21:59 +0700)]
Set permissions properly for any ALSA device under /dev/snd
Chia-I Wu [Tue, 15 Sep 2009 03:49:14 +0000 (11:49 +0800)]
Merge commit 'korg/master'
Android Code Review [Mon, 14 Sep 2009 16:05:28 +0000 (09:05 -0700)]
Merge change 9779
* changes:
Fix uninitialized variable loop
Vinay HARUGOP [Wed, 9 Sep 2009 19:01:12 +0000 (00:31 +0530)]
ARM architecture reference manuals for ARMv6 & ARMv7 state that the use of 'swp' instruction is deprecated
ARMv6 onwards. These architectures provide the load-linked, store-conditional pair of ldrex/strex whose use
is recommended in place of 'swp'. Also, the description of the 'swp' instruction in the ARMv6 reference
manual states that the swap operation does not include any memory barrier guarantees.This fix attempts to
address these issues by providing an atomic swap implementation using ldrex/strex under _ARM_HAVE_LDREX_STREX
macro. _ARM_HAVE_LDREX_STREX macro is defined in cpu-features.h file and patch is submitted under change ID 11088.
This Fix is verified on ST Ericsson's U8500 platform and Submitted on behalf of a third-party:
Surinder-pal SINGH from STMicroelectronics.
Jean-Baptiste Queru [Thu, 3 Sep 2009 21:18:50 +0000 (14:18 -0700)]
merge from master
Android Code Review [Fri, 28 Aug 2009 14:18:37 +0000 (07:18 -0700)]
Merge change 7315
* changes:
Allow an onrestart command to stop the current service
Simon Braunschmidt [Fri, 28 Nov 2008 00:24:13 +0000 (01:24 +0100)]
BUGFIX - ro.kernel.android.{qemud | ril} and ro.android.noril
This fixes both a typo and the fact that sh seems not to have
test or [.
(see also sh/builtins.def: ##testcmd commented out)
The handling of these properties was broken, having the effect
that the Modem in ... internal/telephony/test/Simulated*.java
was never run, even if it would have been the users/developers
intention.
See also issue #1380
http://code.google.com/p/android/issues/detail?id=1380
Signed-off-by: Simon.Braunschmidt@gmail.com>
Ben Gruver [Wed, 14 Jan 2009 02:43:30 +0000 (20:43 -0600)]
Allow an onrestart command to stop the current service
For example,
service recovery /sbin/recovery
onrestart start loadkeys
onrestart class_start con
onrestart stop recovery
Previously, if you had a service like the above, the "onrestart stop
recovery" clause would not have any effect, because the restart flag
would be re-set after the stop command had executed.
This is similar to a service with the "oneshot" keyword, with the critical
difference being that it executes the other onrestart commands when the
service dies.
Jay Freeman (saurik) [Mon, 17 Nov 2008 06:41:10 +0000 (06:41 +0000)]
added chdir/chroot commands to init for mount switching/pivoting
Jay Freeman (saurik) [Mon, 1 Dec 2008 07:24:12 +0000 (07:24 +0000)]
Trivial implementation of init's import command.
Android Code Review [Thu, 27 Aug 2009 14:36:36 +0000 (07:36 -0700)]
Merge change 2903
* changes:
completed implementation of "trigger" for init
Mike Lockwood [Wed, 26 Aug 2009 19:50:22 +0000 (12:50 -0700)]
adb: Fix emulator support.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Xavier Ducrohet [Wed, 26 Aug 2009 03:16:14 +0000 (20:16 -0700)]
Fix broken 'adb root' command.
Change-Id: I75bf01863e82967a7214d3e31b8db792690716c1
Mike Lockwood [Mon, 24 Aug 2009 22:58:40 +0000 (15:58 -0700)]
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>
Raphael [Tue, 11 Aug 2009 18:08:45 +0000 (11:08 -0700)]
BUG
2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDK
Mike Lockwood [Tue, 11 Aug 2009 15:29:40 +0000 (11:29 -0400)]
adb: Fix infinite loop in Linux host device discovery.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Sat, 8 Aug 2009 17:53:16 +0000 (13:53 -0400)]
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>
Mike Lockwood [Sat, 8 Aug 2009 17:16:54 +0000 (13:16 -0400)]
adb: update call to register_usb_transport in Mac and Windows builds.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Sat, 8 Aug 2009 16:37:44 +0000 (12:37 -0400)]
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>
Guang Zhu [Fri, 7 Aug 2009 00:21:52 +0000 (17:21 -0700)]
adb: Use correct language ID when retrieving USB serial number.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Thu, 6 Aug 2009 14:58:00 +0000 (10:58 -0400)]
adb: Remove adbd from simulator build.
It no longer compiles without recent kernel headers.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Wed, 5 Aug 2009 00:37:51 +0000 (20:37 -0400)]
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>
Mathias Agopian [Mon, 1 Jun 2009 01:50:09 +0000 (18:50 -0700)]
get rid of utils/executablepath.h, which now lives in the simulator
Nick Pelly [Thu, 7 May 2009 19:48:03 +0000 (12:48 -0700)]
Allow adb to use ANDORID_SERIAL env variable to specify the device to talk to.
Overridden by -s.
Chuck Tuffli [Mon, 15 Dec 2008 22:26:56 +0000 (14:26 -0800)]
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.
Hiroshi Takekawa [Wed, 26 Aug 2009 10:51:04 +0000 (19:51 +0900)]
init.rc: Fixes typo: sytem -> system.
Jay Freeman (saurik) [Mon, 17 Nov 2008 06:35:08 +0000 (06:35 +0000)]
completed implementation of "trigger" for init
Android Code Review [Fri, 21 Aug 2009 21:50:15 +0000 (14:50 -0700)]
Merge change 11205
* changes:
Fix bug of mmc.c not checking read_file result. This bug causes segment fault when reading name node of SDIO mmc device's /sys file, which is not existed at all.
San Mehat [Fri, 21 Aug 2009 15:16:56 +0000 (08:16 -0700)]
system/core: vold: Change permission of external storage device nodes
Signed-off-by: San Mehat <san@google.com>
San Mehat [Fri, 21 Aug 2009 15:16:56 +0000 (08:16 -0700)]
system/core: vold: Change permission of external storage device nodes
Signed-off-by: San Mehat <san@google.com>
Xinyu Chen [Sun, 16 Aug 2009 14:09:18 +0000 (22:09 +0800)]
Fix bug of mmc.c not checking read_file result.
This bug causes segment fault when reading name node of
SDIO mmc device's /sys file, which is not existed at all.
Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Ben Winslow [Sat, 15 Aug 2009 13:52:10 +0000 (09:52 -0400)]
vold: Check partitions 1-4 instead of 0-3
In mmc_bootstrap_mmcblk, bootstrap partitions 1-4 instead of 0-3, since
that's how the kernel labels them. Additionally, use the NDOSPART constant
from diskmbr.h instead of hardcoding 4 when scanning partitions.
Raphael [Tue, 11 Aug 2009 18:08:45 +0000 (11:08 -0700)]
BUG
2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDK
Mike Lockwood [Thu, 6 Aug 2009 14:58:00 +0000 (10:58 -0400)]
DO NOT MERGE adb: Remove adbd from simulator build.
It no longer compiles without recent kernel headers.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Wed, 5 Aug 2009 00:37:51 +0000 (20:37 -0400)]
DO NOT MERGE cherry-pick "adb reboot" from master:
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>
Android (Google) Code Review [Fri, 7 Aug 2009 12:11:00 +0000 (05:11 -0700)]
Merge change 20354 into donut
* changes:
strip comments from event-log-tags on device
Doug Zongker [Thu, 6 Aug 2009 23:43:47 +0000 (16:43 -0700)]
strip comments from event-log-tags on device
This saves about 8k from the system image.
Bug:
2036961
San Mehat [Thu, 6 Aug 2009 21:13:35 +0000 (14:13 -0700)]
rootdir: init.rc: Bump up background cpu shares to 5.0%
Signed-off-by: San Mehat <san@google.com>
Shin-ichiro KAWASAKI [Tue, 4 Aug 2009 10:14:22 +0000 (19:14 +0900)]
added SuperH atomic support to libcutils
Jean-Baptiste Queru [Mon, 3 Aug 2009 14:45:49 +0000 (07:45 -0700)]
merge from donut
Mike Lockwood [Thu, 30 Jul 2009 23:23:56 +0000 (16:23 -0700)]
adb: Another attempted workaround for the adb disconnect problem.
For adb shell commands (as well as shell based commands like logcat and bugreport) we now
batch USB writes into 4K chunks instead of sending small packets of data as they come in.
A timeout prevents us from blocking for more than 100ms when our 4K buffer is partially full.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Jean-Baptiste Queru [Wed, 29 Jul 2009 21:57:08 +0000 (14:57 -0700)]
merge from donut
Jean-Baptiste Queru [Sun, 26 Jul 2009 01:07:41 +0000 (18:07 -0700)]
Merge korg/donut into korg/master
Xavier Ducrohet [Fri, 24 Jul 2009 21:14:56 +0000 (14:14 -0700)]
Add support for Samsung and Motorola devices.
Also update the linux code. Some devices have more complex USB descriptors
which can't be parsed with the simple assumption of just skipping the
endpoint descriptors.
Doug Zongker [Thu, 23 Jul 2009 22:18:34 +0000 (15:18 -0700)]
install recovery image using patch mechanism
With the corresponding change in build/tools, the recovery image is
installed via a shell script that is emitted by the OTA builder.
San Mehat [Thu, 16 Jul 2009 17:44:15 +0000 (10:44 -0700)]
vold: If we're bootstrapping, don't automatically mount the SD card. Also fixes some
error display bugs (our printf doesnt support %m)
Signed-off-by: San Mehat <san@google.com>
San Mehat [Thu, 16 Jul 2009 16:34:53 +0000 (09:34 -0700)]
vold: vfat: Run up to 3 passes of the disk checker when the checker
indicates the FS has been modified. Also create LOST.DIR if it doesn't
exist on mount.
Signed-off-by: San Mehat <san@google.com>
San Mehat [Thu, 16 Jul 2009 14:25:57 +0000 (07:25 -0700)]
vold: Allow a damaged volume to be re-evaluated for mounting
Signed-off-by: San Mehat <san@google.com>
Android (Google) Code Review [Mon, 13 Jul 2009 04:22:36 +0000 (21:22 -0700)]
Merge change 6738 into donut
* changes:
rootdir: Remove ip-up-vpn script, which is replaced by an executable.
Chia-chi Yeh [Fri, 10 Jul 2009 04:27:09 +0000 (12:27 +0800)]
rootdir: Remove ip-up-vpn script, which is replaced by an executable.
Mike Lockwood [Fri, 10 Jul 2009 00:07:10 +0000 (20:07 -0400)]
adb: Increment ADB_SERVER_VERSION
It was pointed out that we should have done this when we added the "adb root" command.
And doing this will also force people to pick up the recent Linux USB serial number fix.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Wed, 8 Jul 2009 22:42:08 +0000 (18:42 -0400)]
init.rc: Fix commands for allowing the system_server to access wpa_supplicant.conf
The touch command does not exist, and the chown commands are unnecessary because
the system_server is in the WIFI group.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Wed, 8 Jul 2009 13:43:49 +0000 (09:43 -0400)]
adb: Use correct language ID when retrieving USB serial number.
Fixes http://code.google.com/p/android/issues/detail?id=2609
Signed-off-by: Mike Lockwood <lockwood@android.com>
Kenny Root [Mon, 8 Jun 2009 19:40:30 +0000 (14:40 -0500)]
Fix typo in adb commandline help
Android developers are not expected to have PDP-11s.
Mike Lockwood [Wed, 8 Jul 2009 13:43:49 +0000 (09:43 -0400)]
adb: Use correct language ID when retrieving USB serial number.
Fixes http://code.google.com/p/android/issues/detail?id=2609
Signed-off-by: Mike Lockwood <lockwood@android.com>
San Mehat [Mon, 6 Jul 2009 18:33:45 +0000 (11:33 -0700)]
vold: Change the disk formatter we use + fix commandline argument creation
Signed-off-by: San Mehat <san@google.com>
San Mehat [Mon, 6 Jul 2009 18:10:03 +0000 (11:10 -0700)]
toolbox: mkdosfs: Imported new 'newfs_msdos' updated disk formatter
Signed-off-by: San Mehat <san@google.com>
Amith Yamasani [Thu, 2 Jul 2009 19:08:13 +0000 (12:08 -0700)]
Set the permissions of wifi supplicant file so that system can access it.
Create the required directories and set the correct owner and permissions.
Android (Google) Code Review [Wed, 1 Jul 2009 02:37:05 +0000 (19:37 -0700)]
Merge change 5852 into donut
* changes:
rootdir: Modify init.rc to run mtpd/racoon as a non-root user.
San Mehat [Wed, 1 Jul 2009 01:15:09 +0000 (18:15 -0700)]
vold: Kill logspam
Signed-off-by: San Mehat <san@google.com>
Chia-chi Yeh [Tue, 30 Jun 2009 23:06:47 +0000 (07:06 +0800)]
rootdir: Modify init.rc to run mtpd/racoon as a non-root user.
Note that this change requires a new prebuilt kernel for AID_NET_ADMIN.
Dima Zavin [Mon, 29 Jun 2009 22:50:20 +0000 (15:50 -0700)]
toolbox: Fix uninitalized stack variable in mount.
Signed-off-by: Dima Zavin <dima@android.com>
Android (Google) Code Review [Mon, 29 Jun 2009 21:23:54 +0000 (14:23 -0700)]
Merge change 5662 into donut
* changes:
toolbox: Revise route utility.
Chia-chi Yeh [Mon, 29 Jun 2009 19:54:08 +0000 (03:54 +0800)]
toolbox: Revise route utility.
Add copyright header.
Returns errno when something goes wrong. Otherwise returns 0.
When the route entry exists, treat it as a success.
San Mehat [Mon, 29 Jun 2009 15:47:43 +0000 (08:47 -0700)]
init: Enable sched_yield() compatability mode on boot.
In CFS, the (somewhat undefined) behavior of sched_yield() changed.
See: http://kerneltrap.org/Linux/CFS_and_sched_yield
This change enables 'compat' mode for sched_yield()
Signed-off-by: San Mehat <san@google.com>
San Mehat [Sat, 27 Jun 2009 16:59:46 +0000 (09:59 -0700)]
vold: Force formatting of cards to FAT32
Signed-off-by: San Mehat <san@google.com>
Chia-chi Yeh [Fri, 26 Jun 2009 23:38:50 +0000 (07:38 +0800)]
rootdir: Obsolete ppp/peers/common and racoon/racoon.conf.
Android (Google) Code Review [Fri, 26 Jun 2009 22:21:00 +0000 (15:21 -0700)]
Merge change 4728 into donut
* changes:
Add device, property, directory, and file permissions for VPN.
Android (Google) Code Review [Fri, 26 Jun 2009 22:19:39 +0000 (15:19 -0700)]
Merge change 4592 into donut
* changes:
rootdir: Remove gprs/pppd related scripts.
Android (Google) Code Review [Fri, 26 Jun 2009 03:49:36 +0000 (20:49 -0700)]
Merge change 5455 into donut
* changes:
Add new PPP IPCP script for VPN.
Hung-ying Tyan [Fri, 26 Jun 2009 00:11:59 +0000 (08:11 +0800)]
Add new PPP IPCP script for VPN.
San Mehat [Thu, 25 Jun 2009 20:34:16 +0000 (13:34 -0700)]
vold: Logging to catch when the disk checker crashes
(could happen due to a really messed up card)
Signed-off-by: San Mehat <san@google.com>
San Mehat [Thu, 25 Jun 2009 20:33:23 +0000 (13:33 -0700)]
vold: Fix bug where logwrapper would pass data to LOG() in the format field,
which caused vsprintf to process format characters in the string.
Signed-off-by: San Mehat <san@google.com>
San Mehat [Thu, 25 Jun 2009 00:56:03 +0000 (17:56 -0700)]
vold: Switch vfat fsck tools
Signed-off-by: San Mehat <san@google.com>
San Mehat [Mon, 22 Jun 2009 17:39:36 +0000 (10:39 -0700)]
nexus: Rename onInterfaceStarted -> onInterfaceConnected and add Dhcp start/stop control
Signed-off-by: San Mehat <san@google.com>
San Mehat [Mon, 22 Jun 2009 17:37:54 +0000 (10:37 -0700)]
nexus: Add skeleton for DhcpClient
Signed-off-by: San Mehat <san@google.com>
Chia-chi Yeh [Fri, 19 Jun 2009 06:59:08 +0000 (14:59 +0800)]
Add device, property, directory, and file permissions for VPN.
Chia-chi Yeh [Thu, 18 Jun 2009 09:18:51 +0000 (17:18 +0800)]
rootdir: Remove gprs/pppd related scripts.
vpn related scripts will be updated in the next change.