[Samsung Gear 2] biktor_gj:
When you remove MediaProvider and ClockworkSetup it crashes even harder. You can see it on logcat. When it crashes, it takes the InputEvent handler, and half the system with it, because mediaserver is still crashing. Then all the system server goes down and restarts.

Partial log:

I/AudioFlinger( 625): loadHwModule() error -22 loading module primary

W/AudioPolicyManagerBase( 625): could not open HW module primary

E/AudioPolicyManagerBase( 625): Not output found for attached devices 00000002

E/AudioPolicyManagerBase( 625): Failed to open primary output

E/AudioPolicyManagerBase( 625): getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION

E/AudioPolicyManagerBase( 625): getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION

E/AudioPolicyService( 625): couldn't init_check the audio policy (No such device)

E/AudioService( 409): Media server started.

F/libc ( 625): Fatal signal 11 (SIGSEGV) at 0x0 (code=1), thread 625 (mediaserver)

I/FusedLocation( 409): engine started (com.android.location.fused)

I/DEBUG ( 472): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG ( 472): Build fingerprint: 'samsung/b2/b2:4.4W.1/KGW42N/1387258:user/release-keys'

I/DEBUG ( 472): Revision: '13'

I/DEBUG ( 472): pid: 625, tid: 625, name: mediaserver >>> /system/bin/mediaserver <<<

I/DEBUG ( 472): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000

W/NativeCrashListener( 409): Couldn't find ProcessRecord for pid 625

I/GCoreUlr( 601): Not starting ULR on wearable device.

I/ActivityManager( 409): Delay finish: com.google.android.gms/.wearable.init.InitializeGmsWearableReceiver

I/ActivityManager( 409): Resuming delayed broadcast

I/MultiDex( 557): install

I/MultiDex( 557): MultiDexExtractor.load(/system/priv-app/PrebuiltGmsCoreForClockworkWearable.apk, false)

I/DEBUG ( 472): r0 40e6850c r1 00000000 r2 00000000 r3 40a6c8d0

I/DEBUG ( 472): AM write failure (32 / Broken pipe)

I/DEBUG ( 472): r4 40e6850c r5 00000000 r6 00000199 r7 bebcd6d8

I/DEBUG ( 472): r8 00000199 r9 00000000 sl 40a6c868 fp bebcdb6c

I/DEBUG ( 472): ip 4013af38 sp bebcd6a8 lr 40032e05 pc 40032d3c cpsr 800f0030

I/DEBUG ( 472): d0 697472617473656e d1 006e0069006c0067

I/DEBUG ( 472): d2 006900640065003d d3 00410049002e0074

I/DEBUG ( 472): d4 006f006900640075 d5 0069006c006f0050

I/DEBUG ( 472): d6 0065005300790063 d7 0063006900760072

I/DEBUG ( 472): d8 0000000000000000 d9 0000000000000000

I/DEBUG ( 472): d10 0000000000000000 d11 0000000000000000

I/DEBUG ( 472): d12 0000000000000000 d13 0000000000000000

I/DEBUG ( 472): d14 0000000000000000 d15 0000000000000000

I/DEBUG ( 472): d16 0000000000000000 d17 0000000000000fff

I/DEBUG ( 472): d18 41bbb3fbbd000000 d19 0000000000000000

I/DEBUG ( 472): d20 0000000000000000 d21 0000000000000000

I/DEBUG ( 472): d22 0000000000000000 d23 0000000000000000

I/DEBUG ( 472): d24 0000000000000000 d25 0000000000000000

I/DEBUG ( 472): d26 0000000000000000 d27 0000000000000000

I/DEBUG ( 472): d28 0000000000000000 d29 0000000000000000

I/DEBUG ( 472): d30 0000000000000000 d31 0000000000000000

I/DEBUG ( 472): scr 00000010

I/DEBUG ( 472):

I/DEBUG ( 472): backtrace:

I/DEBUG ( 472): #00 pc 00015d3c /system/lib/libaudioflinger.so

I/DEBUG ( 472): #01 pc 00015e01 /system/lib/libaudioflinger.so

I/DEBUG ( 472): #02 pc 00017107 /system/lib/libaudioflinger.so

