Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Android execution jar file?(Just out of curiosity)

I am developing an android application Api level 8.

Now I would like to know about where is the actual jar (not the 'android.jar' Api jar included in the project) file that contains the execution body, i.e The implementation jar file of 'android.jar.

I searched a lot through the android sdk installation directory but no such jar file was found. Does any jar file exist for this purpose? If not, then how does the android virtual device execute the source code?

Thanks.

like image 202
Sreejith G Avatar asked Jan 17 '23 21:01

Sreejith G


2 Answers

you can find the platforms android.jar file here, ..\android-sdk-windows\platforms\android-15.

The platforms jar is different from the emulators jar as the later contains the hidden & internal API as well.

If you want the implementation class files, you will have to pull the jar file from the emulator of that platform.

In higher API levels you might also have to de-compile dex or odex files to class files.

More information here.

I hope this will help..

like image 128
R.daneel.olivaw Avatar answered Jan 20 '23 03:01

R.daneel.olivaw


The jar files and the class files are never needed .Your code when converted to apk is not converted into different classes and jars but apks.If open you see apk file (they are just zip files) you will see no jars and classes .they are converted to dex files. Remember Android does not uses JVM but uses DVM thats optimized of Moblie use.(If i have understood what you want)

like image 37
Its not blank Avatar answered Jan 20 '23 03:01

Its not blank