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
Post a Comment