Compare commits
3 Commits
stable
...
av/android
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89b44729e2 | ||
|
|
df1ee62184 | ||
|
|
0d2f52469c |
@@ -63,8 +63,11 @@ fun initHaskell() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
System.loadLibrary("app-lib")
|
System.loadLibrary("app-lib")
|
||||||
|
} catch (e: UnsatisfiedLinkError) {
|
||||||
|
System.loadLibrary("apppatched-lib")
|
||||||
|
}
|
||||||
s.acquire()
|
s.acquire()
|
||||||
pipeStdOutToSocket(socketName)
|
pipeStdOutToSocket(socketName)
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,15 @@ add_library( # Sets the name of the library.
|
|||||||
# Provides a relative path to your source file(s).
|
# Provides a relative path to your source file(s).
|
||||||
simplex-api.c)
|
simplex-api.c)
|
||||||
|
|
||||||
|
add_library( # Sets the name of the library.
|
||||||
|
apppatched-lib
|
||||||
|
|
||||||
|
# Sets the library as a shared library.
|
||||||
|
SHARED
|
||||||
|
|
||||||
|
# Provides a relative path to your source file(s).
|
||||||
|
patch.c simplex-api.c)
|
||||||
|
|
||||||
# Searches for a specified prebuilt library and stores the path as a
|
# Searches for a specified prebuilt library and stores the path as a
|
||||||
# variable. Because CMake includes system libraries in the search path by
|
# variable. Because CMake includes system libraries in the search path by
|
||||||
# default, you only need to specify the name of the public NDK library
|
# default, you only need to specify the name of the public NDK library
|
||||||
@@ -65,3 +74,13 @@ target_link_libraries( # Specifies the target library.
|
|||||||
# Links the target library to the log library
|
# Links the target library to the log library
|
||||||
# included in the NDK.
|
# included in the NDK.
|
||||||
${log-lib})
|
${log-lib})
|
||||||
|
|
||||||
|
|
||||||
|
target_link_libraries( # Specifies the target library.
|
||||||
|
apppatched-lib
|
||||||
|
|
||||||
|
simplex support
|
||||||
|
|
||||||
|
# Links the target library to the log library
|
||||||
|
# included in the NDK.
|
||||||
|
${log-lib})
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
extern int getentropy(void* __buffer, size_t __buffer_size)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
@@ -19,6 +19,8 @@ extern void __strcat_chk_generic(void){};
|
|||||||
extern void __libc_globals(void){};
|
extern void __libc_globals(void){};
|
||||||
extern void __rel_iplt_start(void){};
|
extern void __rel_iplt_start(void){};
|
||||||
|
|
||||||
|
int getentropy(void* __buffer, size_t __buffer_size);
|
||||||
|
|
||||||
// Android 9 only, not 13
|
// Android 9 only, not 13
|
||||||
extern void reallocarray(void){};
|
extern void reallocarray(void){};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user