Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Strogman's avatar
Strogman
Explorer
4 years ago

Adb shell start - how?

I can successfully install my (unity developed) myapp.apk file onto the Quest 2. Two issues:

1. Where does adb actually put the app?

2. I want to be able to start and restart my app at will. I can "adb shell" but when I run "start" it requires root.

 

Somehow, Unity is causing my app to start after the install. HOW?

1 Reply

  • I figured it out. To avoid the root problem, you can do the following:

    INSTALL
    adb -d shell pm install -r MyApp.apk

    RUN
    adb -d shell am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -S -f 0x10200000 -n com.MyCompany.MyApp/com.unity3d.player.UnityPlayerActivity

     

    You set MyCompany and MyApp in Edit/Project Settings/Player as "Company Name" and "Product Name"