I need help from anyone with some scripting knowledge. - General Questions and Answers

Hello, i am the new guy haha. The thing is short.
I want to make some automation that deactivate battery saver mode in Android marshmallow once it is activated. I'm using Macrodroid to do simple actions for example remote commands to delete apps data, toggle and share location, wifi, lock, unlock screen, etc. if i accidently lose my phone or someone take it forever. But the funcion that should do it, doesn't work. So i will try run script with rom toolbox. If someone guide me to do it apreciate it so much.

Related

[Q] Disable quick settings in the Lock Screen/Android 5.0

I've noticed that Android 5.0 allows to change many system settings (enable/disable WiFi/BlueTooth/Autorotate/etc) on its Lock Screen without entering any password.
I hate this liberty.
Does anyone have any idea how to disable this feature?
I cannot find anything in settings.
ApTeM said:
I've noticed that Android 5.0 allows to change many system settings (enable/disable WiFi/BlueTooth/Autorotate/etc) on its Lock Screen without entering any password.
I hate this liberty.
Does anyone have any idea how to disable this feature?
I cannot find anything in settings.
Click to expand...
Click to collapse
I too cannot believe this was left as a feature... I was hoping that would be fixed in the final version.
Bump.
This is actually a security issue.
ApTeM said:
Bump.
This is actually a security issue.
Click to expand...
Click to collapse
I agree but there's nothing in android. 3rd party lock screen is the only way.
a fix for this would be good, as anyone can just pick up your phone and change any of the quick settings without unlocking it.
So you would not be able to track the phone if it got nicked and someone just stuck it in airplane mode!
cluster78 said:
a fix for this would be good, as anyone can just pick up your phone and change any of the quick settings without unlocking it.
So you would not be able to track the phone if it got nicked and someone just stuck it in airplane mode!
Click to expand...
Click to collapse
does it matter if airplane mode is in quick settings or the main setting? if they want to steal your phone and put it into airplane mode, they will do it regardless if its in quick settings or the main settings. its stuff that you yourself use often that will appear in quick settings. i personally think its a great feature.
simms22 said:
does it matter if airplane mode is in quick settings or the main setting? if they want to steal your phone and put it into airplane mode, they will do it regardless if its in quick settings or the main settings. its stuff that you yourself use often that will appear in quick settings. i personally think its a great feature.
Click to expand...
Click to collapse
But they should not be able to do it while the phone is locked. At very least we should have the option of what should be accessible without unlocking the phone.
cluster78 said:
But they should not be able to do it while the phone is locked. At very least we should have the option of what should be accessible without unlocking the phone.
Click to expand...
Click to collapse
even if they were not in the quick settings, you can still pull down the notification bar while in the lockscreen, and go into the main settings. so, everything there is available to any thief.
simms22 said:
even if they were not in the quick settings, you can still pull down the notification bar while in the lockscreen, and go into the main settings. so, everything there is available to any thief.
Click to expand...
Click to collapse
If i do that it prompts to unlock the phone
Heck, I'm not even worried about the security situation with this, I just want to disable it because I think it is extremely poorly executed!
It offers nothing that power toggles doesn't, and is not even configurable for what options are present. I never use auto-rotate, cast screen, invert colors, etc, and yet, those options are available instantly!
cluster78 said:
a fix for this would be good, as anyone can just pick up your phone and change any of the quick settings without unlocking it.
So you would not be able to track the phone if it got nicked and someone just stuck it in airplane mode!
Click to expand...
Click to collapse
They can also just remove the sim card or turn it off.
What I am looking for, is for the only possible thing you can do, while the phone is locked, is enter the password. Is there a way to set that up? Not be able to toggle any settings at all or remove the quick settings(I am ok with the emergency calling and camera widget, since you can't access the pictures on the phone until entering the password). I know they could still remove the sim or power off the phone but at least it might buy some more time if your phone gets stolen for you to track it or snap a pic of the thief. It would be nice if you could also disable the power menu and volume buttons while on the lock screen.
For now, until other solution is found or developed, you can go to notification settings and in 'When device is locked' change the setting to 'Hide sensitive notification content'. This disables access to quick settings from the lock screen but also hides titles of notifications, so you will see the notifications for emails, texts etc., but their content will be hidden.
This doesn't work. Well, if you have root and xposed you can install "Advanced Power Menu" to control the power menu on lockscreen etc and with GravityBox you can control the items on the quick settings. But I still couldn't figure out a way to totally disable it on the lockscreen.
As I remember the "X posed" Module "Notification Mod" could do exactly this. Problem is: It seems that development is discontinued and the stable ver1.2 doesn't (on my lollipop custom rom) work on 5.x
http://forum.xda-developers.com/xposed/modules/mod-notification-mod-t2501926/page23#post62958859
I am seeing this in my new Samsung S7 edge... with finger print and password lock.... it is not there on S5 with finger print and password lock... its a silly feature... why would they turn it on ? My son just put my phone in airplane mode accidentaly.... and I kept wondering why no messages and calls for the whole weekend.... hate to think what it would be like if it happened to someone who was say, on a on-call emergency personnel or something like that.... no one would be able to reach out to them.... I guess now have to keep checking my phone every hour.... hahahaha... or maybe go back to using my S5.. if someone has a solution to this pls share... appreciate it.
No way to disable access to quiick settings on lock screen on unrooted Android M....
Try the Market anyway,
One solution for me on Android 6.01 was to disable WiFi, Bluetooth, Airplane Mode, Mobile Data from Quick Settings using Systen UI Tuner in Settings then downloaded Settings Extended app at the Market and moved all mentioned in SE's Notification Shortcut. Don't forget to enable "HIDE LOCK SCREEN NOTIFICATION" in Preferences which is the objective of all this anyway. So don't forget to click this.
You can even disable everything in Quick Settings and instead put them all in SE Notification as Shortcuts. What's great about SE is that its Notification gets the icon color/shade/background color/color when toggled etc. perfectly in Android 6. Exactly the same. It looks like its really part of the Notification Screen except that there's that horizontal gap that separates the notifications and makes the screen fiddle faddle.
Try it anyway. It might be your only hope against lock screen vulnerability in unrooted Android 6.0 phones.
m1969 said:
I am seeing this in my new Samsung S7 edge... with finger print and password lock.... it is not there on S5 with finger print and password lock... its a silly feature... why would they turn it on ? My son just put my phone in airplane mode accidentaly.... and I kept wondering why no messages and calls for the whole weekend.... hate to think what it would be like if it happened to someone who was say, on a on-call emergency personnel or something like that.... no one would be able to reach out to them.... I guess now have to keep checking my phone every hour.... hahahaha... or maybe go back to using my S5.. if someone has a solution to this pls share... appreciate it.
Click to expand...
Click to collapse
I have the same problem with my S7. Its weird that you cant change the wifi or bluetooth without unlocking the phone but when you select mobile data or airplane mode you can turn that off from the lockscreen so when your phone gets stolen, the thief can so easy turn that off that there is no way to trace your phone. Why do they even call this a smart phone while its so dumb?
ApTeM said:
I've noticed that Android 5.0 allows to change many system settings (enable/disable WiFi/BlueTooth/Autorotate/etc) on its Lock Screen without entering any password.
I hate this liberty.
Does anyone have any idea how to disable this feature?
I cannot find anything in settings.
Click to expand...
Click to collapse
I must apologise first, I’m not a nerdy-head about android, but I was thinking about my new phone (upgraded to A7) and your question is one that I sought out for answers.
In Nougat, I logged in as Guest and used a pin for the user so that a ‘guest’ can’t access the Guest account without my permission.
Then comes you’re question.
You can remove all the worrisome quick start icons from your quick settings (probably leave flashlight). Then use a 3rd party app (Notification Toggle is mine) which isn’t available to a user from a protected login.
As I’ve never had a lollypop viable phone I’m afraid another user might need to help you with a more detailed method for A5.
Hope it helps somewhat. As an old 8080 machine code programmer, it was always about solving problems and then working the bugs out. I'm not even sure how to post on these - socially thingy’s.
This issue it's still there in Nougat, so before it is passed on to Android O, we have to POPULARIZE this issue so they(Android developers) know how big of a pain in the ass it is. I'm posting the complaints to every forum, magazine, fan page, etc. When it's on the social media, they have to do something. This issue has survived because people don't want their friends to know about it, coz it's partly embarrassing...

[Q] disable pull down menu in lock screen in lollipop?

How can I disable the pull down menu with all the toggles in Android 5 on my Nexus 5 when locked?
I dont want people to have the ability to toggle wifi, or especially cellular data.
Thanks.
Enable PIN or pattern lock.
What is the point of disabling it unless you have a secure lock screen? Anyone who really wanted to mess with Wi-Fi and/or data could do so anyways by unlocking the phone. Unless you are talking about small children, which I could completely understand.
Highway 55 said:
Enable PIN or pattern lock.
What is the point of disabling it unless you have a secure lock screen? Anyone who really wanted to mess with Wi-Fi and/or data could do so anyways by unlocking the phone. Unless you are talking about small children, which I could completely understand.
Click to expand...
Click to collapse
Of course I have a PIN lock.
You can still toggle things, such as hotspot, wifi, and cell data.
I have my reasons for needing this, but I figured this option would be available...
And if someone can disable wifi and cell data, couldnt that make it more difficult for me to track it if its lost or stolen?
Can't be done. In KK, you could as suggested, enable secure lock. This Is a strange oversight.
Sorry man I just ASSumed that it was the same as on KK where you couldn't pull the notification shade down at all. That is really a bad move by Google to make data and all of the other toggles available on a secure lock screen.
Edit: sounds like a good feature to be included in custom ROMs...
Highway 55 said:
Sorry man I just ASSumed that it was the same as on KK where you couldn't pull the notification shade down at all. That is really a bad move by Google to make data and all of the other toggles available on a secure lock screen.
Click to expand...
Click to collapse
Switch to guest account, install apps, make calls etc. Very bad.
Been asking the same thing
I have been asking the same thing. It seems really unsafe that even with a pin locked phone someone can just swipe down and they have access to guest mode and can disable gps wifi etc which renders all tracking apps useless. Hope this will be sorted.
I'm pretty sure that you can't disable location while the screen is locked
Its really important that the Pull Down Status bar should be disabled in lockscreen. It should be done with a system program too since third party apps just give up in safe mode. Also disabling power menu in lockscreen is also a good method of protection. But the 10 seconds holding rule still bothers tho. Somebody should make an app which can be a device administrator so that even in safe mode it'll run and keep protecting stuff.

Any way to disable access to Quick settings from lockscreen on Stock Lollipop?

I have version 5.0.1 with pattern lock, with the apps Lockwatch & Smart Lockscreen Protector.
But it's useless when anyone can just access the quick settings from the lockscreen and switching off Wifi/Data or turning on airplane mod..
There is any way to block access to this toggles? Or even to the whole Quick Settings?
I can live without access to the flashlight in lockscreen if that a problem..
RonAmihai said:
I have version 5.0.1 with pattern lock, with the apps Lockwatch & Smart Lockscreen Protector.
But it's useless when anyone can just access the quick settings from the lockscreen and switching off Wifi/Data or turning on airplane mod..
There is any way to block access to this toggles? Or even to the whole Quick Settings?
I can live without access to the flashlight in lockscreen if that a problem..
Click to expand...
Click to collapse
Wrong section bro, post in Q&A, by the way, why would you bother someone disconnecting your wifi and Bluetooth, they can't turn on 4g and all that things which cost money in monthly plan.
One scenario comes in mind. When you lose your phone and want to use device manager to find the phone. If someone stole your phone, can easily put it in airplane mode so you can't locate it
Wonder why Google can miss this. Just like screen still turn on when on pocket with ambient display ON.
If you unlocked, you can try Cataclysm or N5X. Both has option to disabled it. Hope this help.
Slimlp also has this. Stock, no
Im unlocked, but "clean" rooted (stock rom+recovery+kernel with cf-auto root).
Since google added SELinux at enfoce mod by default in Lollipop (which avoids OTA installing at any state of Root), i'm considring to install a custom room.
But if to be honest, I really don't want to (I hate to mess around with all that thanks the crappy Galaxy S3 I had.. I bought the Nexus 5 in thought I could stay with stock+OTA and enjoy "clean" root+Xposed.. Apparently Google had other plans )
So if someone have an idea to avoid access to wifi/data/aiplane mod toggles from lockscreen, I will be happy to hear.
RonAmihai said:
Im unlocked, but "clean" rooted (stock rom+recovery+kernel with cf-auto root).
Since google added SELinux at enfoce mod by default in Lollipop (which avoids OTA installing at any state of Root), i'm considring to install a custom room.
But if to be honest, I really don't want to (I hate to mess around with all that thanks the crappy Galaxy S3 I had.. I bought the Nexus 5 in thought I could stay with stock+OTA and enjoy "clean" root+Xposed.. Apparently Google had other plans )
So if someone have an idea to avoid access to wifi/data/aiplane mod toggles from lockscreen, I will be happy to hear.
Click to expand...
Click to collapse
As already stated, only with custom ROM. There is no other answer.
By the way, I had an s3. This phone is completely different. Don't let the s3 put you off flashing on the n5
what
RonAmihai said:
I have version 5.0.1 with pattern lock, with the apps Lockwatch & Smart Lockscreen Protector.
But it's useless when anyone can just access the quick settings from the lockscreen and switching off Wifi/Data or turning on airplane mod..
There is any way to block access to this toggles? Or even to the whole Quick Settings?
I can live without access to the flashlight in lockscreen if that a problem..
Click to expand...
Click to collapse
Anyone can press the power button on your phone too.
Quick access to the radios is useful.
Until 4.2/4.2.2 anyone could just connect a cable to your phone and use ADB to pull everything off.
Don't give your phone to strangers or place in unsafe places.
whatnoway said:
Anyone can press the power button on your phone too.
Quick access to the radios is useful.
Until 4.2/4.2.2 anyone could just connect a cable to your phone and use ADB to pull everything off.
Don't give your phone to strangers or place in unsafe places.
Click to expand...
Click to collapse
None of this is possible with a locked screen. Accessing the radios on a locked screen can prevent you tracking it. Sure, like you say, it can be turned off not another issue is accessing the guest account and installing malicious apps and making calls. Bit of a security hole if you ask me.
RonAmihai said:
I have version 5.0.1 with pattern lock, with the apps Lockwatch & Smart Lockscreen Protector.
But it's useless when anyone can just access the quick settings from the lockscreen and switching off Wifi/Data or turning on airplane mod..
There is any way to block access to this toggles? Or even to the whole Quick Settings?
I can live without access to the flashlight in lockscreen if that a problem..
Click to expand...
Click to collapse
That really don't matter. I wanna steal ur phone I'm booting recovery and wiping then pattern lock won't matter or quick settings menu.
Sent from my Nexus 5 using XDA Free mobile app
31ken31 said:
That really don't matter. I wanna steal ur phone I'm booting recovery and wiping then pattern lock won't matter or quick settings menu.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Not with a recovery lock and locked bootloader. At least my data is safe. Whats wrong with wanting a safe phone? Why have a lock at all if it can be semi-bypassed by quick settings.
You're right though, would be nice of TWRP also had recovery lock. At least we still have philz for now.
But yeah, I can get YOUR data no matter what you do, even after factory reset, but doesn't mean everyone can.
Its kind of like say "dont bother locking your doors because we can break your windows". We all still lock our doors.
I also think that this is a very serious issue.
When I lock my phone I want it to be locked completely not partially.
Have anyone figured how to disable quick access on locked screen (locked with password, pin or pattern)?
And also to remove camera icon?
The only thing i want on my lock screen is to enter my password and see notifications (this is something I am able to do alredy =))
Thank you!
I am hoping on an xposed module :angel:
kurci2 said:
I also think that this is a very serious issue.
When I lock my phone I want it to be locked completely not partially.
Click to expand...
Click to collapse
The 'Quick settings' menu can be edited - when the phone is unlocked open quick settings panel and tap and hold any of its icons, you will be allowed to remove or add some functionalities. Just remove 'airplane mode' and 'mobile data'. This way when the phone is locked no one can disable its connectivity.
The drawback is that you can't switch the airplane mode easily even when the phone is unlocked.

Bypassing Google's FRP lock without ogk cables.

:angel::crying:​so no I didn't steal this phone, I paid for it (cuz I'm dumb).
I've been using the phone anyway thanks to a walkthrough. I found out how to still use the phone despite the lock. But I'd like to remove it completely. I don't own a computer or OTG cable so I need to find a way to do it from the phone itself. I thought possibly if I can find out what what specific apps control the fr then maybe I could deactivate those apps and reset the phone if anybody has any ideas please comment.
I'm able to activate deactivate apps change permissions all that kind of stuff through settings what not but I don't know which app specifically control or disable the screen locks that comes with it if I could just disable the screen lock and regain the home screen and access to play etc I'd be just as happy.
Thanks for your time and thoughts and sorry if this is the wrong are for this post.
P.s.
Phone and soft ware
I'm using a Moto 4e and have Android 7.1

Is any way to disable calling/texting?

Is any way to disable calling/texting? And to keep data running? Any app or option to do it.
Basically I just don't want to receive any phone calls and texts at certain time. Is it possible? But again.. to keep cell data On.
Thank you for help
Nevermind, misread
netgar said:
Is any way to disable calling/texting? And to keep data running? Any app or option to do it.
Basically I just don't want to receive any phone calls and texts at certain time. Is it possible? But again.. to keep cell data On.
Thank you for help
Click to expand...
Click to collapse
This is a workaround.
Freeze dialer app and in-call UI and Message app via any apps like SdMaid.
But you have to do everytime when you need to toggle.
May Tasker help you in this automation.
mjp93 said:
This is a workaround.
Freeze dialer app and in-call UI and Message app via any apps like SdMaid.
But you have to do everytime when you need to toggle.
May Tasker help you in this automation.
Click to expand...
Click to collapse
Thank you for your help. Tasker is very complicated for me.
I can't find option to disable those apps in SD maid app.
Could you shoot me a screen shot please
netgar said:
Thank you for your help. Tasker is very complicated for me.
I can't find option to disable those apps in SD maid app.
Could you shoot me a screen shot please
Click to expand...
Click to collapse
Here it is.
I have not confirmed if it works but report back if it does.
Edit: There is problem with sharing the screenshot.
Screenshot here: (if it's allowed)
https://pasteboard.co/HxbMmww.png
https://pasteboard.co/HxbMKTG.png
netgar said:
Is any way to disable calling/texting? And to keep data running? Any app or option to do it.
Basically I just don't want to receive any phone calls and texts at certain time. Is it possible? But again.. to keep cell data On.
Thank you for help
Click to expand...
Click to collapse
activate airplane mode and thereafter any radio you need/want, i.e. bluetooth, wifi, nfc etc.
it's not only fast but also fastest to revert back
if you have to boot into this condition always or often you can make a tasker script that does it automatically upon boot or upon another condition.
of course you can do the later anyways if you already use tasker and are relatively quick to implement such a profile or task
magnamentis said:
activate airplane mode and thereafter any radio you need/want, i.e. bluetooth, wifi, nfc etc.
it's not only fast but also fastest to revert back
if you have to boot into this condition always or often you can make a tasker script that does it automatically upon boot or upon another condition.
of course you can do the later anyways if you already use tasker and are relatively quick to implement such a profile or task
Click to expand...
Click to collapse
If I enable airplane mode there is no way I could make my cellular data to work, that's what I need. I dont need wifi, either Bluetooth.
Am I wrong?
Titanium Backup Pro ( required root ) lets you freeze "anything" ! ! ! . . . . . ( ie. you need a full backup before you try and ( maybe ) hose yourself )
You got two simcard slots. Get yourself a data only card for the second slot and turn off SIM 1 when you don't want any calls. I believe this is the most simple way.
Maybe I'm misunderstanding but wouldn't DND work ?
titanium backup let's you freeze any app
you freeze a app and causes boot loop
delete the file in
data system user 0 named package restrictions.XML in term
this rests all blocked apps
Damn, I wish I could use some app to do it with one click but I guess there is no such a thing. Anyway, Thx guys for suggestions.

Categories

Resources