Slider Lock Bypass Mod How To? - Droid X General

I googled with no success....can anyone explain what to modify within the framework-res.apk? I would like to do the mod myself. I am not sure what needs to be changed.
Thanks

I asked this last year and never got help. I ended up using the No Lock app. Unfortunately, that also disables your security lock.

Hmmmm, wonder why not....I did the CRT mod along with several others with success....I simply do not want to use someone else's framework-res since mine is so heavily modified to my own liking....I hope someone chimes in for us!

I think I found it
Check in the res/values folder and open bools.xml
3/4 ways down I see these two lines:
Code:
<bool name="config_keyguardview_bypass_screenlock_if_devicelock_exists">false</bool>
<bool name="config_keyguardview_devicelockUI_simplified">false</bool>
I am sure changing one if not both to true would do the trick!

Not sure if this just you want but FWISW:
http://forum.xda-developers.com/showpost.php?p=18832323&postcount=180
http://forum.xda-developers.com/showthread.php?t=1138581 **source**
This works on the Dx2 for screenlock disable.

Related

Change Background Colors from 'Light' and 'Dark' with RegistryEditor

Hey! I just figured out how to change the background colors so you don't have to use black or white using RegistryEditor. I followed the directions on:
http://forum.xda-developers.com/showthread.php?t=938106
The registry editor from schaps on TouchXperience allowed me to do this.
I'm sorry if someone else figured this out already! I searched around and couldn't find anything, but here goes:
HKEY_LOCAL_MACHINE>ControlPanel>Themes
from there 0 is Light and 1 is dark. I can't figure out how to create new ones, I'm brand spanking new to all this, but I'm hoping someone else can figure it out!
I went into 0 and changed all of the listed values with #FFFFFFFF to the color of my choice and it worked like a charm. I can't figure out how to change the keyboard keys and background yet, but I'm working on it.
I'm assuming all you have to do is copy/paste the values into a new key such as "2" or "3" or whatever you wanted to call it to create a new option. Like I said I'm new to this and plan on trying it out with the app developer to see if I can create an app that does all this for you.
Anyone else who wants to give it a shot, be my guest! I just want to see more options out there!
Thank you all
P.S. This should work for all phones I would think, but I'm on the Focus so...
UPDATE:
http://forum.xda-developers.com/showthread.php?t=907971
Has some info on this sort of thing mixed throughout, should have probably posted this in development but too late now. Anway good luck out there

[SOLVED] Hide tabs in Sense

Hi all,
I'm trying to make a cab which should hide tabs in Manila but for some reason
it doesn't want to hide the tabs.
Does someone know how to accomplish this?
Thanks in advance!
The following registry I've added in the cab, but after the cab is installed and I softreset the device the old registry is still there plus the tabs are still vissible.
This values I copied from device after manual hiding the tab first.
[HKEY_CURRENT_USER\Software\HTC\Manila]
"Manila://footprints.page.hidden"=dword:00000002
"Manila://docexplorer.page.hidden"=dword:00000002
Hi,
Just look, may be you need to modifiy the key in:
HKLM\Software\HTC\Manila\Configuration\(n° of tab)\Enable=0
But I think the problem if you do like that tab number should be the original number, if you move the tabs cab will not work.
Hi Ct_moi,
Thanks for your answer but that key doesn't exist on my device.
ct_moi said:
Hi,
Just look, may be you need to modifiy the key in:
HKLM\Software\HTC\Manila\Configuration\(n° of tab)\Enable=0
But I think the problem if you do like that tab number should be the original number, if you move the tabs cab will not work.
Click to expand...
Click to collapse
Sorry my bad, after some more investigation, this hides the tabs.
[HKEY_CURRENT_USER\Software\HTC\Manila]
"Manila://footprints.page.hidden"=dword:00000001
"Manila://docexplorer.page.hidden"=dword:00000001
Weird as I copied previous values from device.
Anyway it's solved.
Thanks again!
Interesiting,
I was trying something similar for my next release of my kitchen build. Like you I went into the registery and changed the dword to 2 and it made the particular tab hidden, when I tried it as part of a cooked rom it crashed sense.
From what I can tell dword:2 should enable the tab and dword:0 should hide them, but as I said when I tried it, sense just froze on startup.
I am also looking into being able to predefine the order of the tabs as well, so you can cook only the tabs you want and the order you want them. I'll let you know if I come up with anything!
Nono that's not what I did.
This is what I did to discover the registry values of hidden tabs.
First I made a registry dump with Dotfred´s Taskmanager on my device
Second I went into Manila settings/Personalise-Home screen tabs and untabbed the tabs I wanted to hide.
Third, after softreset I made another registry dump after the tabs were hidden
Fourth I compaired the two dumps (before and after) using ´Compair it´ and copied the changes
That´s how I found the values of ´2´
The value ´1´ to hide the tabs was just a wild ques and it worked.
GhostXSeries said:
Interesiting,
I was trying something similar for my next release of my kitchen build. Like you I went into the registery and changed the dword to 2 and it made the particular tab hidden, when I tried it as part of a cooked rom it crashed sense.
From what I can tell dword:2 should enable the tab and dword:0 should hide them, but as I said when I tried it, sense just froze on startup.
I am also looking into being able to predefine the order of the tabs as well, so you can cook only the tabs you want and the order you want them. I'll let you know if I come up with anything!
Click to expand...
Click to collapse

