[GH-ISSUE #75] First time setup improvements #57

Closed
opened 2026-03-04 02:11:13 +03:00 by kerem · 10 comments
Owner

Originally created by @mirh on GitHub (Jun 10, 2022).
Original GitHub issue: https://github.com/tytydraco/LADB/issues/75

  • It is my understanding that Settings.Global.ADB_WIFI_ENABLED can programmatically detect what it has written on the tin
    • I believe the WRITE_SECURE_SETTINGS permission could also allow for that to be started automatically
  • none of that is going to be a thing before 11, but for starters you could at least check the normal ADB_ENABLED property
  • improve the "waiting for device respond" line, that leaves clueless users like in https://github.com/tytydraco/LADB/issues/65
Originally created by @mirh on GitHub (Jun 10, 2022). Original GitHub issue: https://github.com/tytydraco/LADB/issues/75 - [x] It is my understanding that `Settings.Global.ADB_WIFI_ENABLED` can programmatically detect what it has written on the tin * [x] I [believe](https://old.reddit.com/r/androiddev/comments/j6p8q4/wireless_debugging_in_android_11_off/gte71jd/) the WRITE_SECURE_SETTINGS permission could also allow for that to be started automatically - [ ] none of that is going to be a thing [before](https://android.googlesource.com/platform/frameworks/base/+/2076c04333781235021369d10752c22ff6bf8ced) 11, but for starters you could at least check the normal ADB_ENABLED property - [x] improve the "waiting for device respond" line, that leaves clueless users like in https://github.com/tytydraco/LADB/issues/65
kerem 2026-03-04 02:11:13 +03:00
Author
Owner

@nilsingha112 commented on GitHub (Jul 26, 2022):

LADB sowed
Enter pairing code: failed to parse address

<!-- gh-comment-id:1195984833 --> @nilsingha112 commented on GitHub (Jul 26, 2022): LADB sowed Enter pairing code: failed to parse address
Author
Owner

@tytydraco commented on GitHub (Oct 15, 2022):

  • It is my understanding that Settings.Global.ADB_WIFI_ENABLED can programmatically detect what it has written on the tin

    * [ ]  I [believe](https://old.reddit.com/r/androiddev/comments/j6p8q4/wireless_debugging_in_android_11_off/gte71jd/) the WRITE_SECURE_SETTINGS permission could also allow for that to be started automatically
    
    • none of that is going to be a thing before 11, but for starters you could at least check the normal ADB_ENABLED property

    • improve the "waiting for device respond" line, that leaves clueless users like in Android 9 ladb can't use #65

Very very true, I will have it not toggle the state for A10 and below! And I will implement those other changes as well.

<!-- gh-comment-id:1279824362 --> @tytydraco commented on GitHub (Oct 15, 2022): > * [x] It is my understanding that `Settings.Global.ADB_WIFI_ENABLED` can programmatically detect what it has written on the tin > > * [ ] I [believe](https://old.reddit.com/r/androiddev/comments/j6p8q4/wireless_debugging_in_android_11_off/gte71jd/) the WRITE_SECURE_SETTINGS permission could also allow for that to be started automatically > > * [x] none of that is going to be a thing [before](https://android.googlesource.com/platform/frameworks/base/+/2076c04333781235021369d10752c22ff6bf8ced) 11, but for starters you could at least check the normal ADB_ENABLED property > > * [x] improve the "waiting for device respond" line, that leaves clueless users like in [Android 9 ladb can't use #65](https://github.com/tytydraco/LADB/issues/65) Very very true, I will have it not toggle the state for A10 and below! And I will implement those other changes as well.
Author
Owner

@tytydraco commented on GitHub (Oct 16, 2022):

Added

<!-- gh-comment-id:1279858384 --> @tytydraco commented on GitHub (Oct 16, 2022): Added
Author
Owner

@mirh commented on GitHub (Oct 16, 2022):

Nothing of what I left unchecked seems to have happened actually.

<!-- gh-comment-id:1279864735 --> @mirh commented on GitHub (Oct 16, 2022): Nothing of what I left unchecked seems to have happened actually.
Author
Owner

@tytydraco commented on GitHub (Oct 16, 2022):

Nothing of what I left unchecked seems to have happened actually.

I already had the auto wireless debugging thing in a previous update. And I made sure that it only happens on Android 11+. And I added a little note in the new update for more details about the waiting screen. I think that's what you meant right?

<!-- gh-comment-id:1279887627 --> @tytydraco commented on GitHub (Oct 16, 2022): > Nothing of what I left unchecked seems to have happened actually. I already had the auto wireless debugging thing in a previous update. And I made sure that it only happens on Android 11+. And I added a little note in the new update for more details about the waiting screen. I think that's what you meant right?
Author
Owner

@mirh commented on GitHub (Oct 16, 2022):

Duh, I see #49 now sorry.
Idk why I started talking/worrying about A11 when my phone didn't even have it.

I think you are still missing the super dumb ADB_ENABLED check though.

<!-- gh-comment-id:1279947731 --> @mirh commented on GitHub (Oct 16, 2022): Duh, I see #49 now sorry. Idk why I started talking/worrying about A11 when my phone didn't even have it. I think you are still missing the super dumb ADB_ENABLED check though.
Author
Owner

@tytydraco commented on GitHub (Oct 16, 2022):

Duh, I see #49 now sorry. Idk why I started talking/worrying about A11 when my phone didn't even have it.

I think you are still missing the super dumb ADB_ENABLED check though.

Ah right. Does this actually enable USB debugging when you set the global setting? I know some stuff it doesn't actually toggle.

<!-- gh-comment-id:1280044678 --> @tytydraco commented on GitHub (Oct 16, 2022): > Duh, I see #49 now sorry. Idk why I started talking/worrying about A11 when my phone didn't even have it. > > I think you are still missing the super dumb ADB_ENABLED check though. Ah right. Does this actually enable USB debugging when you set the global setting? I know some stuff it doesn't actually toggle.
Author
Owner

@mirh commented on GitHub (Oct 16, 2022):

https://stackoverflow.com/questions/11314145/looking-to-enable-and-disable-toggle-adb-or-usb-debugging-using-command-line-o
It should AFAICT, but you need some unclear special permission to modify the setting. Unclear if it couldn't even just be the usual WRITE_SECURE_SETTINGS.
Nevertheless at least the check should be always possible.

<!-- gh-comment-id:1280095722 --> @mirh commented on GitHub (Oct 16, 2022): https://stackoverflow.com/questions/11314145/looking-to-enable-and-disable-toggle-adb-or-usb-debugging-using-command-line-o It should AFAICT, but you need some unclear special permission to modify the setting. Unclear if it couldn't even just be the usual WRITE_SECURE_SETTINGS. Nevertheless at least the check should be always possible.
Author
Owner

@tytydraco commented on GitHub (Oct 18, 2022):

https://stackoverflow.com/questions/11314145/looking-to-enable-and-disable-toggle-adb-or-usb-debugging-using-command-line-o It should AFAICT, but you need some unclear special permission to modify the setting. Unclear if it couldn't even just be the usual WRITE_SECURE_SETTINGS. Nevertheless at least the check should be always possible.

github.com/tytydraco/LADB@f10143fb90

Looks good?

<!-- gh-comment-id:1282893051 --> @tytydraco commented on GitHub (Oct 18, 2022): > https://stackoverflow.com/questions/11314145/looking-to-enable-and-disable-toggle-adb-or-usb-debugging-using-command-line-o It should AFAICT, but you need some unclear special permission to modify the setting. Unclear if it couldn't even just be the usual WRITE_SECURE_SETTINGS. Nevertheless at least the check should be always possible. https://github.com/tytydraco/LADB/commit/f10143fb90f6aaa7515a983c9e98f2f24235c868 Looks good?
Author
Owner

@mirh commented on GitHub (Oct 20, 2022):

Looks gucci to me, even though I didn't personally test it.

<!-- gh-comment-id:1285987286 --> @mirh commented on GitHub (Oct 20, 2022): Looks gucci to me, even though I didn't personally test it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LADB#57
No description provided.