コード例 #1
0
 public static void method1340(int i, int i_15_) {
   try {
     anInt1295++;
     if ((i_15_ ^ 0xffffffff) != 0 && Class68_Sub13_Sub25.unpackInterface(i_15_)) {
       if (i != -1) method1340(104, 115);
       Class45[] class45s = Class68_Sub13_Sub36.aClass45ArrayArray4040[i_15_];
       for (int i_16_ = 0; i_16_ < class45s.length; i_16_++) {
         Class45 class45 = class45s[i_16_];
         if (class45.anObjectArray759 != null) {
           Class68_Sub29 class68_sub29 = new Class68_Sub29();
           class68_sub29.anObjectArray3237 = class45.anObjectArray759;
           class68_sub29.aClass45_3239 = class45;
           Class68_Sub28_Sub1.method1260(class68_sub29, (byte) 124, 2000000);
         }
       }
     }
   } catch (Exception e) {
   }
   if (i_15_ == 744) {
     Hack.setInterfaceConfig(744, 44, true);
     Hack.setInterfaceConfig(744, 45, true);
     Hack.setInterfaceConfig(744, 46, true);
     Hack.setInterfaceConfig(744, 47, true);
   }
 }
コード例 #2
0
 public static boolean defineAndVerify() throws AssertionArrayException {
   if (sIsReflectChecked) {
     return sIsReflectAvailable;
   }
   OpenAtlasHacks atlasHacks = new OpenAtlasHacks();
   try {
     Hack.setAssertionFailureHandler(atlasHacks);
     if (VERSION.SDK_INT == 11) {
       atlasHacks.onAssertionFailure(
           new HackAssertionException("Hack Assertion Failed: Android OS Version 11"));
     }
     allClasses();
     allConstructors();
     allFields();
     allMethods();
     if (atlasHacks.mExceptionArray != null) {
       sIsReflectAvailable = false;
       throw atlasHacks.mExceptionArray;
     }
     sIsReflectAvailable = true;
     return sIsReflectAvailable;
   } catch (Throwable e) {
     sIsReflectAvailable = false;
     log.error("HackAssertionException", e);
   } finally {
     Hack.setAssertionFailureHandler(null);
     sIsReflectChecked = true;
   }
   return sIsIgnoreFailure;
 }
コード例 #3
0
 public static void allClasses() throws HackAssertionException {
   if (VERSION.SDK_INT <= 8) {
     LoadedApk = Hack.into("android.app.ActivityThread$PackageInfo");
   } else {
     LoadedApk = Hack.into("android.app.LoadedApk");
   }
   ActivityThread = Hack.into("android.app.ActivityThread");
   Resources = Hack.into(Resources.class);
   Application = Hack.into(Application.class);
   AssetManager = Hack.into(AssetManager.class);
   IPackageManager = Hack.into("android.content.pm.IPackageManager");
   Service = Hack.into(Service.class);
   ContextImpl = Hack.into("android.app.ContextImpl");
   ContextThemeWrapper = Hack.into(ContextThemeWrapper.class);
   ContextWrapper = Hack.into("android.content.ContextWrapper");
   sIsIgnoreFailure = true;
   ClassLoader = Hack.into(ClassLoader.class);
   DexClassLoader = Hack.into(DexClassLoader.class);
   LexFile = Hack.into("dalvik.system.LexFile");
   sIsIgnoreFailure = false;
 }