This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.manuelpeinado.toolbartest; | |
import android.graphics.Color; | |
import android.graphics.drawable.Drawable; | |
import android.os.Bundle; | |
import android.support.v7.app.ActionBarActivity; | |
import android.support.v7.widget.Toolbar; | |
import android.view.Menu; | |
import android.view.View; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("Loading script..."); | |
var getaddrinfoPtr = Module.findExportByName(null, 'getaddrinfo') | |
var connectPtr = Module.findExportByName(null, 'connect') | |
var sendPtr = Module.findExportByName(null, 'send') | |
var recvPtr = Module.findExportByName(null, 'recv') | |
var getaddrinfoFunction = new NativeFunction(getaddrinfoPtr, 'int', ['pointer', 'pointer', 'pointer', 'pointer']) | |
var connectFunction = new NativeFunction(connectPtr, 'int', ['int', 'pointer', 'int']) | |
var sendFunction = new NativeFunction(sendPtr, 'int', ['int', 'pointer', 'int', 'int']) |