// Author: DosX
// E-Mail: collab@kay-software.ru
// GitHub: https://github.com/DosX-dev
// Telegram: @DosX_dev

init("protector", "KiwiSecurity");

function detect(bShowType, bShowVersion, bShowOptions) {
    bDetected =
        APK.isArchiveRecordPresent("assets/crash") ||
        APK.isArchiveRecordPresent("assets/ec_dt.lic") ||
        APK.isArchiveRecordPresent("assets/kwpt.lincense") ||
        APK.isArchiveRecordPresent("lib/arm/libkiwi_dumper.so") ||
        APK.isArchiveRecordPresent("lib/arm/libkiwicrash.so") ||
        APK.isArchiveRecordPresent("lib/arm/libKwProtectSDK.so") ||
        APK.isArchiveRecordPresent("lib/arm/libkwsdataenc.so") ||
        APK.isArchiveRecordPresent("lib/arm/libkadp.so") ||
        APK.isArchiveRecordPresent("com/kiwisec/crash") ||
        APK.isArchiveRecordPresent("com/kiwivm/security") ||
        APK.isArchiveRecordPresent("com/kiwivm/security/StubApplication");

    return result(bShowType, bShowVersion, bShowOptions);
}