зеркало из https://github.com/mozilla/Negatus.git
first commit, need to get cpp working on b2g
This commit is contained in:
Коммит
e3cdf429b0
|
@ -0,0 +1,7 @@
|
|||
AGPP=$(NDKPATH)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-g++
|
||||
CFLAGS=--sysroot $(NDKPATH)/platforms/android-9/arch-arm -fPIC -mandroid -DANDROID -DOS_ANDROID -fno-short-enums -fno-exceptions -lstdc++
|
||||
FILES=SUTAgent.cpp
|
||||
LDIRS=-L$(NDKPATH)/platforms/android-9/arch-arm/usr/lib
|
||||
|
||||
agent:
|
||||
$(AGPP) -v $(LDIRS) $(CFLAGS) $(FILES) -o agent
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include <vector>
|
||||
|
||||
//using namespace std;
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
// std::cout << "Hello, world!" << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
rm agent
|
||||
make agent
|
||||
$ADB shell "rm /data/local/agent"
|
||||
$ADB shell "rm -rf /data/local/tests"
|
||||
$ADB shell "rm -rf /data/local/tmp*"
|
||||
$ADB push agent /data/local
|
||||
$ADB shell "/data/local/agent"
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
wget http://busybox.net/downloads/binaries/1.19.0/busybox-armv6l
|
||||
$ADB remount
|
||||
$ADB push busybox-armv6l /system/bin/busybox
|
||||
|
||||
$ADB shell 'cd /system/bin; chmod 555 busybox; for x in `./busybox --list`; do ln -s ./busybox $x; done'
|
Загрузка…
Ссылка в новой задаче