Skip to content
Fix only the crash of Register too many Broadcast Receivers on Huawei's mobile phone.
Java
Branch: master
Clone or download
liuwei
Latest commit 5c17f33 Aug 29, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea add library Jan 14, 2018
app update version to 1.1.2 Aug 29, 2019
gradle/wrapper add library Jan 14, 2018
library update version to 1.1.2 Aug 29, 2019
.gitignore add library Jan 14, 2018
LICENSE Initial commit Jan 14, 2018
README.md update version to 1.1.2 Aug 29, 2019
build.gradle update version to 1.0.2 Jan 14, 2018
gradle.properties add library Jan 14, 2018
gradlew add library Jan 14, 2018
gradlew.bat add library Jan 14, 2018
settings.gradle add library Jan 14, 2018

README.md

HuaWeiVerifier

Fix only the crash of Register too many Broadcast Receivers on Huawei's mobile phone.

How to usage

dependencies {
    // add dependencies
    implementation 'com.llew.huawei:verifier:1.1.2'
}
public class SimpleApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        LoadedApkHuaWei.hookHuaWeiVerifier(this);
    }
}
or with callback like this:
public class SimpleApplication extends Application {

    public static SimpleApplication INSTANCE;

    @Override
    public void onCreate() {
        super.onCreate();
        INSTANCE = this;
        LoadedApkHuaWei.hookHuaWeiVerifier(this, new LoadedApkHuaWei.TooManyBroadcastCallback() {
            @Override
            public void tooManyBroadcast(int currentIndex, int totalCount) {
                Toast.makeText(SimpleApplication.INSTANCE, "too many broadcast registed " + totalCount, Toast.LENGTH_SHORT).show();
            }
        });
    }
}

Blog Site

http://blog.csdn.net/llew2011/article/details/79054457

You can’t perform that action at this time.