[Q] Hardware Key settings

Hi there,
we got an unofficial port of OmniROM for HTC Sensation, which has a search button and I was wondering if there is any chance to change it's function to in app search?
Custom button assignment is supported. You just need to put the correct values in the overlay
Sent from my N1 using Tapatalk
Figured that out, but since I'm not building that rom I wonder if I can change that by editing the framework-res.apk?
I tried to decompile it, edit the value in res/values/integers.xml and recompile and sign that apk, but rom doesn't boot with that apk...
Sajito said:
Figured that out, but since I'm not building that rom I wonder if I can change that by editing the framework-res.apk?
I tried to decompile it, edit the value in res/values/integers.xml and recompile and sign that apk, but rom doesn't boot with that apk...
Click to expand...
Click to collapse
what have you actually changed?
maxwen said:
what have you actually changed?
Click to expand...
Click to collapse
In the integers.xml i scrolled down to <integer name="config_deviceHardwareKeys">0</integer> and changed the 0 to 15.
Sajito said:
In the integers.xml i scrolled down to <integer name="config_deviceHardwareKeys">0</integer> and changed the 0 to 15.
Click to expand...
Click to collapse
you also need
<bool name="config_has_hardware_buttons">true</bool>
in Settings.apk else the config settings will not be available
maxwen said:
you also need
<bool name="config_has_hardware_buttons">true</bool>
in Settings.apk else the config settings will not be available
Click to expand...
Click to collapse
Now it works. Thank you :good:
Just one last question though off topic:
Is there any way to add a quick settings bar in notification center directly? I mean one on top of the notification center as a row.
Sajito said:
Now it works. Thank you :good:
Just one last question though off topic:
Is there any way to add a quick settings bar in notification center directly? I mean one on top of the notification center as a row.
Click to expand...
Click to collapse
No quick settings bar at the moment.
Sent from my N1 using Tapatalk

Editing Ambient Modes Shift Settings?

Hello Everyone! I'm reaching out to you guys to find out how I can somehow stop ambient mode from slightly shifting my display. I fully understand that this is burn in protection and understand the risks if I find a way to disable it. I found some mentions in editing the build.prop and turning it off in there but I pulled the build.prop and see no setting in my Huawei Watches file to edit it there. Can anyone let me know what I can do to find and disable this? I am fully capable of debugging over bluetooth so i dont need a full tutorial just where to find the file or setting and edit and save it. Thanks!!! :highfive:
Bump

[DEPRECATED] Night Light on Nexus 5x/6P Android O

