0xdroid:system_core.git
8 years agosystem/core: vold: Change permission of external storage device nodes android-1.6_r1 android-1.6_r1.1 android-1.6_r1.2 android-sdk-1.6-docs_r1 android-sdk-1.6_r1 android-sdk-tools_r2 beagle-donut-startpoint
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>
8 years agoBUG 2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDK
Raphael [Tue, 11 Aug 2009 18:08:45 +0000 (11:08 -0700)]
BUG 2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDK

8 years agoDO NOT MERGE adb: Remove adbd from simulator build.
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>
8 years agoDO NOT MERGE cherry-pick "adb reboot" from master:
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>
8 years agoMerge change 20354 into donut
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

8 years agostrip 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

8 years agorootdir: init.rc: Bump up background cpu shares to 5.0%
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>
8 years agoadb: Another attempted workaround for the adb disconnect problem.
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>
8 years agoAdd support for Samsung and Motorola devices.
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.

8 years agoinstall recovery image using patch mechanism
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.

8 years agovold: If we're bootstrapping, don't automatically mount the SD card. Also fixes some
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>
8 years agovold: vfat: Run up to 3 passes of the disk checker when the checker
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>
8 years agovold: Allow a damaged volume to be re-evaluated for mounting
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>
8 years agoMerge change 6738 into donut
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.

8 years agorootdir: 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.

8 years agoadb: Increment ADB_SERVER_VERSION
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>
8 years agoinit.rc: Fix commands for allowing the system_server to access wpa_supplicant.conf
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>
8 years agoFix typo in adb commandline help
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.

8 years agoadb: Use correct language ID when retrieving USB serial number.
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>
8 years agovold: Change the disk formatter we use + fix commandline argument creation
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>
8 years agotoolbox: mkdosfs: Imported new 'newfs_msdos' updated disk formatter
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>
8 years agoSet the permissions of wifi supplicant file so that system can access it.
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.

8 years agoMerge change 5852 into donut
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.

8 years agovold: Kill logspam
San Mehat [Wed, 1 Jul 2009 01:15:09 +0000 (18:15 -0700)]
vold: Kill logspam

Signed-off-by: San Mehat <san@google.com>
8 years agorootdir: Modify init.rc to run mtpd/racoon as a non-root user.
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.

8 years agotoolbox: Fix uninitalized stack variable in mount.
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>
8 years agoMerge change 5662 into donut
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.

8 years agotoolbox: 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.

8 years agoinit: Enable sched_yield() compatability mode on boot.
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>
8 years agovold: Force formatting of cards to FAT32
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>
8 years agorootdir: Obsolete ppp/peers/common and racoon/racoon.conf.
Chia-chi Yeh [Fri, 26 Jun 2009 23:38:50 +0000 (07:38 +0800)]
rootdir: Obsolete ppp/peers/common and racoon/racoon.conf.

8 years agoMerge change 4728 into donut
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.

8 years agoMerge change 4592 into donut
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.

8 years agoMerge change 5455 into donut
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.

8 years agoAdd 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.

8 years agovold: Logging to catch when the disk checker crashes
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>
8 years agovold: Fix bug where logwrapper would pass data to LOG() in the format field,
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>
8 years agovold: Switch vfat fsck tools
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>
8 years agonexus: Rename onInterfaceStarted -> onInterfaceConnected and add Dhcp start/stop...
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>
8 years agonexus: Add skeleton for DhcpClient
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>
8 years agoAdd device, property, directory, and file permissions for VPN.
Chia-chi Yeh [Fri, 19 Jun 2009 06:59:08 +0000 (14:59 +0800)]
Add device, property, directory, and file permissions for VPN.

8 years agorootdir: Remove gprs/pppd related scripts.
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.

8 years agoinit: Bump up the max cpu bandwidth shares ratio for background.
San Mehat [Wed, 17 Jun 2009 00:23:22 +0000 (17:23 -0700)]
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>
8 years agonexus: Fix SupplicantStatus decoding
San Mehat [Tue, 16 Jun 2009 19:01:50 +0000 (12:01 -0700)]
nexus: Fix SupplicantStatus decoding

Signed-off-by: San Mehat <san@google.com>
8 years agonexus: Less verbosity in TiwlanEventListener for now
San Mehat [Tue, 16 Jun 2009 19:01:24 +0000 (12:01 -0700)]
nexus: Less verbosity in TiwlanEventListener for now

Signed-off-by: San Mehat <san@google.com>
8 years agonexus: Add TiwlanEventListener to makefile
San Mehat [Tue, 16 Jun 2009 17:51:39 +0000 (10:51 -0700)]
nexus: Add TiwlanEventListener to makefile

Signed-off-by: San Mehat <san@google.com>
8 years agonexus: Initialize frequency in SupplicantAssociatingEvent constructor
San Mehat [Tue, 16 Jun 2009 17:51:14 +0000 (10:51 -0700)]
nexus: Initialize frequency in SupplicantAssociatingEvent constructor

Signed-off-by: San Mehat <san@google.com>
8 years agonexus: Add some logging output to WifiController
San Mehat [Tue, 16 Jun 2009 17:50:47 +0000 (10:50 -0700)]
nexus: Add some logging output to WifiController

Signed-off-by: San Mehat <san@google.com>
8 years agonexus: Add TiwlanEventListener for reading driver events directly
San Mehat [Tue, 16 Jun 2009 17:50:06 +0000 (10:50 -0700)]
nexus: Add TiwlanEventListener for reading driver events directly

Signed-off-by: San Mehat <san@google.com>
8 years agoMerge change 4228 into donut
Android (Google) Code Review [Mon, 15 Jun 2009 21:40:51 +0000 (14:40 -0700)]
Merge change 4228 into donut

* changes:
  Nexus: Clean up supplicant events, protocol, and continue plumbing

8 years agoMerge change 4227 into donut
Android (Google) Code Review [Mon, 15 Jun 2009 21:40:32 +0000 (14:40 -0700)]
Merge change 4227 into donut

* changes:
  nexctl: Refactor so Nexus can be tested from scripts easily.

8 years agoMerge change 4226 into donut
Android (Google) Code Review [Mon, 15 Jun 2009 21:40:15 +0000 (14:40 -0700)]
Merge change 4226 into donut

* changes:
  libsysutils: Move to a null terminated string protocol using space as a field separator.

8 years agoNexus: Clean up supplicant events, protocol, and continue plumbing
San Mehat [Mon, 15 Jun 2009 21:10:44 +0000 (14:10 -0700)]
Nexus: Clean up supplicant events, protocol, and continue plumbing

    - Create SupplicantEvent classes for events
    - New SupplicantEventFactory for creating events
    - Extract Controller -> NetworkManager callbacks into IControllerHandler
    - Move ScanResult handling from Supplicant -> WifiController
    - Plumb more 'onConnected()' code
    - Instead of re-creating NetworkList every-time, merge in
      new entries
    - Extract SupplicantListener -> Supplicant callbacks into
      ISupplicantEventHandler
    - Move SupplicantListener callback handling to WifiController
    - Add unlocked version of lookupNetwork()
    - Save supplicant config after setting a WifiNetwork variable
    - Move property registration from WifiNetwork -> Supplicant
    - Change wifi enable broadcast messages
    - Add 3 new events: 'onAssociating', 'onAssociated', 'onConnectionTimeout'
    - Add support for handling KeyManagement

Signed-off-by: San Mehat <san@google.com>
8 years agonexctl: Refactor so Nexus can be tested from scripts easily.
San Mehat [Mon, 15 Jun 2009 21:07:28 +0000 (14:07 -0700)]
nexctl: Refactor so Nexus can be tested from scripts easily.

Also adds 'monitor' mode for monitoring broadcasts

