Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29a4b727 authored by Benoit Goby's avatar Benoit Goby
Browse files

Fix UsbDebuggingActivity not shown in adb tcpip mode

Bug: 8646772
Change-Id: If34c756bece903a0a452070bbc94ebc71d325bf6
parent 18455c30
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.hardware.usb.UsbManager;
import android.os.Bundle;
import android.os.IBinder;
import android.os.ServiceManager;
import android.os.SystemProperties;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
@@ -54,7 +55,10 @@ public class UsbDebuggingActivity extends AlertActivity
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        if (SystemProperties.getInt("service.adb.tcp.port", 0) == 0) {
            mDisconnectedReceiver = new UsbDisconnectedReceiver(this);
        }

        Intent intent = getIntent();
        String fingerprints = intent.getStringExtra("fingerprints");
        mKey = intent.getStringExtra("key");