Skip to content

Commit

Permalink
only show output when debugging is on
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Oct 30, 2019
1 parent 5f9788f commit 733fcfd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion orbotservice/build.gradle
Expand Up @@ -43,7 +43,7 @@ dependencies {

implementation 'androidx.legacy:legacy-support-v4:1.0.0'

implementation 'org.torproject:tor-android-binary:0.4.1.5-rc'
implementation 'org.torproject:tor-android-binary:0.4.1.6-dev'
implementation 'info.pluggabletransports.aptds:apt-dispatch-library:1.0.7'
implementation 'info.pluggabletransports.aptds:apt-meek-obfs4-legacy:1.0.7'
implementation 'info.pluggabletransports.aptds:jsocksAndroid:1.0.4'
Expand Down
Expand Up @@ -26,11 +26,12 @@ private static boolean loadFromZip(Context context, String libname, File destLoc
try {
zipFile = new ZipFile(context.getApplicationInfo().sourceDir);

Enumeration enumEntries = zipFile.entries();
while (enumEntries.hasMoreElements())
{
ZipEntry ze = (ZipEntry)enumEntries.nextElement();
Log.d("CustomNativeLoader","zipentry: " + ze.getName());
if (Prefs.useDebugLogging()) {
Enumeration enumEntries = zipFile.entries();
while (enumEntries.hasMoreElements()) {
ZipEntry ze = (ZipEntry) enumEntries.nextElement();
Log.d("CustomNativeLoader", "zipentry: " + ze.getName());
}
}


Expand Down
Expand Up @@ -49,13 +49,13 @@ public File installResources () throws IOException, TimeoutException

File fileNativeDir = new File(getNativeLibraryDir(context));

File[] filesNativeDir = fileNativeDir.listFiles();
for (File fileNative : filesNativeDir)
{
Log.d(TAG,"file native: " + fileNative.getAbsolutePath());
if (Prefs.useDebugLogging()) {
File[] filesNativeDir = fileNativeDir.listFiles();
for (File fileNative : filesNativeDir) {
Log.d(TAG, "file native: " + fileNative.getAbsolutePath());
}
}


fileTor = new File(fileNativeDir,TOR_ASSET_KEY + ".so");

if (fileTor.exists())
Expand Down

0 comments on commit 733fcfd

Please sign in to comment.