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:
@@ -472,6 +472,8 @@ public class ApplicationInfo extends PackageItemInfo {
|
||||
*/
|
||||
public int installLocation = PackageInfo.INSTALL_LOCATION_UNSPECIFIED;
|
||||
|
||||
public String[] splitSourceDirs;
|
||||
|
||||
public void dump(Printer pw, String prefix) {
|
||||
super.dumpFront(pw, prefix);
|
||||
if (className != null) {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2245,6 +2245,7 @@ public class PackageParser {
|
||||
return false;
|
||||
}
|
||||
XmlUtils.skipCurrentTag(parser);
|
||||
outInfo.addCategory(value);
|
||||
} else if (nodeName.equals("data")) {
|
||||
XmlUtils.skipCurrentTag(parser);
|
||||
} else if (!RIGID_PARSER) {
|
||||
|
||||
Reference in New Issue
Block a user