Signed-off-by: San Mehat <san@google.com>
8 years agolibsysutils: Move to a null terminated string protocol using space as a field separator.
San Mehat [Mon, 15 Jun 2009 21:06:03 +0000 (14:06 -0700)]
libsysutils: Move to a null terminated string protocol using space as a field separator.

    Also removes some debugging

Signed-off-by: San Mehat <san@google.com>
8 years agoremove 3G timeout values from init.rc, this should be device specific
Mike Chan [Fri, 12 Jun 2009 20:55:15 +0000 (13:55 -0700)]
remove 3G timeout values from init.rc, this should be device specific

Signed-off-by: Mike Chan <mike@android.com>
8 years agoMerge change 4051 into donut
Android (Google) Code Review [Fri, 12 Jun 2009 15:36:57 +0000 (08:36 -0700)]
Merge change 4051 into donut

* changes:
  vold: Give logwrapper the ability to put jobs into the background sched group.

8 years agovold: Give logwrapper the ability to put jobs into the background sched group.
San Mehat [Fri, 12 Jun 2009 14:39:52 +0000 (07:39 -0700)]
vold: Give logwrapper the ability to put jobs into the background sched group.

   Also set disk check/format execution to background.

Signed-off-by: San Mehat <san@google.com>
8 years agoAdd the ipcp scripts for pppd and racoon configuration for ipsec-tools.
Chung-yih Wang [Fri, 12 Jun 2009 14:35:42 +0000 (22:35 +0800)]
Add the ipcp scripts for pppd and racoon configuration for ipsec-tools.

1. add ip-up/ip-down script
2. add /etc/ppp/peers/common
3. add /etc/racoon/racoon.conf

8 years agoAdd a note to event-log-tags listing the log tag range
Dan Egnor [Thu, 11 Jun 2009 22:28:59 +0000 (15:28 -0700)]
Add a note to event-log-tags listing the log tag range
reserved for partner use, etc..

8 years agoMerge change 3951 into donut
Android (Google) Code Review [Thu, 11 Jun 2009 21:45:58 +0000 (14:45 -0700)]
Merge change 3951 into donut

* changes:
  Revert "adb: Workaround for adb disconnect problem."

8 years agoRevert "adb: Workaround for adb disconnect problem."
Mike Lockwood [Thu, 11 Jun 2009 21:34:19 +0000 (17:34 -0400)]
Revert "adb: Workaround for adb disconnect problem."

This reverts commit e38a31e305b0944c0cd1ae782e47e3145d731f0f.

This change had the unfortunate side effect of breaking ctrl-C
when executing "adb shell <command>"

Signed-off-by: Mike Lockwood <lockwood@android.com>
8 years agoinit.rc: Set default cpu shares for background scheduler group to < 1%
San Mehat [Wed, 10 Jun 2009 17:49:57 +0000 (10:49 -0700)]
init.rc: Set default cpu shares for background scheduler group to < 1%

Signed-off-by: San Mehat <san@google.com>
8 years agoAdd VPN and Keystore services and data directories.
Chung-yih Wang [Mon, 1 Jun 2009 11:04:05 +0000 (19:04 +0800)]
Add VPN and Keystore services and data directories.

-- changed the default mode to 0770 for keystore with the new user 'keystore'.
-- add the keystore service providing the basic key lookup/install/remove, but
  only keystore user can access the key content.

8 years agoAdd an OOM adjustment category for apps undergoing backup
Christopher Tate [Sat, 6 Jun 2009 01:20:08 +0000 (18:20 -0700)]
Add an OOM adjustment category for apps undergoing backup

In this initial commit, apps undergoing backup are treated equivalently
to apps hosting services:  more important than anything other than the
foreground app.

8 years agoMerge change 3008 into donut
Android (Google) Code Review [Wed, 3 Jun 2009 05:10:40 +0000 (22:10 -0700)]
Merge change 3008 into donut

* changes:
  adb: Workaround for adb disconnect problem.