Hey all,
So I'd like to share my discovery with all of you.
Yesterday I was playing around with my Rooted Nexus 5x on Android O DP2 and later found that I activated Night Light in Settings>Display.
The requirements are:
A rooted Nexus 5x/6P on Android O
Pixel Theme placed in vendor/overlay
Developer Options enabled
Steps:
What you want to do is:
1. Add the Pixel theme to vendor/overlay (there are a lot of articles online for this)
2. Change your smallest width in Developer Options to 450.
3. Activate the Pixel theme in Settings>Display>Advanced>Theme
4. Voila
Why does it work?
I honestly don't know if I were to take a guess, it would be that the combination of Pixel theme and DPI trigger the software to think it's a Pixel, but again, just a guess...
I am attaching screenshots of everything and also the overlay file I used, please report back whether it worked or not!
Cheers!
Interesting! Since its already there, we should be able to trigger it without root and UI.
We need figure out what it wrote to settings.
Could you dump adb output of these 3 command, try to filter out key and value related to night mode.
I check mine and could not find one, perhaps it never existed since I never had a chance to access it yet.
Code:
adb shell settings list system
adb shell settings list global
adb shell settings list secure
Then we should be able trigger Night Light using app that can write custom key to settings like AutoTools.
Maybe one time adb command is need to grant the app permission to write secure settings depend on where the value is stored.
Developer can write an app for the switch. Better yet, Night Light quick settings tile!!
EDIT: You may also placed the Night Light tile on Quick Settings, check values of 'sysui_qs_tiles' under secure settings list.
We might be able to just add Night Light tile there using adb command.
HebeGuess said:
Interesting! Since its already there, we should be able to trigger it without root and UI.
We need figure out what it wrote to settings.
Could you dump adb output of these 3 command, try to filter out key and value related to night mode.
I check mine and could not find one, perhaps it never existed since I never had a chance to access it yet.
Code:
adb shell settings list system
adb shell settings list global
adb shell settings list secure
Then we should be able trigger Night Light using app that can write custom key to settings like AutoTools.
Maybe one time adb command is need to grant the app permission to write secure settings depend on where the value is stored.
Developer can write an app for the switch. Better yet, Night Light quick settings tile!!
EDIT: You may also placed the Night Light tile on Quick Settings, check values of 'sysui_qs_tiles' under secure settings list.
We might be able to just add Night Light tile there using adb command.
Click to expand...
Click to collapse
Night light is enabled by changing the bool value from false to true in the bool.xml in framework-res.apk/res/values/bool.xml/<bool name="config_nightDisplayAvailable">true</bool>
Tulsadiver said:
Night light is enabled by changing the bool value from false to true in the bool.xml in framework-res.apk/res/values/bool.xml/<bool name="config_nightDisplayAvailable">true</bool>
Click to expand...
Click to collapse
Arghh, totally forgot about this. They likely only start laying ground works for this kind of overlay capability around N-O (quite fresh).
Probably in-preparation for Project Treble, make it easier for OEM to configure devices. Forgo the need of modify main framework for each device.
However, I just did a quick look inside overlay apks posted above. They are no night light related strings laying around, good news for us.
As of O, our main framework-res should be the same as Pixels. This is the reason they made overlay like this.
Nevertheless, whatever detection mechanism they using for Night Light detection. There are using switch and intensity slider in settings mean they will be save inside settings provider.
We can hook onto it.
The method you mentioned was used in N, they modified that value for each device.
Tulsadiver said:
Night light is enabled by changing the bool value from false to true in the bool.xml in framework-res.apk/res/values/bool.xml/<bool name="config_nightDisplayAvailable">true</bool>
Click to expand...
Click to collapse
Apktool 2.2.2 not working as of now in compiling Android O framework.apk... so how can you change the value ?
Tulsadiver said:
Interesting! Since its already there, we should be able to trigger it without root and UI.
We need figure out what it wrote to settings.
Could you dump adb output of these 3 command, try to filter out key and value related to night mode.
I check mine and could not find one, perhaps it never existed since I never had a chance to access it yet.
Night light is enabled by changing the bool value from false to true in the bool.xml in framework-res.apk/res/values/bool.xml/<bool name="config_nightDisplayAvailable">true</bool>
Click to expand...
Click to collapse
So I did that and only found Night Light related details in secure, I'm attaching all three complete-non filtered files!
HebeGuess said:
Interesting! Since its already there, we should be able to trigger it without root and UI.
We need figure out what it wrote to settings.
Could you dump adb output of these 3 command, try to filter out key and value related to night mode.
I check mine and could not find one, perhaps it never existed since I never had a chance to access it yet.
Then we should be able trigger Night Light using app that can write custom key to settings like AutoTools.
Maybe one time adb command is need to grant the app permission to write secure settings depend on where the value is stored.
Developer can write an app for the switch. Better yet, Night Light quick settings tile!!
EDIT: You may also placed the Night Light tile on Quick Settings, check values of 'sysui_qs_tiles' under secure settings list.
We might be able to just add Night Light tile there using adb command.
Click to expand...
Click to collapse
So I shared all three files in the post above, I'm quoting you so you'd get notified! Cheers!
So did it work for y'all too?
I'm on Telegram too, very active there, if you have any doubts hit me up and mention you came from here so that I don't Spam Report ???
Telegram ID: @Anirudhgupta109
Anirudhgupta109 said:
So I shared all three files in the post above, I'm quoting you so you'd get notified! Cheers!
Click to expand...
Click to collapse
Thanks, those values store inside 'secure settings'.
I tried manually insert them into settings, actually got settings app displayed 'Night Light On' message.
Night Light itself is not working, looks like they still do some explicit check on certain conditions which your method some how have met.
HebeGuess said:
Thanks, those values store inside 'secure settings'.
I tried manually insert them into settings, actually got settings app displayed 'Night Light On' message.
Night Light itself is not working, looks like they still do some explicit check on certain conditions which your method some how have met.
Click to expand...
Click to collapse
I made a video of night light in action, couldn't upload it here so I'm sharing the GDrive link to the video
https://drive.google.com/file/d/0B_pirmux_1caa0VLODZPeU92WlE/view?usp=drivesdk
Sent from my bullhead using XDA Labs
I followed your steps, but unfortunately it doesn't seem to work.
I first extracted the theme to the folder "overlay" i created in vendor. Rebooted and applied the theme succesfully. Then opened dev option and adjusted the min width to 450, it changed to 449 automatically. Nothing happened. Rebooted but still nothing.
Anyway thanks, I will try it again later cause i loved Night Mode.
Anirudhgupta109 said:
Hey all,
So I'd like to share my discovery with all of you.
Yesterday I was playing around with my Rooted Nexus 5x on Android O DP2 and later found that I activated Night Light in Settings>Display.
The requirements are:
A rooted Nexus 5x/6P on Android O
Pixel Theme placed in vendor/overlay
Developer Options enabled
Steps:
What you want to do is:
1. Add the Pixel theme to vendor/overlay (there are a lot of articles online for this)
2. Change your smallest width in Developer Options to 450.
3. Activate the Pixel theme in Settings>Display>Advanced>Theme
4. Voila
Why does it work?
I honestly don't know if I were to take a guess, it would be that the combination of Pixel theme and DPI trigger the software to think it's a Pixel, but again, just a guess...
I am attaching screenshots of everything and also the overlay file I used, please report back whether it worked or not!
Cheers!
Click to expand...
Click to collapse
Hi bro, can u explain me how to root nexus 5x with o dp2?
diaboliko.hacker said:
Hi bro, can u explain me how to root nexus 5x with o dp2?
Click to expand...
Click to collapse
You need to know how to flash TWRP, there's a guide by Heisenberg over here
Once in TWRP flash Magisk v13 (unofficial snapshot) and install Magisk Manager 5.
Magisk: https://forum.xda-developers.com/apps/magisk/unofficial-magisk-v10-beta-built-t3521901
The download is on thier GitHub! Cheers!
Sent from my bullhead using XDA Labs
johnannis said:
I followed your steps, but unfortunately it doesn't seem to work.
I first extracted the theme to the folder "overlay" i created in vendor. Rebooted and applied the theme succesfully. Then opened dev option and adjusted the min width to 450, it changed to 449 automatically. Nothing happened. Rebooted but still nothing.
Anyway thanks, I will try it again later cause i loved Night Mode.
Click to expand...
Click to collapse
Did you try my overlay file? If yes, it contains the rro type too, switch between that and Pixel while on 449 smallest width (yes it switches to 449 automatically) and your screen should flicker and your settings screen should move down one row! Please let me know if it works!
Sent from my bullhead using XDA Labs
Work for me
iamaniff said:
Work for me
Click to expand...
Click to collapse
I'm glad it did!
Not working for me.
Using rooted Nexus 5X Android O DP2
I copied all files in /vendor/overlay/ folder.
I have the option to select a theme, I can select 2 themes but nothing is changing if i clock on them.
I also changed my min DPI to 449 like you said in your post.
Aragur said:
Not working for me.
Using rooted Nexus 5X Android O DP2
I copied all files in /vendor/overlay/ folder.
I have the option to select a theme, I can select 2 themes but nothing is changing if i clock on them.
I also changed my min DPI to 449 like you said in your post.
Click to expand...
Click to collapse
You're not even on Android O anymore
Sent from my bullhead using XDA Labs
Anirudhgupta109 said:
You're not even on Android O anymore
Click to expand...
Click to collapse
I am using Android O??
It works in DP3, you dont get the theming option but night light works.

Categories

Resources