How to combine ODEX and VDEX files with an APK file?
1
vote
0
answers
4788
views
I have an **.apk** file, also comes with it two files, one **.odex** files, another **.vdex** file. The files were pulled from the **/system/app** folder of another phone.
The files hierarchy on the original system is like this:
``
/system/app/FM2/FM2.apk
/system/app/FM2/oat/arm64/FM2.odex
/system/app/FM2/oat/arm64/FM2.vdex
``
What I want to do here is to **combine all these files into a single APK file**, so that I may be able to install it on other phones.
(*Let's ignore for the moment that the other phone may not have the required dependency installed on it*)
**So, how can I combine *.apk*, *.odex*, and *.vdex* files together into a single *.apk* file?**
**P.S.** I have read some articles about using smali and baksmali to convert odex to dex and vice-versa, but I couln't find the detailed tutorial that I need. Also, these articles never talk about VDEX files, which is an issue here.
**P.P.S.** Both the source and destination phones are exactly the same with Android 10, but different regions.
Asked by Tom
(11 rep)
Apr 21, 2020, 03:05 PM
Last activity: Apr 21, 2020, 03:16 PM
Last activity: Apr 21, 2020, 03:16 PM