title: How do I install an app into the data/app folder instead of the system/app folder in an AOSP build?
body: <p>I put my application folder in </p>
  
  <pre><code>packages/apps  // inside AOSP source code
  </code></pre>
  
  <p>Now my application has following <code>Android.mk</code> in the same folder:</p>
  
  <pre><code>LOCAL_PATH:= $(call my-dir)
  include $(CLEAR_VARS)
  
  LOCAL_MODULE_TAGS := optional
  
  LOCAL_SRC_FILES := $(call all-java-files-under, src)
  
  LOCAL_PACKAGE_NAME := package_name
  LOCAL_CERTIFICATE := platform
  
  include $(BUILD_PACKAGE)
  
  # Use the folloing include to make our test app
  include $(call all-makefiles-under,$(LOCAL_PATH))
  </code></pre>
  
  <p>Now when I build my AOSP project, it also compiles my application and puts the APK file inside:</p>
  
  <p><strong>out/target/product/$MY_PLATFORM/system/app</strong> </p>
  
  <p>But I want to put it in:</p>
  
  <p><strong>out/target/product/$MY_PLATFORM/data/app</strong></p>
  
  <p>How do I do this? What make file do I change?</p>