Home | History | Annotate | Download | only in DMService
      1 # Keep JNI native methods in NativeDM
      2 -keep class com.android.omadm.service.NativeDM {
      3     static native int initialize();
      4     static native int destroy();
      5     static native int startClientSession(java.lang.String, com.android.omadm.service.DMSession);
      6     static native int startFotaClientSession(java.lang.String, java.lang.String, com.android.omadm.service.DMSession);
      7     static native int startFotaNotifySession(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.android.omadm.service.DMSession);
      8     static native int cancelSession();
      9     static native int parsePkg0(byte[], com.android.omadm.service.DMPkg0Notification);
     10     static native int createInterior(java.lang.String);
     11     static native int createLeaf(java.lang.String, java.lang.String);
     12     static native int createLeaf(java.lang.String, byte[]);
     13     static native int deleteNode(java.lang.String);
     14     static native java.lang.String setStringNode(java.lang.String, java.lang.String);
     15     static native java.lang.String CreateLeafInteger(java.lang.String, java.lang.String);
     16     static native java.lang.String getNodeInfo(java.lang.String);
     17     static native java.lang.String executePlugin(java.lang.String, java.lang.String);
     18     static native java.lang.String dumpTree(java.lang.String);
     19     static native byte[] nativeWbxmlToXml(byte[]);
     20     static native byte[] processScript(java.lang.String, java.lang.String, boolean, int, com.android.omadm.service.DMSession);
     21     static native byte[] processBootstrapScript(byte[], boolean, java.lang.String);
     22     static native java.lang.String parseBootstrapServerId(byte[], boolean);
     23 }
     24 
     25 # Keep JNI callback methods in DMAlert
     26 -keep class com.android.omadm.service.DMAlert {
     27     int showDisplayAlert(int, java.lang.String, int, int);
     28     int showConfirmAlert(int, java.lang.String, int, int);
     29     int showTextInputAlert(int, java.lang.String, java.lang.String, int, int, int, int, int);
     30     int showSingleChoiceAlert(int, java.lang.String, java.lang.String[], int, int, int);
     31     int showMultipleChoiceAlert(int, java.lang.String, java.lang.String[], boolean[], int, int);
     32 }
     33 
     34 # Keep JNI callback methods in DMHttpConnector
     35 -keep class com.android.omadm.service.DMHttpConnector {
     36     void enableApnByName(java.lang.String);
     37     int sendRequest(java.lang.String, byte[], java.lang.String);
     38     long getResponseLength();
     39     byte[] getResponseData();
     40     java.lang.String getResponseHeader(java.lang.String);
     41     void setContentType(java.lang.String);
     42 }
     43 
     44 # Keep JNI callback methods in DMPkg0Notification
     45 -keep class com.android.omadm.service.DMPkg0Notification {
     46     void setSessionID(int);
     47     void setUIMode(int);
     48     void setInitiator(int);
     49     void setAuthFlag(int);
     50     void setServerID(java.lang.String);
     51 }
     52 
     53 # Keep JNI callback methods in DMSession
     54 -keep class com.android.omadm.service.DMSession {
     55     com.android.omadm.service.DMHttpConnector getNetConnector();
     56     com.android.omadm.service.DMAlert getDMAlert();
     57 }
     58 
     59 # Keep plugin wrapper JNI callback method in DmtPluginManager
     60 -keep class com.android.omadm.plugin.impl.DmtPluginManager {
     61     boolean initJavaPlugin(java.lang.String, java.lang.String[]);
     62     int executeNode(java.lang.String, java.lang.String);
     63     int commit();
     64     void setServerID(java.lang.String);
     65     int createInteriorNode(java.lang.String);
     66     int createLeafNode(java.lang.String, int, java.lang.String);
     67     int renameNode(java.lang.String, java.lang.String);
     68     int deleteNode(java.lang.String);
     69     int setNodeValue(java.lang.String, int, java.lang.String);
     70     java.lang.String[] getNodeValue(java.lang.String);
     71     java.lang.String[] getNodes();
     72     void release();
     73 }
     74