[Galaxy Note II Android Development] KrzysztofGW:
I had to read sth about adb and cutting logs, because on my previous phone - HTC Desire ADB was completely broken.

I cannot simply copy mmcblk1p1 so it looks like another war against the terminal. Should I rename it?

The mmc1 folder has few folders and files inside. So what I should do?

shell@android:/sys/devices/platform/s3c-sdhci.2/mmc_host/mmc1 $ ls -l
ls -l
-rw-r--r-- root root 4096 2013-02-05 20:58 clkgate_delay
lrwxrwxrwx root root 2013-02-05 20:58 device -> ../../../s3c-sdhci.2
drwxr-xr-x root root 2013-02-05 20:57 mmc1:0001
drwxr-xr-x root root 2013-02-05 20:58 power
lrwxrwxrwx root root 2013-02-05 20:58 subsystem -> ../../../../../class/mmc_host
-rw-r--r-- root root 4096 2013-02-05 20:58 uevent

After restart the mmcblk1p1 (named 179:49) is overwritten with the new version. So this is standard output. Logcat:

I/ActivityManager( 3193): Displayed com.android.settings/.Settings: +616m
D/dalvikvm( 3193): GC_CONCURRENT freed 3112K, 36% free 22305K/34640K, pau
s+9ms, total 100ms
D/dalvikvm( 7285): GC_CONCURRENT freed 606K, 22% free 5875K/7484K, paused
s, total 27ms
D/audio_hw_primary( 1950): select_output_device: AUDIO_DEVICE_OUT_SPEAKER
I/ActivityManager( 3193): START u0 {act=android.intent.action.MAIN cmp=co
id.settings/.SubSettings (has extras)} from pid 7285
W/System.err( 7285): Removed 2131231229
W/System.err( 7285): Removed 2131231243
D/AndroidRuntime( 7285): Shutting down VM
W/dalvikvm( 7285): threadid=1: thread exiting with uncaught exception (gr
0eaf930)
W/MountService( 3193): getVolumeState(/storage/sdcard1): Unknown volume
E/AndroidRuntime( 7285): FATAL EXCEPTION: main
E/AndroidRuntime( 7285): java.lang.IllegalArgumentException
E/AndroidRuntime( 7285): at android.os.Parcel.readException(Parcel
429)
E/AndroidRuntime( 7285): at android.os.Parcel.readException(Parcel
379)
E/AndroidRuntime( 7285): at android.os.storage.IMountService$Stub$
etVolumeState(IMountService.java:241)
E/AndroidRuntime( 7285): at android.os.storage.StorageManager.getV
ate(StorageManager.java:555)
E/AndroidRuntime( 7285): at com.android.settings.deviceinfo.Storag
PreferenceCategory.updatePreferencesFromState(StorageVolumePreferenceCate
va:241)
E/AndroidRuntime( 7285): at com.android.settings.deviceinfo.Storag
PreferenceCategory.updateApproximate(StorageVolumePreferenceCategory.java
E/AndroidRuntime( 7285): at com.android.settings.deviceinfo.Storag
PreferenceCategory$1.handleMessage(StorageVolumePreferenceCategory.java:9
E/AndroidRuntime( 7285): at android.os.Handler.dispatchMessage(Han
va:99)
E/AndroidRuntime( 7285): at android.os.Looper.loop(Looper.java:137
E/AndroidRuntime( 7285): at android.app.ActivityThread.main(Activi
d.java:5191)
E/AndroidRuntime( 7285): at java.lang.reflect.Method.invokeNative(
Method)
E/AndroidRuntime( 7285): at java.lang.reflect.Method.invoke(Method
11)
E/AndroidRuntime( 7285): at com.android.internal.os.ZygoteInit$Met
rgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( 7285): at com.android.internal.os.ZygoteInit.mai
eInit.java:562)
E/AndroidRuntime( 7285): at dalvik.system.NativeStart.main(Native

W/ActivityManager( 3193): Force finishing activity com.android.settings
ttings
W/ActivityManager( 3193): Force finishing activity com.android.settings
ngs
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/Android
ned 34459648
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/Podcast
rned 0
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/DCIM) r
22544384
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/Rington
urned 0
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/Movies)
ed 0
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/Alarms)
ed 0
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/Music)
d 1606516736
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/Notific
returned 28672
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/Picture
rned 131072
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0) return
922752
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/Downloa
rned 2015232
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/media)
d 58892288
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/10) retur
408
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/ROMs) r
566906880
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0) return
922752
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/TunnyBr
returned 16379904
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/Music v
returned 32002048
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/SpeedSo
returned 24576
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/10) retur
408
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/TWRP) r
602705920
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/Backup)
ed 49152
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0/.tubema
urned 20480
W/ActivityManager( 3193): Activity pause timeout for ActivityRecord{415f7
com.android.settings/.SubSettings}
W/GoogleAnalyticsTracker( 4274): Store full. Not storing last event.
I/ActivityManager( 3193): No longer want com.tmobile.thememanager (pid 65
pty #17
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/0) return
922752
D/StorageMeasurement( 7285): getDirectorySize(/storage/emulated/10) retur
408
D/dalvikvm( 6975): GC_CONCURRENT freed 384K, 22% free 2367K/3008K, paused
s, total 10ms
D/dalvikvm( 6975): GC_CONCURRENT freed 386K, 22% free 2367K/3008K, paused
s, total 13ms
I/Process ( 7285): Sending signal. PID: 7285 SIG: 9
D/MountService( 3193): An IMountServiceListener has died!
I/WindowState( 3193): WIN DEATH: Window{412e1468 u0 com.android.settings/
roid.settings.SubSettings}
W/InputDispatcher( 3193): channel '42199048 com.android.settings/com.andr
tings.Settings (server)' ~ Consumer closed input channel or an error occu
events=0x9
E/InputDispatcher( 3193): channel '42199048 com.android.settings/com.andr
tings.Settings (server)' ~ Channel is unrecoverably broken and will be di

