ksg97031/frida-gadget

application did not start after injection - Unity VR project apk on Meta Quest 3

Opened this issue · 4 comments

I build a VR game apk by Unity, and after injection gadget and install it on Quest 3, the game did not start.

architecture: --arch arm64

I also tried --no-res and --use-aapt2 , and also did not work.

@hitfzyangdianshi
Hello, I have fixed the suspicious code.
Please try again by upgrading the frida-gadget version to 1.3.8 (pip install frida-gadget --upgrade).

If it still doesn't work, please send me the APK to 'ksg97031@gmail.com' and I'll check it.

Hi. I updated my gadget, and tried again. But, the game still did not start.

game: com.SideQuest.Banter https://sidequestvr.com/app/10831/banter
original apk: https://drive.google.com/file/d/1fghjHvYGLF8AC6O7_SpRjLtJtAToa2Xn/view?usp=sharing
logcat: https://drive.google.com/file/d/1XbRf4QqJ3av7uzCe52IaPl2AihK961pB/view?usp=sharing

This game is developed by Unity, according to the asset info in apk packet.

@hitfzyangdianshi
The injection was successful and i couldn't identify the issue from your logcat.

How about trying to change the main activity to UnityPlayerActivity?
You can do it like this after upgrading to the latest version:
frida-gadget /Users/ksg/Downloads/com.SideQuest.Banter.apk --main-activity com.unity3d.player.UnityPlayerActivity

I have changed the main activity to com.unity3d.player.UnityPlayerActivity, and the library should be injected (screenshot below). But the game still did not start.
The libfrida-gadget-16.2.1-android-arm64.so is located in .apk\lib\arm64-v8a.

image

image

It seems that there is another user having met a similar issue before (#17 ), but that user had solved the issue (#17 (comment) ). That user mentioned that

Yes, I solved it with injecting the gadget library manually. I think issues depends on where you inject the library. When gadget library injection made to wrong location, app crashes, freezes or won't even starts.... (At least this was my case.)

but I do not think in my case the gadget library is injected wrong.