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: stubs and fixes for latest WhatsApp version
This commit is contained in:
committed by
Julian Winkler
parent
09a38f9a28
commit
c81442321e
@@ -795,4 +795,8 @@ public class Environment {
|
||||
// Unable to translate to internal path; use original
|
||||
return path;
|
||||
}
|
||||
|
||||
public static boolean isExternalStorageLegacy() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,6 +230,10 @@ public class Handler {
|
||||
mAsynchronous = async;
|
||||
}
|
||||
|
||||
public static Handler createAsync(Looper looper) {
|
||||
return new Handler(looper, null, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string representing the name of the specified message.
|
||||
* The default implementation will either return the class name of the
|
||||
|
||||
@@ -830,4 +830,6 @@ public class Process {
|
||||
*/
|
||||
public boolean usingWrapper;
|
||||
}
|
||||
|
||||
public static final native boolean is64Bit();
|
||||
}
|
||||
|
||||
@@ -76,6 +76,9 @@ public final class StrictMode {
|
||||
public ThreadPolicy build() {
|
||||
return new ThreadPolicy(mask, listener, executor);
|
||||
}
|
||||
public Builder detectUnbufferedIo() {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
public static final class VmPolicy {
|
||||
|
||||
13
src/api-impl/android/os/SystemProperties.java
Normal file
13
src/api-impl/android/os/SystemProperties.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package android.os;
|
||||
|
||||
public class SystemProperties {
|
||||
public static String get(String prop) {
|
||||
android.util.Log.i("SystemProperties", "Grabbing prop " + prop);
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean getBoolean(String prop, boolean def) {
|
||||
android.util.Log.i("SystemProperties", "Grabbing prop " + prop + ", default " + def);
|
||||
return def;
|
||||
}
|
||||
}
|
||||
@@ -4,4 +4,7 @@ public class UserManager {
|
||||
public boolean isUserUnlocked() {
|
||||
return true;
|
||||
}
|
||||
public static boolean supportsMultipleUsers() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
7
src/api-impl/android/os/ext/SdkExtensions.java
Normal file
7
src/api-impl/android/os/ext/SdkExtensions.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package android.os.ext;
|
||||
|
||||
public class SdkExtensions {
|
||||
public static int getExtensionVersion(int extension) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user