8 years agoadb: Workaround for adb disconnect problem.
Mike Lockwood [Wed, 3 Jun 2009 04:46:58 +0000 (21:46 -0700)]
adb: Workaround for adb disconnect problem.

For non-interactive adb shell commands, batch USB writes into 4K chunks
instead of sending small packets of data as they come in.
Add a timeout so we do not block for more than 200ms when our 4K buffer is partially full.

Signed-off-by: Mike Lockwood <lockwood@android.com>
8 years agoMerge commit '66e4691ad097cfc37bdb7d3b1705ee9132f3234e' into donut
The Android Open Source Project [Tue, 2 Jun 2009 23:39:12 +0000 (16:39 -0700)]
Merge commit '66e4691ad097cfc37bdb7d3b1705ee9132f3234e' into donut

8 years agoAI 149490: Add support for 3rd party USB Vendor.
Xavier Ducrohet [Tue, 2 Jun 2009 19:03:55 +0000 (12:03 -0700)]
AI 149490: Add support for 3rd party USB Vendor.
  BUG=1890147

Automated import of CL 149490

8 years agoRevert "Mount SD card synchronous. This is an experimental change intended to"
San Mehat [Tue, 2 Jun 2009 17:27:52 +0000 (10:27 -0700)]
Revert "Mount SD card synchronous. This is an experimental change intended to"

This reverts commit 23eaecf02dedf0a5a25e1cdbfdfc7b8c70c17a56.

8 years agonexus: Validate that priority and KeyManagement are set before enabling a network
San Mehat [Mon, 1 Jun 2009 17:04:21 +0000 (10:04 -0700)]
nexus: Validate that priority and KeyManagement are set before enabling a network

Signed-off-by: San Mehat <san@google.com>
8 years agonexus: Use interface for handling Supplicant events
San Mehat [Mon, 1 Jun 2009 15:38:45 +0000 (08:38 -0700)]
nexus: Use interface for handling Supplicant events

Signed-off-by: San Mehat <san@google.com>
8 years agonexus: Remove dependancy on libutil
San Mehat [Mon, 1 Jun 2009 15:38:16 +0000 (08:38 -0700)]
nexus: Remove dependancy on libutil

Signed-off-by: San Mehat <san@google.com>
8 years agoMerge change 2875 into donut
Android (Google) Code Review [Tue, 2 Jun 2009 12:28:47 +0000 (05:28 -0700)]
Merge change 2875 into donut

* changes:
  Added ashmem_get_size_region() function.

8 years agoMerge change 2897 into donut
Android (Google) Code Review [Tue, 2 Jun 2009 02:00:49 +0000 (19:00 -0700)]
Merge change 2897 into donut

* changes:
  fix 1650170 pixelflinger depends on KeyedVector.h, etc

8 years agoAdded ashmem_get_size_region() function.
Bjorn Bringert [Mon, 1 Jun 2009 23:41:09 +0000 (00:41 +0100)]
Added ashmem_get_size_region() function.

This is needed by the MemoryFile changes in
https://android-git.corp.google.com/g/2714
where it is used to find out whether a file descriptor
refers to an ashmem region.

8 years agofix 1650170 pixelflinger depends on KeyedVector.h, etc
Mathias Agopian [Mon, 1 Jun 2009 22:27:46 +0000 (15:27 -0700)]
fix 1650170 pixelflinger depends on KeyedVector.h, etc

8 years agonexus: Refactor some of the create/remove network path and add code for
San Mehat [Fri, 22 May 2009 22:36:13 +0000 (15:36 -0700)]
nexus: Refactor some of the create/remove network path and add code for
       retrieving network lists from supplicant
nexus: Rework properties
nexus: Implement wifi network enable/disable and add some error checking
nexus: Add some TODOs
nexus: Whitespace cleanup
nexus: Add bindings between controllers and network interfaces
nexus: Add properties for InterfaceConfig
nexus: Fix a few conversion bugs in InterfaceConfig

