Sorry, I originally posted this into the wrong category.
Hi all,
I have searched Google and this forum but cannot find a solution to a problem that I thought would be a little more common.
I have created an application from a guide in a book I am reading but when I try to run the app in the AVD I receive the following error:
Code:
The application ****** stopped unexpectedly. Please try again. FORCE CLOSE
This is not much help so I looked into logcat and found the following error:
Code:
E/dalvikvm( 493): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
I don't know if this is the cause of my problem or maybe a second problem. I am running the AVD on Linux and there is no /data directory in the root of the filesystem. I (relucantly) created the directories in questions and set the permissions to 777. However this has not resolved the problem.
Is anyone able to help me understand what these errors mean?
Thanks.
Haya guys, I have had to start using IntelliJ to make my apps because Eclipse has been giving me the good old "R cannot be resolved to a variable" error (of witch I have done all fixes for and I still keep getting it) and I could no longer test my code using it. So i found on the internet a post suggesting to use IntelliJ, I have set it up as best as poss how ever when i click the run button, i get the following errors:
Compilation completed with 15 errors and 0 warnings
invalid resource directory name: C:\Program Files\Android\android-sdk-windows/add-ons
invalid resource directory name: C:\Program Files\Android\android-sdk-windows/docs
ect ect ect
I think i see the prob its using a "/" and not a "\" (running windows). Any I else use this program, and would be kind enough to tell me how to fix it?
(or if any knows as to why Eclipse gives that error)
Hi all -
Apologies if this is a stupid question. I'm trying to create an app that has the protected 2 level DEVICE_POWER permission. Is this possible without having a full-blown Custom ROM?
Things that I have tried:
1) Move apk from data/app to system/app [in packages.xml the app is then classified as system="true" but isn't allowed to get the permission]
2) In packages.xml, manually hack the certs line to be the same as a system app that does have the DEVICE_POWER permission
3) try to hack the file in /system/etc/permissions to add another gid to DEVICE_POWER or the uid of the app that I'm running
4) tried to re-sign the framework-res.apk and the other other system apk's with the same cert with the AOSP platform key [although google does seem to sign some apps with that key, B&N seems to have done the "right" thing and not signed everything with the platform key]. Just gets caught in a bootloop
In the devicemanager.db under /data/data/com.android.providers.settings/databases, in the registry table, it does show the hash of the system's private key ... wasn't sure if I could do anything with that though.
Someone created a custom screensaver that puts the cover of the book you're reading as screensaver and modified the Settings.apk to do so. I don't quite get how he was able to do that and still have the signature remain intact?
Thanks for the help!
AFAIK you have to build a custom ROM to do this.
Yeah I think so too, apps wanting that permission need to be signed with the platform key afaik.
Can you please give me a hand with building my CM for the Nexus 7 GSM?
I have a number of problems.
When running "brunch tilapia" as specified in the CM tutorial for building for the Nexus 7 GSM, I get the following errors:
I don't get a zip file output in the "out" Directory
I am getting the following errors:
/bin/bash: flex: command not found
Warning: assignment from incompatible pointer type [enabled by deafult]
13: warning: extra tokens at end of #ifdef directive [enabled by default]
warning: 'fin' may be used uninitialized in this function [-Wmaybe-uninitialized
warning: implicit declaration of function 'read_all' [-Wimplicit-funtion-declaration]
You are attemtping to build with an unsupported version of java.
find: 'src' : no such file or directory
No private recovery resources for TARGET_DEVICE tilapia
Please help!
I tried wiping and re-installing, wiping the repo and re-initializing that.
I followed all the steps I believe, must just be unlucky.
Peace,
shandy1996
Perhaps you know this, but there is a thread for building cm10.1 for the n7 here: http://forum.xda-developers.com/showthread.php?t=1846651.
Some of the warnings you have listed are normal and are nothing to worry about. However, it looks like you are missing the package flex, so try 'sudo apt-get install flex', depending on what Linux distro you are using, then try again.
Thanks, but still one quiestion...
Why do I not get any .zip file output?
I am not sure as to why this is, but an answer would be much appreciated.
Thanks for you help, hopefully i can sort it out
Peace and thanks again,
shandy1996
It's because the build aborts as soon as it realizes that a required build package is missing. In a way it's kind of an all or nothing thing... you don't get a zip package until you have everything in place and set up properly.
Did you try installing the package 'flex' as suggested? I'm not positive, but that might be the issue, unless there are other errors or missing packages.
Also, have you posted in the thread on building cm10.1? You would probably get more help there!
I installed flex and it solved that error, but still no zip output.....
Ok ,what did it say at the end when it stopped? Also, what version of Linux are you using and what guide are you following? The guide linked in the other thread works great.
I used the guide on the CyanogenMod wiki for building for the Nexus 7 GSM.
I am running Ubuntu 12.10 64-bit.
The error i get at the end of the build process is:
Code:
make: *** No rule to make target 'vendor/asus/tilapia/proprietary/tf_daemone', needed by '/home/jacob/androis/system/out/target/product/tilapia/obj/EXECUTABLES/tf_daemon_intermediates/tf_daemon'. Stop.
ah ok, i had this exact same issue, i think it might be an internal thing, not your fault. for some reason the file tf_daemon seems to be missing, so someone suggested manually placing it in the proper place. i was directed to find the file here: https://github.com/AOKP/vendor_asus_grouper/tree/jb/proprietary/bin. so i downloaded it and put it in the folder /vendor/asus/tilapia/proprietary, and this problem was solved
Hi all,
i am kinda new here, so this might not be the best section to post such topic, so if there is more appropriate section would be good if moderators would move it there.
Now lets go to the problem:
I have downloades master revision of AOSP from git. Compiled all OS source in linux. After that compiled native/cmds/screenshot source with mmm command, just before compiling changed so that it would produce me shared library with .so extension instead of executable.
This way I got predefined shared library which I attached to hello-jni sample app from android-ndk-r10.
Everything compiled and built in eclipse without any errors, and I install that app on physical device (tried on samsung galaxy s2 with android 4.1.2 and samsung galaxy s5 with android version 4.4) Everything here is still ok, but if i try opening that app i am getting such error:
Code:
08-08 15:32:33.832: E/AndroidRuntime(12001): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]: 1694 cannot locate '__strrchr_chk'...
and this happens when i try loading that screenshot library with such code:
Code:
static {
System.loadLibrary("screenshot");
}
If anyone has had similar problems or have any ideas what might be wrong, I am happy to hear it.