repack: move sbin to /system ramdisk and update repacking
for android-10 This will support updating the ramdisk to a different compression format and co-exist with magisk. We are also cleaning up and removing non android-10 api makefile actions. We are also moving twrp repacking to its own class. We check the new ramdisk format and if it's different we have magisk compress using the new ramdisk format. Change-Id: I770030aae7797e75817178b2f0fccd9f39dc23af
This commit is contained in:
Regular → Executable
+2
-2
@@ -180,14 +180,14 @@ int format_rfs_device (const char *device, const char *path) {
|
||||
// dump 10KB of zeros to partition before format due to fat.format bug
|
||||
char cmd[PATH_MAX];
|
||||
|
||||
sprintf(cmd, "/sbin/dd if=/dev/zero of=%s bs=4096 count=10", device);
|
||||
sprintf(cmd, "/system/bin/dd if=/dev/zero of=%s bs=4096 count=10", device);
|
||||
if(__system(cmd)) {
|
||||
printf("failure while zeroing rfs partition.\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Run fat.format
|
||||
sprintf(cmd, "/sbin/fat.format -F %s -S 4096 -s %s %s", fatsize, sectorsize, device);
|
||||
sprintf(cmd, "/system/bin/fat.format -F %s -S 4096 -s %s %s", fatsize, sectorsize, device);
|
||||
if(__system(cmd)) {
|
||||
printf("failure while running fat.format\n");
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user