mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-16 06:45:08 +00:00
Create generic streams on top of stdio
WIP
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <utils.h>
|
||||
#include <logging.h>
|
||||
#include <stream.h>
|
||||
|
||||
#include "magiskpolicy.h"
|
||||
#include "sepolicy.h"
|
||||
@@ -180,7 +181,7 @@ int dump_policydb(const char *file) {
|
||||
size_t len;
|
||||
|
||||
pf.type = PF_USE_STDIO;
|
||||
pf.fp = open_memfile(data, len);
|
||||
pf.fp = open_stream<byte_stream>(data, len);
|
||||
if (policydb_write(magisk_policydb, &pf)) {
|
||||
LOGE("Fail to create policy image\n");
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user