4

When I build CM7 's system app (eg. ADWLauncher) , I switch to ADWLauncher's folder and run "mm" command, then I get .apk and .odex file, How can I just get .apk file with dex in it. I mean should I change somewhere in Android.mk or generic.mk to let the compilation just result apk file which can instsall directly.

Daniel
  • 231
  • 1
  • 3
  • 6

3 Answers3

3

Try this mm WITH_DEXPREOPT=false -B

siva
  • 1,850
  • 13
  • 14
1

You can use backsmali which can combine odex and apk files

baksmali -a [api_level] -x [odex_file] -d [framework_dir]

Or change the WITH_DEXPREOPT environment variable in

build/target/board/generic/BoardConfig.mk
sherif
  • 2,282
  • 19
  • 21
0

This usually happens (at least to me) when I have not declared a device I'm building for with breakfast. For example, without running breakfast hammerhead, I got Dialer.apk and arm/Dialer.odex in the output directory. Furthermore, the device refused to run the binary, even after putting the .odex file in place.

Running breakfast first causes make to generate a single proper Dialer.apk that installs cleanly (using adb root/remount/push) on my device.

George Hilliard
  • 15,402
  • 9
  • 58
  • 96