I/DEBUG ( 472): #03 pc 0005d2a5 /system/lib/libmedia.so (android::BnAudioFlinger::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+1096)

I/DEBUG ( 472): #04 pc 000168ed /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+60)

I/DEBUG ( 472): #05 pc 0001afad /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+540)
I/DEBUG ( 472): #06 pc 0001b0cf /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+38)
I/DEBUG ( 472): #07 pc 0001b111 /system/lib/lbbinder.so (android::IPCThreadState::joinThreadPool(bool)+48)
I/DEBUG ( 472): #08 pc 000015f5 /system/bin/mediaserver
I/DEBUG ( 472): #09 pc 0000db2b /system/lib/libc.so (__libc_init+50)
I/DEBUG ( 472): #10 pc 00001868 /system/bin/mediaserver
I/DEBUG ( 472):
I/DEBUG ( 472): stack:
I/DEBUG ( 472): bebcd668 00000010
I/DEBUG ( 472): bebcd66c 0000000c
I/DEBUG ( 472): bebcd670 4007b881 /system/lib/libc.so (dlmalloc)
I/DEBUG ( 472): bebcd674 40e68510
I/DEBUG ( 472): bebcd678 00000000
I/DEBUG ( 472): bebcd67c 00000199
I/DEBUG ( 472): bebcd680 bebcd6d8 [stack]
I/DEBUG ( 472): bebcd684 00000199
I/DEBUG ( 472): bebcd688 00000000
I/DEBUG ( 472): bebcd68c 40a6c868
I/DEBUG ( 472): bebcd690 bebcdb6c [stack]
I/DEBUG ( 472): bebcd694 4007aa1d /system/lib/libc.so (malloc+12)
I/DEBUG ( 472): bebcd698 4013a960 /system/lib/libutils.so
I/DEBUG ( 472): bebcd69c 400c991d /system/lib/libstdc++.so (operator new(unsigned int)+6)
I/DEBUG ( 472): bebcd6a0 40e68504
I/DEBUG ( 472): bebcd6a4 40032d51 /system/lib/libaudioflinger.so
I/DEBUG ( 472): #00 bebcd6a8 40e68500
I/DEBUG ( 472): bebcd6ac 40032e05 /system/lib/libaudioflinger.so
I/DEBUG ( 472): #01 bebcd6b0 00000199
I/DEBUG ( 472): bebcd6b4 bebcd6d8 [stack]
I/DEBUG ( 472): bebcd6b8 40a6c788
I/DEBUG ( 472): bebcd6bc bebcd6e0 [stack]
I/DEBUG ( 472): bebcd6c0 40e68500
I/DEBUG ( 472): bebcd6c4 4003410b /system/lib/libaudioflinger.so
I/DEBUG ( 472): #02 bebcd6c8 40a6cfc0
I/DEBUG ( 472): bebcd6cc 40a6c79c
I/DEBUG ( 472): bebcd6d0 40a6d070 /dev/binder
I/DEBUG ( 472): bebcd6d4 0000000f
I/DEBUG ( 472): bebcd6d8 40a6c788
I/DEBUG ( 472): bebcd6dc 00000000
I/DEBUG ( 472): bebcd6e0 40a6c788
I/DEBUG ( 472): bebcd6e4 bebcd8dc [stack]
I/DEBUG ( 472): bebcd6e8 00000000
I/DEBUG ( 472): bebcd6ec bebcd8ac [stack]
I/DEBUG ( 472): bebcd6f0 bebcd8a8 [stack]
I/DEBUG ( 472): bebcd6f4 000003f5
I/DEBUG ( 472): bebcd6f8 00000271
I/DEBUG ( 472): bebcd6fc 401e52a7 /system/lib/libmedia.so (android::BnAudioFlinger::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+1098)

As I said, removing Android audio is not a matter of removing files, but disabling the service on the framework so AudioFlinger doesn't run as a service, as requested by the system server. To do that you have to recompile it...

Logcat: http://pastebin.com/uBjgb0Ha

If you want more info check this:https://groups.google.com/forum/#!topic/android-porting/uHgdqhMyNHo