[core] Get pm binder everytime checking its status (#1010)
This commit is contained in:
parent
2c0de99a36
commit
48c642e778
|
|
@ -81,7 +81,8 @@ public class PackageService {
|
||||||
private static IBinder binder = null;
|
private static IBinder binder = null;
|
||||||
|
|
||||||
static boolean isAlive() {
|
static boolean isAlive() {
|
||||||
return binder != null && binder.isBinderAlive();
|
var pm = getPackageManager();
|
||||||
|
return pm != null && pm.asBinder().isBinderAlive();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final IBinder.DeathRecipient recipient = new IBinder.DeathRecipient() {
|
private static final IBinder.DeathRecipient recipient = new IBinder.DeathRecipient() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue