[android-porting] Re: Debugging Dalvik start-up / JarVerifier problem on x86-64 Linux build

2011-07-08 Thread fadden
On Jul 7, 10:50 am, Stephen Kell sr...@srcf.ucam.org wrote: #0  0x00ad97fb in dvmChangeStatus (self=0xf0d057d8, newStatus=THREAD_RUNNING)     at dalvik/vm/Thread.c:3160 #1  0x00ab0bb5 in dvmDbgThreadContinuing (status=1) at dalvik/vm/ Debugger.c:502 #2  0x00afb823 in dvmJdwpPostThreadChange

[android-porting] Re: Debugging Dalvik start-up / JarVerifier problem on x86-64 Linux build

2011-07-06 Thread fadden
On Jul 5, 4:53 am, Stephen Kell sr...@srcf.ucam.org wrote: If I break the dalvikvm in gdb before it does Check_CallStaticVoidMethodV, then attach jdb and resume both, I get the following. E/dalvikvm(26824): ASSERT FAILED (dalvik/vm/Thread.c:3160): oldStatus ! = THREAD_RUNNING You may be

[android-porting] Re: heap error while using traceview

2011-06-02 Thread fadden
On May 31, 12:21 am, venkatesh yadav avyadavn...@gmail.com wrote: But i am getting this error: C:\Documents and Settings\testtraceview c:\preloadclss.trace Exception in thread main java.lang.OutOfMemoryError: Java heap space Can anyone tell me how to resolve this and get the traceview. That

[android-porting] Re: JVM

2011-04-08 Thread fadden
On Apr 7, 10:17 pm, freakingtux kees.jongenbur...@gmail.com wrote: Somebody else was kind enough to send me an email about dexopts. Basically in some situation it is possible to already replace the byte code into optimized dex inside the apk. Documentation can be found in the dalvik

[android-porting] Re: Native supported processor architecure

2011-03-31 Thread fadden
On Mar 31, 4:57 am, Dudero sinfanh...@googlemail.com wrote: which are the native supported processor architecures of official AOSP. Is it an ARM with ARMv5TE or ARMv7-A instruction set - or is it just an issue of optimization, so that generally all ARM processors =ARM9 are supported?

[android-porting] Re: Compiling dalvik separately from android

2011-03-22 Thread fadden
On Mar 22, 2:32 am, Aditya Mertia aditya.mer...@gmail.com wrote: I want to know how to compile dalvik vm separately in the android build process. Basically are there any file modifications with which i can decouple other modules from the compilation process and generate only dalvik vm

[android-porting] Re: Dalvik execution mode

2011-02-14 Thread fadden
On Feb 14, 1:08 am, lavanya lavavis...@gmail.com wrote: Can anyone brief the difference between fast and JIT dalvik execution mode? One is interpreted, the other uses just-in-time compilation as well. I'm using WITH_JIT =true, dalvik.vm.execution-mode = int:jit and arm5te-vfp arch. What

[android-porting] Re: standalone dalvik

