// Path: app/src/main/java/com/wt/apkinfo/entity/ApplicationDetailsEntity.java
// public class ApplicationDetailsEntity implements ApplicationDetailsModel {
// 
// 	public String id;
// 	public String name;
// 	public String dataDir;
// 	public String nativeLibraryDir;
// 	public ComponentInfo[] activities;
// 	public ComponentInfo[] services;
// 	public ComponentInfo[] permissions;
// 	public ComponentInfo[] providers;
// 	public ComponentInfo[] receivers;
// 	public ComponentInfo[] metadata;
// 	public String[] signatures;
// 	public String versionName;
// 	public String installerPackage;
// 	public int versionCode;
// 	public long firstInstallTime;
// 	public long lastUpdateTime;
// 	public String apkFile;
// 	public int targetSdkVersion;
// 	public int minSdkVersion;
// 
// 	@Override
// 	public String getId() {
// 		return id;
// 	}
// 
// 	@Override
// 	public String getName() {
// 		return name;
// 	}
// 
// 	@Override
// 	public String getIconUri() {
// 		return "app://" + id;
// 	}
// 
// 
// }
// 
// Path: app/src/main/java/com/wt/apkinfo/entity/ComponentInfo.java
// public class ComponentInfo {
// 
// 	public String name;
// 	public String className;
// 
// 	public ComponentInfo() {}
// 
// 	public ComponentInfo(String n, String v) {
// 		name = n;
// 		className = v;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return "{name=" + name + ", class=" + className + "}";
// 	}
// }


import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PermissionInfo;
import android.content.pm.ProviderInfo;
import android.content.pm.ServiceInfo;
import android.content.pm.Signature;
import android.os.AsyncTask;
import android.os.Build;
import com.hivedi.console.Console;
import com.hivedi.era.ERA;
import com.wt.apkinfo.BuildConfig;
import com.wt.apkinfo.entity.ApplicationDetailsEntity;
import com.wt.apkinfo.entity.ComponentInfo;
import java.security.MessageDigest;
import java.util.Locale;
import java.util.Set;
import androidx.annotation.Nullable;
package com.wt.apkinfo.db;





/**
 * Created by kenumir on 22.11.2017.
 *
 */

public class AppInfoTask extends AsyncTask<Context, Void, ApplicationDetailsEntity> {

    public interface OnFinish {
        void onFinish(ApplicationDetailsEntity res);
    }

    private String appId;
    private OnFinish mOnFinish;

    AppInfoTask(String aid, @Nullable OnFinish callback) {
        appId = aid;
        mOnFinish = callback;
    }

    @SuppressLint("PackageManagerGetSignatures")
    @Override
    protected ApplicationDetailsEntity doInBackground(Context... contexts) {
        Context context = contexts[0].getApplicationContext();
// Path: app/src/main/java/com/wt/apkinfo/entity/ApplicationDetailsEntity.java
// public class ApplicationDetailsEntity implements ApplicationDetailsModel {
// 
// 	public String id;
// 	public String name;
// 	public String dataDir;
// 	public String nativeLibraryDir;
// 	public ComponentInfo[] activities;
// 	public ComponentInfo[] services;
// 	public ComponentInfo[] permissions;
// 	public ComponentInfo[] providers;
// 	public ComponentInfo[] receivers;
// 	public ComponentInfo[] metadata;
// 	public String[] signatures;
// 	public String versionName;
// 	public String installerPackage;
// 	public int versionCode;
// 	public long firstInstallTime;
// 	public long lastUpdateTime;
// 	public String apkFile;
// 	public int targetSdkVersion;
// 	public int minSdkVersion;
// 
// 	@Override
// 	public String getId() {
// 		return id;
// 	}
// 
// 	@Override
// 	public String getName() {
// 		return name;
// 	}
// 
// 	@Override
// 	public String getIconUri() {
// 		return "app://" + id;
// 	}
// 
// 
// }
// 
// Path: app/src/main/java/com/wt/apkinfo/entity/ComponentInfo.java
// public class ComponentInfo {
// 
// 	public String name;
// 	public String className;
// 
// 	public ComponentInfo() {}
// 
// 	public ComponentInfo(String n, String v) {
// 		name = n;
// 		className = v;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return "{name=" + name + ", class=" + className + "}";
// 	}
// }


// Path: app/src/main/java/com/wt/apkinfo/db/AppInfoTask.java
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PermissionInfo;
import android.content.pm.ProviderInfo;
import android.content.pm.ServiceInfo;
import android.content.pm.Signature;
import android.os.AsyncTask;
import android.os.Build;
import com.hivedi.console.Console;
import com.hivedi.era.ERA;
import com.wt.apkinfo.BuildConfig;
import com.wt.apkinfo.entity.ApplicationDetailsEntity;
import com.wt.apkinfo.entity.ComponentInfo;
import java.security.MessageDigest;
import java.util.Locale;
import java.util.Set;
import androidx.annotation.Nullable;

package com.wt.apkinfo.db;





/**
 * Created by kenumir on 22.11.2017.
 *
 */

public class AppInfoTask extends AsyncTask<Context, Void, ApplicationDetailsEntity> {

    public interface OnFinish {
        void onFinish(ApplicationDetailsEntity res);
    }

    private String appId;
    private OnFinish mOnFinish;

    AppInfoTask(String aid, @Nullable OnFinish callback) {
        appId = aid;
        mOnFinish = callback;
    }

    @SuppressLint("PackageManagerGetSignatures")
    @Override
    protected ApplicationDetailsEntity doInBackground(Context... contexts) {
        Context context = contexts[0].getApplicationContext();
        ApplicationDetailsEntity result = new ApplicationDetailsEntity();