W/InputDispatcher( 3193): Attempted to unregister already unregistered in
nnel '42199048 com.android.settings/com.android.settings.Settings (server
I/ActivityManager( 3193): Process com.android.settings (pid 7285) has die
I/WindowState( 3193): WIN DEATH: Window{42199048 u0 com.android.settings/
roid.settings.Settings}

I know, Windows cmd sucks.

EDIT: Before:

127|root@android:/dev/block/vold # ls -l
ls -l
total 0
brw------- 1 root root 179, 48 Feb 6 09:36 ←[1;35m179:48←[0m
brw------- 1 root root 179, 49 Feb 6 09:36 ←[1;35m179:49←[0m
brw------- 1 root root 179, 53 Feb 6 09:36 ←[1;35m179:53←[0m

After:

1|root@android:/dev/block/vold # ls -l
ls -l
total 4
brw------- 1 root root 179, 48 Feb 6 09:36 ←[1;35m179:48←[0m
-rw-rw-rw- 1 root root 1024 Feb 6 10:16 ←[0;0m179:49←[0m
brw------- 1 root root 179, 53 Feb 6 09:36 ←[1;35m179:53←[0m

I/ActivityManager( 3193): Displayed com.android.settings/.Settings: +541ms
D/audio_hw_primary( 1950): select_output_device: AUDIO_DEVICE_OUT_SPEAKER
I/ActivityManager( 3193): START u0 {act=android.intent.action.MAIN cmp=com.andro
id.settings/.SubSettings (has extras)} from pid 10051
W/System.err(10051): Removed 2131231229
W/System.err(10051): Removed 2131231243
I/ActivityManager( 3193): Displayed com.android.settings/.SubSettings: +336ms
D/AndroidRuntime(10051): Shutting down VM
W/dalvikvm(10051): threadid=1: thread exiting with uncaught exception (group=0x4
0eaf930)
W/MountService( 3193): getVolumeState(/storage/usbdisk0): Unknown volume
E/AndroidRuntime(10051): FATAL EXCEPTION: main
E/AndroidRuntime(10051): java.lang.IllegalArgumentException
E/AndroidRuntime(10051): at android.os.Parcel.readException(Parcel.java:1
429)
E/AndroidRuntime(10051): at android.os.Parcel.readException(Parcel.java:1
379)
E/AndroidRuntime(10051): at android.os.storage.IMountService$Stub$Proxy.g
etVolumeState(IMountService.java:241)
E/AndroidRuntime(10051): at android.os.storage.StorageManager.getVolumeSt
ate(StorageManager.java:555)
E/AndroidRuntime(10051): at com.android.settings.deviceinfo.StorageVolume
PreferenceCategory.updatePreferencesFromState(StorageVolumePreferenceCategory.ja
va:241)
E/AndroidRuntime(10051): at com.android.settings.deviceinfo.StorageVolume
PreferenceCategory.updateApproximate(StorageVolumePreferenceCategory.java:308)
E/AndroidRuntime(10051): at com.android.settings.deviceinfo.StorageVolume
PreferenceCategory$1.handleMessage(StorageVolumePreferenceCategory.java:91)
E/AndroidRuntime(10051): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime(10051): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(10051): at android.app.ActivityThread.main(ActivityThrea
d.java:5191)
E/AndroidRuntime(10051): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(10051): at java.lang.reflect.Method.invoke(Method.java:5
11)
E/AndroidRuntime(10051): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime(10051): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:562)
E/AndroidRuntime(10051): at dalvik.system.NativeStart.main(Native Method)

W/ActivityManager( 3193): Force finishing activity com.android.settings/.SubSe
ttings
W/ActivityManager( 3193): Force finishing activity com.android.settings/.Setti
ngs
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/Android) retur
ned 34459648
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/Podcasts) retu
rned 0
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/DCIM) returned
22544384
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/Ringtones) ret
urned 0
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/Movies) return
ed 0
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/Alarms) return
ed 0
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/Music) returne
d 1606516736
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/Notifications)
returned 28672
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/Pictures) retu
rned 131072
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/Download) retu
rned 2015232
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/media) returne
d 58892288
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/ROMs) returned
566906880
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/TunnyBrowser)
returned 16379904
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/Music videos)
returned 32002048
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/SpeedSoftware)
returned 24576
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/TWRP) returned
602705920
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/Backup) return
ed 49152
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0/.tubemate) ret
urned 20480
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0) returned 2942
922752
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0) returned 2942
914560
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/10) returned 401
408
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/10) returned 401
408
W/ActivityManager( 3193): Activity pause timeout for ActivityRecord{415889c0 u0
com.android.settings/.SubSettings}
W/GoogleAnalyticsTracker( 4274): Store full. Not storing last event.
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/0) returned 2942
922752
D/StorageMeasurement(10051): getDirectorySize(/storage/emulated/10) returned 401
408
D/dalvikvm(10051): GC_CONCURRENT freed 445K, 19% free 6121K/7512K, paused 3ms+2m
s, total 26ms
D/dalvikvm( 4731): GC_CONCURRENT freed 387K, 22% free 2509K/3192K, paused 1ms+1m
s, total 11ms
D/dalvikvm( 6975): GC_CONCURRENT freed 386K, 22% free 2368K/3008K, paused 0ms+1m
s, total 8ms
D/dalvikvm( 3193): GC_CONCURRENT freed 7068K, 41% free 17884K/30284K, paused 3ms
+6ms, total 88ms
D/dalvikvm( 6975): GC_CONCURRENT freed 386K, 22% free 2367K/3008K, paused 2ms+1m
s, total 9ms
D/audio_hw_primary( 1950): select_output_device: AUDIO_DEVICE_OUT_SPEAKER
I/Process (10051): Sending signal. PID: 10051 SIG: 9
E/JavaBinder( 3193): !!! FAILED BINDER TRANSACTION !!!
E/JavaBinder( 3193): !!! FAILED BINDER TRANSACTION !!!
W/InputMethodManagerService( 3193): Got RemoteException sending setActive(false)
notification to pid 10051 uid 1000
D/MountService( 3193): An IMountServiceListener has died!
I/WindowState( 3193): WIN DEATH: Window{417cf780 u0 com.android.settings/com.and
roid.settings.Settings}
I/ActivityManager( 3193): Process com.android.settings (pid 10051) has died.
W/InputDispatcher( 3193): channel '4196ec20 com.android.settings/com.android.set
tings.SubSettings (server)' ~ Consumer closed input channel or an error occurred
. events=0x9
E/InputDispatcher( 3193): channel '4196ec20 com.android.settings/com.android.set
tings.SubSettings (server)' ~ Channel is unrecoverably broken and will be dispos
ed!
W/InputDispatcher( 3193): Attempted to unregister already unregistered input cha
nnel '4196ec20 com.android.settings/com.android.settings.SubSettings (server)'
I/WindowState( 3193): WIN DEATH: Window{4196ec20 u0 com.android.settings/com.and
roid.settings.SubSettings}

Looks the same :)

EDIT: Applying new script. No change for me.

I/ActivityManager( 3086): Displayed com.android.settings/.Settings: +308ms
D/audio_hw_primary( 1947): select_output_device: AUDIO_DEVICE_OUT_SPEAKER
I/ActivityManager( 3086): START u0 {act=android.intent.action.MAIN cmp=com.andro
id.settings/.SubSettings (has extras)} from pid 6551
W/System.err( 6551): Removed 2131231229
W/System.err( 6551): Removed 2131231243
I/ActivityManager( 3086): Displayed com.android.settings/.SubSettings: +370ms
D/AndroidRuntime( 6551): Shutting down VM
W/dalvikvm( 6551): threadid=1: thread exiting with uncaught exception (group=0x4
1398930)
W/MountService( 3086): getVolumeState(/storage/sdcard1): Unknown volume
E/AndroidRuntime( 6551): FATAL EXCEPTION: main
E/AndroidRuntime( 6551): java.lang.IllegalArgumentException
E/AndroidRuntime( 6551): at android.os.Parcel.readException(Parcel.java:1
429)
E/AndroidRuntime( 6551): at android.os.Parcel.readException(Parcel.java:1
379)
E/AndroidRuntime( 6551): at android.os.storage.IMountService$Stub$Proxy.g
etVolumeState(IMountService.java:241)
E/AndroidRuntime( 6551): at android.os.storage.StorageManager.getVolumeSt
ate(StorageManager.java:555)
E/AndroidRuntime( 6551): at com.android.settings.deviceinfo.StorageVolume
PreferenceCategory.updatePreferencesFromState(StorageVolumePreferenceCategory.ja
va:241)
E/AndroidRuntime( 6551): at com.android.settings.deviceinfo.StorageVolume
PreferenceCategory.updateApproximate(StorageVolumePreferenceCategory.java:308)
E/AndroidRuntime( 6551): at com.android.settings.deviceinfo.StorageVolume
PreferenceCategory$1.handleMessage(StorageVolumePreferenceCategory.java:91)
E/AndroidRuntime( 6551): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 6551): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 6551): at android.app.ActivityThread.main(ActivityThrea
d.java:5191)
E/AndroidRuntime( 6551): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 6551): at java.lang.reflect.Method.invoke(Method.java:5
11)
E/AndroidRuntime( 6551): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( 6551): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:562)
E/AndroidRuntime( 6551): at dalvik.system.NativeStart.main(Native Method)

