Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android /system/framework/*.jar files

Tags:

android

adb

I did ls -al /system/framework/ on my Android 5.0.1 phone via adb shell

I noticed about 95% of the .jar files there were 309 bytes. After pulling one such file using adb pull and unzipping them showed the .jar file only contained /META-INF/MANIFEST.MF

Where is the actual dex code of these jar files. ?

P.S. My phone is not rooted.

like image 869
DevZer0 Avatar asked Jun 05 '15 01:06

DevZer0


People also ask

How to install JAR files in Android Studio?

Step 1: Download any jar file as your requirement. For example, download the following three mail dependency JAR files for Android Studio. Please refer to this link to download those JAR files. Download all the three JAR files somewhere in the system. Step 2: Copy these three files and paste it into the libs folder as shown in the below image.

What is a JAR file and how to open it?

In simple words, a JAR file is a file that contains a compressed version of .class files, audio files, image files, or directories. We can imagine .jar files as a zipped file (.zip) that is created by using WinZip software. Even, WinZip software can be used to extract the contents of a .jar.

How do I find the LIBS folder in Android Studio?

If you are unable to find the libs folder in Android studio then open your android project in “ Project” mode If the project is already opened in the “ Android ” mode. Then go to Your Project Name > app > libs and right-click on it and paste the downloaded JAR files.


1 Answers

From Lollipop, due to ART, the framework files are in /system/framework/arm/boot.oat file.

Use 'java -jar oat2dex.jar boot boot.oat' and you will get a dex folder containing framework.dex and framework-classes2.dex.

like image 105
John Cordeiro Avatar answered Sep 18 '22 23:09

John Cordeiro