Neeloor Neeloor
Jul 17, 2017
8:17 am

USBNet is not working on Android 7 (Urgent)

Following is my code
SystemManager kcsm = SystemManager.getInstance();
SettingsManager settingm = SettingsManager.getInstance();
settingm.setAdbState(false);
kcsm.setUsbNetAddresses()
kcsm.setUsbNetState(true)

All return success

but when i run ifconfig  no new interfice created for USBnet

tab sm-t580

Samuel V.Samsung SEAP Moderator
Jul 17, 2017
9:28 pm

Hi Neeloor,

I'm sorry that you're seeing this issue with setUsbNetState() API. Unfortunately, since we do not have a USB net cable here, I'm unable to test the API further than their return values. As this forum is mainly used for light troubleshooting - please submit a ticket for this issue at samsungknox.com/support for further technical support. 

Best regards,

Samuel

Updated: Jul 17, 2017 at 9:28 pm

Neeloor Neeloor
Jul 18, 2017
7:03 am

Dear Samuel, could you check with your expert ? you don't need "USB net cable" you just need a usb cable.  Below is how to test

1) Enable USBNet

2) Connect device to linux pc using normal USB cable

3) run ifconfig from command line, you should see IP address you set on the interface
usb0 Link encap:Ethernet HWaddr 1a:15:f8:5b:21:37
inet addr:10.43.48.101 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::9815:f7ff:aaa:2135/64 Scope:Link

Samuel V.Samsung SEAP Moderator
Jul 18, 2017
4:40 pm

Hi Neeloor,

I have referred this issue to my colleague. We're now in the process of investigating this issue. I will let you know when I receive any update. 

Best regards,

Samuel

Neeloor Neeloor
Jul 24, 2017
10:03 am

Hello Any updates ? bit urgent

Samuel V.Samsung SEAP Moderator
Jul 24, 2017
4:40 pm

Hi Neeloor,

My apologies but our R&D team is still investigating the issue. As of now, they are trying to reproduce your issue with their own devices. I understand it's urgent for you and I will let you know as soon as I receive any more updates from them.

Best regards,

Samuel