Efficient java native interface for android based mobile devices

Yann-Hang Lee, Preetham Chandrian, Bo Li

Research output: Chapter in Book/Report/Conference proceedingConference contribution

10 Citations (Scopus)

Abstract

Java has been making its way into the embedded systems and mobile devices like Android. The Java platform specifies the Java Native Interface (JNI) which allows Java code that runs within a JVM to interoperate with applications or libraries that are written in other languages and compiled to the host CPU. JNI plays an important role in embedded system as it provides a mechanism to interact with libraries specific to the platform and to take the advantage of fast execution of native programs. To address the overhead incurred in the JNI due to reflection and serialization, this paper proposes to cache class, field, and method information obtained from reflection for subsequent usage. It also provides a function to pin objects to their memory locations such that they can be accesses through the known reference. The Android emulator is used to evaluate the performance of these techniques and we observed that there was 10-30 % performance gain in the Java Native Interface for two Android applications.

Original languageEnglish (US)
Title of host publicationProc. 10th IEEE Int. Conf. on Trust, Security and Privacy in Computing and Communications, TrustCom 2011, 8th IEEE Int. Conf. on Embedded Software and Systems, ICESS 2011, 6th Int. Conf. on FCST 2011
Pages1202-1209
Number of pages8
DOIs
StatePublished - 2011
Event10th IEEE Int. Conf. on Trust, Security and Privacy in Computing and Communications, TrustCom 2011, 8th IEEE Int. Conf. on Embedded Software and Systems, ICESS 2011, 6th Int. Conf. on Frontier of Computer Science and Technology, FCST 2011 - Changsha, China
Duration: Nov 16 2011Nov 18 2011

Other

Other10th IEEE Int. Conf. on Trust, Security and Privacy in Computing and Communications, TrustCom 2011, 8th IEEE Int. Conf. on Embedded Software and Systems, ICESS 2011, 6th Int. Conf. on Frontier of Computer Science and Technology, FCST 2011
CountryChina
CityChangsha
Period11/16/1111/18/11

Fingerprint

Embedded systems
Mobile devices
Program processors
Data storage equipment
Android (operating system)

Keywords

  • Android
  • embedded software
  • JNI

ASJC Scopus subject areas

  • Hardware and Architecture
  • Software

Cite this

Lee, Y-H., Chandrian, P., & Li, B. (2011). Efficient java native interface for android based mobile devices. In Proc. 10th IEEE Int. Conf. on Trust, Security and Privacy in Computing and Communications, TrustCom 2011, 8th IEEE Int. Conf. on Embedded Software and Systems, ICESS 2011, 6th Int. Conf. on FCST 2011 (pp. 1202-1209). [6120955] https://doi.org/10.1109/TrustCom.2011.162

Efficient java native interface for android based mobile devices. / Lee, Yann-Hang; Chandrian, Preetham; Li, Bo.

