Skip to content

Commit

Permalink
e2fsdroid and mke2fs are dynamic executable in recovery partition
Browse files Browse the repository at this point in the history
The two utilities are now converted to dynamic executables as shared
libraries are supported in recovery mode.

As part of the conversion, shared libraries that are depended from them
are also marked as recovery_available: true.

Bug: 79146551
Test: adb reboot recovery, and select 'Wipe data/factory reset'. The
data partition is formatted and there is no selinux denial.

Change-Id: I22fbc83a4ff0496096efca90721b0db1237c32cd
  • Loading branch information
jiyongp committed Jun 20, 2018
1 parent 054d51e commit df1f088
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 83 deletions.
1 change: 1 addition & 0 deletions CleanSpec.mk
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@
# ************************************************

$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libext2_uuid_intermediates)
$(call add-clean-step, rm -rf $(TARGET_RECOVERY_OUT)/root/sbin)
1 change: 1 addition & 0 deletions contrib/android/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
cc_binary {
name: "e2fsdroid",
host_supported: true,
recovery_available: true,
defaults: ["e2fsprogs-defaults"],

srcs: [
Expand Down
41 changes: 0 additions & 41 deletions contrib/android/Android.mk

This file was deleted.

1 change: 1 addition & 0 deletions lib/blkid/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
cc_library {
name: "libext2_blkid",
host_supported: true,
recovery_available: true,
unique_host_soname: true,
defaults: ["e2fsprogs-defaults"],
srcs: [
Expand Down
1 change: 1 addition & 0 deletions lib/e2p/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
cc_library {
name: "libext2_e2p",
host_supported: true,
recovery_available: true,
unique_host_soname: true,
defaults: ["e2fsprogs-defaults"],
srcs: [
Expand Down
1 change: 1 addition & 0 deletions lib/et/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
cc_library {
name: "libext2_com_err",
host_supported: true,
recovery_available: true,
unique_host_soname: true,
defaults: ["e2fsprogs-defaults"],
srcs: [
Expand Down
1 change: 1 addition & 0 deletions lib/ext2fs/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
cc_library {
name: "libext2fs",
host_supported: true,
recovery_available: true,
unique_host_soname: true,
defaults: ["e2fsprogs-defaults"],
srcs: [
Expand Down
1 change: 1 addition & 0 deletions lib/support/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
cc_library {
name: "libext2_quota",
host_supported: true,
recovery_available: true,
unique_host_soname: true,
defaults: ["e2fsprogs-defaults"],
srcs: [
Expand Down
2 changes: 2 additions & 0 deletions misc/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
cc_library {
name: "libext2_misc",
host_supported: true,
recovery_available: true,
defaults: ["e2fsprogs-defaults"],

target: {
Expand Down Expand Up @@ -33,6 +34,7 @@ cc_library {
cc_binary {
name: "mke2fs",
host_supported: true,
recovery_available: true,
defaults: ["e2fsprogs-defaults"],

srcs: [
Expand Down
42 changes: 0 additions & 42 deletions misc/Android.mk

This file was deleted.

0 comments on commit df1f088

Please sign in to comment.