Skip to content

Commit bab5771

Browse files
committed
Added HexViewer
1 parent 8814762 commit bab5771

File tree

112 files changed

+7369
-26
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+7369
-26
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ An android app which can load .so files to find symbols and vtables.
55

66
### Additional components
77
> [ELFIO v3.9][1]<br>
8-
9-
Forked [MCPE-Dumper][2]<br>
10-
8+
> [HexViewer v1.14][1]<br>
9+
>
1110
[1]: https://github.com/serge1/ELFIO
12-
[2]: https://github.com/uebian/MCPE-Dumper
11+
[2]: https://github.com/Keidan/HexViewer

app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ android {
3939
}
4040

4141
dependencies {
42+
implementation fileTree(dir: 'libs', include: ['*.jar'])
4243
implementation project(':filepicker')
43-
implementation fileTree(dir: 'libs', include: ['*.jar'])
44+
implementation project(':hexviewer')
4445
implementation 'androidx.cardview:cardview:1.0.0'
4546
implementation 'androidx.annotation:annotation:1.2.0'
4647
implementation 'androidx.preference:preference-ktx:1.1.1'

app/src/main/java/com/mcal/disassembler/App.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import androidx.appcompat.app.AppCompatDelegate
88
import androidx.preference.PreferenceManager
99
import com.mcal.disassembler.data.Database
1010
import com.mcal.disassembler.data.Preferences
11+
import fr.ralala.hexviewer.ApplicationCtx
1112
import org.jetbrains.annotations.Nullable
1213

13-
class App : Application() {
14+
class App : ApplicationCtx() {
1415
override fun onCreate() {
1516
super.onCreate()
1617
context = this

app/src/main/java/com/mcal/disassembler/activities/MainActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ public void chooseSdcard(View view) {
140140
showFileChooser();
141141
}
142142

143+
public void hexViewer(View view) {
144+
Intent intent = new Intent(MainActivity.this, fr.ralala.hexviewer.ui.activities.MainActivity.class);
145+
startActivity(intent);
146+
}
147+
143148
private void showFileChooser() {
144149
DialogProperties properties = new DialogProperties();
145150
properties.selection_mode = DialogConfigs.SINGLE_MODE;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!-- drawable/hexadecimal.xml -->
2+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:height="24dp"
4+
android:width="24dp"
5+
android:viewportWidth="24"
6+
android:viewportHeight="24">
7+
<path
8+
android:fillColor="#000"
9+
android:pathData="M7 7C5.9 7 5 7.9 5 9V15C5 16.11 5.9 17 7 17H9C10.11 17 11 16.11 11 15V9C11 7.9 10.11 7 9 7H7M7 9H9V15H7V9M17.6 17L15.5 14.9L13.4 17L12 15.6L14.1 13.5L12 11.4L13.4 10L15.5 12.1L17.6 10L19 11.4L16.9 13.5L19 15.6L17.6 17Z" />
10+
</vector>

app/src/main/res/layout/class_activity.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
34
xmlns:tools="http://schemas.android.com/tools"
45
android:layout_width="match_parent"
56
android:layout_height="match_parent"
6-
xmlns:app="http://schemas.android.com/apk/res-auto"
77
android:orientation="vertical">
88

99
<include
1010
android:id="@+id/toolbar_class"
1111
layout="@layout/toolbar" />
1212

1313
<LinearLayout
14-
android:layout_below="@+id/toolbar_class"
1514
android:layout_width="match_parent"
1615
android:layout_height="match_parent"
16+
android:layout_below="@+id/toolbar_class"
1717
android:orientation="vertical">
1818

1919
<ListView

app/src/main/res/layout/list_item.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
android:id="@+id/item_remove"
5050
android:layout_width="wrap_content"
5151
android:layout_height="wrap_content"
52-
android:src="@drawable/ic_close"
53-
android:background="?android:attr/selectableItemBackground"/>
52+
android:background="?android:attr/selectableItemBackground"
53+
android:src="@drawable/ic_close" />
5454

5555
</LinearLayout>
5656

app/src/main/res/layout/main_activity.xml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
34
xmlns:tools="http://schemas.android.com/tools"
45
android:layout_width="match_parent"
56
android:layout_height="match_parent"
6-
xmlns:app="http://schemas.android.com/apk/res-auto"
77
android:orientation="vertical">
88

99
<androidx.drawerlayout.widget.DrawerLayout
@@ -39,9 +39,9 @@
3939

4040
<LinearLayout
4141
android:id="@+id/welcome_layout"
42-
android:animateLayoutChanges="true"
4342
android:layout_width="match_parent"
4443
android:layout_height="match_parent"
44+
android:animateLayoutChanges="true"
4545
android:gravity="center"
4646
android:orientation="vertical">
4747

@@ -67,6 +67,20 @@
6767

6868
</RelativeLayout>
6969

70+
<com.google.android.material.floatingactionbutton.FloatingActionButton
71+
android:layout_width="wrap_content"
72+
android:layout_height="wrap_content"
73+
android:layout_above="@id/mainactivityLinearLayout1"
74+
android:layout_alignParentEnd="true"
75+
android:layout_marginEnd="16dp"
76+
android:layout_marginBottom="90dp"
77+
android:contentDescription="HexViewer"
78+
android:onClick="hexViewer"
79+
android:src="@drawable/ic_hexadecimal"
80+
app:backgroundTint="@color/colorAccent"
81+
app:tint="#FFFFFF"
82+
tools:ignore="HardcodedText,UsingOnClickInXml" />
83+
7084
<com.google.android.material.floatingactionbutton.FloatingActionButton
7185
android:id="@+id/fab"
7286
android:layout_width="wrap_content"

app/src/main/res/layout/menu_activity.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
android:layout_height="match_parent"
66
android:orientation="vertical">
77

8-
<include
9-
layout="@layout/toolbar" />
8+
<include layout="@layout/toolbar" />
109

1110
<View
1211
android:layout_width="match_parent"

app/src/main/res/layout/name_demangler_activity.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
34
xmlns:tools="http://schemas.android.com/tools"
45
android:layout_width="match_parent"
5-
android:layout_height="match_parent"
6-
xmlns:app="http://schemas.android.com/apk/res-auto">
6+
android:layout_height="match_parent">
77

88
<include
99
android:id="@+id/toolbar_demangler"
1010
layout="@layout/toolbar" />
1111

1212
<LinearLayout
13-
android:layout_below="@+id/toolbar_demangler"
1413
android:layout_width="match_parent"
1514
android:layout_height="match_parent"
15+
android:layout_below="@+id/toolbar_demangler"
1616
android:orientation="horizontal">
1717

1818
<androidx.appcompat.widget.AppCompatEditText

0 commit comments

Comments
 (0)