Skip to content

Commit 5691756

Browse files
committed
many small changes to support new binary loading, startup and more
- improved handling of port conflicts - fixed loading of tor binary on arm64-v8a - changed how we execute shell commands
1 parent 2a76b7a commit 5691756

File tree

14 files changed

+859
-281
lines changed

14 files changed

+859
-281
lines changed

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ android {
3434
minSdkVersion 16
3535
applicationId 'org.torproject.android'
3636
targetSdkVersion 28
37-
versionCode 16060001
38-
versionName '16.0.6-BETA-1-tor-0.3.5.8'
37+
versionCode 16060002
38+
versionName '16.0.6-BETA-2-tor-0.3.5.8'
3939
archivesBaseName = "Orbot-$versionName"
4040
}
4141
}
@@ -55,7 +55,7 @@ android {
5555
reset()
5656

5757
// Specifies a list of ABIs that Gradle should create APKs for.
58-
include "x86", "armeabi", "armeabi-v7a"
58+
include "x86", "armeabi", "armeabi-v7a", "x86_64", "arm64-v8a"
5959

6060
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
6161
universalApk true

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
44
package="org.torproject.android"
5-
android:installLocation="auto">
5+
android:installLocation="internalOnly">
66

77
<uses-permission android:name="android.permission.INTERNET" />
88
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
@@ -30,7 +30,7 @@
3030
>
3131
<activity
3232
android:name=".OrbotMainActivity"
33-
android:excludeFromRecents="true"
33+
android:excludeFromRecents="false"
3434
android:launchMode="singleTop">
3535
<intent-filter>
3636
<action android:name="android.intent.action.MAIN" />
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.jsocksandroid"
3-
android:versionCode="1"
4-
android:versionName="1.0" >
5-
6-
<uses-sdk
7-
android:minSdkVersion="8"
8-
android:targetSdkVersion="21" />
2+
package="com.example.jsocksandroid" >
93

104

115
</manifest>

orbotservice/build.gradle

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 27
5-
buildToolsVersion '27.0.3'
4+
compileSdkVersion 28
5+
buildToolsVersion '28.0.3'
66

77
sourceSets {
88
main {
@@ -12,9 +12,10 @@ android {
1212

1313
defaultConfig {
1414
minSdkVersion 16
15-
targetSdkVersion 27
16-
versionCode 1
17-
versionName "1.0"
15+
targetSdkVersion 28
16+
versionCode 16060001
17+
versionName '16.0.6-BETA-1-tor-0.3.5.8-orbotservice'
18+
archivesBaseName = "OrbotService-$versionName"
1819

1920
}
2021
buildTypes {
@@ -27,9 +28,11 @@ android {
2728

2829
dependencies {
2930
implementation project(':jsocksAndroid')
30-
implementation 'org.torproject:tor-android-binary:0.3.5.8-rc'
31-
implementation 'com.android.support:appcompat-v7:27.1.1'
32-
implementation 'com.jrummyapps:android-shell:1.0.1'
31+
implementation 'org.torproject:tor-android-binary:0.3.5.8-rc-v2'
32+
implementation 'com.android.support:appcompat-v7:28.0.0'
33+
implementation 'com.jaredrummler:android-shell:1.0.0'
3334
implementation fileTree(dir: 'libs', include: ['.so'])
3435
testImplementation 'junit:junit:4.12'
36+
37+
implementation 'com.offbynull.portmapper:portmapper:2.0.5'
3538
}

0 commit comments

Comments
 (0)