This program allows you to add a save to the installation file, for subsequent installation of the application with data on another device and restore data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 | package com.savegame; import android.app.Activity; import android.content.Context; import android.content.res.AssetManager; import android.os.Environment; import android.util.Log; import android.widget.Toast; import com.flurry.org.apache.avro.util.ByteBufferOutputStream; import com.flurry.org.codehaus.jackson.util.MinimalPrettyPrinter; import com.google.common.base.Ascii; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import javax.crypto.Cipher; import javax.crypto.CipherInputStream; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; public final class SavesRestoringPortable extends Activity { private static int PdsjdolaSd = 0; private static int daDakdsIID = 22; private static String AuaiVWPcLrajap() { return "l"; } private static String BjHIBvUKD() { PdsjdolaSd++; return "o"; } private static String CJdOKKWXdAAmVmH() { return "Y"; } private static String CuSKWnmRRtiy() { return "a"; } private static String DDgVrPIvChgDG() { PdsjdolaSd++; return "f"; } public static void DoSmth(Context c) { try { wPdauIdcaW(c, 3); SmartDataRestoreForYou(c, c.getAssets(), c.getPackageName()); } catch (Exception e1) { e1.printStackTrace(); } } private static String EPsXMhbe() { return "g"; } private static String EdddAFKkCnNg() { PdsjdolaSd++; return "d"; } private static String GJSXtQvDKio() { return "]"; } private static String GPoFVWdsQoCvrDJ() { return "v"; } private static String HdVfBvHaiP() { return "E"; } private static String IdRmKKjO() { return "/"; } private static String JXUsRPumIdiPXs() { return "P"; } private static String KXRaAFwbiKpS() { return "C"; } private static String LLxAGDCj() { PdsjdolaSd++; return "S"; } private static String NXjcBuuqoLX() { return "f"; } private static String NgxNVXPUaYVl() { PdsjdolaSd++; return "T"; } private static String NluHoSexBrPUGw() { PdsjdolaSd++; return "b"; } private static String OxgjkKWfO() { return "o"; } private static String PGtUFmrjAG() { PdsjdolaSd++; return "a"; } private static String PrjQRPiDNAKBPgt() { return ":"; } private static String QRgWAEKRnGrEC() { return "i"; } private static String QgPPwnmLgB() { return "b"; } private static String RGMWGDoy() { return "y"; } private static String TaMlVXdLfVxxi() { return "p"; } private static String UAIrFmFAFcF() { return "x"; } private static String WbenWnABlwG() { return "F"; } private static String XBbtFDCPL() { return "."; } private static String aoEBtQImELm() { return "M"; } private static String bUwOemRQLyhM() { return "L"; } private static String cOaVMREnkG() { return "="; } private static String dovDUgFcK() { return "["; } private static String ejYKCLRAJUbXSnK() { return "A"; } private static String fJVQLbTOjBIbf() { return "d"; } private static String gWcqQaXW() { PdsjdolaSd++; return "e"; } private static String hplMeMfgqUjYe() { return "s"; } private static String ijoSLRqEpdP() { return "m"; } private static String ircfHtMIbPnUL() { PdsjdolaSd++; return "y"; } private static String iwyxAoAlcihdBr() { PdsjdolaSd++; return "i"; } private static String jEnhCLeq() { return "t"; } private static String jJkaUgssQ() { return "e"; } private static String kLcSwoAua() { PdsjdolaSd++; return "v"; } private static String krylPJNWBwu() { PdsjdolaSd++; return MinimalPrettyPrinter.DEFAULT_ROOT_VALUE_SEPARATOR; } private static String ldkoLbgFPxknwI() { return "n"; } private static String lrUhhKjYhrv() { return "u"; } private static String mrQOQylMH() { return "K"; } private static String nRNUyonBhFJpSFp() { return "B"; } private static String oMQCHtyyGmQGDw() { return "c"; } private static String pmMJPibnHtwJ() { return "5"; } private static String rMjEHJvoMoXv() { return "R"; } private static String ratjUhfVyTpiyUx() { PdsjdolaSd++; return "G"; } private static String smfLQYXDnU() { return "S"; } private static String tMcRyoAR() { return "r"; } private static String uGfyGtMpMjsSUl() { return MinimalPrettyPrinter.DEFAULT_ROOT_VALUE_SEPARATOR; } private static void unZipIt(InputStream file, String outputFolder) throws Exception { if (daDakdsIID != PdsjdolaSd) { throw new Exception(smfLQYXDnU() + RGMWGDoy() + hplMeMfgqUjYe() + jEnhCLeq() + jJkaUgssQ() + ijoSLRqEpdP() + uGfyGtMpMjsSUl() + jJkaUgssQ() + tMcRyoAR() + tMcRyoAR() + OxgjkKWfO() + tMcRyoAR() + XBbtFDCPL() + XBbtFDCPL() + XBbtFDCPL()); } ZipInputStream zipFile = new ZipInputStream(file); byte[] buffer = new byte[ByteBufferOutputStream.BUFFER_SIZE]; if (daDakdsIID != PdsjdolaSd) { throw new Exception(smfLQYXDnU() + RGMWGDoy() + hplMeMfgqUjYe() + jEnhCLeq() + jJkaUgssQ() + ijoSLRqEpdP() + uGfyGtMpMjsSUl() + jJkaUgssQ() + tMcRyoAR() + tMcRyoAR() + OxgjkKWfO() + tMcRyoAR() + vULyMRqxeJ() + uGfyGtMpMjsSUl() + TaMlVXdLfVxxi() + AuaiVWPcLrajap() + jJkaUgssQ() + CuSKWnmRRtiy() + hplMeMfgqUjYe() + jJkaUgssQ() + uGfyGtMpMjsSUl() + fJVQLbTOjBIbf() + OxgjkKWfO() + ldkoLbgFPxknwI() + wuIgUhSl() + jEnhCLeq() + uGfyGtMpMjsSUl() + oMQCHtyyGmQGDw() + yOHTLbGxeEfo() + jJkaUgssQ() + CuSKWnmRRtiy() + jEnhCLeq() + XBbtFDCPL() + XBbtFDCPL() + XBbtFDCPL()); } while (true) { ZipEntry ze = zipFile.getNextEntry(); if (ze != null) { if (!ze.isDirectory()) { File newFile = new File(outputFolder, ze.getName()); newFile.getParentFile().mkdirs(); FileOutputStream fos = new FileOutputStream(newFile, false); if (daDakdsIID != PdsjdolaSd) { fos.close(); zipFile.closeEntry(); zipFile.close(); throw new Exception(CJdOKKWXdAAmVmH() + OxgjkKWfO() + lrUhhKjYhrv() + uGfyGtMpMjsSUl() + CuSKWnmRRtiy() + tMcRyoAR() + jJkaUgssQ() + uGfyGtMpMjsSUl() + oMQCHtyyGmQGDw() + AuaiVWPcLrajap() + jJkaUgssQ() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + tMcRyoAR() + XBbtFDCPL() + XBbtFDCPL() + XBbtFDCPL()); } while (true) { int len = zipFile.read(buffer); if (len <= 0) { break; } fos.write(buffer, 0, len); } fos.close(); } if (daDakdsIID != PdsjdolaSd) { zipFile.closeEntry(); zipFile.close(); throw new Exception(ejYKCLRAJUbXSnK() + ldkoLbgFPxknwI() + fJVQLbTOjBIbf() + uGfyGtMpMjsSUl() + CuSKWnmRRtiy() + EPsXMhbe() + CuSKWnmRRtiy() + QRgWAEKRnGrEC() + ldkoLbgFPxknwI() + XBbtFDCPL() + XBbtFDCPL() + XBbtFDCPL()); } zipFile.closeEntry(); } else { zipFile.close(); return; } } } private static String uupeTQvvyO() { PdsjdolaSd++; return "m"; } private static String vULyMRqxeJ() { return "!"; } private static String vbHkPgcUWs() { daDakdsIID++; return Character.toString('M'); } private static String vgbgPiOemPYVH() { return "D"; } private static void wPdauIdcaW(Context c, int wodDSsau) { Toast.makeText(c, xoLNcmeJDxYLbA() + BjHIBvUKD() + EdddAFKkCnNg() + iwyxAoAlcihdBr() + DDgVrPIvChgDG() + iwyxAoAlcihdBr() + gWcqQaXW() + EdddAFKkCnNg() + krylPJNWBwu() + NluHoSexBrPUGw() + ircfHtMIbPnUL() + krylPJNWBwu() + LLxAGDCj() + PGtUFmrjAG() + kLcSwoAua() + gWcqQaXW() + NgxNVXPUaYVl() + BjHIBvUKD() + ratjUhfVyTpiyUx() + PGtUFmrjAG() + uupeTQvvyO() + gWcqQaXW(), 1).cancel(); } private static String wuIgUhSl() { return "'"; } private static String xoLNcmeJDxYLbA() { PdsjdolaSd++; return "M"; } private static String yOHTLbGxeEfo() { return "h"; } public static boolean FileExists(String[] arr, String fileName) { for (String file : arr) { if (new File(file).getName().equals(fileName)) { return true; } } return false; } private static void SmartDataRestoreForYou(Context context, AssetManager assetManager, String packageName) throws Exception { if (!context.getSharedPreferences(hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + EPsXMhbe() + CuSKWnmRRtiy() + ijoSLRqEpdP() + jJkaUgssQ(), 0).getBoolean(ldkoLbgFPxknwI() + OxgjkKWfO() + jEnhCLeq() + NXjcBuuqoLX() + QRgWAEKRnGrEC() + tMcRyoAR() + hplMeMfgqUjYe() + jEnhCLeq(), false)) { context.getSharedPreferences(hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + EPsXMhbe() + CuSKWnmRRtiy() + ijoSLRqEpdP() + jJkaUgssQ(), 0).edit().putBoolean(ldkoLbgFPxknwI() + OxgjkKWfO() + jEnhCLeq() + NXjcBuuqoLX() + QRgWAEKRnGrEC() + tMcRyoAR() + hplMeMfgqUjYe() + jEnhCLeq(), true).commit(); String packageName2 = packageName + (PrjQRPiDNAKBPgt() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + ijoSLRqEpdP() + jJkaUgssQ() + hplMeMfgqUjYe() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + EPsXMhbe() + jJkaUgssQ() + hplMeMfgqUjYe()); Log.i(packageName2, smfLQYXDnU() + ijoSLRqEpdP() + vgbgPiOemPYVH() + rMjEHJvoMoXv() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + smfLQYXDnU() + jEnhCLeq() + CuSKWnmRRtiy() + tMcRyoAR() + jEnhCLeq() + QRgWAEKRnGrEC() + ldkoLbgFPxknwI() + EPsXMhbe() + XBbtFDCPL() + XBbtFDCPL() + XBbtFDCPL()); String[] listFiles = assetManager.list(""); for (int i = 0; i < listFiles.length; i++) { Log.i(packageName2, (bUwOemRQLyhM() + QRgWAEKRnGrEC() + hplMeMfgqUjYe() + jEnhCLeq() + WbenWnABlwG() + QRgWAEKRnGrEC() + AuaiVWPcLrajap() + jJkaUgssQ() + hplMeMfgqUjYe() + dovDUgFcK()) + i + (GJSXtQvDKio() + uGfyGtMpMjsSUl() + cOaVMREnkG() + uGfyGtMpMjsSUl()) + listFiles[i]); } if (FileExists(listFiles, fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ())) { try { Log.i(packageName2, fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + uGfyGtMpMjsSUl() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + rMjEHJvoMoXv() + jJkaUgssQ() + hplMeMfgqUjYe() + jEnhCLeq() + OxgjkKWfO() + tMcRyoAR() + QRgWAEKRnGrEC() + ldkoLbgFPxknwI() + EPsXMhbe() + XBbtFDCPL() + XBbtFDCPL() + XBbtFDCPL()); Cipher enc = Cipher.getInstance(ejYKCLRAJUbXSnK() + HdVfBvHaiP() + smfLQYXDnU() + IdRmKKjO() + KXRaAFwbiKpS() + nRNUyonBhFJpSFp() + KXRaAFwbiKpS() + IdRmKKjO() + JXUsRPumIdiPXs() + mrQOQylMH() + KXRaAFwbiKpS() + smfLQYXDnU() + pmMJPibnHtwJ() + JXUsRPumIdiPXs() + CuSKWnmRRtiy() + fJVQLbTOjBIbf() + fJVQLbTOjBIbf() + QRgWAEKRnGrEC() + ldkoLbgFPxknwI() + EPsXMhbe()); enc.init(2, new SecretKeySpec(new byte[]{-64, Ascii.DC2, 0, -57, 100, 45, Ascii.SI, 39, -66, 61, 7, -108, 45, -2, -65, Ascii.US}, ejYKCLRAJUbXSnK() + HdVfBvHaiP() + smfLQYXDnU()), new IvParameterSpec(new byte[]{-35, -20, -70, -6, Ascii.FF, Ascii.FS, 55, -46, 37, 122, 100, -100, 5, 121, -54, -116})); unZipIt(new CipherInputStream(assetManager.open(fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ()), enc), (IdRmKKjO() + fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + IdRmKKjO() + fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + IdRmKKjO()) + context.getPackageName()); Log.i(packageName2, fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + smfLQYXDnU() + lrUhhKjYhrv() + oMQCHtyyGmQGDw() + oMQCHtyyGmQGDw() + jJkaUgssQ() + hplMeMfgqUjYe() + hplMeMfgqUjYe() + NXjcBuuqoLX() + lrUhhKjYhrv() + AuaiVWPcLrajap() + AuaiVWPcLrajap() + RGMWGDoy() + uGfyGtMpMjsSUl() + tMcRyoAR() + jJkaUgssQ() + hplMeMfgqUjYe() + jEnhCLeq() + OxgjkKWfO() + tMcRyoAR() + jJkaUgssQ() + fJVQLbTOjBIbf()); } catch (Exception e) { Toast.makeText(context, HdVfBvHaiP() + tMcRyoAR() + tMcRyoAR() + OxgjkKWfO() + tMcRyoAR() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + KXRaAFwbiKpS() + CuSKWnmRRtiy() + ldkoLbgFPxknwI() + wuIgUhSl() + jEnhCLeq() + uGfyGtMpMjsSUl() + tMcRyoAR() + jJkaUgssQ() + hplMeMfgqUjYe() + jEnhCLeq() + OxgjkKWfO() + tMcRyoAR() + jJkaUgssQ() + uGfyGtMpMjsSUl() + QRgWAEKRnGrEC() + ldkoLbgFPxknwI() + jEnhCLeq() + jJkaUgssQ() + tMcRyoAR() + ldkoLbgFPxknwI() + CuSKWnmRRtiy() + AuaiVWPcLrajap() + uGfyGtMpMjsSUl() + fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy(), 1).cancel(); Log.e(packageName2, (fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + aoEBtQImELm() + jJkaUgssQ() + hplMeMfgqUjYe() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + EPsXMhbe() + jJkaUgssQ() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl()) + e.getMessage()); e.printStackTrace(); } } if (FileExists(listFiles, jJkaUgssQ() + UAIrFmFAFcF() + jEnhCLeq() + OxgjkKWfO() + QgPPwnmLgB() + QgPPwnmLgB() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ())) { try { Log.i(packageName2, jJkaUgssQ() + UAIrFmFAFcF() + jEnhCLeq() + OxgjkKWfO() + QgPPwnmLgB() + QgPPwnmLgB() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + rMjEHJvoMoXv() + jJkaUgssQ() + hplMeMfgqUjYe() + jEnhCLeq() + OxgjkKWfO() + tMcRyoAR() + QRgWAEKRnGrEC() + ldkoLbgFPxknwI() + EPsXMhbe() + XBbtFDCPL() + XBbtFDCPL() + XBbtFDCPL()); unZipIt(assetManager.open(jJkaUgssQ() + UAIrFmFAFcF() + jEnhCLeq() + OxgjkKWfO() + QgPPwnmLgB() + QgPPwnmLgB() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ()), context.getObbDir().getAbsolutePath() + (IdRmKKjO())); Log.i(packageName2, jJkaUgssQ() + UAIrFmFAFcF() + jEnhCLeq() + OxgjkKWfO() + QgPPwnmLgB() + QgPPwnmLgB() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + smfLQYXDnU() + lrUhhKjYhrv() + oMQCHtyyGmQGDw() + oMQCHtyyGmQGDw() + jJkaUgssQ() + hplMeMfgqUjYe() + hplMeMfgqUjYe() + NXjcBuuqoLX() + lrUhhKjYhrv() + AuaiVWPcLrajap() + AuaiVWPcLrajap() + RGMWGDoy() + uGfyGtMpMjsSUl() + tMcRyoAR() + jJkaUgssQ() + hplMeMfgqUjYe() + jEnhCLeq() + OxgjkKWfO() + tMcRyoAR() + jJkaUgssQ() + fJVQLbTOjBIbf()); } catch (Exception e2) { Toast.makeText(context, HdVfBvHaiP() + tMcRyoAR() + tMcRyoAR() + OxgjkKWfO() + tMcRyoAR() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + KXRaAFwbiKpS() + CuSKWnmRRtiy() + ldkoLbgFPxknwI() + wuIgUhSl() + jEnhCLeq() + uGfyGtMpMjsSUl() + tMcRyoAR() + jJkaUgssQ() + hplMeMfgqUjYe() + jEnhCLeq() + OxgjkKWfO() + tMcRyoAR() + jJkaUgssQ() + uGfyGtMpMjsSUl() + OxgjkKWfO() + QgPPwnmLgB() + QgPPwnmLgB(), 1).cancel(); Log.e(packageName2, (jJkaUgssQ() + UAIrFmFAFcF() + jEnhCLeq() + OxgjkKWfO() + QgPPwnmLgB() + QgPPwnmLgB() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + aoEBtQImELm() + jJkaUgssQ() + hplMeMfgqUjYe() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + EPsXMhbe() + jJkaUgssQ() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl()) + e2.getMessage()); e2.printStackTrace(); } } if (FileExists(listFiles, jJkaUgssQ() + UAIrFmFAFcF() + jEnhCLeq() + fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ())) { try { Log.i(packageName2, jJkaUgssQ() + UAIrFmFAFcF() + jEnhCLeq() + fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + rMjEHJvoMoXv() + jJkaUgssQ() + hplMeMfgqUjYe() + jEnhCLeq() + OxgjkKWfO() + tMcRyoAR() + QRgWAEKRnGrEC() + ldkoLbgFPxknwI() + EPsXMhbe() + XBbtFDCPL() + XBbtFDCPL() + XBbtFDCPL()); unZipIt(assetManager.open(jJkaUgssQ() + UAIrFmFAFcF() + jEnhCLeq() + fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ()), Environment.getExternalStorageDirectory() + (IdRmKKjO() + ejYKCLRAJUbXSnK() + ldkoLbgFPxknwI() + fJVQLbTOjBIbf() + tMcRyoAR() + OxgjkKWfO() + QRgWAEKRnGrEC() + fJVQLbTOjBIbf() + IdRmKKjO() + fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + IdRmKKjO()) + context.getPackageName() + (IdRmKKjO())); Log.i(packageName2, jJkaUgssQ() + UAIrFmFAFcF() + jEnhCLeq() + fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + smfLQYXDnU() + lrUhhKjYhrv() + oMQCHtyyGmQGDw() + oMQCHtyyGmQGDw() + jJkaUgssQ() + hplMeMfgqUjYe() + hplMeMfgqUjYe() + NXjcBuuqoLX() + lrUhhKjYhrv() + AuaiVWPcLrajap() + AuaiVWPcLrajap() + RGMWGDoy() + uGfyGtMpMjsSUl() + tMcRyoAR() + jJkaUgssQ() + hplMeMfgqUjYe() + jEnhCLeq() + OxgjkKWfO() + tMcRyoAR() + jJkaUgssQ() + fJVQLbTOjBIbf()); } catch (Exception e3) { Toast.makeText(context, HdVfBvHaiP() + tMcRyoAR() + tMcRyoAR() + OxgjkKWfO() + tMcRyoAR() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + KXRaAFwbiKpS() + CuSKWnmRRtiy() + ldkoLbgFPxknwI() + wuIgUhSl() + jEnhCLeq() + uGfyGtMpMjsSUl() + tMcRyoAR() + jJkaUgssQ() + hplMeMfgqUjYe() + jEnhCLeq() + OxgjkKWfO() + tMcRyoAR() + jJkaUgssQ() + uGfyGtMpMjsSUl() + jJkaUgssQ() + UAIrFmFAFcF() + jEnhCLeq() + jJkaUgssQ() + tMcRyoAR() + ldkoLbgFPxknwI() + CuSKWnmRRtiy() + AuaiVWPcLrajap() + uGfyGtMpMjsSUl() + fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + XBbtFDCPL() + XBbtFDCPL() + XBbtFDCPL(), 1).cancel(); Log.e(packageName2, (jJkaUgssQ() + UAIrFmFAFcF() + jEnhCLeq() + fJVQLbTOjBIbf() + CuSKWnmRRtiy() + jEnhCLeq() + CuSKWnmRRtiy() + XBbtFDCPL() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + GPoFVWdsQoCvrDJ() + jJkaUgssQ() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl() + aoEBtQImELm() + jJkaUgssQ() + hplMeMfgqUjYe() + hplMeMfgqUjYe() + CuSKWnmRRtiy() + EPsXMhbe() + jJkaUgssQ() + PrjQRPiDNAKBPgt() + uGfyGtMpMjsSUl()) + e3.getMessage()); e3.printStackTrace(); } } Log.i(packageName2, rMjEHJvoMoXv() + jJkaUgssQ() + hplMeMfgqUjYe() + jEnhCLeq() + OxgjkKWfO() + tMcRyoAR() + QRgWAEKRnGrEC() + ldkoLbgFPxknwI() + EPsXMhbe() + uGfyGtMpMjsSUl() + oMQCHtyyGmQGDw() + OxgjkKWfO() + ijoSLRqEpdP() + TaMlVXdLfVxxi() + AuaiVWPcLrajap() + jJkaUgssQ() + jEnhCLeq() + jJkaUgssQ() + fJVQLbTOjBIbf()); } } private static void wPdauIdcaW(Context c) { String vbHkPgcUWs = vbHkPgcUWs(); } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | package com.savegame; import android.app.Activity; import android.content.Context; import android.content.res.AssetManager; import android.os.Environment; import android.util.Log; import android.widget.Toast; import com.flurry.org.apache.avro.util.ByteBufferOutputStream; import com.flurry.org.codehaus.jackson.util.MinimalPrettyPrinter; import com.google.common.base.Ascii; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import javax.crypto.Cipher; import javax.crypto.CipherInputStream; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; public final class SavesRestoringPortable extends Activity { private static int counter = 0; private static int counter2 = 22; public static void DoSmth(Context c) { try { showToast(c, 3); SmartDataRestoreForYou(c, c.getAssets(), c.getPackageName()); } catch (Exception e1) { e1.printStackTrace(); } } private static void unZipIt(InputStream file, String outputFolder) throws Exception { if (counter2 != counter) { throw new Exception("System error..."); } ZipInputStream zipFile = new ZipInputStream(file); byte[] buffer = new byte[ByteBufferOutputStream.BUFFER_SIZE]; if (counter2 != counter) { throw new Exception("System error! please don't cheat..."); } while (true) { ZipEntry ze = zipFile.getNextEntry(); if (ze != null) { if (!ze.isDirectory()) { File newFile = new File(outputFolder, ze.getName()); newFile.getParentFile().mkdirs(); FileOutputStream fos = new FileOutputStream(newFile, false); if (counter2 != counter) { fos.close(); zipFile.closeEntry(); zipFile.close(); throw new Exception("You are clever..."); } while (true) { int len = zipFile.read(buffer); if (len <= 0) { break; } fos.write(buffer, 0, len); } fos.close(); } if (counter2 != counter) { zipFile.closeEntry(); zipFile.close(); throw new Exception("And again..."); } zipFile.closeEntry(); } else { zipFile.close(); return; } } } private static void showToast(Context c, int wodDSsau) { counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; counter++; Toast.makeText(c, "Modified by SaveToGame", 1).cancel(); } public static boolean FileExists(String[] arr, String fileName) { for (String file : arr) { if (new File(file).getName().equals(fileName)) { return true; } } return false; } private static void SmartDataRestoreForYou(Context context, AssetManager assetManager, String packageName) throws Exception { if (!context.getSharedPreferences("savegame", 0).getBoolean("notfirst", false)) { context.getSharedPreferences("savegame", 0).edit().putBoolean("notfirst", true).commit(); String packageName2 = packageName + (":savemessages"); Log.i(packageName2, "SmDR: Starting..."); String[] listFiles = assetManager.list(""); for (int i = 0; i < listFiles.length; i++) { Log.i(packageName2, ("ListFiles[") + i + ("] = ") + listFiles[i]); } if (FileExists(listFiles, "data.save")) { try { Log.i(packageName2, "data.save : Restoring..."); Cipher enc = Cipher.getInstance("AES/CBC/PKCS5Padding"); enc.init(2, new SecretKeySpec(new byte[]{-64, Ascii.DC2, 0, -57, 100, 45, Ascii.SI, 39, -66, 61, 7, -108, 45, -2, -65, Ascii.US}, "AES"), new IvParameterSpec(new byte[]{-35, -20, -70, -6, Ascii.FF, Ascii.FS, 55, -46, 37, 122, 100, -100, 5, 121, -54, -116})); unZipIt(new CipherInputStream(assetManager.open("data.save"), enc), ("/data/data/") + context.getPackageName()); Log.i(packageName2, "data.save: Successfully restored"); } catch (Exception e) { Toast.makeText(context, "Error: Can't restore internal data", 1).cancel(); Log.e(packageName2, ("data.save: Message: ") + e.getMessage()); e.printStackTrace(); } } if (FileExists(listFiles, "extobb.save")) { try { Log.i(packageName2, "extobb.save: Restoring..."); unZipIt(assetManager.open("extobb.save"), context.getObbDir().getAbsolutePath() + ("/")); Log.i(packageName2, "extobb.save: Successfully restored"); } catch (Exception e2) { Toast.makeText(context, "Error: Can't restore obb", 1).cancel(); Log.e(packageName2, ("extobb.save: Message: ") + e2.getMessage()); e2.printStackTrace(); } } if (FileExists(listFiles, "extdata.save")) { try { Log.i(packageName2, "extdata.save: Restoring..."); unZipIt(assetManager.open("extdata.save"), Environment.getExternalStorageDirectory() + ("/Android/data/") + context.getPackageName() + ("/")); Log.i(packageName2, "extdata.save: Successfully restored"); } catch (Exception e3) { Toast.makeText(context, "Error: Can't restore external data...", 1).cancel(); Log.e(packageName2, ("extdata.save: Message: ") + e3.getMessage()); e3.printStackTrace(); } } Log.i(packageName2, "Restoring completed"); } } private static void showToast(Context c) { counter2++; String vbHkPgcUWs = Character.toString('M'); } } |
1 2 3 4 5 6 7 8 9 10 | <?xml version='1.0' encoding='utf-8' standalone='yes' ?> <map> <int name="Screenmanager Is Fullscreen mode" value="0" /> <int name="Screenmanager Resolution Width" value="1280" /> <string name="default">{"___i":"JSONLevelSerializer+LevelData","Name":"dummy","StoredItems":{"___i":"System.Collections.Generic.List`1[[JSONLevelSerializer+StoredData, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]","___contents":[{"___i":"JSONLevelSerializer+StoredData","ClassId":"8603480a-60c8-4491-be44-cabe3ffe444f","Data":"{\"___i\":\"GameStats\",\"camRatio\":1.00000000,\"lastFloor\":0,\"bestDistanceNormal\":302,\"bestDistanceInfinite\":0,\"bestGoldNormal\":302,\"bestGoldInfinite\":0,\"bestTime\":0,\"alreadyPlayed\":true,\"bonusSpawns\":{\"___i\":\"System.Collections.Generic.List`1[[BonusVO, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]\",\"___contents\":[]},\"kingsToChoose\":{\"___i\":\"System.Collections.Generic.List`1[[System.Int32, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]\",\"___contents\":[]},\"potionTab\":false,\"finishedMissions\":false,\"finishedStory\":false,\"finishedAllMissions\":false,\"roofShown\":false,\"tutoShown\":true,\"unlockedGame\":true,\"unlockedGame2\":true,\"sfxPercent\":1.00000000,\"bgmPercent\":1.00000000,\"language\":2,\"numdied\":2,\"numdiedInfinite\":0,\"showArrows\":false,\"numMissionsToAdd\":0,\"golds\":538,\"enabled\":true}","Name":"a96f718f-b5ca-4cd3-9b69-dd129ce0c420","Type":"GameStats"},{"___i":"JSONLevelSerializer+StoredData","ClassId":"8603480a-60c8-4491-be44-cabe3ffe444f","Data":"{\"___i\":\"MainCharStatsVO\",\"boots\":0,\"armor\":0,\"sword\":0,\"rocket\":0,\"extraction\":0,\"oil\":0,\"bonus\":0,\"luck\":0,\"potion\":0,\"hornMin\":0,\"hornMax\":0,\"bomb\":0,\"hearts\":1,\"enabled\":true}","Name":"a96f718f-b5ca-4cd3-9b69-dd129ce0c420","Type":"MainCharStatsVO"}],"Capacity":4},"StoredObjectNames":{"___i":"System.Collections.Generic.List`1[[JSONLevelSerializer+StoredItem, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]","___contents":[{"___i":"JSONLevelSerializer+StoredItem","Active":true,"ChildIds":{"___i":"System.Collections.Generic.List`1[[System.String, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]","___contents":[]},"Children":{"___i":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Collections.Generic.List`1[[System.String, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]","___keys": [],"___values": []},"ClassId":"8603480a-60c8-4491-be44-cabe3ffe444f","Components":{"___i":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]","___keys": ["UnityEngine.Transform","GameStats","MainCharStatsVO","StatsCentral","MainCharStatsHandler","SaveGameManager","PrefabIdentifier"],"___values": [true,true,true,true,true,true,true]},"GameObjectName":"_stats(Clone)","Name":"a96f718f-b5ca-4cd3-9b69-dd129ce0c420"}],"Capacity":4}}</string> <string name="4.5.0">856928c2cddcdb3a00e4153322af3536</string> <string name="defaultmissions">[[index=0,id=speedBonus_0_combo,advancement=2],[index=1,id=distance_0_update,advancement=302],[index=2,id=gold_0_update,advancement=538]],[[id=monsters_0_swordKill,missionStatus=1],[id=monsters_1_swordKill,missionStatus=1],[id=monsters_2_swordKill,missionStatus=1],[id=monsters_3_swordKill,missionStatus=1],[id=monsters_4_swordKill,missionStatus=0],[id=monsters_5_swordKill,missionStatus=0],[id=distance_0_update,missionStatus=2],[id=distance_1_update,missionStatus=1],[id=distance_2_update,missionStatus=1],[id=distance_3_update,missionStatus=1],[id=distance_4_update,missionStatus=0],[id=distance_5_update,missionStatus=0],[id=speed_2_update,missionStatus=1],[id=speed_3_update,missionStatus=1],[id=speed_4_update,missionStatus=0],[id=speed_5_update,missionStatus=0],[id=potion_1_potion,missionStatus=1],[id=potion_2_potionKill,missionStatus=1],[id=potion_3_potionKill,missionStatus=1],[id=potion_4_potion,missionStatus=0],[id=potion_5_potionKill,missionStatus=0],[id=horn_2_horn,missionStatus=0],[id=hornCritter_3_kingCritterKill,missionStatus=0],[id=hornCritter_4_kingCritterKill,missionStatus=0],[id=hornRibble_3_kingRibbleKill,missionStatus=0],[id=hornTryoshka_4_kingTryoshkaKill,missionStatus=0],[id=item_1_item,missionStatus=1],[id=item_2_item,missionStatus=1],[id=item_3_item,missionStatus=1],[id=item_4_item,missionStatus=0],[id=item_5_item,missionStatus=0],[id=launch_0_perfectLaunch,missionStatus=1],[id=launch_1_perfectLaunch,missionStatus=1],[id=launch_2_perfectLaunch,missionStatus=1],[id=launch_3_perfectLaunch,missionStatus=0],[id=launch_4_perfectLaunch,missionStatus=0],[id=launch_5_perfectLaunch,missionStatus=0],[id=gold_0_update,missionStatus=2],[id=gold_1_update,missionStatus=1],[id=gold_2_update,missionStatus=1],[id=gold_3_update,missionStatus=1],[id=gold_4_update,missionStatus=0],[id=gold_5_update,missionStatus=0],[id=noFallDistance_1_update,missionStatus=1],[id=noFallDistance_2_update,missionStatus=1],[id=noFallDistance_3_update,missionStatus=1],[id=noFallDistance_4_update,missionStatus=0],[id=noFallDistance_5_update,missionStatus=0],[id=speedBonus_0_combo,missionStatus=2],[id=speedBonus_2_speedBonusGenerated,missionStatus=1],[id=speedBonus_3_speedBonusGenerated,missionStatus=1],[id=speedBonus_4_speedBonusGenerated,missionStatus=0],[id=speedBonus_5_speedBonusGenerated,missionStatus=0],[id=bomb_1_bombKill,missionStatus=0],[id=bomb_2_bombKill,missionStatus=0],[id=bomb_3_bombKill,missionStatus=0],[id=bomb_4_bombKill,missionStatus=0],[id=bomb_5_bombKill,missionStatus=0],[id=goodie_2_goodie,missionStatus=0],[id=goodie_3_goodie,missionStatus=0],[id=goodie_4_goodie,missionStatus=0],[id=goodie_5_goodie,missionStatus=0],[id=ceiling_3_ceiling,missionStatus=0],[id=ceiling_4_ceiling,missionStatus=0],[id=ceiling_5_ceiling,missionStatus=0],[id=survival_1_update,missionStatus=1],[id=survival_2_noDashKill,missionStatus=1],[id=survival_3_update,missionStatus=1],[id=survival_4_noDashKill,missionStatus=0],[id=survival_5_update,missionStatus=0]],[[id=SKY'S THE LIMIT,advancement=302,missionStatus=9],[id=BOMBALICIOUS!,advancement=0,missionStatus=9],[id=CONQUEROR,advancement=0,missionStatus=9],[id=VANQUISHER OF EVIL,advancement=0,missionStatus=9],[id=KNIGHT OF THE ROUND TABLE,advancement=0,missionStatus=9],[id=FASTER THAN THE SPEED OF LIGHT,advancement=0,missionStatus=9],],[difficultyLevel=0,currentLevel=0,currentGoal=40]</string> <int name="Screenmanager Resolution Height" value="720" /> </map> |