ndk

  1. M

    Thread Compile and flash stock rom?

    Hi, I have a kernel module that I compiled using the kernel source provided by Xiaomi, unfortunately I can't load the modules since it's not signed with Xiaomi's key so I want to compile my own kernel with module signature disabled so i can load my module. I've tried to compile the kernel source...
  2. M

    Thread [Q] Compile the badblocks tools for armv7

    Hi guys, I would check the badblocks in my android with the badblocks tool, but I cant found the binary for my: :o My pc SO is a debian jessie of 64 bits. :D Note: I want not use e2fsck neither fsck.... I would like check it through of badblocks How could compile or get it (the badblocks...
  3. K

    Thread Building OpenCL applications with NDK? What phones can support it?

    Does anyone know what phones support OpenCL so that I could build OpenCL applications with NDK for android? In particular I am interested in speeding up SQLite with something that was done in this blog: https://fullshovel.wordpress.com/2014/03/19/opencl-accelerated-sqlite-on-arm/ At the moment...
  4. K

    Thread Building lz4 compression util for Android's ADB?

    Does anyone have a build of lz4 compression or could explain to me how I can build it with NDK for Android? I want to run this compression utility from ADB on my phones (OnePlusOne and Galaxy S7). I found lz4 source code here: https://android.googlesource.com/platform/external/lz4/ Apparently...
  5. A

    Thread [GUIDE/MOD] DNSCrypt for AArch64 (ZIP) (2016/03/17)

    NOT SYSTEMLESS! This writes to system, so systemless master race stay away. Someone wanna make a Magisk version? Instructions: 0. Download zip below and place inside internal storage. 1. Boot to TWRP. 2. Mount>System 3. Flash zip 4. Boot to Android and open a terminal emulator 5. Run dnscrypt...
  6. S

    Thread How to run a simple C executable on SM-N900P

    I need to learn how to compile and run a simple C source file on this platform. I have downloaded different NDKs and I have a copy of the build environment for this platform. What I do not know is as follows: - Is there a specific folder I need to use in the build environment to put my file in...
  7. V

    Thread [Completed] [Q] IntelAtom ZenFone 5 Kernel compilation

    Hello everyone. Im struggling with compiling kernel for ZenFone 5 ( A500CG ) with intel Atom on board. Every guide on the net is about arm devices so basically i dont know which cross_compiler should be pointed using NDK R10. Also i cannot pull out config.gz from my android device ( file simply...
  8. S

    Thread [Q] Frequency Lock

    I am looking at field test tools and many say they can do RAT, band, frequency locking. For example, even a small company like this: http://www.azenqos.com/ New compatible phones: Google (LG) Nexus 5 (with LTE PCI Cell Locking and more), Samsung S5 (beta), Sony Xperia Z1 compact, Sony Xperia...
  9. M

    Thread [Q] Which toolchain version to use for kernel compile

    Hi All, Am trying to compile a nexus 7 2013 kernel, (am very new to kernel) by using various threads in this forum, but some time i can see that choose correct version of toolcchain, when i downloaded the NDK, i can see some versions 4.4.6/9 etc, so should i check for specific version...
  10. A

    Thread [Q] Nexus 4, Kitkat, android NDK can't access bluetooth

    Hello fellow developers, I'm trying to access bluetooth trough ndk on kitkat, but keep getting errors. Sample code I'm using. int fd = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); if (fd < -1) { sprintf(buff, "socket(...) error: %s", strerror(errno)); return...
  11. Holmes.Sherlock

    Thread [Q] Selecting a platform in Android NDK

    Among the platforms available in Android NDK, e,g. android-3, android-17, android-19 etc, how do I select a specific one while building the application?
  12. P

    Thread /dev/uinput Mouse/TouchScreen Controls

    I am working on a native library that creates 2 virtual input devices with /dev/uinput. 1 is a keyboard and the other is mouse. I have the keyboard working perfectly, but I am having a hard time with the mouse. The library is a part of a remote control application I am working on that has a...
  13. M

    Thread SDK or NDK w/o OpenGL in app to save battery?

    I would like to develop and app, which has the main functionality to show a 2D chart. There are others and settings, but this is the main. Existing similar applications aren't using technologies as how it should and they are releasing apps with to few features or they are draining battery like...
  14. S

    Thread [Tool]Strace using NDK

    Hi all, After a week's fight, I've managed to compile dynamically linked strace 4.6 binary (not the latest which is 4.8) using the NDK r8c. This is for people who don't want a static compiled binary or are uncomfortable with static binaries compiled with codesourcery toolchains. There are 3...
  15. L

    Thread [TOOL] Nbench for Android

    Hi! Just released Nbench 1.1. Android NBench is a native port of BYTE's BYTEmark CPU benchmark. The benchmark was designed to expose the capabilities of a system's CPU, FPU, memory and C compiler performance. Supports Arm v5, Arm v7, x86 and Mips32 CPUs. Only a SINGLE core is benchmarked...
  16. W

    Thread [SCRIPT][NDK] agcc wrapper mod for latest Android NDK

    Here is an update to 'agcc' wrapper originally written by Andrew Ross. You can find his original version here. Modded/Updated agcc Helps you to quickly compile native C code for ARM, MIPS or x86 targets. I updated 'agcc' to try out a few existing exploits on Android, in hope of finding a few...
  17. C

    Thread [Q] execute “su” failed in my fully rooted Android device

    while i add this line to my code Process process = Runtime.getRuntime().exec("su -c"); or Process process = Runtime.getRuntime().exec("su"); trying to run the"su" command, process.exitValue() returns 1 which means fail. This happens to my one Android device while my the other rooted...
  18. C

    Thread [Q] Grant the root privilege to the application

    Hi Developers, I have an application which consists of the native part and higher layer. Therefore, it needs to be granted the root privilege to run some native functions. As the article I post before, I added a piece of code taken from Bluez Utils(hidd.c). <code> if (bind(sk, (struct...
  19. G

    Thread [Q] help with ndk build

    hello guys, I need to use a native library in my app but with all the ways I've tryed to build it, I get the following warning:10-11 10:33:51.095: WARN/dalvikvm(337): No implementation found for native L(path to my activity);.Init (Ljava/lang/String;IIIII)I and then the error10-11 10:33:51.115...
  20. T

    Thread [Arch Linux] Android SDK, NDK, Eclipse, ADB Auto-Installer

    ** I would really like to hear your results on if the script was successful or not and if you have any errors so that I can try and work out the bugs that the script may have. I am new to Arch Linux and working from a fairly barebones system. I believe I will have most of the dependencies...
  21. seanw.org

    Thread [Q] UnsatisfiedLinkError exception?

    I've been sent an anonymous crash report that my app crashes on an HTC HD2 device. I don't know if it happens on every HTC HD2 but I haven't had a similar report from any other phone type. Here's the app if anyone feels like testing it (the report indicates the crash happens when you press the...
  22. P

    Thread [Q] Missing libOpenSLES.so and libwilhelm.so

    So... I've been tooling around with my updated Tab 10.1 LE from IO and just updated to the 3.1 OTA -- it's missing libOpenSLES.so and libwilhelm.so (/system/lib). These libraries among other missing ones are required by the Google CTS documentation. Did anyone buy a Tab 10.1 at bestbuy on the...
  23. D

    Thread [Q] porting Snort on Android

    Hello all, Is there a way to port Snort to Android OS? I have already ported libpcap to Android and I have made some simple native sniffers which worked perfectly.To do this, I used the NDK development kit that offers you some tools for cross compiling C programs to ARM architecture. Is this...
  24. N

    Thread [Q][Froyo][ndk]Subversion Building and Installation of Shared Libs

    Disclaimer: This post is unstructured and may be missing crucial info because of that. Please point out the glaring errors and omissions. Background: Phone: Huawei Ideos U8150 (Aircel India branding) OS: Stock 2.2 original firmware (Build number: U8150V100R001C234B832SP02) Root: Z4Root temporary...
  25. D

    Thread [Q] libpcap static linking errors

    Hello, I have downloaded the libpcap in external folder from android source code using the Git and repo. I used the toolcains of ndk (android-ndk-r5b) to compile the library following these steps: ./configure --prefix=path-to-android-src/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin...
  26. E

    Thread [Request] Improved Logging on Atrix

    Hi, Back on the Nexus One I had CM7 and on that I would get more detailed log calls for native processes that crashed ( usually segfaults ). These were very nice and useful when doing android development and it would be great if someone could add this to the Atrix somehow. Thanks!
  27. ashok_jeev

    Thread [Q] How to write drivers for Android?

    Hi guys i have been trying to know about android driver development.. i know driver development is not an easy job but i'd like to learn.. Is there any tutorials for that or any simple examples??
  28. ashok_jeev

    Thread [Q] How to write drivers for Android?

    Hi guys i have been trying to know about android driver development.. i know driver development is not an easy job but i'd like to learn.. Is there any tutorials for that or any simple examples??
  29. G

    Thread [Q] get link quality

    Hi, I'm writing an application on android, and for a long time I'm trying to get the lq(link quality) value of an existing bluetooth connection between two mobile phones. I've read on a forum about a method named getLinkQuality() included in the Bluez API written in C, and I want to include it...
  30. AlexRamallo

    Thread [Q] Game development with the ndk

    I recently read an article that talked about android development, particularly video games. It recommended that the ndk be used for performance critical games or developers who prefer C++(which I do) My question is willmy games work on all abroad phones or just the one I'm using for...
  31. C

    Thread Play Audio on Active Call

    I'm trying to find a way to play PCM audio on an active phone call. The Java API is not capable of doing this, so I'm now going through the native approach by using the AudioHardwareInterface that is exposed by the libaudio.so library. Before I move forward, I wanted to check if anyone...
  32. T

    Thread Modifying a native shared library

    Hi, I'm trying to modify the internal native Skia libraries and I'm facing some difficulties. Below is related to Donut r2 (branch donut-release2). I cloned the relevant branch of Skia and the projects it depends on from the git repository. Initially I tried cloning and modifying the build.git...
  33. E

    Thread Android NDK usage

    Hey there, I'm kinda new to android and coding in general, but I was wondering if someone could answer a few questions I had about the android NDK, preferably by someone that has actually used it. 1. How big of a performance boost could I get by using the NDK with a program that is currently...