Skip to content

Commit

Permalink
Release 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
meefik committed Dec 29, 2019
2 parents 023118f + 2fcf650 commit 1ffc890
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 19 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Expand Up @@ -6,10 +6,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [2.5.1] - 2019-11-04
### Fixed
- Fixed Arch Linux package management

### Changed
- Changed a format for privileged users to UID:GID

## [2.5.0] - 2019-11-04
### Added
- Added compatibility with Android 10
- Added support for Docker containers
- Added support for Docker images

### Fixed
- Fixed URL of Ubuntu repository
Expand Down
5 changes: 3 additions & 2 deletions app/build.gradle
Expand Up @@ -6,14 +6,15 @@ android {

defaultConfig {
applicationId 'ru.meefik.linuxdeploy'
minSdkVersion 15
minSdkVersion 16
targetSdkVersion 29
versionCode 256
versionName "2.5.1"
}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand Down
Binary file modified app/src/main/assets/bin/arm/busybox
Binary file not shown.
Binary file modified app/src/main/assets/bin/arm/ssl_helper
Binary file not shown.
Binary file modified app/src/main/assets/bin/arm_64/busybox
Binary file not shown.
Binary file added app/src/main/assets/bin/arm_64/ssl_helper
Binary file not shown.
Binary file modified app/src/main/assets/bin/x86/busybox
Binary file not shown.
Binary file modified app/src/main/assets/bin/x86/ssl_helper
Binary file not shown.
Binary file modified app/src/main/assets/bin/x86_64/busybox
Binary file not shown.
Binary file added app/src/main/assets/bin/x86_64/ssl_helper
Binary file not shown.
2 changes: 1 addition & 1 deletion app/src/main/assets/env
13 changes: 5 additions & 8 deletions app/src/main/java/ru/meefik/linuxdeploy/EnvUtils.java
Expand Up @@ -49,6 +49,7 @@ private static boolean extractFile(Context c, String target, String rootAsset, S
AssetManager assetManager = c.getAssets();
InputStream in = null;
OutputStream out = null;
boolean result = true;
try {
in = assetManager.open(rootAsset + path);
File fname = new File(target + path);
Expand All @@ -62,12 +63,12 @@ private static boolean extractFile(Context c, String target, String rootAsset, S
out.flush();
} catch (IOException e) {
e.printStackTrace();
return false;
result = false;
} finally {
close(in);
close(out);
}
return true;
return result;
}

/**
Expand Down Expand Up @@ -150,6 +151,7 @@ private static boolean isRooted() {
boolean result = false;
OutputStream stdin = null;
InputStream stdout = null;
int n = 0;
try {
Process process = Runtime.getRuntime().exec("su");
stdin = process.getOutputStream();
Expand All @@ -167,7 +169,6 @@ private static boolean isRooted() {
close(os);
}

int n = 0;
BufferedReader reader = null;
try {
reader = new BufferedReader(new InputStreamReader(stdout));
Expand All @@ -179,17 +180,13 @@ private static boolean isRooted() {
} finally {
close(reader);
}

if (n > 0) {
result = true;
}
} catch (IOException e) {
e.printStackTrace();
} finally {
close(stdout);
close(stdin);
}
return result;
return n > 0;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/ru/meefik/linuxdeploy/MainActivity.java
Expand Up @@ -204,7 +204,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
@Override
public void onBackPressed() {
DrawerLayout drawer = findViewById(R.id.drawer_layout);
if (drawer.isDrawerOpen(GravityCompat.START)) {
if (drawer != null && drawer.isDrawerOpen(GravityCompat.START)) {
drawer.closeDrawer(GravityCompat.START);
} else {
super.onBackPressed();
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/arrays.xml
Expand Up @@ -329,7 +329,7 @@
<!-- Fedora -->

<string-array name="fedora_suite_values" translatable="false">
<item>28</item>
<item>30</item>
</string-array>
<string-array name="fedora_arch_values" translatable="false">
<item>armhfp</item> <!-- f19 and later -->
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/values/preferences.xml
Expand Up @@ -131,18 +131,18 @@
<string name="x86_64_kali_arch" translatable="false">amd64</string>

<!-- Fedora -->
<string name="fedora_suite" translatable="false">28</string>
<string name="fedora_suite" translatable="false">30</string>
<!-- arm -->
<string name="arm_fedora_source_path" translatable="false">http://dl.fedoraproject.org/pub/archive/</string>
<string name="arm_fedora_source_path" translatable="false">http://dl.fedoraproject.org/pub/</string>
<string name="arm_fedora_arch" translatable="false">armhfp</string>
<!-- arm_64 -->
<string name="arm_64_fedora_source_path" translatable="false">http://dl.fedoraproject.org/pub/archive/</string>
<string name="arm_64_fedora_source_path" translatable="false">http://dl.fedoraproject.org/pub/</string>
<string name="arm_64_fedora_arch" translatable="false">aarch64</string>
<!-- x86 -->
<string name="x86_fedora_source_path" translatable="false">http://dl.fedoraproject.org/pub/archive/</string>
<string name="x86_fedora_source_path" translatable="false">http://dl.fedoraproject.org/pub/</string>
<string name="x86_fedora_arch" translatable="false">i386</string>
<!-- x86_64 -->
<string name="x86_64_fedora_source_path" translatable="false">http://dl.fedoraproject.org/pub/archive/</string>
<string name="x86_64_fedora_source_path" translatable="false">http://dl.fedoraproject.org/pub/</string>
<string name="x86_64_fedora_arch" translatable="false">x86_64</string>

<!-- CentOS -->
Expand Down

0 comments on commit 1ffc890

Please sign in to comment.