OSDN Git Service
Chih-Wei Huang [Fri, 8 Aug 2014 10:17:04 +0000 (18:17 +0800)]
libutils: fix incorrect calculation in utf8_length() method
The first character of utf-8 could be larger than 128. If use signed char
variable to hold it, it would be treated as negative. That may result in
some unexpected errors.
For example, without this patch, suppose the code is 0xE88888, then
first_char is 0xE8 and converted to int32_t type (0xFFFFFFE8) and
masked with (~to_ignore_mask). The result utf32 is
FFF08208
which is incorrect.
Change-Id: I72b355f380865bc375251eb287fc225fd585a115
Abylay Ospan [Thu, 24 Jul 2014 06:09:48 +0000 (02:09 -0400)]
fix ueventd segfault on android-ia
fix incorrect realloc size in setup_dep causing ueventd segfault on
android-ia when module dep string contains more than LDM_INIT_DEP_NUM
(10) items
Signed-off-by: Abylay Ospan <aospan@netup.ru>
Kyle Evans [Tue, 4 Mar 2014 06:39:49 +0000 (01:39 -0500)]
libsuspend: do not fail when sending on signal fails
Nick Kralevich [Wed, 15 Jan 2014 00:34:56 +0000 (16:34 -0800)]
Remove obsolete vdc call.
Since
ca8e66a8b0f843812014a28d49208f9f6f64ecbc, init has
been handling reboots and filesystem unmounts. Remove obsolete
call to vdc.
Bug:
12504045
Change-Id: If8704ca042cb3a68857743b9973e48c52e7eb881
Ricardo Cerqueira [Tue, 5 Nov 2013 03:33:44 +0000 (03:33 +0000)]
Add libminshacrypt static lib
This is a sha-only version of libmincrypt, to provide the new
SHA_hash implementation to binaries that require libcrypto_static
Elliott Hughes [Tue, 5 Nov 2013 19:12:56 +0000 (11:12 -0800)]
Let external/mksh install directly into /system/bin/sh.
Change-Id: I3ac60af2b5c6bba98c33cb63952eb4d35676d73f
Elliott Hughes [Tue, 5 Nov 2013 17:44:57 +0000 (09:44 -0800)]
Dispose of ash.
We haven't used ash for several releases. Remove ash and its
companion liblinenoise.
I've left the support for an alternative shell here for now,
but we can move that out to external/mksh later if we want.
(For now this seemed like a somewhat useful signpost to the real shell.)
Change-Id: I634c7969f6cbe375a2bc56fc1077e64888380f3d
Chih-Wei Huang [Wed, 21 Aug 2013 15:39:58 +0000 (23:39 +0800)]
libsuspend: add debug.autosleep property
Only use autosleep first if debug.autosleep=1.
Chih-Wei Huang [Thu, 14 Feb 2013 14:01:11 +0000 (22:01 +0800)]
ueventd: load modules in a forked process
Loading some modules (e.g., ath3k) will be blocked to wait for
firmware. The forking is necessary, otherwise ueventd has no
chance to load the firmware.
Chih-Wei Huang [Wed, 6 Feb 2013 12:52:34 +0000 (20:52 +0800)]
allow to load modules from standard module path
Chih-Wei Huang [Tue, 21 Jan 2014 10:06:47 +0000 (18:06 +0800)]
Merge branch 'android-ia3' into kitkat-x86
Conflicts:
init/init.c
llin4 [Wed, 13 Nov 2013 02:19:45 +0000 (10:19 +0800)]
core: houdini hook rebase on KK
BZ: 150804
system/core houdini hook rebase on KK
Change-Id: Ibdb009940a272c407634fdffa0e63f68dc05fc58
Signed-off-by: llin4 <ling.lin@intel.com>
Andy Ross [Tue, 28 May 2013 18:02:25 +0000 (11:02 -0700)]
Allow for overriding environment variables in export
Don't silently append duplicates, delete the older version. Also
increase the size limit, as the set of shell variables on my test
system is already at 28.
Change-Id: Id2373cc197662ae14fabad4de5e4516fe30d44cc
For: AXIA-2870
Signed-off-by: Andy Ross <andy.ross@windriver.com>
Ken Lierman [Wed, 1 May 2013 17:36:45 +0000 (10:36 -0700)]
cleanup ADB's debug output
The server was using stderr to talk back to the client to ACK it
starting correctly, which made the debug output from the server get
lost (before it later gets redirected to a file). Change it to stdout
and add a fflush() to force the output.
Add the pid to the output so you can tell which process the output is
coming from.
Add basename to the __FILE__ part of the output to remove the unnecessary
and redundant system/core/adb path info from every output line.
Remove the duplicated fdevents debug output macro so it gets redirected
into the server log file like it should.
Change-Id: I8eaf3c8ccbca62f907b0ee7b52a0e179db5ff82d
Sean V Kelley [Wed, 1 May 2013 21:35:07 +0000 (14:35 -0700)]
system: Add hw specific pixel format
Relocate hw pixel format to graphics header for convenience
from drm_gralloc codebase.
Change-Id: I405398b172fab19949fef33c89a60132b1bd0ea9
Signed-off-by: Sean V Kelley <sean.v.kelley@intel.com>
Billy [Thu, 14 Mar 2013 08:00:23 +0000 (16:00 +0800)]
Init: Setting system time back to utc
Fix:
When rtc_local_time is enabled (ro.rtc_local_time = 1),
system time loaded from rtc should be local time too during boot.
Setting system time back to utc as soon as fast, which avoid programs
get confused about it.
For convert local time to utc, we need to get timezone information.
Android store timezone in property variable "persist.sys.timezone", and
its raw file stored on /data partition. So, the reasonalbe time when we
trigger sysclk should be after /data partition loaded and persist_props
loaded. We must add a new property variable for triggering sysclk if we
want to trigger it after load_persist_props commmand, which will make code
more complicated. Thinking about above, I add sysclk command on post-fs-data
section in init.bigcore.rc. At this point, partitions loaded, persist_props
not loaded yet. I get the timezone infromation through reading raw file
directly instead of call propert_get function
Issue: AXIA-2051
Change-Id: I0ff1d5932c5b1aaa8695129de44c06dba31cb443
Signed-off-by: Xiaobing Feng <xiaobing.feng@windriver.com>
Thomas Daniel [Mon, 7 Jan 2013 17:02:31 +0000 (17:02 +0000)]
adbd: set sent file ownership per android fs config table
do_send() uses fs_config() to retrieve mode, user and group for a sent file but
handle_send_file() only gets passed the mode. User and group are discarded.
This causes problems as it means any files updated with adb sync will have their
owner set to root.
For example, the file "/system/etc/dbus.conf" should be owned by "bluetooth" as
specified in android_filesystem_config.h, and its permissions should be read for
user and group but nothing for other. Using adb sync to send this file means
that the owner is set to root, and no access permissions for others. This means
that when a process running as "bluetooth" tries to access the file it fails,
resulting in a boot failure.
This change adds a new wrapper function adb_chown() which calls chown() to match
the existing pattern for wrapping file I/O functions. This adb_chown() is now
called in do_send() to correctly set the owner and group as specified in the
fs_config table.
Change-Id: I37661273780346a6a868e58d9069171052e81e34
Andrew Boie [Fri, 21 Dec 2012 19:06:57 +0000 (11:06 -0800)]
charger: fix build
Change-Id: I796c71dca32cd879405f10be9fa17edba8aa100e
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Daniel Leung [Tue, 11 Dec 2012 16:39:57 +0000 (08:39 -0800)]
libsparse: Use BIONIC implementation of mmap64()
Change-Id: Ifad484c8b1a22f7b1a0ef5dfd52d7fe12fd892c6
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Andrew Boie [Tue, 4 Dec 2012 23:47:20 +0000 (15:47 -0800)]
ueventd: Increase uevent buffer size
As it turns out, no, 64K is not enough. A device provisioning
tool was generating many uevents as it manipulated the GPT,
causing events near the end of the process (including events
as a result of the final BLKRRPART ioctl()) to get lost.
It's not clear what the best value for this should be, but
increasing to 256K fixed the problem in this case.
Change-Id: I4883b34e96c89e8a6fa581bc9cd121bb021b5694
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Andrew Boie [Thu, 25 Oct 2012 21:10:07 +0000 (14:10 -0700)]
init: expand usage of property lookup and allow file lookup
Currently, the init.rc syntax ${prop.name} to substitute a value
looked up from the property service is only supported for the
setprop, write, and import commands. Here we generalize it so that
the arguments for all commands and services allow for references like
this.
We also introduce the syntax $[/path/to/file] to substitute the
contents of a file (typically a sysfs node), pruning any trailing
newlines from the file first.
Substitutions are always done at the last possible moment; right
when the command is executed or the service is started. If a service
is started/stopped multiple times, the substitutions will always be
re-done each time it starts.
If any substitition fails, the command will not run/service will not
start.
The deprecated syntax $prop.name is no longer supported.
Change-Id: I8560b70f48c0396832d9a7fadc546441e8e81ff9
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Jin Wei [Thu, 18 Oct 2012 09:04:21 +0000 (17:04 +0800)]
fix valgrind ioctl warning.
BZ: 62797
[CLEAN]
Initialize local variable to avoid syscall ioctl warning.
Change-Id: Ic1d0daeaf03ca3f60dfbe1aa6601cc47bc75447e
Orig-Change-Id: I6893f17ab8b036c8723707fba2b2bdcf49cae075
Category: aosp improvement
Domain: AOSP-General
Origin: internal
Upstream-Candidate: yes
Signed-off-by: Jin Wei <wei.a.jin@intel.com>
Andrew Boie [Mon, 6 Aug 2012 17:49:08 +0000 (10:49 -0700)]
init: remove logo code
This code is legacy and should never need to be used. The bootloader
should put an image on the screen and the kernel shouldn't reconfigure
the display controller until userland is ready to draw something,
such as the boot animation, charger, recovery console, etc.
Instead of hard-coding tty0, the "A N D R O I D" text is written out
to whatever the active console is.
Change-Id: I5fd21413f721d2ba6966d34d632d8fc3913ca073
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Daniel Leung [Mon, 22 Oct 2012 23:32:52 +0000 (16:32 -0700)]
libsuspend: Use autosleep first if available
Change the order to look for sysfs nodes to do autosleep first,
then early suspend.
Change-Id: Iff34b9354dd8e5104befd05e8097962d7f7eee7f
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Andrew Boie [Tue, 30 Oct 2012 22:16:04 +0000 (15:16 -0700)]
init: Allow for configurable init.rc path
If androidboot.initrc is passed in the kernel command line,
the path it refers to will be used for the initial init.rc
and not /init.rc.
This is to support specialized boot modes using the same
ramdisk.
Change-Id: Icfa179c422bf1d548c4ddef33c41cc89718d762d
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Andrew Boie [Fri, 12 Oct 2012 22:23:40 +0000 (15:23 -0700)]
init: Add 'readprops' command
This reads the contents of a text file and sets system properties
based on its contents.
Change-Id: Ic03de7ee9afb8a12439d0dff343560011e152beb
For: AXIA-102
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Bruce E. Robertson [Mon, 3 Dec 2012 21:01:28 +0000 (13:01 -0800)]
ADBD: set sent file permissions per android fs config table.
This fix allows the standard CTS installation to succeed while
preserving the previous fix's intent to allow init to operate
properly.
The first CTS APK installation failed when adbd, the adb daemon, on
the target invoked pm (package manager). "pm" runs as another user
than adbd and could not open the APK because adbd had cleared the
"other" read permission.
For: AXIA-813
Change-Id: If27a628072f51ffac78db7b5448670ea4666575f
Signed-off-by: Bruce E. Robertson <bruce.e.robertson@intel.com>
Conflicts:
adb/file_sync_service.c
Octavian Purdila [Thu, 27 Sep 2012 16:28:43 +0000 (19:28 +0300)]
devices: allow sending on device-add notifications for major/minor-less devices
This is usefull for getting device plug/unplug notifications for
things like USB ethernet adapters which do not have major/minor
numbers.
Change-Id: I8f032ef983aeb36dd013fafc4a5df5238decbb17
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Andrew Boie [Tue, 27 Nov 2012 20:58:19 +0000 (12:58 -0800)]
init: HACK: Try multiple times to open console
If the console is set to be a USB-to-serial adapter, there is
a bootup race for the creation of its associated device nodes
and init's one-time console detection.
If the console can't be opened, try polling up to 5 seconds. Log
an error if it ultimately fails.
A better solution would be to reimplement the console functionality
to be hot-pluggable, but this would require much more invasive changes
to make it robust.
Change-Id: I20b19095a2f22efffafe2a7ac22d2be753a62d4b
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Daniel Leung [Tue, 7 Aug 2012 22:03:34 +0000 (15:03 -0700)]
libcutils: wait for properties and value comparison
Add a property_try_get() function to wait for property to appear.
This can be used to block operations until some properties are set.
Add property_cmp() and property_try_cmp() to compare property
to specified value.
Also add a trygetprop, cmpprop, trycmpprop command in toolbox
to use these.
Issue: AXIA-539
Change-Id: I9d531e57c84140cebe6440efe3d3195c505932fa
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Andrew Boie [Tue, 27 Nov 2012 21:21:38 +0000 (13:21 -0800)]
init: wildcard matching for chmod/chown in init.rc
Implement wildcard matching for the builtin command
chmod and chown for use in init.rc.
For security reason, the number of slashes has to match.
For example, to match /dir_a/dir_b/dir_c/dir_d/file,
the path needs to be /dir_a/*/*/*/file. Simply doing
/dir_a/*/file does not work.
Issue: AXIA-576
Change-Id: I21b5aa58b3d3142725bc73ff31afb65d4fd4bc99
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Andrew Boie [Tue, 29 Nov 2011 20:45:58 +0000 (12:45 -0800)]
util.c: Fix file_read() with sysfs nodes
Sysfs nodes always report a file size of 4096 regardless of how much
data can be read. Hence don't fail if read() can't get the full size;
specifically look for errors or 0 (which is EOF).
Change-Id: Ief1ffbe08ac5e4daa80805713efa4f2af0a1a33e
Daniel Leung [Thu, 24 May 2012 23:54:49 +0000 (16:54 -0700)]
Use SSE2 enhanced memset for capable x86 processors
Originally, if TARGET_ARCH_VARIANT is x86-atom, the SSE2 enhanced
memset is used. This patch extends this to all x86 processors which
support SSE2 (i.e. ARCH_X86_HAVE_SSE2 is true).
For: AIA-502
Change-Id: Ibb7ff6ff1ce48da4262e4284618c26f2b516c8bf
Depends-Change-Id: I61c66496df66f6d8adc45cddd48f8750fc95f83c
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Alin Dobre [Thu, 1 Mar 2012 13:11:48 +0000 (15:11 +0200)]
Fix build failure when switching between build variants
When switching from the eng to the userdebug build variant, the init
binary compilation returns error ar linking stage:
.../obj/EXECUTABLES/init_intermediates/init.o: In function `bootchart_init_action':
system/core/init/init.c:729: undefined reference to `bootchart_init'
.../obj/EXECUTABLES/init_intermediates/init.o: In function `main':
system/core/init/init.c:881: undefined reference to `bootchart_step'
system/core/init/init.c:882: undefined reference to `bootchart_finish'
collect2: ld returned 1 exit status
make: *** [.../obj/EXECUTABLES/init_intermediates/LINKED/init] Error 1
Issue: ANDROID-1757
Change-Id: Ide50286e190ffeb75ec56bdfa2f5c612e0ae2392
Signed-off-by: Alin Dobre <alin.m.dobre@intel.com>
Octavian Purdila [Mon, 20 Feb 2012 07:42:15 +0000 (09:42 +0200)]
bootchart: add threads support
Grab information about threads not only processes. This gives us
additional important information about the boot processes especially
for heavy processes such as system server and zygote.
Issue: ANDROID-609
Change-Id: Ia941da116de1589c46101f262db64b0bc730e643
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Pauli Nieminen [Tue, 15 Nov 2011 18:14:51 +0000 (20:14 +0200)]
Fix warnings about unused parameters
Change-Id: I29139ffa688fb9215956b4d585dd4c47f70612b8
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Andrew Boie [Thu, 12 Jul 2012 22:39:25 +0000 (15:39 -0700)]
adb: reserve a wakelock when clients are connected over socket
USB OTG connections already have a wakelock reserved, but if a network
socket connection is made, the device can unexpectedly suspend
in the middle of a session. The lock is released when the client
disconnects.
Change-Id: Id5ac01699fab9350955c9814042259542fc6a694
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Jianxun Zhang [Mon, 2 Jul 2012 18:32:30 +0000 (11:32 -0700)]
add modprobe-like capability and automatic ueventd loading
Author: Jianxun Zhang <jianxun.zhang@intel.com>
Author: Daniel Leung <daniel.leung@intel.com>
Author: Andrew Boie <andrew.p.boie@intel.com>
- insmod_by_dep() added to libcutils; loads a module into kernel.
Modules the target module depends on will be loaded first. Loading
will be stopped when an error occurs.
- rmmod_by_dep() added to libcutils; removes a module from kernel.
It also tries to remove other modules the target module depends
on until an error occurs.
- Implement wildcard matching for ueventd rules.
The PCI and USB addresses for devices can change from devices
from devices for a particular class of peripheral, for example,
bluetooth. The ueventd rules created with these addresses are
then device-specific.
This changes the way ueventd rules with wildcard are handled.
Instead of matching just the prefix with a trailing wildcard,
now these rules can have wildcard anywhere in the rule.
The wildcard matching is implemented using fnmatch(), where
its matching is simliar to shell pathname expansion. It suits
this particular usage model well.
For example, instead of creating a rule to match:
/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/bluetooth/hci0/rfkill*
, this would suffice:
/sys/devices/*/bluetooth/hci0/rfkill*
- Let ueventd auto-load kernel modules. Implements the functionality
for ueventd to auto-load kernel modules when uevents are triggered.
Since /system may not be mounted when uevents are fired,
a deferred loading mechanism is implemented. Once mapping of
module and alias is available, these modules are then loaded.
Modules can also be blacklisted so they will not be loaded
automatically. One example would be the Wifi driver, as
Android's has to control its loading and unloading.
- add 'probemod' builtin command. This command accepts the name of a
kernel module plus a set of command line arguments. The module will
be loaded, along with all its dependencies, using the libcutils
insmod_by_dep() API.
- Drivers in kernel can request modules by launching a program in
user space, the program's path by default is "/sbin/modprobe".
Because Android system has no modprobe and ueventd is the only
program handling the module aliases so far, This patch provides a
cheap approach to handle kernel's requests in ueventd executable.
- Add new builtin init command "coldboot". The main purpose is to
provide an approach in init.*.rc files to fire uevents for devices
under the path which is passed as the the argument. This should be
called after /system is mounted so any queued events that need to
load a module can be fired.
Andrew P. Boie [Fri, 31 Aug 2012 19:05:55 +0000 (12:05 -0700)]
libdiskconfig: Enable Mac OS X host build
Change-Id: Iacc7d5463364d0cd15ca9fabaa58ad05857d9e78
Signed-off-by: Andrew P. Boie <andrew.p.boie@intel.com>
Andrew Boie [Fri, 11 Nov 2011 01:58:05 +0000 (17:58 -0800)]
diskconfig: Fix disk_layout.conf size parsing
If the user was appending 'K' to their lengths (which is valid
but redundant) it was being treated as megabytes instead of
kilobytes.
Change-Id: I979ec4d01f1342de1f3209b946201ca87bad32a7
Paul Drews [Mon, 20 Jun 2011 17:01:24 +0000 (10:01 -0700)]
Use progressive offset in buffer for successive writes
The code for copying from one raw file to another looped
back and tried again with a suitably smaller number of bytes
if the entire buffer was not written on the first try.
However, it failed to advance an offset in the buffer past
the bytes that were written. This could conceivably happen
under rare circumstances, leading to a corrupted disk image.
This fix defines an offset into the buffer, advancing it by
the number of bytes written on each successive retry.
Signed-off-by: Paul Drews <paul.drews@intel.com>
Change-Id: I76b8e0b3c0d3b0c32bd2114d0867ac7489808279
Lei Li [Tue, 24 May 2011 00:40:50 +0000 (08:40 +0800)]
software-accelerated Pixel Flinger v1.0
BZ: 46856
This patch is derived from the software-accelerated Pixel Flinger on froyo code base.
The typical graphic workloads on VirtualBox are improved 3X.
The commit id on ABSP/GB-stable is
67e50490231b86fa19a32420d0ffa3a952159bd1
under system/core project.
With this patch, the system can boot OK to HC home screen of VirtualBox
removed the redundant white spaces
JIRA: ANDROID-645
Change-Id: I573339d380dfc710429d243ffd845cb3d23edd24
Orig-Change-Id: I5a32a860967ee45b16e357cac3b1df01d06e7e0c
Category: aosp improvement
Domain: PUPDR-Recovery
Orig-Change-Id: I799af498b50f4e2ad27d0d2343414f6d474bfc69
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Andrew Boie [Wed, 20 Apr 2011 21:02:30 +0000 (14:02 -0700)]
config_mbr: Fix partition table generation
config_mbr() doesn't produce a valid partition table if there was not
one to begin with; the magic sequence 0xAA55 is not written to the last
2 bytes of the MBR. If this MBR signature is missing, the kernel will
refuse to inspect the partition table.
We add a step to config_mbr which blanks out bytes 440-512 of the MBR
and properly writes the MBR signature before doing anything else.
This fixes a problem where diskinstaller had to be run twice if there
was no partition table present on the target volume.
Change-Id: I4a8d173bef231d10e8fbcd0d8aecf54d1cf92474
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Andrew Boie [Wed, 11 Jul 2012 03:43:29 +0000 (20:43 -0700)]
libdiskconfig: HACK Don't do space checks on zero-size images
If an image file is of zero size, assume we just want to expand it
to fit the available images.
Change-Id: If8f22eb12d3a5179960d4359307bb177e3323e8a
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
srinivas pandruvada [Thu, 24 May 2012 21:25:10 +0000 (14:25 -0700)]
System-core-init: Implement device triggers
Android system/core/init/readme describes two triggers, which are
not implemented in the code yet.
They are:
device-added-<path>
device-removed-<path>
Triggers of these forms occur when a device node is added or removed.
These triggers are very important for PnP devices. For example when
system goes to suspend, the inbuilt usb in some devices is power-off
causing whole driver to be removed. When they are driver restarts on
resume the sysfs files permission will be reset to root again. This
will cause processes with non-root access to fail.
These triggers allows to change ownership again.
Android ueventd.*.rc file allows to modify permissions of file
matching the path sent by udev event, but doesn't allow to set
permissions in sysfs files or other files.
Also this patch goes through device triggers at the end of boot
process and fires them to account for uevents before the init
process was created.
Change-Id: Ib7f47124f324fdba4da332c7d1ea5040f45eeb13
Signed-off-by: srinivas pandruvada <srinivas.pandruvada@intel.com>
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Chih-Wei Huang [Tue, 20 Nov 2012 17:50:51 +0000 (01:50 +0800)]
init: handle DEBUG and HWACCEL variables
On DEBUG=1, trigger actions in class debug.
On HWACCEL=0, set debug.egl.hw=0 which disable hardware acceleration.
Chih-Wei Huang [Sun, 29 Apr 2012 07:04:55 +0000 (15:04 +0800)]
Set correct permission for pppd
The pppd needs setuid root to setup ppp interface.
Chih-Wei Huang [Sun, 1 Jan 2012 19:16:41 +0000 (03:16 +0800)]
init: avoid virtual console be set blanked
Chih-Wei Huang [Thu, 14 Apr 2011 01:48:52 +0000 (09:48 +0800)]
init: builtins: Add 'setkeycode' command to init.rc parser
The command is used to set an entry into the kernel's scancode-to-keycode map.
Change-Id: If772b3590c08d3696ff9d015f1faf0e75405e262
Chih-Wei Huang [Tue, 12 Apr 2011 08:46:45 +0000 (16:46 +0800)]
init: make sure the last parameter to execve is NULL
Extend the buffer to hold one more pointer, and set it is NULL.
Change-Id: I3018d62a1b0d61c0a3f5f2f7ffa12c7ce9ee32c5
Chih-Wei Huang [Tue, 1 Feb 2011 07:47:03 +0000 (15:47 +0800)]
init: change FIRMWARE_DIR1 for Android-x86
Change-Id: I0f54d1dcfcd7b1fe4b5f1dbe4ee3aa7289a5ecea
Chih-Wei Huang [Sat, 15 Jan 2011 22:44:37 +0000 (06:44 +0800)]
ueventd.rc: remove redundant definitions
Change-Id: Icb4f051abf941052aca9752ca2949386738d94e5
Chih-Wei Huang [Sat, 15 Jan 2011 22:25:37 +0000 (06:25 +0800)]
init.rc: use relative path for symlink
Usually it's better to use relative path for symlink. For example,
to use Android in a chroot environment, the absolute symlink will
fail outside the chroot environment. Using relative path guarantees
the link will work both inside and outside chroot.
Change-Id: I2f654a05189b9a666aed1fc7bdfb5a50357aff78
Magnus Malmborn [Fri, 14 Jan 2011 08:42:18 +0000 (09:42 +0100)]
Adding an 'exec' implementation to init
This is useful for running programs synchronously
during startup.
Change-Id: I0212fad22613124dd13b4f20b86d0dcc6cb59b6e
Weichuan Yan [Tue, 28 Dec 2010 07:45:02 +0000 (15:45 +0800)]
Fix a crash when there is no command action in some trigger
Change-Id: I5c002c9f86afceca83c39715576392cf88dd8614
Signed-off-by: Weichuan Yan <wchyan@marvell.com>
Jim Huang [Wed, 9 Sep 2009 03:47:40 +0000 (11:47 +0800)]
Let console applications have a controlling tty.
Since the logic in open_console() is changed, terminating console
application within a shell is now possible via Ctrl-C.
Igor Murashkin [Thu, 31 Oct 2013 01:09:52 +0000 (18:09 -0700)]
utils: Fix broken sdk build on windows
Bug:
11324229
Change-Id: Ia50e79b5e2430faea77b0c98902e8e018fb9ceff
Igor Murashkin [Wed, 30 Oct 2013 23:01:54 +0000 (16:01 -0700)]
utils: Fix broken build
Bug:
11324229
Change-Id: I7e4f514c5531e4c0c11bb0ba5d67e4dabbcd5792
Igor Murashkin [Wed, 30 Oct 2013 21:09:27 +0000 (21:09 +0000)]
Merge "utils: Add ProcessCallStack to collect stack traces for all threads in a process" into klp-dev
Igor Murashkin [Fri, 25 Oct 2013 00:09:15 +0000 (17:09 -0700)]
utils: Add ProcessCallStack to collect stack traces for all threads in a process
- Also add a Printer class (print lines to logcat, fd, or strings)
Bug:
11324229
Change-Id: I78435ed49aa196a0efb45bf9b2d58b62c41737d3
Nick Kralevich [Thu, 24 Oct 2013 15:53:48 +0000 (08:53 -0700)]
Don't return immediately from reboot commands.
The reboot commands return too fast, interfering with testing.
Add a pause(), which will allow the device time to complete the
reboot.
Change-Id: Ie9cc6eea67b7ff662ec71ea2329cbb94f8d55404
Bug:
11369303
Jeff Sharkey [Fri, 18 Oct 2013 01:45:05 +0000 (01:45 +0000)]
Merge "vold no longer does MS_MOVE; remove tmpfs." into klp-dev
Jeff Sharkey [Thu, 17 Oct 2013 23:25:14 +0000 (16:25 -0700)]
vold no longer does MS_MOVE; remove tmpfs.
MS_MOVE was used when staging external storage devices, which no
longer occurs. In fact, having a writable tmpfs was masking a vold
bug around moving apps to SD cards.
Bug:
11175082
Change-Id: Ib2d7561c3a0b6fde94f651a496cb0c1f12f88d96
Ed Heyl [Thu, 17 Oct 2013 00:48:19 +0000 (17:48 -0700)]
merge in klp-release (no-op)
The Android Automerger [Wed, 9 Oct 2013 13:02:11 +0000 (06:02 -0700)]
merge in klp-release history after reset to klp-dev
Ed Heyl [Tue, 8 Oct 2013 22:45:06 +0000 (15:45 -0700)]
merge in KQS81M
Jeff Sharkey [Tue, 8 Oct 2013 17:14:24 +0000 (10:14 -0700)]
Set GID required to write, media_rw mount point.
Add sdcard FUSE daemon flag to specify the GID required for a package
to have write access. Normally sdcard_rw, but it will be media_rw
for secondary external storage devices, so DefaultContainerService
can still clean up package directories after uninstall.
Create /mnt/media_rw which is where vold will mount raw secondary
external storage devices before wrapping them in a FUSE instance.
Bug:
10330128,
10330229
Change-Id: I4385c36fd9035cdf56892aaf7b36ef4b81f4418a
The Android Automerger [Tue, 1 Oct 2013 13:01:48 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev
William Luh [Mon, 30 Sep 2013 20:19:20 +0000 (20:19 +0000)]
Merge "Add new cert_pin_failure tag that can be used in user-consent filtering." into klp-dev
The Android Automerger [Sun, 29 Sep 2013 13:01:55 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev
Adam Lesinski [Thu, 26 Sep 2013 17:22:15 +0000 (17:22 +0000)]
Merge "Moves libmemtrack header to standard location" into klp-dev
William Luh [Wed, 4 Sep 2013 23:31:24 +0000 (16:31 -0700)]
Add new cert_pin_failure tag that can be used in user-consent filtering.
Bug:
10912373
Change-Id: If8a2f9829b3aac4abc33a4623c5f5b4966fd6870
The Android Automerger [Wed, 25 Sep 2013 13:02:50 +0000 (06:02 -0700)]
merge in klp-release history after reset to klp-dev
Ben Cheng [Tue, 24 Sep 2013 22:39:10 +0000 (22:39 +0000)]
Merge "Disable timestamp logging." into klp-dev
Rom Lemarchand [Tue, 24 Sep 2013 17:49:21 +0000 (10:49 -0700)]
fs_mgr: check that fstab is not NULL in fs_mgr_free_fstab
Make sure fstab is not NULL before freeing it
Bug:
10911605
Change-Id: I549c0a470dd183fb15a2f3c5cf4f3dd393b6e307
The Android Automerger [Tue, 24 Sep 2013 13:02:15 +0000 (06:02 -0700)]
merge in klp-release history after reset to klp-dev
Ben Cheng [Tue, 24 Sep 2013 05:39:15 +0000 (22:39 -0700)]
Disable timestamp logging.
The kernel problem has been fixed long time ago and the ad-hoc logging
mechanism is not thread safe and can flood the log with spurious
messages.
BUG:
10899829
Change-Id: I63278db51295e744eed3e47dc8d4cfe621c0d8f7
Adam Lesinski [Tue, 24 Sep 2013 01:42:41 +0000 (18:42 -0700)]
Moves libmemtrack header to standard location
Change-Id: If8c80003bc2f042c67ffdf38469407de3c2fda2c
Ken Sumrall [Mon, 23 Sep 2013 20:06:57 +0000 (20:06 +0000)]
Merge "Create a separate copy of the fsck logs" into klp-dev
Ken Sumrall [Mon, 23 Sep 2013 20:06:41 +0000 (20:06 +0000)]
Merge "New fstab flags to support more expressive SD card permissions" into klp-dev
The Android Automerger [Sun, 22 Sep 2013 17:51:59 +0000 (10:51 -0700)]
merge in klp-release history after reset to klp-dev
Jeff Sharkey [Sat, 21 Sep 2013 00:58:54 +0000 (17:58 -0700)]
Fix Mac builds, for realz.
Change-Id: I63e21b90e5b8a8f016dd04ceca4354793faa5e37
Ken Sumrall [Thu, 19 Sep 2013 00:49:21 +0000 (17:49 -0700)]
Create a separate copy of the fsck logs
The log_target parameter of android_fork_execvp_ext() is now a
bit field, and multiple targets can be set to log to multiple
places at the same time.
The new target LOG_FILE will log to a file specified by the new
parameter file_path.
Set LOG_FILE and log to a file in /dev (the only writable filesystem
avilable when e2fsck runs) when invoking e2fsck in fs_mgr.
Bug:
10021342
Change-Id: I63baf644cc8c3afccc8345df27a74203b44d0400
Ken Sumrall [Thu, 12 Sep 2013 02:42:51 +0000 (19:42 -0700)]
New fstab flags to support more expressive SD card permissions
Bug:
10330128
Change-Id: I41fb178b839487b604762fbc1ccba097d25c7aa0
Jeff Sharkey [Sat, 21 Sep 2013 00:28:22 +0000 (17:28 -0700)]
Fix Mac builds.
Change-Id: I0eb029395a3afd2f93a7632d7d3d20d28c2ab189
Jeff Sharkey [Thu, 12 Sep 2013 16:44:48 +0000 (09:44 -0700)]
Remove mkdir() side effect, add .nomedia, utils.
Before this change, FUSE lookup() would have the side effect of
creating the directory on behalf of apps. This resulted in most
directories being created just by Settings trying to measure disk
space. Instead, we're switching to have vold do directory creation
when an app doesn't have enough permissions.
Create fs_mkdirs() utility to create all parent directories in a
path as needed. Allow traversal (+x) into /storage directories.
Fix FUSE derived permissions to be case insensitive. Mark well-known
directories as .nomedia when created.
Bug:
10577808,
10330221
Change-Id: I53114f2e63ffbe6de4ba6a72d94a232523231cad
The Android Automerger [Thu, 19 Sep 2013 13:02:37 +0000 (06:02 -0700)]
merge in klp-release history after reset to klp-dev
Mathias Agopian [Wed, 18 Sep 2013 22:31:28 +0000 (22:31 +0000)]
Merge "Fix rotation in camera2 API" into klp-dev
Nick Kralevich [Wed, 18 Sep 2013 19:46:54 +0000 (19:46 +0000)]
Merge "Initialize /dev/urandom earlier in boot." into klp-dev
Jamie Gennis [Wed, 18 Sep 2013 19:17:58 +0000 (19:17 +0000)]
Merge "trace: Add support for tracing 64-bit ints." into klp-dev
Jamie Gennis [Wed, 18 Sep 2013 19:01:18 +0000 (12:01 -0700)]
trace: Add support for tracing 64-bit ints.
Bug:
10624956
Change-Id: Ie1d7c8ac16b5a5ec1e63e4fb1863f5b1ab2b59e8
Nick Kralevich [Tue, 17 Sep 2013 23:18:23 +0000 (16:18 -0700)]
Initialize /dev/urandom earlier in boot.
It's a security best practice to carry entropy across reboots.
(see "man 4 random"). Currently, entropy saving and mixing occur
in the system_server, via the EntropyMixer code. Unfortunately, the
EntropyMixer code runs fairly late in the boot process, which means
early boot doesn't have high quality entropy. This has caused security
problems in the past.
Load entropy data as soon as we can in the early boot process, so that
we can get /dev/random / /dev/urandom into a "random" state earlier.
Bug:
9983133
Change-Id: Id4a6f39e9060f30fe7497bd8f8085a9bec851e80
Mathias Agopian [Wed, 18 Sep 2013 06:48:54 +0000 (23:48 -0700)]
Fix rotation in camera2 API
Bug:
10804238
Change-Id: I093945789d9c6d373392fc9dfd18ec2c6058d3b9
The Android Automerger [Wed, 18 Sep 2013 04:12:12 +0000 (21:12 -0700)]
merge in klp-release history after reset to klp-dev
The Android Automerger [Wed, 18 Sep 2013 00:40:03 +0000 (17:40 -0700)]
merge in klp-release history after reset to klp-dev
Nick Kralevich [Tue, 17 Sep 2013 21:43:12 +0000 (14:43 -0700)]
write_file: introduce O_NOFOLLOW, use sane mask
Don't follow symlinks when writing to a file.
Don't create world-writable files.
Bug:
10802869
Change-Id: Ifb55600d574307a535df878acb3347e02028cd30
The Android Automerger [Tue, 17 Sep 2013 13:01:43 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev
Nick Kralevich [Mon, 16 Sep 2013 17:27:43 +0000 (17:27 +0000)]
Merge "property_service: better validate property names" into klp-dev
Nick Kralevich [Sat, 14 Sep 2013 00:21:28 +0000 (17:21 -0700)]
property_service: better validate property names
Don't allow unexpected characters in property names.
Don't allow double dots in property names.
Bug:
10733330
Change-Id: I8d69740d697efb791f2f201f90989576e13bac81
The Android Automerger [Mon, 16 Sep 2013 13:02:56 +0000 (06:02 -0700)]
merge in klp-release history after reset to klp-dev