Search in sources :

Example 1 with ReplaceSpecPkgHook

use of com.lody.virtual.client.hook.base.ReplaceSpecPkgHook in project VirtualApp by asLody.

the class MmsPatch method onBindHooks.

@Override
protected void onBindHooks() {
    addHook(new ReplaceSpecPkgHook("sendMessage", 1));
    addHook(new ReplaceSpecPkgHook("downloadMessage", 1));
    addHook(new ReplaceCallingPkgHook("importTextMessage"));
    addHook(new ReplaceCallingPkgHook("importMultimediaMessage"));
    addHook(new ReplaceCallingPkgHook("deleteStoredMessage"));
    addHook(new ReplaceCallingPkgHook("deleteStoredConversation"));
    addHook(new ReplaceCallingPkgHook("updateStoredMessageStatus"));
    addHook(new ReplaceCallingPkgHook("archiveStoredConversation"));
    addHook(new ReplaceCallingPkgHook("addTextMessageDraft"));
    addHook(new ReplaceCallingPkgHook("addMultimediaMessageDraft"));
    addHook(new ReplaceSpecPkgHook("sendStoredMessage", 1));
    addHook(new ReplaceCallingPkgHook("setAutoPersisting"));
}
Also used : ReplaceCallingPkgHook(com.lody.virtual.client.hook.base.ReplaceCallingPkgHook) ReplaceSpecPkgHook(com.lody.virtual.client.hook.base.ReplaceSpecPkgHook)

Example 2 with ReplaceSpecPkgHook

use of com.lody.virtual.client.hook.base.ReplaceSpecPkgHook in project VirtualApp by asLody.

the class ISmsPatch method onBindHooks.

@Override
protected void onBindHooks() {
    super.onBindHooks();
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
        addHook(new ReplaceSpecPkgHook("getAllMessagesFromIccEfForSubscriber", 1));
        addHook(new ReplaceSpecPkgHook("updateMessageOnIccEfForSubscriber", 1));
        addHook(new ReplaceSpecPkgHook("copyMessageToIccEfForSubscriber", 1));
        addHook(new ReplaceSpecPkgHook("sendDataForSubscriber", 1));
        addHook(new ReplaceSpecPkgHook("sendDataForSubscriberWithSelfPermissions", 1));
        addHook(new ReplaceSpecPkgHook("sendTextForSubscriber", 1));
        addHook(new ReplaceSpecPkgHook("sendTextForSubscriberWithSelfPermissions", 1));
        addHook(new ReplaceSpecPkgHook("sendMultipartTextForSubscriber", 1));
        addHook(new ReplaceSpecPkgHook("sendStoredText", 1));
        addHook(new ReplaceSpecPkgHook("sendStoredMultipartText", 1));
    } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        addHook(new ReplaceCallingPkgHook("getAllMessagesFromIccEf"));
        addHook(new ReplaceSpecPkgHook("getAllMessagesFromIccEfForSubscriber", 1));
        addHook(new ReplaceCallingPkgHook("updateMessageOnIccEf"));
        addHook(new ReplaceSpecPkgHook("updateMessageOnIccEfForSubscriber", 1));
        addHook(new ReplaceCallingPkgHook("copyMessageToIccEf"));
        addHook(new ReplaceSpecPkgHook("copyMessageToIccEfForSubscriber", 1));
        addHook(new ReplaceCallingPkgHook("sendData"));
        addHook(new ReplaceSpecPkgHook("sendDataForSubscriber", 1));
        addHook(new ReplaceCallingPkgHook("sendText"));
        addHook(new ReplaceSpecPkgHook("sendTextForSubscriber", 1));
        addHook(new ReplaceCallingPkgHook("sendMultipartText"));
        addHook(new ReplaceSpecPkgHook("sendMultipartTextForSubscriber", 1));
        addHook(new ReplaceSpecPkgHook("sendStoredText", 1));
        addHook(new ReplaceSpecPkgHook("sendStoredMultipartText", 1));
    } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
        addHook(new ReplaceCallingPkgHook("getAllMessagesFromIccEf"));
        addHook(new ReplaceCallingPkgHook("updateMessageOnIccEf"));
        addHook(new ReplaceCallingPkgHook("copyMessageToIccEf"));
        addHook(new ReplaceCallingPkgHook("sendData"));
        addHook(new ReplaceCallingPkgHook("sendText"));
        addHook(new ReplaceCallingPkgHook("sendMultipartText"));
    }
}
Also used : ReplaceCallingPkgHook(com.lody.virtual.client.hook.base.ReplaceCallingPkgHook) ReplaceSpecPkgHook(com.lody.virtual.client.hook.base.ReplaceSpecPkgHook)

Aggregations

ReplaceCallingPkgHook (com.lody.virtual.client.hook.base.ReplaceCallingPkgHook)2 ReplaceSpecPkgHook (com.lody.virtual.client.hook.base.ReplaceSpecPkgHook)2