sideloading

Nexus 7 not visible over USB via “adb devices” from Windows 7 x64

时间秒杀一切 提交于 2019-11-26 07:54:36
问题 I have done the obvious -- the USB driver was installed from the latest Android SDK, and USB debugging was turned on in the tablet. When the Nexus 7 is connected, the device shows up in the Windows Device Manager as \"Android Phone\" / \"Android Composite ADB Device\", with the properties showing driver version 6.0.0.0, so the correct driver is installed and working. This also proves the device is in USB debugging mode, because if it is not it shows up in Windows under \"Portable Devices\" /

How to know an application is installed from google play or side-load?

时光毁灭记忆、已成空白 提交于 2019-11-26 03:33:02
问题 I need to detect my application is installed from google play or other market, how could I get this information? 回答1: The PackageManager class supplies the getInstallerPackageName method that will tell you the package name of whatever installed the package you specify. Side-loaded apps will not contain a value. EDIT : Note @mttmllns' answer below regarding the Amazon app store. 回答2: And FYI apparently the latest version of the Amazon store finally sets PackageManager.getInstallerPackageName()