[Mod][Root] Enable double tap to wake in any ROM if missing... - Xiaomi Mi Max Themes, Apps, and Mods

I remember dt2w was implemented in the very first CM13 release, MIUI has it, so it's in the kernel already, we just have to find what's need to be changed to enable it... And guess what... I like digging and testing so I have found it.
Open /sys/bus/i2c/devices/4-0038/wakeup_mode with text editor, change 0 to 1, save and voila... dt2w instantly works. :good:
To make changes stick at boot open /system/etc/init.d/90userinit and add these two lines at the bottom:
Code:
sleep 15
echo "1" > $(find /sys/devices/soc.0 -name wakeup_mode)
To turn it off change back 1 to 0 in above code or comment out those two lines you just added to the 90userinit script.
Do I need to mention you need root and browser/editor with root access to do this mod!?
Enjoy!
Say thanks if works for you...
Edit: Now should work with the second hw variant discovered as well...

Hi.
can be so convenient or useful to anyone. Download drive DoubleTap_Enable_fix through TWRP
sorry:good:

Yep, that's convenient... And correct for checking the file if exists...:good: Thanks, I am too lazy some time...

Can't thank you enough!!

.......

Nice!?

DoubleTap_Enable_fix. Link not working.

double tap to sleep?
what about doubble tap to sleep ?

nijel8 said:
I remember dt2w was implemented in the very first CM13 release, MIUI has it, so it's in the kernel already, we just have to find what's need to be changed to enable it... And guess what... I like digging and testing so I have found it.
Open /sys/bus/i2c/devices/4-0038/wakeup_mode with text editor, change 0 to 1, save and voila... dt2w instantly works. :good:
To make changes stick at boot open /system/etc/init.d/90userinit and add these two lines at the bottom:
Code:
sleep 15
echo "1" > $(find /sys/devices/soc.0 -name wakeup_mode)
To turn it off change back 1 to 0 in above code or comment out those two lines you just added to the 90userinit script.
Do I need to mention you need root and browser/editor with root access to do this mod!?
Enjoy!
Say thanks if works for you...
Edit: Now should work with the second hw variant discovered as well...
Click to expand...
Click to collapse
please explain little more
i am on root explorer opened that file in rb text editor
shall i just paste
Code:
sleep 15
echo "1" > $(find /sys/devices/soc.0 -name wakeup_mode)
or shall i creat script via kernel auditor ?

Paste it in at the end of /system/etc/init.d/90userinit or create new one /system/etc/init.d/100dt2w with first line #!/system/bin/sh

nijel8 said:
Paste it in at the end of /system/etc/init.d/90userinit or create new one /system/etc/init.d/100dt2w with first line #!/system/bin/sh
Click to expand...
Click to collapse
sir i cannot see init.d folder, it only init
plz help

You can do create it manually or with kernel adiutor with init.d emulation

link77kz said:
Hi.
can be so convenient or useful to anyone. Download driveDoubleTap_Enable_fix through TWRP
sorry:good:
Click to expand...
Click to collapse
What happened to this link? It'll be cool if someone haf mirrors for this one. Thanks

would be awesome if this link gets reuploaded.

Could anyone tell me if this works on any ROM/ device please? I've got a Lenovo P8 tablet (TB-8703F), with stock ROM, rooted, but the bootloader is still locked by Lenovo (which means there is no custom ROM at the moment).
Would it be safe to try it?
thanks in advance!

4-0038 folder is not present. What can be the next step? Is there anyone faced this?
---------- Post added at 06:00 AM ---------- Previous post was at 05:12 AM ----------
I lost 90userinit file after putting the code mentioned and reboot. After this file lost I am facing network issue

thanks ill try...

Related

[MOD] Enable Xperia S on-screen buttons (Stock ICS)

