Hi,
I wish to permanently use the "Restrict background data" feature ( under settings->data usage ) on my JB rom, but the problem is that when I enable that feature, I always get a notification, asking me to "touch to remove" that feature...
I don't wish to do that, even by mistake! I want that notification GONE completely, but to retain the "restrict" feature...
I understand, it's possible to permanently disable notifications, by altering "Settings.apk" somehow - but I don't know what and where to change ( wish file inside that apk ).
I used "apktool" to unpack the apk, but again - which file should I change ? what value/line should I delete ?
My rom is VJ's AOKP v2.2, so "Settings.apk" file is from that rom's version.
Any help would be great :highfive::fingers-crossed:
EDIT:
Guess it has something to do with "DataUsageSummary.smali" (after unpacking the Settings apk -> smali\com\android\settings):
BUT WHAT SHOULD I CHANGE ?!
please reply
gps3dx said:
Any help would be great :highfive::fingers-crossed:
Click to expand...
Click to collapse
Seriously ? Not even the smallest hint you ppl can give me ?:crying::crying:
Can't you even redirect me to the most prevalent sub-forum, here at XDA, for that kind of question ?:silly:
gps3dx said:
Seriously ? Not even the smallest hint you ppl can give me ?:crying::crying:
Can't you even redirect me to the most prevalent sub-forum, here at XDA, for that kind of question ?:silly:
Click to expand...
Click to collapse
Something called the search function; it's really useful.
You can't just expect others to answer your questions promptly. As for your questions, that's part of the android system and if you want to modify it, go ahead. It's not a notification because you can't swipe it away; it's an ongoing thing. SO if you want to go on with that kind of attitude, you can try it yourself.
droid_<3er said:
Something called the search function; it's really useful.
As for your questions, that's part of the android system and if you want to modify it, go ahead. It's not a notification because you can't swipe it away; it's an ongoing thing.
Click to expand...
Click to collapse
I really do appreciate your reply man - even though I googled xda from top to button.
( there are thread about modifying various stuff inside settings.apk / SystemUI.apk - but NON are about that "restriction notification" i'm talking about. )
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Update: For a while now it's already available in Xposed modules repository: http://repo.xposed.info/module/org.adam77root.removerestrictednotification.
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
WOW thnx... but just a few moments before you posted your message I to fulfill that wish of mine... I SOLVED IT !
Although I admit - I DO NOT KNOW if I disabled all of the "restrict background" feature, but I DO managed to enable the "restrict backgound data" checkbox ( then press OK at the popup ) WITHOUT getting any notification at all !
HOW TO DISABLE NOTIFICATION ALERT FOR "RESTRICT BACKGROUND DATA" ( under settings-> data usage-> options )( I tried that fix on JB 4.2.2 ( to be specific: AOKP VJ Jelly Bean v2.2), BUT I guess it works on all JB 4.2.2 )1. copy "services.jar" from "/system/framework/services.jar" to your computer.
MAKE A SAFE COPY OF THIS FILE IF SOMETHING HAPPENS TO YOU.
2. extract the jar file using Winrar or any compatible app.
3. using MultiTool decompile the "classes.dex" file as instructed by Multitool's thread.
4. open with any txt editor ( I used Notepad++ ) the file "NetworkPolicyManagerService.smali" under "decompiled\classout\com\android\server\net\" ( which is a sub-folder of Mulitool's folder that you've previously extracted )
5. A . search for:
Code:
invoke-interface/range {v0 .. v6}, Landroid/app/INotificationManager;->enqueueNotificationWithTag(Ljava/lang/String;Ljava/lang/String;ILandroid/app/Notification;[II)V
delete completely that line or add "# " in the start of that line ( which is what I did ) so that line looks like that:
Code:
# invoke-interface/range {v0 .. v6}, Landroid/app/INotificationManager;->enqueueNotificationWithTag(Ljava/lang/String;Ljava/lang/String;ILandroid/app/Notification;[II)V
B. search for:
Code:
invoke-virtual {v0, p1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
add "# " in the start of that line ( which is what I did ) or delete completely that line
6. SAVE that smali file that you've just edited.
7. using Multitool, recompile the classes.dex file.
if everything went good, you'll have classes.dex file under MultiTool's sub-folder named "output"
8. using Winrar, open "services.jar", replace the current "classes.dex" with the recompiled one that you've made.
9. copy the remade "services.jar" to your device(using adb etc ):
Code:
adb push "services.jar" /system/framework/services.jar
10. chmod "services.jar" to "-rw-r--r--", meaning you need to:
Code:
adb shell chmod 644 /system/framework/services.jar
11. restart your device, and It should rebuilt your dalvik cache.
ONLY if it didn't, I guess you should delete "/data/dalvik-cache/[email protected]@[email protected]" file, reboot again so your OS will create that dalvik-cache file.
I'll be happy to know if anyone can verify that indeed my fix just remove his/her notification, but retain the ability to disable background data. THANKS !
Sorry I doubted you. You are a genius!
Many thanks!!
Adam77Root, thank you so much for that module! I can confirm it working on my Galaxy Note 2. That notification was unbelievably annoying.
gps3dx, thank you too for this thread and your fix. While I didn't try it because I already have Xposed framework installed and I'd rather use the less invasive approach, I am still grateful for your seeing a problem, addressing it, and proactively doing something about it. My respects to you. I searched around quite a bit and came across many other forums on different sites where people had this same problem unanswered. I hope they find their way to this thread.
To the above poster who jumped down the OP's throat for bumping this topic 4 days after it went unanswered, obviously you didn't do any search on this topic yourself. I did. And until this thread, I found nothing really useful. And lo-and-behold, someone was kind enough to actually do something useful instead of pointlessly sitting there and criticizing. The squeaky wheel gets the grease. Rudely telling someone to 'check their attitude and search' is not helpful- it's just rude and pointless. Just FYI.
I have an i9300 and I can't find the first line in that archive...
eXtremeDevil said:
I have an i9300 and I can't find the first line in that archive...
Click to expand...
Click to collapse
mybe it is because you run JB 4.1.2 not 4.2.2 like I do, plus mybe you're running some custom framework ( it is not AOKP as I suspect from you sig )
Adam77Root said:
...I've quickly put together an Xposed module that removes the notification.
Click to expand...
Click to collapse
@Adam77Root
Big thanks for this module: I installed another 4.2.2 JB rom for my HTC Desire, and your module works !:good::good:
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
this was working fine on my aokp jb mr1 Milestone 2, but stopped working when i installed the nigthly nightly (jb-mr1)2013-08-21 (wich fixes my camera issues and soe other stuff)
is there anything i can try myself to fix this or is it just incopatible with that nightly? (its still 4.2)
I'm using Lenovo phone, 4.2.1 Version. In "services.jar" I see only folder "META-INF" and file "MANIFEST.MF". I tried to rename the file to classes.dex then using MultiTool decompile but I receive: "Unexpected top-level exception:java.lang.RuntimeException:bad magic value...etc"
So what's wrong, where to find classes.dex? Someone?
new edit: Thanks a lot for all the replies, also Xposed framework+module didn't work.
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
Thanks a lot. Works awesome. Is it possible to post the source code to this?
css771 said:
Thanks a lot. Works awesome. Is it possible to post the source code to this?
Click to expand...
Click to collapse
I'm almost certain I don't have the original files anymore. Since it's pretty simple, you can either decompile the apk or check Android source of the class I mentioned in the post you quoted. Only one function is replaced with returning null.
Edit: Just checked, the function is enqueueRestrictedNotification.
Sent from my OmniROM-powered LG Optimus 4X HD
Xposed module works perfect on LG G2. Thanks a bunch!
Sent from my VS980 4G using Tapatalk
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
nice module.. work perfectly.. thanks
rooting?
do i have to root my phone to do this? will the module work without rooting? i'm new to playing with codes on my phone but I have done a lot of work with linux before so i can understand the process, i've just never rooted my phone before. i'd really like to get rid of this notification and the "usb connectivity" app's notification: internal storage &SD card- internal storage &SD card connected to PC. I mean, do i really need a notification to tell me that my phone is connected to my PC?
that last request isn't as important, at least if i accidentally click on that i'm not turning on background data use!
-yasboss
xperia z1s
jb 4.3
(just joined xda devs)
p.s.
is this the right place to ask this question?
yasboss said:
do i have to root my phone to do this? will the module work without rooting? i'm new to playing with codes on my phone but I have done a lot of work with linux before so i can understand the process, i've just never rooted my phone before. i'd really like to get rid of this notification and the "usb connectivity" app's notification: internal storage &SD card- internal storage &SD card connected to PC. I mean, do i really need a notification to tell me that my phone is connected to my PC?
that last request isn't as important, at least if i accidentally click on that i'm not turning on background data use!
-yasboss
xperia z1s
jb 4.3
(just joined xda devs)
p.s.
is this the right place to ask this question?
Click to expand...
Click to collapse
you need root to use xposed installer..
what else can it be used for?
ajeesh vijayan said:
you need root to use xposed installer..
Click to expand...
Click to collapse
can i use it for other notifications like i asked? I mean there's more than just the USB connectivity etc
So I just rooted my Nexus 7. I am not interested in changing the ROM, unless I really should, since I really like the Stock ROM. What are some good things to do while rooted?
A side note: I called Google before I did the procedure and they said unlocking the bootloader would not void the warranty. So, that is interesting.
... now you search and find cool things to do with your rooted tablet.
I'll toss you a breadcrumb though- Xposed. The rest is up to you.
_MetalHead_ said:
I'll toss you a breadcrumb though- Xposed. The rest is up to you.
Click to expand...
Click to collapse
Second that - once you've fiddled with a decent number of Xposed mods, there is no turning back :laugh: :good:
I'll toss you three other subjects related to Xposed - MoDaCo, GravityBox and App Settings You'll come a long way with those!
Also, the first things I install after updating firmware are ROM Toolbox, Root Explorer and Xposed. Then you can do anything!
AdAway.
k3lcior said:
AdAway.
Click to expand...
Click to collapse
Run Linux on it in a chroot ?
Do some hacking to see how the device works
Install busybox once you rooted, if the root process did not install it.
I have a version of busybox (1.21.1) compiled using the android-ndk
As some of the google search pages do not tell you, that if you don't use the ndk it breaks busybox's wget, traceroute, ping etc.
I know their are apps to install busybox, but they want a "donation" which usually I don't mind doing, but not for something I can compile on my own.
Screenshot from my SuperSu
Sent from my Nexus 7 using xda app-developers app
And screenshot of Xposed Modules as an example
Sent from my Nexus 7 using xda app-developers app
x10knight said:
So I just rooted my Nexus 7. I am not interested in changing the ROM, unless I really should, since I really like the Stock ROM. What are some good things to do while rooted?
Click to expand...
Click to collapse
Remove unused build-in apps
Remove unused language files
Remove unused media files
Install add blocker app
Customize your look 'n feel with Xposed modules ...
Anybody else who updating to 4.4 noticed that after installing the xposed frameworks the hardware keys do not vibrate and long press of the home button does not work?
Xposed seems to mess a lot of stuff up on TW 4.4 right now unfortunately.
I'm using xposed on 4.4.2 with no issues. I'm only using it for the Greenify experimental features though.
you have a module installed that's broken.
List your modules and maybe we can narrow it down.
I noticed after installing stock/rooted 4.4.2 that my MW Manager module doesn't work anymore. I can still go into it to select the apps to show up in the Multi-Window and reboot. But the apps don't show up. What gives?! Anybody have a solution?
Thanks in advance
Compusmurf said:
you have a module installed that's broken.
List your modules and maybe we can narrow it down.
Click to expand...
Click to collapse
Thanks, I have: App Settings, Wanam Xposed, Xposed Additions & Xblast..
Xposed Additions
remove this and I'll bet your issue is fixed.
Compusmurf said:
Xposed Additions
remove this and I'll bet your issue is fixed.
Click to expand...
Click to collapse
Worked like a charm thanks so much!
Hi! I have been figuring out how to root and setup my Sprint lgls990. I was able to root and get SU installed but now I really want to adjust/tweak the device with the G3 Tweaks App. It states that xposed framework is required also but I am not sure how to install or setup Xposed. Should I just install the Xposed APK then install the Tweaks app? No special instructions for the Sprint G3 or anything I should do first? Thanks for any help/advice!
savannahmick said:
Hi! I have been figuring out how to root and setup my Sprint lgls990. I was able to root and get SU installed but now I really want to adjust/tweak the device with the G3 Tweaks App. It states that xposed framework is required also but I am not sure how to install or setup Xposed. Should I just install the Xposed APK then install the Tweaks app? No special instructions for the Sprint G3 or anything I should do first? Thanks for any help/advice!
Click to expand...
Click to collapse
download the xposed apk install it follow the steps(unknown sources and stuff)
then in xposed install framework and then reboot then in xposed go to modules and check g3tweakbox then go to the app and select what you want then reboot again
Thanks! I am going to give it a try soon as my TI backup is finished! I seen something about not using some tweaks with Sprint ls990 is this correct or just someone's bad luck/mistake? If so which tweaks to avoid? I won't bother you guys anymore after this! For awhile anyway! Lol! Thanks again!
savannahmick said:
Thanks! I am going to give it a try soon as my TI backup is finished! I seen something about not using some tweaks with Sprint ls990 is this correct or just someone's bad luck/mistake? If so which tweaks to avoid? I won't bother you guys anymore after this! For awhile anyway! Lol! Thanks again!
Click to expand...
Click to collapse
Well I did install the Xposed app/framework and the tweaks app. Everything is working perfect so far! Thanks again!
Sent from my LGLS990 using XDA Free mobile app
First of all i would like to wish everyone here on XDA merry Christmas and happy holidays and a huuuge thank for your help.
So recently i decided i wanter all my notifications to be displayed in Paranoid Androids Halo mode i achieve that by installing the following 2 apps
Unique Controls
https://play.google.com/store/apps/details?id=com.ivianuu.halo
XHFW3 - floating windows - ver. 3.19 beta
http://forum.xda-developers.com/xposed/modules/mod-xhfw3-floating-windows-t3371074
everything works fine, however i noticed that the (allow, install or grand on-screen buttons) dont work, whilst the cancel button works fine... e.g when installing an app i cant touch install but i can touch cancel or grans SuperSU access
i am currently running the stock OxygenOS 3.2.8
rooter with xposed installed.
p.s if i kill the Unique Controls (halo) app everything works as supposed to.
does anyone know any workaround this or a fix, i have uninstalled this 2 apps for the time beeing but i would really love to make this happen.
If you're on MM and have xposed, there is a module called NoScreenOverlay. This is exactly what you need. Check it out. Cheers.
aadityarulez said:
If you're on MM and have xposed, there is a module called NoScreenOverlay. This is exactly what you need. Check it out. Cheers.
Click to expand...
Click to collapse
You're right sorry, i forgot to mention i'm on MM.
I couldn't find the NoScreenOverlay module, i did however found a NoOverlayWarning Xposed module which helped i can istall apps and allow buttons work. However for some reason the SuperSU popup (deny/grand/check to ask again) dont work.
cgprince06 said:
You're right sorry, i forgot to mention i'm on MM.
I couldn't find the NoScreenOverlay module, i did however found a NoOverlayWarning Xposed module which helped i can istall apps and allow buttons work. However for some reason the SuperSU popup (deny/grand/check to ask again) dont work.
Click to expand...
Click to collapse
Open SuperSu>settings. Disable tapjacking protection.
aadityarulez said:
Open SuperSu>settings. Disable tapjacking protection.
Click to expand...
Click to collapse
It did the trick thanks a lot ??, oh and happy holidays ?