Giter VIP home page Giter VIP logo

androiddaemonservice's Issues

最新搜集整理好的一些反馈(会持续更新)

以下是最新搜集整理好的一些反馈(会持续更新):

  • 华为荣耀7 Android5.0 报错:Bad notification for startForeground: java.lang.RuntimeException: icon must be non-zero
  • 红米note2 Android5.0.1 出现了正在运行的Notification
  • 三星Note5 Android6.0 报错:Bad notification for startForeground: java.lang.RuntimeException: icon must be non-zero
  • 三星s4 Android5.0 会显示Notification,并且系统卡死,状态栏混乱
  • 魅族MX3 Android4.4 不到半小时进程就消失了
  • 魅族小米系列 Android5.0 最近任务栏划掉后在“正在运行”栏目中找不到服务

有发现异常的童鞋,可以参照此格式:机型+系统版本+报错现象或关键LOG 提上来!

为啥 MainActivity 的黑色保活中AlarmManager被注释?

代码如下:

/*AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
PendingIntent operation = PendingIntent.getBroadcast(this, 123, blackIntent, PendingIntent.FLAG_UPDATE_CURRENT);
alarmManager.set(AlarmManager.RTC, System.currentTimeMillis(), operation);*/

灰度保活

灰度保活之后会有这样的异常,有遇到过吗
Bad notification for startForeground: java.lang.RuntimeException: invalid service notification: Notification(pri=-2 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 vis=PRIVATE)

切换应用或者在桌面重新回到应用时,通知栏会闪现

感谢作者的分享。

这边有个小问题,以下两种情况会有通知栏会闪现的现象(出现又马上消失)。

  1. 当通过最近列表切换应用时(例如设置-->AndroidDaemonService)
  2. 当从桌面进入到应用时

模拟器 API 21 会出现,但是实体机 Nexus 6P 确正常。希望作者能关注下。

在小米手机上无效

感谢作者大大,在测试的时候发现在miui 7.5上无效,不知道有没有什么好的解决方案

关于进程保活的疑问

@D-clock
你好,运行代码后,有几个问题要请教下你:

  • 主进程:com.clock.daemon
  • 普通后台进程:com.clock.daemon:bg

发现这两个进程被干掉(使用LBE或者AS操作)后,过一会就重启了。它们是怎样被重启起来的呢?

AlarmManager

请教灰色保活中如何结合AlarmManager实现定时任务?- -

实测三星note5 6.0 ,华为荣耀7 5.0

博主 ,你好,在华为荣耀7 5.0系统上实测:Bad notification for startForeground: java.lang.RuntimeException: icon must be non-zero,会抛出这个错,意思是Notification不能为空,用微信试了了下,发现他们确实把进程优先级提高到1(关掉界面后),不知道是怎么做的

给Notification加了图片后通知栏里就有消息了

----说下测试情况---
白色Service那个能看到isForgound已经为true了,一旦退出程序,优先级还是8(华为荣耀7)(三星的是6,这个跟系统有关),微信的优先级在退出后就是1,目前猜测:像博主说的,微信和rom厂商有合作

尝试通过编译这个项目app无法实现保活

寻求帮助! 谢谢!

问题

通过克隆这个项目编译后的APP无法进行保活、会被杀死

我尝试了,你提供的两个APP:分别是:手Q包名apk、普通包名apk、只有这个名为:手Q包名apk能实现后台保活、不会被杀死、通过反编译看了以下这个:手Q包名apk、也是使用了你这个项目来实现保活、为什么通过编译的这个项目无法实现保活、问题出现在哪里 .......?

请问以下问题出现在哪里?

平台

编译环境:android studio 11+
安卓版本:android 5.0 +

invalid service notification

应用中报出的错误

Fatal Exception: android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid service notification: Notification(pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 vis=PRIVATE)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1651)
       at android.os.Handler.dispatchMessage(Handler.java:111)
       at android.os.Looper.loop(Looper.java:207)
       at android.app.ActivityThread.main(ActivityThread.java:5728)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:749)

手机型号 Lenovo TAB 3 850F 系统版本6.0

有没有解决办法

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.