[Nexus 7 Android Development] akillenb:
Okay - Music wasn't using any data - but didn't have storage permissions - after granting storage, it opened, but trying to play a song, it crashed - still was not using any data.

Kogcat:

11-30 11:35:16.125 520 1002 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.music/.MusicBrowserActivity (has extras)} from uid 10044 on display 0

11-30 11:35:16.230 520 1111 I ActivityManager: Start proc 4622:com.android.music/u0a109 for activity com.android.music/.MusicBrowserActivity

11-30 11:35:16.243 1114 1126 I art : Background sticky concurrent mark sweep GC freed 13144(760KB) AllocSpace objects, 5(132KB) LOS objects, 21% free, 5MB/7MB, paused 5.924ms total 79.454ms

11-30 11:35:16.344 4622 4622 I art : Starting a blocking GC AddRemoveAppImageSpace

11-30 11:35:16.345 4622 4622 W System : ClassLoader referenced unknown path: /system/app/Music/lib/arm

11-30 11:35:16.453 520 1111 I ActivityManager: START u0 {act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/artistalbum flg=0x4000000 cmp=com.android.music/.ArtistAlbumBrowserActivity (has extras)} from uid 10109 on display 0

11-30 11:35:16.704 1259 3305 E DatabaseUtils: Writing exception to parcel

11-30 11:35:16.704 1259 3305 E DatabaseUtils: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/artists from pid=4622, uid=10109 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

11-30 11:35:16.704 1259 3305 E DatabaseUtils:	at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:608)

11-30 11:35:16.704 1259 3305 E DatabaseUtils:	at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:483)

11-30 11:35:16.704 1259 3305 E DatabaseUtils:	at android.content.ContentProvider$Transport.query(ContentProvider.java:212)

11-30 11:35:16.704 1259 3305 E DatabaseUtils:	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)

11-30 11:35:16.704 1259 3305 E DatabaseUtils:	at android.os.Binder.execTransact(Binder.java:565)

11-30 11:35:16.714 4622 4639 W AsyncQuery: Exception thrown during handling EVENT_ARG_QUERY

11-30 11:35:16.714 4622 4639 W AsyncQuery: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/artists from pid=4622, uid=10109 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

11-30 11:35:16.714 4622 4639 W AsyncQuery:	at android.os.Parcel.readException(Parcel.java:1684)

11-30 11:35:16.714 4622 4639 W AsyncQuery:	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)

11-30 11:35:16.714 4622 4639 W AsyncQuery:	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)

11-30 11:35:16.714 4622 4639 W AsyncQuery:	at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)

11-30 11:35:16.714 4622 4639 W AsyncQuery:	at android.content.ContentResolver.query(ContentResolver.java:532)

11-30 11:35:16.714 4622 4639 W AsyncQuery:	at android.content.ContentResolver.query(ContentResolver.java:474)

11-30 11:35:16.714 4622 4639 W AsyncQuery:	at android.content.AsyncQueryHandler$WorkerHandler.handleMessage(AsyncQueryHandler.java:79)

11-30 11:35:16.714 4622 4639 W AsyncQuery:	at android.os.Handler.dispatchMessage(Handler.java:102)

11-30 11:35:16.714 4622 4639 W AsyncQuery:	at android.os.Looper.loop(Looper.java:154)

11-30 11:35:16.714 4622 4639 W AsyncQuery:	at android.os.HandlerThread.run(HandlerThread.java:61)

11-30 11:35:16.769 1259 1334 E DatabaseUtils: Writing exception to parcel

11-30 11:35:16.769 1259 1334 E DatabaseUtils: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/fs_id from pid=4622, uid=10109 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

11-30 11:35:16.769 1259 1334 E DatabaseUtils:	at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:608)

11-30 11:35:16.769 1259 1334 E DatabaseUtils:	at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:483)

11-30 11:35:16.769 1259 1334 E DatabaseUtils:	at android.content.ContentProvider$Transport.query(ContentProvider.java:212)

11-30 11:35:16.769 1259 1334 E DatabaseUtils:	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)

11-30 11:35:16.769 1259 1334 E DatabaseUtils:	at android.os.Binder.execTransact(Binder.java:565)

11-30 11:35:16.771 4622 4622 D AndroidRuntime: Shutting down VM

11-30 11:35:16.772 4622 4622 E AndroidRuntime: FATAL EXCEPTION: main

