12-19-2021 10:05 PM
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?
12-19-2021 11:00 PM
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"