Commit Graph

131 Commits

Author SHA1 Message Date
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 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
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 f2af88e81a Tracking merge of dalvik-dev to gingerbread
git cherry-pick --no-commit b99a099c
git cherry-pick --no-commit 9811671e02
git cherry-pick --no-commit d0645bf0cc

Change-Id: Ie70fecaeaba97a25f114cd2717e381b5107533b1
2010-08-04 15:45:52 -07:00
Kenny Root c7858a3dde Add directories for OBB mounting
Change-Id: Ib73e9bca50fb168ab5d147cc260666a770092961
2010-07-15 12:39:53 -07:00
Dianne Hackborn 8b0ec20d6f Update OOM adj levels.
This introduces some new buckets that will be used by the activity
manager, and adjusts the default levels to match what we had been
setting for Droid.

It turns out Passion has been using the old levels, which makes no
sense for how much memory it has.  Also it is a problem with these
definitions spreading to other projects for different devices, so
I am going to update the defaults to be appropriate for our newer
devices, and put here a file to tune them down for something like
the sapphire.

Change-Id: Ia4f33c4c3b94aeb3656f60b9222072a1d11e9e68
2010-06-10 17:52:37 -07:00
Christopher Tate 25e7b8fcc3 am b1fb3bd1: am 230cb33f: Make /proc/kmsg and /proc/sysrq-trigger system-process-readable
Merge commit 'b1fb3bd13a4da8bc46a44ec5eef6de9cb952f163' into kraken

* commit 'b1fb3bd13a4da8bc46a44ec5eef6de9cb952f163':
  Make /proc/kmsg and /proc/sysrq-trigger system-process-readable
2010-06-02 11:20:39 -07:00
Christopher Tate 230cb33fd1 Make /proc/kmsg and /proc/sysrq-trigger system-process-readable
This is so that the system process can capture kernel thread stacks when the
watchdog detects a deadlock.  Previously, /proc/kmsg was root/root and mode
0400, and /proc/sysrq-trigger was root/root and mode 0200.  With this
change, /proc/kmsg becomes root/system and 0440, and /proc/sysrq-trigger
becomes root/system and 0220.

Change-Id: Iac46bd10bd11d495024afeb5d693107ce5074791
2010-06-01 17:48:30 -07:00
Mike Lockwood c0d8fb5842 DO NOT MERGE resolved conflicts for merge of e95aad61 to kraken
this change is already in master

Change-Id: Ica43eae28b50d89d50217851aff7e62978abfa27
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-05-17 14:24:36 -04:00
Colin Cross 44b65d047c init: Add ueventd.rc parsing to ueventd
Change-Id: Iea53050d6c10e8cabf563e5d80e84eaf78873695
2010-04-21 20:59:42 -07:00
Colin Cross f83d0b9af5 init: Move uevent handling to an external ueventd process
Change-Id: Iea6c56013062ade633a1754f7bcf8cf09b3dedc1
2010-04-21 20:59:38 -07:00
Colin Cross 31712beaf7 Move filesystem mounting into a new "fs" init level
Devices with non-MTD storage need to override the filesystem mounting
commands in init.rc.  Moving them to a new "fs" init level allows a
custom init.<device>.rc to handle the mounting.

Change-Id: If0e655139b9734650fb798b6eb0a90e2241fc29b
2010-04-13 20:06:03 -07:00
Colin Cross dc61c9cda5 Add a build dependency for ramdisk.img on system/core/rootdir/init.rc
Change-Id: Id9698a88720cc0c70e3d9c43c9bac9b74f4798b6
2010-04-13 20:06:03 -07:00
Nick Pelly c741f22d85 Add NET_RAW to mediaserver so that it can open a raw HCI socket to configure
BT chip.

Change-Id: I22065b313c7af28b4791c74ea3d403a628738102
2010-03-23 20:39:05 -07:00
Jean-Baptiste Queru bbf3ea46fb cleanup init.rc
Change-Id: I7f7fefd61c6032c84fa63e597ea0e6bbe66d2e79
2010-03-12 16:36:41 -08:00
Mike Chan 89f235c5e0 init.rc: Add cpuacct to cgroup mount for cpu statistic
Cpu accounting statistics expored in /acct

Change-Id: I8a35816e94b69d9e67a3dd65aae16520864777d7
Signed-off-by: Mike Chan <mike@android.com>
2010-03-01 20:29:58 -08:00
San Mehat b91bf4ba86 Revert "init.rc: Add cpuacct to cgroup mount for cpu statistics"
This reverts commit a7d88224ff.

This cgroup subsys should be mounted on it's own mount-point, since it's
addition to /dev/cpuctl causes the cpu subsys to EPERM
2010-02-27 10:06:09 -08:00
Mike Chan a7d88224ff init.rc: Add cpuacct to cgroup mount for cpu statistics
Change-Id: Ic1893e1bf7b2c45659419b0bc55d42f50d030c9f
Signed-off-by: Mike Chan <mike@android.com>
2010-02-26 11:25:36 -08:00
San Mehat f0cb74e3b0 rootdir: init.rc: Enable I/O priorities for media server and vold
Sets the media-server to class 'real-time' pri 4, and vold to class 'best effort'
pri 2

Signed-off-by: San Mehat <san@google.com>
2010-02-26 10:05:24 -08:00
Jaikumar Ganesh eafdd86f4d Update bluetooth data files path. 2010-02-25 19:46:29 -08:00
San Mehat a9db22f122 rootdir: init.rc: Add 'ASEC_MOUNTPOINT' environment variable.
Signed-off-by: San Mehat <san@google.com>
2010-02-24 10:17:37 -08:00
Chia-chi Yeh bbfe1368d9 Remove dead services from init.rc. 2010-02-22 09:32:16 +08:00
San Mehat 6f957c3f25 generic_rootdir: vold_fstab: Change '/sdcard' -> '/mnt/sdcard'
Signed-off-by: San Mehat <san@google.com>
2010-02-19 18:38:28 -08:00
San Mehat 6ea3cc6089 rootdir: init.rc: Create secure staging directories, and a compat symlink
Signed-off-by: San Mehat <san@google.com>
2010-02-19 18:38:28 -08:00
Vasu Nori 55a1f0827b dont create sqlite_stmt_journals dir.
this shoudl not be required any longer. in fact, some test-writers are
abusing this dir.
2010-01-26 23:12:37 -08:00
San Mehat 92175e04a5 rootdir: init.rc: Fix typo in chown of /dev/cpuctl
Signed-off-by: San Mehat <san@google.com>
2010-01-17 12:21:42 -08:00
San Mehat 192277c015 rootdir: init.rc: Add netd to startup services list
Signed-off-by: San Mehat <san@google.com>
2010-01-15 07:48:35 -08:00
San Mehat 1851d80959 init.rc: Adjust perms on /asec
Signed-off-by: San Mehat <san@google.com>
2010-01-06 17:41:34 -08:00
Oscar Montemayor d0aa32c3d9 Apps on SD project. Small change to support apps on SD file system key storage. 2010-01-06 16:24:48 -08:00
San Mehat 900570e2a8 init.rc: Create a small tmpfs on /asec so we can create mountpoints
Signed-off-by: San Mehat <san@google.com>
2010-01-06 11:02:42 -08:00
San Mehat 37c71dd9a7 init.rc: Add new /asec mount point
Signed-off-by: San Mehat <san@google.com>
2010-01-04 09:41:52 -08:00
San Mehat 5184fc5c79 rootdir: Switch to vold.fstab
Signed-off-by: San Mehat <san@google.com>
2009-12-24 07:20:36 -08:00
Oscar Montemayor 37c586e6b1 Encrypted File Systems Project.
Temporarily creating emulated encrypted directories manually.
Will remove those lines once a true encrypted FS is mounted, and proper
framework chanfes have been made. This is required for the feature to
work with the other changes.
2009-12-03 13:11:30 -08:00
Dan Egnor d2633cb709 am 7359c16a: Don\'t copy /proc/last_kmsg to /data/dontpanic/last_kmsg -- it gets generated on every boot, so this is a bunch of writing for no particularly good reason.
Merge commit '7359c16a852c23740ef2874aa6b66f629d1473b7' into eclair-mr2-plus-aosp

* commit '7359c16a852c23740ef2874aa6b66f629d1473b7':
  Don't copy /proc/last_kmsg to /data/dontpanic/last_kmsg --
2009-11-24 14:51:07 -08:00
Dan Egnor 7359c16a85 Don't copy /proc/last_kmsg to /data/dontpanic/last_kmsg --
it gets generated on every boot, so this is a bunch of writing
for no particularly good reason.
2009-11-23 19:25:44 -08:00
Doug Zongker 6114b2dfb4 am eb67fac4: change /cache/recovery group to cache
Merge commit 'eb67fac4723892ac8ae3fae87c05e776c49029c5' into eclair-mr2-plus-aosp

* commit 'eb67fac4723892ac8ae3fae87c05e776c49029c5':
  change /cache/recovery group to cache
2009-11-19 20:21:09 -08:00
Doug Zongker eb67fac472 change /cache/recovery group to cache
To unbundle system update, we need users other than system to be able
to write the /cache/recovery directory.
2009-11-19 16:52:02 -08:00
Jean-Michel Trivi 879f398a44 am 5a8cf57e: am 5e7db233: Make the RIL daemon part of the audio group so it can load region-specific acoustic parameters.
Merge commit '5a8cf57eb7aa70f1647b28315a2419c4a6d36828' into eclair-mr2-plus-aosp

* commit '5a8cf57eb7aa70f1647b28315a2419c4a6d36828':
  Make the RIL daemon part of the audio group so it can load region-specific
2009-11-02 16:25:30 -08:00
Jean-Michel Trivi 5e7db23300 Make the RIL daemon part of the audio group so it can load region-specific
acoustic parameters.
2009-11-02 15:22:18 -08:00
San Mehat dd7105a7a1 am aaad7ab4: am fd110c7f: Merge change I831d8e1e into eclair
Merge commit 'aaad7ab4ae9e6913481fe4348b040e5d3e2aaec1' into eclair-mr2-plus-aosp

* commit 'aaad7ab4ae9e6913481fe4348b040e5d3e2aaec1':
  rootdir: init.rc: Adjust background dirty writeout policy
2009-10-13 13:05:56 -07:00
San Mehat 831d8e1e3a rootdir: init.rc: Adjust background dirty writeout policy
Signed-off-by: San Mehat <san@google.com>
2009-10-13 12:27:18 -07:00
Dan Bornstein 46c9658f4f am 1dec5032: Force the mediaserver process to restart whenever the zygote or system server do.
Merge commit '1dec5032cfadc1a3d7687ce5b6cd322e4151ce9d' into eclair-plus-aosp

* commit '1dec5032cfadc1a3d7687ce5b6cd322e4151ce9d':
  Force the mediaserver process to restart whenever the zygote or system
2009-10-09 15:43:18 -07:00
Dan Bornstein 1dec5032cf Force the mediaserver process to restart whenever the zygote or system
server do.

Change-Id: I16ce4ae656473055e7e244ccd4af7055959e3c1c
2009-10-09 14:52:15 -07:00
Rebecca Schultz Zavin 19257e7c00 am ea935c1d: Merge change I7b04795c into eclair
Merge commit 'ea935c1d9771fa2cc00583720586c209463f2791' into eclair-plus-aosp

* commit 'ea935c1d9771fa2cc00583720586c209463f2791':
  Make vmallocinfo readable by group log so we can put it in bugreports
2009-10-08 16:20:34 -07:00
Rebecca Schultz Zavin 14d898e014 Make vmallocinfo readable by group log so we can put it in bugreports
Change-Id: I7b04795c029c51108132e7a9eaf46b97de06de6f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2009-10-08 16:15:58 -07:00
Brian Swetland 64e5c1d5d2 am aa7d9710: init.rc: don\'t mount debugfs
Merge commit 'aa7d97106abf8c390e1aed71f7c175fb77fead38' into eclair-plus-aosp

* commit 'aa7d97106abf8c390e1aed71f7c175fb77fead38':
  init.rc: don't mount debugfs
2009-10-07 12:36:45 -07:00
Brian Swetland aa7d97106a init.rc: don't mount debugfs
We'll do this in the product-specific init files.
2009-10-07 12:28:44 -07:00
San Mehat b0cc66698f am 529520e8: Revert "rootdir: init.rc: *LATENCY EXPERIMENT* - Disable cgroups in favor of new scheduler policy support"
Merge commit '529520e8240e6865aca77ae9abf78dacbaa72e2c' into eclair-plus-aosp

* commit '529520e8240e6865aca77ae9abf78dacbaa72e2c':
  Revert "rootdir: init.rc: *LATENCY EXPERIMENT* - Disable cgroups in favor of new scheduler policy support"
2009-10-07 11:55:14 -07:00
San Mehat 529520e824 Revert "rootdir: init.rc: *LATENCY EXPERIMENT* - Disable cgroups in favor of new scheduler policy support"
This reverts commit 35ad5f41c3.
2009-10-06 11:22:55 -07:00
David 'Digit' Turner 6b4e9ebc4c am a0c98ef0: Ensure -user builds can run the dex preopt pass in the emulator.
Merge commit 'a0c98ef01a4c5a859fdde35fed7977b1eb919007' into eclair-plus-aosp

* commit 'a0c98ef01a4c5a859fdde35fed7977b1eb919007':
  Ensure -user builds can run the dex preopt pass in the emulator.
2009-09-23 11:43:23 -07:00