DO NOT MERGE: 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
(cherry picked from commit 316e971746)
This commit is contained in:
xunchang
2019-04-16 19:26:31 +00:00
committed by Tianjie Xu
parent 95d67323a4
commit 388d253b9c
17 changed files with 303 additions and 224 deletions
-3
View File
@@ -108,7 +108,6 @@ cc_binary {
],
srcs: [
"logging.cpp",
"recovery_main.cpp",
],
@@ -140,7 +139,6 @@ cc_binary {
],
srcs: [
"logging.cpp",
"recovery-persist.cpp",
],
@@ -169,7 +167,6 @@ cc_binary {
],
srcs: [
"logging.cpp",
"recovery-refresh.cpp",
],