Skip to content

Put app into temporary whitelist when an high-priority GCM message is received - #1

Merged
ale5000-git merged 4 commits into
a5k-testing:idle-temp-whitelistfrom
ale5000-git:master
Jun 20, 2018
Merged

ale5000-git merged 4 commits into
a5k-testing:idle-temp-whitelistfrom
ale5000-git:master

Conversation

@ale5000-git

Copy link
Copy Markdown

Fix attempt for the issue: microg#338
by @ccaapton

ccaapton and others added 4 commits March 8, 2017 17:18
Allow MicroG to add the notified apps into temporarily whitelist
Put app into temporary whitelist when an high-priority GCM message is received
@ale5000-git
ale5000-git merged commit a69f775 into a5k-testing:idle-temp-whitelist Jun 20, 2018
@ccaapton

Copy link
Copy Markdown

Yes, your commit 67de6f4 is basically what I previously did.

You should also add a new file /system/etc/permissions/microg.xml:

<permissions>
  <allow-in-power-save package="com.google.android.gms" />
</permissions>

You can use adb shell dumpsys deviceidle whitelist and adb shell dumpsys deviceidle tempwhitelist to test&verify.

I would be very happy to see "// ToDO: Find out userID" to be resolved, because currently it will not work in multi-user or managed profile scenario. In fact this is the major reason why I did not push my work upstream.

@ale5000-git

Copy link
Copy Markdown
Author

I don't have too much time currently but are you sure that it is /system/etc/permissions/?

In my installer I use /system/etc/sysconfig/ and it works, the file is here.

The one of Open GApps is here.

@ccaapton

Copy link
Copy Markdown

My rom is lineageos 14.1, and its /system/etc/sysconfig/ is empty, perhaps it is rom-specific.

@ale5000-git

ale5000-git commented Jun 21, 2018 •

Copy link
Copy Markdown
Author

Often even if the folder not exist or is empty by default it will still work if you create it manually, you can test by placing the file and looking in the Android settings if it the battery optimizations are disabled for GmsCore and cannot be enabled.

@ccaapton

Copy link
Copy Markdown

@ale5000-git

Copy link
Copy Markdown
Author

@ccaapton
Can you please repost your comments to here?

Because this repository is only for my tests and it will disappear soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants