add lots of java APIs needed for Whatsapp

This commit is contained in:
Julian Winkler
2024-06-15 22:32:01 +02:00
parent b81f53e4b2
commit bb50bbfa91
61 changed files with 383 additions and 71 deletions

View File

@@ -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();
}
/**