Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-31 Thread Neil Bothwick
On Wed, 31 Jul 2019 17:36:29 +0200, Helmut Jarausch wrote:

> > I've found all of the MTP implementations to be wanting in some way.  
> > Then
> > I discovered SSHelper, an SSH server for Android. Now I can mount my
> > phone's storage with sshfs using a command like
> > 
> > sshfs -p  192.168.1.144:/storage/emulated/0 /mnt/phone
> >   
> 
> SSHelper has a big disadvantage: it cannot write to the external SD  
> card.

That's worth knowing, or probably not. It's been years since I've had a
phone with an SD card slot.


-- 
Neil Bothwick

In the 60's people took acid to make the world weird.
Now the world is weird and people take Prozac to make it normal.


pgpg2lIHnTJ9P.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-31 Thread Helmut Jarausch

On 07/30/2019 09:36:11 AM, Neil Bothwick wrote:
I've found all of the MTP implementations to be wanting in some way.  
Then

I discovered SSHelper, an SSH server for Android. Now I can mount my
phone's storage with sshfs using a command like

sshfs -p  192.168.1.144:/storage/emulated/0 /mnt/phone



SSHelper has a big disadvantage: it cannot write to the external SD  
card.
I'm using "primitive ftpd" instead. It has an option to use Androids  
"storage access framework".
Now I can transfer files to my external SD card even on an unrooted  
device.




Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-31 Thread Wols Lists
On 31/07/19 04:44, Dale wrote:
> I think one of my problems is the SD card itself.  I can access things
> with the phone but I've noticed some of my other cards do strange
> things.  I've got one that won't allow me to delete items.  I even ran
> dd on the thing, the entire card, and the files are still there.  I
> think the card I'm currently using may have some similar issues as well
> since when I format it with the phone, nothing happens.  I've ordered a
> new and much larger card.  It should be here in a week or so.  It's a
> 32GB Sandisk card.  May wish I had a 64GB card later on tho.  lol  When
> it gets here, I plan to use it and format it using the phone software
> and see if that helps. 

You need to pay money for a good card. And ime the micro cards are often
problematic. I've certainly binned a fair few that have died on me -
I've never had any trouble with the full size cards, but they won't fit
in a phone. But I would *never* now use a micro card and an adaptor in
my cameras.

Cheers,
Wol



Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-31 Thread Dale
Neil Bothwick wrote:
> On Wed, 31 Jul 2019 02:56:48 -0500, Dale wrote:
>
>>> Bluetooth is very slow for file transfers. I find WiFi the best
>>> compromise of speed and convenience.
>> Well, I tried it but it didn't work.  I suspect I'd need a app for it to
>> access it.  It could get there since it said it exists but couldn't
>> connect.  I'll try to find a app later on.
> What is "it"? All you need is the SSH server on the phone, the standard
> openssh client on the computer and both connected to the same network.
>
>


The it was me typing the IP address into my browser.  It sees it but
didn't have anything to connect too.  Of course, I didn't have the ssh
app open or anything so it may work with that.  I didn't think of trying
that.  I'm getting scatter brained here.  lol  I'll try that in a bit. 
Right now, I got to spray air freshener.  It kills bugs but it has a bit
of a stink to it as well. 

Thanks much to you and Raffaele for the help and info. 

Dale

:-)  :-) 



Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-31 Thread Neil Bothwick
On Wed, 31 Jul 2019 02:56:48 -0500, Dale wrote:

> > Bluetooth is very slow for file transfers. I find WiFi the best
> > compromise of speed and convenience.

> Well, I tried it but it didn't work.  I suspect I'd need a app for it to
> access it.  It could get there since it said it exists but couldn't
> connect.  I'll try to find a app later on.

What is "it"? All you need is the SSH server on the phone, the standard
openssh client on the computer and both connected to the same network.


-- 
Neil Bothwick

Microbiology: staph only.


pgp7w04xxMN4E.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-31 Thread Raffaele Belardi

Dale wrote:

Neil Bothwick wrote:

On Tue, 30 Jul 2019 22:44:26 -0500, Dale wrote:


I wonder, if I bought a bluetooth USB thingy and put that on my puter,
would that help any?  Since I hooked up my wifi router and it uses that,
would that help?  Or is the USB cable directly connected the best way?

Bluetooth is very slow for file transfers. I find WiFi the best
compromise of speed and convenience.



Well, I tried it but it didn't work.  I suspect I'd need a app for it to
access it.  It could get there since it said it exists but couldn't
connect.  I'll try to find a app later on.  I'm putting out some raid,
literally.  Bug killing time.  ;-)



