Commit Graph
10911 Commits
Author SHA1 Message Date
Ng Zhi An 3de293f4a2 Merge "Check that install file exists before unlink" am: 05d48050c1 am: a04ff295cf
am: 737e6cc600

Change-Id: I5c6e484133c16e472941c81b63ef0f7e78e4f71b
2019-01-23 21:58:18 -08:00
Ng Zhi An 737e6cc600 Merge "Check that install file exists before unlink" am: 05d48050c1
am: a04ff295cf

Change-Id: I00c9323e3c774f25d4c746e439d8c50bb75935b6
2019-01-23 21:54:11 -08:00
Ng Zhi An a04ff295cf Merge "Check that install file exists before unlink"
am: 05d48050c1

Change-Id: I2a216be7e2f055cc520405bd49f67c3dc18bc542
2019-01-23 21:47:17 -08:00
Treehugger Robot 05d48050c1 Merge "Check that install file exists before unlink" 2019-01-24 05:35:51 +00:00
Suren Baghdasaryan 9ce1d14ef6 DO NOT MERGE: Revert "Add libprocessgroup dependency"
This reverts commit 62d0c7873c.

Reason for revert: Broke AOSP

Change-Id: I88ef00ebce797f7fdca3678ab93fcae364453a8c
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-01-23 20:46:46 -08:00
Ng Zhi An 14417a5d2a Check that install file exists before unlink
This will remove spurious error messages in logcat such as:

08-02 00:27:21.580   600   600 E /system/bin/recovery-persist: Failed to
unlink /data/misc/recovery/last_install: No such file or directory

since the install file doesn't exist in the first place.

Bug: None
Test: m
Change-Id: Ifaa95729c50efae4e641286dfbe1718aceb5f50a
2019-01-23 15:16:29 -08:00
android-build-team Robot ea43f13236 Snap for 5251505 from 734dd91a48 to qt-release
Change-Id: I8a853361f274ac0b6c482408926e19cfb61e5698
2019-01-23 04:07:17 +00:00
Suren Baghdasaryan 734dd91a48 [automerger skipped] Merge "Add libprocessgroup dependency" am: 4475f7330a am: bd36c3a8ec
am: 73a460b06f -s ours
am skip reason: change_id I7cf75e473ee1e2837940606c71d15be26db0c3f2 with SHA1 79f4680e4d is in history

Change-Id: Iac56fd9de1905a5e224ff883dc98e9a4cd831d9e
2019-01-22 14:08:40 -08:00
Suren Baghdasaryan 73a460b06f Merge "Add libprocessgroup dependency" am: 4475f7330a
am: bd36c3a8ec

Change-Id: Ib573f07c3a42d2e39f805e8a7dfda03d9f01d79f
2019-01-22 13:42:44 -08:00
Suren Baghdasaryan bd36c3a8ec Merge "Add libprocessgroup dependency"
am: 4475f7330a

Change-Id: Ia7d2a6c5d4bfb511e6417eaf1e81f76108415c6f
2019-01-22 13:04:21 -08:00
Suren Baghdasaryan 4475f7330a Merge "Add libprocessgroup dependency" 2019-01-22 20:58:15 +00:00
Captain Throwback 5cb78dc280 Revert "Fix ld.config.txt errors on Android 8.1 system root devices"
This reverts commit 1ccdefab79.

Reason for revert: Causes delay during boot resulting in failed decryption on FDE devices. Recommend having device maintainers specify this variable manually in rc file and include actual ld.config.txt (or placeholder) in ramdisk directly.

Change-Id: Ib2410675396b38522d690c6057057d164cc0cff2
2019-01-22 19:28:02 +01:00
Suren Baghdasaryan 62d0c7873c Add libprocessgroup dependency
Because set_sched_policy is moved into libprocessgroup an additional
dependency is requred for recovery_component_test to build.

Exempt-From-Owner-Approval: janitorial

Bug: 111307099
Test: builds, boots

Merged-In: I7cf75e473ee1e2837940606c71d15be26db0c3f2
Change-Id: I7cf75e473ee1e2837940606c71d15be26db0c3f2
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-01-20 22:04:43 +00:00
android-build-team Robot 0f29f2dd9f Snap for 5246489 from 79f4680e4d to qt-release
Change-Id: I69685ebd04425ff3fbecbc7198e4fb718eb03deb
2019-01-20 04:19:11 +00:00
big biff c757a66477 Merge "Revert "updater: Remove dead make_parents()."" into android-9.0 2019-01-19 17:02:53 +01:00
Captain Throwback f0167c4af9 toybox: create getprop symlink on SDK 27
Currently when building for SDK 27 with TW_USE_TOOLBOX,
no getprop symlink is produced. This minor change creates
a symlink for getprop on SDK 27.

