Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

used for android java project #48

Closed
caothemanh opened this issue Nov 21, 2024 · 3 comments
Closed

used for android java project #48

caothemanh opened this issue Nov 21, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request stale This issue has been not active for long period of time waiting for response Response from reporter is needed

Comments

@caothemanh
Copy link

Is there any tutorial or modification to work in my java android project, thanks.

@caothemanh caothemanh added the enhancement New feature or request label Nov 21, 2024
@Tomaandr
Copy link

Hello @caothemanh, thank you for the question. There is initialization written for android java project:

public class App extends Application implements ThreatListener.ThreatDetected {

    @Override
    public void onCreate() {
        super.onCreate();

        final TalsecConfig config = new TalsecConfig.Builder(
                <EXPECTED_PACKAGE_NAME>,
                <EXPECTED_SIGNING_CERTIFICATE_HASH_BASE_64>
        )
                .watcherMail(<WATCHER_MAIL>)
                .supportedAlternativeStores(<SUPPORTED_ALTERNATIVE_STORES>)
                .prod(<IS_PROD>)
                .blacklistedPackageNames(<BLACKLISTED_PACKAGE_NAMES>)
                .build();

        new ThreatListener(this, null).registerListener(this);
        Talsec.start(this, config);
    }

    @Override
    public void onRootDetected() {
        // Set your reaction
    }

    @Override
    public void onDebuggerDetected() {
        // Set your reaction, triggered only in release build
    }

    @Override
    public void onEmulatorDetected() {
        // Set your reaction, triggered only in release build
    }

    @Override
    public void onTamperDetected() {
        // Set your reaction, triggered only in release build
    }

    @Override
    public void onUntrustedInstallationSourceDetected() {
        // Set your reaction, triggered only in release build
    }

    @Override
    public void onHookDetected() {
        // Set your reaction
    }

    @Override
    public void onDeviceBindingDetected() {
        // Set your reaction
    }

    @Override
    public void onObfuscationIssuesDetected() {
        // Set your reaction
    }

    @Override
    public void onMalwareDetected(List<SuspiciousAppInfo> p0) {
        // Set your reaction
    }
}

Is this answer helpful?

Kind regards,
Talsec team

@msikyna msikyna added the waiting for response Response from reporter is needed label Nov 27, 2024
Copy link

Hello!
This issue has been marked as inactive. If there is no further activity within the next 14 days, this issue will be automatically closed.
If you believe this issue is still relevant and requires attention, please comment or provide additional information.

@github-actions github-actions bot added the stale This issue has been not active for long period of time label Dec 16, 2024
Copy link

github-actions bot commented Jan 6, 2025

Hello!
This issue has been closed. If you believe this issue is still relevant and requires attention, please reopen the issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale This issue has been not active for long period of time waiting for response Response from reporter is needed
Projects
None yet
Development

No branches or pull requests

4 participants