summaryrefslogtreecommitdiff
path: root/usr.bin/file/magdir/java
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/file/magdir/java')
-rw-r--r--usr.bin/file/magdir/java17
1 files changed, 16 insertions, 1 deletions
diff --git a/usr.bin/file/magdir/java b/usr.bin/file/magdir/java
index cdde1df7b0c..4951a66533c 100644
--- a/usr.bin/file/magdir/java
+++ b/usr.bin/file/magdir/java
@@ -1,4 +1,4 @@
-# $OpenBSD: java,v 1.4 2008/05/08 01:40:57 chl Exp $
+# $OpenBSD: java,v 1.5 2009/04/24 18:54:34 chl Exp $
#------------------------------------------------------------
# Java ByteCode and Mach-O binaries (e.g., Mac OS X) use the
@@ -9,3 +9,18 @@
# From Martin Pool (m.pool@pharos.com.au)
0 beshort 0xaced Java serialization data
>2 beshort >0x0004 \b, version %d
+
+0 belong 0xfeedfeed Java KeyStore
+!:mime application/x-java-keystore
+0 belong 0xcececece Java JCE KeyStore
+!:mime application/x-java-jce-keystore
+
+# Dalvik .dex format. http://retrodev.com/android/dexformat.html
+# From <mkf@google.com> "Mike Fleming"
+0 string dex\n
+>0 regex dex\n[0-9][0-9][0-9]\0 Dalvik dex file
+>4 string >000 version %s
+0 string dey\n
+>0 regex dey\n[0-9][0-9][0-9]\0 Dalvik dex file (optimized for host)
+>4 string >000 version %s
+