Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UsbAccessoryService is obfuscated. #4

Closed
JonasVautherin opened this issue Sep 29, 2015 · 6 comments
Closed

UsbAccessoryService is obfuscated. #4

JonasVautherin opened this issue Sep 29, 2015 · 6 comments

Comments

@JonasVautherin
Copy link

We use UsbAccessoryService.getInstance().isConnected(), which is a public function. In SDK 2.4, it is obfuscated. I think it should not be.

@SilverChangjian
Copy link

Hi, the UsbAccessoryService is the internal class for our SDK and we have obfuscated this as well as other internal interface. If you want to check the connection, we suggest that you could use DJIDrone.getDjiCamera.getCameraConnectionIsOk()

@JonasVautherin
Copy link
Author

Hello! We use it to detect if the connection to the remote controller is established or not. getCameraConnectionIsOk() will tell if the connection to the camera is established or not. It is different.

Since UsbAccessoryService.registerAoaReceiver() is public, why wouldn't it be the same for UsbAccessoryService.isConnected()?

@JonasVautherin
Copy link
Author

Do you happen to have any news about that problem?

@SilverChangjian
Copy link

I have asked the team to add a method for getting the connection status between app and rc in DJIDrone. And the methods in UsbAccessoryService would be scrambled.

@JonasVautherin
Copy link
Author

Whatever you do, it would be nice to document it here once it is deployed. Thanks!

@JonasVautherin
Copy link
Author

isConnected is apparently not obfuscated anymore in SDK 2.4.1. Looks like it is fixed for this version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants