Commit Graph
10911 Commits
Author SHA1 Message Date
Tianjie Xuandandroid-build-merger 2e1c88306b Merge "Move wipe cache|data to libinstall" am: 9fc764f1f0 am: 2148d317cd
am: 97e692fab3

Change-Id: I0417a4f2eb0d3237db5070e7d355be48d511355c
2019-04-15 16:38:43 -07:00
Tianjie Xuandandroid-build-merger 97e692fab3 Merge "Move wipe cache|data to libinstall" am: 9fc764f1f0
am: 2148d317cd

Change-Id: Ifdfe1766035a0d99b6c608a76c28f6d566cb5f65
2019-04-15 16:03:19 -07:00
Tianjie Xuandandroid-build-merger 2148d317cd Merge "Move wipe cache|data to libinstall"
am: 9fc764f1f0

Change-Id: I6d3fc5b0fa75a25a96d8939e0f9c3b04de1f5245
2019-04-15 15:57:17 -07:00
Tianjie XuandGerrit Code Review 9fc764f1f0 Merge "Move wipe cache|data to libinstall" 2019-04-15 22:34:19 +00:00
xunchang 316e971746 Move wipe cache|data to libinstall
Therefore, libinstall becomes the sole owner to handle the request
from minadbd service.

The change also includes
1. move logging.cpp out of librecovery
2. drop the dependency on common.h
3. now it's more sensible to move the wipe_cache as part of
install_package. move the wipe_cache to the end of the function.

Bug: 130166585
Test: wipe data and cache from menu
Change-Id: I6f356dccdb38015c50acf756bac246f87c30fc1f
2019-04-15 12:22:11 -07:00
bigbiff bigbiff ceb032052f languages: encode for utf-8 in the appropriate places.
Change-Id: I74308aae75098aa1a47b7f11b7c3214fe4e6d58e
2019-04-14 20:35:43 -04:00
Bill Yiandandroid-build-merger 90019a4cf2 [automerger skipped] Merge "Import translations. DO NOT MERGE" am: 0b172415fd -s ours am: 440d03ede2 -s ours
am: b5937efb0d -s ours
am skip reason: subject contains skip directive

Change-Id: I3692dbb4a164e9d483c8117ff0e608db344d5205
2019-04-13 05:10:55 -07:00
Bill Yiandandroid-build-merger b5937efb0d [automerger skipped] Merge "Import translations. DO NOT MERGE" am: 0b172415fd -s ours
am: 440d03ede2 -s ours
am skip reason: subject contains skip directive

Change-Id: I6c5b3c8702cf7471ad4800042cf63214682dd98b
2019-04-13 05:05:56 -07:00
Bill Yiandandroid-build-merger 440d03ede2 [automerger skipped] Merge "Import translations. DO NOT MERGE"
am: 0b172415fd -s ours
am skip reason: subject contains skip directive

Change-Id: If5cfd25a964ca17fe36abe979de0f1ea6fe21d92
2019-04-13 04:56:33 -07:00
Treehugger RobotandGerrit Code Review 0b172415fd Merge "Import translations. DO NOT MERGE" 2019-04-13 11:43:41 +00:00
Bill Yi 29077dc25a Import translations. DO NOT MERGE
Change-Id: Ic746bf49180622c3de6029067a811b91007ed507
Auto-generated-cl: translation import
2019-04-13 01:52:59 -07:00
TreeHugger RobotandAndroid (Google) Code Review 6003a93bc2 Merge "Import translations. DO NOT MERGE" 2019-04-12 06:57:26 +00:00
Tianjie Xuandandroid-build-merger de013b52b1 Merge "Add socket communication between recovery and minadbd" am: 6c5f70b9b2 am: f9709883f1
am: e087edcab0

Change-Id: I7339df203a1f6dbfb1120130d3e22c19575140eb
2019-04-11 17:41:48 -07:00
Tianjie Xuandandroid-build-merger e087edcab0 Merge "Add socket communication between recovery and minadbd" am: 6c5f70b9b2
am: f9709883f1

Change-Id: If9a1d29a35039ae4c634656b3ae1630387f7ec06
2019-04-11 17:06:17 -07:00
Tianjie Xuandandroid-build-merger f9709883f1 Merge "Add socket communication between recovery and minadbd"
am: 6c5f70b9b2

Change-Id: Iad5a591943b860bd4234b43c0b1f0a9609173993
2019-04-11 16:57:53 -07:00
Bill Yi 79c5fb32e8 Import translations. DO NOT MERGE
Change-Id: I87585a82fccf625bc05c5805fc90459d572cee10
Auto-generated-cl: translation import
2019-04-11 16:52:41 -07:00
Tianjie XuandGerrit Code Review 6c5f70b9b2 Merge "Add socket communication between recovery and minadbd" 2019-04-11 23:42:25 +00:00
xunchang 34690ced91 Add socket communication between recovery and minadbd
This cl adds a socket pair to support the communication between recovery
and minadbd. Therefore, minadbd will be able to issue multiple commands
to recovery and get back the status of each command.

