LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-28-2018, 10:49 AM   #16
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053

Quote:
Originally Posted by keikari View Post
On fedora systemd starts adb
interesting, i've never seen that.
on my system adb belongs to android-tools, and that packages does not come with a systemd service.
i only start it manually, and recently through a udev rule which doesn't work too well.

of course it could be the systemd service restarting itself for some weird reason...
you could show us the service file.
 
Old 08-28-2018, 11:07 AM   #17
keikari
LQ Newbie
 
Registered: May 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
interesting, i've never seen that.
on my system adb belongs to android-tools, and that packages does not come with a systemd service.
i only start it manually, and recently through a udev rule which doesn't work too well.

of course it could be the systemd service restarting itself for some weird reason...
you could show us the service file.
For me to adb comes in android-tools too.
And I set it to start at start-up with command 'systemctl enable adb'. (This means systemd starts it, right?)
What is service file?

Also for some reason I haven't had problems with other adb commands(shell, push, pull). I have pushed few ~2GB file without any problems.

EDIT:
I don't really know what I could try to do to find what causes the problem, so if there isn't some obvious files that I should check for info, I will just wait for Fedora 29 and do clean install.
I can just spam adb logcat untill it shows what I want.

Last edited by keikari; 08-28-2018 at 12:29 PM.
 
Old 08-28-2018, 12:31 PM   #18
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
ok, so you need an introduction into systemd basics.
but that's going a little off topic.

we haven't even begun to seriously troubleshoot this problem, as i believe i said earlier it isn't even sure if its source is on your phone or on the linux machine. could even be the cable for all i know.

sure, the next distro upgrade will fix everything. sweet dreams.
 
Old 08-28-2018, 12:36 PM   #19
keikari
LQ Newbie
 
Registered: May 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
ok, so you need an introduction into systemd basics.
but that's going a little off topic.

we haven't even begun to seriously troubleshoot this problem, as i believe i said earlier it isn't even sure if its source is on your phone or on the linux machine. could even be the cable for all i know.

sure, the next distro upgrade will fix everything. sweet dreams.
If you are willing and have time to provide some guidance, I sure would like to get it working, at least for learning purposes. I'll check about that systemd stuff tomorrow.
Same phone and same cable worked on virtual machine. I'm sharing net through usb at the same time, but I believe I did that with virtual machines too.

Last edited by keikari; 08-28-2018 at 12:38 PM.
 
Old 08-30-2018, 02:42 PM   #20
keikari
LQ Newbie
 
Registered: May 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
of course it could be the systemd service restarting itself for some weird reason...
you could show us the service file.
Is this the service file you meant, it was in 'usr/lib/systemd/system/adb.service'

Code:
# Systemd unit file for adb

[Unit]
Description=Android Debug Bridge (adb) service

[Service]
Type=forking
ExecStart=/usr/bin/adb start-server
ExecStop=/usr/bin/adb kill-server
PrivateTmp=yes
Environment=HOME=/var/lib/adb

[Install]
WantedBy=multi-user.target
 
Old 08-31-2018, 12:22 AM   #21
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
yes.
now you need to compare this to other situations where it works, according to you.
you should also find out:
  • what do the "PrivateTmp" and "Environment" options do
  • what is the impact if you start this as root, but then continue to send commands as a normal user

i still maintain, don't use adb as root. there's just no need.
there's actually no need to autostart it at all.
the server will start automatically when the first adb command is executed.

PS:
a Quick Search (you should try it sometimes):
https://github.com/M0Rf30/android-udev-rules/issues/106
https://github.com/tweakdeveloper/adb-starter (that last one would disagree with me, but apparently there is an issue that needs to be addressed)

Last edited by ondoho; 08-31-2018 at 12:25 AM.
 
Old 11-07-2018, 03:52 AM   #22
keikari
LQ Newbie
 
Registered: May 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Upgrade to fedora 29 fixed the problem. Also now I would probably able to use adb normally without root access, if I set the plugdev group stuff.
In fedora 28 it didn't even show any errors(or anything else) if running without root and if android usb wasn't in "Transfer files" mode.

I always send commands as normal user after I start adb as root, and I used adb as a root because otherwise device won't be recognized at all.
With fedora 29 it gets recognized but has some permission errors. Which I don't know how to fix yet, but not a big problem because I can just keep running adb as root.
Doing quick search for a different problem is bit of a long shot.

Last edited by keikari; 11-08-2018 at 06:54 AM.
 
  


Reply

Tags
adb, fedora 28, logging



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Potential Exploit? Potential Backdoor? Strange code in '/usr/android/adb' Package: android-tools-adb slicktrail Linux - Security 1 12-05-2016 05:05 AM
Mouse stops working at random times. Seeker0 Ubuntu 5 03-30-2011 06:19 PM
using /dev/random to output random numbers on a text file guguma Programming 4 04-02-2007 01:42 PM
Installation Freezes at random points during copy. idrise Fedora - Installation 1 11-02-2005 04:27 AM
9.1 installation freezes at seemingly random points mustardseed Slackware - Installation 2 03-02-2004 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration