Resolved : Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]

If you are trying to install some android application which is not downloaded from Android Playstore but has been shared by someone as apk, there are higher chances you may get a below error, while trying to install using adb install,

 
$ adb install YourAndroidApp.apk

2712 KB/s (7266004 bytes in 2.616s)
Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]

This means that, the shared application has some test packages, so unless those has been removed and source is recompiled, you will not be able to install this apk. But adb command provides a flag “-t” using which you can install the apps with test packages.

$ adb install -r -t YourAndroidApp.apk
2566 KB/s (7266004 bytes in 2.764s)
Success
Android Android Build system Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Commands and Packages Compilation Content Management System - CMS Core Kernel C Programs Development & Build Development Environment Setup Errors & Failures git Go Language Programs Hardware Platforms HTML JAVA Programs Kernel & Device Drivers Kernel Booting and Porting Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Monetization / Google AdSense NDK / Middleware / HAL OS Concepts PHP Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply / Ask Question