Пример #1
0
 public DatabaseCleaner(Context context)
 {
     mContext = ServiceWrappingContext.create(context);
     mDataStorage = ((DataStorageFactory)mContext.getSystemService("dcp_data_storage_factory")).getDataStorage();
     mAlarmManager = (AlarmManagerWrapper)mContext.getSystemService("sso_alarm_maanger");
     mSystem = (SystemWrapper)mContext.getSystemService("dcp_system");
 }
 NonCanonicalDataStorage(Context context) {
   mContext = ServiceWrappingContext.create(context);
   mAccountManagerImplementation =
       AccountManagerImplementationFactory.getAccountManagerImplementation(mContext);
   mCAStore =
       CustomerAttributeStoreImplementationFactory.getCustomerAttributeStoreImplementation(
           mContext);
 }
    private static JSONObject getAppIdentitiferJSON(ServiceWrappingContext servicewrappingcontext, String s)
    {
        JSONArray jsonarray;
        Object obj;
        ServiceWrappingContext servicewrappingcontext1;
        ServiceWrappingContext servicewrappingcontext2;
        Object obj2;
        Object obj3;
        Object obj4;
        android.content.pm.Signature asignature[];
        Object obj5;
        String s1;
        s1 = BuildInfo.getBuildInfo().mBrazilVersion;
        obj3 = null;
        obj4 = null;
        obj2 = null;
        asignature = null;
        obj5 = null;
        jsonarray = null;
        servicewrappingcontext = new TrustedPackageManager(servicewrappingcontext);
        obj = jsonarray;
        servicewrappingcontext1 = asignature;
        servicewrappingcontext2 = obj5;
        PackageInfo packageinfo = servicewrappingcontext.getPackageInfoForTrustedPackage(s, 64);
        obj = jsonarray;
        servicewrappingcontext1 = asignature;
        servicewrappingcontext2 = obj5;
        servicewrappingcontext = Integer.toString(packageinfo.versionCode);
        obj = servicewrappingcontext;
        servicewrappingcontext1 = servicewrappingcontext;
        servicewrappingcontext2 = servicewrappingcontext;
        asignature = packageinfo.signatures;
        obj = servicewrappingcontext;
        servicewrappingcontext1 = servicewrappingcontext;
        servicewrappingcontext2 = servicewrappingcontext;
        jsonarray = new JSONArray();
        int i = 0;
_L2:
        if (i >= asignature.length)
        {
            break; /* Loop/switch isn't completed */
        }
        jsonarray.put(SignatureHelpers.getSignatureFingerprint("SHA-256", asignature[i]));
        i++;
        if (true) goto _L2; else goto _L1
Пример #4
0
 CustomerAttributeStore(Context context)
 {
     mContext = ServiceWrappingContext.create(context);
     mFactory = (CustomerAttributeStoreFactory)mContext.getSystemService("sso_customer_attribute_store_factory");
     mAccountManagerCommunication = null;
 }
 public PandaGeneratePreAuthorizedCodeEndpointUtils(
     ServiceWrappingContext servicewrappingcontext, Tracer tracer) {
   mContext = servicewrappingcontext;
   mTracer = tracer;
   mDeviceInfo = (SSODeviceInfo) mContext.getSystemService("dcp_device_info");
 }
Пример #6
0
 public void setContext(Context context)
 {
     mContext = ServiceWrappingContext.create(context);
 }