Re: [android-building] Custom ROM: Odex'ing a prebuilt apk

395 views
Skip to first unread message

Jean-Baptiste Queru

unread,
May 27, 2013, 12:03:15 PM5/27/13
to android-...@googlegroups.com
IIRC it's not possible to pre-dexopt a pre-signed apk, as that'd invalidate the signature. I might be wrong.

JBQ


On Sat, May 25, 2013 at 3:42 AM, YoavG <yga...@gmail.com> wrote:
Hi All,

I've been messing around with custom ROM building and I have an issue I can't seem to figure out:
Suppose I have a prebuilt package (APK) I've developed and built with eclipse. I want to include this package as part of my custom ROM so I use the following Android.mk on that package:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := Applications
LOCAL_SRC_FILES := Applications.apk
LOCAL_MODULE_SUFFIX := .apk
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := APPS
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_MODULE_PATH := $(TARGET_OUT)/app
LOCAL_DEX_PREOPT := true
include $(BUILD_PREBUILT)

I've also have WITH_DEXPREOPT=true in my build environment.

Unfortunately the build system ignores both LOCAL_DEX_PREOPT and WITH_DEXPREOPT and doesn't generate an odex file for my project.

I'm building the Gingerbread source-tree.

Any way I can achieve this?

Thanks,
Yoav.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.

Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.
Reply all
Reply to author
Forward
0 new messages