Hi, all!
It's my first mod and first thread on XDA, so forgive my mistakes.
I really don't like the Xperia S capacitive buttons. After ask a question about the matter on XDA, I decided to try to do it myself. And after a few hours eating some bits, I could finish my work:
Native ICS on-screen buttons on Xperia S!!!
(See screenshots attached)
Short story:
I started reading this post, that led me to this other post that led me to try to use a tool called apktool. Sadly, apktool seems a little buggy and I decided to modify the framework-res.apk without decompile and recompile it. How? Binary diff. I can't say it was easy, but after a few hours I could modify the apk. In the Long story, on the second post, I'll tell how.
Things you need:
1. Root your device (see this post to learn how to unlock and root)
2. adb installed (or a working recovery)
Things I don't need to say (but I will):
YOU are responsible for any damage this mod could cause in your phone. I did exactly what I described below and it worked for me, but only God can make sure it will work for you. I don't think it's a big deal since you can flash you ROM again in case of any problem.
How to backup:
If you really want to backup your original framework-res.apk, run it before installing:
Code:
[email protected]:~/Android/LT26i$ adb pull /system/framework/framework-res.apk framework-res.apk.bkp
And save the file framework-res.apk.bkp.
It's not very important because you can get this file from the ROM package or from here (link from optik19918).
How to install:
Install this mod is as simple as replace the file /system/framework/framework-res.apk by the modified framework-res.apk. Here follow some options to accomplish that:
Option 1 (via adb):
1. Choose a folder on your computer
2. Download framework-res.apk.
For firmware 6.1.A.0.452:
mediafire
my home (slow link)
For firmware 6.1.A.1.58:
my home (slow link)
For firmware 6.1.A.2.45:
my home (slow link)
3. Run the following steps (I did on Ubuntu Linux, but they are easily translatable to Windows):
Code:
[email protected]:~/Android/LT26i$ adb shell
[email protected]:/ $ su
[email protected]:/ # mount -o remount,rw /system
[email protected]:/ # mkdir /system/tmp
[email protected]:/ # ^D
[email protected]:/ $ ^D
[email protected]:~/Android/LT26i$ adb push framework-res.apk /system/tmp/framework-res.apk
4765 KB/s (15874684 bytes in 3.253s)
[email protected]:~/Android/LT26i$ adb shell
[email protected]:/ $ su
[email protected]:/ $ mv /system/tmp/framework-res.apk /system/framework/framework-res.apk
[email protected]:/ # ls -l /system/framework/framework-res.apk
-rw-rw-rw- shell shell 15874684 2012-06-28 03:58 framework-res.apk
[email protected]:/ # rmdir /system/tmp
[email protected]:/ # mount -o remount,ro /system
[email protected]:/ # ^D
[email protected]:/ $ ^D
[email protected]:~/Android/LT26i$ adb reboot
4. Wait your phone to restart
5. Thanks me by clicking 'Thanks' button below
6. Say some bad words to the physical buttons!!!
Option 2 (via recovery):
1. Download the on-screen-buttons.zip
2. Reboot on recovery
3. Apply this zip
4. Restart the phone
5. Thanks me by clicking 'Thanks' button below (and also Soheil_rf for the zip version)
6. Say some bad words to the physical buttons!!!
Option 3 (via file manager):
1. Download the same file of option 1, step 2 (above)
2. Use your favorite file manager to copy the downloaded file to /system/framework/framework-res.apk
3. Restart the phone
4. Thanks me by clicking 'Thanks' button below
5. Say some bad words to the physical buttons!!!
How to uninstall:
Just repeat Option 1 or 3 above, but using the framework-res.apk.bkp you backed up or this one (link from optik19918).
----------------------
Some points:
1. The file is really smaller than the original, and it must be caused by the linux archive app when I copied the patched 'resources.arsc' to the original apk. It worked for me up to now, but I will try to figure out why it happened.
2. I will explain how I patched the 'resources.arsc' and changed the boolean value in the first reply of the thread. It was a pain in the ass, but worth sharing (edit: explained here: http://forum.xda-developers.com/showthread.php?t=1823223).
Long story
Reserved to tell the long story about the patch, If I have time.
EDIT:
And finally had some time! But it was to big for a single answer, I created a new thread:
http://forum.xda-developers.com/showthread.php?p=29979582
Hope you like it!
Thanks a lot! Can u make a flashable zip since now we have recovery in kernel!
Sent from my LT26i using xda premium
WebMuth said:
Thanks a lot! Can u make a flashable zip since now we have recovery in kernel!
Sent from my LT26i using xda premium
Click to expand...
Click to collapse
I don't know how to do it yet, but I can learn.
Let's test it on more devices before, and then we can do it.
Thanks!
but man pls upload it to mediafire or something like that! is to slow 50 minutes to download
Great Work
I make it Flashable on-screen-buttons.zip
@ brunojcm :also I can make smaller buttons if you tell us how to patch resources
Thanks brunojcm
Wow this app is amazing, Awesome work guys....
I now only have to press once to go back or home, BUT there is one little problem. The last botton on the right is not assigned to open the settings menu like the original one. Is this fixable?
thx though grate work!!!!
Also could you make the black border slightly slimmer...
slyevo said:
Wow this app is amazing, Awesome work guys....
I now only have to press once to go back or home, BUT there is one little problem. The last botton on the right is not assigned to open the settings menu like the original one. Is this fixable?
thx though grate work!!!!
Also could you make the black border slightly slimmer...
Click to expand...
Click to collapse
That button is for the task manager if you noticed is not needed the other button becose in apps that require that button now there is a new button with 3 dots that is the settings button
Oh and this thread is not ment for development section, but for themes and apps
Sent from my LT26i using xda premium
WebMuth said:
That button is for the task manager if you noticed is not needed the other button becose in apps that require that button now there is a new button with 3 dots that is the settings button
Sent from my LT26i using xda premium
Click to expand...
Click to collapse
I have just figured that out, A bit late i know. Your mod is amazing i hit the correct button every time now!
Nice!
I've updated my xperia S to ICS. but i didnt find a topic about rooting it...
could you please point me to that topic? thanks
I'm going to unlock BL today just because this hack!
Portugal!
wow, great work I just installed it and it works great thanks:good:
---------- Post added at 03:43 PM ---------- Previous post was at 03:38 PM ----------
one thing, it would be possible to make buttons, auto-hide, as the Galaxy Nexus?
zbuh said:
Nice!
I've updated my xperia S to ICS. but i didnt find a topic about rooting it...
could you please point me to that topic? thanks
I'm going to unlock BL today just because this hack!
Portugal!
Click to expand...
Click to collapse
Are you for real? Cant you see the stickies?
Skickat från min LT26i via Tapatalk 2
Soheil_rf said:
I make it Flashable on-screen-buttons.zip
Click to expand...
Click to collapse
Thanks! I added an option for your method.
Soheil_rf said:
@ brunojcm :also I can make smaller buttons if you tell us how to patch resources
Thanks brunojcm
Click to expand...
Click to collapse
Man, believe me, using the way I used to patch the file, it's impossible to change images... I think we will need to wait until apktool is fixed.
zbuh said:
Nice!
I've updated my xperia S to ICS. but i didnt find a topic about rooting it...
could you please point me to that topic? thanks
I'm going to unlock BL today just because this hack!
Portugal!
Click to expand...
Click to collapse
I've put a link to a DoomLord thread explaining everything about unlock and root. You'll see there that there is two ways for root currently, both need a unlocked bootloader.
robyroby0 said:
wow, great work I just installed it and it works great thanks:good:
Click to expand...
Click to collapse
Good! Just click Thanks on me and that's all right!
robyroby0 said:
one thing, it would be possible to make buttons, auto-hide, as the Galaxy Nexus?
Click to expand...
Click to collapse
Are you talking about the little dots when you're on galery, for example? It's working for me. If you're not, I don't know this feature.
Is it possible to remove the mod from the home screen & just have it appear when is task windows?
slyevo said:
Is it possible to remove the mod from the home screen & just have it appear when is task windows?
Click to expand...
Click to collapse
Don't think so... Have you ever seen a Android with this behavior?
slyevo said:
Is it possible to remove the mod from the home screen & just have it appear when is task windows?
Click to expand...
Click to collapse
Atm nope wait for aokp amd maybe u'r lucky but not sure
Sent from my LT26i using xda premium
i found some bug in camera app, the camera screen button it not in the side of the screen, please fix.
also make the black bar smaller 25%, and the placement of back icon should be more left so it on a line with the dot and transparent bar so does the task manager too, should be more right.
and also please make an option to disable the original touch button
thanks for your effort
is there a way to uninstall this mod?
skydawn1001 said:
is there a way to uninstall this mod?
Click to expand...
Click to collapse
yes use this zip http://www.mediafire.com/?62d7d4c2j2uy19m
or if you made a backup of the original file use the option 1 with the stock file

Spice MI 425 mods/tweaks

Hi All,
***************************************** Warning ********************************
Doing any stuff mentioned below might brick your phone and
I am not responsible for that. Please do it at your own risk and
after knowing what you are doing.
************************************************************************************
Was trying few small things with the phone.
1) Tweaking the build.prop for fun.
I tried few changes with build.prop as following are the changes I have done.
A) ro.sf.lcd_density=200 changed from 240 increases resolution. but I am not sure about stock launcher as I have Go Launcher.
B) ro.media.enc.jpeg.quality=100 sets jpeg img quality to 100%
C) windowsmgr.max_events_per_sec=55 improves performance.
......more to come soon.
Have attached my build.prop as build.prop.txt all u need is removing .txt at the end.
2) Tried boot animation and its simple by replacing bootanimation.zip in /system/media/
3) Never liked typing password/pin/pattern for unlocking the device, I used this one methode for Galaxy S2 to have security less/administrator less email. You can try it from following link.
http://forum.xda-developers.com/showthread.php?t=1117452
Alternatively follow following steps;
How to apply this patch?
1) Root your phone. Your phone must be rooted. It is impossible to apply this patch without root access. You need root to proceed. Get Java (Java SE JRE v6 or 7)
2) Get USB drivers. Most likely you already have this because of step 1.
3) Enable USB debugging on the phone (Settings->Applications->Development->USB debugging)
*must have a working adb connection.
4) Download and unzip attached patch email policy zip.
5) Run apply-patch.cmd
* Mac/Linux users: run apply-patch-nix.sh for further instructions
THANKS rustamabd from Galaxy S2 forum for this, its whole and solely his work, I have only copied his work.
Zipaligning your apps.
Here is a way to zipalign all your systems for better performance as zipaligned apps consume less RAM.
1) Unzip attached zipalign.zip anywhere on your windows machine.
2) Open cmd run command adb pull /system/app app_stock. This will copy all apps from system/app to app_stock folder.
3) Run zip-align.exe and click select folder with apks and choose folder app_stock of step 2 and click yes when it asks open output folder with .bat
4) The folder that will open will contain one zipalign.bat file, run this batch file by double clicking it.
5) When it completes all your zipalign apps will in folder zipalignedapps in same folder as of bat file.
6) Run cmd and navigate to the folder where zipalignedapps folder is. Run adb push zipalignedapps /sdcard/
7) Reboot phone recovery(CWM recovery only) and goto mount menu, mount sdcard and system
8) Open cmd on your computer and run commands in same sequence as following.
adb shell cp /sdcard/zipalignedapps/* /system/app/
adb shell chmod 644 /system/app/*
9) unmount system and sdcard
10) goto advance menu of recovery and wipe dalvik cache
11) reboot your phone. It will take some time to reboot but will be fine.
Thanks to Jip-Jan for the zipalign application.
New battery circle mod.
download attached batterycirclemod.zip and place framework-res.apk in /system/framework/ folder and
place SystemUI.apk in /system/app/. wipe delvik cache from CWM recovery and reboot.
Plz upload the build.prop file..so that we can try
Sent from my Spice Mi-425 using Tapatalk 2
Hey this is indeed helpful.
Can I link this up in my thread of MI 425?
Here:
http://forum.xda-developers.com/showthread.php?t=1695807
suhas.holla said:
Plz upload the build.prop file..so that we can try
Sent from my Spice Mi-425 using Tapatalk 2
Click to expand...
Click to collapse
Done
prasad12ka4 said:
Hey this is indeed helpful.
Can I link this up in my thread of MI 425?
Here:
http://forum.xda-developers.com/showthread.php?t=1695807
Click to expand...
Click to collapse
Sure why not, we all want whats best for everyone
braveBuddy said:
Sure why not, we all want whats best for everyone
Click to expand...
Click to collapse
Ok so you can go through my thread,
there are various things which will fascinate you about this handset.
You can also contribute there.
It will be easy for all of us if we keep this together in a single thread which will make it easy for newbees to get a hold of what they look for.
As we all know , info for this handset is not that easy to find as its an OEM.
prasad12ka4 said:
Ok so you can go through my thread,
there are various things which will fascinate you about this handset.
You can also contribute there.
It will be easy for all of us if we keep this together in a single thread which will make it easy for newbees to get a hold of what they look for.
As we all know , info for this handset is not that easy to find as its an OEM.
Click to expand...
Click to collapse
Thanks, I had already gone through your thread and its very helpful. But the point my friend is it becomes very difficult to go through all those pages to get to what exactly u were looking for. In my opinion one should post a different thread when it has different purpose. This will also help us increase the thread count for our device and get us our own section.
braveBuddy said:
Thanks, I had already gone through your thread and its very helpful. But the point my friend is it becomes very difficult to go through all those pages to get to what exactly u were looking for. In my opinion one should post a different thread when it has different purpose. This will also help us increase the thread count for our device and get us our own section.
Click to expand...
Click to collapse
we won't get our own section as this handset is only in India.
also i have provided shortcuts in my 1st post itself for various stuff that its important
Sent from my Dell Venue using xda premium
how do i get vdo calling in gtalk? i dont even see google talk in market... it was there under google inc.
being run by armv7, vdo calling is natively supported right.... so can the dialer b modded or dialer from samsung/micromax dual sim fones can b used to make 3g vdo calls? i saw this micromax a52 (most probably) on utube that day & it could do 3g vdo call
also any other fm app b used tat would give features like mono/stereo, speaker/earfone, more channel memory, better seception
windowsmgr.max_events_per_sec=55 ....wat does it do actually?
---------- Post added at 11:08 PM ---------- Previous post was at 11:06 PM ----------
whats "security less/administrator less email" ....didnt understand anything bout yr point-3
---------- Post added 24th July 2012 at 12:01 AM ---------- Previous post was 23rd July 2012 at 11:08 PM ----------
another thing is to make mi-425 work with ad-hoc .....!!! like making a wpa_supplicant for our fone
sadhu_s60 said:
how do i get vdo calling in gtalk? i dont even see google talk in market... it was there under google inc.
being run by armv7, vdo calling is natively supported right.... so can the dialer b modded or dialer from samsung/micromax dual sim fones can b used to make 3g vdo calls? i saw this micromax a52 (most probably) on utube that day & it could do 3g vdo call
also any other fm app b used tat would give features like mono/stereo, speaker/earfone, more channel memory, better seception
windowsmgr.max_events_per_sec=55 ....wat does it do actually?
---------- Post added at 11:08 PM ---------- Previous post was at 11:06 PM ----------
whats "security less/administrator less email" ....didnt understand anything bout yr point-3
---------- Post added 24th July 2012 at 12:01 AM ---------- Previous post was 23rd July 2012 at 11:08 PM ----------
another thing is to make mi-425 work with ad-hoc .....!!! like making a wpa_supplicant for our fone
Click to expand...
Click to collapse
Video Calling in Gtalk is supported in ICS.
For video calls you need a client like Fring or Skype.
For other FM app, try Spirit FM
windowsmgr.max_events_per_sec=55 improves phone performance.
For the rest,,
Head here: http://forum.xda-developers.com/showthread.php?t=1695807
sadhu_s60 said:
how do i get vdo calling in gtalk? i dont even see google talk in market... it was there under google inc.
being run by armv7, vdo calling is natively supported right.... so can the dialer b modded or dialer from samsung/micromax dual sim fones can b used to make 3g vdo calls? i saw this micromax a52 (most probably) on utube that day & it could do 3g vdo call
[/COLOR]another thing is to make mi-425 work with ad-hoc .....!!! like making a wpa_supplicant for our fone
Click to expand...
Click to collapse
here's one link to working AV gtalk app. install with caution as its not yet tested by me.
http://forum.xda-developers.com/showthread.php?t=1056793
new development
Hi All,
Added few more things;
1) Zipaligning your apps.
2) Circle Battery mod.
details in first post.
Enjoy.........
theming
Anyone can easily theme there system/rom using the UOT kitchen.
http://uot.dakra.lt/kitchen/
ur thread is for advanced users..i m new and kw nothing..could u plz tell me in detail?? as were to place and what to replace?? how to use step by step?? plz bro...
anshul1321 said:
ur thread is for advanced users..i m new and kw nothing..could u plz tell me in detail?? as were to place and what to replace?? how to use step by step?? plz bro...
Click to expand...
Click to collapse
Hey mate, which mod you want to apply pls let me know and i will put more detailed info for it.
1] plz tell me detail about build.prop.txt, how to use it??
2]in batteryCirclemod...what it the meaning of below line and how to do it??
"wipe delvik cache from CWM recovery and reboot...how???"

[Guide]Locking Apps In Memory

Create a file local.prop in /data
Open it with text editor and add the following line :
For phone :-
Code:
sys.keep_app_1=com.android.contacts
for any other app
Code:
sys.keep_app_1=com.example.app
Step by Step Guide (Thank vaibhav) :
http://forum.xda-developers.com/showpost.php?p=31628598&postcount=24
Other methods if this does not work :
1 ) http://forum.xda-developers.com/showthread.php?t=1890495(by espaciosalter20)
2 ) http://forum.xda-developers.com/showthread.php?t=1012330(by zeppelinrox)
That's more of a help than asking people to stop raising flags...thanks buddy!
[email protected]
Has any1 tried this already??? does this work?
vaibhav palande said:
Has any1 tried this already??? does this work?
Click to expand...
Click to collapse
It's working for me.
actually i did'nt even have any delay opening the dialer earlier.
maybe someone who had this problem can try and report.
at least there is no boot loop or 'stuck at m logo' problem ,so no harm in trying.
i want to add gosms in memory... the app name is com.jb.gosms..
what line should i add??
sys.keep_app_1=com.jb.gosms OR something else???
vaibhav palande said:
i want to add gosms in memory... the app name is com.jb.gosms..
what line should i add??
sys.keep_app_1=com.jb.gosms OR something else???
Click to expand...
Click to collapse
if you already have contacts in memory then ,
sys.keep_app_2=com.jb.gosms
also you can check app name from package browser located in setting>developer option>launch tools
This works great. Tried it.. all the apps added to local prop take no time to open... thanx a lot... :good::good::highfive:
Do i have to set specific permissions to the file?
Found one thing about editing local.prop
Found one thing:
After entering the app name in local.prop file leave one line blank at the bottom otherwise even if u save it, phone says no changes made... and apps u added in local.prop file won't be locked in memory.. Hope i helped.. :good:
Great tip, thanks . Locked phone in memory, no more delays now.
Trimis de pe Motorola Defy
What about this??? kanpurite?
Mikis89 said:
Do i have to set specific permissions to the file?
Click to expand...
Click to collapse
What about this kanpurite? If we need to set specific permissions which i haven't done, i am living with a placebo effect here. :silly: But seriously now i kept my cell on standby for about an hour, and then tried opening phone, contacts and messaging apps.. BAM.... They open within a split second..
vaibhav palande said:
What about this kanpurite? If we need to set specific permissions which i haven't done, i am living with a placebo effect here. :silly: But seriously now i kept my cell on standby for about an hour, and then tried opening phone, contacts and messaging apps.. BAM.... They open within a split second..
Click to expand...
Click to collapse
EDIT:
when you create local.prop it already has the minimum permissions set (666).
so i don't think there is need to set any permissions.
okay, thanks. can someone make app for this? like hwa selector
mikrom.cz said:
okay, thanks. can someone make app for this? like hwa selector
Click to expand...
Click to collapse
I'm not sure ,but i think this one can help .
https://play.google.com/store/apps/details?id=com.lim.android.automemman&hl=en
Hey, thanks for the tips but i am noob so i want to ask, does this help to open the apps faster than before?
and if i want to put there the messeging app and the dialer what name i must write?
thank u in advance
oxristsis said:
Hey, thanks for the tips but i am noob so i want to ask, does this help to open the apps faster than before?
and if i want to put there the messeging app and the dialer what name i must write?
thank u in advance
Click to expand...
Click to collapse
It keeps your app's in memory all the time.
you can try it if your app's load slowly.
go to /data folder using any file explorer.
create a new file named 'local.prop'.
open it with text editor and add these lines :
sys.keep_app_1=com.android.contacts
sys.keep_app_2=com.android.mms
now save and reboot.
Thanks a lot!
Hope discussion in the main thread wil be over now.
I was in the ' camp' a phone is (still) a phone primarily (for me at least)....
Sd card?
May local.prop be on the sd card in the folder /mnt/sdcard/data ?
how do i create local.prop file.....can u tell me full steps and is data folder is on sdcard
Guys, the path is in the phone's memory. The / sign means the root of that file system.
To make it clear: if you put that file on the SD card the phone will EXPLODE .
Trimis de pe Motorola Defy

Make "Disable HW Overlays" permanent

Hi. Does anyone know how to make the "Disable HW Overlays" option found on some ROMs permanently checked / persistent after reboot? I'm using JellyTime R13 on my DHD. Thanks.
I don't think that there's an option to do that. But ticking the option every boot isn't all that hard.
Sent from my Desire HD using xda app-developers app
Agreed...but if there is a better way then I'd be very keen to learn of it.
tedrogers61 said:
Agreed...but if there is a better way then I'd be very keen to learn of it.
Click to expand...
Click to collapse
+1 same question on Jellytime R15 !
jean019 said:
+1 same question on Jellytime R15 !
Click to expand...
Click to collapse
On the JT R15 developer thread, someone has noted that it is a known issue.
I'm not sure whether they mean it is a known issue that the HW Overlay box is unchecked after reboot, or whether the graphical issues with checking Disable HW Overlays solves is an issue.
However, people are talking about it, and that pleases me.
tedrogers61 said:
Hi. Does anyone know how to make the "Disable HW Overlays" option found on some ROMs permanently checked / persistent after reboot? I'm using JellyTime R13 on my DHD. Thanks.
Click to expand...
Click to collapse
+1 :'(
Also looking for a permanent solution for my Inspire 4G, is frustrating to run the camera or play a video and have the phone restart cause I forgot to switch the setting last boot.
This will work!
http://forum.xda-developers.com/showthread.php?t=1904827
Sorry wrong place
sorry wrong place
please remove
Anyone try this ?
Permanent Disable Hw overlays Enjoy Script
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
Code:
#!/system/bin/sh
(while :
do
sf=$(service list | grep -c "SurfaceFlinger")
if [ $sf -eq 1 ]
then
service call SurfaceFlinger 1008 i32 1
break
else
sleep 2
fi
done
) &
:fingers-crossed: enjoy
sgatechwork said:
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
Code:
#!/system/bin/sh
(while :
do
sf=$(service list | grep -c "SurfaceFlinger")
if [ $sf -eq 1 ]
then
service call SurfaceFlinger 1008 i32 1
break
else
sleep 2
fi
done
) &
:fingers-crossed: enjoy
Click to expand...
Click to collapse
Always make sure you give credit to the original dev. I wrote this script
titanic_fanatic said:
Always make sure you give credit to the original dev. I wrote this script
Click to expand...
Click to collapse
:laugh: opps!! Credit Goes To @titanic_fanatic :silly:
script didn't work on my TX 4.3. please help
shaktishekhar said:
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
:fingers-crossed: enjoy
Click to expand...
Click to collapse
Thanks man! i was just looking for the shell cmd but this works ! *on android 7.1.2 initd. d needed to be emulated....i dont beleive its the default "load on boot" protocol any longer but emulation via kernel auditor seems to do the trick. Doesnt matter as long as i dont have to manually set check the option. Appreciate the work.
titanic_fanatic said:
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
Always make sure you give credit to the original dev. I wrote this script
Click to expand...
Click to collapse
Dear @titanic_fanatic, can I kindly ask you if you can adapt your script to make the Skia GPU renderer on Android Oreo applied on boot without it resetting every time? Thank you for the original idea anyway, it was brilliant, I use always your script
Why should I do that? Can you please explain it? ?
remained said:
Why should I do that? Can you please explain it? ?
Click to expand...
Click to collapse
Please how can I enable 4x MSAA using a shell script on android?
titanic_fanatic said:
Always make sure you give credit to the original dev. I wrote this script
Click to expand...
Click to collapse
Still works on Galaxy S5 Lineage OS 16 SmartPack kernel (oc to 2.6gHz btw) and manager. Thanks! Bookmarked this notably good post .. :good:
Works fine on a Poco M3 running A11. I've attached a basic Magisk module with titanic_fanatic's script, since that'd probably be easier to use for most people.

[Q] How to use "Restrict background data" WITHOUT notification ?

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

Categories

Resources