-
Notifications
You must be signed in to change notification settings - Fork 8
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
cannot use output for Android 11 ? #9
Comments
Its hard to tell @rregn, but I'd guess from what you wrote that some of the wireless networks got transferred successfully. My (blind) guess would be that phone accepted networks from start of the file up to some point where it stumbled upon something it couldn't understand, and then import aborted and all wifi networks after that line did not get processed. Then it saved new (version3) file over (with just the information that it managed to import so far, thus losing most of the networks). You could verify that theory by comparing wifi networks that did manage to get imported with original file. If the theory is correct, you should be able to find network which cased import to abort (i.e. the first network that didn't get imported). My guess is that something will be special about that network - some custom parameters, different authentication types, strange (non-ASCII) name etc. When you have found it, then you could:
|
thank you for the fast reply and the ideas. So I had a closer look to the networks which are finally on the phone. It comes out, that it was the last 20 of the list in the wpa_supplicant. So i thought, there is a problem with the entry just before. I removed the last 22 entries in the wpa_supplicant. and tried again. Again just the last 20 (and my home network) remain |
wpa_supplicant.conf_8_24_era.txt |
I have come one step further - a problem was the cut of the characters behind WPA-PSK! after restart the 826k wpa_supplicant file shrinks to 372k , switching wifi on - i count around 155 networks |
That is strange that those are last 20 entries; it would mean my guess was probably wrong and something else is at work. Unfortunately, I don't know what 🤷. Is your wifi on or off when you try doing the import? Could you try keeping only first 30 entries and removing all other, and trying to import that? What is on the phone then (can you list exact network names that remain on the phone)?
Unfortunately I don't have rooted Android 11 device, sorry. |
e.g. key_mgmt=WPA-PSK FT-PSK WPA-PSK-SHA256 as in #9
I've just made some changes to avoid problems with that. Can you try that new version? |
i tried, (again wifi is off, when i insert the file, and after i reboot quickly) but the result is the same. shrinking takes around 10 sec, and i could see the .new file agein. i think, the problem is in the xml file. Now i found out that ALL "surviving entries" are open wifis - without key! |
I added here |
Aha, that is very useful information! Can you manually create one password-protected entry via normal Android UI, and extract from Then we can compare how it looks compared to the output that script generates... |
Hi
i uploaded a example file, did you examine it?
kind regards
Gesendet: Freitag, 23. August 2024 um 16:32 Uhr
Von: "Matija Nalis - ***@***.***" ***@***.***>
An: "mnalis/android-wifi-upgrade" ***@***.***>
Cc: "rregn" ***@***.***>, "Mention" ***@***.***>
Betreff: Re: [mnalis/android-wifi-upgrade] cannot use output for Android 11 ? (Issue #9)
here my wpa_supplicant.conf - note: whereever key_mgmt is "WPA-PSK .... " i cut after WPA_PSK, otherwise the script stops with error
I've just made some changes to avoid problems with that. Can you try that new version?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
yeah, sorry, I have some backlog to go through... I'll send you something to try in a few days |
Ok, here is test Does that work? Do all 50 networks survive? Or do some remain, but some get truncated? |
thanks!
after switching wifi on again the file does NOT shrink this time!
and yes, in stored networks i find 50 networks (named from demo1_01 to demo1_50)!
Message ID: ***@***.***>
|
And how about this one? It should also have 50 networks (but named from |
it does grow a little bit from 130 to 135 kB (after switching wifi on) and :
I have still the old demo01_xx networks in my stored listMessage ID: ***@***.***>
|
Was there supposed to be some more information after that "and :" ? Because it didn't make it to GitHub 😢
So, what is the end result? Only 50 But that looks very promising so far - when you answer this question, I'll have to send you few more test to try to isolate exactly what directive is problematic; but so far it looks it should be possible to devise some fix when all data is collected! |
sorry, i didnt express it clearly:
there no demo2_xx networks in the list.
|
Ok, great; how about this |
same:
Only the old demo01_xx networks are in my stored listMessage ID: ***@***.***>
|
OK, how about |
it does shrink a little bit from 136 to 130 kB (after switching wifi on) and :
all the demo04-xx are there (no 01 anymore)
|
And |
it does shrink a little bit from 136 to 132 kB (after switching wifi on) and : all the demo04-xx are still there (no demo05 !)
B.T.W.
today afternoon (4 p.m. GMT +2) i start going to vacation, so i cannot longer use the smartphone as a test system. I would much appreciate if the final script could be ready. on my trip i have no access to perl
|
OK, it seems culprit is If it does work on Android 11 (Realme X2)., I'd appreciate if you could test if new script still works for conversion "Android 6 to an Samsung A7 with Android 10" (because if Samsung A7 only works with old script, I'll have to add some options which version to use...) Have fun on your vacation! 😸 |
(and if that regular script from |
I tested the new script. it produces around 800kB output, but when i insert and start wifi again, it shrinks to ~130kb and finally the demo4 networks are there - and nothing else
in a 2nd try, it shrinks to 53 kB and has no demo04, but around 20 from my entries, !
…--
the broken hardcoded version generates around 1MB and it shrinks to 207kB and look good. But it has just around 80 entries from me.
when made a 2nd try, it has also around 80 entries, but now different ones!
so i can start into holidays, its better than before, thanksMessage ID: ***@***.***>
|
Anyway, if you're back from vacation and would like to try to debug this more, let me know... It is a good progress that some entries are imported now, but it seems some entry is problematic and making it fail. But it probably would take several tries to try to pin down the culprit before the solution can be devised... |
This works fine from Android 6 to an Samsung A7 with Android 10
But now i have another movement from Android 6 (Sony Z3) to Android 11 (Realme X2).
The script produces around 800 KB .
Then i copy the output to /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml with wifi off and reboot
But when i now enable Wifi, i can see in the total commander, how the file shrinks down to about 50kB. Nearly all entries are lost. S
Couldn't it be because the Android 11 doesn't fit the format?
In the native wificonfigstore the 3rd line says version value=3
while the version generated by this script is version=1
The text was updated successfully, but these errors were encountered: