title: Build Android from Source - Add Prebuilt App with Shared Library
body: <p>i've build my own androidrom from source and modified a few things.
  But now i wan't to add an prebuilt .apk to the project,
  read that i should make an folder in /packages/apps/
  and add the .apk and an Android.mk to it with following code</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
  LOCAL_MODULE := &lt;folder name&gt;
  LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
  LOCAL_MODULE_CLASS := APPS
  LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
  LOCAL_CERTIFICATE := PRESIGNED
  include $(BUILD_PREBUILT)
  </code></pre>
  
  <p>and the added the module to the in my case /device/sony/honami/full_honami.mk
  when i now run brunch i get the error after some time that no rule for target <em>*</em>
  so i tried some changes but nothing works for me and i can't find something where there write something other than this ... </p>
  
  <p>so i added the .apk to the /vendor/cm/prebuilts folder and in the *.mk where i found the other .apks where copyed to the device i added my app and run brunch without an error.</p>
  
  <p>But when i now start the app, which is on the device, it crash. 
  Via Logcat i found out that this apk have some .so files in it and that it can't find them.
  This is because i only copied the app not the .so files in the lib directory. But i can't find some solution for my problem.
  Should i now extract the .so file and copy it like the .apk to the path the app looks? or is there a better solution for doing this?</p>
  
  <p>Cheers
  Moritz</p>