360手机助手 v3.3.0版本的 MD5 值为:127c345ad16bbebee6e347381328afd0

以下内容为反编译后的 AppInfo.java 源代码,内容仅作参考


package com.qihoo.appstore.updatelib;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import org.json.JSONObject;

public class AppInfo implements Parcelable {
    public static final Parcelable.Creator CREATOR = new a();

    public boolean f3707a;

    public long f3708b;
    public String c;
    public boolean d;
    public long e;
    public long f;
    public String g;
    public String h;
    public String i;
    public String j;
    public String k;
    public String l;
    public String m;

    public AppInfo() {
        this.f3707a = false;
        this.f3708b = 0L;
        this.d = false;
        this.e = 0L;
        this.f = 0L;
    }

    private AppInfo(Parcel parcel) {
        this.f3707a = false;
        this.f3708b = 0L;
        this.d = false;
        this.e = 0L;
        this.f = 0L;
        this.f3707a = parcel.readInt() == 1;
        this.f3708b = parcel.readLong();
        this.d = parcel.readInt() == 1;
        this.e = parcel.readLong();
        this.f = parcel.readLong();
        this.g = parcel.readString();
        this.c = parcel.readString();
        this.h = parcel.readString();
        this.i = parcel.readString();
        this.j = parcel.readString();
        this.k = parcel.readString();
    }

    public AppInfo(Parcel parcel, a aVar) {
        this(parcel);
    }

    public AppInfo(JSONObject jSONObject) {
        this.f3707a = false;
        this.f3708b = 0L;
        this.d = false;
        this.e = 0L;
        this.f = 0L;
        this.f3707a = jSONObject.optBoolean("new_version");
        this.f3708b = jSONObject.optLong("version_code");
        this.d = jSONObject.optBoolean("save_update");
        this.e = jSONObject.optLong("size");
        this.f = jSONObject.optLong("save_size");
        this.g = jSONObject.optString("update_txt");
        this.c = jSONObject.optString("version_name");
        this.h = jSONObject.optString("download_url");
        this.j = jSONObject.optString("appstore_download_url", null);
        this.k = jSONObject.optString("appstore_channel_name", null);
        this.l = jSONObject.optString("diff_cdn_url", null);
        this.m = jSONObject.optString("diffMd5", null);
        if (TextUtils.isEmpty(this.j)) {
            this.j = "http://openbox.mobilem.360.cn/channel/getUrl?src=440001&app=360box";
        }
        if (TextUtils.isEmpty(this.k)) {
            this.k = "440001";
        }
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("AppInfo[");
        sb.append("\n\tisNewVersion:").append(this.f3707a);
        sb.append("\n\t,versionCode:").append(this.f3708b);
        sb.append("\n\t,isPatchUpdate:").append(this.d);
        sb.append("\n\t,size:").append(this.e);
        sb.append("\n\t,patchUpdateSize:").append(this.f);
        sb.append("\n\t,updateComment:").append(this.g);
        sb.append("\n\t,versioName:").append(this.c);
        sb.append("\n\t,downloadUrl:").append(this.h);
        sb.append("\n\t,packageName:").append(this.i);
        sb.append("\n\t,appStoreDownloadUrl:").append(this.j);
        sb.append("\n\t,appstoreChannelName:").append(this.k);
        sb.append("\n\t]");
        return sb.toString();
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.f3707a ? 1 : 0);
        parcel.writeLong(this.f3708b);
        parcel.writeInt(this.d ? 1 : 0);
        parcel.writeLong(this.e);
        parcel.writeLong(this.f);
        parcel.writeString(this.g);
        parcel.writeString(this.c);
        parcel.writeString(this.h);
        parcel.writeString(this.i);
        parcel.writeString(this.j);
        parcel.writeString(this.k);
    }
}