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
add lots of java APIs needed for Whatsapp
This commit is contained in:
@@ -1670,7 +1670,12 @@ public class PackageManager {
|
||||
*/
|
||||
public ServiceInfo getServiceInfo(ComponentName component,
|
||||
int flags) throws NameNotFoundException {
|
||||
return null;
|
||||
for (PackageParser.Service s : Context.pkg.services) {
|
||||
if (s.className.equals(component.getClassName())) {
|
||||
return s.info;
|
||||
}
|
||||
}
|
||||
return new ServiceInfo();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user