STFService.apk在手机上提示 Not found ; no service started
来源:互联网 发布:二叉树反转 java 编辑:程序博客网 时间:2024/04/29 23:26
今天捣鼓stf遇到了个问题,华为荣耀6手机无法被识别,插上以后,后台提示“Setup had an error: Error: Not found ; no service started”,Shutting down due to fatal error 这样的错误。翻阅了一些资料,总结了如下三种情况:
情况一
- 查看手机,比如乐视手机下面会有【权限设置】,如下图:
情况二
把STFService.apk放到安卓/system/pri-app目录下(需要root,mount),然后重启手机,就会自动起来
情况三
我遇到的是这个问题,就是有些手机不允许直接启动service,因此我们如果按照如下步骤是不能达到目的的:
adb uninstall jp.co.cyberagent.stf adb install d:/xxx/STFService.apk adb shell am startservice -n jp.co.cyberagent.stf/.Service
你会发现提示这样的错误:
Starting service: Intent { cmp=jp.co.cyberagent.stf/.Service }Error: Not found; no service started.
此时你需要这样做:
adb uninstall jp.co.cyberagent.stf adb install d:/xxx/STFService.apk adb shell am start -n jp.co.cyberagent.stf/.IdentityActivityadb shell am startservice -n jp.co.cyberagent.stf/.Service
原因:部分手机不允许在初次安装的时候就直接启动service,需要先激活一下activity,才能“注册”上service,因此我们多做一步,才能解决问题。
0 0
- STFService.apk在手机上提示 Not found ; no service started
- Error: Not found; no service started.问题解决
- 报错 Error: Not found; no service started.
- android studio 2.3使用问题 Error: Not found; no service started
- AS 2.3启动APP报错Not found; no service started
- 用adb shell 打开手机上的一个database文件,提示 “sqlite3: command not found”
- Android Studio导出apk在手机上安装提示“文件不存在或已失效”
- 解决在ubuntu上Qt creator提示unicore32-linux-g++:Command not found
- cocos2d-x 在android上运行 TestCPP会出错,提示 class not found
- cocoaPods管理的库在别的电脑上出错了,提示file not found
- 如何在手机上打包生成APK
- mysql安装到最后一步提示the service could not be started.error:0错误。
- Android上使用sqlite,提示sqlite: not found
- archlinux在虚拟机VMWare启动图形界面提示no screen found
- sqlite3 提示 not found
- MySql The service could not be started
- 在查看源码时Eclipse提示source not found
- wamp offline:在浏览器中输入localhost提示not found
- 玩玩Linux云主机-redis的数据类型
- Spark SQL、DataFrame和Dataset
- linux--tar 压缩包
- NodeJS搭建博客系统(一)基本配置与路由控制
- 论算法的实际应用——泡妞论
- STFService.apk在手机上提示 Not found ; no service started
- ubuntu画图工具gnuplot
- 史上最详细的iOS之事件的传递和响应机制
- 为字段添加属性
- 树
- SAP中如何把屏幕数据复制到excel中
- 拼数pascal程序
- 前端知识
- 16哈理工新生赛 J Another Tree (树上BFS)