return ! ArrayUtil.isEmpty( devices );
}
+ protected boolean isEmulatorAvailableOnly() {
+ IDevice[] devices = SmartDevelopmentBridge.getBridge().getDevices();
+ if ( ! ArrayUtil.isEmpty( devices ) ) {
+ return devices[0].isEmulator();
+ }
+
+ return false;
+ }
+
protected boolean isEmulator(String deviceSerialNumber) {
if ( StringUtil.isEmpty( deviceSerialNumber ) ) {
return false;
// Enable by new certification policy
if ( SigningProfileUtil.isAvailableNewCertPolicy() ) {
if ( hasAvailableDevice() ) {
- if ( isEmulator( this.deviceSerialNumber ) ) {
+ if ( isEmulator( this.deviceSerialNumber )
+ || isEmulatorAvailableOnly() ) {
// If selected device is an emulator, use default certificates.
return getEmulatorProfile();
}