[Nexus 6  Original Android Development] Aerys:
First bug is when I try to install an apk it says "Package Installer keeps stopping"

10-15 20:13:20.164 1188 2875 I ActivityManager: START u0 {act=android.provider.action.MANAGE_DOCUMENT dat=content://com.android.providers.downloads.documents/document/19 cmp=com.android.providers.downloads.ui/.TrampolineActivity} from uid 10013
10-15 20:13:20.205 2773 2773 D DownloadManager: Found 19 with status 8, reason 0
10-15 20:13:20.228 1188 2016 I ActivityManager: START u0 {act=android.intent.action.VIEW dat=content://com.android.providers.downloads.documents/document/19 typ=application/vnd.android.package-archive flg=0x3 cmp=com.android.packageinstaller/.InstallStart (has extras)} from uid 10012
10-15 20:13:20.295 1188 4521 I ActivityManager: Start proc 7981:com.android.packageinstaller/u0a22 for activity com.android.packageinstaller/.InstallStart
10-15 20:13:20.437 7981 7981 D AndroidRuntime: Shutting down VM
10-15 20:13:20.439 7981 7981 E AndroidRuntime: FATAL EXCEPTION: main
10-15 20:13:20.439 7981 7981 E AndroidRuntime: Process: com.android.packageinstaller, PID: 7981
10-15 20:13:20.439 7981 7981 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.packageinstaller/com.android.packageinstaller.InstallStart}: java.lang.NullPointerException: Attempt to get length of null array
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at android.app.ActivityThread.-wrap11(Unknown Source:0)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:105)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6541)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to get length of null array
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at com.android.packageinstaller.InstallStart.declaresAppOpPermission(InstallStart.java:134)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at com.android.packageinstaller.InstallStart.onCreate(InstallStart.java:81)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6975)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
10-15 20:13:20.439 7981 7981 E AndroidRuntime: ... 9 more
10-15 20:13:20.443 1188 3963 W ActivityManager: Force finishing activity com.android.packageinstaller/.InstallStart
10-15 20:13:20.451 1188 1235 I ActivityManager: Showing crash dialog for package com.android.packageinstaller u0
10-15 20:13:20.504 1188 5830 I OpenGLRenderer: Initialized EGL, version 1.4
10-15 20:13:20.504 1188 5830 D OpenGLRenderer: Swap behavior 2
10-15 20:13:20.633 351 583 D audio_hw_primary: disable_audio_route: usecase(1) reset and update mixer path: low-latency-playback speaker
10-15 20:13:20.634 351 583 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)
10-15 20:13:20.947 1188 1234 W ActivityManager: Activity pause timeout for ActivityRecord{12756a5 u0 com.android.packageinstaller/.InstallStart t19 f}
10-15 20:13:21.389 1188 1263 W WindowManager: Failed looking up window callers=com.android.server.wm.WindowManagerService.windowForClientLocked:5700 com.android.server.wm.WindowManagerService.removeWindow:1684 com.android.server.wm.Session.remove:212
10-15 20:13:21.944 1188 2008 D WificondControl: Scan result ready event
10-15 20:13:21.982 1188 2884 D WifiPermissionsUtil: Denied: no location permission
10-15 20:13:26.120 1188 1244 E LightsService: Light requested not available on this device. 2