Depends on exactly what you want to do, and what level of persistence you want your content to have.
I will assume at this point that you do not want to use MSP at all, you just have an MSP Package (APF) and want to install it by pushing it from a PC via adb.
MSP Packages are generally used in Android to install APK's - so if you "extract" an APK from an MSP Package (which can be done with the MSP Package Builder)...
Then you could use the adb "install" command just as you would with any APK. If the MSP Package includes any other files besides the APK, you MAY be able to use adb "push" command to put them on the Android device -- as long as they belong in a folder to which you have write access through adb.
One thing you would lose by not installing files via MSP or SOTI would be that that the APKs you install via adb will NOT persist over an Enterprise Reset. An Enterprise Reset allows applications installed by privileged agents to persist, while anything not installed by such an agent is removed - thus providing a way to bring a unit back to a "known good state" defined by the Enterprise administrators, and preventing the need for devices to be "brought back in" for cleanup, in the event the user is able to install unwanted applications or settings.
Very nice of you for having taking the time to answer me, the aim of my question is more to try the package manually before to deploy that package using MSP, just because we don't have a constant access to MSP.
So if that would be something possible it will allow us to just validate packages before deploying them with MSP.
I see no problem pushing up the apk file to the device using the adb push command but which command should I use to execute that package to be installed?
Motorola Solutions Launchpad<https://developer.motorolasolutions.com/>
MSP Packages with adb tool
reply from Larry Dykes<https://developer.motorolasolutions.com/people/larry.dykes%40motorolasolutions.com?et=watches.email.thread> in Android - View the full discussion<https://developer.motorolasolutions.com/message/15352?et=watches.email.thread#15352>
Ah - in that case, you probably just need to get the MSP Package Builder version 18.104.22.168 (or newer, though I think that's the latest) from https://portal.motorolasolutions.com/Support/US-EN . When you open an MSP Package (APF) with the Pacakge Builder, you can use the Tools.. Convert to Project menu option - it lets you specify a folder to which the package files are extracted.
One you have the APK, you can use the adb push command to send the APK from your PC to some folder in the Android, then using File Browser from teh Android UI, navigate to the APK and click it. Of course, you could just use USB data storage connection to drag and drop the APK onto your sdcard and to the same. But the
The fastest way is probably to use "adb install" which will install an APK directly from your PC into the Android device, like this..
adb install <pathname of apk on PC>
Later you can uninstall using
adb uninstall <package name>
Does that mean installing an apf msp package using one of the command adb install <path of the apf package> would not/never work ?
Installing an apk package is something we are already using from the command adb install/uninstall <package name> It works fine but the goal would have been to do the same with msp apf packages.
Which could have been also really usefull to install that way the reset factory package (apf) which does not include any apk file for example.
Thanks again for your help