Skip to content

Commit 2347b1a

Browse files
Revert Add filesystem navigation
1 parent 1655b27 commit 2347b1a

35 files changed

+8
-649
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
jcenter()
2424
}
2525
dependencies {
26-
classpath 'com.android.tools.build:gradle:3.2.1'
26+
classpath 'com.android.tools.build:gradle:3.3.0'
2727
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
2828
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
2929
}

debug-db/src/main/AndroidManifest.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,13 @@
2222

2323
<uses-permission android:name="android.permission.INTERNET" />
2424
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
25-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
2625

2726
<application>
2827
<provider
2928
android:authorities="${applicationId}.DebugDBInitProvider"
3029
android:exported="false"
3130
android:enabled="true"
3231
android:name=".DebugDBInitProvider" />
33-
<activity android:name=".RequestPermissionsActivity">
34-
</activity>
3532
</application>
3633

3734
</manifest>

debug-db/src/main/assets/app.js

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,8 @@ $( document ).ready(function() {
2121
$(this).addClass('selected');
2222
});
2323

24-
$('#fileTree').fileTree({ root: '/', script: 'fileTree', folderEvent: 'click', expandSpeed: 750, collapseSpeed: 750, multiFolder: false }, function(file) {
25-
console.log(file);
26-
$.ajax({url: "getFileData?fileName="+file, success: function(result){
27-
$("#file-data").empty();
28-
$("#file-data").append("<pre>" + hexdump(result) + "</pre>");
29-
}});
30-
});
24+
3125
});
32-
function hexdump(buffer, blockSize) {
33-
blockSize = blockSize || 16;
34-
var lines = [];
35-
var hex = "0123456789ABCDEF";
36-
for (var b = 0; b < buffer.length; b += blockSize) {
37-
var block = buffer.slice(b, Math.min(b + blockSize, buffer.length));
38-
var addr = ("0000" + b.toString(16)).slice(-4);
39-
var codes = block.split('').map(function (ch) {
40-
var code = ch.charCodeAt(0);
41-
return " " + hex[(0xF0 & code) >> 4] + hex[0x0F & code];
42-
}).join("");
43-
codes += "&nbsp;&nbsp;&nbsp;".repeat(blockSize - block.length);
44-
var chars = block.replace(/[\x00-\x1F\x20]/g, '.');
45-
chars += " ".repeat(blockSize - block.length);
46-
lines.push(addr + "&nbsp;&nbsp;" + codes + "&nbsp;&nbsp;" + chars);
47-
}
48-
return lines.join("<br/>");
49-
}
5026

5127
var isDatabaseSelected = true;
5228

-464 Bytes
Binary file not shown.
-603 Bytes
Binary file not shown.
-618 Bytes
Binary file not shown.
-579 Bytes
Binary file not shown.
-537 Bytes
Binary file not shown.
-651 Bytes
Binary file not shown.
-294 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)