Signed-off-by: San Mehat <san@google.com>
8 years agonexus: Add ListCmd to CommandListener
San Mehat [Fri, 22 May 2009 20:58:06 +0000 (13:58 -0700)]
nexus: Add ListCmd to CommandListener

Signed-off-by: San Mehat <san@google.com>
nexus: Add InterfaceConfig and flesh out some more flow

Signed-off-by: San Mehat <san@google.com>
8 years agolibsysutils: Fix command argument passing bug + whitespace cleanup
San Mehat [Tue, 26 May 2009 22:18:25 +0000 (15:18 -0700)]
libsysutils: Fix command argument passing bug + whitespace cleanup

Signed-off-by: San Mehat <san@google.com>
8 years agoExpose the stable/frozen log-related definitions of <cutils/logd.h> into a new header...
David 'Digit' Turner [Fri, 29 May 2009 12:45:04 +0000 (14:45 +0200)]
Expose the stable/frozen log-related definitions of <cutils/logd.h> into a new header: <android/log.h>

This is in order to expose the correponding functions in the 1.5 Native Development Kit, to allow
applicative native code to send messages to the log.

8 years agoadd support and proper permissions for /dev/msm_camera/
Iliyan Malchev [Fri, 1 May 2009 17:25:05 +0000 (10:25 -0700)]
add support and proper permissions for /dev/msm_camera/

Signed-off-by: Iliyan Malchev <malchev@google.com>
8 years agoMerge change 2437 into donut
Android (Google) Code Review [Tue, 26 May 2009 15:29:35 +0000 (08:29 -0700)]
Merge change 2437 into donut

* changes:
  Modify init.goldfish.sh to launch the 'qemu-props' program when the emulator boots up. Its purpose is to receive a list of system property (name,value) pairs and set them on launch.

8 years agoModify init.goldfish.sh to launch the 'qemu-props' program when the emulator boots up.
David 'Digit' Turner [Tue, 26 May 2009 11:16:59 +0000 (13:16 +0200)]
Modify init.goldfish.sh to launch the 'qemu-props' program when the emulator boots up.
Its purpose is to receive a list of system property (name,value) pairs and set them on launch.

8 years agoadb: Allow enabling of device side adbd logging with a persistent system property.
Mike Lockwood [Mon, 25 May 2009 22:17:55 +0000 (18:17 -0400)]
adb: Allow enabling of device side adbd logging with a persistent system property.

To enable logging, set the property persist.adb.trace_mask to a hex value
containing the bitmask for adb_trace_mask (see the TRACE_* enum values in adb.h).
This will result in adb writing log output to a file in /data/adb/
No logging will occur if persist.adb.trace_mask is not set or has a value
that cannot be parsed as a hex integer.
The property is read once only at startup, so you must reboot or restart adbd
for changes in the property to take effect.

Signed-off-by: Mike Lockwood <lockwood@android.com>
8 years agoadb: Add adbd to the AID_SDCARD_RW group to allow writing to the SD card.
Mike Lockwood [Mon, 25 May 2009 17:52:00 +0000 (13:52 -0400)]
adb: Add adbd to the AID_SDCARD_RW group to allow writing to the SD card.

Signed-off-by: Mike Lockwood <lockwood@android.com>
9 years agoMerge change 2282 into donut
Android (Google) Code Review [Fri, 22 May 2009 22:28:51 +0000 (15:28 -0700)]
Merge change 2282 into donut

* changes:
  Support for 3rd party USB Vendor IDs in adb.

9 years agoSupport for 3rd party USB Vendor IDs in adb.
Xavier Ducrohet [Fri, 22 May 2009 00:47:43 +0000 (17:47 -0700)]
Support for 3rd party USB Vendor IDs in adb.

Vendor IDs are read from ~/.android/adb_usb.ini. The format is very simple:
1 number per line. First number is ID count, followed by the ID themselves.
Lines starting with # are considered comments.

