Skip to content

Instantly share code, notes, and snippets.

View paschalis-mpeis's full-sized avatar

Paschalis Mpeis paschalis-mpeis

View GitHub Profile
@deltheil
deltheil / pname.c
Created April 3, 2012 10:59
Android Native API (JNI): get the device name
#include <stdio.h>
#include <string.h>
#include <sys/system_properties.h>
/* Get device name
--
1/ Compile with the Android NDK Toolchain:
arm-linux-androideabi-gcc -static pname.c -o pname
2/ Transfer on device: