Expose persist prop API

This commit is contained in:
topjohnwu
2018-11-03 00:15:21 -04:00
parent 1eb7d7b7a8
commit a7824af5a8
3 changed files with 11 additions and 18 deletions

View File

@@ -133,11 +133,10 @@ static void kill_process(const char *name) {
void clean_magisk_props() {
LOGD("hide_utils: Cleaning magisk props\n");
getprop_all([] (const char *name, auto, auto) -> void
{
if (strstr(name, "magisk"))
deleteprop2(name, 0);
}, nullptr);
getprop_all([](const char *name, auto, auto) -> void {
if (strstr(name, "magisk"))
deleteprop2(name, 0);
}, nullptr, 0);
}
static int add_list(sqlite3 *db, char *proc) {