Other misc changes: moved VENDOR_ID_* to usb_vendors.c to prevent direct
access. Made transport_usb.c reuse the USB constant introduced in usb_osx
(moved them to adb.h)

9 years agoMerge change 2135 into donut
Android (Google) Code Review [Fri, 22 May 2009 15:43:08 +0000 (08:43 -0700)]
Merge change 2135 into donut

* changes:
  nexus: Switch controllers to use abstracted properties and refactor command protocol

9 years agonexus: Switch controllers to use abstracted properties and refactor command protocol
San Mehat [Wed, 20 May 2009 22:28:43 +0000 (15:28 -0700)]
nexus: Switch controllers to use abstracted properties and refactor command protocol

Also fixes a select() bug and removes debugging

Signed-off-by: San Mehat <san@google.com>
nexus: fix whitespace

9 years agoMerge change 2166 into donut
Android (Google) Code Review [Fri, 22 May 2009 02:33:40 +0000 (19:33 -0700)]
Merge change 2166 into donut

* changes:
  add bootanimation service to init.rc

9 years agoadd bootanimation service to init.rc
Mathias Agopian [Thu, 21 May 2009 01:09:51 +0000 (18:09 -0700)]
add bootanimation service to init.rc

9 years agodon't use cdefs.h as it breaks the windows build.
Mathias Agopian [Thu, 21 May 2009 20:08:39 +0000 (13:08 -0700)]
don't use cdefs.h as it breaks the windows build.

9 years agoPreparation work for adb to support USB vendor Ids provided by SDK add-ons.
Xavier Ducrohet [Thu, 21 May 2009 00:33:53 +0000 (17:33 -0700)]
Preparation work for adb to support USB vendor Ids provided by SDK add-ons.

Added usb_vendors.* which handles creating (and deleting) a list of vendor ids.
This list is meant to be used everywhere the built-in lists (usb_osx), or the
built-in vendor IDs (transport_usb)  were used.

For now the list is only built with the built-in VENDOR_ID_*. Next step
is to read a small file created from all the SDK add-on.

Other misc changes: made is_adb_interface present only if ADB_HOST is true
to prevent accessing a list that doesn't exist (usb_vendors is only
compiled for the host version of adb).

9 years agoMerge change 2162 into donut
Android (Google) Code Review [Thu, 21 May 2009 02:31:34 +0000 (19:31 -0700)]
Merge change 2162 into donut

* changes:
  Mount SD card synchronous. This is an experimental change intended to give us another data point on the system performance regressions that seem to revolved around SD card access.

9 years agoMount SD card synchronous. This is an experimental change intended to
Dave Sparks [Thu, 21 May 2009 02:12:58 +0000 (19:12 -0700)]
Mount SD card synchronous. This is an experimental change intended to
give us another data point on the system performance regressions that
seem to revolved around SD card access.

9 years agolibsysutils: const correctness fixes + remove some debugging
San Mehat [Wed, 20 May 2009 22:27:14 +0000 (15:27 -0700)]
libsysutils: const correctness fixes + remove some debugging

Signed-off-by: San Mehat <san@google.com>
9 years agonexus: OpenVPN: Instead of creating / using a configfile, use the new
San Mehat [Wed, 20 May 2009 17:15:23 +0000 (10:15 -0700)]
nexus: OpenVPN: Instead of creating / using a configfile, use the new
dynamic service argument support so we don't need one :)

Signed-off-by: San Mehat <san@google.com>
nexus: fix property max

9 years agoMerge change 2077 into donut
Android (Google) Code Review [Wed, 20 May 2009 23:21:29 +0000 (16:21 -0700)]
Merge change 2077 into donut

* changes:
  adb: adbd no longer disables OOM and now sets children's OOM adjustment to zero

9 years agomove native_handle stuff from master_gl
Mathias Agopian [Wed, 20 May 2009 21:16:34 +0000 (14:16 -0700)]
move native_handle stuff from master_gl