Change-Id: I71bd3e0d0525bd0ae51634f52a5749ba0ff58444
2019-01-18 13:19:13 -05:00
Andreas Schneider df7c39dfcd minuitwrp: Remove unused variables
Change-Id: Ia5cfb747f300557ebd719538244655c8b792c407
2019-01-18 09:09:00 +01:00
Ethan Yonker 54970bb1a9 Fix Check_Lifetime_Writes on AB devices
Change-Id: Ie1904d9c48639e8ac9f95d9d2dfb1d965c571928
2019-01-17 16:19:55 -06:00
Ethan Yonker 933828251d Add metadata decrypt support for FBE
Change-Id: Ie0292f4ffea5993a4ae74fa04fc5c8252ca2cfcf
2019-01-17 14:14:59 -06:00
xunchang 53158e51d0 Fix potential size overflow in blockimg.cpp
Switch to 64 bit integers since the size of the entire src/tgt images may
not fit in size_t of ILP32.

There are other theoretical overflow cases in memory allocation and I/O
functions. However, they reside within a single transfer command and are
less likely to happen. I will evaluate and address them in separate
cls.

Test: unit tests pass
Bug: 122461124
Change-Id: Ib719ee695920877458fcfaa25c6ac058a5bbabf2
2019-01-17 09:26:12 -08:00
android-build-team Robot f9b3924ffb Snap for 5240105 from 2f216f3993 to qt-release
Change-Id: Iffc8e0b10120c7f329e85e8f0dd3d727c817d86d
2019-01-17 17:05:08 +00:00
Suren Baghdasaryan 79f4680e4d Add libprocessgroup dependency
Because set_sched_policy is moved into libprocessgroup an additional
dependency is requred for recovery_component_test to build.

Exempt-From-Owner-Approval: janitorial

Bug: 111307099
Test: builds, boots

Change-Id: I7cf75e473ee1e2837940606c71d15be26db0c3f2
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-01-17 02:42:38 +00:00
Hridya Valsaraju 2f216f3993 Merge "e2fsck_static is no longer needed for remount" am: 725d7f8dfd am: f1fd5ec266
am: 5792ea8690

Change-Id: I2068f1c6a029c31d86415ab98a42b588d7bde68d
2019-01-16 18:35:14 -08:00
Hridya Valsaraju 5792ea8690 Merge "e2fsck_static is no longer needed for remount" am: 725d7f8dfd
am: f1fd5ec266

Change-Id: I8593bdf9366e72bc165117fc1fe8414567984661
2019-01-16 18:02:46 -08:00
Hridya Valsaraju f1fd5ec266 Merge "e2fsck_static is no longer needed for remount"
am: 725d7f8dfd

Change-Id: Ie67ab328d10aebd078a1a41fe48b79f6d4467ebe
2019-01-16 17:58:41 -08:00
Treehugger Robot 725d7f8dfd Merge "e2fsck_static is no longer needed for remount" 2019-01-17 01:43:33 +00:00
Hridya Valsaraju 6f44c11357 e2fsck_static is no longer needed for remount
Remount will instead use overlayfs. If the device is not configured
to use overlayfs or if the device does not support dynamic partitions
but has chosed to setup an ext4-dedupe filesystem, e2fsck_static must
then be included in recovery.

Bug: 122115286
Test: fastboot flashall
Change-Id: I931282dbc67ff4ef53291bcbc5a078b500e5e807
2019-01-16 23:42:55 +00:00
Tao Bao a70556178e Merge "screen_ui: Trivial fix to append newline when logging." am: 594a63cc9d am: fadc163b60
am: 8df7ff0026

Change-Id: I7ac89722d144556e5b52b2d0f40d80682ae63a6a
2019-01-16 15:41:55 -08:00
Tao Bao 8df7ff0026 Merge "screen_ui: Trivial fix to append newline when logging." am: 594a63cc9d
am: fadc163b60

Change-Id: I8ccdaf85363fe03a59bd79dd67d5755c9a2d9f72
2019-01-16 15:36:51 -08:00
Tao Bao fadc163b60 Merge "screen_ui: Trivial fix to append newline when logging."
am: 594a63cc9d

Change-Id: Ib2c433d68cbb38627b1b40919428ba337f617fe6
2019-01-16 15:27:44 -08:00
Tao Bao 594a63cc9d Merge "screen_ui: Trivial fix to append newline when logging." 2019-01-16 23:14:09 +00:00
Tao Bao a00b449e1f screen_ui: Trivial fix to append newline when logging.
Noticed while debugging other issues.

Test: Boot and check recovery.log.
Change-Id: Id92265cff287b9de89efe5eea85581e63e31aeb2
2019-01-16 09:31:12 -08:00
Ethan Yonker 2f685279fd libminuitwrp updates for Pixel 3 devices
Fix rules for adf graphics to detect their presence when ninja
make files are used.
Change pixelflinger graphics mode so that colors display properly
on the Pixel 3