Just for the sake of completeness, if you use a full-fledged desktop environment you don't 
need any app, just the proper USE flags. At least on Gnome it's done that way, file 
transfers are managed by the usual file manager.

But even if I set it up successfully I seldom use BT, USB is a lot more stable 
and faster.

raffaele



Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-31 Thread Dale
Neil Bothwick wrote:
> On Tue, 30 Jul 2019 22:44:26 -0500, Dale wrote:
>
>> I wonder, if I bought a bluetooth USB thingy and put that on my puter,
>> would that help any?  Since I hooked up my wifi router and it uses that,
>> would that help?  Or is the USB cable directly connected the best way? 
> Bluetooth is very slow for file transfers. I find WiFi the best
> compromise of speed and convenience.
>
>


Well, I tried it but it didn't work.  I suspect I'd need a app for it to
access it.  It could get there since it said it exists but couldn't
connect.  I'll try to find a app later on.  I'm putting out some raid,
literally.  Bug killing time.  ;-) 

Thanks tho.  At least I know not to waste money on the bluetooth thingy. 

Dale

:-)  :-) 



Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-31 Thread Neil Bothwick
On Tue, 30 Jul 2019 22:44:26 -0500, Dale wrote:

> I wonder, if I bought a bluetooth USB thingy and put that on my puter,
> would that help any?  Since I hooked up my wifi router and it uses that,
> would that help?  Or is the USB cable directly connected the best way? 

Bluetooth is very slow for file transfers. I find WiFi the best
compromise of speed and convenience.


-- 
Neil Bothwick

"Everything takes longer than expected, even when you take
  into account Hoffstead's Law." - Hoffstead's Law


pgppWoj9gq4Rl.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-30 Thread Dale
Neil Bothwick wrote:
> On Tue, 30 Jul 2019 09:15:57 +0100, Neil Bothwick wrote:
>
>> On Tue, 30 Jul 2019 03:10:39 -0500, Dale wrote:
>>
>>> Neil, is that SSHelper installed on the phone or my puter?  I can't
>>> find anything on that Gentoo wise. 
>> On the phone, it's an SSH server for Android.
> It seems there are a couple of apps with similar names, this is the one I
> use
>
> https://play.google.com/store/apps/details?id=com.arachnoid.sshelper
>
> I haven't tried the others, this one does all I need for now.
>
>


Thanks for the heads up on that.  When I did my search, it turned up
quite a few of those.  With the link you shared, I knew what the little
avatar looked like and the name of the author as well.  I was able to
find the exact one that way.  For those who run up on this thread, it's
about 50MBs in size once installed.  Also, I like being able to search
around with my desltop.  That link helped me in a couple ways. 

I wonder, if I bought a bluetooth USB thingy and put that on my puter,
would that help any?  Since I hooked up my wifi router and it uses that,
would that help?  Or is the USB cable directly connected the best way? 

I think one of my problems is the SD card itself.  I can access things
with the phone but I've noticed some of my other cards do strange
things.  I've got one that won't allow me to delete items.  I even ran
dd on the thing, the entire card, and the files are still there.  I
think the card I'm currently using may have some similar issues as well
since when I format it with the phone, nothing happens.  I've ordered a
new and much larger card.  It should be here in a week or so.  It's a
32GB Sandisk card.  May wish I had a 64GB card later on tho.  lol  When
it gets here, I plan to use it and format it using the phone software
and see if that helps. 

I also looked at newer phones too.  I don't think that will matter much
tho.

Thanks much.

Dale

:-)  :-) 



Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-30 Thread Wols Lists
On 30/07/19 09:10, Dale wrote:
> It's weird, this was fairly easy on my old Razr. It was pretty basic and
> all but it worked.  :/

I've got a Motorola (Lenovo) G5, which I bought because it had the
reputation of being pretty stock Android. I moved away from Samsung
because that was heavily customised. That could be why your Razr was
easier than your new phone.

Although all Androids are moving more towards stock images I believe...

Cheers,
Wol



Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-30 Thread m4110c
On Tue, Jul 30, 2019 at 03:10:39AM -0500, Dale wrote (rdalek1...@gmail.com):
> 
> I was reading up on some other stuff, making the SD card available to
> install apps on, and it seems the sd card can be encrypted the same way
> the phone is.  Would that affect how this is done or will it not matter
> as long as the phone is on and the code is entered? 
> 

