• R/O
  • HTTP
  • SSH
  • HTTPS

List of commits

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


RSS
修訂. 時間 作者
36a599b cm-14.1-x86 2016-11-29 01:45:20 Jaap Jan Meijer

Merge remote-tracking branch 'x86/nougat-x86' into HEAD

Conflicts:
init/builtins.cpp
init/devices.cpp
init/init.cpp
init/ueventd.cpp
libcutils/fs_config.c
libdiskconfig/Android.mk
libpixelflinger/tests/codegen/Android.mk

dc67229 2016-11-15 10:52:17 Christopher R. Palmer

init: Allow devices to opt-out of fsck'ing on power off

On the zenfone2 the fsck code patch kills alls processes. This causes
watchdogd to get killed which then causes the system to emergency reboot
instead of powering off.

Change-Id: Ibcc74825df6571caa70e2dde7766a72b7749581b

db04cb7 2016-11-15 10:51:28 Scott Mertz

healthd: allow custom charger images

Change-Id: I1380bea300bfaa6819d50bdc813329c93050286a
(cherry picked from commit b6ebd65cd36d06daa5cf33f031d7e03b0bd674c6)

f422f00 2016-11-14 03:14:49 Michael W

init: Fix possible open file pointer

In error case the file is not closed properly.
Add close() before return

Change-Id: Ie1755987859a576045c786105404957d94f0b39d
(cherry picked from commit 656154a5b4127370f7317852e224a9121c6beed3)

422f671 2016-11-13 01:53:16 Jorge Ruesga

healthd: dock battery

Change-Id: I2ad09e5e87d55c47af4d1efc14cc585cc08e2dce
Require: topic:dock_battery
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

deda0d8 2016-11-13 01:53:16 myfluxi

healthd: Detect power supply type for all charger devices

Power supply type is not determined via the device name,
hence iterate over all available devices in the subsystem
node and read the type from device file.

shell@hammerhead:/ $ ls /sys/class/power_supply
ac
batt_therm
battery
touch
usb
wireless

<4>[ 3184.867782] healthd: touch: Unknown power supply type
<4>[ 3184.868039] healthd: batt_therm: Unknown power supply type
<6>[ 3184.880506] healthd: battery l=89 v=4181 t=25.5 h=2 st=2 c=-288 chg=u
<4>[ 3184.890362] healthd: touch: Unknown power supply type
<4>[ 3184.890549] healthd: batt_therm: Unknown power supply type
<6>[ 3184.899419] healthd: battery l=89 v=4181 t=25.5 h=2 st=2 c=-59 chg=u
<4>[ 3184.908756] healthd: touch: Unknown power supply type
<4>[ 3184.908984] healthd: batt_therm: Unknown power supply type
<6>[ 3184.919672] healthd: battery l=89 v=4181 t=25.6 h=2 st=2 c=-25 chg=u

Change-Id: I863bfab95193899460237b51997e0418eeb4ee2c

dde613d 2016-11-13 01:52:16 Luca Stefani

Revert "healthd: dock battery"

* This isn't a commit, this is a mis-merge

This reverts commit 3a66fa178fdeb6cf1c958d6b76537cf75f8d3e7a.

Change-Id: I4af237ca8134d0b8b1feb22b361578749bf3ea78

8f0937d 2016-11-09 14:20:11 Steve Kondik

Android 7.1.0 release 7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAlgcz/YACgkQ6K0/gZqxDnjX+QCeJd9BGDkyiYp+sD1V1DRR6/mD
SwcAnR5yTEYpJwALWgaYeF1H8IxKuB0O
=vjyK
-----END PGP SIGNATURE-----

Merge tag 'android-7.1.0_r7' of https://android.googlesource.com/platform/system/core into HEAD

Android 7.1.0 release 7

# gpg: Signature made Fri 04 Nov 2016 11:14:14 AM PDT
# gpg: using DSA key E8AD3F819AB10E78
# gpg: Can't check signature: No public key

2efb63d 2016-11-09 00:56:26 Chih-Wei Huang

libsuspend: disable earlysuspend by default

31627ba 2016-11-09 00:56:26 Chih-Wei Huang

ueventd: defer modules loading if explicitly listed

The patch extends the syntax of /etc/modules.blacklist.
The modules marked as deferred in this file will be loaded
after all other modules are loaded at coldboot stage.

2feb26e 2016-11-09 00:56:26 Chih-Wei Huang

init: set default value of ro.hardware to the target name

People usually forget to set the value of androidboot.hardware to
the target name in kernel cmdline which results in boot failure.

The change tries to reduce such an error in the future. The target
name is hardcoded to the image. This eliminates the necessity of
androidboot.hardware.

ec55bd6 2016-11-09 00:56:26 Chih-Wei Huang

ueventd: auto load modules on uevents

This is a squashed and refactory patch of the following commits
from marshmallow-x86:

* 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.

* allow to load modules from standard module path

* 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.

* init: add modprobe to load kernel requested modules

* libcutils: refine probe_module

Make the code be more elegant and fix the realloc bug.

* ueventd: refactory module and firmware loading mechanism

