public static String collectSecureSettings(Context paramContext) { StringBuilder localStringBuilder = new StringBuilder(); Field[] arrayOfField = Settings.Secure.class.getFields(); int i = arrayOfField.length; int j = 0; while (true) if (j < i) { Field localField = arrayOfField[j]; if ((!localField.isAnnotationPresent(Deprecated.class)) && (localField.getType() == String.class) && (isAuthorized(localField))) ; try { String str = Settings.Secure.getString( paramContext.getContentResolver(), (String) localField.get(null)); if (str != null) localStringBuilder.append(localField.getName()).append("=").append(str).append("\n"); j++; } catch (IllegalArgumentException localIllegalArgumentException) { while (true) Log.w(ACRA.LOG_TAG, "Error : ", localIllegalArgumentException); } catch (IllegalAccessException localIllegalAccessException) { while (true) Log.w(ACRA.LOG_TAG, "Error : ", localIllegalAccessException); } } return localStringBuilder.toString(); }
private static void a(Context paramContext, File paramFile) { FileOutputStream localFileOutputStream = new FileOutputStream(paramFile); byte[] arrayOfByte1 = Settings.Secure.getString(paramContext.getContentResolver(), "android_id").getBytes(); Time localTime = new Time(); localTime.setToNow(); byte[] arrayOfByte2 = new byte[6 + arrayOfByte1.length]; for (int i = 0; ; i++) { if (i >= arrayOfByte1.length) { int j = i + 1; arrayOfByte2[i] = ((byte) localTime.year); int k = j + 1; arrayOfByte2[j] = ((byte) localTime.month); int m = k + 1; arrayOfByte2[k] = ((byte) localTime.monthDay); int n = m + 1; arrayOfByte2[m] = ((byte) localTime.hour); int i1 = n + 1; arrayOfByte2[n] = ((byte) localTime.minute); arrayOfByte2[i1] = ((byte) localTime.second); String str = UUID.nameUUIDFromBytes(arrayOfByte2).toString(); System.out.println("uuid.." + str); localFileOutputStream.write(str.getBytes()); return; } arrayOfByte2[i] = arrayOfByte1[i]; } }
public static Set<String> getEnabledListenerPackages(Context paramContext) { paramContext = Settings.Secure.getString(paramContext.getContentResolver(), "enabled_notification_listeners"); HashSet localHashSet; if ((paramContext != null) && (!paramContext.equals(sEnabledNotificationListeners))) { ??? = paramContext.split(":"); localHashSet = new HashSet(???.length); int j = ???.length; int i = 0; while (i < j) { ComponentName localComponentName = ComponentName.unflattenFromString(???[i]); if (localComponentName != null) localHashSet.add(localComponentName.getPackageName()); i += 1; } }
static String getAndroidIdOrNull() { File localFile = new File(Localytics.appContext.getFilesDir() + "/localytics/device_id"); if ((localFile.exists()) && (localFile.length() > 0L)) { String str2 = null; BufferedReader localBufferedReader2 = null; BufferedReader localBufferedReader1 = localBufferedReader2; Object localObject1 = str2; try { char[] arrayOfChar = new char[100]; localBufferedReader1 = localBufferedReader2; localObject1 = str2; localBufferedReader2 = new BufferedReader(new FileReader(localFile), 128); localBufferedReader1 = localBufferedReader2; localObject1 = localBufferedReader2; str2 = String.copyValueOf(arrayOfChar, 0, localBufferedReader2.read(arrayOfChar)); localBufferedReader1 = localBufferedReader2; localObject1 = localBufferedReader2; localBufferedReader2.close(); if (localBufferedReader2 != null) {} str1 = Settings.Secure.getString(Localytics.appContext.getContentResolver(), "android_id"); } catch (FileNotFoundException localFileNotFoundException) { localFileNotFoundException = localFileNotFoundException; localObject1 = localBufferedReader1; Localytics.Log.w("Caught exception", localFileNotFoundException); if (localBufferedReader1 != null) { localBufferedReader1.close(); } } finally { if (localObject1 != null) { ((BufferedReader) localObject1).close(); } } } String str1; if ((str1 == null) || (str1.toLowerCase().equals("9774d56d682e549c"))) { return null; } return str1; }
public PaypalPasswordEncryptor(Context paramContext, String paramString) { this.mHashedDeviceId = getHashedDeviceId( Settings.Secure.getString(paramContext.getContentResolver(), "android_id"), paramString); }