Commit graph

2235 commits

Author SHA1 Message Date
Ken Sumrall
849bf4e088 am 203bad59: Add the commands rm and rmdir to init.
* commit '203bad597fb4e46ddda051add28400070b5c3a5a':
  Add the commands rm and rmdir to init.
2011-01-18 18:40:13 -08:00
David 'Digit' Turner
75b9f6dc97 am 108d3d74: Merge "libsysutils: Handle EINTR in FrameworkClient.cpp" into honeycomb
* commit '108d3d74a805ad15d2cd2db47dad86f1082a59ba':
  libsysutils: Handle EINTR in FrameworkClient.cpp
2011-01-18 18:39:56 -08:00
David 'Digit' Turner
ebdbe206e8 am c7166971: Merge "libsysutils: Fix potential overwrites in FrameworkListener" into honeycomb
* commit 'c71669715320b90aafcc84d86068944149375cfa':
  libsysutils: Fix potential overwrites in FrameworkListener
2011-01-18 18:39:55 -08:00
David 'Digit' Turner
8667348ad8 am 9aae7b51: Merge "libsysutils: Fix race condition in SocketListener thread." into honeycomb
* commit '9aae7b5182c4cf46d629fa061e3c58d8730314da':
  libsysutils: Fix race condition in SocketListener thread.
2011-01-18 18:39:52 -08:00
David 'Digit' Turner
8252a7b3c2 am 292bb77c: Merge "libsysutils: Handle EINTR in SocketClient::sendData()" into honeycomb
* commit '292bb77cc3b145bca0f5cb31e1d3ce906455b0f3':
  libsysutils: Handle EINTR in SocketClient::sendData()
2011-01-18 18:39:50 -08:00
David 'Digit' Turner
bc8facc9bb am 706747e5: Merge "libsysutils: Fix wait loop in ServiceManager::start and ::stop" into honeycomb
* commit '706747e57b640da414cef542517241279d508c01':
  libsysutils: Fix wait loop in ServiceManager::start and ::stop
2011-01-18 18:39:47 -08:00
David 'Digit' Turner
0e2177d530 am f605b2a1: Merge "libsysutils: Handle EINTR in NetlinkListener" into honeycomb
* commit 'f605b2a1903241ceebecb22ae80f87ff8007c6e3':
  libsysutils: Handle EINTR in NetlinkListener
2011-01-18 18:39:45 -08:00
David 'Digit' Turner
5e4d60fbf5 am 68649564: Merge "libsysutils: Fix NetLinkEvent security issues." into honeycomb
* commit '6864956495c9dd5d07b10a8795cd23c0db20acbc':
  libsysutils: Fix NetLinkEvent security issues.
2011-01-18 18:39:42 -08:00
David 'Digit' Turner
794fb914be am eeeca4dd: rootdir: goldfish: Fix network route during emulation.
* commit 'eeeca4dd45899c20d4fc187c59bda58af43352f2':
  rootdir: goldfish: Fix network route during emulation.
2011-01-18 18:35:56 -08:00
Ken Sumrall
203bad597f Add the commands rm and rmdir to init.
rm only removes a single non-directory directory entry (no -r support)
rmdir removes a single empty directory

