java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #------------------------------------------------------------
  2. # $File: java,v 1.14 2013/02/08 16:54:45 christos Exp $
  3. # Java ByteCode and Mach-O binaries (e.g., Mac OS X) use the
  4. # same magic number, 0xcafebabe, so they are both handled
  5. # in the entry called "cafebabe".
  6. #------------------------------------------------------------
  7. # Java serialization
  8. # From Martin Pool (m.pool@pharos.com.au)
  9. 0 beshort 0xaced Java serialization data
  10. >2 beshort >0x0004 \b, version %d
  11. 0 belong 0xfeedfeed Java KeyStore
  12. !:mime application/x-java-keystore
  13. 0 belong 0xcececece Java JCE KeyStore
  14. !:mime application/x-java-jce-keystore
  15. # Dalvik .dex format. http://retrodev.com/android/dexformat.html
  16. # From <mkf@google.com> "Mike Fleming"
  17. 0 string dex\n
  18. >0 regex dex\n[0-9][0-9][0-9]\0 Dalvik dex file
  19. >4 string >000 version %s
  20. 0 string dey\n
  21. >0 regex dey\n[0-9][0-9][0-9]\0 Dalvik dex file (optimized for host)
  22. >4 string >000 version %s
  23. # Java source
  24. 0 regex ^import.*;$ Java source
  25. !:mime text/x-java
  26. # http://android.stackexchange.com/questions/23357/\
  27. # is-there-a-way-to-look-inside-and-modify-an-adb-backup-created-file/\
  28. # 23608#23608
  29. 0 string ANDROID\040BACKUP\n Android Backup
  30. >15 string 1\n \b, version 1
  31. >17 string 0\n \b, uncompressed
  32. >17 string 1\n \b, compressed
  33. >19 string none\n \b, unencrypted
  34. >19 string AES-256\n \b, encrypted AES-256