java.lang.IllegalArgumentException: register too many Broadcast Receivers java.lang.IllegalArgumentException: register too many Broadcast Receivers android android

java.lang.IllegalArgumentException: register too many Broadcast Receivers


This is the confine of huawei's mobile phone system. Huawei's mobile phone has a white list mechanism. Only the APP in their white list can avoid this bug. I use reflection to try to solve this bug. may help for you

https://github.com/llew2011/HuaWeiVerifier

How to usage

dependencies {    // add dependencies    implementation 'com.llew.huawei:verifier:1.0.2'}public class SimpleApplication extends Application {    @Override    public void onCreate() {        super.onCreate();        LoadedApkHuaWei.hookHuaWeiVerifier(getBaseContext());    }}

That all