Unit test for INSTALL_NON_MARKET_APPS on Android -


in app have method checks whether install_non_market_apps set , if so, performs action.

in order unit test this, need test both cases:

case1: install_non_market_apps == 0

case2: install_non_market_apps == 1

is there way can set value of install_non_market_apps in unit test? when try modify it, following exception, understandable...

java.lang.securityexception: permission denial: writing secure settings requires android.permission.write_secure_settings


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -