Commit graph

197 commits

Author SHA1 Message Date
David 'Digit' Turner
0897a4353e am 100511ff: am 88af5ff4: Merge "goldfish: Work-around to start the RIL daemon." into honeycomb
* commit '100511ffaa11b33a6856a434c62ad326a899f252':
  goldfish: Work-around to start the RIL daemon.
2011-01-21 19:04:02 -08:00
David 'Digit' Turner
dc743112ca goldfish: Work-around to start the RIL daemon.
This change forces the start of the RIL daemon used to provide
3G connectivity to the system. It should normally be started
automatically by init.rc but there is a bug within
system/core/init/builtins.c that prevents this to happen.

Fixes the "No network connectivity" bug while the network
interface and route were properly setup.

Change-Id: Ieec0f513aabf92b8a59f0a86f64a16e97057c3c3
2011-01-22 02:24:36 +01:00
Ken Sumrall
852c13d1b2 am afa099a1: am 3a159d62: Move rild to the late_start class
* commit 'afa099a1909c02196574d125d735adb0c8918392':
  Move rild to the late_start class
2011-01-19 23:14:43 -08:00
Ken Sumrall
3a159d62a9 Move rild to the late_start class
Now that rild can be killed in a reasonable amount of time, move it
from the core class to late_start.  I was going to move it to main,
but it would get killed and restarted right after the disk crypto
password was entered, which is when the late_start class is started,
and I was seeing issues with rild not re-connecting to the network
when it was killed and restarted.

Change-Id: I60479ddb853953029890fc816538d615ef5a96ab
2011-01-19 23:06:12 -08:00
David 'Digit' Turner
ba3bcef024 am 794fb914: am eeeca4dd: rootdir: goldfish: Fix network route during emulation.
* commit '794fb914bef34c1c5f32764947801c95575ecd41':
  rootdir: goldfish: Fix network route during emulation.
2011-01-18 21:57:46 -08: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
a42f152b4a Merge "rootdir: Fix system emulation startup." into honeycomb 2011-01-18 11:08:04 -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
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
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
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
Ken Sumrall
f3c42b6ee4 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: I71c426dab1b725e401116234167d41c7ccd958c1
2011-01-10 19:00:49 -08:00
Gloria Wang
a44aca6580 Temporarily disable the drm service. do not merge
Change-Id: I5cb04a9c2cc5b95443c6c0ea77132a4102ca47fc
2011-01-10 17:33:25 -08:00
Mike Lockwood
48b911c573 am af7bdc64: Add separate permission and group for access to MTP USB driver
* commit 'af7bdc646088e3112052f4fd35061bb720393287':
  Add separate permission and group for access to MTP USB driver
2011-01-10 09:27:56 -08:00
Mike Lockwood
af7bdc6460 Add separate permission and group for access to MTP USB driver
Since the "usb" group and ACCESS_USB permission will be used by regular apps
to access USB devices in host mode, we need a separate permission for the
device side MTP driver.

Change-Id: Ibb546b8726d61e041fc7c273f71929624ad1575b
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-10 08:22:30 -05:00
Gloria Wang
16209418de Merge "To remove drm service from groups of "system" and "root"." 2011-01-07 13:36:06 -08:00
Gloria Wang
60b5b408cf To remove drm service from groups of "system" and "root".
Change-Id: Ieac11c667c72465f7082baab0787dc740797049f
2011-01-07 11:46:25 -08:00
David 'Digit' Turner
1f2565ca08 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: I1e8f5828b4d5cbb3a4338878df875dc718276b38
2011-01-06 14:04:12 +01:00
Ken Sumrall
752923c168 Changes to init to support encrypted filesystems.
These are the changes to init and init.rc necessary to
support booting with and encrypted /data filesystem.
A corresponding change to init.<device>.rc goes along
with this change.

Change-Id: I0c7e2cc39568358014a82e317735c0eae14dd683
2010-12-18 19:03:54 -08:00
Nick Kralevich
333f24bfbd don't run services with gid=0
Ensure that we drop privileges for servicemanager
and drmioserver.  These should not be running with
gid=0.

Bug: 3275526
Testing: Applied change and successfully rebooted
the device.  No obvious bugs.

