Closed
Description
Issue:
just like mentioned above,when I connected to my Huawei Phone, the issue comes.
It says : FTL/device 6054 [582af7670d26] Setup had an error Error: Service had an error: "Error: Not found; no service started."
My doubt
Why? I have tested on 5 phones, just this phone has this problem。
At the same time, I find no STFService.apk installed on it.
Activity
sorccu commentedon Aug 23, 2016
Which model is it? Can you just run
adb devices -l
and paste the model, product and name here?Also, I've seen this once before. Turns out that there was some sort of an antivirus app running on the device, and for some reason it didn't like STFService, so it prevented the service from being started. Uninstalling the antivirus apps made it work again. It was one of
CMSecurity.apk
orDrBooster.apk
.SanDiegoXu commentedon Aug 23, 2016
this is the modle of this phone, made by Huawei:
I guess the reason is antivirus apps,I have installed many antivirus apps on my phone.
Thank you for your reply!
@sorccu
sorccu commentedon Aug 23, 2016
Here's how you can check. Do not have STF running while you do this.
In one shell, run:
adb logcat -s 'ActivityManager:*'
Now, in another shell, attempt to start the service manually:
Watch the log and perhaps you'll see something like this:
If you see that or something like that, it's one of the antivirus programs getting in the way.
And this is how the offending applications were removed:
For good measure, perhaps uninstall STFService once too:
Now if you unplug the device once and plug it back in, STF should be able to reinstall the service and launch it.
SanDiegoXu commentedon Aug 24, 2016
I have checked my running apps through “Settings”,then stop some antivirus apps manually。
So, I still use "rethinkdb" and "stf local" commands. At last, I find I can manipulate my phone through web browser remotely.
At the same time , I uploaded STFService.apk to some antivirus-checking site, the result is "Safe".
But I doubt why antivirus apps prevent to install STF.apk, or prevent this apk to start ?
sorccu commentedon Aug 24, 2016
Not sure, possibly because the app doesn't have a launcher activity it looks suspicious. Or perhaps because of the private APIs.
xiaweixing commentedon Aug 30, 2016
I encountered the same issue, uninstalled a few antivirus apps(e.g. 360), but it is not working. Could you please help take a look? Thx!
adb devices -l shows:
LE67A06180224872 device usb:1-8.3.2 product:Le2_CN1 model:Le_X620 device:le_x6
logcat shows:
08-30 19:27:56.047 D/AndroidRuntime(14924): Calling main entry jp.co.cyberagent.stf.Agent 08-30 19:27:56.160 I/ADB_SERVICES( 7475): service_to_fd shell:am startservice --user 0 -a 'jp.co.cyberagent.stf.ACTION_START' -n 'jp.co.cyberagent.stf/.Service' 08-30 19:27:56.709 W/ActivityManager( 1156): don't allow to start ServiceInfo{f4d3cd jp.co.cyberagent.stf.Service}
sorccu commentedon Aug 30, 2016
Thanks for the useful log. Based on the somewhat poor english in the log output it seems like there's still some kind of an antivirus or blocker running. Would be very interesting to know which app it ends up being. You can try something like
adb shell pm list packages -3
to show all 3rd party packages in the system.sorccu commentedon Aug 30, 2016
I want to see it myself and hopefully fix it. I've ordered that phone from Aliexpress. Will probably arrive by the end of the month.
xiaweixing commentedon Aug 31, 2016
I am thinking, is it possible that some ROMs themselves have some kind of restrictions?
sorccu commentedon Aug 31, 2016
Well it's possible it's a system package as well. Perhaps try to take out
the -3 flag and see if there's anything there?
It'll be at least a month before I can do anything about this myself.
On Wednesday, 31 August 2016, xiaweixing notifications@github.com wrote:
xiaweixing commentedon Aug 31, 2016
sorccu commentedon Sep 2, 2016
I've just updated STFService.apk for an unrelated reason - I'm curious if you're seeing any change with this issue? Can you update your STF and try again? Use master or the :latest docker tag.
xiaweixing commentedon Sep 7, 2016
Hi Sorccu,
I've pulled the latest stf:
But still 2 devices showing errors in provider log:
for LE67A06180224872, errors are same as before.
for c806b880, errors as below:
rdtoy commentedon Sep 17, 2016
@xiaweixing I have the same phone(le_x6) and the same problem. I sovled it by pushing STFService.apk to /system/priv-app/STFService/STFService.apk, the service will automatically start after a reboot, and everything works fine now.
xiaweixing commentedon Sep 18, 2016
@test01wrk Thanks a lot for the info!! But how and where can I download the latest STFService.apk? I couldn't figure it out yet :(
sorccu commentedon Sep 18, 2016
I have now received the Le_X620 and I can confirm that it has that issue. However I seem to have found the cause.
At least for Le_X620, it does NOT have anything to do with an antivirus. It seems that trying to launch a service while the app is not running already counts as an "Auto Launch" and the system prevents that by default. I tried with a brand new application with an empty service and got the same result.
What you have to do is:
Settings
on the device.Permissions
underPersonal
.Here's a gif of how to do it:
xiaweixing commentedon Sep 19, 2016
Great!! It worked like a charm!! Thank you so much!!
xiaweixing commentedon Sep 29, 2016
@sorccu I posted another device issue earlier together with le_x620, but it is still not resolved. Is it possible for you to test it? Or any ideas how to troubleshoot? Thx!
errors as below:
sorccu commentedon Sep 29, 2016
One issue per device please. Closing this one, created a new one for ZUK Z1.