Skip to content

Commit

Permalink
fixed incompatibility with Android Oreo and higher
Browse files Browse the repository at this point in the history
  • Loading branch information
ns130291 committed Nov 1, 2019
1 parent cd1efcd commit ce9cd7b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Warning: The screen updates are very slow (~1 frame per second).
## Usage
Run with:

java -jar MonkeyRemote-0.3.jar "PATH TO ADB EXECUTABLE" SCALING_FACTOR
java -jar MonkeyRemote-0.4.jar "PATH TO ADB EXECUTABLE" SCALING_FACTOR

so for example:

java -jar MonkeyRemote-0.3.jar "C:\android-sdk\platform-tools\adb.exe" 0.5
java -jar MonkeyRemote-0.4.jar "C:\android-sdk\platform-tools\adb.exe" 0.5

26 changes: 24 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,25 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.nsvb</groupId>
<artifactId>MonkeyRemote</artifactId>
<version>0.3</version>
<version>0.4</version>
<packaging>jar</packaging>
<repositories>
<repository>
<id>com.google.maven</id>
<name>Google Maven Repo</name>
<url>https://maven.google.com</url>
</repository>
<repository>
<id>io.spring.repo</id>
<name>Spring Maven Repo</name>
<url>https://repo.spring.io/plugins-release</url>
</repository>
</repositories>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<com.android.tools.version>24.3.1</com.android.tools.version>
<com.android.tools.version>26.5.1</com.android.tools.version>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -62,6 +74,16 @@
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<shadedArtifactAttached>true</shadedArtifactAttached>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/nsvb/monkeyremote/MonkeyRemote.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
public class MonkeyRemote extends JFrame {

private static final String ADB = "C:\\Users\\ns130291\\Android\\sdk\\platform-tools\\adb.exe";
private static final String ADB = "C:\\adb\\adb.exe";
private static final long TIMEOUT = 5000;

private static float scalingFactor = 0.5f;
Expand Down

0 comments on commit ce9cd7b

Please sign in to comment.