-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] testing fixes for performance problems with pixels on Android 14+ #718
Conversation
…et#719) Co-authored-by: Andy Carra <[email protected]>
… map layer from map icon (wiglenet#721) Co-authored-by: Andy Carra <[email protected]>
…g into priority_fixes
* fixing icon attributes, which were rendering strangely. * more updates. still some icons to fix. --------- Co-authored-by: Andy Carra <[email protected]>
…g into priority_fixes
@@ -302,7 +303,7 @@ | |||
<service | |||
android:name=".WigleService" | |||
android:enabled="true" | |||
android:foregroundServiceType="location" | |||
android:foregroundServiceType="location|dataSync" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or-ing with dataSync as that expects file operations on the service thread
if (SDK_INT >= Build.VERSION_CODES.R) { | ||
Logging.info("service startForeground version R+"); | ||
startForeground(NOTIFICATION_ID, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION | ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
R+ special case for startForeground
private static final int DB_PRIORITY = Process.THREAD_PRIORITY_BACKGROUND; | ||
private static final int DB_PRIORITY = Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE ? | ||
/*Process.THREAD_PRIORITY_BACKGROUND |*/ Process.THREAD_PRIORITY_DEFAULT : | ||
Process.THREAD_PRIORITY_BACKGROUND; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attempting to boost DB priority to stop tail-dropping writes in background
private static final int MAX_QUEUE = 512; | ||
private static final int MAX_DRAIN = 512; // seems to work fine slurping the whole darn thing | ||
private static final int MAX_QUEUE = Build.VERSION_CODES.R >= Build.VERSION.SDK_INT ? 768 : 512; | ||
private static final int MAX_DRAIN = MAX_QUEUE; // seems to work fine slurping the whole darn thing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
increasing queue size to try and drop fewer nets in in background mode
obviated |
No description provided.