api-impl: misc stubs and fixes for several apps including F-Droid and AuroraStore

This commit is contained in:
Julian Winkler
2025-03-25 19:24:06 +01:00
parent 7b0341123b
commit 4a4b4a4722
36 changed files with 296 additions and 27 deletions

View File

@@ -0,0 +1,14 @@
package android.provider;
import android.net.Uri;
public class MediaStore {
public static class Images {
public static class Media {
public static final Uri EXTERNAL_CONTENT_URI = Uri.parse("content://media/external/images/media");
}
}
}

View File

@@ -18,12 +18,16 @@ public class Settings {
}
}
public static int getInt(ContentResolver content_resolver, String key) {
return getInt(content_resolver, key, -1);
}
public static int getInt(ContentResolver content_resolver, String key, int def) {
switch (key) {
case "limit_ad_tracking":
return 1; // obviously, duh
default:
java.lang.System.out.println("!!!! Settings$Secure.getInt: unknown key: >" + key + "<");
return -1;
return def;
}
}
}