Skip to content

Commit 59f11e6

Browse files
committed
Makefile: make unstripped libtailscale and debug symbols
- Added Makefile targets to build an unstripped version of the libtailscale AAR. - Extracted the native .so (libgojni.so) from the unstripped AAR. - Generated a debug symbols file (libgojni.so.debug) using llvm-objcopy with --only-keep-debug. - Stripped the native library (libgojni.so.stripped) with --strip-debug and repackaged the final AAR. This allows the build chain to produce a stripped AAR for the app and a separate debug symbols file that can be uploaded to Google Play for crash deobfuscation. Signed-off-by: kari-ts <[email protected]> Updates tailscale/tailscale#15210
1 parent 6a3342e commit 59f11e6

File tree

3 files changed

+173
-79
lines changed

3 files changed

+173
-79
lines changed

.github/workflows/android.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ jobs:
3030
- name: Clean
3131
run: make clean
3232

33+
- name: make find-ndk
34+
run: make find-ndk
35+
36+
# - name: make build-unstripped-aar
37+
# run: make build-unstripped-aar
38+
39+
# - name: make print-aar-contents
40+
# run: make print-aar-contents
41+
3342
- name: Build APKs
3443
run: make tailscale-debug.apk
3544

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ tailscale.jks
3535
.vscode
3636
.idea
3737

38+
# Native libraries
39+
*.stripped
40+
*.unstripped
41+
42+
# Debug symbols
43+
*.debug
44+
3845
libtailscale.aar
3946
libtailscale-sources.jar
4047
.DS_Store

0 commit comments

Comments
 (0)