aboutsummaryrefslogtreecommitdiff
path: root/libshims/libsonycamera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libshims/libsonycamera.cpp')
-rw-r--r--libshims/libsonycamera.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/libshims/libsonycamera.cpp b/libshims/libsonycamera.cpp
deleted file mode 100644
index 8d759fe..0000000
--- a/libshims/libsonycamera.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <cutils/log.h>
-#include <sys/types.h>
-#include <dlfcn.h>
-#include <string.h>
-
-// Unlock all Sony parameters
-extern "C" {
- int property_get(const char * key, char * value, const char * default_value) {
- if (strcmp("ro.build.type", key) == 0) {
- strcpy(value, "eng");
- return 3;
- }
-
- return ((int( * )(const char * , char *, const char * ))(dlsym((void * ) - 1, "property_get")))(key, value, default_value);
- }
-} \ No newline at end of file