Commit graph

210 commits

Author SHA1 Message Date
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
Android Code Review
41ced0261c 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.
2009-08-21 14:50:15 -07:00
San Mehat
e36c153e25 system/core: vold: Change permission of external storage device nodes
Signed-off-by: San Mehat <san@google.com>
2009-08-21 09:38:51 -07:00
Xinyu Chen
e3530471bf 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>
2009-08-16 22:19:36 +08:00
Ben Winslow
227c74af84 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.
2009-08-15 10:09:34 -04:00
Jean-Baptiste Queru
1f7aceb222 merge from donut 2009-08-03 07:45:49 -07:00
Mike Lockwood
cc1de48dcd 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>
2009-07-30 16:23:56 -07:00
Jean-Baptiste Queru
a86835965e merge from donut 2009-07-29 14:57:08 -07:00
Jean-Baptiste Queru
96d58f4f52 Merge korg/donut into korg/master 2009-07-25 18:07:41 -07:00
Xavier Ducrohet
de6f62a609 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.
2009-07-24 14:42:27 -07:00
Doug Zongker
d52f54c455 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.
2009-07-23 15:18:34 -07:00
San Mehat
1f27821568 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>
2009-07-16 11:41:33 -07:00
San Mehat
d8221d9869 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>
2009-07-16 09:34:53 -07:00
San Mehat
b6e70d8778 vold: Allow a damaged volume to be re-evaluated for mounting
Signed-off-by: San Mehat <san@google.com>
2009-07-16 07:29:35 -07:00
Android (Google) Code Review
160d4b0509 Merge change 6738 into donut
* changes:
  rootdir: Remove ip-up-vpn script, which is replaced by an executable.
2009-07-12 21:22:36 -07:00
Chia-chi Yeh
1219448dc7 rootdir: Remove ip-up-vpn script, which is replaced by an executable. 2009-07-10 15:51:01 +08:00
Mike Lockwood
7bf68842d7 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>
2009-07-09 20:09:10 -04:00
Mike Lockwood
48d116edf9 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>
2009-07-08 20:55:36 -04:00
Mike Lockwood
dc9d52f35d 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>
2009-07-08 12:07:22 -04:00
Kenny Root
c989199ccf Fix typo in adb commandline help
Android developers are not expected to have PDP-11s.
2009-07-08 12:05:05 -04:00
Mike Lockwood
3d9b265b7d 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>
2009-07-08 10:28:38 -04:00
San Mehat
b3edd0720e vold: Change the disk formatter we use + fix commandline argument creation
Signed-off-by: San Mehat <san@google.com>
2009-07-06 11:33:45 -07:00
San Mehat
72eead43c7 toolbox: mkdosfs: Imported new 'newfs_msdos' updated disk formatter
Signed-off-by: San Mehat <san@google.com>
2009-07-06 11:10:03 -07:00
Amith Yamasani
eefef3234a Set the permissions of wifi supplicant file so that system can access it.
Create the required directories and set the correct owner and permissions.
2009-07-02 12:08:13 -07:00
Android (Google) Code Review
5c49135b03 Merge change 5852 into donut
* changes:
  rootdir: Modify init.rc to run mtpd/racoon as a non-root user.
2009-06-30 19:37:05 -07:00
San Mehat
9ad18f0576 vold: Kill logspam
Signed-off-by: San Mehat <san@google.com>
2009-06-30 18:15:09 -07:00
Chia-chi Yeh
51afbf5838 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.
2009-07-01 07:06:47 +08:00
Dima Zavin
383688b52f toolbox: Fix uninitalized stack variable in mount.
Signed-off-by: Dima Zavin <dima@android.com>
2009-06-29 15:53:22 -07:00
Android (Google) Code Review
5e924468cd Merge change 5662 into donut
* changes:
  toolbox: Revise route utility.
2009-06-29 14:23:54 -07:00
Chia-chi Yeh
4a1465feff 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.
2009-06-30 04:56:35 +08:00
San Mehat
4322f2d74f 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>
2009-06-29 08:47:43 -07:00
San Mehat
9f9c951ad3 vold: Force formatting of cards to FAT32
Signed-off-by: San Mehat <san@google.com>
2009-06-27 09:59:46 -07:00
Chia-chi Yeh
3860b6e67c rootdir: Obsolete ppp/peers/common and racoon/racoon.conf. 2009-06-27 07:38:50 +08:00
Android (Google) Code Review
abb0855010 Merge change 4728 into donut
* changes:
  Add device, property, directory, and file permissions for VPN.
2009-06-26 15:21:00 -07:00
Android (Google) Code Review
bbdab64ddd Merge change 4592 into donut
* changes:
  rootdir: Remove gprs/pppd related scripts.
2009-06-26 15:19:39 -07:00
Android (Google) Code Review
a1140ad45d Merge change 5455 into donut
* changes:
  Add new PPP IPCP script for VPN.
2009-06-25 20:49:36 -07:00
Hung-ying Tyan
34ccf656e2 Add new PPP IPCP script for VPN. 2009-06-26 08:11:59 +08:00
San Mehat
c3115b9ec2 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>
2009-06-25 13:34:16 -07:00
San Mehat
1537d4805e 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>
2009-06-25 13:33:23 -07:00
San Mehat
e7f444f329 vold: Switch vfat fsck tools
Signed-off-by: San Mehat <san@google.com>
2009-06-24 19:27:48 -07:00
San Mehat
d6c6796670 nexus: Rename onInterfaceStarted -> onInterfaceConnected and add Dhcp start/stop control
Signed-off-by: San Mehat <san@google.com>
2009-06-22 10:40:53 -07:00
San Mehat
54962e0fd6 nexus: Add skeleton for DhcpClient
Signed-off-by: San Mehat <san@google.com>
2009-06-22 10:40:48 -07:00
Chia-chi Yeh
88dc657d50 Add device, property, directory, and file permissions for VPN. 2009-06-19 15:53:28 +08:00
Chia-chi Yeh
abd54c1b78 rootdir: Remove gprs/pppd related scripts.
vpn related scripts will be updated in the next change.
2009-06-18 17:18:51 +08:00
San Mehat
bfa2f8e9b5 init: Bump up the max cpu bandwidth shares ratio for background.
New ratio is 1024/16 (1.5625% for background when cpu is under load)

Signed-off-by: San Mehat <san@google.com>
2009-06-16 18:33:37 -07:00
San Mehat
d0290eadc5 nexus: Fix SupplicantStatus decoding
Signed-off-by: San Mehat <san@google.com>
2009-06-16 12:01:50 -07:00
San Mehat
052403ebbe nexus: Less verbosity in TiwlanEventListener for now
Signed-off-by: San Mehat <san@google.com>
2009-06-16 12:01:24 -07:00
San Mehat
891cb2c135 nexus: Add TiwlanEventListener to makefile
Signed-off-by: San Mehat <san@google.com>
2009-06-16 10:51:39 -07:00
San Mehat
bbe92c370a nexus: Initialize frequency in SupplicantAssociatingEvent constructor
Signed-off-by: San Mehat <san@google.com>
2009-06-16 10:51:14 -07:00