Currently each module and firmware loading event is forked to
a child process to handle. It may cause some race conditions.

Now we fork ueventd into two processes. The parent process handles
normal uevents including modules loading, while the child process
only handles firmware loading events. All events are handled
sequentially.

* ueventd: load all modules with the matched alias

Originally we only load the first module with the matched alias.
It causes some necessary modules are not loaded.

85d9e71 2016-11-09 00:56:26 Chih-Wei Huang

ueventd: fix copied string not being freed

Unlike change Id0a5f711e33363082ba201afda6b26043998cb1c,
parse_subsystem and parse_line_subsystem hold points to memory
of the copied string which can't be freed.

To fix the issue, duplicate the strings to be hold.
Then we can parse the std::string data directly without
copying it.

Change-Id: I4dbf543de6880537b419e6c2344ee6a40ce378f1

baa7774 2016-11-09 00:56:26 Chih-Wei Huang

init: don't bail out even no SELinux domain defined

e02d11e 2016-11-09 00:56:26 Chih-Wei Huang

init: enlarge the time to wait coldboot done

We need more time to probe and load all modules.
If 10s is still not enough for you, let me know.

3b9bfe3 2016-11-09 00:56:25 Chih-Wei Huang

init.rc: symlink /lib to /system/lib

Currently more linux drivers use request_firmware_nowait() to load
firmwares. It requires the firmwares exist in the standard path.

Create the symlink before ueventd started to ensure firmwares
could be loaded correctly.

9c8d774 2016-11-09 00:56:25 Ma Jian

Fix build break on x86_64

When TARGET_ARCH=x86_64, the LOCAL_SRC_FILES will be wrongly set to
codegen.cpp.arm, but the android make will 'smartly' remove the suffix
".arm" and try to compile the codegen.cpp without the libenc dependency.

NO_REF_TASK
Tested: local build

Change-Id: I25df0692886fd8b7c56d467d3b6f674919b09b56

ab3b026 2016-11-09 00:56:25 Ma Jian

Support use local time for RTC

When default timezone isn't UTC, there will no persist.sys.timezone
under /data/property/, so init won't get the default timezone for
setting time from rtc.

This change adds a fallback to read the property when the persist file
does not exists.

Notice, the default property of persist.sys.timezone should be set in
/default.prop instead of /system/build.prop

NO_REF_TASK
Tested: set default timezone with Asia/Shanghai, make sure bios time
is correct in local time, reboot to android, the local time should
be correct.

Change-Id: Ifbd20cb3710f833ab65852b4e5d51e38cc7c2d79

2c7e2af 2016-11-09 00:56:25 Roman Petrovski

init: support usbmisc devices

The patch allows to create usbmisc device nodes like /dev/cdc-wdm0.

4ceaf68 2016-11-09 00:56:25 Chih-Wei Huang

libsuspend: add a property sleep.earlysuspend

Set the property to 0 to disable earlysuspend.
The default value is 1.

c5469fb 2016-11-09 00:56:25 Jaap Jan Meijer

libsuspend: make sleep state configurable and add a fallback

This patch allows the user to set the sleep state target from
Android properties for both wakeup_count and earlysuspend methods.
It also includes a fallback state if the default state is not
available and the user didn't set the sleep.state property.

Signed-off-by: Jaap Jan Meijer <jjmeijer88@gmail.com>

a9a41cf 2016-11-09 00:56:25 Ching Tzung Lin

Mount debugfs earlier regardless build variant

ag/835596 can be reverted after this CL is merged.

BUG:26455292
Change-Id: I453b0f1d08d822f8cd2d4d33f1c1b21f0d7f543a

b0e1429 2016-11-09 00:56:25 Chih-Wei Huang

libsuspend: enable earlysuspend for android-x86

96fc347 2016-11-09 00:56:25 Chih-Wei Huang

init: expand variables on mount_all command

This allows mount_all to handle fstab.${ro.hardware} instead
of hardcoding the file name.

8fc2a60 2016-11-09 00:56:25 Chih-Wei Huang

Software-accelerated Pixel Flinger

The typical graphic workloads on VirtualBox are improved 3X.

Supports both x86 and x86_64.

Similar change by HazouPH <jgrharbers@gmail.com>:
http://review.cyanogenmod.org/#/c/70896/

And by Quanganh pham <quanganh2627@gmail.com>:
http://review.cyanogenmod.org/#/c/97125/

2f01e34 2016-11-09 00:56:25 Chih-Wei Huang

init.rc: fix for "add_tid_to_cgroup failed to write" warnings

I still don't understand why only 0660 works.

c472b6a 2016-11-09 00:27:22 Chih-Wei Huang

Merge branch 'android-ia' into nougat-x86

ba377b7 2016-11-09 00:27:15 Chih-Wei Huang

Allow all to execute su

The Superuser app can control how su is used.

8e851cb 2016-11-09 00:27:15 Chih-Wei Huang

init.rc: let some services run as root

The surfaceflinger needs root permission to control vt.

Run the console shell as root to make debugging easier.

b36d841 2016-11-09 00:27:15 Chih-Wei Huang

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