{"id":179723,"date":"2013-05-14T19:17:04","date_gmt":"2013-05-14T15:17:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=179723"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=179723","title":{"rendered":"<span class=\"post_title\">\u0420\u0435\u0432\u0435\u0440\u0441 AdMob SDK \u0438\u043b\u0438 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u043f\u043e\u0441\u043e\u0431 \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u043e\u0434<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u044d\u0442\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0441 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043b\u0435\u0442\u043e\u043c \u0432 \u041c\u0438\u043d\u0441\u043a\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043b\u043e\u043d Bentley. \u0422\u0430\u043a \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u0432 \u0441\u0432\u043e\u044e \u0432\u0442\u043e\u0440\u0443\u044e \u0438\u0433\u0440\u0443, \u0438\u043d\u0430\u0447\u0435 \u044f \u0440\u0438\u0441\u043a\u0443\u044e \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u0421\u043a\u0430\u0447\u0430\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e SDK (6.4.1 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442), \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u0432 \u0438\u0433\u0440\u0443, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u0438 \u0441\u0440\u0430\u0437\u0443 \u0443\u0432\u0438\u0434\u0435\u043b \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432 logcat<a name=\"habracut\"><\/a>:<\/p>\n<pre><code class=\"java\">05-14 15:06:06.312: D\/dalvikvm(1379): DexOpt: --- BEGIN 'ads2133480362.jar' (bootstrap=0) --- 05-14 15:06:06.632: D\/dalvikvm(1413): creating instr width table 05-14 15:06:06.671: D\/dalvikvm(1413): DexOpt: load 2ms, verify+opt 18ms 05-14 15:06:06.703: D\/dalvikvm(1379): DexOpt: --- END 'ads2133480362.jar' (success) --- 05-14 15:06:06.703: D\/dalvikvm(1379): DEX prep '\/data\/data\/by.squareroot.kingsquare\/cache\/ads2133480362.jar': unzip in 0ms, rewrite 391ms <\/code><\/pre>\n<p>  <b>dexopt<\/b> \u2014 \u044d\u0442\u043e <a href=\"http:\/\/www.netmite.com\/android\/mydroid\/dalvik\/docs\/dexopt.html\">\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430<\/a> \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 DEX-\u0444\u0430\u0439\u043b\u043e\u0432. \u041d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0441 \u0447\u0435\u0433\u043e \u0431\u044b \u044d\u0442\u043e \u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c \u0444\u0430\u0439\u043b\u043e\u043c <b>ads2133480362.jar<\/b>. \u0422\u0430\u043a \u043a\u0430\u043a \u044f \u043a \u044d\u0442\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u043b \u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e, \u0432\u0441\u0435 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u044f \u043f\u0430\u043b\u0438 \u043d\u0430 AdMob. \u0412\u0438\u0434\u0438\u043c\u043e, AdMob SDK \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e jar-\u0444\u0430\u0439\u043b \u0432 \u043a\u044d\u0448-\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043e\u0442\u0442\u0443\u0434\u0430 \u043a\u043b\u0430\u0441\u0441\u044b \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u0445 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0438 \u043f\u043e\u043a\u0430\u0437\u0435 \u0431\u0430\u043d\u043d\u0435\u0440\u043e\u0432. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0443\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0436\u0435 \u0442\u0430\u043a \u0441\u0442\u0430\u0440\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u044f\u0447\u0443\u0442 \u043e\u0442 \u043d\u0430\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 AdMob SDK.<\/p>\n<h4>\u0420\u0435\u0432\u0435\u0440\u0441\u0438\u043c AdMob SDK<\/h4>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0432 SDK \u043e\u0431\u0444\u0443\u0441\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u044b, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u043d\u0430\u043c \u0437\u0430\u0434\u0430\u0447\u0443. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u043a\u0430\u043a\u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 \u0435\u0441\u0442\u044c \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 <i>Context.getCacheDir()<\/i>. \u0418\u0445 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e, \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0434\u0432\u0430. \u0412 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043d\u0438\u0445 \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 <i>WebSettings.setAppCachePath()<\/i>, \u0442\u0430\u043a \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0441 \u043d\u0438 \u043e \u0447\u0435\u043c \u0443\u0436\u0435 \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <b>ak.class<\/b>.<br \/>  \u041b\u0438\u0447\u043d\u043e \u044f \u0434\u043b\u044f \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <a href=\"http:\/\/java.decompiler.free.fr\/\">JD<\/a>. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0447\u0430\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u0430 \u0432 \u044d\u0442\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435, \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u0432\u044b\u0437\u043e\u0432 <i>Context.getCacheDir()<\/i>:<\/p>\n<pre><code class=\"java\">byte[] arrayOfByte1 = an.a(ao.a()); byte[] arrayOfByte2 = an.a(arrayOfByte1, ao.b()); File localFile2 = File.createTempFile(&quot;ads&quot;, &quot;.jar&quot;, paramContext.getCacheDir()); FileOutputStream localFileOutputStream = new FileOutputStream(localFile2); localFileOutputStream.write(arrayOfByte2, 0, arrayOfByte2.length); localFileOutputStream.close(); <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0441\u043d\u044f\u0442\u044c \u043f\u0440\u043e\u043a\u043b\u044f\u0442\u0438\u0435, \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0435 \u0437\u043b\u044b\u043c proguard-\u043e\u043c, \u0438 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"java\">String keyBase64 = Base64Consts.getKeyBase64(); byte[] keyBytes = Decrypter.decodeKey(keyBase64); String classBase64 = Base64Consts.getClassBase64(); byte[] classBytes = Decrypter.decodeClassBytes(keyBytes, classBase64); File classFile = File.createTempFile(&quot;ads&quot;, &quot;.jar&quot;, context.getCacheDir()); FileOutputStream out = new FileOutputStream(classFile); out.write(classBytes, 0, classBytes.length); out.close(); <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443, \u043e\u0442\u043a\u0443\u0434\u0430 \u0436\u0435 \u0431\u0435\u0440\u0435\u0442\u0441\u044f jar-\u0444\u0430\u0439\u043b. \u041a\u043b\u0430\u0441\u0441 <b>Base64Consts<\/b> (\u0431\u044b\u0432\u0448\u0438\u0439 <b>ao<\/b>) \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 Base64 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0435:<\/p>\n<pre><code class=\"java\">public class Base64Consts { \tpublic static String getKeyBase64()  { \t\treturn &quot;ARuhFl7nBw\/97YxsDjOCIqF0d9D2SpkzcWN42U\/KR6Q=&quot;; \t} \t \tpublic static String getClassBase64() { \t\treturn &quot;SuhNEgGjhJl\/XS1FVuhqPkUehkYsZY0198PVH9C0C...&quot;; \/\/ \u044d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u0434\u043b\u0438\u043d\u043d\u0430\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0434\u0435\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0435 \u043d\u0430\u0447\u0430\u043b\u043e \t} } <\/code><\/pre>\n<p>  \u0421\u0442\u0440\u043e\u043a\u0430 <b>keyBase64<\/b> \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043b\u044e\u0447 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 <i>Decrypter.decodeKey()<\/i>:<\/p>\n<pre><code class=\"java\">public static byte[] decodeKey(String keyBase64) { \tbyte[] keyBytes = Base64Util.decode(keyBase64); \tByteBuffer byteBuffer = ByteBuffer.wrap(keyBytes, 4, 16); \tbyte[] key128 = new byte[16]; \tbyteBuffer.get(key128); \tfor (int i = 0; i &lt; key128.length; i++) { \t\tkey128[i] = ((byte)(key128[i] ^ 0x44)); \t} \treturn key128; } <\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u0430\u0439\u0442 (AdMob SDK \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0432\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0446\u0435\u043b\u0435\u0439, \u0442. \u043a. android.util.Base64 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 api level 8) \u0438 \u0438\u0437 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u0432 32 \u0431\u0430\u0439\u0442\u0430 \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0431\u043b\u043e\u043a \u0432 16 \u0431\u0430\u0439\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 5-\u0433\u043e. \u041a\u0430\u0436\u0434\u044b\u0439 \u0431\u0430\u0439\u0442 xor-\u0438\u0442\u0441\u044f \u0432\u043e\u043b\u0448\u0435\u0431\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c 0x44. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u044d\u0442\u0438\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f 128-\u0431\u0438\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 AES.<\/p>\n<p>  \u0421\u0442\u0440\u043e\u043a\u0430 <b>classBase64<\/b> \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u0430\u0439\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 jar-\u0444\u0430\u0439\u043b, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 <i>Decrypter.decodeClassBytes()<\/i>:<\/p>\n<pre><code class=\"java\">public static byte[] decodeClassBytes(byte[] keyBytes, String cryptedBytesBase64) { \tbyte[] cryptedBytes = Base64Util.decode(cryptedBytesBase64); \tByteBuffer buffer = ByteBuffer.allocate(cryptedBytes.length); \tbuffer.put(cryptedBytes); \tbuffer.flip(); \tbyte[] initializationVector = new byte[16]; \tbyte[] input = new byte[cryptedBytes.length - 16]; \tbuffer.get(initializationVector); \tbuffer.get(input);  \tSecretKeySpec keySpec = new SecretKeySpec(keyBytes, &quot;AES&quot;); \tCipher cipher = Cipher.getInstance(&quot;AES\/CBC\/PKCS5Padding&quot;); \tcipher.init(Cipher.DECRYPT_MODE, keySpec, new IvParameterSpec(initializationVector)); \treturn cipher.doFinal(input); } <\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u0430\u0439\u0442, \u043f\u0435\u0440\u0432\u044b\u0435 16 \u0431\u0430\u0439\u0442 \u0432 \u044d\u0442\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u2014 \u0432\u0435\u043a\u0442\u043e\u0440 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u2014 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u0430\u0439\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432 jar-\u0444\u0430\u0439\u043b \u0438 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043a\u043b\u0430\u0441\u0441\u044b. \u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e \u0436\u0435 \u0442\u0430\u043c \u0432\u043d\u0443\u0442\u0440\u0438.<\/p>\n<h5>\u0422\u0430\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 ad.jar<\/h5>\n<p>  \u0414\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e jar-\u0444\u0430\u0439\u043b\u0430 AdMob SDK \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <b>DexClassLoader<\/b>. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"java\">DexClassLoader classLoader = new DexClassLoader(classFile, context.getCacheDir()), null, context.getClassLoader()); Class clazz = classLoader.loadClass(b(keyBytes, Base64Consts.getClassNameBase64())); Method m = clazz.getMethod(b(keyBytes, Base64Consts.getMethodNameBase64()), new Class[0]); <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e jar-\u0444\u0430\u0439\u043b \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f. \u0418\u043c\u0435\u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u044b \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u043a\u0430\u043a \u0438 \u0441\u0430\u043c jar-\u0444\u0430\u0439\u043b (Base64 + AES), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u043f\u0440\u043e\u0449\u0435 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u044c jar-\u0444\u0430\u0439\u043b\u0430.<\/p>\n<p>  \u0412\u043f\u043e\u043b\u043d\u0435 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0444\u0430\u0439\u043b classes.dex. \u041f\u0440\u043e\u0433\u043d\u0430\u0432 \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/code.google.com\/p\/dex2jar\/\">dex2jar<\/a> \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0435\u0449\u0435 \u043e\u0434\u0438\u043d jar-\u0444\u0430\u0439\u043b, \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0441 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438.<\/p>\n<h5>Thank you Mario! But our princess is in another castle!<\/h5>\n<p>  \u0412\u043e\u0442 \u0442\u0443\u0442 \u043c\u0435\u043d\u044f \u043f\u043e\u0434\u0436\u0438\u0434\u0430\u043b\u043e \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u0412\u043d\u0443\u0442\u0440\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u044f\u0442\u044c \u043e\u0431\u0444\u0443\u0441\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0438 \u0441\u043e\u0431\u043e\u0439 \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a\u043e\u0439 \u043a\u043b\u0430\u0441\u0441:<\/p>\n<pre><code class=\"java\">public class a {   public static Long a()  {     return Long.valueOf(Calendar.getInstance().getTime().getTime() \/ 1000L);   } } <\/code><\/pre>\n<p>  \u0418 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<pre><code class=\"java\">public class d {   public static String a() {     new Build.VERSION();     return Build.VERSION.RELEASE;   } } <\/code><\/pre>\n<p>  \u041e\u0434\u0438\u043d \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0431\u0435\u0440\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Settings.Secure.ANDROID_ID \u0438 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0435\u0433\u043e md5-\u0445\u0435\u0448. \u0414\u0440\u0443\u0433\u043e\u0439 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 SHA-2 \u0445\u0435\u0448 \u0432\u0441\u0435\u0433\u043e apk-\u0444\u0430\u0439\u043b\u0430. \u0412\u0438\u0434\u0438\u043c\u043e, \u044d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.<br \/>  \u0412 \u043e\u0431\u0449\u0435\u043c, \u043d\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432, \u043d\u0438 \u0441\u043a\u0440\u044b\u0442\u044b\u0445 \u043f\u043e\u0441\u043b\u0430\u043d\u0438\u0439, \u043d\u0438\u0447\u0435\u0433\u043e. \u0417\u0430\u0447\u0435\u043c \u0442\u0430\u043a \u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u0434 \u2014 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0437\u0430\u0433\u0430\u0434\u043a\u0430.<\/p>\n<h4>\u0418\u0433\u043e\u043b\u043a\u0430 \u0432 \u044f\u0439\u0446\u0435, \u044f\u0439\u0446\u043e \u0432 \u0443\u0442\u043a\u0435&#8230;<\/h4>\n<p>  \u0425\u043e\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, AdMob \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430. \u041a\u043e\u0434 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 jar-\u0444\u0430\u0439\u043b, jar-\u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 dex-\u0444\u043e\u0440\u043c\u0430\u0442, dex-\u0444\u0430\u0439\u043b \u0437\u0430\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043d\u043e\u0432\u0430 \u0432 jar, jar-\u0444\u0430\u0439\u043b \u0448\u0438\u0444\u0440\u0443\u0435\u0442\u0441\u044f AES \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442\u0441\u044f Base64. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>  \u0425\u043e\u0442\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u0445\u0438\u0442\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u043f\u043e\u0434 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 Dangerous Products \u0438\u0437 <a href=\"https:\/\/play.google.com\/about\/developer-content-policy.html\">Google Play Developer Program Policies<\/a>:  <\/p>\n<blockquote><p>An app downloaded from Google Play may not modify, replace or update its own APK binary code using any method other than Google Play&#8217;s update mechanism.<\/p><\/blockquote>\n<p>  \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u043a\u043e\u0434 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u2014 \u0438\u0437 \u0432\u043e\u0437\u0434\u0443\u0445\u0430 \u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043a\u043b\u0430\u0441\u0441\u044b. \u041d\u043e AdMob-\u0443 \u0442\u0430\u043a \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e\u0447\u043d\u043e \u043c\u043e\u0436\u043d\u043e.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/179723\/\"> http:\/\/habrahabr.ru\/post\/179723\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u044d\u0442\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0441 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043b\u0435\u0442\u043e\u043c \u0432 \u041c\u0438\u043d\u0441\u043a\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043b\u043e\u043d Bentley. \u0422\u0430\u043a \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u0432 \u0441\u0432\u043e\u044e \u0432\u0442\u043e\u0440\u0443\u044e \u0438\u0433\u0440\u0443, \u0438\u043d\u0430\u0447\u0435 \u044f \u0440\u0438\u0441\u043a\u0443\u044e \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u0421\u043a\u0430\u0447\u0430\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e SDK (6.4.1 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442), \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u0432 \u0438\u0433\u0440\u0443, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u0438 \u0441\u0440\u0430\u0437\u0443 \u0443\u0432\u0438\u0434\u0435\u043b \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432 logcat<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-179723","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/179723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=179723"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/179723\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=179723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=179723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=179723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}