version:1.3.5
fix:增加展锐平台签名 add:
This commit is contained in:
@@ -7,6 +7,7 @@ import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.os.Build;
|
||||
import android.util.Log;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
@@ -27,6 +28,8 @@ import io.reactivex.schedulers.Schedulers;
|
||||
|
||||
public class APKinstallReceiver extends BroadcastReceiver {
|
||||
|
||||
private String TAG = APKinstallReceiver.class.getSimpleName();
|
||||
|
||||
@Override
|
||||
public void onReceive(final Context context, Intent intent) {
|
||||
// TODO: This method is called when the BroadcastReceiver is receiving
|
||||
@@ -43,7 +46,7 @@ public class APKinstallReceiver extends BroadcastReceiver {
|
||||
List<PackageInfo> list = pm.getInstalledPackages(0);
|
||||
List<AppUploadInfo> uploadInfos = new ArrayList<>();
|
||||
for (PackageInfo info : list) {
|
||||
if ((info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 1){
|
||||
if ((info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 1) {
|
||||
continue;
|
||||
}
|
||||
AppUploadInfo uploadInfo = new AppUploadInfo();
|
||||
@@ -69,6 +72,7 @@ public class APKinstallReceiver extends BroadcastReceiver {
|
||||
@Override
|
||||
public void onNext(List<AppUploadInfo> appUploadInfos) {
|
||||
String json = JSONArray.toJSONString(appUploadInfos);
|
||||
Log.e(TAG, "onNext: " + json);
|
||||
HTTPInterface.SendAppInstall(json);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user