xiaomi

How force the app to opt out of battery saver mode when the service is ON?

怎甘沉沦 提交于 2021-02-05 05:56:06
问题 The expected behavior is that the app will be running all the time when it's in ON state. Some phones put the app in background mode when the app is not active for some time. I want the app to be running all the time even its in standby mode(standby mode means when we press the home button the app will go to background. and it will run for some time). I found following code and I tried that PowerManager powerManager = (PowerManager) getApplicationContext().getSystemService(POWER_SERVICE);

Opening miui battery saver for specific apps

混江龙づ霸主 提交于 2021-01-04 06:57:44
问题 I am working on VoIP calling applications and calls are getting missed which are sent over FCM when battery saver is on on MIUI . This is happening very frequently. I want user to open Battery saver activity for my own app and give no restriction for that app in battery saver. For example: this is a the battery saver page for whatsApp. I want to open this page directly for my app from my app. I have managed to enable autostart in the shown way. How to check MIUI autostart permission

Opening miui battery saver for specific apps

試著忘記壹切 提交于 2021-01-04 06:57:05
问题 I am working on VoIP calling applications and calls are getting missed which are sent over FCM when battery saver is on on MIUI . This is happening very frequently. I want user to open Battery saver activity for my own app and give no restriction for that app in battery saver. For example: this is a the battery saver page for whatsApp. I want to open this page directly for my app from my app. I have managed to enable autostart in the shown way. How to check MIUI autostart permission

flyme7与miui11无root精简系统app

試著忘記壹切 提交于 2020-02-24 08:01:38
现在国产手机系统太臃肿,root了吧一些银行app检测到风险就运行不起来了,也不想折腾面具、冰箱、黑域和xposed等等之类了,就简单用命令把不用的卸载算了,记录一下精简列表。 Flyme7的精简列表 #×××××××××/system/MzApp文件夹内可精简×××××××××× #手机云备份 DesktopBackup.apk pm uninstall --user 0 com.meizu.desktopbackup #性能监视器 PerfUI.apk pm uninstall --user 0 com.meizu.perfui #系统壁纸 SystemWallpaper.apk pm uninstall --user 0 com.meizu.systemwallpaper #动态主题服务 vlife-sdk-mx.apk pm uninstall --user 0 com.vlife.mxlock.wallpaper #魅族游戏框架 gameSDKservice.apk pm uninstall --user 0 com.meizu.gamecenter.service #钱包 wallet.qpk #趣视频 VideoClips.apk #用户字典 userdictionaryprovider.apk #远程协助 remoteCooperation.apk #魅族商城

Android 多渠道配置

二次信任 提交于 2020-01-22 00:01:43
多渠道打包早已不是什么新技术,网上一搜千千万万数不尽数,但是对于没使用过的开发者,看了网上复制又复制的文章却是一头雾水,完全找不到符合自己需求的多渠道配置,以下总结: 需求: 不同渠道,配置不同包名。 不同渠道,不同app名称。 不同渠道,icon需要对应。 不同渠道,版本号需要单独指定。 代码撸起来: gradle的多渠道配置,利用productFlavors 需要几个包就配置几个马甲,在android{} 里面添加如下: productFlavors { baidu {} xiaomi {} huawei {} } 配置三个渠道,然后 Sync Now,发现报错: ERROR: All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html Affected Modules: app defaultConfig下添加` flavorDimensions "versionName" 根据需求配置: AndroidManifest.xml 的application里面需先配置 meta: <meta-data android:name="CHANNEL"

Background Services are restricted in Xiaomi and Oppo

别说谁变了你拦得住时间么 提交于 2020-01-09 05:27:30
问题 We are developing an app With MQTT running in a foreground service. The problem is on Xiaomi Redmi Note 7, the service gets killed after we kill the app but on other brands It works fine. I did not test the app on Oppo and Vivo but as I searched they have problem too. In onCreate method of the service, I called startForeground(NOTIFICATION_ID, notification) and my service declaration in manifest is like this <service android:name=".service.mqtt.MqttService" android:enabled="true" android

Background Services are restricted in Xiaomi and Oppo

旧巷老猫 提交于 2020-01-09 05:27:07
问题 We are developing an app With MQTT running in a foreground service. The problem is on Xiaomi Redmi Note 7, the service gets killed after we kill the app but on other brands It works fine. I did not test the app on Oppo and Vivo but as I searched they have problem too. In onCreate method of the service, I called startForeground(NOTIFICATION_ID, notification) and my service declaration in manifest is like this <service android:name=".service.mqtt.MqttService" android:enabled="true" android