Design and Implementation on Code Injection and Memory Tracking in Dalvik Virtual Machine

Author
LuoMan
Advisor
ChenDuanBing
School
University of Electronic Science and Technology
Major
Computer Software and Theory
Classification
TP302 Design and Performance Analysis
Degree
Master's thesis
Year
2013
Downloads
6
Citations
0

Request the full text

Abstract

With the rapid development of wireless network, a large number of mobileterminal devices which are represented by smartphone start to access network. Manyaccess methods, such as Internet,3G and wireless broadband network show the trend ofconvergence. Ubiquitous network era which is full of networks and applications is beinggradually realized. As a mobile terminal device, which is easier to carry andcommunication, Android phones are loved by broad masses. However, due to itshardware limitations, Android phones’ computing power and storage capacity arelimited.Cloud computing is a virtual computing resource pool. What’s more, it is able todynamically layout application environment. As cloud computing real-time monitorsapplication resource usage, it will allocate resources to the application which is lack ofresources.Cloud computing parallel processes data and services on a distributedenvironment and provides large-scale data storage. Overall, cloud computing providessafer storage and efficiency operation.If we combine cloud computing with mobile computing, we will be able to get thedesired results by using high-speed processing capability of remote cloud even thoughthe phone performs low. With the existing transmission bandwidth and mobile terminallimited computing power, we need to balance the load banlancing of the two sidesrather than put all calculations to the cloud. So in order to achieve an optimal efficiencyupgrade, how to allocate the terminal application?The author transfer heavy computation mobile applications to the cloud, so that themobile applications’ efficiency will be greatly improved. The biggest lightspot isseamlessly transferred the heavy computation mobile application to the cloud.This paper takes function running process and memory management in Dalvikvitual machine as the main research field, deeply analysis and research the keytechnique in it. The author proposes a method to automatically transfer function to thecloud. The work on this paper can be described as follows:First, propose one plan to improve function’s execution process. This plan adds several interfaces and methods in Java layer, JNI layer and Native layer so that thefunction can be transferred to run in the cloud instand of Dalvik vm.Second, propose an analysis mode about function memory. The mode analyzesfunction’s total memory data, such as register, function stack frame, heap, stack and soon. Put forward different improved method to get different data. By using the analysismode memory data to create a new operating environment in the cloud, function can runnormally.We find through experiment results of Anrdoid simulator and Androiddevelopment board that the efficiency of the implementation of the application will beincreased by at least20times by transfering heavy computation mobile applications tothe cloud. So people can use Android mobile phones anywhere and anytime to access,get and use many services, such as prospect extraction, face recognition and picturefilter provided by cloud computing quickly and easily.

Table of contents

Summary 5-7 ABSTRACT 7-11 first chapter 11-20 1.1 research background, purpose and meaning 11-12 1.2 research status 12-18 1.3 content of this paper 18 1.4 section of this article arrangements 18-20 <br / > The second chapter Dalvik related technologies 20-42 2.1 application process space 20-24 2.1.1 ActivityThread operating framework 21-22 <br / > 2.1.2 Activity loading process 22-24 2.2 Dalvik memory management 24-41 2.2.1 DexFile memory mapping 24-30 2.2.2 garbage collection 30-41 2.3 Summary design and implementation 41-42 Chapter III code injection 42-60 3.1 JNI function registration study and implementation 42-48 3.1.1 Java function calls Native 42-46 3.1.2 JNI function registered achieve 46 - 48 3.2 new Native function Research and Implementation 48-55 3.2.1 JNIEnv structure 48-50 3.2.2 new Native function achieve studies 50-55 3.3 OpCode modification and implementation 55-59 3.3.1 Java virtual Machine script 55-57 3.3. 2 Modify OpCode achieve 57-59 3.4 Summary 59-60 memory design and implementation of Chapter IV tracking 60-84 4.1 functions memory data 60-64 4.1.1 mobile client access to the function memory design 61-62 4.1.2 cloud getter memory design 62-64 4.2 Gets function stack frame designed 64-67 4.3 Gets register designed 67-68 4.4 Gets a static field designed 68 - 70 4.5 Gets an object designed 70-79 study 4.5.1 object structure 70-74 4.5.2 object size calculation 74 - 76 4.5.3 Find an object reference object design 76-79 4.6 Gets classes designed 79-82 4.6.1 class loading 79-81 4.6.2 obtain class designed 81-82 4.7 Summary 82-84 Chapter experimental results and analysis 84-88 5.1 compiler mobile client and cloud 84-85 5.1.1 mobile terminal compiled 84 5.1.2 cloud compile 84 - 85 5.2 results and analysis 85-87 5.3 summary 87-88 Chapter VI summary and Outlook 88-90 <br / > 6.1 summarizes 88-89 6.2 Prospects 89-90 Thanks 90-91 References 91-94 and dissertation -related research results obtained during the study period 94-95

