Skip to content

Commit 6329eca

Browse files
author
Brad Parker
committed
add patch to enable gdb/debugging on android
1 parent 9d45d26 commit 6329eca

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

retroarch-android-debug.diff

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
diff --git a/pkg/android/phoenix/AndroidManifest.xml b/pkg/android/phoenix/AndroidManifest.xml
2+
index ce2114c..12d8fbb 100644
3+
--- a/pkg/android/phoenix/AndroidManifest.xml
4+
+++ b/pkg/android/phoenix/AndroidManifest.xml
5+
@@ -21,7 +21,8 @@
6+
android:label="RetroArch"
7+
android:hasCode="true"
8+
android:isGame="true"
9+
- android:banner="@drawable/banner">
10+
+ android:banner="@drawable/banner"
11+
+ android:debuggable="true">
12+
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
13+
<activity android:name="com.retroarch.browser.mainmenu.MainMenuActivity" android:exported="true" android:launchMode="singleInstance">
14+
<intent-filter>
15+
diff --git a/pkg/android/phoenix/build.xml b/pkg/android/phoenix/build.xml
16+
index 9698a04..6b2c101 100644
17+
--- a/pkg/android/phoenix/build.xml
18+
+++ b/pkg/android/phoenix/build.xml
19+
@@ -96,7 +96,7 @@
20+
<replaceregexp
21+
file="AndroidManifest.xml"
22+
match="(android:debuggable=&#34;).*(&#34;)"
23+
- replace="\1false\2"/>
24+
+ replace="\1true\2"/>
25+
</else>
26+
</if>
27+
<exec executable="${ndk.dir}/${ndk.cmd}" failonerror="true">
28+
diff --git a/pkg/android/phoenix/jni/Application.mk b/pkg/android/phoenix/jni/Application.mk
29+
index b179dbf..84ade89 100644
30+
--- a/pkg/android/phoenix/jni/Application.mk
31+
+++ b/pkg/android/phoenix/jni/Application.mk
32+
@@ -1,3 +1,5 @@
33+
+APP_OPTIM := debug
34+
+
35+
ifeq ($(GLES),3)
36+
ifndef NDK_GL_HEADER_VER
37+
APP_PLATFORM := android-18

0 commit comments

Comments
 (0)