Change-Id: Ie7181be6c5e1e9a007b58fd798b2cef787ce4a01
2019-01-16 10:11:28 -06:00
lambdadroid d842fe1ae0 minuitwrp: Fix detection of libdrm on Pie
external/libdrm was fully converted to Android.bp on Pie, causing
the wildcard to match nothing, even though libdrm is present in
the build tree. Change it to cover both build files.

Change-Id: I4b092b29ac021cc1aa3bcf7346b225b79fd99f4b
2019-01-16 16:43:49 +08:00
Simon Shi fcfc634ea6 twrp: Fix unsigned compare compile warning.
Change-Id: I7e847e76932a6ceea3e669e8b8b9ec35e5ef9d9d
2019-01-16 16:43:46 +08:00
notsyncing c7c78d2fea minuitwrp: Support haptics drivers registered with LED class framework
This type of vibrator is found on newer kernel versions (4.9+) and
registers with LED class framework (located at /sys/class/leds/vibrator).

Change-Id: I85e93fdac17b3f4b6f2ae689bbbd490806b5c29b
2019-01-16 16:43:42 +08:00
notsyncing 8e4e8ec2f9 minuitwrp: Respect TARGET_RECOVERY_PIXEL_FORMAT config.
Respect TARGET_RECOVERY_PIXEL_FORMAT config in screenshot, graphics.
This fixes other wrong theme color in minuitwrp on Xiaomi MIX 2S.

Change-Id: Ieb8480c411e2f0c72cc50ffca66943ab025e2b7e
2019-01-16 16:43:30 +08:00
android-build-team Robot f11d99decc Snap for 5235151 from fec7ff6300 to qt-release
Change-Id: I721ed7b6c4613c4f80931b5be4c15af82080c1d2
2019-01-16 04:09:45 +00:00
Yifan Hong fec7ff6300 Merge "updater: add functions to modify dynamic partition metadata" am: 27aa9404fc am: 4def1e8a54
am: dc97097fc0

Change-Id: Ie39a637a7f0c17374435118eec211b08f63dc3e6
2019-01-15 16:50:12 -08:00
Yifan Hong dc97097fc0 Merge "updater: add functions to modify dynamic partition metadata" am: 27aa9404fc
am: 4def1e8a54

Change-Id: I6d9d00e94329b69ab13a526a83fe9ffb47b46978
2019-01-15 16:42:36 -08:00
Yifan Hong 4def1e8a54 Merge "updater: add functions to modify dynamic partition metadata"
am: 27aa9404fc

Change-Id: I0b432e53aba06129b01b34b56e169f05a564b77c
2019-01-15 16:26:47 -08:00
Yifan Hong 27aa9404fc Merge "updater: add functions to modify dynamic partition metadata" 2019-01-16 00:10:58 +00:00
android-build-team Robot ce83dc1594 Snap for 5231632 from fed4ded442 to qt-release
Change-Id: I5f78339c974f76a61b06ded6a257c7cd093bddfc
2019-01-15 07:25:11 +00:00
Yifan Hong fed4ded442 Merge "Create stash dir recursively." am: 7a0b65472b am: 32932a48f9
am: 6f366ee4dd

Change-Id: I49e75d8ac06bf80447b205e9cd2e040c191ee106
2019-01-14 14:20:09 -08:00
Yifan Hong 6f366ee4dd Merge "Create stash dir recursively." am: 7a0b65472b
am: 32932a48f9

Change-Id: Id2b155a768e5cec4486bd778fa26a7cc4fe32602
2019-01-14 14:11:09 -08:00
Yifan Hong 8ff84d7cfb updater: add functions to modify dynamic partition metadata
Test: sideload full OTA on cuttlefish
Test: sideload incremental OTA on cuttlefish (that grows
      system, shrinks vendor, and move vendor to group foo)
Test: verify that /cache/recovery/cc46ebfd04058569d0c6c1431c6af6c1328458e4
      exists (sha1sum of "system")

Bug: 111801737

Change-Id: Ibdf6565bc1b60f3665c01739b4c95a85f0261ae5
2019-01-14 14:01:13 -08:00
Yifan Hong 32932a48f9 Merge "Create stash dir recursively."
am: 7a0b65472b

Change-Id: I6f47807075044e6e71078db99988190ced32e157
2019-01-14 13:40:35 -08:00
Yifan Hong 7a0b65472b Merge "Create stash dir recursively." 2019-01-14 20:56:57 +00:00
big biff 4d7b0e0350 Merge "vold_decrypt: use ANDROID_ROOT for additional compatibility" into android-9.0 2019-01-12 00:23:03 +01:00
Yifan Hong 63f5260c6c Create stash dir recursively.
When applying an OTA package onto the device in OTA mode,
if the recovery logs haven't been viewed, there is a chance
that /cache/recovery does not exist. Then, stash creation will
fail. Create stash directories recursively to avoid this error.

Test: without /cache/recovery, sideload the OTA on cuttlefish
Change-Id: I5cc01a067d866476a3594e795dcb5b15649e817b
2019-01-11 15:13:22 -08:00