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

error during setup -> You must specify a valid interface name. #7

Open
kekkodance opened this issue Oct 23, 2023 · 14 comments
Open

error during setup -> You must specify a valid interface name. #7

kekkodance opened this issue Oct 23, 2023 · 14 comments

Comments

@kekkodance
Copy link

I've given the app root permissions but it seems like python complains about an interface name

@kekkodance
Copy link
Author

(android)

@flashnuke
Copy link
Owner

what model and android version are you using?

@kekkodance
Copy link
Author

13, latest security update and quarterly year update

it's a Custom ROM based on AOSP called Kenvyra, for the Mi 9T (davinci)

running with KernelSU, not Magisk

@kekkodance
Copy link
Author

any fixes?

@flashnuke
Copy link
Owner

flashnuke commented Oct 30, 2023

I wasn't able to reproduce this unfortunately, but I merged this pr #8
delete the old apk, install the new one and try to run the app again, making sure you grant all permissions required

when this error happens again, the traceback should be printed on your screen, please share it here

@kekkodance
Copy link
Author

kekkodance commented Nov 2, 2023

the app just shows "DeadNet" in ascii now and crashes, i can't get into the main ui.
(i could get into the main ui once and got told that it couldn't find an SSID, then i allowed location access and it crashes)

@kekkodance
Copy link
Author

got it to work-ish. forgot i had to enable root in kernelsu. now this happens:
Screenshot_20231102-112146_Deadnet

@flashnuke
Copy link
Owner

got it to work-ish. forgot i had to enable root in kernelsu. now this happens:
Screenshot_20231102-112146_Deadnet

  1. Does this happen when you're connected to both cellular network and wifi? Can you try leaving only wifi on?
  2. Are location permissions granted?
  3. Is location service on?

@kekkodance
Copy link
Author

i think something's wrong in your new code, just revert the commits since turning on location makes the app crash, with or without mobile data it still makes that error

@flashnuke
Copy link
Owner

thanks, I reverted the commit

the fact the app cannot fetch the SSID name, assuming it is connected to one, means it might be an issue with location permissions / services, which are required since Android API 27

i will try to recompile the APK for a newer version (yours is API 33, assuming you use Android 13, and buildozer by default builds for 27) once i will be able to, but that will only be in a couple of days since i'm away from home :)

meanwhile, it would help me immensely if you run the apk with adb logcat and share the log results here, only if it's possible ofc

@kekkodance
Copy link
Author

i do not have access or the capability to run that for now, but i can tell you that the interface name most commonly is "wlan0". try selecting that

@kekkodance
Copy link
Author

all i can gather is this:
Screenshot_20231110-123230_App Manager

@flashnuke
Copy link
Owner

i do not have access or the capability to run that for now, but i can tell you that the interface name most commonly is "wlan0". try selecting that

the interface name should be fetched using the netifaces lib

I compiled the app for Android API 33, under the ver_33 branch: https://github.com/flashnuke/deadnet/blob/ver_33/apk/bin/deadnet-1.0-arm64-v8a_armeabi-v7a-debug.apk

is this one also making problems?

@kekkodance
Copy link
Author

this one doesn't crash. the issue is worse now as the wifi name doesn't even appear anymore. i think there's something wrong in the code, not the dependency
Screenshot_20231111-170930_Deadnet

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