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.
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.
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.
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With