Hook LocationManager has a problem with Xiaomi Max2.

The

hook method is https://www.jianshu.com/p/5c2.. Other devices are normal, but hook cannot be successful on Xiaomi max2.
when I call this step:

LocationManager locationManager = (LocationManager)this.getSystemService(Context.LOCATION_SERVICE);
The

proxy"s "queryLocalInterface" (in the BinderHookHandler class) method was executed and then returned to our proxy class, but then the "asBinder" method (in the ServiceHookHandler class) was executed, which could not find the corresponding code in the framework. Did miui modify the framework code?

Mar.12,2021
Menu