Skip to content

Commit

Permalink
version 0.1.1 released
Browse files Browse the repository at this point in the history
  • Loading branch information
Anshul Thakur committed Apr 18, 2024
1 parent 014f562 commit 6ab1ce4
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 7 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# react-native-detect-frida

[![Version](https://img.shields.io/npm/v/react-native-detect-frida)](https://www.npmjs.com/package/react-native-detect-frida)

A React-Native library to detect if frida server is running or not

Remember! Detecting and hiding root are a cat and mouse game.

Platform Supported: Android

<a href="https://www.buymeacoffee.com/anshulthakur" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>

## Installation
Expand All @@ -28,6 +28,7 @@ const result = await isDeviceRooted();
| ---------------- | -------------------------- | -------------------------------------------------------------- |
| `isDeviceRooted` | `Promise<RootCheckResult>` | Returns promise containing key whether device is rooted or not |


```ts
interface CheckStatus {
id: number;
Expand All @@ -41,6 +42,17 @@ interface RootCheckResult {
}
```

### Platform Supported:

- [x] Android
- [ ] iOS

### Screenshot

![Circle of Trust](./apk/app.png)



# Root checks

These are the native checks:
Expand Down Expand Up @@ -104,4 +116,4 @@ SOFTWARE.

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
Made with :heart: by [Anshul Thakur](https://in.linkedin.com/in/anshul-thakur)
7 changes: 4 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["DetectFrida_kotlinVersion"]
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : rootProject.hasProperty("kotlinVersion") ? rootProject.properties["kotlinVersion"] : project.properties["DetectFrida_kotlinVersion"]

repositories {
google()
Expand All @@ -26,7 +26,7 @@ if (isNewArchitectureEnabled()) {
}

def getExtOrDefault(name) {
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["DetectFrida_" + name]
return rootProject.ext.has(name) ? rootProject.ext.get(name) : rootProject.hasProperty(name) ? rootProject.properties[name] : project.properties["DetectFrida_" + name]
}

def getExtOrIntegerDefault(name) {
Expand Down Expand Up @@ -89,13 +89,14 @@ repositories {
}

def kotlin_version = getExtOrDefault("kotlinVersion")
def androidX_version = getExtOrDefault("androidxVersion")

dependencies {
// For < 0.71, this will be from the local maven repo
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation "androidx.core:core-ktx:1.12.0"
implementation "androidx.core:core-ktx:$androidX_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}

1 change: 1 addition & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ DetectFrida_minSdkVersion=21
DetectFrida_targetSdkVersion=31
DetectFrida_compileSdkVersion=31
DetectFrida_ndkversion=21.4.7075529
DetectFrida_androidxVersion=1.12.0
Binary file added apk/app-release.apk
Binary file not shown.
Binary file added apk/app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"build:android-release": "cd android && ./gradlew app:assembleRelease && cd ..",
"build:android": "cd android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
"build:ios": "cd ios && xcodebuild -workspace DetectFridaExample.xcworkspace -scheme DetectFridaExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-detect-frida",
"version": "0.1.0",
"version": "0.1.1",
"description": "A React-Native library to detect if frida server is running or not",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
Binary file added react-native-detect-frida-0.1.1.tgz
Binary file not shown.

0 comments on commit 6ab1ce4

Please # to comment.