2011-01-26 Thread fadden
On Jan 25, 7:07 am, Pawel Kolodziej p.kolodz...@gmail.com wrote: Is there any easy way to build only standalone dalvik virtual machine? There was dvk project (http://code.google.com/p/dvk/) sometime ago but it's outdated now. In gingerbread, a host-executable copy of Dalvik is part of the

[android-porting] Re: Native code segfault on Tegra2

2010-12-17 Thread fadden
On Dec 17, 8:36 am, Howard M. Harte hhar...@gmail.com wrote: I'm running the code from adb shell. There is no stack backtrace in the logcat.  Is it possible to run gdb on code from the adb shell? One way in which you can get a native crash without a debuggerd stack trace is a native stack

[android-porting] Re: Android application with JNI Libs build into system.img ?

2010-10-28 Thread fadden
On Oct 28, 4:19 am, Eric sen...@gmail.com wrote: But if I use adb install vendor.apk afterward, the package manager will unpack vendor.so correctly, that means the vendor.apk is working fine. So is it not appropriate to pack Android App with JNI libs inside system applications? No. The

[android-porting] Re: How to use system () call

2010-10-22 Thread fadden
On Oct 22, 10:11 am, neeloor2004 neeloor2...@gmail.com wrote: I am doing the following  but not working r= system ((\system\bin\mydaemon) What does the actual line look like? i.e. does it have the '(' at the start, and use backward slashes? -- unsubscribe:

[android-porting] Re: Memory leak in native code using DDMS

2010-09-21 Thread fadden
On Sep 21, 4:28 am, Nand nandithab...@gmail.com wrote: I want to find memory leaks in native code. The thread below gives some information about the same. I added native=true in ~/.android/ ddms.cfg and started the stand alone DDMS (in windows ) and I'm also able to see Native Heap tab in the

[android-porting] Re: Building 64-bit x86

2010-09-13 Thread fadden
On Sep 12, 1:02 pm, Jean-Marc Spaggiari jean-m...@spaggiari.org wrote: I tried to build Android under a64-bit linux debian and it was not working. FWIW, there is now a mailing list for build issues: http://groups.google.com/group/android-building -- unsubscribe:

[android-porting] Re: Android building for ARMV6

2010-09-07 Thread fadden
On Sep 6, 2:07 am, Uhrenfeldt Henrik henrik.uhrenfe...@ixonos.com wrote: An ARMv6 device should be able to execute ARMv5 code, so unless your goal is to actually leverage the added benefits of the ARMv6 architecture, you could just stick with the ARMv5 build... I think the only meaningful

[android-porting] Re: My presentation analyzing Android bootup time

2010-08-19 Thread fadden
On Aug 18, 4:59 pm, Dianne Hackborn hack...@android.com wrote: Oh!  Yes I was thinking about something completely different.  This sounds like a great optimization. :) FWIW, the way Zip files are handled has already been changed post- Froyo. We now initially only mmap() the central directory

[android-porting] Re: Adding a new Java SSL Provider

2010-08-03 Thread fadden
For anyone searching the group, more about this can be found here: http://stackoverflow.com/questions/3391643/android-jni-system-loadlibrary-not-needed/ -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: Compile problem, possibly porting issue

2010-07-09 Thread fadden
On Jul 9, 1:38 am, folone fol...@gmail.com wrote: I did everything in accordance with this tutorial:http://source.android.com/source/download.html. But $make fails with an error: host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) /usr/bin/ld: skipping incompatible

[android-porting] Re: porting dalvik doesn't needs emulator?

2010-07-07 Thread fadden
On Jul 2, 1:42 am, xliu navy.x...@gmail.com wrote: we are planing to port dalvikvm to a new cpu.  we're worry about emulator issue because clearly qemu doesn't support own homebrew cpu. so i took a dirty investigation on the relationship between qemu- emulator-dalvik.  could you go through my

[android-porting] Re: Porting DVM

2010-07-01 Thread fadden
On Jul 1, 9:24 am, Srikant w.sreeka...@gmail.com wrote: I find there are some .jd files present in the docs folder of Android. How to use/read them? I don't know offhand; I generally let the tech writers worry about that. :-) -- unsubscribe: android-porting+unsubscr...@googlegroups.com

[android-porting] Re: Porting DVM

2010-06-30 Thread fadden
On Jun 30, 10:34 am, Srikant w.sreeka...@gmail.com wrote: Dalvik porting guide is available at: 1. Dalvik/docs/porting-guide.html ??? 2.http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=d... dex file format saves space than class jar files: look at below link for more

[android-porting] Re: option to disable Trace-Jit for interested application on non-rooted phone

2010-06-08 Thread fadden
On Jun 7, 7:46 am, Chen Yang sunsety...@gmail.com wrote: Is there any known good approach to disable the trace-jit for installed application on non-rooted phone? Setting android:vmSafeMode to true in the app's manifest will disable the JIT for that app. dalvik.* system properties can't be

[android-porting] Re: ANR error in NATIVE

2010-06-04 Thread fadden
On Jun 4, 3:10 am, jordan lulujor...@126.com wrote: hi,everybody,I have some problem when porting eclair to my hareware.it seem to be ANR error,but i have not solution for it.can you give me some advise.thanks at all. ... I/Process ( 1813): Sending signal. PID: 1813 SIG: 3 I/dalvikvm( 1813):

[android-porting] Re: Development and debugging tools

2010-04-29 Thread fadden
On Apr 29, 12:43 pm, Sanra snarr...@gmail.com wrote: 1. How to generate a Full Java stack trace (basically thread stack) in Android. In J2SE, we use something like this -  send a signal to the JVM; the JVM generates a stack trace for you; or we can also use debugging tools or Java API calls

[android-porting] Re: Dalvik test cases failure

2010-04-09 Thread fadden
On Apr 8, 1:49 am, Rakesh Kumar rakesh.y...@gmail.com wrote:    I am trying to run the dalvik test cases on the desktop using the script run-all-tests.    And I am getting this error   /usr/bin/dx : unrecognized parameter:  [1]  (use -help to get usage information)  build exit status: 1

[android-porting] Re: killpg implementation missing in bionic signal.h

2010-04-09 Thread fadden
On Apr 7, 3:44 pm, Kaushik Prajapati kaushikprajap...@gmail.com wrote: I am trying to build the third party source code using the Android bionic toolchain. One of the problem that I see is that there is no killpg in side signal.h . A future version of bionic libc will provide killpg(). You

[android-porting] Re: java.lang.VerifyError and custom library sdk addon

2010-04-09 Thread fadden
On Apr 7, 2:26 pm, MBethDev mbeth...@gmail.com wrote: I've googled around for the solution and sounds to me it has something to do with the jar file inclusion of the custom library to my application.  I verified that I followed the steps that the app client should do (I added a user-library in

[android-porting] Re: LOGV

2010-03-18 Thread fadden
On Mar 17, 9:33 am, André Barbosa afilipebarb...@gmail.com wrote: I'm running the mediaplayer of android and i would like to see the LOGV generated by mediaplayer, but they do not appear in logcat. these logs are stored in a file? how can I debug them? LOGV statements are compiled out of

[android-porting] Re: dexopt BUS error , optimization failed

2010-03-02 Thread fadden
On Mar 1, 10:27 pm, dhananjay dhananjayingr...@gmail.com wrote: V/dalvikvm(  368): +++ dvmAddClassToHash 'Ljava/lang/ClassLoader; V/dalvikvm(  368): THROW 'Ljava/lang/VerifyError;' msg='java.lang.Class' cause=(none) V/dalvikvm(  368): +++ dvmAddClassToHash 'Ljava/lang/VerifyError;' 0x0

[android-porting] Re: anyone interested in ThumbEE port of Dalvik?

2010-03-01 Thread fadden
On Mar 1, 4:22 am, The Alchemist kap4...@gmail.com wrote: I'm wondering if someone could clear up for me whether a Dalvik port to ThumbEE would be of any benefit, especially when it comes to startup application performance, before the JIT kicks in. Not likely. First, the meaning of a couple

[android-porting] Re: Issue after adding a new jar's path to BOOTCLASSPATH in init.rc

2010-02-26 Thread fadden
On Feb 26, 8:58 am, Tiger netiger198...@gmail.com wrote: After adding my audio.jar's path to BOOTCLASSPATH in init.rc, Zygote got an error and crashed:     I/dalvikvm(  823): DexOpt: not all deps represented     E/dalvikvm(  823): /system/framework/audio.jar odex has stale dependencies The

[android-porting] Re: variable parameter function problem

2010-02-02 Thread fadden
On Feb 1, 8:44 pm, sanju kg.sanje...@gmail.com wrote: -0x10... if you guys find any problem with code please let me know, any suggestions and pointer are welcome ... De-obfuscating it with a focus on varfunc() yields: str is a 30-byte buffer allocated on the heap str1 is a 30-byte buffer

[android-porting] Re: CLASSPATH setup in Android

2010-01-12 Thread fadden
On Jan 11, 6:00 am, Santosh santo...@googlemail.com wrote:         I have a library that I want to put in CLASSPATH. Init.rc has a variable 'BOOTCLASSPATH' and if I setup there, it works fine but it's not advisable. Can anybody know how to setup CLASSPATH in android please? To what end?

[android-porting] Re: Porting Dalvik in Eclair

2009-11-23 Thread fadden
On Nov 20, 2:41 pm, Raghu Gandham raghu.gand...@gmail.com wrote: Is there a readme to port Dalvik in Eclair to other Architectures (say MIPS) ? dalvik/docs/porting-guide.html in the source tree: http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/porting-guide.html;hb=HEAD

[android-porting] Re: Downloading and using .so on the fly

2009-11-10 Thread fadden
On Nov 9, 10:49 pm, Vishal C vishal2...@gmail.com wrote: 1. Will the application have to be restarted in this case too? No. If you're explicitly loading the library, it should work. 2. Does the native code have access to the applications lib directory? If not, then the downloaded file will

[android-porting] Re: sigsuspend() hang-up

2009-11-10 Thread fadden
On Nov 9, 10:18 pm, Shankar Ganesh shankargane...@gmail.com wrote: Here, SIGIO is received by signal handler, but my user-space process (open core decoder node process) is hanged and never wakes-up and hence blocked within sigsuspend() . Can anyone throw some ideas if you have faced similar

[android-porting] Re: VM heap allocation limit

2009-11-10 Thread fadden
On Nov 9, 6:35 pm, Zia zia.cha...@gmail.com wrote: Thanks. So to confirm that in 1.5, there is no way to modify the VM size limit (16MB) for a custom platform? For a custom *platform*, you can edit frameworks/base/core/jni/ AndroidRuntime.cpp and change the -Xmx16m to something else. --

[android-porting] Re: Downloading and using .so on the fly

2009-11-09 Thread fadden
On Nov 9, 12:41 am, Vishal Choudhary vishal2...@gmail.com wrote: 1. Can the downloaded .so be placed in /system/lib? No. 2. If not, can it be downloaded to some other folder (say /data/advapp/), and if yes, how can the application refer to it? Every app has a lib directory into which shared

[android-porting] Re: Memory overcommit

2009-09-15 Thread fadden
On Sep 14, 4:57 pm, David Given d...@cowlark.com wrote: If I was going to have overcommit enabled, I'd much rather have the allocation failures exposed to the application in the form of the appropriate signal when the application fails to access the page. [...] Incidentally, does Android use

[android-porting] Re: undefined reference to `semop`

2009-09-10 Thread fadden
On Sep 9, 11:53 pm, max max.xi...@gmail.com wrote: When I compile one library, it reports undefined reference to `semop` System V IPC operations are not supported by the bionic libc, because most of the System V IPC operations are badly designed. If you really need to use them, you can define

[android-porting] Re: WARN/dalvikvm(990): No implementation found for native Landroid/os/SystemProperties;.native_get (Ljava/lang/String;)Ljava/lang/String;

2009-09-08 Thread fadden
Two things need to happen: (1) The necessary shared libraries need to be loaded. (2) The various native methods need to be registered. In frameworks/base/core/jni/AndroidRuntime.cpp you can see AndroidRuntime::startReg(), which takes care of registering the native methods associated with the

[android-porting] Re: GLES applications sometimes crashes (SIGSEGV), fault addr 00000150 after turning screen off/on

2009-09-01 Thread fadden
On Sep 1, 12:58 am, mik...@tat mikael.sollenb...@netville.se wrote: To reproduce this crash we ran the APIdemos application on the dev phone, navigated to Graphics-OpenGL ES, and started the Kube application (any app in that menu will do). Then, in a very rapid fashion, press the Off button

[android-porting] Re: What is DISABLE_DEXPREOPT ?

2009-08-31 Thread fadden
On Aug 31, 3:57 am, Victor vkrugli...@gmail.com wrote: Who knows, what is DISABLE_DEXPREOPT parameter managing? What for used dexpreopt feature? What is this useful/useless for? Certain builds create .odex files in the system image. This parameter relates to that. You can see what it does by

[android-porting] Re: How an op code of interpreter of Dalvik VM operate

2009-08-27 Thread fadden
On Aug 26, 7:55 am, Mercury bao...@gmail.com wrote: I do not understand the above algorithm and the meaning of every lines code that implement op code invoke static for ARM assembler Some things are defined with C pre-processor macros in mterp/armv5te/ header.S. For example, rIBASE is the

[android-porting] Re: getting Java Exception, libmedia_jni.so already loaded

2009-08-25 Thread fadden
On Aug 23, 5:37 am, mike letusliv...@gmail.com wrote: I am trying to port Android 1.5 on OMAP 35X EVM board. I getting the following error during boot up Nothing you posted looks like an error. --~--~-~--~~~---~--~~ unsubscribe:

[android-porting] Re: active objects problem

2009-08-18 Thread fadden
On Aug 17, 8:57 pm, shadow yuri.bul...@gmail.com wrote:    Thanks for the fast response, i've tried what you suggested, but crash is the same here is a tracelog: ... 08-18 03:43:29.688: INFO/DEBUG(551): signal 11 (SIGSEGV), fault addr deadbaad ... 08-18 03:43:29.746: INFO/DEBUG(551):      

[android-porting] Re: Finding Memory leak in native code

2009-08-18 Thread fadden
On Aug 18, 4:49 am, clikx click...@gmail.com wrote: I am using own tree. ... I am getting the following error for all the libraries. 03:48 E/ddm-Addr2Line: Error while trying to start arm-eabi-addr2line process for library /system/lib/libssl.so I am not able to find; which file, the path

[android-porting] Re: DVM Java object header modification

2009-08-17 Thread fadden
You'd need to decode the symbols to figure out what exactly went wrong. Since you got a bus error at address zero, I'm guessing misalignment on a 64-bit field. (It's possible / likely that some code assumes the Object header size is a multiple of 8 bytes.) Try adding another 32-bit value to

[android-porting] Re: Finding Memory leak in native code

2009-08-07 Thread fadden
On Aug 6, 9:13 pm, clikx click...@gmail.com wrote: Required some more information i.e The coloumns 'File' and 'Line' (only) are not populated. What needs to be enabled to get data in 'File' and 'Line' coloumns. DDMS needs the symbols directory under out in a build tree. The stand-alone DDMS

[android-porting] Re: Finding Memory leak in native code

2009-08-05 Thread fadden
On Aug 5, 5:16 am, clikx click...@gmail.com wrote: Is there any tool available to find memory leak in native code? Is there any tool like 'memprof' or 'mtrace' ported to work in Android platform? If you have the right kind of build on the phone, you can replace / system/lib/libc.so with

[android-porting] Re: Questions about dexopt entry points

2009-08-04 Thread fadden
On Aug 3, 8:45 pm, profect profect.andr...@gmail.com wrote: I am reading the related files in depth. entry point may not be a precise term. I mean the place where process 1 forks another process, process 2. Process 2 calls exec to load and run dexopt to optimize a zip file. I didn't find this

[android-porting] Re: Calling System.exit(0) causes Dalvik crash

2009-08-03 Thread fadden
On Aug 2, 7:39 am, Mercury bao...@gmail.com wrote: I'm meeting another issue about libffi issue and would like to have your comment about it. I've had mixed results with libffi -- we had to fix some stuff locally on the platforms we used (search for android to find the changes). It's possible

[android-porting] Re: Calling System.exit(0) causes Dalvik crash

2009-08-03 Thread fadden
On Aug 3, 7:16 am, Mercury bao...@gmail.com wrote: dalvik/vm/interp/InterpCore.h:2533 Stack overflow on method call (top=0x863f52c0 end=0x863b54c0 newB ot=0x863b51f0 size=262144 'nativeGetStackTrace') dalvik/vm/interp/Stack.c:1043 Stack overflow, expanding (0x863b54c0 to 0x863b52c0)

[android-porting] Re: Failed to compile the portable version of mterp in dalvik/vm

2009-08-03 Thread fadden
On Jul 31, 8:13 pm, zhtlancer zhtlan...@gmail.com wrote: How can I examine the log information of dalvik on a non-Android system? I've checked that dalvik writes its log into /dev/log/main, but there is no that device file on my system. So I just placed a empty text file in that place for

[android-porting] Re: Questions about dexopt entry points

2009-08-03 Thread fadden
On Aug 2, 7:07 am, profect profect.andr...@gmail.com wrote: Dexopt can deal with two kinds of files, zip and dex, which are differentiated by command line options, --zip and --dex. I find one entry point for --dex in Android system code. It is in the function dvmOptimizeDexFile() in the file

[android-porting] Re: Failed to compile the portable version of mterp in dalvik/vm

2009-07-31 Thread fadden
On Jul 31, 9:18 am, zhtlancer zhtlan...@gmail.com wrote: When I tried to build the InterpC-allstubs.c, the compile complaint like this: dalvik/vm/mterp/out/InterpC-allstubs.c: In function ‘dvmMterp_OP_GOTO’: What type of build are you configured for? Have you made any local modifications?

[android-porting] Re: Failed to compile the portable version of mterp in dalvik/vm

2009-07-31 Thread fadden
On Jul 31, 10:16 am, zhtlancer zhtlan...@gmail.com wrote: I've just found out why this happened, and I think this may be a bug. In dalvik/vm/mterp/cstubs/stubdefs.c, there is a #define self  glue-self But in line 115, wrote glue-self-threadId, so I changed it to self-threadId, and re-generate

[android-porting] Re: dirent64 is missing in bionic/libc/kernel/common/linux/dirent.h

2009-07-27 Thread fadden
On Jul 26, 10:33 pm, louis dmq...@gmail.com wrote: My compile error messages show that the source code needs struct dirent64 but it is missing in bionic/libc/include/dirent.h which is the only one included when compiled but in bionic/libc/kernel/common/ linux/dirent.h which is not included

[android-porting] Re: Calling System.exit(0) causes Dalvik crash

2009-07-27 Thread fadden
On Jul 27, 4:49 am, Mercury bao...@gmail.com wrote: Could you please advice me why I call free as the above implement cause crash? I don't know. If possible, could you tell me or share me a document about the design of heap implement in Dalvik? There isn't one. It uses the dlmalloc mspace

[android-porting] Re: E/dalvikvm : ERROR: Byte swap + verify failed

2009-07-27 Thread fadden
On Jul 26, 10:10 am, Elvis Dowson elvis.dow...@gmail.com wrote: I'm getting this error with linux-omap3-2.6.31: E/dalvikvm(  676): ERROR: Byte swap + verify failed [...] E/dalvikvm(  670): ERROR: Bad length: expected 818624000, got 3590960 In hex, those are 0x30cb3600 and 0x36cb30,

[android-porting] Re: Where is the code of portable version of the dalvik interpreter

2009-07-24 Thread fadden
On Jul 24, 8:02 am, zhtlancer zhtlan...@gmail.com wrote: I'm planning to port dalvik to a new platform, and I think the portable version of interpreter may be a good start. But I'm not very clear of the source code structure. Could anyone help me? Thanks! Start with

[android-porting] Re: Is arm-eabi-gcc support iwmmxt?

2009-07-24 Thread fadden
On Jul 23, 7:02 pm, xuxiake2012 xuxiake2...@gmail.com wrote: I have some source code in hand which can use   hardware acceleration just like MMX,IWMMXT,SSE and so on.  As we known, android use arm-eabi- gcc to compile source code.    so my question come :  Is  arm-eabi-gcc support iwmmxt? Or

[android-porting] Re: Calling System.exit(0) causes Dalvik crash

2009-07-22 Thread fadden
On Jul 22, 6:04 am, Mercury bao...@gmail.com wrote: However on Vxworks, when exiting a thread, it does not free its resource. So for example I create a server socket on Java server = new ServerSocket(port); and make it listening. After I terminate this thread in native, server socket I

[android-porting] Re: Calling System.exit(0) causes Dalvik crash

2009-07-21 Thread fadden
On Jul 21, 7:27 am, Mercury bao...@gmail.com wrote: So maybe we need to adapt the current implement of System.exit on Vxwork, I think we need to save all created threads and when System.exit is called, we need to loop and exit every created thread to exit Dalvik completely. But at the current

[android-porting] Re: Calling System.exit(0) causes Dalvik crash

2009-07-17 Thread fadden
On Jul 17, 9:58 am, Mercury bao...@gmail.com wrote: and I found that it called to dvmAbort and my board automatically reboot. With my debug, thread status in above function is THREAD_RUNNING so it goes to if block and call dvmAbort. Change dvmAbort() to just call abort(). That should cause

[android-porting] Re: What is the problem with my android: Unable to extract+optimize DEX from '/system/framework/ext.jar'

2009-07-16 Thread fadden
On Jul 16, 5:29 am, jianhai yang jian...@gmail.com wrote: E/dalvikvm( 1045): ERROR: bad checksum (07818e96, expected 4c4d8f58) E/dalvikvm( 1045): ERROR: Byte swap + verify failed E/dalvikvm( 1045): Optimization failed W/dalvikvm( 1041): DexOpt: --- END 'ext.jar' --- status=0xff00, process

[android-porting] Re: Boot up error- porting android to imx31 (android version 1.5)

2009-07-16 Thread fadden
On Jul 16, 4:10 am, shyjumon shyjumo...@gmail.com wrote: W/dalvikvm(   27): Cached DEX '/system/framework/core.jar' (/data/ dalvik-cache/sys...@framework@core@classes.dex) is stale and not writable I/dalvikvm(   27): Unable to open or create cache for /system/ framework/core.jar What

[android-porting] Re: android on X86 will not boot after June 22nd

2009-07-14 Thread fadden
On Jul 14, 12:39 am, DYChen dong-yuan.c...@intel.com wrote: This seems to imply an instance can only be created after the class initialization is completed. It tells you the set of actions that trigger initialization. It does not guarantee that initialization has completed before those

[android-porting] Re: android on X86 will not boot after June 22nd

2009-07-13 Thread fadden
On Jul 12, 7:46 pm, profect profect.andr...@gmail.com wrote: 1. I think what Chen mentioned above is also a problem. Gcc's implementation for is different from the code's intention here. If you're signed up as a contributor, go to the change page, click on the file, and double-click on the

[android-porting] Re: android on X86 will not boot after June 22nd

2009-07-09 Thread fadden
On Jul 9, 1:13 am, Chen Yang sunsety...@gmail.com wrote: Any explanation on why it doesn't show on ARM platform? It does -- it comes down to timing and luck. If you have a class that creates an instance of itself during class initialization, and a GC happens before class init completes, you

[android-porting] Re: Calling System.exit(0) causes Dalvik crash

2009-07-09 Thread fadden
On Jul 8, 6:06 pm, Mercury bao...@gmail.com wrote: I am trying to run my small sample app. It only call System.exit(0) in main function. [...] stack trace information:     SP:0x8ee01690(unknown stack base:0x8fa0)     0x8006f5b0:bfill + 0x68     0x80e56980:memset + 0x20 - bfill()    

[android-porting] Re: android on X86 will not boot after June 22nd

2009-07-08 Thread fadden
bhayes has posted an explanation of the problem in the change (https:// review.source.android.com/#change,10482). In short, it can cause live objects to be collected. --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website:

[android-porting] Re: Ubuntu 64-bit x86 Android build: lib32z1 and lib32z1-dev packages are needed

2009-07-08 Thread fadden
On Jul 8, 4:20 pm, JBDynamics jer...@jbdynamics.com wrote:  When first compiling with only the zlib1g and zlib1g-dev packages, it was ending in an Error 2: not being able to find a valid libz.so after a -lz search giving hits in a few different directories, but not finding a valid lib. So I

[android-porting] Re: android on X86 will not boot after June 22nd

2009-07-07 Thread fadden
On Jul 7, 10:41 am, Chen Yang sunsety...@gmail.com wrote: just curious to know: is the arm version working correctly? From what i have observed on x86, the introduced code by that patch brought none reference stuff as reference, which caused the runtime segmentation fault. We don't see a

[android-porting] Re: Error in running DVM test application on linux-x86

2009-07-07 Thread fadden
On Jul 6, 11:05 pm, Sivan sivaprasa...@gmail.com wrote: +error: device not found By default, the tests are run on the emulator or an attached device. Do you have these? If so, what does adb devices show? --~--~-~--~~~---~--~~ unsubscribe:

[android-porting] Re: If Java nested class has native method,how to register the class methods?

2009-07-06 Thread fadden
The way you wrote that in this message, and the way the error reads, your native_ClassInit method is part of A, not A$B. The error message is generated by the VM when it's trying to find a native method for A.native_ClassInit, not when you do the registration. Are you sure the registration call

[android-porting] Re: Class resolved by unexpected DEX

2009-06-26 Thread fadden
On Jun 26, 12:55 am, bazookier geelphe...@gmail.com wrote: I have two classes declared in one package. One accesses the other. Made a dex file contain this whole package. When running, it reported the following error: Class resolved by unexpected DEX: .. .. The message means it

[android-porting] Re: About VerifyError on dalvik.

2009-06-25 Thread fadden
On Jun 25, 4:54 am, bazookier geelphe...@gmail.com wrote: I'd like to ask one question: Okay, but just one. Is there a concept of jdk version in dalvik VM? If there is, is it above 1.5_02? No. And that's two. I ran some application compiled by jdk 1.5_02 caused a VerifyError. Can it be

[android-porting] Re: Porting Dalvik VM on non LINUX OS

2009-06-02 Thread fadden
On Jun 2, 4:18 am, Xmen1 ankitmittal...@gmail.com wrote: Can somebody please tell me whether it is possible to port Dalvik VM on operating system other then LINUX? What all support is required from the OS? Please share some information about this. POSIX-compliant libc and a reasonably full

[android-porting] Re: How to analyze a stack dump?

2009-05-21 Thread fadden
://groups.google.com/group/android-developers/browse_thread/thread/73f89bb8739c24bb/e5c7fd02dfbc74fd?q=stack+trace+addr2line+fadden#e5c7fd02dfbc74fd --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group

[android-porting] Re: JNI Running

2009-05-19 Thread fadden
On May 19, 5:30 am, Kasuko kas...@gmail.com wrote: Ok I have been trying and trying to get a simple JNI program running. [...] System.loadLibrary(/data/lib/libRun.so); Use System.load() if you're going to provide a full path. --~--~-~--~~~---~--~~ unsubscribe:

[android-porting] Dalvik Porting Guide

2009-05-14 Thread fadden
The first cut at a new Dalvik Porting Guide is available. This may be of interest to anyone who wants to move beyond libffi and the portable interpreter on a non-ARM, non-x86 platform. It's now in the source tree as dalvik/docs/porting-guide.html; you can also see it here:

[android-porting] Re: javalib.jar error

2009-05-11 Thread fadden
Have you verified (with e.g. unzip -t file) that the jar file is okay? - Andy On May 11, 7:05 am, Gustavo gustav...@gmail.com wrote: After building most of the code I get an error related to javalib.jar.  Find attached the output.   Any clue?

[android-porting] Re: Attempting to build wrapsim for x86

2009-05-08 Thread fadden
On May 8, 8:03 am, kewarken kewar...@gmail.com wrote: I'm trying to build the simulator lib for x86 and I'm running into some strange problems, most of which seem related to header conflicts between bionic libc and my host (ubuntu 9.04). [...] Any ideas to help me keep moving? The wrapsim

[android-porting] Re: Debug logging and tracing tips for JNI library

2009-05-07 Thread fadden
On May 7, 7:10 am, efu ericf...@gmail.com wrote: I am building a JNI library in C/C++. One challenge is to have it print out trace and log messages. Any suggestions? Any Android tools I can use? For example, is there an equivalent of java.util.logging.Logger in C library form? If you include

[android-porting] Re: Is NewWeakGlobalRef still not supported?

2009-05-04 Thread fadden
On May 3, 9:04 am, efu ericf...@gmail.com wrote: Is this still the case, for example in the cupcake code? NewWeakGlobalRef is still not supported. I need to implement a set of callbacks from JNI to Java efficiently, and I need to cache reference to the class in order to call the methods. If

[android-porting] Re: How's preloaded-classes file generated?

2009-04-30 Thread fadden
On Apr 29, 4:57 pm, Shashank shankmit...@gmail.com wrote: Are they using any sort of automation or is it manually generated by some person / team? Both. There's some stuff in frameworks/base/tools/preload that helps generate it, then there's some manual adjusting.

[android-porting] Re: How does Dalvik VM work?

2009-04-29 Thread fadden
On Apr 29, 5:34 am, ja...@work jim_za...@hotmail.com wrote: I'm planning to porting it to a linux-kernel device, but i don't understand if dalvik is linked directly (does it make calls to the kernel?) to the linuxkernel or if it communicates with it ONLY through the HAL or libraries. The VM

[android-porting] Re: Android Simulator Environment

2009-04-29 Thread fadden
On Apr 29, 2:16 am, Augustin.CL iamaugus...@gmail.com wrote:           Recently, I set out to compile android on X86. I read lots of discussions on mailing list. I found that someone gave a guide to compile simulator and introduce how to write a java program to print out Hello World by

[android-porting] Re: String's equals() method return wrong when using the generic C implementation of Android's Dalvik VM.

2009-04-28 Thread fadden
On Apr 27, 11:43 pm, Peter jl...@ingenic.cn wrote: I ran these codes on the Android's emulator and they returned res1=false and res2=false. (They are correct) But when I ran them on XBurst, they returned res1=true and res2=false. (They are wrong) The difference is that the wrong one was got

[android-porting] Re: Profiling -memory usage

2009-04-22 Thread fadden
On Apr 21, 9:35 am, Sahil Arora sahilz...@gmail.com wrote: Please find attached the hprof file that i am using at my end.. I await your response. I can use the original with our Android-modified hat, and I can use the converted form with Sun's jhat. I don't have jprofiler, so I can't try

[android-porting] Re: Measuring memory usage on a device

2009-04-22 Thread fadden
On Apr 21, 2:21 am, Magnus perssonmag...@gmail.com wrote: I would still like to get an explanation as to why the Java APIs show a lot more memory available than the UNIX commands available in the adb shell. memInfo = new ActivityManager.MemoryInfo();         mgr.getMemoryInfo(memInfo);    

[android-porting] Re: E/dalvikvm-heap Can't create VM heap of size (262144,14151696) (errno=13)

2009-04-22 Thread fadden
On Apr 22, 11:19 am, Michael Trimarchi trimar...@gandalf.sssup.it wrote: E/dalvikvm-heap (2589): Can't create VM heap of size (262144,14151696) (errno=13) It's a problem of the prot mask of the driver ashm maybe. Can you insert some debug code in system/core/libcutils/mspace.c of android

[android-porting] Re: C to CPP conversion (or vice-versa) based on the package type having C or CPP.

2009-04-20 Thread fadden
On Apr 20, 4:56 am, sreedhar b sreedhar...@gmail.com wrote: I have a use-case library having *.cpp files. And i made an application with *.c extension. I included the above said library as a shared library part of the Android.mk for building the application. I am getting errors showing

[android-porting] Re: Profiling -memory usage

2009-04-20 Thread fadden
On Apr 19, 6:58 am, Sahil Arora sahilz...@gmail.com wrote: This creates the standard1.hprof file. On double clicking this file JProfiler tries to open this file, but, the following error comes: An unrecoverable error occured: java.lang.ArithmeticEception: / by zero Can you e-mail the

[android-porting] Re: Profiling -memory usage

2009-04-17 Thread fadden
On Apr 17, 6:57 am, Zhubham sahilz...@gmail.com wrote: This has concern to the profiling discussion @http://groups.google.com/group/android-developers/browse_thread/threa... As mentioned in the second message, i can generate the hprof files. But I m facing difficulty in opening this file

[android-porting] Re: compilation rules for ARMv6

2009-04-17 Thread fadden
On Apr 16, 10:06 pm, Manish Sharma manishsharm...@gmail.com wrote: target thumb C++: libsimplejni = development/samples/SimpleJNI/jni/native.cpp development/samples/SimpleJNI/jni/native.cpp:1: error: bad value (armv7-a) for -march= switch make: ***

[android-porting] Re: Dalvik VM init failed (check log file)

2009-04-09 Thread fadden
On Apr 9, 12:10 am, dj dhananjayingr...@gmail.com wrote: thats why returnig false from this function in casuses dvmabort() to fail at following location 0x0feacd38 in dvmAbort () at dalvik/vm/Init.c:1433 1433        *((char*)0xdeadd00d) = 38;  and here i am getting seg fault . are you

[android-porting] Re: compilation rules for ARMv6

2009-04-07 Thread fadden
On Apr 6, 10:52 pm, Manish Sharma manishsharm...@gmail.com wrote: If I miss anything it give VM aborting. I am still not understanding the logic of enabling HAVE_SHORT_ENUMS. If you have some idea please share. From the gcc info page: `-fshort-enums' Allocate to an `enum' type only as

[android-porting] Re: compilation rules for ARMv6

2009-04-06 Thread fadden
On Apr 5, 9:21 pm, Manish Sharma manishsharm...@gmail.com wrote: I have enabled HAVE_SHORT_ENUMS and now the logs are changed but still getting VM aborting. [...] E/dalvikvm( 1554): Bad asm sizeof sizeofGlobal_debuggerActive (1), should be 4 E/dalvikvm( 1554): Bad asm sizeof

[android-porting] Re: compilation rules for ARMv6

2009-04-03 Thread fadden
On Apr 3, 5:05 am, Manish Sharma manishsharm...@gmail.com wrote: The following configurations are not working. I am getting following kernel panic. [...] D/AndroidRuntime( 1554): AndroidRuntime START D/AndroidRuntime( 1554): CheckJNI is ON E/dalvikvm( 1554): Bad asm sizeof

  1   2   >