OSDN Git Service
Chih-Wei Huang [Thu, 8 Jul 2021 13:44:36 +0000 (21:44 +0800)]
init: don't set serialno via kernel cmdline
On an x86 device the product serial number is set in the DMI table.
We don't set it via kernel cmdline. It will be set later in init.sh.
Chih-Wei Huang [Tue, 6 Jul 2021 08:21:55 +0000 (16:21 +0800)]
Merge tag 'android-9.0.0_r61' into pie-x86
Android 9.0.0 Release 61 (
6780336)
Steven Moreland [Tue, 28 Jul 2020 21:41:54 +0000 (21:41 +0000)]
libutils: check vsnprintf error
For encoding errors, this function will return a negative value which
causes problems down the line. Check for an error and return. Also,
integer overflows are guarded.
Bug:
161894517
Test: fuzzer test case
Change-Id: Ia85067d4258bde4b875c832d6223db5dd26b8838
Merged-In: Ia85067d4258bde4b875c832d6223db5dd26b8838
(cherry picked from commit
ee22384c54d42149491c8b9dbcda0d8c5e88eddc)
Steven Moreland [Thu, 28 May 2020 00:29:08 +0000 (00:29 +0000)]
String16::remove - avoid overflow
Bug:
156999009
Test: libutils_test (cases added)
Change-Id: Iad46d95d9848928ba81000090b2fe9aec1e5eaac
Merged-In: Iad46d95d9848928ba81000090b2fe9aec1e5eaac
(cherry picked from commit
f251c1c581f2d1b9940e60e756315c5e15443990)
(cherry picked from commit
9a9c8910e9296c9dc8d79c37f589895f5a2a836c)
(cherry picked from commit
4048e49956a2dfd49af3adf0f78881bf15f3550f)
Chih-Wei Huang [Mon, 20 Jan 2020 10:39:08 +0000 (18:39 +0800)]
Merge tag 'android-9.0.0_r52' into pie-x86
Android 9.0.0 release 52
Chih-Wei Huang [Sat, 23 Nov 2019 07:39:21 +0000 (15:39 +0800)]
init: set default selinux mode to permissive
To support selinux enforcing mode, we still have a long way to go.
Let's set the default mode to permissive.
Chih-Wei Huang [Tue, 12 Mar 2019 08:21:42 +0000 (16:21 +0800)]
libsuspend: add sleep.state=force
Some devices have bad wakeup_count that prevents them from sleeping.
To workaround that, add sleep.state=force to ignore the wakeup_count
interface to put the devices into deep sleep forcibly.
Steven Moreland [Tue, 8 Oct 2019 00:31:17 +0000 (17:31 -0700)]
FlattenableUtils::align memsets
Bug:
141890807
Test: boot, check data is zero'd
Change-Id: I45aaeac369f4c5cf3eb44f61c233e00f870a5c79
(cherry picked from commit
bf824f8fa50d9f7390057278fefb58e83323a644)
(cherry picked from commit
e62a9d7669ac85844d4424474f5c88c096f7160b)
Chih-Wei Huang [Fri, 20 Sep 2019 05:59:41 +0000 (13:59 +0800)]
Merge tag 'android-9.0.0_r48' into pie-x86
Android 9.0.0 release 48
Janis Danisevskis [Wed, 5 Jun 2019 23:42:12 +0000 (16:42 -0700)]
Fix a memory leak in gatekeeper.
In violation to the documentation of GateKeeper::GetAuthTokenKey and
GateKeeper::GetPasswordKey, the implementations in SoftGateKeeper
allocate and return buffers and relinquish ownership causing a memory
leak, because the caller expects the implementation to retain ownership.
Bug:
129768470
Bug:
134557251
Test: gatekeeper-unit-tests
Change-Id: I0af9539d3dcd47dfd1e7d80cdee700ea0c2d6d0f
Merged-In: I0af9539d3dcd47dfd1e7d80cdee700ea0c2d6d0f
(cherry picked from commit
6a9c4e7968e73393110b169b33fb636531fe7fc2)
Chih-Wei Huang [Wed, 3 Jul 2019 03:58:54 +0000 (11:58 +0800)]
Revert "Remove FUSE logic; it's only a sdcardfs wrapper."
This reverts commit
68e1093028185cde31dcacf34a59f6c08848d3d4.
Chih-Wei Huang [Wed, 3 Jul 2019 03:58:30 +0000 (11:58 +0800)]
Revert "Add support for esdfs mounting"
This reverts commit
c336f86284ee817a2e846452ad80e5d014d11414.
Chih-Wei Huang [Thu, 7 Mar 2019 10:36:32 +0000 (18:36 +0800)]
ueventd: auto load modules on uevents (pie-x86)
This is an almost rewritten patch which implements the auto modules
loading function for pie-x86.
The commits from nougat-x86 and oreo-x86 are squashed:
* ueventd: defer modules loading if explicitly listed
* ueventd: auto load modules on uevents
* init: add modprobe
* ueventd: load modules in the main process only
* modprobe: handle module options correctly
* modprobe: fix return value
Chih-Wei Huang [Sun, 10 Jun 2018 09:34:04 +0000 (17:34 +0800)]
libcutils: ignore a trivial error
Sometimes it complains: "add_tid_to_cgroup failed to write '1900'
(No space left on device); fd=11". I don't understand why.
The device should have enough space.
Just ignore this error.
Chih-Wei Huang [Fri, 25 May 2018 10:27:22 +0000 (18:27 +0800)]
logd: show the concrete error if cap_set_proc fails
Chih-Wei Huang [Wed, 13 Dec 2017 06:57:06 +0000 (14:57 +0800)]
ueventd: fix the buggy logging
LOG(xxx) is totally broken. Use KLOG_xxx to actually show the log.
Chih-Wei Huang [Mon, 20 Nov 2017 08:50:20 +0000 (16:50 +0800)]
init: handle ctrl-alt-del event
By setting /proc/sys/kernel/ctrl-alt-del to 1, kernel will trap
ctrl-alt-del event and send a SIGINT signal to init.
Start the ctrl-alt-del service on receiving the signal.
Chih-Wei Huang [Tue, 12 Sep 2017 16:31:57 +0000 (00:31 +0800)]
fs_mgr: check ro.* property first
fs_mgr reads default fstab via ro.hardware property before Android 8.0.
However, Android 8.0 changed it to use ro.boot.hardware. The incompatible
change is bad.
Android-x86 doesn't set ro.boot.hardware anymore. Let's check ro.*
properties as before.
Chih-Wei Huang [Tue, 12 Sep 2017 08:22:04 +0000 (16:22 +0800)]
init: don't bail out even no SELinux domain defined
Chih-Wei Huang [Sat, 20 May 2017 08:29:06 +0000 (16:29 +0800)]
libsuspend: add powerbtnd thread
Also send wakeup key on resume to ensure the system wakes up normally.
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 that 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.
Chih-Wei Huang [Fri, 29 Jul 2016 11:49:58 +0000 (19:49 +0800)]
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.
Ma Jian [Wed, 6 Jul 2016 10:31:55 +0000 (18:31 +0800)]
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
Ma Jian [Sun, 12 Jun 2016 09:34:25 +0000 (17:34 +0800)]
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
Roman Petrovski [Fri, 10 Jun 2016 19:50:00 +0000 (03:50 +0800)]
init: support usbmisc devices
The patch allows to create usbmisc device nodes like /dev/cdc-wdm0.
Jaap Jan Meijer [Thu, 2 Jun 2016 15:43:24 +0000 (17:43 +0200)]
libsuspend: make sleep state configurable and add a fallback
This patch allows the user to set the sleep state target from
Android properties for wakeup_count method.
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>
Ching Tzung Lin [Mon, 11 Jan 2016 21:00:22 +0000 (13:00 -0800)]
Mount debugfs earlier regardless build variant
ag/835596 can be reverted after this CL is merged.
BUG:
26455292
Change-Id: I453b0f1d08d822f8cd2d4d33f1c1b21f0d7f543a
Chih-Wei Huang [Mon, 23 Nov 2015 09:57:37 +0000 (17:57 +0800)]
init: expand variables on mount_all command
This allows mount_all to handle fstab.${ro.hardware} instead
of hardcoding the file name.
Change-Id: Ia7fb4e5a84dd50a46afdd4239b9b06204f449cfe
Chih-Wei Huang [Tue, 26 Feb 2019 15:14:59 +0000 (23:14 +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/
Chih-Wei Huang [Tue, 5 Mar 2019 05:43:08 +0000 (13:43 +0800)]
Merge branch 'android-ia' into pie-x86
Irina Patru [Fri, 22 Aug 2014 12:18:49 +0000 (15:18 +0300)]
UPSTREAM_PENDING newfs_msdos: Handle alignment failure
When trying to create a new FAT32 file system using alignment, the resulted
MBR structure is corrupted, because the total sectors reported does not
correspond to the actual available sectors. This is due to the reserved
sectors field which is updated during the alignment.
When fsck_msdos will try to check this file system, it will fail because it
cannot match the reported sectors with the actual available sectors.
Due to the failed check, the file system cannot be mounted by vold.
I/fsck_msdos( 2180): FAT size too small, 242822 entries won't fit into 1897 sectors
I/fsck_msdos( 2180): fsck_msdos terminated by exit(8)
E/Vold ( 2180): Filesystem check failed (unknown exit code 8)
E/Vold ( 2180): /dev/block/vold/179:49 failed FS checks (I/O error)
D/Vold ( 2180): Volume sdcard1 state changing 3 (Checking) -> 1 (Idle-Unmounted)
In order to fix this issue, we will save the initial bpb structure and restore
it if the alignment fails.
Change-Id: I58d5078551c689b28c9070585bb330c45bab9c62
Signed-off-by: Irina Patru <irina.patru@intel.com>
Reviewed-on: https://android.intel.com/256992
Reviewed-by: Dolca, Robert <robert.dolca@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Popa, Valentin <valentin.popa@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
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>
Chih-Wei Huang [Mon, 3 Nov 2014 15:06:02 +0000 (23:06 +0800)]
Allow all to execute su
Let the Superuser app control how su is used.
Chih-Wei Huang [Wed, 29 Oct 2014 15:25:57 +0000 (23:25 +0800)]
init.rc: run the console shell as root
To make debugging easier.
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
Chih-Wei Huang [Tue, 1 Feb 2011 07:47:03 +0000 (15:47 +0800)]
init: change firmware_dirs for Android-x86
Chih-Wei Huang [Sat, 15 Jan 2011 22:44:37 +0000 (06:44 +0800)]
ueventd.rc: remove redundant definitions
Change-Id: Icb4f051abf941052aca9752ca2949386738d94e5
Martijn Coenen [Wed, 5 Dec 2018 08:42:25 +0000 (09:42 +0100)]
Export maximum number of fds/ints in a native_handle.
So we can deserialize it consisently and safely.
Bug:
120084106
Test: builds
Change-Id: I0eafff70d3a7e4d732fe600a0052efb90108208d
Martijn Coenen [Wed, 5 Dec 2018 08:42:25 +0000 (09:42 +0100)]
Export maximum number of fds/ints in a native_handle.
So we can deserialize it consisently and safely.
Bug:
120084106
Test: builds
Change-Id: I0eafff70d3a7e4d732fe600a0052efb90108208d
(cherry picked from commit
02debfa2df1589c2f8e35cc2db93dd131f43f2db)
android-build-team Robot [Wed, 7 Nov 2018 04:01:11 +0000 (04:01 +0000)]
Snap for
5115288 from
b94cc009432f0b1c0e7b18ce3812580a56ff8d0f to pi-qpr2-release
Change-Id: I4709055bf47574f71518182ca184b1dd9443828b
TreeHugger Robot [Wed, 7 Nov 2018 00:01:24 +0000 (00:01 +0000)]
Merge "init: increase thermal shutdown timeout to 3s" into pi-dev
android-build-team Robot [Wed, 31 Oct 2018 03:11:04 +0000 (03:11 +0000)]
Snap for
5101444 from
afb3a15f39e73978c071a58d3466993293c6d3b1 to pi-qpr2-release
Change-Id: I5a5f1437eab7c9919ded24651fef547a0a920677
Tim Murray [Fri, 26 Oct 2018 00:05:41 +0000 (17:05 -0700)]
DO NOT MERGE: lmkd: retune rate at which processes are killed
Kill a single process at a time and try to wait up to 100ms for
that process to reclaim memory before triggering another kill.
Test: boots, works
bug:
116877958
Change-Id: I6775d0534b3e3728c04389d3eae1a00e3cbf9f27
Wei Wang [Tue, 9 Oct 2018 19:42:06 +0000 (12:42 -0700)]
init: increase thermal shutdown timeout to 3s
1) increase thermal shutdown timeout to 3s for process to save work
2) respect property "ro.build.shutdown_timeout" in thermal shutdown if
it is set less than default time - "3s"
Bug:
112432890
Test: Build
Change-Id: Idc2b24dd44c1fab8f9b047fd2468de2ee45ff783
Merged-In: Idc2b24dd44c1fab8f9b047fd2468de2ee45ff783
(cherry picked from commit
b5de088262b735267288bbdd3f4430f18f281967)
android-build-team Robot [Wed, 17 Oct 2018 03:10:16 +0000 (03:10 +0000)]
Snap for
5073521 from
e77572d76d311ac83449127d550875f778080d9c to pi-qpr2-release
Change-Id: Ic9faca28265d0f09225bf6e509087ad552c2f9b8
TreeHugger Robot [Mon, 15 Oct 2018 19:24:44 +0000 (19:24 +0000)]
Merge "Read memory stats from /proc/pid/stat file." into pi-dev
Rajeev Kumar [Fri, 5 Oct 2018 19:34:59 +0000 (12:34 -0700)]
Read memory stats from /proc/pid/stat file.
(cherry pick from commit
0301683e49ab255769b15469487feaab3466167a)
Bug:
117333340
Test: Manual testing using alloc-stress tool
Change-Id: Ie555933aafa6a6b7aa1dbf5518ebe804376e0afd
Merged-In: Ie555933aafa6a6b7aa1dbf5518ebe804376e0afd
Suren Baghdasaryan [Wed, 10 Oct 2018 21:17:17 +0000 (14:17 -0700)]
lmkd: Implement pid purge command to clear old pids when zygote restarts
lmkd keeps a list of pids registered by ActivityManager, however on rare
occasions when framework restarts and lmkd survives that list has to be
purged. Implement a command that can be used to clear the pid list.
Bug:
116801366
Test: locally by killing zygote process
Change-Id: I71d6012f86bb83a73edd5b687e05a0848e0569b1
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
android-build-team Robot [Tue, 2 Oct 2018 22:04:31 +0000 (22:04 +0000)]
Snap for
5044688 from
d6cbf3f41d7cb54e7dc62f4c29f7a7cba05aa28b to pi-qpr2-release
Change-Id: I962d0906585a4643f49f52d6a0dbd7bca7785536
Suren Baghdasaryan [Wed, 5 Sep 2018 22:46:32 +0000 (15:46 -0700)]
lmkd: rate-limit and cleanup failed kill reports
Excessive number of failed kill reports when lmkd can't find an eligible
process to kill or frees not enough memory pollutes logs and bugreports.
Cleanup kill reports to remove duplicate information and rate limit failed
kill attempts at 1 report per sec. The number of suppressed failed kills
will be reported in the next lmkd report.
Bug:
113864581
Test: Verified using lmkd_unit_test
Change-Id: I67fa1fec97613f136c7582115edcbc56b1503c9c
Merged-In: I67fa1fec97613f136c7582115edcbc56b1503c9c
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
android-build-team Robot [Wed, 8 Aug 2018 03:08:33 +0000 (03:08 +0000)]
Snap for
4939496 from
270e90f033dd412206697e3a27aee76c24038c33 to pi-qpr1-release
Change-Id: I58c840b601d31afc4b161d62a28052f71460e906
Greg Kaiser [Wed, 1 Aug 2018 19:34:32 +0000 (12:34 -0700)]
Revert "Support Speck encryption."
This reverts commit
49c27c5cb2c48ce4665affe2b3086077c768a9ae.
Remove the Speck encryption support. It was eventually
decided not to allow Speck in Android P, so this code
is no longer needed and wasn't used outside of testing.
Bug:
112009351
Test: Confirmed AES continues to work with FBE.
Change-Id: Ia5458143be5687fff8d541d8fa2c8ee24a369da4
android-build-team Robot [Fri, 27 Jul 2018 03:14:25 +0000 (03:14 +0000)]
Snap for
4916303 from
ae2e19dd96e47a084eac09c3b3095b3bef427415 to pi-qpr1-release
Change-Id: I35cf9d0f8977bc35e330ef1b91c207a27f4a4d82
Thierry Strudel [Fri, 20 Jul 2018 01:49:15 +0000 (18:49 -0700)]
metricslogger: fix ACTION_BATTERY_CAUSED_SHUTDOWN not matching proto
Bug:
111664962
Test: "pixelstats_client -s" uses the right ATOM value
Change-Id: I2944c6d9f79298ce88812fad218552b92afee97a
Signed-off-by: Thierry Strudel <tstrudel@google.com>
android-build-team Robot [Thu, 21 Jun 2018 00:58:42 +0000 (00:58 +0000)]
Merge cherrypicks of [
4392181,
4392182,
4392183,
4392184,
4392201,
4392202] into pi-release
Change-Id: I82b5577e2ecdbf50a73df940db72964b9c6969af
Doheon Lee [Tue, 19 Jun 2018 06:23:21 +0000 (15:23 +0900)]
Determine product partition path on build time
Path of product partitoin can be set as /product or /system/product
whether generate extra product partition or not.
Substitute %PRODUCT% to relevant path to know linker which path should
search and permit.
Bug:
110286945
Test: m -j # Check /system/etc/ld.config.$(PLATFORM_VNDK_VERSION).txt
Change-Id: I6ca177d0c9c5af00ad821879fece40848331fc8d
Merged-In: I6ca177d0c9c5af00ad821879fece40848331fc8d
(cherry picked from commit
cccad0bf8461ab575a5861f9bc68c9f8f69db582)
(cherry picked from commit
93d837f3a90acec007647f21ed4573f044fa6f1e)
Inseob Kim [Mon, 18 Jun 2018 04:21:45 +0000 (13:21 +0900)]
Add /system/product/* paths to permitted paths
As linker doesn't resolve paths in permitted paths, /system/product
variants should be added to support devices having product partition
under /system.
Bug:
110286945
Test: m -j succeeds on taimen and libraries under /system can dlopen
libraries under /system/product/apps
Change-Id: Icd102d44511702e4ec66c07a367b59c3d9700a44
Merged-In: Icd102d44511702e4ec66c07a367b59c3d9700a44
(cherry picked from commit
3918936b9e7fee51828d285a1217c7202d5cb2d1)
(cherry picked from commit
c4cf62f4b4e9186a897e943b2419fb9a13739c1b)
Doheon Lee [Tue, 19 Jun 2018 06:23:21 +0000 (15:23 +0900)]
Determine product partition path on build time
Path of product partitoin can be set as /product or /system/product
whether generate extra product partition or not.
Substitute %PRODUCT% to relevant path to know linker which path should
search and permit.
Bug:
110286945
Test: m -j # Check /system/etc/ld.config.$(PLATFORM_VNDK_VERSION).txt
Change-Id: I6ca177d0c9c5af00ad821879fece40848331fc8d
Merged-In: I6ca177d0c9c5af00ad821879fece40848331fc8d
(cherry picked from commit
cccad0bf8461ab575a5861f9bc68c9f8f69db582)
Inseob Kim [Mon, 18 Jun 2018 04:21:45 +0000 (13:21 +0900)]
Add /system/product/* paths to permitted paths
As linker doesn't resolve paths in permitted paths, /system/product
variants should be added to support devices having product partition
under /system.
Bug:
110286945
Test: m -j succeeds on taimen and libraries under /system can dlopen
libraries under /system/product/apps
Change-Id: Icd102d44511702e4ec66c07a367b59c3d9700a44
Merged-In: Icd102d44511702e4ec66c07a367b59c3d9700a44
(cherry picked from commit
3918936b9e7fee51828d285a1217c7202d5cb2d1)
TreeHugger Robot [Mon, 18 Jun 2018 23:35:25 +0000 (23:35 +0000)]
Merge "Revert "healthd: add stem to health@2.0-service.override [DO NOT MERGE]"" into pi-dev
android-build-team Robot [Mon, 18 Jun 2018 23:34:51 +0000 (23:34 +0000)]
Merge cherrypicks of [
4368877,
4369031,
4369032,
4369033,
4369034,
4368878,
4369035,
4369036,
4369008] into pi-release
Change-Id: I05769d63a54c76d20b8724dce36b30e54cba9be6
Hridya Valsaraju [Thu, 31 May 2018 19:39:58 +0000 (12:39 -0700)]
Populate recovery DTBO offset correctly
Also, remove recovery_dtbo_offset argument
for mkbootimg as this is calculated based
on sizes of kernel, ramdisk and second
binaries.
Also, modify unpack_bootimg to use the recovery_dtbo_offset
field to extract recovery_dtbo.
Test: make recoveryimage showcommands -j32
Bug:
80207223
unpack_bootimg --boot_img $OUT/recovery.img
diff recovery_dtbo dtbo.img
Change-Id: I588ccc8b739c169b6f78c17ffe554c5562397d98
Merged-In: I588ccc8b739c169b6f78c17ffe554c5562397d98
(cherry picked from commit
26e01bbdc5cb2dcad64d73ec836447b8ded4fc6c)
(cherry picked from commit
b8371d532d6cd1314954c2d3e9b8a79d3d70e7c7)
Hridya Valsaraju [Wed, 30 May 2018 17:57:18 +0000 (10:57 -0700)]
Correct comment in boot image header
Test: make
Bug:
80207223
Change-Id: I88cf7683e036ff43bbe3ff5418519c7e35e08b79
Merged-In: I88cf7683e036ff43bbe3ff5418519c7e35e08b79
(cherry picked from commit
d0ab4e3701dcec866cb05f4d2a122fbbcabf61cc)
(cherry picked from commit
f514f6f66aba10f2668481a4d643c7983a0ea93a)
Yifan Hong [Mon, 18 Jun 2018 21:22:49 +0000 (21:22 +0000)]
Revert "healthd: add stem to health@2.0-service.override [DO NOT MERGE]"
This should have been done with actual fixes to sepolicy and rc scripts.
This reverts commit
299276785787a35effa829f3f9d507cbde266dea.
Reason for revert: broke the build
Bug:
110228707
Change-Id: I23944d044dd2f87e6c1033ed7a4c7cf34f16247e
Yifan Hong [Mon, 18 Jun 2018 20:15:24 +0000 (20:15 +0000)]
Merge "healthd: add stem to health@2.0-service.override [DO NOT MERGE]" into pi-dev
Yifan Hong [Thu, 14 Jun 2018 22:12:26 +0000 (15:12 -0700)]
healthd: add stem to health@2.0-service.override [DO NOT MERGE]
The override module should have the same name as the -service
module; the only difference is that healthd is installed or not.
Without this change, the binary is completely useless due to
incorrect rc files and sepolicy file_contexts.
This allows emulator to use this module correctly.
Bug:
110228707
Test: builds on emulator, boots
Change-Id: Id2062925ec3567c4fde70358184bb790541bf83b
TreeHugger Robot [Thu, 14 Jun 2018 17:29:54 +0000 (17:29 +0000)]
Merge "Populate recovery DTBO offset correctly" into pi-dev
Hridya Valsaraju [Wed, 30 May 2018 17:57:18 +0000 (10:57 -0700)]
Correct comment in boot image header
Test: make
Bug:
80207223
Change-Id: I88cf7683e036ff43bbe3ff5418519c7e35e08b79
Merged-In: I88cf7683e036ff43bbe3ff5418519c7e35e08b79
(cherry picked from commit
d0ab4e3701dcec866cb05f4d2a122fbbcabf61cc)
Hridya Valsaraju [Thu, 31 May 2018 19:39:58 +0000 (12:39 -0700)]
Populate recovery DTBO offset correctly
Also, remove recovery_dtbo_offset argument
for mkbootimg as this is calculated based
on sizes of kernel, ramdisk and second
binaries.
Also, modify unpack_bootimg to use the recovery_dtbo_offset
field to extract recovery_dtbo.
Test: make recoveryimage showcommands -j32
Bug:
80207223
unpack_bootimg --boot_img $OUT/recovery.img
diff recovery_dtbo dtbo.img
Change-Id: I588ccc8b739c169b6f78c17ffe554c5562397d98
Merged-In: I588ccc8b739c169b6f78c17ffe554c5562397d98
(cherry picked from commit
26e01bbdc5cb2dcad64d73ec836447b8ded4fc6c)
android-build-team Robot [Thu, 7 Jun 2018 07:20:19 +0000 (07:20 +0000)]
Snap for
4826885 from
820ef1505828e89b704f319311ed0cf4ec73752c to pi-release
Change-Id: Ifbb0531108a6292880957b7f4a4a5225926e32c6
TreeHugger Robot [Wed, 6 Jun 2018 13:51:24 +0000 (13:51 +0000)]
Merge "Parse IfIndex for Netlink RTM_NEWADDR / RTM_DELADDR event" into pi-dev
android-build-team Robot [Wed, 6 Jun 2018 07:21:53 +0000 (07:21 +0000)]
Snap for
4824048 from
ea03e1f8412903838b449871190e1279dc79e076 to pi-release
Change-Id: I0f4785f6e473990eb636cea655c7d1c78022de93
Mark Salyzyn [Tue, 5 Jun 2018 14:33:35 +0000 (07:33 -0700)]
liblog: expect content only if ro.logd.kernel is enabled
On svelte devices, CTS test liblog#android_logger_get_ fails on the
missing kernel buffer because it is not enabled to save space.
Test: gTest liblog_unit_tests
Bug:
109669791
Change-Id: Iaf46fe9713d3462a56885515a67db640544345ab
android-build-team Robot [Sun, 3 Jun 2018 07:20:49 +0000 (07:20 +0000)]
Snap for
4818534 from
9bd3ee1c4f14f268b0959edd891ef852b95370b8 to pi-release
Change-Id: Idc9af3a531d434302036e2d1d61e172bd9a7849d
Inseob Kim [Thu, 31 May 2018 04:03:58 +0000 (13:03 +0900)]
Support /product/bin
Bug:
80422611
Test: m -j succeeded and permissions of files under /product/bin are set
correctly
Change-Id: I83377d809c47c92da6b226d2853ea6a7462fb127
Merged-In: I83377d809c47c92da6b226d2853ea6a7462fb127
(cherry picked from commit
25195daaca079e048e47b38b83fc41527a89ccb0)
TreeHugger Robot [Fri, 1 Jun 2018 01:00:28 +0000 (01:00 +0000)]
Merge "Support product-specific libraries" into pi-dev
Yin-Chia Yeh [Thu, 31 May 2018 19:14:14 +0000 (12:14 -0700)]
Camera: add DISABLE error code
Test: CTS CameraEvictionTest + IdleUidTest
Bug:
77486868
Change-Id: I1411d6667776963435ce25bd643a33c41d224921
Inseob Kim [Fri, 4 May 2018 02:39:12 +0000 (11:39 +0900)]
Support product-specific libraries
Product-specific libraries in /product/lib can be exposed to Android
apps by adding the list of the libs into
/product/etc/public.libraries-<companyname>.txt. The libs MUST be named
as lib<name>.<companyname>.so.
Bug:
73095206
Test: with taimen
mma -j and runtest.sh. The libs are all loaded in system, but not in
vendor. After reinstalling app using adb -r and reopening app, only
libraries listed in .txt are loaded
Change-Id: I7c386813c72a7b225a7f244b6c5fec4ac0660fd3
Merged-In: I7c386813c72a7b225a7f244b6c5fec4ac0660fd3
(cherry picked from commit
67cb05654cfa677fd5db33ea0629a9496a9ae907)
android-build-team Robot [Sun, 27 May 2018 07:28:13 +0000 (07:28 +0000)]
Snap for
4807121 from
39edb87aaf21f9bd452f3f164ee90cf7a9e14518 to pi-release
Change-Id: Ie984edd49d1535bd3fc0686a3b6144b2659b25a9
android-build-team Robot [Thu, 24 May 2018 07:24:19 +0000 (07:24 +0000)]
Snap for
4801384 from
c70e76f1a4571dbc767a07e809341a73d3cdb289 to pi-release
Change-Id: I33f4e3cdd7a211df7432408c810cf3194112db93
TreeHugger Robot [Thu, 24 May 2018 07:03:36 +0000 (07:03 +0000)]
Merge "healthd_mode_charger: unblank the screen only on first frame" into pi-dev
Andrew Chant [Thu, 24 May 2018 01:30:58 +0000 (01:30 +0000)]
Merge "Add cwren to libmetricslogger OWNERS" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 01:20:17 +0000 (01:20 +0000)]
Merge "Make per-application memcg hierarchy configurable via a property" into pi-dev
Thierry Strudel [Wed, 23 May 2018 22:48:46 +0000 (15:48 -0700)]
healthd_mode_charger: unblank the screen only on first frame
Original code is unblank screen for all frames of the first
cycle, unblank is needed only before the first frame of the
first cycle.
Bug:
74771887
Change-Id: I51d8390e359335a0b1cb127b096db1a8b889b169
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Suren Baghdasaryan [Wed, 23 May 2018 19:30:44 +0000 (12:30 -0700)]
Make per-application memcg hierarchy configurable via a property
Introduce ro.config.per_app_memcg Android property to enable/disable
per-application memcg hierarchy.
On low-ram devices (ro.config.low_ram=true) ro.config.per_app_memcg
defaults to true, otherwise it defaults to false.
Bug:
80201565
Test: set ro.config.per_app_memcg=true and verify /proc/<app_pid>/cgroup
membership (memory:/apps/uid_xxx/pid_xxx)
Test: set ro.config.per_app_memcg=false and verify /proc/<app_pid>/cgroup
membership (memory:/)
Change-Id: Iabd3ef6c9c16c774b9da959a7f43b5f66df120a3
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Andrew Chant [Wed, 23 May 2018 21:25:45 +0000 (21:25 +0000)]
Merge "Add Hardware Reliabilty metrics to C header" into pi-dev
Andrew Chant [Wed, 23 May 2018 21:15:10 +0000 (14:15 -0700)]
Add cwren to libmetricslogger OWNERS
Bug:
69978775
Test: None.
Change-Id: Ic48e37fa4a1fa192bcd948954dc056219535e0b8
android-build-team Robot [Wed, 23 May 2018 07:28:01 +0000 (07:28 +0000)]
Snap for
4799153 from
428a6ffaf8fb3b9420180a6f54ad4e0f229c96d7 to pi-release
Change-Id: I8b50c825ba0cdcaedd4729b759cecf5ee3d48a4c
Andrew Chant [Fri, 11 May 2018 17:10:29 +0000 (10:10 -0700)]
Add Hardware Reliabilty metrics to C header
Expose Hardware Reliabilty TRON metrics constants
for logging via C++ interfaces.
Bug:
69978775
Test: Logged events from Pixelstats HAL
Change-Id: I9a1c4467d31f64ae3c43e35b0a4cf5a92157c39f
Jordan Liu [Tue, 22 May 2018 21:12:31 +0000 (21:12 +0000)]
Merge "Add a new directory to store downloaded apns" into pi-dev
Tom Cherry [Tue, 22 May 2018 20:15:07 +0000 (20:15 +0000)]
Merge "init: finer grained permissions for ctl. properties" into pi-dev
Tom Cherry [Tue, 22 May 2018 17:13:41 +0000 (17:13 +0000)]
Merge "init: allow entering of network namespaces" into pi-dev
Christopher Ferris [Tue, 22 May 2018 16:24:45 +0000 (16:24 +0000)]
Merge "Fix bug when doing signal handler lookup." into pi-dev
Tom Cherry [Thu, 3 May 2018 23:57:19 +0000 (16:57 -0700)]
init: finer grained permissions for ctl. properties
Currently, permissions for ctl. property apply to each action verb, so
if a domain has permissions for controlling service 'foo', then it can
start, stop, and restart foo.
This change implements finer grainer permissions such that permission
can be given to strictly start a given service, but not stop or
restart it. This new permission scheme is mandatory for the new
control functions, sigstop_on, sigstop_off, interface_start,
interface_stop, interface_restart.
Bug:
78511553
Test: see appropriate successes and failures based on permissions
Change-Id: I6ce915ae39954a67eb6fe1795a93cf715c352ae4
android-build-team Robot [Tue, 22 May 2018 07:27:05 +0000 (07:27 +0000)]
Snap for
4796401 from
93d48fe0b6e891d785caefdc02065da58e749c69 to pi-release
Change-Id: I9d5a3d4d48b6944b00e032511151eb1a4a391d4b
TreeHugger Robot [Tue, 22 May 2018 05:26:16 +0000 (05:26 +0000)]
Merge "Add files to CleanSpec.mk" into pi-dev
Suren Baghdasaryan [Fri, 18 May 2018 21:42:00 +0000 (14:42 -0700)]
lmkd: Do not set soft_limit_in_bytes on high-end devices
Setting memory.soft_limit_in_bytes on high-end devices with large memory
reserves affects performance of memory-hungry applications that have
large workingsets and keep thrashing because of the memory limits imposed.
Limit the usage of memory.soft_limit_in_bytes to low-memory devices only.
Add debug messages for future troubleshooting to capture cases when
vmpressure events are being ignored.
Bug:
78916015
Test: collect vmstat while running a heavy app
Change-Id: Ib4434b96d2be802ef89960b573486eae8d12f198
Merged-In: Ib4434b96d2be802ef89960b573486eae8d12f198
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
TreeHugger Robot [Mon, 21 May 2018 23:14:38 +0000 (23:14 +0000)]
Merge changes from topic "generic_by_name" into pi-dev
* changes:
Adds /dev/block/by-name/<partition> symlinks
Removing block device by-num symlinks