W/ActivityManager( 3086): Force finishing activity com.android.settings/.SubSe
ttings
D/dalvikvm( 3086): GC_FOR_ALLOC freed 1471K, 18% free 22360K/27020K, paused 77ms
, total 79ms
W/ActivityManager( 3086): Force finishing activity com.android.settings/.Setti
ngs
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/Android) retur
ned 34459648
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/Podcasts) retu
rned 0
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/DCIM) returned
22544384
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/Ringtones) ret
urned 0
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/Movies) return
ed 0
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/Alarms) return
ed 0
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/Music) returne
d 1606516736
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/Notifications)
returned 28672
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/Pictures) retu
rned 131072
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/Download) retu
rned 2015232
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0) returned 2942
922752
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0) returned 2942
922752
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/10) returned 401
408
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/10) returned 401
408
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/media) returne
d 58892288
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/ROMs) returned
566906880
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/TunnyBrowser)
returned 16379904
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/Music videos)
returned 32002048
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/SpeedSoftware)
returned 24576
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/TWRP) returned
602705920
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/Backup) return
ed 49152
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0/.tubemate) ret
urned 20480
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/0) returned 2942
922752
D/StorageMeasurement( 6551): getDirectorySize(/storage/emulated/10) returned 401
408
W/ActivityManager( 3086): Activity pause timeout for ActivityRecord{41a8b5c0 u0
com.android.settings/.SubSettings}
W/GoogleAnalyticsTracker( 4265): Store full. Not storing last event.
D/dalvikvm( 6487): GC_CONCURRENT freed 384K, 22% free 2368K/3004K, paused 2ms+2m
s, total 12ms
D/dalvikvm( 6487): GC_CONCURRENT freed 386K, 22% free 2367K/3004K, paused 2ms+0m
s, total 8ms
I/Process ( 6551): Sending signal. PID: 6551 SIG: 9
I/WindowState( 3086): WIN DEATH: Window{41c61ce0 u0 com.android.settings/com.and
roid.settings.SubSettings}
D/MountService( 3086): An IMountServiceListener has died!
W/InputDispatcher( 3086): channel '41bd34d0 com.android.settings/com.android.set
tings.Settings (server)' ~ Consumer closed input channel or an error occurred.
events=0x9
E/InputDispatcher( 3086): channel '41bd34d0 com.android.settings/com.android.set
tings.Settings (server)' ~ Channel is unrecoverably broken and will be disposed!

W/InputDispatcher( 3086): Attempted to unregister already unregistered input cha
nnel '41bd34d0 com.android.settings/com.android.settings.Settings (server)'
I/ActivityManager( 3086): Process com.android.settings (pid 6551) has died.
I/WindowState( 3086): WIN DEATH: Window{41bd34d0 u0 com.android.settings/com.and
roid.settings.Settings}

User D3_ was able to r/w on the partition using file manager. I cannot...

Errors:

logcat | grep "name_of_crashing_app_or_process"
E/Trace ( 7181): error opening trace file: No such file or directory (2)
W/System.err( 7181): Removed 2131231229
W/System.err( 7181): Removed 2131231243
W/System.err( 7181): Removed 2131231229
W/System.err( 7181): Removed 2131231243
W/System.err( 7181): Removed 2131231229
W/System.err( 7181): Removed 2131231243
W/InputDispatcher( 3086): channel '4213da10 com.android.settings/com.android.set
tings.Settings (server)' ~ Consumer closed input channel or an error occurred.
events=0x9

First four displays while launching Settings.app, rest - submenu Storage.

EDIT: I am able to copy files :D THX! But it is a bit weird, because I can see the copied file while MiniTool Partition Wizard shows that the SD card has 2GB of files (that were before formatting). It took so long that I think that they have been copied back. I am going to check it on a LinuxLive... And after reboot I cannot copy anything again :(