[Q] Unable to open stack trace. - Android Software Development

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.

Related

content:// as file

hello all
want to know if possible to read/write content://call_log/calls as stream or file with the terminal. i am root. binary serialized no problem
searched the source
searched google
searched this forum
searched the source
nothing found
please answer solution, please no ask why please or say its wrong what i try please
thx
If i use the browser address field i retrieve permission error android.permission.READ_CONTACTS because the browers apk has not defined
wget as root, only http ftp
curl not installed
i wonder if a binary stream wants download if the browser would have that permission, i learned in linux everything is a file
i also tried various export software from the store to export my list. no sd available. currently i have no chance except to use penciland paper.
please, if any have an idea if this is not too hard for real android developers
i wrote a short app, but thread might be still interesting for other users...!

[Q] Setting up IntelliJ

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)

[Q] Cifs/Mount Manager "Empty Folder"

Been trying to get this to work for hours, followed endless amounts of tutorials, I've hit a brick wall and am finally at the point I need to ask for more specific help.
I have 32gb Nexus 7 wifi only
Version: 4.2.1
Kernal: Motley's kernal 3.1.10-motley-v3+
Build Number:JOP40D
I started with CifsManager, couldn't get it to work because of no/wrong modules, tried many I found in tutorials around the net, eventually found I needed a new kernal, settled on Motley's, this finally allowed cifs to mount the folder, but the folder is always empty.
Came across Mount Manager, set it up, same problem.
Here's what my settings look like:
CifsManager:
Share Path: 192.168.1.18/y
Mount Point: /mnt/sdcard/cifs/pcY
Username: Comp1
Password: Password
Options: iocharset=utf8
I have tried it with options blank, same thing, yes my share is called y, Comp1 is the account I set up to access shares, no my password is not really password but you get the idea. I can access this share fine from other devices including my wii using the same settings.
Mount manager is basically the same except I made the mount point /compY because I didn't know if it would conflict, and it has file_mode and dir_mode = 0777.
Thank you for your time and any help is greatly appreciated.
Still searching for a solution, even a nudge in the right direction would help a lot right now.
I found out how chainfire solved this problem. (And did not said how ) I think my thread got lost ist the Android General section.... I should have posted it in the Nexus 7 General. (I tested it on my Nexus 7)
http://forum.xda-developers.com/showthread.php?t=2062768
vorcers said:
I found out how chainfire solved this problem. (And did not said how ) I think my thread got lost ist the Android General section.... I should have posted it in the Nexus 7 General. (I tested it on my Nexus 7)
http://forum.xda-developers.com/showthread.php?t=2062768
Click to expand...
Click to collapse
Thank you very much for your reply.
I am very new to this, I can't quite follow what I am supposed to do, I think start the file debuggerd as a system service? I can find the file, but I can't find out how to start it, I've done a few searches on this site and google but have come up empty, could you please explain exactly what I need to do to make this solution work?
Thanks again for your help
(For germans: "Bitte nagelt mich nicht darauf fest" (Auf die Informationen) Sorry, I don't know the english phrase for this...)
The "debuggerd" is an "debugger daemon". It can be started with "start debuggerd" and stopped with "stop debuggerd". I think errors at excecution are posted in dmesg or logcat.
The main thought behind this, that the debuggerd is started by "start" with higher privileges even then our normal su. (Or it does mount something, I don't know) So, if you backup the original /system/bin/debuggerd and write your own commands into that file and start it via "start debuggerd" these commands are executed with these "high privileges". For example, if you write these content in debuggerd and start it, the share should be available for all apps. (Well, only if "others" have r (? wx ?) permissions on server...)
/system/bin/debuggerd
Code:
#!/bin/sh
busybox mount -t cifs //server/share /mnt/sdcard/mnt -o username=max,password=mustermann)
You can also mount devices with this method...
Well, you can't use this with the manager, because the manager needs to be changed to support this.
I hope this helps you.
You can turn on your "ADB over network".Then you con connect from your device with
adb connect 127.0.0.1:5555
Click to expand...
Click to collapse
now youre ready to mount but the foders are visable only in the apps that are been started befour mount can see the folder.
Tornadough said:
Still searching for a solution, even a nudge in the right direction would help a lot right now.
Click to expand...
Click to collapse
Here's a solution that can be implemented by ROMs or kernels to fix app mount support in Android 4.2 without requiring modifications to CifsManager or other apps.
I'd recommend asking your favorite ROM to incorporate the dalvik/init.rc patches.
vorcers said:
The main thought behind this, that the debuggerd is started by "start" with higher privileges even then our normal su.
Click to expand...
Click to collapse
What's happening is that the debuggerd process is spawned directly by init, which uses the default mount namespace, so any mount operations are shared with/visible to all other processes.
The problem is that when an app calls "su" to mount a file system, it's already walled off in a separate mount namespace by virtue of the app itself having been spawned from zygote. Basically, any process whose ancestry can be traced back to zygote can't mount file systems visible to other apps. Those whose process ancestry don't include zygote can. Which is why manually mounting file systems from adb (with either "su" or "adb root") also works.
After all this time nobody has updated any app to fix this problem?

[Q] Building CM for Nexus 7 GSM weird errors...

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

debugging issue on Huawei Ascend P6

Hi there, hope I'm asking in the right forum. I'm desperately looking for a solution for about a week now.
The problem: whenever I debug any app on my new Ascend P6 (build B607), I see an annoying LogCat message marked as WARN and tagged with my package:
Code:
java.io.FileNotFoundException: /data/cust/xml/hw_launcher_load_icon.xml: open failed: ENOENT (No such file or directory)
This thing is somehow preventing any other logs from my app from being shown, so I'm just developing blind, since this crap is the only thing I see in the log after debugging any of my apps. What I've tried: rooting the device, using the adb shell to create this file but of course I don't know what should be inside, so now it's pretty much the same, though the XmlPullParser fails this time (sure, 'cause the file is empty). I've been searching all round the Internet, even on some Chinese forums, and I found many people describing the same situation but there never was a solution. Any ideas how to fix that?
the logcat part sorry no expertise in that Context
But for XML part try using a SAX parser like in Xeres the XML parser from Apache
Sent from my GT-S5302 using Tapatalk 2
sak-venom1997 said:
the logcat part sorry no expertise in that Context
But for XML part try using a SAX parser like in Xeres the XML parser from Apache
Sent from my GT-S5302 using Tapatalk 2
Click to expand...
Click to collapse
I guess you have misunderstood me The file the system is trying to parse has nothing to do with my projects, it's located in /data directory and normally u can't even access it.
To clarify: this is a system file for some reason not included in my stock firmware. Using root access and adb shell, I created this file in the mentioned directory, but of course it's empty. Thinking about contacting huawei support and asking them to provide me with this file I haven't even found anything where you can write to them ><

Categories

Resources