翰林优商.apk(点击下载) / b.java


package com.czhj.devicehelper.oaId.interfaces;

import android.content.Context;
import android.os.Build;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.provider.Settings;
import android.text.TextUtils;

public interface b extends IInterface {

    public static final class a implements b {
        private IBinder a;
        private Context b;

        public a(IBinder iBinder, Context context) {
            this.a = iBinder;
            this.b = context;
        }

        @Override // com.czhj.devicehelper.oaId.interfaces.b
        public String a() {
            String str;
            Parcel obtain = Parcel.obtain();
            Parcel obtain2 = Parcel.obtain();
            try {
                obtain.writeInterfaceToken("com.uodis.opendevice.aidl.OpenDeviceIdentifierService");
                this.a.transact(1, obtain, obtain2, 0);
                obtain2.readException();
                str = obtain2.readString();
            } catch (Throwable th) {
                obtain.recycle();
                obtain2.recycle();
                th.printStackTrace();
                str = null;
            }
            obtain.recycle();
            obtain2.recycle();
            return str;
        }

        public IBinder asBinder() {
            return this.a;
        }

        @Override // com.czhj.devicehelper.oaId.interfaces.b
        public boolean b() {
            Parcel obtain = Parcel.obtain();
            Parcel obtain2 = Parcel.obtain();
            boolean z = true;
            try {
                obtain.writeInterfaceToken("com.uodis.opendevice.aidl.OpenDeviceIdentifierService");
                this.a.transact(1, obtain, obtain2, 0);
                obtain2.readException();
                if (obtain2.readInt() == 0) {
                    z = false;
                }
            } catch (Throwable unused) {
                obtain.recycle();
                obtain2.recycle();
            }
            obtain.recycle();
            obtain2.recycle();
            return z;
        }

        public String c() {
            if (Build.VERSION.SDK_INT < 24) {
                return null;
            }
            try {
                String string = Settings.Global.getString(this.b.getContentResolver(), "pps_oaid");
                return (TextUtils.isEmpty(string) || TextUtils.isEmpty(Settings.Global.getString(this.b.getContentResolver(), "pps_track_limit"))) ? string : "get oaid failed";
            } catch (Throwable th) {
                th.printStackTrace();
                return "get oaid failed";
            }
        }
    }

    String a();

    boolean b();
}