I don't think so. If the phone is up and the correct code is entered, it
should be decrypted completely. Except, if there was some additional
encryption applied to the SD-Card. (but why would anyone do that if they
can use Android for it?)

> 
> m4110c, where does scrcpy come from?  Is that part of android-tools as
> well? 
> 

No, it's a tool developed by some guy. You can find it on github under
the link I provided. It is a tool that uses the ADB protocol to transmit
the screen and other data from the phone to your PC. It communicates
with android-tools if you want. 

However if you have access to the phone it does not make much sense to
use it, as you can just ues the phone directly.

> It's weird, this was fairly easy on my old Razr. It was pretty basic and
> all but it worked.  :/

Anyways, I would say that it's very probable, that there is just nothing
on that phone. If it would be encrypted, you would not have access to
the card at all. So no folders to see. Usually, disks/cards that are encrypted
do not even show up as having a file system so the card will not be
mounted and readable at all. As you say that you have access to the
folders I guess there is just nothing in there.

Except of course, that you have the phone of a super-hacker-secret-agent
who uses tools to let you access his device but hide the data from
you... ;-)


m4110c

--
mailto: dis...@mm-no.de




Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-30 Thread Neil Bothwick
On Tue, 30 Jul 2019 09:15:57 +0100, Neil Bothwick wrote:

> On Tue, 30 Jul 2019 03:10:39 -0500, Dale wrote:
> 
> > Neil, is that SSHelper installed on the phone or my puter?  I can't
> > find anything on that Gentoo wise. 
> 
> On the phone, it's an SSH server for Android.

It seems there are a couple of apps with similar names, this is the one I
use

https://play.google.com/store/apps/details?id=com.arachnoid.sshelper

I haven't tried the others, this one does all I need for now.


-- 
Neil Bothwick

... if (pot.coffee == EMPTY) { programmer->brain = OFF };


pgp6oAhc4LblP.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-30 Thread Neil Bothwick
On Tue, 30 Jul 2019 03:10:39 -0500, Dale wrote:

> Neil, is that SSHelper installed on the phone or my puter?  I can't find
> anything on that Gentoo wise. 

On the phone, it's an SSH server for Android.


-- 
Neil Bothwick

- How many surrealists does it take to change a light bulb?
- Two: one to hold the giraffe, the other to fill the bathtub with
  lots of brightly colored machine tools.


pgp5_Pc8NyBEF.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-30 Thread Dale
m4110c wrote:
> On Tue, Jul 30, 2019 at 08:36:11AM +0100, Neil Bothwick wrote 
> (n...@digimed.co.uk):
>> On Mon, 29 Jul 2019 22:17:02 -0500, Dale wrote:
>>
>>> Is there other software that I can't find that allows this to be done? 
>>> GUI would be nice but I suspect if I can figure out what to use, a
>>> regular file manager will be used. 
>> I've found all of the MTP implementations to be wanting in some way. Then
>> I discovered SSHelper, an SSH server for Android. Now I can mount my
>> phone's storage with sshfs using a command like
>>
>> sshfs -p  192.168.1.144:/storage/emulated/0 /mnt/phone
>>
> If you can get it to start "Developer Mode" (i.e. Settings ->
> Information -> Buildnumber <- Tapping it 7 Times repeatedly)
>
> You can connect to it via ADB. Then you need the package
> dev-util/android-tools to establish an ADB connection from Gentoo.
>
> If that is all set up, you can use this tool:
>
> https://github.com/Genymobile/scrcpy
>
> I am really impresesd by this tool and use it all the time.
>
> Good luck!
>
>
> m4110c
>


I was reading up on some other stuff, making the SD card available to
install apps on, and it seems the sd card can be encrypted the same way
the phone is.  Would that affect how this is done or will it not matter
as long as the phone is on and the code is entered? 

Neil, is that SSHelper installed on the phone or my puter?  I can't find
anything on that Gentoo wise. 

m4110c, where does scrcpy come from?  Is that part of android-tools as
well? 

It's weird, this was fairly easy on my old Razr. It was pretty basic and
all but it worked.  :/

Thanks to all.  Lot to learn I see.

Dale

:-)  :-) 



Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-30 Thread m4110c