This cl also switches the adb sideload from the recovery menu to use
this protocol; and moves minadbd to a separate binary.

Bug: 130166585
Test: sideload a package
Change-Id: I80d36d5c4e6fe1ae3ea23640907bc50c0dc0d482
2019-04-11 14:23:53 -07:00
Ethan Yonker 1da568fab4 Do not check digest on mapped installs
Change-Id: I2d57eba354e4ec88f418208183f53c12e8548fcb
2019-04-09 15:35:21 -05:00
Tao Baoandandroid-build-merger 33d47824c6 Merge "Build libinstall as a static library." am: 38d5e60874 am: a8cc70fbe1
am: 8630a658e9

Change-Id: I77dd3c85763aa7c780cce62940764023c2ededeb
2019-04-09 05:11:42 -07:00
Tao Baoandandroid-build-merger 8630a658e9 Merge "Build libinstall as a static library." am: 38d5e60874
am: a8cc70fbe1

Change-Id: I30675d37479d3c183f1e04f995d576627d85569f
2019-04-09 03:47:42 -07:00
Tao Baoandandroid-build-merger a8cc70fbe1 Merge "Build libinstall as a static library."
am: 38d5e60874

Change-Id: Iafa5f28ec978dc1276a5b2bfdbb433e77e216dac
2019-04-08 15:05:28 -07:00
Tao BaoandGerrit Code Review 38d5e60874 Merge "Build libinstall as a static library." 2019-04-08 21:22:15 +00:00
Tao Bao 0deed3389b Build libinstall as a static library.
It was once considered to be shared between recovery and minadbd, so
that the latter can start an install on its own. The plan has been
changed, since package install -- including device wipe operations --
could be device-specific, which should be done by recovery only.

This CL moves libinstall back to a static library, which also saves the
overall size (reducing from 140256 + 660576 to 555880 bytes on
aosp_taimen-userdebug).

Bug: 130166585
Test: Run recovery_component_test.
Test: `adb sideload` on taimen.
Change-Id: Ib1f5f79f235df4682c0bd104425c9c122f6091ba
2019-04-08 11:59:48 -07:00
Bill Yi 5954a237cb Import translations. DO NOT MERGE
Change-Id: I6aff7f01df0c28775a2dbef26ee3476cb5d83060
Auto-generated-cl: translation import
2019-04-08 09:53:18 -07:00
Mauronofrio MatarreseandDees Troy 1ecb6df370 Change slot name position
This is need to avoid overlapping between the third row of buttons and 
the current active slot, actually if you enable edl button, the active 
slot will overlap the button.

Change-Id: I6cfc945c2d0be0530dad7b4ce0f0e2ca29c297c4
2019-04-05 16:19:25 +02:00
Mauronofrio Matarrese 82a2f45eb7 Fix "Install Recovery Ramdisk" of a file which contains a space in the name
Change-Id: Ib2b1deee7427d9ac565676068b11982171f7a98d
2019-04-04 22:40:19 +01:00
Martin Dünkelmann 6d8437812b fix build error in 9.0 with TW_NO_EXFAT_FUSE:=true
'bootable/recovery/partition.cpp:1476:158:

error:

format specifies type unsigned int

but the argument has type unsigned long

[-Werror,-Wformat]'

if using TW_NO_EXFAT_FUSE := true;

Change-Id: Icff5893a0de746ecfa3b247dc83c74a42e04bb08
2019-04-04 22:14:04 +02:00
Ethan Yonker f0a7e59668 Fix recovery-twrp in some old CM trees
Change-Id: Ie401ab8ec39b721c3747475bcc8269f78963d31c
2019-04-04 10:06:41 -05:00
Tao Baoandandroid-build-merger 5361e8bd2b Merge "libotautil exports libfstab header." am: 8e0821e690 am: 416343e73a
am: 98b49695d1

Change-Id: I3c20aba59450ed7c08b2b181309fcc8b5ba8a3f7
2019-04-04 01:10:59 -07:00
Tao Baoandandroid-build-merger 98b49695d1 Merge "libotautil exports libfstab header." am: 8e0821e690
am: 416343e73a

Change-Id: I113d96d69978e9e6084e99481749c97b1a2d2928
2019-04-04 00:38:46 -07:00
android-build-team Robot d33efb0320 Snap for 5434517 from 7df2da5948 to qt-release
Change-Id: Id696f3ae6bf939e75921169db48a36b428188add
2019-04-04 03:03:57 +00:00
Bill Rassieurandandroid-build-merger 3defb84d6a Merge master@5406228 into qt-dev. am: a1382c23b4
am: 909f234f4d

Change-Id: Icdf86c896a2b8ee8147f90e60e7203662d7cd053
2019-04-03 19:47:45 -07:00
Ethan Yonker b1a7ae9cd9 Three Dot Three Dot Zero
Change-Id: If58ac0918b78c90071ffe2efa1c8509316a2afb1
2019-04-03 21:34:20 -05:00
Ethan Yonker 193befec8c Extract arch-specific updater binary if present
Check for and extract arch specific updater binary based on
ro.product.cpu.abilist and use ro.product.cpu.abi as a fall back.
If no arch specific updater binary is present then use the regular
update-binary file. Note that a file named update-binary must be
present in the zip still even if it is a 0 byte file.

