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

Device not show up in script #33

Closed
sam1946 opened this issue Nov 1, 2022 · 3 comments
Closed

Device not show up in script #33

sam1946 opened this issue Nov 1, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@sam1946
Copy link

sam1946 commented Nov 1, 2022

Device info

Manufacturer: Samsung Galaxy S5
Android version: 11
Custom ROM/rooted? Rooted and custom rom, lineageOS, Android 11
Model: GT i9505

System info

Fedora 36, Linux, KDE


USB debugging activated
File transfer mode ON

My phone is recognised by my PC when attached with a wired connection. I can transfer files using KDE desktop. But ./backup.sh does not recognise the phone.

@sam1946 sam1946 added the bug Something isn't working label Nov 1, 2022
@mrrfv
Copy link
Owner

mrrfv commented Nov 1, 2022

could you post the output of adb devices while your device is connected?

@sam1946
Copy link
Author

sam1946 commented Nov 2, 2022

Hi - adb devices showed no devices. So I googled around and found this:

https://stackoverflow.com/questions/21170392/android-device-does-not-show-up-in-adb-list

On Android 11, the USB preferences are in: Settings > Connected Devices > USB

Mine was MTP as default.

I changed it to PTP, allowed the necessary permissions, and got it the script to work successfully.

A question - Is it possible to have the script just download photos & files only, and not any APKs and their data?

@mrrfv
Copy link
Owner

mrrfv commented Nov 2, 2022

Yes, but it requires modifying the script. All you have to do is remove or comment out the lines 210 to 226 (do not remove anything else, otherwise you could have issues with restoring the backup!):

https://github.com/mrrfv/linux-android-backup/blob/fc765bfc3f5b3ab6c1ee809248c2f611587e9f88/backup.sh#L210-L226

@mrrfv mrrfv closed this as completed Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants