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
diff --git a/twrpApex.cpp b/twrpApex.cpp
index 33ec4dc..e41dc23 100755
--- a/twrpApex.cpp
+++ b/twrpApex.cpp
@@ -46,7 +46,8 @@
 	}

 

 	std::string baseFile = basename(file.c_str());

-	std::string path = "/sbin/" + baseFile;

+	std::string path(APEX_BASE);

+	path = path + baseFile;

 	int fd = open(path.c_str(), O_WRONLY|O_CREAT|O_TRUNC, 0666);

 	ret = ExtractEntryToFile(handle, &entry, fd);

 	if (ret != 0) {