cyanogenmod

Failed running an app as root

心不动则不痛 提交于 2019-12-08 03:22:30
问题 I made a filemanager that I want go be able to navegate/modify some system folders (say, /data/ ). I copied my apk to /system/app, gave 644 permission to the apk file, and rebooted. Yet, my app is still run without root privileges (deny simple access to /data ). I'm using Cyanogenmod 11. Any clue? Thanks! L. 回答1: To clarify, the app being in the /system/app folder does not run it as root . Android is linux based, so having root access means that your app is able to run shell commands as the

Device driver API match error

僤鯓⒐⒋嵵緔 提交于 2019-12-06 17:02:46
问题 I've installed cyanogenmod on my galaxy 3. When developing in Eclipse, most apps seem to work okay. However, I've written an app that needs to access the gallery and every time I try to access it the app crashes with this at log cat: 02-03 19:05:42.054: D/libEGL(10279): loaded /system/lib/egl/libEGL_mali.so 02-03 19:05:42.059: D/libEGL(10279): loaded /system/lib/egl/libGLESv1_CM_mali.so 02-03 19:05:42.059: D/libEGL(10279): loaded /system/lib/egl/libGLESv2_mali.so 02-03 19:05:42.064: E/(10279)

全新内存布局Android5 for one x

拜拜、爱过 提交于 2019-12-06 06:25:18
众所周知Android5.0默认ART模式,运行速度加倍,软件占用内存也加倍,我们one x这种元老机采用旧的内存布局,data空间2g ART模式下安装几个软件也就不够用了。最近逛国外的xda论坛,发现有大神通过recovery重新给one x分区,使得data空间和原sd空间合并,妈妈再也不用担心内存不足的烦恼了,加上全新的Android 5.0.2使我们的元老晚茶重获新生! 教程如下: 英文原文 Requirements: HTC One X International. 50%+ battery. You know how to flash a recovery. You know how to flash ROM and boot.img.To upgrade, follow these simple steps or use the detailed guides below:Make sure your adb/fastboot is up to date and working. Make sure you can transfer files with MTP (test before you start the transformation). 1.Backup everything in your phone that you want to keep.

Taking a picture from the camera fails 20% of the time

本秂侑毒 提交于 2019-12-06 04:57:02
问题 var camera = { settings : { quality : 50, targetWidth : 1024, targetHeight : 1024, correctOrientation : true } }; var error = function(message) { alert("Error happened while trying to get a picture", message); }; document.addEventListener("deviceready", function() { camera.toFile = function() { this.settings.destinationType = navigator.camera.DestinationType.FILE_URI; return this; }, camera.toBase64 = function() { this.settings.destinationType = navigator.camera.DestinationType.DATA_URL;

Making successful Bluetooth connections in Android

我的梦境 提交于 2019-12-05 18:37:04
I am mystified by two approaches to making BT connections in Android. This is what I have done for as long as I can remember, and it has worked from 2.3+ devices to early 4.x. This what the Android docs describe as well. private static final UUID sppUUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); bluetoothSocket = bluetoothDevice.createRfcommSocketToServiceRecord(sppUUID); bluetoothSocket.connect(); This has ceased to work on some newer Androids (Nexus 7 running 4.4), Cyanogenmod with this result (or similar): java.io.IOException: read failed, socket might closed or timeout,

Device driver API match error

天涯浪子 提交于 2019-12-04 22:33:30
I've installed cyanogenmod on my galaxy 3. When developing in Eclipse, most apps seem to work okay. However, I've written an app that needs to access the gallery and every time I try to access it the app crashes with this at log cat: 02-03 19:05:42.054: D/libEGL(10279): loaded /system/lib/egl/libEGL_mali.so 02-03 19:05:42.059: D/libEGL(10279): loaded /system/lib/egl/libGLESv1_CM_mali.so 02-03 19:05:42.059: D/libEGL(10279): loaded /system/lib/egl/libGLESv2_mali.so 02-03 19:05:42.064: E/(10279): Device driver API match 02-03 19:05:42.064: E/(10279): Device driver API version: 23 02-03 19:05:42

CyanogenMod or AOSP: Compile a single project

江枫思渺然 提交于 2019-12-04 19:04:15
问题 I am trying to MAKE / Compile a single AOSP project from the repository - specifically packages/apps/Email. Does anyone know how to do it? (I have no problem compiling the entire repository, but I really would like to be able to compile a single project as well). 回答1: If your environment has been configured by build/envsetup.sh in your android tree, you can run mmm [project_path] to build only a specific subproject. (This will require that you've built its dependencies from the tree before.)

Taking a picture from the camera fails 20% of the time

南楼画角 提交于 2019-12-04 09:51:45
var camera = { settings : { quality : 50, targetWidth : 1024, targetHeight : 1024, correctOrientation : true } }; var error = function(message) { alert("Error happened while trying to get a picture", message); }; document.addEventListener("deviceready", function() { camera.toFile = function() { this.settings.destinationType = navigator.camera.DestinationType.FILE_URI; return this; }, camera.toBase64 = function() { this.settings.destinationType = navigator.camera.DestinationType.DATA_URL; return this; }, camera.fromCamera = function() { this.settings.sourceType = navigator.camera

Android-Telephony application that keeps focus on incoming calls

筅森魡賤 提交于 2019-12-04 07:38:10
I am developing a custom telephony application that is able to receive calls. Using this code for handling the incoming call https://code.google.com/p/auto-answer/source/browse/trunk/src/com/everysoft/autoanswer/AutoAnswerIntentService.java Unfortunately my app loses focus on the incoming call. THIS was a partial solution for outgoing calls Android- Telephone app that keeps focus on outgoing & incoming phoneCall What about incoming calls? How do I keep focus in my custom app? I am guessing this might involve downloading and modifying the source code as simply accessing the SDK gives little

Android Bluetooth Connection Secure Insecure

夙愿已清 提交于 2019-12-03 03:53:17
I have been playing around with the bluetooth API for Android 2.2 (API level 8, HTC Desire) and had an app connecting to an embedded Bluetooth device using: device.createRfcommSocketToServiceRecord(DEV_UUID); This generated a pairing request as expected, however to streamline the connection process I wanted to avoid the user interaction when pairing so moved to API level 10 (HTC Desire with CyanogenMod 7) so I could use: device.createInsecureRfcommSocketToServiceRecord(DEV_UUID); When testing this also works as expected (connecting without prompting the user to pair), however when I try to