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
multiple additions and fixes for the Java APIs
Stuff needed for WhatsApp support
This commit is contained in:
@@ -2411,13 +2411,14 @@ public class PackageManager {
|
||||
* else null.
|
||||
* @throws Exception
|
||||
*/
|
||||
public ProviderInfo resolveContentProvider(String authority, int flags) throws Exception {
|
||||
public ProviderInfo resolveContentProvider(String authority, int flags) {
|
||||
for (PackageParser.Provider p : Context.pkg.providers) {
|
||||
if (p.info.authority.equals(authority))
|
||||
return p.info;
|
||||
}
|
||||
|
||||
throw new Exception("Provider not found: " + authority);
|
||||
Slog.w(TAG, "Provider not found: " + authority);
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3031,6 +3031,7 @@ public class PackageParser {
|
||||
outError)) == null) {
|
||||
return null;
|
||||
}
|
||||
s.info.metaData = s.metaData;
|
||||
} else {
|
||||
if (!RIGID_PARSER) {
|
||||
Slog.w(TAG, "Unknown element under <service>: " + parser.getName() + " at " + mArchiveSourcePath + " " + parser.getPositionDescription());
|
||||
|
||||
Reference in New Issue
Block a user