dalvik

Stress Testing Android Dalvik [duplicate]

*爱你&永不变心* 提交于 2019-12-25 10:25:54
问题 This question already has answers here : Stresstest Memory on Android (2 answers) Closed 8 months ago . I've been reading up on the Android dalvik, and I was curious as to how one would go about stress testing the Dalvik to evaluate its stability. I understand the Dalvik is meant for memory an processor constrained devices. So would allocating a lot of memory/increasing frequency of some CPU cores and then launching multiple applications be a way to test the stability? I also understand that

How to debug dalvikvm rejecting opcode?

不羁的心 提交于 2019-12-24 21:01:28
问题 How do I make sense of these errors? This is all the log cat releavant to the error. all others are GC type messages. 01-07 19:14:08.536: W/dalvikvm(5780): VFY: register2 v4-5 values 6,24 01-07 19:14:08.536: W/dalvikvm(5780): VFY: rejecting opcode 0xce at 0x004a 01-07 19:14:08.536: W/dalvikvm(5780): VFY: rejected Lnz/co/great_ape/headsup/sat_track/SGP4unit_sgp4;.sgp4 (Lnz/co/great_ape/headsup/sat_track/SGP4SatData;D[D[D)Z 01-07 19:14:08.536: W/dalvikvm(5780): Verifier rejected class Lnz/co

eclipse fails to “build workspace” on large android files…?

前提是你 提交于 2019-12-24 14:20:06
问题 i have a severe problem with eclipse, where i need to compile a somewhat larger class. by "larger" i mean, the class has about 5000 lines of code... problem is that on saving this project, eclipse takes several seconds (30-40) to "build the workspace". to be exact, it says "50%" and keeps saying that for 30-40 seconds. then, it breaks with the following error: [console]: [2010-07-09 15:28:39 - Dex Loader] Unable to execute dex: null [2010-07-09 15:28:39 - myProject] Conversion to Dalvik

Does time jump in android devices?

帅比萌擦擦* 提交于 2019-12-24 01:17:08
问题 System.currentTimeMillis() is giving wrong time. It returns time values from 1980 Also time value taken through this function differs from actual time sometimes. Some sample values returned by the function 315977198121 315965244789 316002166580 315982533137 回答1: Yes, time returned by System.currentTimeMillis() can jump around, for example because the device clock may have drifted, and is being reset due to fetching an accurate time from the network Time as observed through other APIs may also

Extended-width dalvik bytecodes missing on Jellybean

非 Y 不嫁゛ 提交于 2019-12-23 18:46:17
问题 When ICS came out, there were several new extended-width bytecodes introduced. Most of these were for instructions to support jumbo ids. Here are some of these new instructions, taken from my ics/dalvik/opcode-gen/bytecode.txt: # # Extended-width opcodes # op 00ff const-class/jumbo 41c y type-ref continue|throw op 01ff check-cast/jumbo 41c n type-ref continue|throw op 02ff instance-of/jumbo 52c y type-ref continue|throw op 03ff new-instance/jumbo 41c y type-ref continue|throw op 04ff new

Terminal run dalvikvm with am.jar

試著忘記壹切 提交于 2019-12-23 01:03:14
问题 I'm trying to start an installed app with dalvikvm in terminal. It doesn't work if I try to do this just so: dalvikvm -cp /system/app/Calculator.apk com.android.calculator2/.Calculator Then comes failure message : dalvikvm cannot find a main class So I tried to run an "am start" in dalvikvm: dalvikvm -cp system/framework/am.jar com.android.commands.am.Am It really works. But if I trying then to start an app: dalvikvm -cp system/framework/am.jar com.android.commands.am.Am start -n com.android

Dalvik源码分析(一)虚拟机概述

空扰寡人 提交于 2019-12-22 11:44:25
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Dalvik是Google公司自己设计用于Android平台的Java虚拟机。Dalvik虚拟机是Google等厂商合作开发的Android移动设备平台的核心组成部分之一。Dalvik 经过优化,允许在有限的内存中同时运行多个虚拟机的实例,并且每一个Dalvik 应用作为一个独立的Linux 进程执行。独立的进程可以防止在虚拟机崩溃的时候所有程序都被关闭。 主要功能: Dalvik功能图 Dalvik的主要作用是将java SDK 编译的.class文件编译成.dex文件,然后加载需要的类进行解释执行。同时对进程及内存进行管理。 Dalvik VM做了大量的优化,包括如下方面: (1)Dex文件镜像格式采用了内容压缩技术。将多个class中的内容统一归类存储,即将方法、属性、字符串、类型均抽取出来统一存放,这样可以使所有重复的内容仅出现一次,通过引用(id)来访问。这种技术比JVM中基于zip的压缩技术更高。虽然压缩后的大小差不多,但是内容压缩无需解压缩,因此可以有效减少程序的启动时间。 (2)用Zygote统一管理VM。Android中所有应用均对应了一个VM,但是这些VM和JVM的使用方式不同,这些VM共享了应用程序中的系统代码和数据,这就类似OS中的动态Lib管理那样,同样的内容仅被加载一次

Android Dx Error1, Failed to convert to Dalvik format

岁酱吖の 提交于 2019-12-21 20:56:16
问题 I'm getting desperate with this Problem: I want to export/run my Android Application with one additional .jar I added to the buildpath. I'm sure I added it correctly, there are 5 other .jars included and they all work fine. with this special one I get the mentioned error. I've already tried everything that can be found in this question: "Conversion to Dalvik format failed with error 1" on external JAR and several other links google spat out. The main Problem is, I actually do not understand

Browser sending “Dalvik” as user agent

这一生的挚爱 提交于 2019-12-21 04:03:23
问题 Android Browsers is sending Dalvik as the user agents in the request headers. I am currently working on a mobile site having a simple login page that validates username and password then authorizes users profile. But when i checked the request headers i saw something unusual, there were two user agents from the same device. Following are the user-agents from the same device: "Mozilla/5.0 (Linux; Android 4.1.2; C5303 Build/12.0.A.1.257) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847

What's the data in dalvik-LinearAlloc, dalvik-aux-structure, dalvik-bitmap-1, dalvik-bitmap-2, dalvik-card-table, dalvik-mark-stack and dalvik-zygote?

对着背影说爱祢 提交于 2019-12-21 01:45:24
问题 I use showmap command on a PID, and I can't understand this part in the report: 16384 3752 689 0 3132 0 620 4 /dev/ashmem/dalvik-LinearAlloc (deleted) 2460 1748 934 0 828 0 920 18 /dev/ashmem/dalvik-aux-structure (deleted) 8192 572 572 0 0 0 572 1 /dev/ashmem/dalvik-bitmap-1 (deleted) 8192 0 0 0 0 0 0 1 /dev/ashmem/dalvik-bitmap-2 (deleted) 4100 312 312 0 0 0 312 1 /dev/ashmem/dalvik-card-table (deleted) 502140 14860 14860 0 0 0 14860 3 /dev/ashmem/dalvik-heap (deleted) 1500 280 280 0 0 0 280