mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-18 02:04:18 +01:00
add getCallingPackageUnchecked if get code fail
This commit is contained in:
@@ -88,6 +88,9 @@ class AndroidSignerContentResolverProvider extends AndroidContentProvider
|
|||||||
|
|
||||||
int appType = AppType.ANDROID_APP;
|
int appType = AppType.ANDROID_APP;
|
||||||
var code = await getCallingPackage();
|
var code = await getCallingPackage();
|
||||||
|
if (StringUtil.isBlank(code)) {
|
||||||
|
code = await getCallingPackageUnchecked();
|
||||||
|
print("getCallingPackage null && getCallingPackageUnchecked $code");
|
||||||
if (StringUtil.isBlank(code)) {
|
if (StringUtil.isBlank(code)) {
|
||||||
if (currentUser != null) {
|
if (currentUser != null) {
|
||||||
// code is null, but currentUser is not null, try to find currentUser depend on currentUser
|
// code is null, but currentUser is not null, try to find currentUser depend on currentUser
|
||||||
@@ -97,6 +100,7 @@ class AndroidSignerContentResolverProvider extends AndroidContentProvider
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (StringUtil.isBlank(code)) {
|
if (StringUtil.isBlank(code)) {
|
||||||
print("get calling package fail!");
|
print("get calling package fail!");
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user