正在查看: Fix Locker v1.5 应用的 SendMessageToDealerNumber.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fix Locker v1.5 应用的 SendMessageToDealerNumber.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.user.a4keygen.activity;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
import androidx.appcompat.app.AppCompatActivity;
import com.google.gson.JsonObject;
import com.user.a4keygen.R;
import com.user.a4keygen.model.CommonResponseModel;
import com.user.a4keygen.network.ApiClient;
import com.user.a4keygen.network.ApiInterface;
import com.user.a4keygen.receiver.CustumeReceiverContact;
import com.user.a4keygen.sharedprefrence.SharedPrefManager;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class SendMessageToDealerNumber extends AppCompatActivity {
public static final String CUSTOM_BROADCAST_ACTION_CONTACT_NUM = "com.grintech.emisafelockapp.CUSTOM_BROADCAST_CONTACT";
private CustumeReceiverContact customReceiver;
String imei;
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.activity_send_message_to_dealer_number);
registerCustomReceiver();
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
SendMessageToDealerNumber.this.sendCustomBroadcast();
SendMessageToDealerNumber.this.genericAip();
}
}, 100L);
}
public void sendCustomBroadcast() {
Intent intent = new Intent();
intent.setAction("com.grintech.emisafelockapp.CUSTOM_BROADCAST_CONTACT");
sendBroadcast(intent);
}
protected void onDestroy() {
super.onDestroy();
unregisterCustomReceiver();
}
private void registerCustomReceiver() {
CustumeReceiverContact custumeReceiverContact = new CustumeReceiverContact();
this.customReceiver = custumeReceiverContact;
registerReceiver(custumeReceiverContact, new IntentFilter("com.grintech.emisafelockapp.CUSTOM_BROADCAST_CONTACT"));
}
private void unregisterCustomReceiver() {
CustumeReceiverContact custumeReceiverContact = this.customReceiver;
if (custumeReceiverContact != null) {
unregisterReceiver(custumeReceiverContact);
this.customReceiver = null;
}
}
public void genericAip() {
try {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("userId", SharedPrefManager.getInstance(getApplicationContext()).getUserId());
jsonObject.addProperty("operationType", "GC_OVM");
jsonObject.addProperty("acknowledgement", "Generic api Contact via message");
((ApiInterface) ApiClient.getInstance(getApplicationContext()).getClient().create(ApiInterface.class)).genericApi(jsonObject).enqueue(new Callback<CommonResponseModel>() {
public void onFailure(Call<CommonResponseModel> call, Throwable th) {
}
public void onResponse(Call<CommonResponseModel> call, Response<CommonResponseModel> response) {
if (response.isSuccessful()) {
"S".equals(((CommonResponseModel) response.body()).getStatus());
}
}
});
} catch (Exception e) {
e.printStackTrace();
}
}
}