Loading src/com/android/bluetooth/opp/BluetoothOppUtility.java +6 −1 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ import android.database.Cursor; import android.net.Uri; import android.os.Environment; import android.os.SystemProperties; import android.util.EventLog; import android.util.Log; import com.android.bluetooth.R; Loading Loading @@ -75,7 +76,11 @@ public class BluetoothOppUtility { new ConcurrentHashMap<Uri, BluetoothOppSendFileInfo>(); public static boolean isBluetoothShareUri(Uri uri) { return uri.toString().startsWith(BluetoothShare.CONTENT_URI.toString()); if (uri.toString().startsWith(BluetoothShare.CONTENT_URI.toString()) && !uri.getAuthority().equals(BluetoothShare.CONTENT_URI.getAuthority())) { EventLog.writeEvent(0x534e4554, "225880741", -1, ""); } return uri.getAuthority().equals(BluetoothShare.CONTENT_URI.getAuthority()); } public static BluetoothOppTransferInfo queryRecord(Context context, Uri uri) { Loading Loading
src/com/android/bluetooth/opp/BluetoothOppUtility.java +6 −1 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ import android.database.Cursor; import android.net.Uri; import android.os.Environment; import android.os.SystemProperties; import android.util.EventLog; import android.util.Log; import com.android.bluetooth.R; Loading Loading @@ -75,7 +76,11 @@ public class BluetoothOppUtility { new ConcurrentHashMap<Uri, BluetoothOppSendFileInfo>(); public static boolean isBluetoothShareUri(Uri uri) { return uri.toString().startsWith(BluetoothShare.CONTENT_URI.toString()); if (uri.toString().startsWith(BluetoothShare.CONTENT_URI.toString()) && !uri.getAuthority().equals(BluetoothShare.CONTENT_URI.getAuthority())) { EventLog.writeEvent(0x534e4554, "225880741", -1, ""); } return uri.getAuthority().equals(BluetoothShare.CONTENT_URI.getAuthority()); } public static BluetoothOppTransferInfo queryRecord(Context context, Uri uri) { Loading