diff --git a/fastboot/fs.cpp b/fastboot/fs.cpp index fc6a16bb2..8c0aa6bf4 100644 --- a/fastboot/fs.cpp +++ b/fastboot/fs.cpp @@ -172,13 +172,8 @@ static int generate_f2fs_image(const char* fileName, long long partSize, const s mkf2fs_args.push_back("-S"); std::string size_str = std::to_string(partSize); mkf2fs_args.push_back(size_str.c_str()); - mkf2fs_args.push_back("-f"); - mkf2fs_args.push_back("-O"); - mkf2fs_args.push_back("encrypt"); - mkf2fs_args.push_back("-O"); - mkf2fs_args.push_back("quota"); - mkf2fs_args.push_back("-O"); - mkf2fs_args.push_back("verity"); + mkf2fs_args.push_back("-g"); + mkf2fs_args.push_back("android"); mkf2fs_args.push_back(fileName); mkf2fs_args.push_back(nullptr); diff --git a/fs_mgr/fs_mgr_format.cpp b/fs_mgr/fs_mgr_format.cpp index 845cca9dc..098366324 100644 --- a/fs_mgr/fs_mgr_format.cpp +++ b/fs_mgr/fs_mgr_format.cpp @@ -117,12 +117,7 @@ static int format_f2fs(char *fs_blkdev, uint64_t dev_sz, bool crypt_footer) // clang-format off const char* const args[] = { "/system/bin/make_f2fs", - "-d1", - "-f", - "-O", "encrypt", - "-O", "quota", - "-O", "verity", - "-w", "4096", + "-g", "android", fs_blkdev, size_str.c_str(), nullptr