I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 08062aaf authored by zzz's avatar zzz
Browse files

service cant be android

parent c9c29520
No related branches found
No related tags found
No related merge requests found
...@@ -34,8 +34,7 @@ public abstract class SystemVersion { ...@@ -34,8 +34,7 @@ public abstract class SystemVersion {
private static final boolean _isOpenJDK; private static final boolean _isOpenJDK;
private static final boolean _is64; private static final boolean _is64;
private static final boolean _hasWrapper = System.getProperty("wrapper.version") != null; private static final boolean _hasWrapper = System.getProperty("wrapper.version") != null;
private static final boolean _isLinuxService = !_isWin && !_isMac && private static final boolean _isLinuxService;
DAEMON_USER.equals(System.getProperty("user.name"));
private static final boolean _oneDotSix; private static final boolean _oneDotSix;
private static final boolean _oneDotSeven; private static final boolean _oneDotSeven;
...@@ -63,6 +62,8 @@ public abstract class SystemVersion { ...@@ -63,6 +62,8 @@ public abstract class SystemVersion {
vendor.startsWith("Free Software Foundation"); // gij vendor.startsWith("Free Software Foundation"); // gij
String runtime = System.getProperty("java.runtime.name"); String runtime = System.getProperty("java.runtime.name");
_isOpenJDK = runtime != null && runtime.contains("OpenJDK"); _isOpenJDK = runtime != null && runtime.contains("OpenJDK");
_isLinuxService = !_isWin && !_isMac && !_isAndroid &&
DAEMON_USER.equals(System.getProperty("user.name"));
int sdk = 0; int sdk = 0;
if (_isAndroid) { if (_isAndroid) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment