-
Notifications
You must be signed in to change notification settings - Fork 0
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
Discussion #1
Comments
Note: |
@BayLee4 This is beyond my knowledge at this point. What I understand is that you proposed two ways:
|
@5hahryar Exactly, I'm also trying to learn as I never did that before, but if I understood correctly one way to achieve that would be the following : On the Java side [1]: On the C side [2]: [1] https://developer.android.com/reference/android/os/ParcelFileDescriptor#createPipe() |
I'm currently working on this branch : https://github.com/BayLee4/PortAuthority/tree/api_30 (Which includes my PR aaronjwood/PortAuthority#135) |
Ok, I finished the implementation, it's even working with API 31 now :) TODO: Work on the |
@BayLee4 Amazing work, I tested your code on a couple of devices and it works like a charm. |
@5hahryar Great news, I only tested on the emulator for now, so I'm glad to know it also works well on real devices! Regarding the MAC address I don't know yet, if it works it will probably be the randomized-per-network MAC address. But I guess this is still useful, as it would be the MAC address broadcasted to the local network. If it don't work, this is effectively not dramatic, but I would like to know why it's not working. |
Ok, seems like it doesn't even return a randomized-per-network MAC address, just |
Note: needs to verify that changing api to 31 didn't broke the CI, and if so, fix it. |
Ok, I updated @5hahryar Could you ping me here if you find any bug in the meantime? |
Done: should be PR ready. |
@BayLee4 Sure thing, I'll report any bugs that I may find. |
@5hahryar Thanks, I'll also do more testing on my real device. If we don't find any bug then I'll add it to my existing PR. |
First bug: |
Note: I noticed on my network that sometime hostnames are not resolved when they should have been. It happens randomly on each scan : some hosts are detected and some are not. I would like to implement a mecanism to retry on a failure to resolve the hostname, something like 3 times. But this hostname resolution is not simultaneous, so this retry mecanism would slow down the entire operation if implemented as is. Todo:
|
Update: hostnames can be resolved simultaneously, so it will be easier to implement and it will speed up by a lot the operation, which is currently done host by host in a blocking way. |
The more I look at the code, the more I realize it's so much outdated that it will be incredibly difficult to implement features I would like to see (like aaronjwood/PortAuthority#136). And I'm not even talking about the UI, which honestly look like an application of the first iPhone. I think I'll finish working on some tasks in the todo list above, but after that, if I manage to find the time, I may work on a new application on which it will be easier to implement Fing like features. @5hahryar Do you know where I can find a template/mockup for modern android application which would fit this use case? I'm no front end dev, so without such base this is sure that I couldn't do it because it would take me too much time. |
@BayLee4 I agree, using modern android development tools will help a lot. Kotlin features like flow and coroutines would be good examples of that. There are some guides on app architecture from android dev team that are very useful: arch samples, guides. |
@5hahryar Yes, that would be perfect! I'll drop the refactoring plan of the Would you be available on the next monday or so to discuss about the looks of this new application? That gives some time to imagine/find ideas for the averall design (aaand to rest after this long week). |
Continuation of the discussion from aaronjwood/PortAuthority#134
The text was updated successfully, but these errors were encountered: