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
Hack: Process.myUid(): provide wrong Uid
Some applications like Whatsapp don't accept files with their own Uid for security reasons
This commit is contained in:
@@ -413,7 +413,9 @@ public class Process {
|
||||
* a uid identifies a specific app sandbox in a specific user.
|
||||
*/
|
||||
public static final int myUid() {
|
||||
return Libcore.os.getuid();
|
||||
// HACK: provide wrong Uid, as some applications like Whatsapp don't accept files with their own Uid for security reasons
|
||||
return -1;
|
||||
// return Libcore.os.getuid();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user