-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":49,"versionName":"202009142141","enabled":true,"outputFile":"FactoryMode_V49_202009142141_release.apk","fullName":"release","baseName":"release"},"path":"FactoryMode_V49_202009142141_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":50,"versionName":"202009171815","enabled":true,"outputFile":"FactoryMode_V50_202009171815_release.apk","fullName":"release","baseName":"release"},"path":"FactoryMode_V50_202009171815_release.apk","properties":{}}]
\ No newline at end of file
public class ModeSelectActivity extends Activity implements OnClickListener {\r
Button engineer_button, more_button,unbound_button;\r
String ACTION_UNBOUND_TERMINAL = "com.enqualcomm.support.ACTION_UNBOUND_TERMINAL";\r
+ String ACTION_SMS_CMD = "com.enqualcomm.support.SMSCMD";\r
+ String KEY_CMD = "smsCmd";\r
String SERVICE_PKG_NAME = "com.enqualcomm.support";\r
String SERVICE_CLS_NAME = "com.enqualcomm.support.CoreService";\r
@Override\r
engineer_button = (Button) findViewById(R.id.engineer_button);\r
more_button = (Button) findViewById(R.id.more_button);\r
unbound_button=(Button)findViewById(R.id.unbound_button);\r
- unbound_button.setVisibility(View.GONE);\r
+// unbound_button.setVisibility(View.GONE);\r
engineer_button.setOnClickListener(this);\r
more_button.setOnClickListener(this);\r
unbound_button.setOnClickListener(this);\r
{\r
try {\r
ComponentName componentName = new ComponentName(SERVICE_PKG_NAME, SERVICE_CLS_NAME);\r
- Intent intent = new Intent(ACTION_UNBOUND_TERMINAL).setComponent(componentName);\r
- intent.putExtra("Unbound", true);\r
- startService(intent);\r
- Intent intent1 = new Intent(ACTION_UNBOUND_TERMINAL);\r
- intent.putExtra("Unbound", true);\r
+ Intent intent = new Intent().setComponent(componentName);\r
+ intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r
+ startService(intent);\r
+ Thread.sleep(1000);\r
+ Intent intent1 = new Intent(ACTION_SMS_CMD);\r
+ intent1.putExtra(KEY_CMD, "#showui#");\r
sendBroadcast(intent1);\r
} catch (Exception e) {\r
// TODO: handle exception\r
+\r
+ e.printStackTrace();\r
}\r
}\r
private void unBound() {\r
AlertDialog.Builder build = new AlertDialog.Builder(ModeSelectActivity.this);\r
- build.setTitle(getResources().getString(R.string.unbound));\r
+ build.setTitle(getResources().getString(R.string.showProtocolInfo));\r
build.setPositiveButton(getResources().getString(R.string.submit), new DialogInterface.OnClickListener() {\r
@Override\r
public void onClick(DialogInterface dialog, int which) {\r