Proc. 10th IEEE Int. Conf. on Trust, Security and Privacy in Computing and Communications, TrustCom 2011, 8th IEEE Int. Conf. on Embedded Software and Systems, ICESS 2011, 6th Int. Conf. on FCST 2011. 2011. p. 1202-1209 6120955.

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Lee, Y-H, Chandrian, P & Li, B 2011, Efficient java native interface for android based mobile devices. in Proc. 10th IEEE Int. Conf. on Trust, Security and Privacy in Computing and Communications, TrustCom 2011, 8th IEEE Int. Conf. on Embedded Software and Systems, ICESS 2011, 6th Int. Conf. on FCST 2011., 6120955, pp. 1202-1209, 10th IEEE Int. Conf. on Trust, Security and Privacy in Computing and Communications, TrustCom 2011, 8th IEEE Int. Conf. on Embedded Software and Systems, ICESS 2011, 6th Int. Conf. on Frontier of Computer Science and Technology, FCST 2011, Changsha, China, 11/16/11. https://doi.org/10.1109/TrustCom.2011.162
Lee Y-H, Chandrian P, Li B. Efficient java native interface for android based mobile devices. In Proc. 10th IEEE Int. Conf. on Trust, Security and Privacy in Computing and Communications, TrustCom 2011, 8th IEEE Int. Conf. on Embedded Software and Systems, ICESS 2011, 6th Int. Conf. on FCST 2011. 2011. p. 1202-1209. 6120955 https://doi.org/10.1109/TrustCom.2011.162
Lee, Yann-Hang ; Chandrian, Preetham ; Li, Bo. / Efficient java native interface for android based mobile devices. Proc. 10th IEEE Int. Conf. on Trust, Security and Privacy in Computing and Communications, TrustCom 2011, 8th IEEE Int. Conf. on Embedded Software and Systems, ICESS 2011, 6th Int. Conf. on FCST 2011. 2011. pp. 1202-1209
@inproceedings{9a26712f559947d88845e7913495eeed,
title = "Efficient java native interface for android based mobile devices",
abstract = "Java has been making its way into the embedded systems and mobile devices like Android. The Java platform specifies the Java Native Interface (JNI) which allows Java code that runs within a JVM to interoperate with applications or libraries that are written in other languages and compiled to the host CPU. JNI plays an important role in embedded system as it provides a mechanism to interact with libraries specific to the platform and to take the advantage of fast execution of native programs. To address the overhead incurred in the JNI due to reflection and serialization, this paper proposes to cache class, field, and method information obtained from reflection for subsequent usage. It also provides a function to pin objects to their memory locations such that they can be accesses through the known reference. The Android emulator is used to evaluate the performance of these techniques and we observed that there was 10-30 {\%} performance gain in the Java Native Interface for two Android applications.",
keywords = "Android, embedded software, JNI",
author = "Yann-Hang Lee and Preetham Chandrian and Bo Li",
year = "2011",
doi = "10.1109/TrustCom.2011.162",
language = "English (US)",
isbn = "9780769546001",
pages = "1202--1209",
booktitle = "Proc. 10th IEEE Int. Conf. on Trust, Security and Privacy in Computing and Communications, TrustCom 2011, 8th IEEE Int. Conf. on Embedded Software and Systems, ICESS 2011, 6th Int. Conf. on FCST 2011",

}

TY - GEN

T1 - Efficient java native interface for android based mobile devices

AU - Lee, Yann-Hang

AU - Chandrian, Preetham

AU - Li, Bo

PY - 2011

Y1 - 2011

N2 - Java has been making its way into the embedded systems and mobile devices like Android. The Java platform specifies the Java Native Interface (JNI) which allows Java code that runs within a JVM to interoperate with applications or libraries that are written in other languages and compiled to the host CPU. JNI plays an important role in embedded system as it provides a mechanism to interact with libraries specific to the platform and to take the advantage of fast execution of native programs. To address the overhead incurred in the JNI due to reflection and serialization, this paper proposes to cache class, field, and method information obtained from reflection for subsequent usage. It also provides a function to pin objects to their memory locations such that they can be accesses through the known reference. The Android emulator is used to evaluate the performance of these techniques and we observed that there was 10-30 % performance gain in the Java Native Interface for two Android applications.

AB - Java has been making its way into the embedded systems and mobile devices like Android. The Java platform specifies the Java Native Interface (JNI) which allows Java code that runs within a JVM to interoperate with applications or libraries that are written in other languages and compiled to the host CPU. JNI plays an important role in embedded system as it provides a mechanism to interact with libraries specific to the platform and to take the advantage of fast execution of native programs. To address the overhead incurred in the JNI due to reflection and serialization, this paper proposes to cache class, field, and method information obtained from reflection for subsequent usage. It also provides a function to pin objects to their memory locations such that they can be accesses through the known reference. The Android emulator is used to evaluate the performance of these techniques and we observed that there was 10-30 % performance gain in the Java Native Interface for two Android applications.

KW - Android

KW - embedded software

KW - JNI

UR - http://www.scopus.com/inward/record.url?scp=84862932212&partnerID=8YFLogxK

UR - http://www.scopus.com/inward/citedby.url?scp=84862932212&partnerID=8YFLogxK

U2 - 10.1109/TrustCom.2011.162

DO - 10.1109/TrustCom.2011.162

M3 - Conference contribution

AN - SCOPUS:84862932212

SN - 9780769546001

SP - 1202

EP - 1209

BT - Proc. 10th IEEE Int. Conf. on Trust, Security and Privacy in Computing and Communications, TrustCom 2011, 8th IEEE Int. Conf. on Embedded Software and Systems, ICESS 2011, 6th Int. Conf. on FCST 2011

ER -