title: Make Launcher2 standalone
body: <p>I would like to make Launcher2 (AOSP Launcher) a standalone data app (not system) for my Android 4.1.1 device (Branch jb-release; API Level 16).</p>
  
  <p>I cannot find any resources on what to modify to make it standalone, so I tried it myself.
  Hope someone can help me doing that (for error list see lists below).</p>
  
  <p>Source code can be found here: <a href="https://android.googlesource.com/platform/packages/apps/Launcher2/+/jb-release/src/com/android/launcher2" rel="nofollow">https://android.googlesource.com/platform/packages/apps/Launcher2/+/jb-release/src/com/android/launcher2</a></p>
  
  <p><strong>AppsCustomizedPagedView.java:</strong></p>
  
  <pre><code>The import android.graphics.Insets cannot be resolved
  The import android.graphics.TableMaskFilter cannot be resolved
  </code></pre>
  
  <p>I guess both are due to <code>@Hide</code>. Any workaround or good solution here?</p>
  
  <p><strong>Cling.java:</strong></p>
  
  <pre><code>The method findViewToTakeAccessibilityFocusFromHover(View, View) of type Cling must override or implement a supertype method (Class Cling extends android.widget.FrameLayout)
  The method includeForAccessibility() is undefined for the type View
  </code></pre>
  
  <p><strong>HolographicOutlineHelper.java:</strong></p>
  
  <pre><code>The import android.graphics.TableMaskFilter cannot be resolved
  </code></pre>
  
  <p>Same as in AppsCustomizedPagedView.java (<code>@Hide</code>)</p>
  
  <p><strong>Launcher.java:</strong></p>
  
  <pre><code>The import android.os.SystemProperties cannot be resolved
  The import com.android.common cannot be resolved
  The method clearAllAnimations() is undefined for the type ValueAnimator
  The method startSearch(String, boolean, ComponentName, Bundle, boolean) in the type SearchManager is not applicable for the arguments (String, boolean, ComponentName, Bundle, boolean, Rect)
  SystemProperties cannot be resolved
  The method requestAccessibilityFocus() is undefined for the type Cling
  </code></pre>
  
  <p><strong>PagedViewWidgetImageView.java:</strong></p>
  
  <pre><code>The import android.graphics.Insets cannot be resolved
  The method getLayoutInsets() is undefined for the type Drawable
  </code></pre>
  
  <p><strong>RocketLauncher.java:</strong></p>
  
  <pre><code>The import android.support cannot be resolved
  The constructor RocketLauncher.Board(RocketLauncher, null) is undefined
  </code></pre>
  
  <p><strong>SearchDropTargetBar.java:</strong></p>
  
  <pre><code>The method getCompatibilityInfo() is undefined for the type Resources
  </code></pre>
  
  <p><strong>Utilities.java:</strong></p>
  
  <pre><code>The import android.graphics.TableMaskFilter cannot be resolved
  </code></pre>
  
  <p><strong>Workspace.java:</strong></p>
  
  <pre><code>The method getRealMetrics(DisplayMetrics) is undefined for the type Display
  The method setChildrenLayersEnabled(boolean) is undefined for the type ViewGroup
  </code></pre>