On Tue, Jul 30, 2019 at 08:36:11AM +0100, Neil Bothwick wrote 
(n...@digimed.co.uk):
> On Mon, 29 Jul 2019 22:17:02 -0500, Dale wrote:
> 
> > 
> > Is there other software that I can't find that allows this to be done? 
> > GUI would be nice but I suspect if I can figure out what to use, a
> > regular file manager will be used. 
> 
> I've found all of the MTP implementations to be wanting in some way. Then
> I discovered SSHelper, an SSH server for Android. Now I can mount my
> phone's storage with sshfs using a command like
> 
> sshfs -p  192.168.1.144:/storage/emulated/0 /mnt/phone
> 

If you can get it to start "Developer Mode" (i.e. Settings ->
Information -> Buildnumber <- Tapping it 7 Times repeatedly)

You can connect to it via ADB. Then you need the package
dev-util/android-tools to establish an ADB connection from Gentoo.

If that is all set up, you can use this tool:

https://github.com/Genymobile/scrcpy

I am really impresesd by this tool and use it all the time.

Good luck!


m4110c

-- 
mailto: dis...@mm-no.de



signature.asc
Description: PGP signature


Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-30 Thread Neil Bothwick
On Mon, 29 Jul 2019 22:17:02 -0500, Dale wrote:

> I bought a Samsung Galaxy J2, Dash version.  Up under
> the battery it says J260A.  I did some googling and found some software
> that says it will allow me to access the data on it.  I'm mostly wanting
> to access the SD card but would also like to be able to access other
> things such as contacts, calendar etc.  This is what I installed: 
> sys-fs/android-file-transfer-linux  While I can access some things, it
> seems not to list anything useful.  Most directories are empty which is
> sort of hard to believe. 
> 
> Is there other software that I can't find that allows this to be done? 
> GUI would be nice but I suspect if I can figure out what to use, a
> regular file manager will be used. 

I've found all of the MTP implementations to be wanting in some way. Then
I discovered SSHelper, an SSH server for Android. Now I can mount my
phone's storage with sshfs using a command like

sshfs -p  192.168.1.144:/storage/emulated/0 /mnt/phone


-- 
Neil Bothwick

COBOL: Completely Obsolete Business Oriented Language


pgpvzBKTsKrUr.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Accessing a Samsung phone and it's data.

2019-07-30 Thread Raffaele Belardi

Dale wrote:

Howdy,

I've mentioned before that I used a Motorola Razr cell phone, ancient as
it is.  Well, the USB port wore out and it was hard to get it to charge
up the battery.  Finally, I got tired of having to fiddle with it to get
it to charge so I bought a Samsung Galaxy J2, Dash version.  Up under
the battery it says J260A.  I did some googling and found some software
that says it will allow me to access the data on it.  I'm mostly wanting
to access the SD card but would also like to be able to access other
things such as contacts, calendar etc.  This is what I installed:
sys-fs/android-file-transfer-linux  While I can access some things, it
seems not to list anything useful.  Most directories are empty which is
sort of hard to believe.

Is there other software that I can't find that allows this to be done?
GUI would be nice but I suspect if I can figure out what to use, a
regular file manager will be used.


On Gnome desktop I think I just had to add 'mtp' to the USE flags [1] and rebuild. Now 
when I connect the phone the file manager pops up automatically and I can read/write the 
'user' part of the Flash memory.


Note that I use the Gnome file manager only to transfer photos or side-loaded [2] apps. 
Whenever I tried to access apps data I found it hard or impossible to locate them. Looks 
like Android provides standard places to store things but apps developers are not forced 
to use them and in practice everyone does what they want, possibly using directories not 
accessible to normal users. I have the impression that to really be able to browse _all_ 
the phone content you'd need to root it, which I'm not prepared to do yet.


I also installed some adb software (dev-util/android-tools [3]) but that's not needed for 
regular use, I did it only to try to backup my daughter's phone before changing the 
cracked LCD. Fortunately I did not have to use that backup because the 'adb backup' 
command worked for a minimal set of apps only.



While here, is there a website that lists all the android type phones,
Samsung brand would be good, and compares them?  At some point I may
upgrade but am having trouble finding out what has what and which is
actually better.  When I'm trying to pick a CPU, I can find websites
that list CPUs by power, L1 cache and a whole host of other things but I
can't find one for cell phones.  Maybe my google terms aren't quite right.


I think you should look better :-)

Just one example (that I don't use):
https://www.phonearena.com/phones/Samsung-Galaxy-J2-Core_id10978
There's a compare button on the top right.

raffaele

[1] https://wiki.gentoo.org/wiki/MTP
[2] https://en.wikipedia.org/wiki/Sideloading
[3] https://wiki.gentoo.org/wiki/Android/adb#About_ADB