cancel
Showing results for 
Search instead for 
Did you mean: 

Adb shell start - how?

Strogman
Explorer

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 1

Strogman
Explorer

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"