Back to project page android-ssl-bypass.
The source code is released under:
Copyright (c) 2012, iSEC Partners. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the ...
If you think the Android project android-ssl-bypass listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.isecpartners.android.jdwp.connection; /* ww w . j a v a 2s . c o m*/ import java.util.List; import com.sun.jdi.Bootstrap; import com.sun.jdi.VirtualMachineManager; import com.sun.jdi.connect.AttachingConnector; import com.sun.jdi.connect.ListeningConnector; public class DVMConnectionProvider { public static AttachingConnector getAttachingConnector(String transport) { VirtualMachineManager vmm = Bootstrap.virtualMachineManager(); List<AttachingConnector> connectors = vmm.attachingConnectors(); for (AttachingConnector conn : connectors) { if (conn.transport().name().equals(transport)) { return conn; } } return null; } public static ListeningConnector getListeningConnector(String transport) { VirtualMachineManager vmm = Bootstrap.virtualMachineManager(); List<ListeningConnector> connectors = vmm.listeningConnectors(); for (ListeningConnector conn : connectors) { if (conn.transport().name().equals(transport)) { return conn; } } return null; } }