Skip to content

Comments

Fix OUI & Ports data#156

Open
madmini wants to merge 5 commits intoaaronjwood:developmentfrom
madmini:fix/oui-ports-data
Open

Fix OUI & Ports data#156
madmini wants to merge 5 commits intoaaronjwood:developmentfrom
madmini:fix/oui-ports-data

Conversation

@madmini
Copy link

@madmini madmini commented Sep 6, 2023

Fixes #155.

Wireshark removed the manuf and services files from their git repo which were used for MAC vendor/OUI resolution and port service name and description lookup, respectively. Fortunately, similar replacements are provided elsewhere.

As discussed in #155, Wireshark now hosts a generated file very similar to manuf at https://www.wireshark.org/download/automated/data/manuf.

The services cites the IANA's Service Name and Transport Protocol Port Number Registry as their original source, with permission from and acknowledgement to the IANA.

I have added acknowledgements for both sources to the readme.

Sadly, both replacements do not support Accept-Encoding: gzip, and progress tracking is somewhat broken for the OUI update (finishes when displaying ~33%) and does not work for the ports update.
For this and other reasons, replacements hosted by GitHub or other CDNs would be preferable.

new format has the first two fields padded with spaces in addition to separation by tabs
fetch original IANA csv
@Coehill
Copy link

Coehill commented Oct 9, 2023

@madmini, You may want to add @aaronjwood as a reviewer.

@madmini
Copy link
Author

madmini commented Oct 9, 2023

@madmini, You may want to add @aaronjwood as a reviewer.

i dont seem to have the permission to do that

@grzwolf
Copy link

grzwolf commented Apr 16, 2024

Pull request commits work perfect. Tested successfully in a local self build, even for SDK 34.
Great job!

Kudos to madmini.

@driehuis
Copy link

For the time being, just replacing master with release-4.0 in app/src/main/java/com/aaronjwood/portauthority/async/DownloadOuisAsyncTask.java makes it work again, which keeps the Github CDN as the source. For now at least, this branch seems to get regular updates, so making that change would buy time until a better source can be arranged.

@zegof
Copy link

zegof commented Nov 2, 2025

Works on SDK 35, tested in a local self build

@Quantum-Future
Copy link

Hello @aaronjwood, is it possible to release a new version with the fix to solve this problem?
The latest version available on F-Droid is 2.4.5 from September 15, 2022.
Thanks

@xcpn
Copy link

xcpn commented Jan 12, 2026

Works great!

Don't know if it's appropriate to reply under this with instructions, but if desired, I can provide a step-by-step for Debian on how to build a debug with this fix.

Very easy to patch and build, assuming the user knows at least the basics with Linux.

@0xDE57
Copy link

0xDE57 commented Jan 17, 2026

Don't know if it's appropriate to reply under this with instructions, but if desired, I can provide a step-by-step for Debian on how to build a debug with this fix.

Build instructions would be welcome. Currently android studio complains with:

Your build is currently configured to use incompatible Java 21.0.8 and Gradle 7.3.3. Cannot sync the project.
We recommend upgrading to Gradle version 9.0-milestone-1.
The minimum compatible Gradle version is 8.5.
The maximum compatible Gradle JVM version is 17.
Possible solutions:

  • Upgrade to Gradle 9.0-milestone-1 and re-sync
  • Upgrade to Gradle 8.5 and re-sync

And when updating gradle causes other build issues:

Unable to find method ''org.gradle.api.artifacts.Dependency org.gradle.api.artifacts.dsl.DependencyHandler.module(java.lang.Object)''
'org.gradle.api.artifacts.Dependency org.gradle.api.artifacts.dsl.DependencyHandler.module(java.lang.Object)'

@xcpn
Copy link

xcpn commented Jan 17, 2026

Don't know if it's appropriate to reply under this with instructions, but if desired, I can provide a step-by-step for Debian on how to build a debug with this fix.

Build instructions would be welcome. Currently android studio complains with:

Your build is currently configured to use incompatible Java 21.0.8 and Gradle 7.3.3. Cannot sync the project.
We recommend upgrading to Gradle version 9.0-milestone-1.
The minimum compatible Gradle version is 8.5.
The maximum compatible Gradle JVM version is 17.
Possible solutions:

  • Upgrade to Gradle 9.0-milestone-1 and re-sync
  • Upgrade to Gradle 8.5 and re-sync

And when updating gradle causes other build issues:

Unable to find method ''org.gradle.api.artifacts.Dependency org.gradle.api.artifacts.dsl.DependencyHandler.module(java.lang.Object)''
'org.gradle.api.artifacts.Dependency org.gradle.api.artifacts.dsl.DependencyHandler.module(java.lang.Object)'

Ok then, I will create a step-by-step in Discussions.

It won't be with just Android Studio though.

It will be solely on the terminal and will give instructions on how to download and configure everything that's absolutely necessary for a successful build. So maybe it'd be best for someone to setup a quick Debian VM, follow the steps and then dispose the VM after generating the APK. I'll try to make it as easy as possible for users who just know the basic in Linux, but experienced users should be able to adopt around the tutorial if they know what they're doing.

Will do it later today or tomorrow probably.

@xcpn
Copy link

xcpn commented Jan 17, 2026

The tutorial is ready in the Discussions page.

I also included a release APK (instead of a debug) built and signed by me. You can learn more in the link above.
@0xDE57

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

Successfully merging this pull request may close these issues.

Database 404 error

8 participants