Disable turn off option - Android Software/Hacking General [Developers Only]

Hi
Anybody knows if exists any option that disable the option turn off the terminal for Android if not previous enter the code of terminal?
Thanks

not possible. But I wonder why would you want to do that?

If anybody take your phone and try turn off, this give you more time to call and, maybe , see the thief

Looking the same here!!:good:

Battery pull? Haha.. :banghead:
Sent from my HTC Desire using xda app-developers app

Related

[Q] WiFi settings in reg.

Hi,
Wondering if anyone knows about a WiFi registry setting or something that will keep wifi alive when the screen is locked. like androids sleep policy if you get what i mean.
Thanks
Someone has a solution?
Registry keys to change or else?
Thanks.
Not yet there isnt
Sent from my HTC Desire using XDA Premium App

PIN Security

Is there a way to set the time interval before the phone asks for your PIN. Right now it asks every time you unlock the phone. I cant seem to see any settings to change that.
Thanks.
unfortunately there is but will only work until 2.1 . Google locked down the API used to access lock settings in 2.2 and above so until they write it into the code themselves or reverse that decision it looks like your not gonna find what you need sorry.
Man, that sucks. Thanks for the detailed answer.
Sent from my SAMSUNG-SGH-I997 using XDA Premium App
theorioles33 said:
Is there a way to set the time interval before the phone asks for your PIN. Right now it asks every time you unlock the phone. I cant seem to see any settings to change that.
Thanks.
Click to expand...
Click to collapse
I use an app called: no lock
I have a pin set up for my sim card, so I only have to enter it when I reboot.
But with no lock, after you're at your home screen, run the app once, then there's no swiping, puzzle or pin to enter. Until you reboot again.
theorioles33 said:
Man, that sucks. Thanks for the detailed answer.
Sent from my SAMSUNG-SGH-I997 using XDA Premium App
Click to expand...
Click to collapse
No problem. If anything changes I'll keep ya in mind as this is a feature I am gonna miss from some of my previous phones

Tasker APP Question

Hi Guys just wanted to ask some settings regarding Background Data and Market.
What I wanted to happen is I want to Setup Background Data to permanently OFF, then when I use Market it will automatically Set to ON is this possible with Tasker? how should I set this up with Tasker.
ngek202 said:
Hi Guys just wanted to ask some settings regarding Background Data and Market.
What I wanted to happen is I want to Setup Background Data to permanently OFF, then when I use Market it will automatically Set to ON is this possible with Tasker? how should I set this up with Tasker.
Click to expand...
Click to collapse
Yes this is a basic one. Do you mean all data off, or merely auto-sync off?
Start a new profile, with the context being an app, and choose market from the list.
Then when asked, choose new task, and select 'net' then choose mobile data =on, or wifi =on, or autosync = on, or all 3 depending on what you are after. Then create the profile.
With the new profile now in your list, touch the right-hand side, and select "add exit task" then basically do the opposite of whatever you turned on in the first step.
Now when market is opened, your data will turn on, and when you exit the market, it'll turn off.
If you get stuck I can create that profile and export it and post here for you to download and import.
Sent from my HTC Desire S using xda premium
Wow ty for ur fast response and intetest Sir I will try this method and if I had trouble ill ask for ur help then. Thank you
---------
I cant seem to make it work can you check my created profile, Im sure I done it right.. but everytime i click market it still asks me to enable background data.
Sent from my HTC Desire S using XDA Premium App
Ok here it is opened up my pc, hope you can check it.
ngek202 said:
Wow ty for ur fast response and intetest Sir I will try this method and if I had trouble ill ask for ur help then. Thank you
---------
I cant seem to make it work can you check my created profile, Im sure I done it right.. but everytime i click market it still asks me to enable background data.
Sent from my HTC Desire S using XDA Premium App
Click to expand...
Click to collapse
Ah. Apologies it appears that Tasker is very very broken right now.
I've been beta testing ROMs like mad recently, and have not put Tasker back on for a while. I have just tried putting it back on, and none of the App related contexts are working. I have e-mailed Tasker support to see why. I'll let you know what the response is. In the mean time, I have tested a work-around which does work. We can use a Tasker widget. Those still work!
1. Open Tasker, and select the lightning icon to create a new Task (we are not creating a profile here). Name it "Market".
2. Create the following task:
Net> Mobile Data = On
Net> Wifi = On
Tasker> Wait = 2 seconds
App> Load App> Market
3. Before hitting the tick button to save it, select an icon for the widget. Do this by pressing the button that looks like a small multi-coloured chess board. Select 'App Icon' and scroll down to the Market and select it.
4. Now save the Task.
5. Back out of Tasker and back to your home page.
6. Long-press in an appropriate space to add a widget like you normally would. Scroll down the widget list and select 'Task'. It'll have the Tasker icon by it.
7. Select the 'Market' task you just created. It'll give you a quick preview of the settings of the Task. Hit the Tick button.
8. Now your widget is set, and it'll look very similar to the Market shortcut icon. Press this, and Tasker will turn your data on, wait 2 seconds (for a connection to be made) then open the Market.
9. If 2 seconds is not long enough, edit the Task to bump the wait up to 3 or 4 seconds. 2 seconds worked for me.
The only downside to this over a Profile, is that you'll have to manually turn the data back off afterwards. You could either use the HTC widgets, or create another widget using the above steps and just set it to turn off 3G and wifi in one go when pressed. Call it "Data Off" or something.
Hope this helps for now. I'm keen to see why Tasker seems to have gone wrong as I'm one of it's biggest advocates. I'll be sure to post back here when I've gotten to the bottom of it.
Done it. but I couldn't try it right now no Wifi Im outside the house lol will try this when i get home.
Hope tasker will get fixed soon I tried your first Instruction and I think I followed it correctly.
Thanks a lot
One more thing when I add the Widget an Error appears "Warning: couldn't save data, making backup on SD" is this Ok?
ngek202 said:
Done it. but I couldn't try it right now no Wifi Im outside the house lol will try this when i get home.
Hope tasker will get fixed soon I tried your first Instruction and I think I followed it correctly.
Thanks a lot
One more thing when I add the Widget an Error appears "Warning: couldn't save data, making backup on SD" is this Ok?
Click to expand...
Click to collapse
Yeah that's fine.
And I've had progress with Tasker not working on my phone. I changed the kernel I was using and it started working again! MDJ's Unity V4 Kernel works perfectly with Tasker.
What are you running? Are you s-off/rooted? I rooted my phone almost straight out of the box, so have never run Tasker on a stock kernel.
Thank you for your post as it has helped highlight something that I had missed in testing! Ironically I thought putting Tasker on a beta ROM would interfere with the bug finding process. We live and learn!
Thank you for your post as it has helped highlight something that I had missed in testing! Ironically I thought putting Tasker on a beta ROM would interfere with the bug finding process. We live and learn!
Click to expand...
Click to collapse
wow cool
Oh mine's S-OFF and Rooted too, I'm currently using Virtuous Unity 2.37 I'm not sure if this is the Kernel I just looked over the "About Phone" it's 2.6.35.13-UNITY-V4-g4796564
oh it says [email protected] #2.. so I think we have the same Kernel? I'm not well aware of this stuffs or maybe I just need a working Wifi Connection still outside Ill be home in 5hrs..
Ah. It was putting unity v4 back on that fixed it. Perhaps try reflashing it.
Sent from my HTC Desire S using xda premium
Is this the one http://forum.xda-developers.com/showthread.php?t=1100396
That's the kiddie.
Sent from my HTC Desire S using xda premium
Thanks again will try this when I get home and Post what happens next.
Sad
Still didn't work tried both methods and Reflashed the Kernel but to no avail , but thanks for the effort and interest in helping me though
must not be compatible with my current ROM
Thanks
(Pressed Thanks)
Tasker dev emailed me back. They have confirmed reports of app recognition failures on certain custom ROMs. Yours must be one of them. Have you asked the dev of your rom about it? Perhaps he could help.
Sent from my HTC Desire S using xda premium
yeah maybe that's the right Idea
I believe you've all misunderstood the OP. (or maybe I misunderstood him)
Tasker doesn't support turning OFF the Background Data setting under the Account & Sync option.
I am looking for an app that could turn this OFF and ON as well.. Don't know if AutomateIt supports it.
Skanob said:
I believe you've all misunderstood the OP. (or maybe I misunderstood him)
Tasker doesn't support turning OFF the Background Data setting under the Account & Sync option.
I am looking for an app that could turn this OFF and ON as well.. Don't know if AutomateIt supports it.
Click to expand...
Click to collapse
Yes unfortunately tasker can't yet turn this off, but with auto-sync turned off (which it can do) then battery drain and data usage are minimal. I don't think turning off both makes for a greater advantage.
Sent from my HTC Desire S using xda premium
wnp_79 said:
Yes unfortunately tasker can't yet turn this off, but with auto-sync turned off (which it can do) then battery drain and data usage are minimal. I don't think turning off both makes for a greater advantage.
Sent from my HTC Desire S using xda premium
Click to expand...
Click to collapse
Based on my experience, it might..
I posted this a while back.
http://forum.xda-developers.com/showpost.php?p=14647492&postcount=106

[FIXED] Sleep option on power button long-press disappeared

Has anyone experienced their sleep option disappearing? It is usually available when long pressing the power button, along with the option to choose airplane mode. The only option I now have is "Power Off, would you like to shutdown?" I really do not know how this may have happened. I think it may have something to do with trying to flash Beats through Pimp My ROM, and also the Sony xLoud & ClearAudio+ engine. However, I did create a Nandroid backup prior to those flashes and restored my system (even cleared Cache and Dalvik+3 before each flash), but the problem persists. Does anyone have a solution to this or a proposed fix? At first I thought it had to do with Arrrghhh's Kernel I flashed, but I was mistaken (hence the following references to his Kernel in the following posts and my editing of the origional thread).
Any guidance would be appreciated, Thanks!
Sent from my XT897 using xda app-developers app
Kernel's would not change what userland is showing you...
The setting you're talking about is a userland setting. Are you sure you didn't change something else?
Re: Deep Sleep State disabled...
Well, I did flash the Sony sound codecs from Pimp my ROM. But I went back and undid those settings after flashing a restore made prior to those changes...no change.
Could it be that my min CPU setting is set to 96 MHz? Would this disable my phone from waking in sleep mode, and could the system of automatically changed that setting?
Sent from my XT897 using xda app-developers app
Again, the kernel cannot remove userland options. I have the menu option, works fine on my kernel.
Re: Deep Sleep State disabled...
I guess I may not know what you are referring to by "userland" settings. Any ideas how I can fix this and get back my sleep option? I use it at work between breaks, really saves my batt
Sent from my XT897 using xda app-developers app
galacticservant said:
I guess I may not know what you are referring to by "userland" settings. Any ideas how I can fix this and get back my sleep option? I use it at work between breaks, really saves my batt
Sent from my XT897 using xda app-developers app
Click to expand...
Click to collapse
You have changed something in the system.
Again, my kernel will not remove this option. There is some other reason the menu item is missing - I see you are making all sorts of changes, including build.prop hacks - so who knows what you have done to remove this menu item.
One last time - my kernel has not removed any menu items. I'm running my kernel and I see the 'sleep' option when I longpress on power.
Re: Deep Sleep State disabled with Arrrghhh's kernel version 0.10 ?
Of course, Im totally aware it was not your kernel...I am just asking if anyone can direct me what I can do to fix it...your kernel runs perfectly on this phone! I even was able to get the CPU slide settings to stick. But I really like the sleep option and am requesting help on what to do...can anyone offer assistance? Thanks.
Sent from my XT897 using xda app-developers app
galacticservant said:
Of course, Im totally aware it was not your kernel...I am just asking if anyone can direct me what I can do to fix it...your kernel runs perfectly on this phone! I even was able to get the CPU slide settings to stick. But I really like the sleep option and am requesting help on what to do...can anyone offer assistance? Thanks.
Sent from my XT897 using xda app-developers app
Click to expand...
Click to collapse
You can't restore an old backup? Maybe pillage a few tweaks you've done one at a time?
Did you flash any update.zip's that would affect the system UI / frameworks/core / etc? Stuff like the 1% battery, status bar toggles, etc.
Tried a factory reset to see if that does it?
Options get worse from here on... flash ROM back, flash stock using RSD... etc.
Re: Deep Sleep State disabled with Arrrghhh's kernel version 0.10 ?
Yeah, flashed an old recovery from when it did work, no dice. I did flash Sony xLoud and ClearAudio+ from the Pimp My ROM app, and that is when I think it happened. Also tried to install Pimp My Beats before that, but it soft bricked my phone and I reinstalled the system with RSD Lite. So I really dont know what it might have been, but I really dont want to flash with RSD again. I have my system set up beautifully right now except for this one issue. Oh, and is there a way to modify the title of this thread? Don't want it to reflect negatively on your kernel, sorry, I'm a new member...
Sent from my XT897 using xda app-developers app
If you edit the original post, then click 'go advanced'. You should be able to edit the thread title then.
Good luck resolving it...
Re: Sleep option on power button longpress somehow disappeared, need help with fix...
Check your "/system/build.prop" file.
I think it is "deep_sleep_enabled=" or something similar.
Sent from my XT897 using xda premium
Re: Sleep option on power button longpress somehow disappeared, need help with fix...
hfase said:
Check your "/system/build.prop" file.
I think it is "deep_sleep_enabled=" or something similar.
Sent from my XT897 using xda premium
Click to expand...
Click to collapse
That was the first thing I checked and strange thing is, it is enabled..........?
Re: Sleep option on power button longpress somehow disappeared, need help with fix...
I'm really wondering what I did to create this situation, for now I am using airplane mode to cut all radios off to save battery at work. I did not modify any build_props that would affect the sleep option...really think it was attributed to flashing zips from Pimp My ROM. Any dev knowledge would rock though, I've been sifting through system files and still have not come up with any plausible solutions...
Sent from my XT897 using xda app-developers app
Did you mod the systemUI? I think it has to do with modifying systemUI. In all JB updates for Motorola phones,sleep mode has been disabled. And I think it will be removed soon on Photon Q in the next update.
Would LOG INFO be of help???
huatz84 said:
Did you mod the systemUI? I think it has to do with modifying systemUI. In all JB updates for Motorola phones,sleep mode has been disabled. And I think it will be removed soon on Photon Q in the next update.
Click to expand...
Click to collapse
Not intentionally, but what would you consider the System UI, and if I was to mod it, where would I start? (Excuse my NoobNess, I know that question is extremely vague, but give me an example). FYI, I am not DeOdexed, so some UI mods might not even be possible, right? I just saved a log and poured through it and found this:
"DeepSleepMediaWatchDog" prio=5 tid=87 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x419ff360 self=0x11aa7d8
| sysTid=3136 nice=0 sched=0/0 cgrp=default handle=14416016
| schedstat=( 0 0 0 ) utm=0 stm=1 core=0
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:118)
at android.os.Looper.loop(Looper.java:118)
at android.os.HandlerThread.run(HandlerThread.java:60)
If there is any other info in a log that might point me in the right direction please let me know...Thanx
Re: Sleep option on power button longpress somehow disappeared, need help with fix...
galacticservant said:
Not intentionally, but what would you consider the System UI, and if I was to mod it, where would I start? (Excuse my NoobNess, I know that question is extremely vague, but give me an example). FYI, I am not DeOdexed, so some UI mods might not even be possible, right? I just saved a log and poured through it and found this:
"DeepSleepMediaWatchDog" prio=5 tid=87 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x419ff360 self=0x11aa7d8
| sysTid=3136 nice=0 sched=0/0 cgrp=default handle=14416016
| schedstat=( 0 0 0 ) utm=0 stm=1 core=0
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:118)
at android.os.Looper.loop(Looper.java:118)
at android.os.HandlerThread.run(HandlerThread.java:60)
If there is any other info in a log that might point me in the right direction please let me know...Thanx
Click to expand...
Click to collapse
Answered my own question, the above reference I believe is related to wake_lock when device is in deepsleep mode, completely different from putting phone to sleep...oops. Learn as you go, right?
Sent from my XT897 using xda app-developers app
Re: Sleep option on power button longpress somehow disappeared, need help with fix...
huatz84 said:
Did you mod the systemUI? I think it has to do with modifying systemUI. In all JB updates for Motorola phones,sleep mode has been disabled. And I think it will be removed soon on Photon Q in the next update.
Click to expand...
Click to collapse
Why are they removing it, I thought it was a good feature. While at work I barely have time to look at my phone and it would usually be on silent.. so now I just put it sleep.
Sent from my XT897 using Tapatalk 2
Re: Sleep option on power button longpress somehow disappeared, need help with fix...
jae18708 said:
Why are they removing it, I thought it was a good feature. While at work I barely have time to look at my phone and it would usually be on silent.. so now I just put it sleep.
Sent from my XT897 using Tapatalk 2
Click to expand...
Click to collapse
Well, I have resorted to using a third-party app for controlling the variables of the automatic deepsleep function (your device goes into this state when your screen turns off). I am able to modify most aspects of what system processes wake the device out of this state, how often it auto-wakes to sync background data, and which radios turn off as well in deepsleep. Hopefully it works...
Sent from my XT897 using xda app-developers app
Re: Sleep option on power button longpress somehow disappeared, need help with fix...
jae18708 said:
Why are they removing it, I thought it was a good feature. While at work I barely have time to look at my phone and it would usually be on silent.. so now I just put it sleep.
Sent from my XT897 using Tapatalk 2
Click to expand...
Click to collapse
Don't know,man. Maybe they think Smart Actions can do much more than Sleep Mode.
galacticservant said:
Well, I have resorted to using a third-party app for controlling the variables of the automatic deepsleep function (your device goes into this state when your screen turns off). I am able to modify most aspects of what system processes wake the device out of this state, how often it auto-wakes to sync background data, and which radios turn off as well in deepsleep. Hopefully it works...
Sent from my XT897 using xda app-developers app
Click to expand...
Click to collapse
Yeah..the only option left is by using third party app like Juice Defender or use Smart Actions.
Sent from my DROID4 using Tapatalk 2
Re: Sleep option on power button longpress somehow disappeared, need help with fix...
huatz84 said:
Don't know,man. Maybe they think Smart Actions can do much more than Sleep Mode.
Yeah..the only option left is by using third party app like Juice Defender or use Smart Actions.
Sent from my DROID4 using Tapatalk 2
Click to expand...
Click to collapse
I feel it's more convenient to use a third party app that allows you modify the parameters of a native function of the device's ROM (deep_sleep) since it closely resembles the manual sleep option. I found an app called Deep Sleep Battery Saver Pro. Could benefit from more functions and better language translation though...
Sent from my XT897 using xda app-developers app

[Q] Q: Tasker

Hey,
I have a question about Tasker and Secure Settings.
I woud love to know if its possible to set a timing on my smartphone to lock my device with a pincode and how.
If someone could help me with that, that would be awesome!
~AwakenJornie
1. Go to settings > display.
2. Select "sleep" after how much ever time you want.
3. Go to settings> security
4. Select the screen lock, as password/ pattern
5. The phone will automatically lock after the given amount of time
Hope this helped.
Sent from my A11 using xda app-developers app
But is this with or without the Tasker app?
Sent from my Sensation XL with Beats Audio X315e using xda app-developers app

Categories

Resources