Debian and Android phone [SOLVED]

If none of the more specific forums is the right place to ask

Debian and Android phone [SOLVED]

Postby uthappam » 2018-12-03 15:51

My Debian 9 PC communicated well over a USB cable with my Samsung Z3 phone, which ran on the not popular Tizen operating system. However, I have not been able to get a Nokia 2.1 (Android Go) phone, bought yesterday, to speak to my computer. This makes things difficult as I must look for numbers and e-mail addresses elsewhere. When the phone is connected to the computer it appears in two places, one labelled "Android" and the other "CDROM". The first is empty and the second has directories which are unreadable.
Last edited by uthappam on 2018-12-06 18:41, edited 1 time in total.
uthappam
 
Posts: 208
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Debian and Android phone

Postby milomak » 2018-12-03 20:09

what does dmesg show when you plug in the usb?
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1853
Joined: 2009-06-09 22:20

Re: Debian and Android phone

Postby CwF » 2018-12-03 21:07

Check on the phone how it presents through usb. That 'cdrom' is a emulated cd drive that would likely have some utilities and maybe a pdf, and apparently an unrecognized file system. I had a 'mtk' phone that did that, the setting was on the phone to set appear as mass storage device, that cdrom, as camera and some other options, etc.
CwF
 
Posts: 165
Joined: 2018-06-20 15:16

Re: Debian and Android phone

Postby uthappam » 2018-12-04 03:10

Here we are, milomak.
Code: Select all
dmesg: read kernel buffer failed: Operation not permitted


Thank you, CwF. I shall look in the phone for these settings.
uthappam
 
Posts: 208
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Debian and Android phone

Postby milomak » 2018-12-04 22:28

uthappam wrote:Here we are, milomak.
Code: Select all
dmesg: read kernel buffer failed: Operation not permitted


Thank you, CwF. I shall look in the phone for these settings.

i would have expected the dmesg output to have some /dev/ type of output

maybe try something like dmesg | grep -B 5 -A 5 /dev
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1853
Joined: 2009-06-09 22:20

Re: Debian and Android phone

Postby uthappam » 2018-12-05 05:37

dmesg | grep -B 5 -A 5 /dev gave what dmesg had given earlier. When I ran it with sudo, it gave a long output -- in which did not contain anything about my phone.
uthappam
 
Posts: 208
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Debian and Android phone

Postby trinidad » 2018-12-05 18:56

Perhaps you need the gnokii deb package, or try gammu.

TC
You can't believe your eyes if your imagination is out of focus.
trinidad
 
Posts: 17
Joined: 2016-08-04 14:58

Re: Debian and Android phone

Postby uthappam » 2018-12-06 10:51

Thank you, Trinidad. I shall try gnokii -- but gammu (and wammu) do't work with Android.
uthappam
 
Posts: 208
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Debian and Android phone

Postby Dai_trying » 2018-12-06 13:11

I use gmtp to access files from my Android phone, you would need to set the phone connection to mtp and I have noticed it sometimes takes quite some time to connect but once connected the transfer rate is good.
Dai_trying
 
Posts: 567
Joined: 2016-01-07 12:25

Re: Debian and Android phone

Postby uthappam » 2018-12-06 13:41

Trinidad, it turned out that gnokii doesn't support my Nokia.

Thank you, Dai_trying; although I have a suspicion that I have tried it already.

EDIT The download was quick and no setting up was needed. Now I can transfer files in both directions -- which is what I wanted.
uthappam
 
Posts: 208
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Debian and Android phone

Postby Dai_trying » 2018-12-06 18:27

uthappam wrote:EDIT The download was quick and no setting up was needed. Now I can transfer files in both directions -- which is what I wanted.


Was that with gmtp? and if you could mark the topic as solved (edit title of first post) others can find it easier. :D
Dai_trying
 
Posts: 567
Joined: 2016-01-07 12:25

Re: Debian and Android phone [SOLVED]

Postby uthappam » 2018-12-06 18:42

Thank you for reminding me.
uthappam
 
Posts: 208
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Debian and Android phone [SOLVED]

Postby milomak » 2018-12-06 22:40

oh yes. android moved to mtp. gmtp doesn't seem to be the package that is needed

on my imac
# dpkg -l | grep mtp
Code: Select all
ii  gmtp                                                             1.3.10-1+b1                           amd64        simple file transfer program for MTP based devices
ii  go-mtpfs                                                         0.0~git20180209.d6f8f3c-1             amd64        Mount MTP devices over FUSE
ii  jmtpfs                                                           0.5-2+b2                              amd64        FUSE based filesystem for accessing MTP devices
ii  kio-mtp                                                          0.75+git20140304-2                    amd64        access to MTP devices for applications using the KDE Platform
ii  libmtp-common                                                    1.1.13-1.1                            all          Media Transfer Protocol (MTP) common files
ii  libmtp-dev:amd64                                                 1.1.13-1.1                            amd64        Media Transfer Protocol (MTP) development files
ii  libmtp-runtime                                                   1.1.13-1.1                            amd64        Media Transfer Protocol (MTP) runtime tools
ii  libmtp9:amd64                                                    1.1.13-1.1                            amd64        Media Transfer Protocol (MTP) library
ii  libnet-smtp-ssl-perl                                             1.04-1                                all          Perl module providing SSL support to Net::SMTP
ii  mtp-tools                                                        1.1.13-1.1                            amd64        Media Transfer Protocol (MTP) library tools
ii  mtpfs                                                            1.1-5                                 amd64        FUSE filesystem for Media Transfer Protocol devices


on my laptop
# dpkg -l | grep mtp
Code: Select all
rc  kio-smtp:amd64                                              17.08.3-2                             amd64        mail transport service library
rc  libkpimsmtp5:amd64                                          17.12.3-1                             amd64        library for handling SMTP data
ii  libkpimsmtp5abi1:amd64                                      18.08.1-1                             amd64        library for handling SMTP data
ii  libmtp-common                                               1.1.13-1.1                            all          Media Transfer Protocol (MTP) common files
ii  libmtp-dev:amd64                                            1.1.13-1.1                            amd64        Media Transfer Protocol (MTP) development files
ii  libmtp-runtime                                              1.1.13-1.1                            amd64        Media Transfer Protocol (MTP) runtime tools
ii  libmtp9:amd64                                               1.1.13-1.1                            amd64        Media Transfer Protocol (MTP) library
ii  libnet-smtp-ssl-perl                                        1.04-1                                all          Perl module providing SSL support to Net::SMTP
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1853
Joined: 2009-06-09 22:20

Re: Debian and Android phone [SOLVED]

Postby uthappam » 2018-12-07 02:44

I looked through your post but did not understand anything. That does not trouble me, though, because I have what I needed.
uthappam
 
Posts: 208
Joined: 2010-01-01 17:14
Location: Delhi, India


Return to General Questions

Who is online

Users browsing this forum: Scorpion and 8 guests

fashionable