api-impl: misc additions for different apps

This commit is contained in:
Julian Winkler
2025-06-18 09:02:08 +02:00
parent d898966e04
commit bf5eb099bd
20 changed files with 109 additions and 4 deletions

View File

@@ -786,4 +786,14 @@ public class Context extends Object {
/* FIXME: should be a different context, and return different storage locations */
return this;
}
public boolean deleteSharedPreferences(String name) {
getSharedPrefsFile(name).delete();
sharedPrefs.remove(name);
return true;
}
public String getPackageResourcePath() {
return native_get_apk_path();
}
}