11-30 11:35:16.772 4622 4622 E AndroidRuntime: Process: com.android.music, PID: 4622

11-30 11:35:16.772 4622 4622 E AndroidRuntime: java.lang.RuntimeException: Unable to create service com.android.music.MediaPlaybackService: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/fs_id from pid=4622, uid=10109 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.app.ActivityThread.handleCreateService(ActivityThread.java:3175)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.app.ActivityThread.-wrap5(ActivityThread.java)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1551)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:102)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6088)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

11-30 11:35:16.772 4622 4622 E AndroidRuntime: Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/fs_id from pid=4622, uid=10109 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1684)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.content.ContentResolver.query(ContentResolver.java:532)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.content.ContentResolver.query(ContentResolver.java:474)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at com.android.music.MusicUtils.getCardId(MusicUtils.java:1309)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at com.android.music.MediaPlaybackService.onCreate(MediaPlaybackService.java:339)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	at android.app.ActivityThread.handleCreateService(ActivityThread.java:3165)

11-30 11:35:16.772 4622 4622 E AndroidRuntime:	... 8 more

11-30 11:35:16.775 520 651 W ActivityManager: Force finishing activity com.android.music/.ArtistAlbumBrowserActivity

11-30 11:35:16.859 520 1690 I OpenGLRenderer: Initialized EGL, version 1.4

11-30 11:35:16.859 520 1690 D OpenGLRenderer: Swap behavior 1

11-30 11:35:17.280 520 534 W ActivityManager: Activity pause timeout for ActivityRecord{3584106 u0 com.android.music/.ArtistAlbumBrowserActivity t192 f}

11-30 11:35:17.310 520 534 I WindowManager: Failed to capture screenshot of Token{107b3c7 ActivityRecord{3584106 u0 com.android.music/.ArtistAlbumBrowserActivity t192 f}} appWin=Window{34fcfe1 u0 Starting com.android.music} drawState=4

11-30 11:35:17.478 1114 1119 I art : Do partial code cache collection, code=91KB, data=124KB

11-30 11:35:17.479 1114 1119 I art : After code cache collection, code=89KB, data=122KB

11-30 11:35:17.479 1114 1119 I art : Increasing code cache capacity to 512KB

11-30 11:35:17.824 520 545 I WindowManager: Destroying surface Surface(name=Starting com.android.music) called by com.android.server.wm.WindowStateAnimator.destroySurface:2033 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:884 com.android.server.wm.WindowState.removeLocked:1471 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2487 com.android.server.wm.AppWindowToken.destroySurfaces:420 com.android.server.wm.AppWindowToken.destroySurfaces:382 com.android.server.wm.WindowStateAnimator.finishExit:568 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:427

11-30 11:35:17.876 520 545 W WindowManager: Failed looking up window

11-30 11:35:17.876 520 545 W WindowManager: java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@6613548 does not exist

11-30 11:35:17.876 520 545 W WindowManager:	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9288)

11-30 11:35:17.876 520 545 W WindowManager:	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9279)

11-30 11:35:17.876 520 545 W WindowManager:	at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2305)

11-30 11:35:17.876 520 545 W WindowManager:	at com.android.server.wm.Session.remove(Session.java:193)

11-30 11:35:17.876 520 545 W WindowManager:	at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3285)

11-30 11:35:17.876 520 545 W WindowManager:	at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5880)

11-30 11:35:17.876 520 545 W WindowManager:	at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3621)

11-30 11:35:17.876 520 545 W WindowManager:	at android.os.Handler.dispatchMessage(Handler.java:102)

11-30 11:35:17.876 520 545 W WindowManager:	at android.os.Looper.loop(Looper.java:154)

11-30 11:35:17.876 520 545 W WindowManager:	at android.os.HandlerThread.run(HandlerThread.java:61)

11-30 11:35:17.876 520 545 W WindowManager:	at com.android.server.ServiceThread.run(ServiceThread.java:46)

11-30 11:35:22.586 520 651 W ActivityManager: Force finishing activity com.android.music/.ArtistAlbumBrowserActivity

11-30 11:35:22.596 520 651 W ActivityManager: Force finishing activity com.android.music/.MusicBrowserActivity

11-30 11:35:22.599 520 651 I ActivityManager: Killing 4622:com.android.music/u0a109 (adj 0): crash

11-30 11:35:22.601 520 651 D ActivityManager: cleanUpApplicationReco