OSDN Git Service
Jaap Jan Meijer [Wed, 5 Oct 2016 22:14:46 +0000 (00:14 +0200)]
Merge remote-tracking branch 'cm/cm-14.0' into cm-14.0-x86
Conflicts:
init/devices.cpp
init/init.cpp
init/ueventd.cpp
libcutils/fs_config.c
libdiskconfig/Android.mk
libpixelflinger/tests/codegen/Android.mk
Chih-Wei Huang [Wed, 5 Oct 2016 16:21:23 +0000 (00:21 +0800)]
Merge tag 'android-7.0.0_r7' into nougat-x86
Android 7.0.0 Release 7 (NRD91D)
Chih-Wei Huang [Tue, 27 Sep 2016 11:14:12 +0000 (19:14 +0800)]
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.
Courtney Goeltzenleuchter [Mon, 20 Jun 2016 20:49:39 +0000 (14:49 -0600)]
Add color mode enums
The android_color_mode_t defines the color modes supported
by a display. A display can support multiple different
color modes.
sRGB mode and AdobeRGB are deliberately placed at 7 and 8
so that they match mode ID's used on prior devices.
bug: http://b/
27926012
Change-Id: I9ab41b56ec0b495c02539665da5be158ffddf843
Steve Kondik [Tue, 4 Oct 2016 21:35:06 +0000 (14:35 -0700)]
Merge tag 'android-7.0.0_r14' of https://android.googlesource.com/platform/system/core into cm-14.0
Android 7.0.0 Release 14 (NBD90Z)
Steve Kondik [Thu, 29 Sep 2016 12:55:57 +0000 (05:55 -0700)]
Merge branch 'android-framework.lnx.2.0.r5-rel' of git://codeaurora.org/platform/system/core into cm-14.0
Elliott Hughes [Tue, 21 Jun 2016 00:21:59 +0000 (17:21 -0700)]
Use __ with attribute __noreturn__ to avoid colliding with noreturn.
Change-Id: I5a73ec69b580b2e70b2c68177078fa56b8353c19
Christopher N. Hesse [Sat, 17 Sep 2016 16:29:03 +0000 (18:29 +0200)]
libcutils: Fix thread ID on macOS
macOS 10.12 / Xcode 8 actively prohibit the syscall(2)
usage.
Change-Id: I91ff16600a76e97d0b9b5db7e8905b969fb3482f
Sergio Giro [Tue, 28 Jun 2016 17:02:29 +0000 (18:02 +0100)]
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8
Inconsistent behaviour between utf16_to_utf8 and utf16_to_utf8_length
is causing a heap overflow.
Correcting the length computation and adding bound checks to the
conversion functions.
Test: ran libutils_tests
Bug:
29250543
Change-Id: I6115e3357141ed245c63c6eb25fc0fd0a9a7a2bb
(cherry picked from commit
c4966a363e46d2e1074d1a365e232af0dcedd6a1)
Chih-Wei Huang [Fri, 23 Sep 2016 09:59:47 +0000 (17:59 +0800)]
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.
Linux Build Service Account [Thu, 22 Sep 2016 12:23:53 +0000 (05:23 -0700)]
Merge
acd1876a1e313632d7554585c314552c2d809848 on remote branch
Change-Id: Icef2578a2698ed93075ef5da2966ab4428980277
Steve Kondik [Mon, 7 Sep 2015 20:32:21 +0000 (13:32 -0700)]
init: Fire a trigger when a class is started/stopped
* This allows us to react to these events without messing
with the master config.
Change-Id: Ifc72efc7b4cc0718838c711395f5fdc3b043827a
Christopher R. Palmer [Fri, 16 Sep 2016 09:49:40 +0000 (05:49 -0400)]
init: Don't crash the system due to an invalid mkdir argument
Prior to this change, if someone write
mkdir /data/log/sar_cap system system
in one of their init.rc files, this causes init to get a exception
which causes init to exit with no error message to allow you to track
this down which then causes your kernel to panic.
Let's make this a little more user friendly by simply reporting
an error instead of silently crashing the whole damn system.
Change-Id: I2f8c50391e78a9992d33754cf1f1e34e9fcee047
Linux Build Service Account [Thu, 15 Sep 2016 09:07:50 +0000 (03:07 -0600)]
Promotion of android-framework.lnx.2.0-00009.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1059099 I4dfe1ea30e2c211d2389321bd66e3684dd757591 debuggerd: verify that traced threads belong to the righ
1065271 I7878b89a32f0950aa43d3157943982d403632502 init: Add support for slow devices
1064124 I842ce6f62a85b19a79bef4c082e132d1c9649485 init: Fix for handling -p argument in the write command
1050321 I43d0eb850cfff24bbd61b0b1e0f43f591b71e3fe init : start time_daemon when trigger_restart_min_framew
Change-Id: I176768c33df59eb04f34b01cad67fffa0169bdc0
CRs-Fixed:
1059099,
1050321,
1065271,
1064124
Linux Build Service Account [Tue, 13 Sep 2016 22:21:06 +0000 (15:21 -0700)]
Merge "init: Add support for slow devices"
Linux Build Service Account [Tue, 13 Sep 2016 22:21:06 +0000 (15:21 -0700)]
Merge "init: Fix for handling -p argument in the write command"
Keith Mok [Mon, 12 Sep 2016 19:59:09 +0000 (15:59 -0400)]
sdcard: add FUSE_STACKED_IO
Some kernel use FUSE_STACKED_IO
instead of FUSE_SHORTCIRCUIT
Change-Id: I6da68acba9d3a86f896743d161d63b2acc3ab571
Steve Kondik [Tue, 13 Sep 2016 16:22:25 +0000 (09:22 -0700)]
Merge tag 'android-7.0.0_r6' of https://android.googlesource.com/platform/system/core into cm-14.0
Android 7.0.0 release 6
Change-Id: I55b17b97794f226b3876a7a46a233a33c09f7256
Linux Build Service Account [Tue, 13 Sep 2016 05:21:28 +0000 (22:21 -0700)]
Merge "init : start time_daemon when trigger_restart_min_framework"
Ameya Thakur [Tue, 2 Feb 2016 01:19:49 +0000 (17:19 -0800)]
init: Add support for slow devices
Increase the colboot done timeout and keep retrying to locate
the console device on slow targets.
Change-Id: I7878b89a32f0950aa43d3157943982d403632502
Linux Build Service Account [Mon, 12 Sep 2016 14:49:56 +0000 (08:49 -0600)]
Merge
e6784dcee14eaa54bafb49a6e495b670827076b8 on remote branch
Change-Id: I2c8baf7092fc4c9d8667ed9d5d61e94fb3716e16
Steve Kondik [Sun, 11 Sep 2016 10:36:59 +0000 (03:36 -0700)]
adb: Add wait-for-online command
* Add the pseudo-state "online" which means either "device" or
"recovery". This is used by our tooling.
Change-Id: I92034c477d28f847e24ec72bbb87b252fba875e1
Christopher N. Hesse [Sun, 4 Sep 2016 10:26:32 +0000 (12:26 +0200)]
utils: Threads: Handle empty thread names
* Fixes camera for Samsung Exynos devices:
08-30 18:07:03.585 2729 2729 I ExynosCameraFrameFactory: INFO(startThread[1608]):pipeId=0
08-30 18:07:03.585 2729 2729 F libutils.threads: thread name not provided to Thread::run
08-30 18:07:03.586 2729 2729 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 2729 (cameraserver)
08-30 18:07:03.587 2548 2548 W : debuggerd: handling request: pid=2729 uid=1047 gid=1005 tid=2729
08-30 18:07:03.656 6489 6489 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-30 18:07:03.656 6489 6489 F DEBUG : Build fingerprint: 'samsung/aosp_gts210ltexx/gts210ltexx:7.0/NYC/chris08292135:userdebug/test-keys'
08-30 18:07:03.656 6489 6489 F DEBUG : Revision: '0'
08-30 18:07:03.657 6489 6489 F DEBUG : ABI: 'arm'
08-30 18:07:03.657 6489 6489 F DEBUG : pid: 2729, tid: 2729, name: cameraserver >>> /system/bin/cameraserver <<<
08-30 18:07:03.658 6489 6489 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
08-30 18:07:03.673 6489 6489 F DEBUG : Abort message: 'thread name not provided to Thread::run'
08-30 18:07:03.673 6489 6489 F DEBUG : r0
00000000 r1
00000aa9 r2
00000006 r3
00000008
08-30 18:07:03.674 6489 6489 F DEBUG : r4
b5a2c58c r5
00000006 r6
b5a2c534 r7
0000010c
08-30 18:07:03.674 6489 6489 F DEBUG : r8
b28b5380 r9
00000000 sl
00000000 fp
b2a92800
08-30 18:07:03.674 6489 6489 F DEBUG : ip
00000016 sp
be90b350 lr
b4f7e537 pc
b4f80d94 cpsr
200f0010
08-30 18:07:03.694 6489 6489 F DEBUG :
08-30 18:07:03.694 6489 6489 F DEBUG : backtrace:
08-30 18:07:03.694 6489 6489 F DEBUG : #00 pc
00049d94 /system/lib/libc.so (tgkill+12)
08-30 18:07:03.694 6489 6489 F DEBUG : #01 pc
00047533 /system/lib/libc.so (pthread_kill+34)
08-30 18:07:03.694 6489 6489 F DEBUG : #02 pc
0001d885 /system/lib/libc.so (raise+10)
08-30 18:07:03.694 6489 6489 F DEBUG : #03 pc
000193d1 /system/lib/libc.so (__libc_android_abort+34)
08-30 18:07:03.694 6489 6489 F DEBUG : #04 pc
00017014 /system/lib/libc.so (abort+4)
08-30 18:07:03.695 6489 6489 F DEBUG : #05 pc
0000bfd5 /system/lib/libcutils.so (__android_log_assert+112)
08-30 18:07:03.695 6489 6489 F DEBUG : #06 pc
0000e265 /system/lib/libutils.so (_ZN7android6Thread3runEPKcij+212)
08-30 18:07:03.695 6489 6489 F DEBUG : #07 pc
00045903 /system/lib/libexynoscamera.so (_ZN7android16ExynosCameraPipe11startThreadEv+74)
08-30 18:07:03.695 6489 6489 F DEBUG : #08 pc
0007b1c3 /system/lib/libexynoscamera.so (_ZN7android24ExynosCameraFrameFactory11startThreadEj+70)
08-30 18:07:03.695 6489 6489 F DEBUG : #09 pc
0007bcef /system/lib/libexynoscamera.so (_ZN7android24ExynosCameraFrameFactory19startInitialThreadsEv+70)
08-30 18:07:03.695 6489 6489 F DEBUG : #10 pc
0006231d /system/lib/libexynoscamera.so (_ZN7android12ExynosCamera22m_startPreviewInternalEv+1140)
08-30 18:07:03.695 6489 6489 F DEBUG : #11 pc
0006b897 /system/lib/libexynoscamera.so (_ZN7android12ExynosCamera12startPreviewEv+1666)
08-30 18:07:03.695 6489 6489 F DEBUG : #12 pc
000037b1 /system/lib/hw/camera.universal5433.so
08-30 18:07:03.695 6489 6489 F DEBUG : #13 pc
0006094f /system/lib/libcameraservice.so (_ZN7android12CameraClient16startPreviewModeEv+102)
08-30 18:07:03.695 6489 6489 F DEBUG : #14 pc
00060825 /system/lib/libcameraservice.so (_ZN7android12CameraClient15startCameraModeENS0_11camera_modeE+68)
08-30 18:07:03.695 6489 6489 F DEBUG : #15 pc
000282f9 /system/lib/libcamera_client.so (_ZN7android8hardware8BnCamera10onTransactEjRKNS_6ParcelEPS2_j+724)
08-30 18:07:03.695 6489 6489 F DEBUG : #16 pc
000359b3 /system/lib/libbinder.so (_ZN7android7BBinder8transactEjRKNS_6ParcelEPS1_j+70)
08-30 18:07:03.695 6489 6489 F DEBUG : #17 pc
0003d159 /system/lib/libbinder.so (_ZN7android14IPCThreadState14executeCommandEi+684)
08-30 18:07:03.695 6489 6489 F DEBUG : #18 pc
0003cdb7 /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+114)
08-30 18:07:03.695 6489 6489 F DEBUG : #19 pc
0003d2bb /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+46)
08-30 18:07:03.695 6489 6489 F DEBUG : #20 pc
00000b4d /system/bin/cameraserver
08-30 18:07:03.696 6489 6489 F DEBUG : #21 pc
00016c2d /system/lib/libc.so (__libc_init+48)
08-30 18:07:03.696 6489 6489 F DEBUG : #22 pc
00000a18 /system/bin/cameraserver
Change-Id: Ib6234260a5fc5798eea580e0ac594313650de933
Zhao Wei Liew [Thu, 8 Sep 2016 12:06:41 +0000 (20:06 +0800)]
rootdir: writepid to the correct schedTune cgroup mount point
Seems like AOSP missed these out when switching the schedTune
cgroup mount point from /sys/fs/cgroup/stune/ to /dev/stune/.
Reference commit:
11cde567a8fd6fd37cd462e24dd97d0f57bb12a4 Mount schedTune cgroup as /dev/stune
Change-Id: Ie8b1e7f95af6aef82a914199a48e491a00f210b6
Zhao Wei Liew [Thu, 8 Sep 2016 12:01:29 +0000 (20:01 +0800)]
cutils: iosched_policy: Access BFQIO cgroup in /dev/bfqio
AOSP doesn't mount cgroups in /sys/fs/cgroup, but in /dev/.
Follow what AOSP does.
Change-Id: I40d2241e3e5c41612d3a54d22981d3250f8b1ed6
David Ng [Sat, 22 Nov 2014 02:01:08 +0000 (18:01 -0800)]
ueventd: Fix bootdevice by-name/by-num link creation
Create bootdevice by-name/by-num links only if the block
device is the bootdevice. This fixes the issue of
bootdevice path being created incorrectly if the first
reported device with by-name/by-num is not the bootdevice.
It also fixes devices in which the bootdevice property
doesn't exist, or the symlink is created by a later step in
the init sequence (such as init.rc itself)
Change-Id: Ifb68080e3149917f9ee88a4a421007f29e8d83d2
Keith Mok [Mon, 28 Sep 2015 22:03:06 +0000 (15:03 -0700)]
fastboot: format f2fs partition instead of just erase
When doing fastboot -w on Darwin for f2fs partitions,
it only erase it without format it due to a flag not set in Android.mk
Change-Id: I642672467d68c75915900bb88c9aa86571140e03
M1cha [Sun, 4 Sep 2016 10:59:51 +0000 (12:59 +0200)]
unpackbootimg: stash EFIDroid changes
Source: https://github.com/efidroid/build/commits/
5a8c5e9fe25cb4e0e182f55c1dc96d49a95b341c/tools/unpackbootimg
commit
c0bb55fdf63c6ba5b8f4b30303ab624e5cd1eab0
Author: M1cha <sigmaepsilon92@gmail.com>
Date: Fri Aug 26 11:12:28 2016 +0200
unpackbootimg: extract appended fdt too
commit
39fa4df2e200501400a7f80097543c684c91ad8b
Author: M1cha <sigmaepsilon92@gmail.com>
Date: Sun Aug 28 20:49:00 2016 +0200
tools: unpackbootimg: don't write os_version and os_patch_level if they are 0
commit
4bf90a6ecc2530c3eb6d97d90a595655f5c8189f
Author: M1cha <sigmaepsilon92@gmail.com>
Date: Sun Sep 4 10:54:43 2016 +0200
tools: unpackbootimg: create output directory if it doesn't exist
commit
863757ec8f008f189aeb188a6fb8bf8718c040e6
Author: M1cha <sigmaepsilon92@gmail.com>
Date: Sun Sep 4 10:57:02 2016 +0200
tools: unpackbootimg: don't try to split zImage if it's too small
commit
21c7d91fce55bf6ec242ad81768f679a461166cf
Author: M1cha <sigmaepsilon92@gmail.com>
Date: Sun Sep 4 10:57:29 2016 +0200
tools: unpackbootimg: fix base and offset calculations
commit
5a8c5e9fe25cb4e0e182f55c1dc96d49a95b341c
Author: M1cha <sigmaepsilon92@gmail.com>
Date: Sun Sep 4 11:09:47 2016 +0200
tools: unpackbootimg: improve base calculation by substracting 0x8000
Change-Id: I62f4f92c5caaed06cd3858900135231f91f6bc79
Josh Gao [Thu, 30 Jun 2016 21:20:18 +0000 (14:20 -0700)]
debuggerd: verify that traced threads belong to the right process.
Fix two races in debuggerd's PTRACE_ATTACH logic:
1. The target thread in a crash dump request could exit between the
/proc/<pid>/task/<tid> check and the PTRACE_ATTACH.
2. Sibling threads could exit between listing /proc/<pid>/task and the
PTRACE_ATTACH.
Bug: http://b/
29555636
Change-Id: I4dfe1ea30e2c211d2389321bd66e3684dd757591
(cherry picked from commit
d7603583f90c2bc6074a4ee2886bd28082d7c65b)
Ameya Thakur [Wed, 7 Sep 2016 18:23:58 +0000 (11:23 -0700)]
init: Fix for handling -p argument in the write command
We now correctly process the -p argument even if it is not the last
argument passed in to the function. The earlier iteration used to
incorrectly skip over it under some cases.
Change-Id: I842ce6f62a85b19a79bef4c082e132d1c9649485
Michael Bestas [Sun, 4 Sep 2016 10:48:49 +0000 (13:48 +0300)]
mkbootimg: add 32K 64K and 128K pagesizes
Change-Id: I392fe860b51a8c022ffdace45b8eeb46618d6ec6
Jorge Ruesga [Sat, 27 Jun 2015 22:55:25 +0000 (00:55 +0200)]
healthd: dock battery
Change-Id: I2ad09e5e87d55c47af4d1efc14cc585cc08e2dce
Require: topic:dock_battery
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Mattias Nissler [Thu, 31 Mar 2016 14:32:09 +0000 (16:32 +0200)]
Switch fs_mgr and adb to libcrypto_utils.
Update code and dependencies to use BoringSSL + libcrypto_utils
instead of mincrypt.
Change-Id: Ic75164bd50c84b81b6310e27a67d4b3c174984f9
Mattias Nissler [Thu, 31 Mar 2016 14:31:42 +0000 (16:31 +0200)]
Add libcrypto_utils.
This provides a tiny library implementing encode/decode functionality
for Android's custom RSA public key binary format. Keys are encoded
from and decoded to BoringSSL RSA key objects.
Change-Id: I55e5522d557e0e9f35927a87b6581f020ee34e7a
Josh Gao [Thu, 4 Aug 2016 21:53:17 +0000 (14:53 -0700)]
adb: improve display of transfer rate.
Show transfer rate for individual files, and for the overall transfer.
Bug: http://b/
30411535
Change-Id: If2f3008f1287b1d1add4a23c3430b39885b6c904
Test: inspected output manually
Chih-Hung Hsieh [Wed, 27 Jul 2016 23:25:51 +0000 (16:25 -0700)]
Fix clang-tidy performance warnings in syste/core.
* Use const reference type for parameters to avoid unnecessary copy.
* Suppress warning of not using faster overloaded string find function.
Bug:
30407689
Bug:
30411878
Change-Id: I6cfdbbd50cf5e8f3db6e5263076d3a17a9a791ee
Test: build with WITH_TIDY=1
Merged-In: Ie79dbe21899867bc62031f8618bb1322b8071525
Josh Gao [Thu, 4 Aug 2016 18:43:00 +0000 (11:43 -0700)]
adb: add missing newline when printing transfer rate.
Previously, we weren't printing a newline when reporting transfer
rates, so only the last transfer rate printed would be visible.
Bug: http://b/
30667841
Change-Id: Id341147912d057673de4ad26a8f618f04a8c02f3
Test: inspected output manually
Josh Gao [Thu, 4 Aug 2016 21:55:23 +0000 (14:55 -0700)]
adb: fix output of `sync -l`
sync with list-only was using SyncConnection::Error to print its output
persistently, which would prepend "adb: error: " to messages.
Change-Id: I90df5fc1123b8c613c811cf66c37aef05663b1e4
Josh Gao [Thu, 23 Jun 2016 18:21:11 +0000 (11:21 -0700)]
adb: fix fd leak when shell fails to create a thread.
Bug: http://b/
29565233
Change-Id: Ia59c6dbe5ac033425c11739579e85cbcad1170d1
Steve Kondik [Wed, 31 Aug 2016 09:31:13 +0000 (02:31 -0700)]
adb: Check for alternate shell paths
* Check for persist.sys.adb.shell first
* Check for /sbin/sh (recovery)
Change-Id: I191b9289b176809ef754d7a8126acfd355ab009f
atinm [Tue, 3 May 2011 04:26:33 +0000 (00:26 -0400)]
Use RECOVERY_PRE_COMMAND before calling __reboot() recovery
For the Power menu,
frameworks/base/core/jni/android_os_Power.cpp#L180
already uses RECOVERY_PRE_COMMAND if
TARGET_RECOVERY_PRE_COMMAND is defined in the
BoardConfig.mk for a device to make a system() call before
calling __reboot() for recovery. This commit adds
the same thing to the other places that we know we are
getting into recovery using __reboot(), namely,
adb reboot recovery, the reboot binary and init
in the case of errors.
Signed-off-by: Humberto Borba <humberos@gmail.com>
Conflicts:
libcutils/Android.mk
libcutils/android_reboot.c
Change-Id: Id0fb6675accd732f46d4b10e0fce459d2582875c
libcutils : reboot mount fix
On aries for eg, cache needs to be rw for the RECOVERY_PRE_COMMAND to
work because we write to /cache/.startrecovery
This patchset moves the RECOVERY_PRE_COMMAND prior to the remount.
Conflicts:
libcutils/android_reboot.c
Change-Id: I4bd97517e00cdd117191d29b610e9623ad7d9255
RECOVERY_PRE_COMMAND_CLEAR_REASON and extended reboot arguments
fix the 2 new warnings created by our 4-lines recovery patch ;p
Allow also to override toolbox reboot applet, for bootmenu
Conflicts:
libcutils/Android.mk
libcutils/android_reboot.c
toolbox/Android.mk
Change-Id: I2bff30b5f911e7b9ba8f26593523368223b12814
android_reboot: execute recovery pre command while rw mounted
The TARGET_RECOVERY_PRE_COMMAND might need to write to mounted
partitions, so execute it before re-mounting everything as read-
only.
Change-Id: I66b2e81b8c05b9aa6eeddbfb589619ce53e36e2b
M1cha [Fri, 26 Aug 2016 04:29:27 +0000 (06:29 +0200)]
unpackbootimg: turn into a python script
Turn unpackbootimg into a python script instead of a C utility
Change-Id: If049319d12ee9841eefb9ca3fdae5c775403bbbf
Luca Stefani [Fri, 26 Aug 2016 16:23:33 +0000 (18:23 +0200)]
healthd: Fix libhealthd.qcom build
Change-Id: I3bd08cc55501a5a43809837dc5b185817fdd73aa
Brandon McAnsh [Fri, 26 Aug 2016 00:09:31 +0000 (20:09 -0400)]
libsdcard: Add libpackagelistparser as static dependency
Change-Id: I7a481f306a3ee877972b22bd4e5f8104cfd21989
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Luca Stefani [Thu, 25 Aug 2016 22:42:01 +0000 (00:42 +0200)]
fix "init: Bring back support for arbitrary chargermode cmdlines"
Change-Id: Iee7c93c697fa0d129045751dea4ed406a93b3908
Luca Stefani [Thu, 25 Aug 2016 22:29:51 +0000 (00:29 +0200)]
init: vendor_init: Remove duplicated {
Change-Id: Ib098a0b9e5744b07854a23206de0f36fe74e0ed7
Luca Stefani [Thu, 25 Aug 2016 22:28:51 +0000 (00:28 +0200)]
init: Move property_get_bool to c++
Change-Id: I6da69584e0dd72825956d457162030a2d81abe2f
M1cha [Fri, 26 Aug 2016 04:32:25 +0000 (06:32 +0200)]
mkbootimg: add support for --dt
Change-Id: I19f149fac693420cf1f630b51293bbd3650a1b59
Luca Stefani [Thu, 25 Aug 2016 18:02:42 +0000 (20:02 +0200)]
init: Add missing include
Change-Id: I3398cf9bae80a5b2ab182fe732b78b1caf1eba15
Steve Kondik [Thu, 28 Jul 2016 19:17:40 +0000 (12:17 -0700)]
healthd: Add DASH charger type
Change-Id: Ie1ca5018c465f6b2c15cbc00bdf3bb866d98ddef
Tom Marshall [Tue, 5 Jul 2016 20:33:47 +0000 (13:33 -0700)]
healthd: Write to blink file to fix LED
Many devices (such as bacon) require touching a blink file before
changes to the LED are committed to hardware.
Jira: CYAN-7689
Change-Id: Ia18a62134d196a636352bcd1af924c407c19d5b4
Scott Mertz [Wed, 25 May 2016 22:47:42 +0000 (15:47 -0700)]
debuggerd: add CM version to tombstones
Change-Id: I7822a2e133a2f326ad2d8da8f79b0064344d59bf
Christopher R. Palmer [Fri, 15 Apr 2016 23:44:38 +0000 (19:44 -0400)]
healthd: Fix NO_CHARGER_LED
Change-Id: Iaae43e2a236318011b7aefb59250c19dd954521e
Ethan Chen [Thu, 14 Apr 2016 23:49:56 +0000 (16:49 -0700)]
healthd: Allow devices to opt-out of enabling charger LED
* Not all devices will want to enable this, and it may also cause symbol
conflicts with static HAL libraries.
Change-Id: I0a2a082f9bf84b6ecfecf3de88c6d494d5e2cf44
Ethan Chen [Thu, 14 Apr 2016 23:53:23 +0000 (16:53 -0700)]
healthd: Rename default QCOM libhealthd library
* Avoid possible module name conflicts
Change-Id: I4a804a4d1e7266e8918b5a5b50adaffe219ff226
Christopher R. Palmer [Sun, 13 Mar 2016 19:06:20 +0000 (15:06 -0400)]
init: Fix derp in property name for rebooting to charger hook
Change-Id: Ibfee73723d778f16f8e407380083bf3a2667a7a4
Christopher R. Palmer [Fri, 11 Mar 2016 10:47:48 +0000 (05:47 -0500)]
init: Add a hook to turn a shutdown into a reboot
Intel bootloaders have not yet been made android friendly. When the
bootloader is told to shutdown it will shutdown. Android expects the
bootloader to actually shutdown if there is no charger connected and
otherwise to enter charging mode.
Add a hook to init that allows healthd to determine what a shutdown should
do. When the property is specified, any request to shutdown will instead
trigger a restart into the specified mode.
Change-Id: Ie96fb58ecb9a4e8ffe7e73e590483b5323e40b74
Christopher R. Palmer [Sat, 12 Mar 2016 11:08:16 +0000 (06:08 -0500)]
init: Add property_get_bool
Change-Id: I2bef1862f6126f79c64faa7080a00096e4f955c5
David Ng [Tue, 1 Mar 2016 19:13:56 +0000 (11:13 -0800)]
Add optional target-specific LD_PRELOAD to environment
Append additional libraries defined in TARGET_LDPRELOAD to the
LD_PRELOAD environment if it is defined.
Conflicts:
rootdir/init.environ.rc.in
Change-Id: I15f083df87605d2b708b56311430e11409a09dd7
Keith Mok [Tue, 23 Feb 2016 00:56:51 +0000 (16:56 -0800)]
healthd: use timerfd if dev alarm not exist
/dev/alarm driver is deprecated is M.
If it does not exists, use timerfd instead.
SAMBAR-1286
Change-Id: Ie1eac58fddc80a8a545848c2a4f5db0e64eae076
Keith Mok [Tue, 16 Feb 2016 17:46:04 +0000 (09:46 -0800)]
fs_mgr: BLKGETSIZE causes memory corruption
BLKGETSIZE return unsigned long sector size,
but unsigned long is of 8 bytes in 64 bits system.
Passing an integar value will causes stack corruption.
Use BLKGETSIZE64 instead.
Change-Id: If2bf44673f5ab3436f79f0af3252990d56748f5c
Chih-Wei Huang [Mon, 10 Aug 2015 08:31:28 +0000 (16:31 +0800)]
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/
Change-Id: I1cfd80f2951b801f0e10bf67b599a06a83e49089
Ethan Chen [Thu, 18 Feb 2016 01:26:22 +0000 (17:26 -0800)]
healthd: Reduce permissions needed for alarm tracking
* Write permission to /dev/rtc0 is not required.
REF: CYNGNOS-2073
Change-Id: I322601a773ae61d985bf1fb50b605249be40948c
Chao Chen [Thu, 18 Feb 2016 01:43:45 +0000 (17:43 -0800)]
healthd: Reboot to Android when off mode charger timer expires
* Device must reboot to Android to handle off mode alarms.
REF: CYNGNOS-2073
Change-Id: Idf40031a0b31fc1b72c12a3f8770d07a5cb3d44b
Chao Chen [Thu, 18 Feb 2016 01:24:41 +0000 (17:24 -0800)]
healthd: Separate power off alarm implementation into MSM specific HAL
* Make the alarm implementation a separate HAL selected by
BOARD_USES_QCOM_HARDWARE.
REF: CYNGNOS-2073
Change-Id: I232c7999ebadff5c4e4e028c9cc2202441509fb7
Matthew Qin [Fri, 17 Oct 2014 05:11:50 +0000 (13:11 +0800)]
healthd: Support alarm in power off charging mode
To implement this feature need to let the phone reboot some time
earlier than the alarm time.
REF: CYNGNOS-2073
Change-Id: I6505a99b51932ffa23518769f8fd4d2590021543
Jason Riordan [Tue, 9 Feb 2016 18:59:23 +0000 (13:59 -0500)]
charger: Show all charger animations
With level-only set to true 80% battery animation is
only shown when battery is exactly 80%. Set to false
to allow all animation frames to be used.
Change-Id: I7b53e924a661e644ad00ba9906e582d4a6bc2610
Khalid Zubair [Tue, 9 Feb 2016 00:03:36 +0000 (16:03 -0800)]
fastboot: add -R, --reboot switch
Add a fastboot switch to reboot after finishing an operation. This
allows a user to do `fastboot flash system -R' and reboot the device
after the system partition flashes.
The existing reboot *command* cannot be conveniently chained with a
flash command the same way -w can be combined with flash[all].
Change-Id: I4e9f1e7b6336369bc35150f92ff9a56b3db2ef42
Aaron Kling [Fri, 1 Jan 2016 04:33:50 +0000 (22:33 -0600)]
Add vendor hook to handle_control_message
This is needed for Nvidia Shield devices to handle a
'restart consolemode' request from a blobbed stock app.
The vendor function is expected to return non-0 if it did
not handle the message and 0 if it did (or wants it ignored).
Forward port of 119414.
Change-Id: Ia8e4ba0bbf561f29f72862cd986f1660d7b501da
Keith Mok [Thu, 3 Dec 2015 23:36:36 +0000 (15:36 -0800)]
fs_mgr: Change f2fs path
Fix if data partition is wiped, it won't format itself during bootup.
Since f2fs path has been changed to /system/bin in M instead of /sbin
Change-Id: Ic111487d2c5d91da385f2292205abd011128d17d
Tom Marshall [Thu, 18 Dec 2014 22:18:47 +0000 (14:18 -0800)]
adb: host: Provide better sideload status
* Show data transfer in MB and in multiple of the file size.
* Show a spinner to indicate liveness, which is updated at least once
per second regardless of data transfer.
* Do not allow sideload of zero sized files.
Change-Id: I1bd0df6a8183fad5a502fc26a7e789c27d24f71a
Ethan Chen [Mon, 30 Nov 2015 23:47:04 +0000 (15:47 -0800)]
healthd: Actually use correct common backlight function
Change-Id: I4f97007bf1c30626c943e163189a02a58f5c9e3d
Ethan Chen [Mon, 30 Nov 2015 22:36:05 +0000 (14:36 -0800)]
healthd: Call common backlight function
Change-Id: I0cb5a3269cc47f1ddfd7e9e641fcc9405cb97872
Christopher N. Hesse [Sun, 29 Nov 2015 00:08:40 +0000 (01:08 +0100)]
init: Allow targets to ignore the ro.revision property
Change-Id: I789879cde2797474b9303fd5bbf10d4760e6b822
Michaël Burtin [Sat, 4 Feb 2012 23:55:17 +0000 (00:55 +0100)]
set /system/etc/init.d/* permissions
ported from CM7
* moved to fs_config.c in 6.0
Change-Id: I279d78679f7d779d6cd6bbc6c834d94706937ae8
Brian Beloshapka [Thu, 4 Dec 2014 03:34:00 +0000 (22:34 -0500)]
init: create symlinks to mtd block device nodes
Given a device in the form of "/devices/virtual/mtd/mtd0/mtdblock0":
* Creates symlinks for mtd block devices in
/dev/block/mtd/mtd<partition number>
* Creates symlinks based on partition name in
/dev/block/mtd/by-name/<partition name>
Change-Id: Id8d61be88935a0ef83297d1d5e453d8ba0d586de
Ethan Chen [Thu, 29 Aug 2013 07:56:27 +0000 (00:56 -0700)]
init: define BOARD_CHARGING_CMDLINE parameters
Change-Id: I18eaae51d293a03552905ee3a952b2de20e1a311
Ricardo Cerqueira [Sat, 1 Dec 2012 18:38:53 +0000 (18:38 +0000)]
init: Bring back support for arbitrary chargermode cmdlines
This was accidentally removed while debugging the init breakage
fixed in change I8ef5c932efcd5e7f8d6f6fce0915683d84c3ee11. Put
it back
Change-Id: Iaacc30abff0bcd9fa49f98b158b293fa363d9ea3
Christopher R. Palmer [Wed, 22 Jul 2015 10:00:38 +0000 (06:00 -0400)]
init: Allow devices to use user-space tools to set ro.serialno
CUrrently, init will always set a ro.serialno value which means
that the kernel is the only option for configuring the serial
number.
The zenfone2 stores the serial number in a file-system that
is mounted during the boot process and provides tools that pull
the factory configuration from there.
To support this, we need to allow init to opt-out of setting
the serial number for us.
Change-Id: I9c307d91bb8d3cb1c881213dd28e4f76e6eae14f
Pawit Pornkitprasan [Sat, 17 Dec 2011 22:26:54 +0000 (17:26 -0500)]
init: add detection of charging mode
Based on Prashant Somashekar's patch which is in turn based on techomancer's
patch http://goo.gl/I19GG.
When BOARD_CHARGING_MODE_BOOTING_LPM is set, init will read that
value (usually from /sys) and enable charging mode when set to 1.
This differs from the original patch in that Samsung-specific lpm.rc
is not loaded, but instead, init.rc is loaded using the "charger" class,
which is how AOSP devices handle charging.
The change is because the either the SELinux or the init.rc changes is
causing lpm.rc to not work, and porting lpm.rc to the Android system
is easier than trying to fix it.
Change-Id: Ice7a074da7e982f9a64aaa97de28bfcbccdc8b91
Steve Kondik [Thu, 5 Nov 2015 12:09:22 +0000 (04:09 -0800)]
camera: Add L-compatible camera feature enums
* These QC-specific features have been renumbered in M, so add
a compilation flag to permit using the old versions in case we
can't rebuild the driver.
Change-Id: I3f5a545fde8b27684b1b8ea490c09bb66e3b4cd9
Steve Kondik [Sat, 24 Aug 2013 04:12:12 +0000 (21:12 -0700)]
sdcard: Allow building as a static library
* Split main() out in order to allow linking with a multi-call
executable such as recovery.
Change-Id: I3325135e47e4dd5af3912f5ce67ec64007d54a63
Steve Kondik [Fri, 16 Aug 2013 21:29:44 +0000 (14:29 -0700)]
core: Add some static libraries
* Add static versions of libdiskconfig and libsysutils for MiniVold
Change-Id: I9ea9498dcff3f094bbcbb1e05e6d10bc9b83ac74
Michael Bestas [Sun, 15 Feb 2015 09:24:05 +0000 (11:24 +0200)]
healthd: Stop logspam
Change-Id: Ib4a4cb226f61f3e2a4a7c59ca0e0bae47b468d6a
Sravan Kumar Ambapuram [Wed, 7 May 2014 05:45:38 +0000 (11:15 +0530)]
healthd: Disable the RTC wakeup timer
The timer is used here to avoid battery drained to zero. But the periodic
wakeup during suspend should not be needed as MSM PMIC already support
that by trigger interrupt to avoid the critical low battery situation.
This will save more power. And if the design is not support HW interrupt
of low battery, need to enable the timer to periodic check.
Change-Id: I040b4bc8548dc59b5e7cacb9a5a8a3557604f458
Signed-off-by: arter97 <qkrwngud825@gmail.com>
MarcKe [Mon, 26 Jan 2015 03:39:08 +0000 (04:39 +0100)]
healthd: fix LED color on 100%
if soc reaches 100, the loop variable would reach 3.
acessing the the fourth element of soc_leds is undefined behaviour
Change-Id: Iebc521c66844c811afa0244bc7977d1f88144227
MarcKe [Sun, 25 Jan 2015 21:43:56 +0000 (22:43 +0100)]
healthd: more descriptive LED path opening error message
Change-Id: I6e3fa9e34a471c387a62dfc3318fd94620a30cd7
MarcKe [Sun, 25 Jan 2015 21:32:31 +0000 (22:32 +0100)]
healthd: remove useless goto in charger mode
jumping to the cleanup makes a check that will fail anyways,
since fd is smaller than 0
Change-Id: Ic53f186e00fc09a49de5185b01a2bf64a8ceba35
sbrissen [Tue, 16 Dec 2014 13:35:50 +0000 (08:35 -0500)]
Healthd: charger: allow override of LED/BACKLIGHT paths
Change-Id: Ib7372e441d554e16ffc20ce43993ee78cdc5b187
Shareef Ali [Sat, 29 Nov 2014 08:51:53 +0000 (02:51 -0600)]
Core: fix compile issue of healthd.`
fixes this in darwin cp: symlink: /sbin/healthd: File exists
Change-Id: Ia0a51962ec6d1713ece1e9c1d4f9df479fee5f5b
Pawit Pornkitprasan [Tue, 18 Nov 2014 15:36:32 +0000 (22:36 +0700)]
charger: allow home button to wake
A squashed commit of the following:
commit
6ce21d726a967b2cc942476758b9ab3851ff39f1
Author: Pawit Pornkitprasan <p.pawit@gmail.com>
Date: Sun Feb 3 22:21:32 2013 +0700
charger: do not suspend when handling home
When using Google's suspend implementation, home press should also wake
the device from suspend
Change-Id: I51f3e45c5cb418b0b3718e7223a1336876379043
commit
75a7cf84df719d8cf5cd77093b3f9fee3c09017e
Author: Pawit Pornkitprasan <p.pawit@gmail.com>
Date: Sat Jul 21 22:09:37 2012 +0700
charger: allow home button to wake
On certain devices (e.g. galaxysmtd), the user expects the physical
home button to be able to wake the device as well as the power button.
Change-Id: If764f36aba3810dfa5233af8baf0a740b04889e0
Change-Id: I362b227e26bc864a2cad471df799bce2d682ecee
Fenglin Wu [Thu, 11 Sep 2014 02:15:03 +0000 (10:15 +0800)]
healthd: charger: Add tricolor led to indicate battery capacity
Add led to indicate battery capacity when doing off mode charging. The
led behavior is design as below:
i. Shows red led if capacity is lower than 15%.
ii. Shows yellow (red + green) led if capacity is
lower than 90% but higher than 15%.
iii. Shows green led if capacity is higher than 90%.
Change-Id: If637defec8a04e859b00a6492ec1f95d6bff2200
Chirayu Desai [Sun, 25 Nov 2012 10:44:19 +0000 (16:14 +0530)]
toolbox: new applet restart
- stop + start
- for the lazy.
Change-Id: Ie0ef0e27f5b7819a5575ece6b82c5813f4e38420
Biswajit Paul [Fri, 3 Oct 2014 01:40:35 +0000 (18:40 -0700)]
ueventd: Add bootdevice links support for selinux
Adding bootdevice support to define context on common symlink.
Change-Id: I25d7239614539d1ef2c9920e2c321824ee2c664b
Steve Kondik [Wed, 24 Jun 2015 05:45:47 +0000 (22:45 -0700)]
libutils: Improve support for POSIX timers
* Don't repeatedly try to open nonexistent devices where possible.
Change-Id: Id1f18d05943a66978d430556fa16ed761e8e464b
Ricardo Cerqueira [Wed, 26 Nov 2014 21:49:52 +0000 (21:49 +0000)]
Update permissions to the superuser binary
Change-Id: Ia382c74854cfbe625653b8b6b016b37f93132658
Shantur Rathore [Mon, 1 Dec 2014 14:54:19 +0000 (14:54 +0000)]
Set gateway properties for being accessible in DataCallResponse
Some devices need gateway properties to be set inorder to setup route correctly
Change-Id: I45dce29de916f07eb79fad77dec914787c78e7ce
myfluxi [Sun, 25 Oct 2015 15:11:41 +0000 (16:11 +0100)]
healthd: charger: Increase unplugged shutdown time to 5s
1 second is a too short delay for some chargers such as
hammerhead's. Increasing it a bit fixes off-mode charge.
Change-Id: Ibcd2cf68b4f56fcfbcbf8a25ee4e18d1eab73037
Keith Mok [Tue, 8 Sep 2015 07:01:57 +0000 (00:01 -0700)]
Fix build break for multiple definition
Remove unneeded library linked
Change-Id: Ice26d83a73c59460d717340ca57ee898d002dc54
Steve Kondik [Sun, 18 Oct 2015 09:07:16 +0000 (02:07 -0700)]
adb: Fix compilation issue
Change-Id: Ia3284d5b8e428474726f64231f8142cf2474b17f