All Projects → xuuhaoo → Defensecrash

xuuhaoo / Defensecrash

Android defense crash

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Defensecrash

Bugsnag Php
Bugsnag error monitoring and crash reporting tool for PHP apps
Stars: ✭ 475 (+271.09%)
Mutual labels:  crash
Crashanalyse
iOS crash log analyse,One click to complete.
Stars: ✭ 34 (-73.44%)
Mutual labels:  crash
Csgo Crash Exploit
Allows you to crash any Windows user
Stars: ✭ 87 (-32.03%)
Mutual labels:  crash
Countly Sdk Android
Countly Product Analytics Android SDK
Stars: ✭ 626 (+389.06%)
Mutual labels:  crash
Bugsnag Laravel
Bugsnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
Stars: ✭ 746 (+482.81%)
Mutual labels:  crash
Lldebugtoolswift
LLDebugTool is a debugging tool for developers and testers that can help you analyze and manipulate data in non-xcode situations.
Stars: ✭ 40 (-68.75%)
Mutual labels:  crash
Bugsnag React Native
Error monitoring and reporting tool for native exceptions and JS errors in React Native apps
Stars: ✭ 374 (+192.19%)
Mutual labels:  crash
Koom
KOOM is an OOM killer on mobile platform by Kwai.
Stars: ✭ 2,247 (+1655.47%)
Mutual labels:  crash
Planb Android
A crash recovery library for Android. It allows tracking and handling crashes with different rules for debugging and production.
Stars: ✭ 29 (-77.34%)
Mutual labels:  crash
Jjexception
Protect the objective-c application(保护App不闪退)
Stars: ✭ 1,216 (+850%)
Mutual labels:  crash
Lldebugtool
LLDebugTool is a debugging tool for developers and testers that can help you analyze and manipulate data in non-xcode situations.
Stars: ✭ 673 (+425.78%)
Mutual labels:  crash
Esp32 esp8266 attacks
Proof of Concept of ESP32/8266 Wi-Fi vulnerabilties (CVE-2019-12586, CVE-2019-12587, CVE-2019-12588)
Stars: ✭ 686 (+435.94%)
Mutual labels:  crash
Sentry React Native
Official Sentry SDK for react-native
Stars: ✭ 1,032 (+706.25%)
Mutual labels:  crash
Nsobjectsafe
Swizzle commonly used function of Foundation container to prevent nil crash
Stars: ✭ 539 (+321.09%)
Mutual labels:  crash
Crashreporter
Lightweight macOS Crash Reporter Setup
Stars: ✭ 100 (-21.87%)
Mutual labels:  crash
Impact
Crash capturing library for Apple platforms
Stars: ✭ 395 (+208.59%)
Mutual labels:  crash
Bugsnag Android
Bugsnag crash monitoring and reporting tool for Android apps
Stars: ✭ 990 (+673.44%)
Mutual labels:  crash
Dr.light
iOS safety kit to avoid crash in some cases(OC)
Stars: ✭ 127 (-0.78%)
Mutual labels:  crash
Crashsdk
catch crash on Android(arm/x86)
Stars: ✭ 107 (-16.41%)
Mutual labels:  crash
Bugsnag Python
Official bugsnag error monitoring and error reporting for django, flask, tornado and other python apps.
Stars: ✭ 69 (-46.09%)
Mutual labels:  crash

DefenseCrash Document

Defense the java crash for Android applications.

License Download

DefenseCrash

The library is designed to catch Java crashes, which can be effectively reduced by integrating DefenseCrash, such as avoid NPE or IOB crashes during use, improve user experience.

Maven Configuration

  • Please add the code into your project gradle file
allprojects {
    repositories {
    	maven { url 'https://dl.bintray.com/xuuhaoo/maven/'}
    }
}
  • Make sure you already done with above instructions in project gradle files, than you need put this into Module build.gradle file
dependencies {
    compile 'com.tonystark.android:defense_crash:2.0.0'
}

DefenseCrash Integrated

We provide you two options for choosing:

  • Options 1: You should manually install the defense as following code
public class MyApp extends Application implements IExceptionHandler {
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
	// step1: Initialize the lib.
        DefenseCrash.initialize();
	// setp2: Install the fire wall defense.
        DefenseCrash.install(this);
    }

    @Override
    public void onCaughtException(Thread thread, Throwable throwable, boolean isSafeMode) {
	// step3: Print the error when crashed during runtime.
        throwable.printStackTrace();
	// step4: Upload this throwable to your crash collection sdk.
    }

    @Override
    public void onEnterSafeMode() {
	// We enter the safe mode to keep the main looper loop after crashed.You’d better do nothing here,we just notify you.
    }

    @Override
    public void onMayBeBlackScreen(Throwable throwable) {
	// onLayout(),onMeasure() or onDraw() has breaks down,
	// it causes the drawing to be abnormal and the choreographer to break down.
	// We will notify you on this method,you’d better finish this activity or restart the application.
    }
}
  • Options 2: To facilitate some users, we provide a DefenseCrashApplication super class for you to integrate,as following code
public class MyApp extends DefenseCrashApplication {
    @Override
    public void onCaughtException(Thread thread, Throwable throwable, boolean isSafeMode) {
	// step1: Print the error when crashed during runtime.
        throwable.printStackTrace();
	// step2: Upload this throwable to your crash collection sdk.
    }

    @Override
    public void onEnterSafeMode() {
	// We enter the safe mode to keep the main looper loop after crashed.You’d better do nothing here,we just notify you.
    }

    @Override
    public void onMayBeBlackScreen(Throwable throwable) {
	// onLayout(),onMeasure() or onDraw() has breaks down,
	// it causes the drawing to be abnormal and the choreographer to break down.
	// We will notify you on this method,you’d better finish this activity or restart the application.
    }
}

It is Done!


Licenses

   Copyright [2018] [徐昊]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].