deadnet icon indicating copy to clipboard operation
deadnet copied to clipboard

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

Open kekkodance opened this issue 2 years ago • 15 comments

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

kekkodance avatar Oct 23 '23 20:10 kekkodance

(android)

kekkodance avatar Oct 23 '23 20:10 kekkodance

what model and android version are you using?

flashnuke avatar Oct 24 '23 09:10 flashnuke

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 avatar Oct 24 '23 17:10 kekkodance

any fixes?

kekkodance avatar Oct 30 '23 07:10 kekkodance

I wasn't able to reproduce this unfortunately, but I merged this pr https://github.com/flashnuke/deadnet/pull/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

flashnuke avatar Oct 30 '23 12:10 flashnuke

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 avatar Nov 02 '23 10:11 kekkodance

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

kekkodance avatar Nov 02 '23 10:11 kekkodance

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?

flashnuke avatar Nov 03 '23 07:11 flashnuke

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

kekkodance avatar Nov 03 '23 09:11 kekkodance

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

flashnuke avatar Nov 03 '23 11:11 flashnuke

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 avatar Nov 03 '23 14:11 kekkodance

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

kekkodance avatar Nov 10 '23 11:11 kekkodance

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?

flashnuke avatar Nov 10 '23 16:11 flashnuke

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

kekkodance avatar Nov 11 '23 16:11 kekkodance