Change-Id: I782fbda812cb88e0a365788b45b3b32894623177
2010-12-15 11:09:21 -08:00
Jaikumar Ganesh
1612425c50 Remove services for adding SDP records.
This was an inefficient way of doing things and was
temporary. There are now direct calls to Bluez to add reserved
SDP records.

This improves connection time after turning on BT by 6-8 secs.

Change-Id: I8750f44e1de73c9cc935d68710b8964e3f50c3a6
2010-12-13 13:47:27 -08:00
Iliyan Malchev
6388cfe03c Revert "HACK: slow_start for mediaserver to prevent restart race condition"
This reverts commit 9db7945ed2.
2010-12-08 16:19:12 -08:00
Paul Eastham
9db7945ed2 HACK: slow_start for mediaserver to prevent restart race condition
Change-Id: Ia76385612fd127c5f11b3d64205e350f27acfd82
2010-12-04 17:39:30 -08:00
Mike Lockwood
d49b4ef51e init.rc: Allow console in userdebug builds
Change-Id: Ib5734c6d3e2bf5a9da3d44721c529971f2345120
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-11-19 09:12:27 -05:00
Gloria Wang
4640fc0504 Create directory for DRM plug-ins.
Change-Id: I1bfef96b1949f288852cd88222e0ce2bbb186f40
2010-10-28 13:44:47 -07:00
Brian Swetland
a215823fc9 am b7171987: am b4d65399: disable console in user builds 2010-10-27 15:47:16 -07:00
Brian Swetland
b717198738 am b4d65399: disable console in user builds 2010-10-27 15:45:26 -07:00
Brian Swetland
b4d65399fd disable console in user builds
Also, run console as shell/log instead of root/root.

Change-Id: I6104f1edddfd5e11843ff41d7839d0c296e6a6f9
2010-10-27 15:41:40 -07:00
Brad Fitzpatrick
8c5669f9f9 Let SocketClient users write binary data to clients.
This is a dependency for the DNS proxy CLs.

This CL also adds a new socket for the netd process to inherit which
is owned by the inet group.  (so only apps with the INTERNET
permission can use the DNS proxy...)

Change-Id: Ic3475c697913ba85805b4e49801b65e7a1d59289
2010-10-27 10:27:34 -07:00
Brian Swetland
7ffa661595 am 60afdedc: am 146481b9: add rules to set perms for input device sysfs attributes 2010-10-26 15:44:20 -07:00
Brian Swetland
60afdedc4c am 146481b9: add rules to set perms for input device sysfs attributes 2010-10-26 15:42:10 -07:00
Brian Swetland
146481b946 add rules to set perms for input device sysfs attributes
Change-Id: I28ab7f1ac5cc07ade7830e87f5e70c96464bb686
2010-10-26 15:38:00 -07:00
Brian Swetland
98b1378606 am f3c29f0c: am 5988ea72: add sdcard access permission to ril daemon
Merge commit 'f3c29f0cf287ec3d329b012a2d48808b064632f6'

* commit 'f3c29f0cf287ec3d329b012a2d48808b064632f6':
  add sdcard access permission to ril daemon
2010-10-22 22:48:02 -07:00
Brian Swetland
f3c29f0cf2 am 5988ea72: add sdcard access permission to ril daemon
Merge commit '5988ea726e91fbdc69485b729ea2f532fedfa1d6' into gingerbread-plus-aosp

* commit '5988ea726e91fbdc69485b729ea2f532fedfa1d6':
  add sdcard access permission to ril daemon
2010-10-22 22:34:46 -07:00
Brian Swetland
5988ea726e add sdcard access permission to ril daemon
Some RIL daemons write crashdumps to sdcard.

Change-Id: I49a8d2cb342fd7f8bd23dbb1bcc378726e10a579
2010-10-22 22:17:17 -07:00
Brad Fitzpatrick
d7482b2f4c am 33357f54: am 6490257d: Make netd restart when system server hangs on it.
Merge commit '33357f5477a24cb16bd3dd692fe5ca14755ab033'

* commit '33357f5477a24cb16bd3dd692fe5ca14755ab033':
  Make netd restart when system server hangs on it.
2010-09-21 17:44:45 -07:00
Brad Fitzpatrick
33357f5477 am 6490257d: Make netd restart when system server hangs on it.
Merge commit '6490257d116c35d3da927ee7b91179dde64ef713' into gingerbread-plus-aosp

* commit '6490257d116c35d3da927ee7b91179dde64ef713':
  Make netd restart when system server hangs on it.
2010-09-21 16:27:25 -07:00
Brad Fitzpatrick
6490257d11 Make netd restart when system server hangs on it.
netd has been seen hanging (cause suspected but unconfirmed)
which then brings down the system server which blocks forever
on its main thread trying to connect to netd with its hung
event loop.

This then results in an infinite watchdog runtime restart loop
because the situation never improves:  netd is still borked.

Instead, we should kill netd and give it another chance when
the system server dies.

Bug: 3018996
Bug: 3017876
Change-Id: Ibf9ecf0ffcb78e48c38e5167f21cbeefe0e2a47f
2010-09-21 15:49:06 -07:00
Brian Swetland
d06df51bcd resolved conflicts for merge of 3b5214a6 to master
Change-Id: Id73c53c6c2e9c21eb9b1d1e624aaeb25097ea7a4
2010-09-19 04:35:19 -07:00
Brian Swetland
3b5214a67f am 02863b95: add /vendor support
Merge commit '02863b957cfbfc302d3136ed78c0cba86accacd8' into gingerbread-plus-aosp

* commit '02863b957cfbfc302d3136ed78c0cba86accacd8':
  add /vendor support
2010-09-19 03:49:43 -07:00
Brian Swetland
02863b957c add /vendor support
- look in /vendor/firmware/... in addition to /system/etc/firmware/... for firmware loading
- add /vendor/bin to path before /system/bin
- add /vendor/lib to ldpath before /system/lib
- configure appropriate permissions for /system/vendor/bin
- symlink /vendor -> /system/vendor

Change-Id: I0c06ca1e38a44f0c7024cee6cea8907aa93a4532
2010-09-19 03:36:39 -07:00
Jean-Baptiste Queru
a5220b24d1 am 26ce6e0e: manual merge from readonly-korg-master
Merge commit '26ce6e0e1608a9e804fa9721cc6326cdbaa5b7c1'

* commit '26ce6e0e1608a9e804fa9721cc6326cdbaa5b7c1':
  - Add drm and drmio service
2010-09-10 11:30:33 -07:00
Jean-Baptiste Queru
26ce6e0e16 manual merge from readonly-korg-master
Change-Id: Id17f69d22fbbc84578be5aadd5e8e906ff0eb548
2010-09-10 10:43:36 -07:00
Jean-Baptiste Queru
bb130ba799 Merge "- Add drm and drmio service - Add /data/drm directory for storing DRM related data" 2010-09-09 14:13:01 -07:00
Brian Swetland
e6d8a5f1df am 8df3a4a5: am 4012c0a4: Merge "remount / as read-only only on post-fs to allow per-target config of /" into gingerbread
Merge commit '8df3a4a554184afba71887995c5f0983ce81196f'

* commit '8df3a4a554184afba71887995c5f0983ce81196f':
  remount / as read-only only on post-fs to allow per-target config of /
2010-09-08 15:51:10 -07:00
Brian Swetland
8df3a4a554 am 4012c0a4: Merge "remount / as read-only only on post-fs to allow per-target config of /" into gingerbread
Merge commit '4012c0a46ab2ebdf6a1298bc4e85ed3368d1b8a4' into gingerbread-plus-aosp

* commit '4012c0a46ab2ebdf6a1298bc4e85ed3368d1b8a4':
  remount / as read-only only on post-fs to allow per-target config of /
2010-09-08 15:08:16 -07:00
Brian Swetland
56de7a1263 remount / as read-only only on post-fs to allow per-target config of /
Change-Id: Ia89dd2021e0f960201b4cee573227f0addd48431
2010-09-08 15:06:45 -07:00
Brian Carlstrom
3c659a8d64 am f2af88e8: Tracking merge of dalvik-dev to gingerbread
Merge commit 'f2af88e81af5efb2d585963507f798d5a8b93d67' into gingerbread-plus-aosp

* commit 'f2af88e81af5efb2d585963507f798d5a8b93d67':
  Tracking merge of dalvik-dev to gingerbread
2010-08-05 10:39:18 -07:00