JesusFreke / smali

smali/baksmali
6.3k stars 1.07k forks source link

baksmali cant find dex files #859

Open Dialgatrainer02 opened 1 year ago

Dialgatrainer02 commented 1 year ago

trying to deodex a waydroid android 11 rom to enable sinature spoofing and microg

comand run "java -jar baksmali.jar x framework/oat/x86_64/services.odex -d framework/x86_64 -d framework"

error "Exception in thread "main" java.lang.RuntimeException: "framework/oat/x86_64/services.odex" has no dex files"

jdk version "openjdk version "1.8.0_352" OpenJDK Runtime Environment (build 1.8.0_352-b08) OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)"

RenateUSB commented 1 year ago

.odex files are not .apk or .jar or .zip, they are ELF files. (Ok, at least on ARM devices. They are some kind of executable on x86.) As such they have no dex files inside them. You probably want to simply use /system/framework/services.jar