public static String b(String s) {
try
{
Class class0
=
a.o(
"android.content.pm.PackageParser"
);
DisplayMetrics displayMetrics0
=
new DisplayMetrics();
b.k(displayMetrics0);
if
(!a.e() && !a.b(s)) {
if
(Build.VERSION.SDK_INT <
=
20
) {
Object
object0
=
c.m(c.x(class0, new Class[]{String.
class
}), new
Object
[]{s});
Object
object1
=
a.g(b.d(class0,
"parsePackage"
, new Class[]{
File
.
class
, String.
class
, DisplayMetrics.
class
, Integer.
TYPE
}), object0, new
Object
[]{new
File
(s), s, displayMetrics0, c.ae(
0x40
)});
a.g(b.d(class0,
"collectCertificates"
, new Class[]{a.k(object1), Integer.
TYPE
}), object0, new
Object
[]{object1, c.ae(
0x40
)});
return
b.h(((Signature[])a.m(b.m(a.k(object1),
"mSignatures"
), object1))[
0
]);
}
Object
object2
=
c.m(c.x(class0, new Class[
0
]), new
Object
[
0
]);
Object
object3
=
a.g(b.d(class0,
"parsePackage"
, new Class[]{
File
.
class
, Integer.
TYPE
}), object2, new
Object
[]{new
File
(s), c.ae(
0x40
)});
if
(Build.VERSION.SDK_INT <
28
) {
a.g(b.d(class0,
"collectCertificates"
, new Class[]{a.k(object3), Integer.
TYPE
}), object2, new
Object
[]{object3, c.ae(
0x40
)});
return
b.h(((Signature[])a.m(b.m(a.k(object3),
"mSignatures"
), object3))[
0
]);
}
Method method0
=
b.d(class0,
"collectCertificates"
, new Class[]{a.k(object3), Boolean.
TYPE
});
boolean z
=
Build.VERSION.SDK_INT >
28
;
a.g(method0, object2, new
Object
[]{object3, c.k(z)});
Field field0
=
b.m(a.k(object3),
"mSigningDetails"
);
b.l(field0, true);
Object
object4
=
a.m(field0, object3);
Field field1
=
b.m(a.k(object4),
"signatures"
);
b.l(field1, true);
return
b.h(((Signature[])a.m(field1, object4))[
0
]);
}
}
catch(Exception exception0) {
e.f(
"getAPKSignatures"
, b.p(exception0));
e.n(exception0);
}
return
null;
}