Forum Discussion
Strogman
4 years agoExplorer
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
- StrogmanExplorer
I figured it out. To avoid the root problem, you can do the following:
INSTALL
adb -d shell pm install -r MyApp.apkRUN
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.UnityPlayerActivityYou set MyCompany and MyApp in Edit/Project Settings/Player as "Company Name" and "Product Name"
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 2 years ago