Skip to content
Snippets Groups Projects
  • Nick Kralevich's avatar
    85396e93
    Revert "Make bluetooth enforcing." · 85396e93
    Nick Kralevich authored
    The following CTS tests are failing on nakasig-userdebug
    
    Failing tests
    android.bluetooth.cts.BasicAdapterTest#test_enableDisable
    android.bluetooth.cts.BasicAdapterTest#test_getAddress
    android.bluetooth.cts.BasicAdapterTest#test_getBondedDevices
    android.bluetooth.cts.BasicAdapterTest#test_getName
    android.bluetooth.cts.BasicAdapterTest#test_listenUsingRfcommWithServiceRecord
    
    Logs
    =====
    junit.framework.AssertionFailedError: expected:<11> but was:<10>
    at android.bluetooth.cts.BasicAdapterTest.enable(BasicAdapterTest.java:278)
    at android.bluetooth.cts.BasicAdapterTest.test_enableDisable(BasicAdapterTest.java:128)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
    at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
    at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
    
    Reverting this change until we get a proper fix in place.
    
    SELinux bluetooth denials:
    
    nnk@nnk:~$ grep "avc: " Redirecting.txt | grep bluetooth
    <5>[  831.249360] type=1400 audit(1389206307.416:215): avc:  denied  { write } for  pid=14216 comm="BluetoothAdapte" name="state" dev=sysfs ino=4279 scontext=u:r:bluetooth:s0 tcontext=u:object_r:sysfs:s0 tclass=file
    <5>[  834.329536] type=1400 audit(1389206310.496:217): avc:  denied  { write } for  pid=14218 comm="BTIF" name="state" dev=sysfs ino=4279 scontext=u:r:bluetooth:s0 tcontext=u:object_r:sysfs:s0 tclass=file
    
    This reverts commit 2eba9c5f.
    
    Bug: 12475767
    Change-Id: Id4989f6b371fa02986299114db70279e151ad64a
    85396e93
    History
    Revert "Make bluetooth enforcing."
    Nick Kralevich authored
    The following CTS tests are failing on nakasig-userdebug
    
    Failing tests
    android.bluetooth.cts.BasicAdapterTest#test_enableDisable
    android.bluetooth.cts.BasicAdapterTest#test_getAddress
    android.bluetooth.cts.BasicAdapterTest#test_getBondedDevices
    android.bluetooth.cts.BasicAdapterTest#test_getName
    android.bluetooth.cts.BasicAdapterTest#test_listenUsingRfcommWithServiceRecord
    
    Logs
    =====
    junit.framework.AssertionFailedError: expected:<11> but was:<10>
    at android.bluetooth.cts.BasicAdapterTest.enable(BasicAdapterTest.java:278)
    at android.bluetooth.cts.BasicAdapterTest.test_enableDisable(BasicAdapterTest.java:128)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
    at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
    at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
    
    Reverting this change until we get a proper fix in place.
    
    SELinux bluetooth denials:
    
    nnk@nnk:~$ grep "avc: " Redirecting.txt | grep bluetooth
    <5>[  831.249360] type=1400 audit(1389206307.416:215): avc:  denied  { write } for  pid=14216 comm="BluetoothAdapte" name="state" dev=sysfs ino=4279 scontext=u:r:bluetooth:s0 tcontext=u:object_r:sysfs:s0 tclass=file
    <5>[  834.329536] type=1400 audit(1389206310.496:217): avc:  denied  { write } for  pid=14218 comm="BTIF" name="state" dev=sysfs ino=4279 scontext=u:r:bluetooth:s0 tcontext=u:object_r:sysfs:s0 tclass=file
    
    This reverts commit 2eba9c5f.
    
    Bug: 12475767
    Change-Id: Id4989f6b371fa02986299114db70279e151ad64a