(Attempt at) Implement restoring bis

1 switch was harmed in the making of this commit
This commit is contained in:
Such Meme, Many Skill
2020-03-15 12:35:18 +01:00
parent 144dc3a3f5
commit 3f6d1b532c
10 changed files with 287 additions and 13 deletions

View File

@@ -9,10 +9,17 @@ void makestring(char *in, char **out);
int del_recursive(char *path);
int copy_recursive(char *path, char *dstpath);
int dump_emmc_parts(u16 parts, u8 mmctype);
int extract_bis_file(char *path, char *outfolder);
int restore_bis_using_file(char *path, u8 mmctype);
#define PART_BOOT 0x1
#define PART_PKG2 0x2
#define BOOT0_ARG 0x80
#define BOOT1_ARG 0x40
#define BCPKG2_1_ARG 0x20
#define BCPKG2_3_ARG 0x10
static const char *pkg2names[] = {
"BCPKG2-1-Normal-Main",
"BCPKG2-2-Normal-Sub",