Commit Graph

173 Commits

Author SHA1 Message Date
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
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
San Mehat 0f48658d20 nexus: Add some logging output to WifiController
Signed-off-by: San Mehat <san@google.com>
2009-06-16 10:50:47 -07:00
San Mehat 5fc4129fcb nexus: Add TiwlanEventListener for reading driver events directly
Signed-off-by: San Mehat <san@google.com>
2009-06-16 10:50:06 -07:00
Android (Google) Code Review 43c16197b2 Merge change 4228 into donut
* changes:
  Nexus: Clean up supplicant events, protocol, and continue plumbing
2009-06-15 14:40:51 -07:00
Android (Google) Code Review 2d0a6ca27c Merge change 4227 into donut
* changes:
  nexctl: Refactor so Nexus can be tested from scripts easily.
2009-06-15 14:40:32 -07:00
Android (Google) Code Review 12a26e310b Merge change 4226 into donut
* changes:
  libsysutils: Move to a null terminated string protocol using space as a field separator.
2009-06-15 14:40:15 -07:00
San Mehat 3aff2d1de5 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>
2009-06-15 14:20:02 -07:00
San Mehat 669a7011e7 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>
2009-06-15 14:07:28 -07:00
San Mehat c73a3a5771 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>
2009-06-15 14:06:03 -07:00
Mike Chan d709b58260 remove 3G timeout values from init.rc, this should be device specific
Signed-off-by: Mike Chan <mike@android.com>
2009-06-12 13:55:15 -07:00
Android (Google) Code Review 47c1d7344a Merge change 4051 into donut
* changes:
  vold: Give logwrapper the ability to put jobs into the background sched group.
2009-06-12 08:36:57 -07:00
San Mehat 825c27d239 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>
2009-06-12 07:39:52 -07:00
Chung-yih Wang 0bd9a9f5bc 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
2009-06-12 22:35:42 +08:00
Dan Egnor 2cf6cff71f Add a note to event-log-tags listing the log tag range
reserved for partner use, etc..
2009-06-11 15:28:59 -07:00
Android (Google) Code Review 34c342677e Merge change 3951 into donut
* changes:
  Revert "adb: Workaround for adb disconnect problem."
2009-06-11 14:45:58 -07:00