
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
cordova-plugin-android-safetynet-decodejws
Advanced tools
A wrapper plugin for safetynet API on Play Enabled devices. This plugin extends attestation and app verification methods.
A wrapper plugin for safetynet API on Play Enabled devices. This plugin extends attestation and app verification methods. Google Play Service are required on device. At the time of writing , I am targeting Play Service 15.0.1 in gradle.
Cordova:
cordova plugin add cordova-plugin-android-safetynet
Ionic:
ionic cordova plugin add cordova-plugin-android-safetynet
TBA
Android Device Verification
. Get the API_KEY from Credentials Section
.You will need API key from Google APIs Console for initiating attestation.
A nonce security token from server side, is also required.
window.safetynet.attest(nonce ,API_Key ,successCallback ,errorCallback);
A JWS string is sent back as success. This is the same data obtained from getJwsResult(). This data should be again cross verified with google.
Three methods are available for the SafetyNet Verify Apps API.
This method allows a check for Verify App(Play Protect). The result is a boolean in successcallback.
window.safetynet.checkAppVerification(successCallback, errorCallback)
This method allows you to enable App Verfication. A dialog is invoked to If the verification is already enabled , the successCallback returns true. successCallback is a boolean. It represnts the state of App verification.
window.safetynet.enableAppVerification(successCallback, errorCallback);
This method lists harmful apps installed in a device. App verification/Play Protect is required to be enabled to process the request. The result is an array of objects in successCallback.
window.safetynet.listHarmfulApps(successCallback, errorCallback);
Post the issues related to this library here . Do provide the device details as below.
FAQs
A wrapper plugin for safetynet API on Play Enabled devices. This plugin extends attestation and app verification methods.
The npm package cordova-plugin-android-safetynet-decodejws receives a total of 1 weekly downloads. As such, cordova-plugin-android-safetynet-decodejws popularity was classified as not popular.
We found that cordova-plugin-android-safetynet-decodejws demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.