[GH-ISSUE #220] android: unable to get phone's MAC for TiPi #102

Open
opened 2026-03-02 12:03:29 +03:00 by kerem · 9 comments
Owner

Originally created by @kavishdevar on GitHub (Oct 1, 2025).
Original GitHub issue: https://github.com/kavishdevar/librepods/issues/220

just what the title says

Originally created by @kavishdevar on GitHub (Oct 1, 2025). Original GitHub issue: https://github.com/kavishdevar/librepods/issues/220 just what the title says
Author
Owner

@kavishdevar commented on GitHub (Oct 1, 2025):

@farinrav could you please drop the logs here once you can? thanks!

<!-- gh-comment-id:3356919585 --> @kavishdevar commented on GitHub (Oct 1, 2025): @farinrav could you please drop the logs here once you can? thanks!
Author
Owner

@kavishdevar commented on GitHub (Oct 1, 2025):

https://github.com/kavishdevar/librepods/issues/215#issuecomment-3356973403

could you please run su -c settings get secure bluetooth_address. Please hide the output if you get a MAC. I realized I shouldn't have logged all MACs without redacting them in logs- I've edited your other comments containing the logs.

<!-- gh-comment-id:3357012436 --> @kavishdevar commented on GitHub (Oct 1, 2025): https://github.com/kavishdevar/librepods/issues/215#issuecomment-3356973403 could you please run `su -c settings get secure bluetooth_address`. Please hide the output if you get a MAC. I realized I shouldn't have logged all MACs without redacting them in logs- I've edited your other comments containing the logs.
Author
Owner

@farinrav commented on GitHub (Oct 1, 2025):

Image
<!-- gh-comment-id:3357028401 --> @farinrav commented on GitHub (Oct 1, 2025): <img width="1344" height="756" alt="Image" src="https://github.com/user-attachments/assets/b55ba5cb-144c-421b-90fb-bb9250a89921" />
Author
Owner

@kavishdevar commented on GitHub (Oct 1, 2025):

That's weird! what if you try with adb, if you are able to?

<!-- gh-comment-id:3357048500 --> @kavishdevar commented on GitHub (Oct 1, 2025): That's weird! what if you try with adb, if you are able to?
Author
Owner

@farinrav commented on GitHub (Oct 1, 2025):

Image
<!-- gh-comment-id:3357062470 --> @farinrav commented on GitHub (Oct 1, 2025): <img width="1344" height="2992" alt="Image" src="https://github.com/user-attachments/assets/45ae5bcb-064e-4c7f-99be-92356df36cc3" />
Author
Owner

@kavishdevar commented on GitHub (Oct 1, 2025):

oh, interesting. What if you run su first in termux and then run the settings get secure bluetooth_address command?

And if it shows the address, then what does which su show in that new shell (after running su)? Maybe you have a package installed providing the su binary to termux rather than Magisk.

<!-- gh-comment-id:3357090654 --> @kavishdevar commented on GitHub (Oct 1, 2025): oh, interesting. What if you run `su` first in termux and then run the `settings get secure bluetooth_address` command? And if it shows the address, then what does `which su` show in that new shell (after running su)? Maybe you have a package installed providing the su binary to termux rather than Magisk.
Author
Owner

@farinrav commented on GitHub (Oct 1, 2025):

Never installed anything in termux cuz never really used it

Image
<!-- gh-comment-id:3357112094 --> @farinrav commented on GitHub (Oct 1, 2025): Never installed anything in termux cuz never really used it <img width="2992" height="1344" alt="Image" src="https://github.com/user-attachments/assets/f6854cb6-3c3b-48a3-b38f-4695a1b4c4de" />
Author
Owner

@farinrav commented on GitHub (Oct 1, 2025):

Second su binary 🤔

Image
<!-- gh-comment-id:3357128014 --> @farinrav commented on GitHub (Oct 1, 2025): Second su binary 🤔 <img width="1344" height="2992" alt="Image" src="https://github.com/user-attachments/assets/47bbd482-363b-4894-9d37-bcf6a8f9e2ee" />
Author
Owner

@kavishdevar commented on GitHub (Oct 1, 2025):

ah I see, so for some reason termux has another su in it's path at /data/data/com.termix/files/usr/bin/su. But that doesn't still explain why my app which just runs whatever su is in PATH is unable to run that settings command. I'll get back to you with more logs added to the app for further debugging.

<!-- gh-comment-id:3357819404 --> @kavishdevar commented on GitHub (Oct 1, 2025): ah I see, so for some reason termux has another `su` in it's path at `/data/data/com.termix/files/usr/bin/su`. But that doesn't still explain why my app which just runs whatever `su` is in PATH is unable to run that settings command. I'll get back to you with more logs added to the app for further debugging.
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/librepods#102
No description provided.