Change-Id: I49702b02ba98a177027b126268c2c2846f968195
2011-01-18 17:39:24 -08:00
David 'Digit' Turner
108d3d74a8 Merge "libsysutils: Handle EINTR in FrameworkClient.cpp" into honeycomb 2011-01-18 17:31:45 -08:00
David 'Digit' Turner
c716697153 Merge "libsysutils: Fix potential overwrites in FrameworkListener" into honeycomb 2011-01-18 17:31:40 -08:00
David 'Digit' Turner
9aae7b5182 Merge "libsysutils: Fix race condition in SocketListener thread." into honeycomb 2011-01-18 17:31:35 -08:00
David 'Digit' Turner
292bb77cc3 Merge "libsysutils: Handle EINTR in SocketClient::sendData()" into honeycomb 2011-01-18 17:31:31 -08:00
David 'Digit' Turner
706747e57b Merge "libsysutils: Fix wait loop in ServiceManager::start and ::stop" into honeycomb 2011-01-18 17:31:27 -08:00
David 'Digit' Turner
f605b2a190 Merge "libsysutils: Handle EINTR in NetlinkListener" into honeycomb 2011-01-18 17:31:20 -08:00
David 'Digit' Turner
6864956495 Merge "libsysutils: Fix NetLinkEvent security issues." into honeycomb 2011-01-18 17:31:14 -08:00
David 'Digit' Turner
af91e4ef09 libsysutils: Handle EINTR in FrameworkClient.cpp
+ get rid of strcpy + strcat calls.

Change-Id: I47778f3d14aa961474648cddf6510b761f124e74
2011-01-19 02:18:40 +01:00
David 'Digit' Turner
c6b0def5f0 libsysutils: Fix potential overwrites in FrameworkListener
+ Handle EINTR in read()

Change-Id: If7d486dd4fb5666ce16ef36dca5f417da23e0b73
2011-01-19 02:18:40 +01:00
David 'Digit' Turner
cf9e1003ce libsysutils: Fix race condition in SocketListener thread.
+ Handle EINTR in accept(), write() and select()
+ Fix a memory leak when deleting the mClients list
+ Fix typo in SocketListener.h

Change-Id: Ie68bb3e2dbefe0dfdaa22a5cd06a42dbc4c0f8aa
2011-01-19 02:18:40 +01:00
David 'Digit' Turner
af61509b50 libsysutils: Handle EINTR in SocketClient::sendData()
+ Improve allocation code in sendMsg(code,msg,addErrno)

Change-Id: Ib5fe84bec1a167c369e7ba759acea395e832f6b5
2011-01-19 02:18:40 +01:00
David 'Digit' Turner
af174f0039 libsysutils: Fix wait loop in ServiceManager::start and ::stop
Also check the service name length.

Change-Id: Iffb82aa9e71dd96c85c05c4e2016930f4847c1e8
2011-01-19 02:18:40 +01:00
David 'Digit' Turner
b59539d395 libsysutils: Handle EINTR in NetlinkListener
Change-Id: Id881a9ca0f0e54f7c78b3609120bedec00d6671c
2011-01-19 02:18:40 +01:00
David 'Digit' Turner
3311eea1d3 libsysutils: Fix NetLinkEvent security issues.
The issues were the following:
- The code in decode() didn't handle the degenerate case where the input buffer is full of '@'
- The code in decode() assumed the input buffer is properly zero-terminated.
- The code in decode() would not check that it doesn't overwrite the mParams[] array.
- The code in findParam() would check mParams[i] before checking the value of 'i'

Also remove un-necessary calls to strlen() at runtime.

Change-Id: I8acead959bd10d97c5380b08958fcb796248a010
2011-01-19 02:18:32 +01:00
David 'Digit' Turner
eeeca4dd45 rootdir: goldfish: Fix network route during emulation.
The net.eth0.gw system property is used by the ConnectivityService
to set the default route when it detects that 3G connectivity is
established. Because the property was undefined, the route was
unset which broke networking.

+ Format / document init.goldfish.sh

Change-Id: I1133cf6c093609300315cd0ea363c9e139b42521
2011-01-18 23:38:00 +01:00
David 'Digit' Turner
bb6e3e939b am 620a5401: am a42f152b: Merge "rootdir: Fix system emulation startup." into honeycomb
* commit '620a540128ace4514a5695bdfa94b9f409c7a605':
  rootdir: Fix system emulation startup.
2011-01-18 11:18:17 -08:00
David 'Digit' Turner
620a540128 am a42f152b: Merge "rootdir: Fix system emulation startup." into honeycomb
* commit 'a42f152b4ae365e2f8d232237a8aa0168061feb4':
  rootdir: Fix system emulation startup.
