Skip to content

Commit

Permalink
Renamed diag_revealer.so to libdiag_revealer.so so that it can unpack…
Browse files Browse the repository at this point in the history
… on install

- This unpacking problem seems to only exist with the release apk. When installing the debug apk everything works as expected.
  • Loading branch information
christianrowlands committed Nov 3, 2020
1 parent c7a820a commit 30bf0a3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ make changes to the Diag Revealer C application, you can do so and then compile

1) `cd app`
1) `ndk-build`
1) Add the `.so` extension to the output file (probably something like `libs/arm64-v8a/diag_revealer` to `libs/arm64-v8a/diag_revealer.so`)
1) Add the `.so` extension to the output file (probably something like `libs/arm64-v8a/diag_revealer` to `libs/arm64-v8a/libdiag_revealer.so`)

The reason the file needs to have the `.so` extension is that Android only unpacks the native application if it is a
shared library instead of just a regular executable. At some point it would be nice to investigate if we can get around
Expand All @@ -75,8 +75,11 @@ are a list of other projects that might be of interest to you.

## Changelog

##### [0.1.2](https://github.com/christianrowlands/android-network-survey-rooted/releases/tag/v0.1.2) - 2020-11-02
* Fixed a bug where the diag_revealer.so file was not being unpacked.

##### [0.1.0](https://github.com/christianrowlands/android-network-survey-rooted/releases/tag/v0.1.0) - 2020-10-28
* Initial Release of Network Survey Plus
* Initial Release of Network Survey Plus.


## Contact
Expand Down
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "com.craxiom.networksurveyplus"
minSdkVersion 26
targetSdkVersion 29
versionCode 2
versionName "0.1.1"
versionCode 3
versionName "0.1.2"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand All @@ -34,11 +34,11 @@ android {
targetCompatibility = 1.8
}

externalNativeBuild {
/*externalNativeBuild {
ndkBuild {
path file('jni/Android.mk')
}
}
}*/

buildFeatures {
viewBinding true
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ private Constants()
}

public static final String FIFO_PIPE = "diag_revealer_fifo";
public static final String DIAG_REVEALER_NAME = "diag_revealer";
public static final String DIAG_REVEALER_NAME = "libdiag_revealer";
public static final String LIB_DIAG_REVEALER_NAME = DIAG_REVEALER_NAME + ".so";

public static final String NOTIFICATION_CHANNEL_ID = "network_survey_plus_notification";
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
classpath "com.android.tools.build:gradle:4.1.0"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Sep 10 20:10:41 EDT 2020
#Mon Nov 02 16:57:58 EST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

0 comments on commit 30bf0a3

Please sign in to comment.