File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
services/java/com/android/server Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -780,11 +780,12 @@ public boolean isTetheringStarted() {
780780 event .checkCode (TetherStatusResult );
781781 return event .getMessage ().endsWith ("started" );
782782 }
783+
784+ // TODO(BT) Remove
783785 public void startReverseTethering (String iface )
784786 throws IllegalStateException {
785787 if (DBG ) Slog .d (TAG , "startReverseTethering in" );
786- mContext .enforceCallingOrSelfPermission (
787- android .Manifest .permission .CHANGE_NETWORK_STATE , "NetworkManagementService" );
788+ mContext .enforceCallingOrSelfPermission (CONNECTIVITY_INTERNAL , TAG );
788789 // cmd is "tether start first_start first_stop second_start second_stop ..."
789790 // an odd number of addrs will fail
790791 String cmd = "tether start-reverse" ;
@@ -798,9 +799,10 @@ public void startReverseTethering(String iface)
798799 BluetoothTetheringDataTracker .getInstance ().startReverseTether (iface );
799800
800801 }
802+
803+ // TODO(BT) Remove
801804 public void stopReverseTethering () throws IllegalStateException {
802- mContext .enforceCallingOrSelfPermission (
803- android .Manifest .permission .CHANGE_NETWORK_STATE , "NetworkManagementService" );
805+ mContext .enforceCallingOrSelfPermission (CONNECTIVITY_INTERNAL , TAG );
804806 try {
805807 mConnector .doCommand ("tether stop-reverse" );
806808 } catch (NativeDaemonConnectorException e ) {
You can’t perform that action at this time.
0 commit comments