2011-01-18 11:15:09 -08:00
David 'Digit' Turner
a42f152b4a Merge "rootdir: Fix system emulation startup." into honeycomb 2011-01-18 11:08:04 -08:00
Mike Lockwood
ce132be609 am 5885ec1c: am 96e32dfe: Merge "sdcard: Fix lower case squashing for case insensitivity support." into honeycomb
* commit '5885ec1c2d8471b5d97bee50b20015e2791f2699':
  sdcard: Fix lower case squashing for case insensitivity support.
2011-01-18 09:46:20 -08:00
Mike Lockwood
5885ec1c2d am 96e32dfe: Merge "sdcard: Fix lower case squashing for case insensitivity support." into honeycomb
* commit '96e32dfe6c5cefa57d1b4ae19982fa1e50926e09':
  sdcard: Fix lower case squashing for case insensitivity support.
2011-01-18 09:43:56 -08:00
Mike Lockwood
96e32dfe6c Merge "sdcard: Fix lower case squashing for case insensitivity support." into honeycomb 2011-01-18 09:42:12 -08:00
Mike Lockwood
b94d320b1e sdcard: Fix lower case squashing for case insensitivity support.
The fuse layer in the kernel does not support case insensitive file systems.
But the sdcard daemon's fuse_lookup was returning the same file object for
different file names, which caused problems in the kernel fuse layer's dcache,
resulting in EBUSY errors if the same directory was opened twice under different
names differing only by case.

To fix this, the sdcard daemon will return different file objects for files or directories
that differ only by case. Now the squashing occurs only in the interaction between
the sdcard daemon and the underlying file system in /data/media, and sdcard maintains
the illusion for the kernel fuse layer that there are two separate files.

Example:  Suppose both /mnt/sdcard/foo.txt and /mnt/sdcard/FOO.TXT are opened.
Previously, the sdcard would squash this to a single node, and return the same
node to the kernel fuse implementation twice, and would open the underlying file
/data/media/foo.txt only once.   Now sdcard will create two separate nodes will open
/data/media/foo.txt twice, once for mnt/sdcard/foo.txt and again for /mnt/sdcard/FOO.TXT.

Change-Id: I70e36b7822142750d3eeeb75edd6464ec7c79f2a
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-17 21:06:26 -08:00
Ken Sumrall
701d40f721 am 383b76f8: am e4349157: Add a new trigger to support a progress bar UI for encrypt in place.
* commit '383b76f86af48d4a1a502d7767ab79f024483864':
  Add a new trigger to support a progress bar UI for encrypt in place.
2011-01-17 15:00:09 -08:00
Ken Sumrall
383b76f86a am e4349157: Add a new trigger to support a progress bar UI for encrypt in place.
* commit 'e434915787c38a6d84e1058044fed3be2ed02235':
  Add a new trigger to support a progress bar UI for encrypt in place.
2011-01-17 14:58:31 -08:00
Ken Sumrall
e434915787 Add a new trigger to support a progress bar UI for encrypt in place.
Change-Id: I6a14eb43462505cb7fecfee9fd1ecdea50065963
2011-01-17 14:26:34 -08:00
David 'Digit' Turner
95df887ac0 rootdir: Fix system emulation startup.
This fixes the goldfish-specific config scripts used by init and ueventd
to properly setup the system under emulation. This fixes a lot of broken-ess
introduced by recent permission changes in the system.

Note that there are still several problems after this patch is applied, but
at least it becomes possible to get an adb connection to the emulated system,

Change-Id: Iff47bbf0fe5cb759fa93089284bb0f71e32405a2
2011-01-15 03:15:47 +01:00
Jesse Wilson
c633356e85 Merge "Move apache-xml to external. (project 4 of 4)" 2011-01-14 16:22:30 -08:00
Ken Sumrall
08cdb756be am 69e40574: am 4e84d3bc: Set a read-only property to indicate if the device is running encrypted.
* commit '69e4057440b298a65c7d21bacc466087c7f81d7e':
  Set a read-only property to indicate if the device is running encrypted.
2011-01-14 12:53:57 -08:00
Ken Sumrall
69e4057440 am 4e84d3bc: Set a read-only property to indicate if the device is running encrypted.
* commit '4e84d3bcf9af3452128fe2e8dc7607dff9016fac':
  Set a read-only property to indicate if the device is running encrypted.
2011-01-14 12:52:04 -08:00
Ken Sumrall
4e84d3bcf9 Set a read-only property to indicate if the device is running encrypted.
The UI needs to know if the device is running with an encrypted
filesystem or now.  So set a read-only property at boot to let it know.

Change-Id: I753de2d606c975bcbe9946d10fd47558cf357dac
2011-01-14 12:44:09 -08:00
Jesse Wilson
30d5d038a9 Move apache-xml to external. (project 4 of 4)
Change-Id: I8e1ea723481ae6d8e609563331c187576f306bce
http://b/3351604
2011-01-13 17:22:50 -08:00
Ken Sumrall
aad1a5d2ba am c1ab5b92: am 63990cf5: Merge "Move rild to the core class." into honeycomb
* commit 'c1ab5b92c8ba639d4b60f84d44f1ea0df17dc100':
  Move rild to the core class.
2011-01-13 13:45:46 -08:00
Ken Sumrall
c1ab5b92c8 am 63990cf5: Merge "Move rild to the core class." into honeycomb
* commit '63990cf56fc64033c0382ac19a3ffba7f525fb30':
  Move rild to the core class.
2011-01-13 13:43:59 -08:00
Ken Sumrall
63990cf56f Merge "Move rild to the core class." into honeycomb 2011-01-13 13:42:17 -08:00
Ken Sumrall
a02714bd3e Move rild to the core class.
Changes in init.stingray.rc now prevent rild from making sockets
or named pipes on /data.  Now that rild no longer prevents /data
from being unmounted, we can put it in the core class, which doesn't
restart when we enable encryption.  This speeds up the boot by 20+
seconds.

Change-Id: I737baf804e089f4ddbd664eaa1e675a7bd62e699
2011-01-13 13:41:06 -08:00
Mike Lockwood
ceb0ab0fb8 am 73a223d0: am 1bedb73f: sdcard: Have the -f option fix user/group permissions as well as file name case
* commit '73a223d09f3e5643d70f6604f9bf7110c52445c7':
  sdcard: Have the -f option fix user/group permissions as well as file name case
2011-01-13 10:51:30 -08:00
Mike Lockwood
73a223d09f am 1bedb73f: sdcard: Have the -f option fix user/group permissions as well as file name case
* commit '1bedb73f9fc239b69d958cbabc50c7ba382bacbc':
  sdcard: Have the -f option fix user/group permissions as well as file name case
2011-01-13 10:49:06 -08:00
Mike Lockwood
1bedb73f9f sdcard: Have the -f option fix user/group permissions as well as file name case
Change-Id: I280ded6ce79fb11752c89ebafa663d7ee29edebc
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-13 13:38:42 -05:00
Mike Lockwood
216516f00c am cfee7769: am 4f35e623: sdcard: Add command line options for lowercase file name squashing:
* commit 'cfee7769daebfc812a5eea367f4a97f0c89b5670':
  sdcard: Add command line options for lowercase file name squashing:
2011-01-12 14:35:51 -08:00
Mike Lockwood
cfee7769da am 4f35e623: sdcard: Add command line options for lowercase file name squashing:
* commit '4f35e623a2359789406772009078d1a6ca7af6b3':
  sdcard: Add command line options for lowercase file name squashing:
2011-01-12 14:33:05 -08:00