You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: add misc APIs needed for AntennaPod
This commit is contained in:
10
src/api-impl/android/content/AsyncQueryHandler.java
Normal file
10
src/api-impl/android/content/AsyncQueryHandler.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package android.content;
|
||||
|
||||
import android.net.Uri;
|
||||
|
||||
public class AsyncQueryHandler {
|
||||
|
||||
public AsyncQueryHandler(ContentResolver cr) {}
|
||||
|
||||
public void startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import android.R;
|
||||
import android.app.Activity;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.AlarmManager;
|
||||
import android.app.AppOpsManager;
|
||||
import android.app.Application;
|
||||
import android.app.KeyguardManager;
|
||||
import android.app.NotificationManager;
|
||||
@@ -227,7 +228,8 @@ public class Context extends Object {
|
||||
return new BluetoothManager();
|
||||
case "jobscheduler":
|
||||
return new JobScheduler();
|
||||
|
||||
case "appops":
|
||||
return new AppOpsManager();
|
||||
default:
|
||||
Slog.e(TAG, "!!!!!!! getSystemService: case >" + name + "< is not implemented yet");
|
||||
return null;
|
||||
|
||||
@@ -1828,6 +1828,7 @@ public class PackageManager {
|
||||
case "com.google.android.c2dm.permission.SEND":
|
||||
case "com.fsck.k9.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION":
|
||||
case "net.thunderbird.android.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION":
|
||||
case "de.danoeh.antennapod.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION":
|
||||
return PERMISSION_GRANTED;
|
||||
default:
|
||||
System.out.println("PackageManager.checkPermission: >" + permName + "< not handled\n");
|
||||
|
||||
Reference in New Issue
Block a user