account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Tips & Tricks

Troubleshoot, find support articles, run tests directly on your phone with the support application.
Read more and discuss the app here.

Sony Android Oreo Flavor: Accordion in Notification Bar on Network Activity

SOLVED
Pioneer
Message 11 of 23
5,392 Views
Message 11 of 23

Re: Sony Android Oreo Flavor: Accordion in Notification Bar on Network Activity

RRO works! Here's how to remove them if you have Android SDK installed:

 

AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.keypressure.android.activityoverlay">
    <overlay android:targetPackage="com.android.systemui"
             android:priority="1" />
</manifest>

res/values/config.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_showActivity">false</bool>
</resources>

Build package with:

aapt.exe package -S res -M AndroidManifest.xml -I $PATH_TO_SDK/platforms/android-23
/android.jar -f -v -F framework-res-overlay.apk

Sign package with debug keys:

apksigner.bat sign --ks ~/.android/debug.keystore .\framework-res-overlay.apk
password: android

Install package to the device:

adb.exe install framework-res-overlay.apk

Enable overlay:

adb shell cmd overlay enable --user 0 com.keypressure.android.activityoverlay

Activity icons are disabled now.

Screenshot (Nov 18, 2017 12_00_45).png

 

I'm currently publishing the RRO app above on Google Play under "com.keypressure.disable_network_activity_indicator" package name. When it rolls out, the command line for adb will be:

 

adb shell cmd overlay enable --user 0 com.keypressure.disable_network_activity_indicator

 

 


No longer using XZ1C
Pioneer
Message 12 of 23
15,249 Views
Message 12 of 23

Re: Sony Android Oreo Flavor: Accordion in Notification Bar on Network Activity

The Google Play package is now live at Google Play: Disable Network Activity Indicator RRO.

 

After installing, run:

adb shell cmd overlay enable --user 0 com.keypressure.disable_network_activity_indicator

No longer using XZ1C
Learner
Message 13 of 23
5,327 Views
Message 13 of 23

Re: Sony Android Oreo Flavor: Accordion in Notification Bar on Network Activity

You beautiful person.

 

Works great here on my Customised DE firmware 47.1.A.2.374. Hoping this is persistent after a reboot / firmware update.

 

ADB commands aren't for everyone but if it annoys you enough you can definitely manage it

I trust Sony will eventually see the light and either revert to the previous activity icons, or at least modify the new ones so they don't shift other icons.

 

EDIT: activity icons are still visible on the lockscreen (for the little that you would see the lockscreen) but I seem to recall this is a limitation of these type of overlay modifications.

Pioneer
Message 14 of 23
5,308 Views
Message 14 of 23

Re: Sony Android Oreo Flavor: Accordion in Notification Bar on Network Activity

Lock screen will lose activity icons next time it is restarted.


No longer using XZ1C
Highlighted
Regular
Message 15 of 23
4,911 Views
Message 15 of 23

Re: Sony Android Oreo Flavor: Accordion in Notification Bar on Network Activity

Thank you!  This works perfectly and is compatible with the Substratum theme I use.

One time poster
Message 16 of 23
4,529 Views
Message 16 of 23

Re: Sony Android Oreo Flavor: Accordion in Notification Bar on Network Activity

Thank you so much.

This fix solved this issue for me on HTC U11 life which has the same issue.

According to https://issuetracker.google.com/issues/70075574 the Xiaomi Mi A1 is also affected.

So it's NOT a sony specific issue!

Pioneer
Message 17 of 23
3,792 Views
Message 17 of 23

Re: Sony Android Oreo Flavor: Accordion in Notification Bar on Network Activity

@romanempire

GREAT!


who knows knows
who doesn't doesn't
Learner
Message 18 of 23
2,984 Views
Message 18 of 23

Re: Sony Android Oreo Flavor: Accordion in Notification Bar on Network Activity

Having some issues trying to apply this fix on my XZ2 Compact. The app installs fine via the Play Store, but when running the adb command I'm getting the next error:

 

$ adb shell cmd overlay enable --user 0 com.keypressure.disable_network_activity_indicator

Security exception: Operation not permitted for user shell

java.lang.SecurityException: Operation not permitted for user shell
	at com.android.server.om.OverlayManagerService$1.enforceChangeOverlayPackagesPermission(OverlayManagerService.java:720)
	at com.android.server.om.OverlayManagerService$1.setEnabled(OverlayManagerService.java:581)
	at com.android.server.om.OverlayManagerShellCommand.runEnableDisable(OverlayManagerShellCommand.java:215)
	at com.android.server.om.OverlayManagerShellCommand.onCommand(OverlayManagerShellCommand.java:71)
	at android.os.ShellCommand.exec(ShellCommand.java:96)
	at com.android.server.om.OverlayManagerService$1.onShellCommand(OverlayManagerService.java:678)
	at android.os.Binder.shellCommand(Binder.java:573)
	at android.os.Binder.onTransact(Binder.java:473)
	at android.content.om.IOverlayManager$Stub.onTransact(IOverlayManager.java:157)
	at android.os.Binder.execTransact(Binder.java:674)

Any ideas how to fix this? Thnx!!

Pioneer
Message 19 of 23
2,969 Views
Message 19 of 23

Re: Sony Android Oreo Flavor: Accordion in Notification Bar on Network Activity

Re: "Security exception: Operation not permitted for user shell" - this is both good and bad. Good because it may no longer be possible to drop a overlay package and enable it, changing the resources of any app. And bad because my workaround for disabling network indicators may not work.

 

What Android version does XZ2 Compact run? 


No longer using XZ1C
Learner
Message 20 of 23
2,962 Views
Message 20 of 23

Re: Sony Android Oreo Flavor: Accordion in Notification Bar on Network Activity

Hm, that's too bad...

 

The device is running version 8.0.0 (Security patch level: 1 Feb 2018), build 51.1.A.2.213.