Related dissertations

  1. The Application Research of Dalian Bank’s Cloud Computing
    LiuQingYan ·Liaoning University ·2012 ·Master's thesis
  2. Research on Cloud Computing Market Forecast and the Combination of Purchase Strategy for Multi-instances
    FuMin ·Wuhan University of Technology ·2013 ·Master's thesis
  3. The Research on the Present Situation and the Development of Internet Finance
    XiangSiYu ·Central China Normal University ·2014 ·Master's thesis
  4. Research on Construction Mode of Small and Medium Enterprises Accounting Information in Cloud Computing Environment
    QiaoRuiHua ·Shanxi University of Finance ·2014 ·Master's thesis
  5. Research on Business Model of Cloud Computing for BCC Company
    SunJianFeng ·Liaoning University ·2012 ·Master's thesis
  6. Study on H Company Business Strategy Development of Cloud Computing
    LiuPeng ·Hebei University of Technology ·2013 ·Master's thesis
  7. Value Creation of Cloud Computing:an Empirical Study
    LiuSen ·Zhejiang University ·2014 ·Doctoral dissertation
  8. Research on Public Cloud Service Platform in Light Industry Based on Cloud Computation
    LiuZhiYong ·Hunan University ·2013 ·Master's thesis
  9. Study on the Construction of Baicheng New District System of Smart City
    XuHuaNan ·Jilin University ·2013 ·Master's thesis
  10. The Application of Cloud Computing in the Library Information Consulting Services
    BaiGuo ·Liaoning Normal University ·2013 ·Master's thesis
  11. Research on Personalized Information Service of Digital Library in the Cloud Computing Environment
    HuXiuYun ·Hubei University of Technology ·2014 ·Master's thesis
  12. Design and Implementation of Cloud Computing Platforms Monitoring System
    ZhangRenFeng ·Northeastern University ·2011 ·Master's thesis
  13. Research and Implementation of Cloud Computing Platform Monitoring System Based on Publish/Subscribe Technology
    LiZuoWei ·Northeastern University ·2012 ·Master's thesis
  14. Fault Detection Mechanism in the Cloud Environment
    LiLiang ·Central South University ·2012 ·Master's thesis
  15. Design and Research of Campus Video Monitoring System Based on the Digital
    JiangZhiHuang ·Hunan University ·2013 ·Master's thesis
  16. Research and Implementation of Cloud Computing Platform Monitoring System Based on Twitter Storm
    LiHao ·Northeastern University ·2013 ·Master's thesis
  17. The Research on Data Processing Cloud Platform of Large Open Style Wharf Mooring Monitoring System
    SunLei ·Dalian Jiaotong University ·2013 ·Master's thesis
  18. Research and implementation of TaaS monitoring system
    WeiZhenNi ·Northwestern University ·2013 ·Master's thesis
  19. Design and implementation of remote fault diagnosis center equipment based on Cloud Computing
  20. Request Tracing and Anomalies Detecting System in Cloud