Change-Id: Iabb2156e68d40c5b99d55ea8e4a9a553eb26600a
2019-04-04 04:28:12 +02:00
Ethan Yonker b150276a43 Prevent having to double-tap some check boxes
Check boxes that do not have a default value set usually required
you to tap them twice to toggle them on the very first time. This
patch checks the return value from GetValue and sets a default of
0 if the variable does not already exist in the Data Manager.

Change-Id: I1ff26e756764ed2a00b10102f13a5bce0119771a
2019-04-04 04:26:53 +02:00
Tao Baoandandroid-build-merger d308b3a6b0 Merge "libotautil exports libfstab header." am: 8e0821e690 am: 416343e73a
am: 19d587d22c

Change-Id: Id40eeb018b6ad5dfb0d5326b8c1144dba4788619
2019-04-03 17:59:57 -07:00
Tao Baoandandroid-build-merger 19d587d22c Merge "libotautil exports libfstab header." am: 8e0821e690
am: 416343e73a

Change-Id: I5abbf4631d23b5dd3dd0ceda62442d26d4e928ae
2019-04-03 17:29:10 -07:00
Bill Rassieurandandroid-build-merger 7df2da5948 Merge master@5428150 into git_qt-dev-plus-aosp.
am: 86de943dcc

Change-Id: I13691eb31834462d14b9a7ea07eebc75dfba7de0
2019-04-03 17:20:26 -07:00
Tao Baoandandroid-build-merger 416343e73a Merge "libotautil exports libfstab header."
am: 8e0821e690

Change-Id: I652370bda1e5523379c20612e20de1f16cc1201a
2019-04-03 17:06:38 -07:00
Tao BaoandGerrit Code Review 8e0821e690 Merge "libotautil exports libfstab header." 2019-04-03 23:48:21 +00:00
Bill Rassieurandandroid-build-merger 549321c723 Merge master@5406228 into git_qt-dev-plus-aosp.
am: 74253cca39

Change-Id: I8694e28304a111d7bc6675993a8219d4c328d3a6
2019-04-03 16:11:09 -07:00
Ethan Yonker 53796e7333 Use magiskboot to repack the boot partition
Set TW_INCLUDE_REPACKTOOLS := true

Must also have:
AB_OTA_UPDATER := true

Use magiskboot and provide GUI options to allow users to repack
their existing boot image to install TWRP (or kernels) so we can
stop having to provide installation zips for AB devices. There is
also an option to try to fix a recovery bootloop if the kernel
has been patched to always boot the ramdisk for root, etc.

You will need to pull the below repo into external/magisk-prebuilt
https://github.com/TeamWin/external_magisk-prebuilt

Change-Id: I74196cc6f095a7576d61886dc96cbc18deba9b04
2019-04-03 16:44:00 -05:00
Tao Bao cecad743c1 libotautil exports libfstab header.
otautil/roots.h includes <fstab/fstab.h>, but users of otautil/roots.h
don't need to explicitly depend on libfstab unless they have a real
need.

Also remove the unneeded include of <fstab/fstab.h> from
fsck_unshare_blocks.cpp.

Test: mmma -j bootable/recovery
Change-Id: Id3dc995a4769e631ab242843ee439bd94b2bf0bc
2019-04-03 11:41:54 -07:00
Bill Rassieurandandroid-build-merger 909f234f4d Merge master@5406228 into qt-dev.
am: a1382c23b4

Change-Id: I09d027b01e2e94035d71a65cdf6fd5f79fc22ba7
2019-04-03 08:31:11 -07:00
Dees Troy 9a4d7403d9 Fix build in 5.1 tree
Change-Id: I15f888d58c01de00920dc5c56148d363f4dd79b8
2019-04-03 05:23:34 +02:00
android-build-team Robot b230799046 Snap for 5430508 from 53cbda8056 to qt-release
Change-Id: Ibb618dcb397138d646ee4a717c753fb9c9070bb0
2019-04-03 03:10:23 +00:00
bigbiff bigbiffandDees Troy e4bdb15a5f AB Cache dir: If device doesn't have /data/cache for FBE, we should
try /persist if in the fstab.

Change-Id: I70dd19538b7f9b8cf61c46f6c8167057eec3342b
2019-04-03 02:08:39 +02:00
big biffandGerrit Code Review 794e364e08 Merge "ADB Backup: Ignore creating backup folder for phones not decrypted. This allows you to continue without error. Also we should not set restore path for images in adb backup. Change-Id: Ia75a70377b8e1364fefc82ad41ccf74fa3b7a3c3" into android-9.0 2019-04-03 01:22:19 +02:00
bigbiff bigbiff 4b4148e415 ADB Backup: Stop resetting digest check on restore.
Change-Id: Ieb431705e69dcdfd74efb0a971cd7d2908a42098
2019-04-03 01:06:43 +02:00