[Galaxy Note GT-N7000 Original Android Development] daedric:
I seem to be suffering from some media service issues. Namely, most if not all ringtones are not showing up (12/11 nightly)

Anyone else?

Uhm...

I/MediaProvider( 4774): Upgrading media database from version 0 to 700, which wi
ll destroy all old data
E/SQLiteLog( 4774): (1) no such table: album_info

Ok, aparently forcing the device to actually see any media (with a file manager) makes the media services index it properly.

Now, new one -> Camera problems:

D/exynos_camera( 1901): Found 8 preview buffers available!
D/CameraStorage( 5894): External storage state=mounted
V/CAM_PhotoModule( 5894): mJpegCallbackFinishTime = 80ms
E/CameraStorage( 5894): Failed to write data
E/CameraStorage( 5894): java.io.FileNotFoundException: /storage/sdcard0/DCIM/Camera/IMG_20131113_022634.jpg: open failed: EACCES (Permission denied)

Question is, why? Perhaps the device is confusing internal with external storage... maybe not.

So, via adb :

touch /storage/sdcard1/aaa

No error.

echo 123 > /storage/sdcard1/aaa

No error.

Open ES File Explorer, navigate there. Open it, as text, with HTML Viewer: no error

Open it with ES Note Editor -> Error:

W/System.err( 4210): java.io.FileNotFoundException: /storage/sdcard1/aaa: open f
ailed: EACCES (Permission denied)
W/System.err( 4210): at libcore.io.IoBridge.open(IoBridge.java:409)
W/System.err( 4210): at java.io.RandomAccessFile.<init>(RandomAccessFile.java:118)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.d.<init>(UnknownSource)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.a.a(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.c.g(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.PopNoteEditor.i(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.PopNoteEditor.u(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.ag.doInBackground(Unknown Source)
W/System.err( 4210): at android.os.AsyncTask$2.call(AsyncTask.java:288)
W/System.err( 4210): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err( 4210): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err( 4210): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/System.err( 4210): at java.lang.Thread.run(Thread.java:811)
I/art ( 4210): GcCauseBackground sticky partial concurrent mark sweep GC freed 10368(670KB) AllocSpace objects, 3(148KB) LOS objects, 6% free, 18MB/19MB, pa
used 8.606ms total 31.614ms
W/System.err( 4210): Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied)
W/System.err( 4210): at libcore.io.Posix.open(Native Method)
W/System.err( 4210): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
W/System.err( 4210): at libcore.io.IoBridge.open(IoBridge.java:393)
W/System.err( 4210): ... 12 more
W/System.err( 4210): java.io.IOException: fail to open file.
W/System.err( 4210): at com.estrongs.android.pop.app.editor.d.c(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.c.g(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.PopNoteEditor.i(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.PopNoteEditor.u(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.ag.doInBackground(Unknown Source)
W/System.err( 4210): at android.os.AsyncTask$2.call(AsyncTask.java:288)
W/System.err( 4210): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err( 4210): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err( 4210): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/System.err( 4210): at java.lang.Thread.run(Thread.java:811)
W/System.err( 4210): java.io.IOException: fail to open file.
W/System.err( 4210): at com.estrongs.android.pop.app.editor.d.d(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.c.g(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.PopNoteEditor.i(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.PopNoteEditor.u(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.ag.doInBackground(Unknown Source)
W/System.err( 4210): at android.os.AsyncTask$2.call(AsyncTask.java:288)
W/System.err( 4210): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err( 4210): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err( 4210): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/System.err( 4210): at java.lang.Thread.run(Thread.java:811)
W/System.err( 4210): java.io.FileNotFoundException: /storage/sdcard1/aaa: open failed: EACCES (Permission denied)
W/System.err( 4210): at libcore.io.IoBridge.open(IoBridge.java:409)
W/System.err( 4210): at java.io.RandomAccessFile.<init>(RandomAccessFile.java:118)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.d.<init>(UnknownSource)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.a.a(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.c.f(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.PopNoteEditor.i(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.PopNoteEditor.u(Unknown Source)
W/System.err( 4210): at com.estrongs.android.pop.app.editor.ag.doInBackground(Unknown Source)
W/System.err( 4210): at android.os.AsyncTask$2.call(AsyncTask.java:288)
W/System.err( 4210): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err( 4210): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err( 4210): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/System.err( 4210): at java.lang.Thread.run(Thread.java:811)
W/System.err( 4210): Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied)
W/System.err( 4210): at libcore.io.Posix.open(Native Method)
W/System.err( 4210): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
W/System.err( 4210): at libcore.io.IoBridge.open(IoBridge.java:393)
W/System.err( 4210): ... 12 more
I/ActivityManager( 2265): Displayed com.estrongs.android.pop/.app.editor.PopNoteEditor: +150ms
W/ResourceType( 4210): No package identifier when getting value for resource number 0x00000000
W/ResourceType( 4210): No package identifier when getting value for resource number 0x00000000
W/ResourceType( 4210): No package identifier when getting value for resource number 0x00000000
W/ResourceType( 4210): No package identifier when getting value for resource number 0x00000000
W/ResourceType( 4210): No package identifier when getting value for resource number 0x00000000
D/Yamaha-MC1N2-Audio( 1901): yamaha_mc1n2_audio_output_stop()
D/Yamaha-MC1N2-Audio( 1901): yamaha_mc1n2_audio_route_start()

Could it be related to this:

<!-- ================================== -->
<!-- Permissions for sdcard interaction -->
<!-- ================================== -->
<eat-comment />

<!-- Group of permissions that are related to SD card access. -->
<permission-group android:name="android.permission-group.STORAGE"
android:label="@string/permgrouplab_storage"
android:icon="@drawable/perm_group_storage"
android:description="@string/permgroupdesc_storage"
android:permissionGroupFlags="personalInfo"
android:priority="240" />

<!-- Allows an application to read from external storage.
<p>Any app that declares the {@link #WRITE_EXTERNAL_STORAGE} permission is implicitly
granted this permission.</p>
<p>Currently, this permission is not enforced and all apps still have access to read from
external storage without this permission. That will change in a future release and apps
will require this permission to read from external storage. So if your
app reads from the external storage, you should add this permission to your app now
to ensure that it continues to work on future versions of Android.</p>
<p>You can test your app with the permission enforced by either running your app on the
Android Emulator when running Android 4.1 or higher, or enabling <em>Protect USB
storage</em> under Developer options in the Settings app on a device running Android 4.1 or
higher.</p>
<p class="note"><strong>Note:</strong> If <em>both</em> your <a
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#min">{@code
minSdkVersion}</a> and <a
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
targetSdkVersion}</a> values are set to 3 or lower, the system implicitly
grants your app this permission. If you don't need this permission, be sure your <a
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
targetSdkVersion}</a> is 4 or higher.-->
<permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:label="@string/permlab_sdcardRead"
android:description="@string/permdesc_sdcardRead"
android:protectionLevel="normal" />

<!-- Allows an application to write to external storage.
<p class="note"><strong>Note:</strong> If <em>both</em> your <a
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#min">{@code
minSdkVersion}</a> and <a
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
targetSdkVersion}</a> values are set to 3 or lower, the system implicitly
grants your app this permission. If you don't need this permission, be sure your <a
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code
targetSdkVersion}</a> is 4 or higher. -->
<permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:permissionGroup="android.permission-group.STORAGE"
android:label="@string/permlab_sdcardWrite"
android:description="@string/permdesc_sdcardWrite"
android:protectionLevel="dangerous" />

<!-- Allows an application to write to internal media storage
@hide -->
<permission android:name="android.permission.WRITE_MEDIA_STORAGE"
android:permissionGroup="android.permission-group.STORAGE"
android:label="@string/permlab_mediaStorageWrite"
android:description="@string/permdesc_mediaStorageWrite"
android:protectionLevel="signature|system" />

I think i fixed it, but it's a hack.... not sure if it was this though:

in /etc/permissions/platform.xml

Original:

<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>

<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
</permission>

Altered:

<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
[B]<group gid="media_rw"/>[/B]
</permission>

<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
[B]<group gid="media_rw"/>[/B]
</permission>

Camera is working at least... again, not sure. The last reboot might have fixed something, but i did alter platform.xml.