diff options
author | Jooyung Han <jooyung@google.com> | 2020-06-30 05:28:00 +0900 |
---|---|---|
committer | Jooyung Han <jooyung@google.com> | 2020-06-30 05:28:00 +0900 |
commit | 08c223c40558df86fb401b93f4f8575ae6a9959c (patch) | |
tree | 71b85f0591aa2a9a13756c6e4ae11dbb487ffaa3 | |
parent | 330e0c85c5fc02beca148d973c60528b924fc0ac (diff) | |
download | platform_system_apex-08c223c40558df86fb401b93f4f8575ae6a9959c.tar.gz platform_system_apex-08c223c40558df86fb401b93f4f8575ae6a9959c.tar.bz2 platform_system_apex-08c223c40558df86fb401b93f4f8575ae6a9959c.zip |
deapexer: remove lost+found directoryandroid11-dev
`deapexer extract` which uses `rdump` command of `debugfs` creates
`lost+found` directory as well. Because the directory is not necessary,
remove it after extraction.
Bug: 159711661
Test: deapexer extract <apex> <dir>
<dir> should not contain lost+found directory
Change-Id: I77800cb121371b796b940b5792dd16ced41da0fa
-rw-r--r-- | tools/deapexer.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/deapexer.py b/tools/deapexer.py index 5033aefe..b170d90f 100644 --- a/tools/deapexer.py +++ b/tools/deapexer.py @@ -183,6 +183,7 @@ def RunExtract(args): if not os.path.exists(args.dest): os.makedirs(args.dest, mode=0o755) apex.extract(args.dest) + shutil.rmtree(os.path.join(args.dest, "lost+found")) def RunInfo(args): |