Turning mobile data on and off in Tasker - OnePlus 3 Questions & Answers

Hi,
I would like to create a tasker task to turn the mobile data on and off.
I tried using the command svc data enable (disable), but it does not work. However it works in a terminal emulator. In tasker a red light is displayed when I trigger the task. Im rooted ofc (and in the tasker task the root privileges checkbox is also ticked in). I also tried Secure settings, but it says that my phone isn't rooted (intresting...).
Any ideas how to make it work? Could something be wrong with the root privileges? Im on stock OxygenOS 3.2.4.

tutituba said:
Hi,
I would like to create a tasker task to turn the mobile data on and off.
I tried using the command svc data enable (disable), but it does not work. However it works in a terminal emulator. In tasker a red light is displayed when I trigger the task. Im rooted ofc (and in the tasker task the root privileges checkbox is also ticked in). I also tried Secure settings, but it says that my phone isn't rooted (intresting...).
Any ideas how to make it work? Could something be wrong with the root privileges? Im on stock OxygenOS 3.2.4.
Click to expand...
Click to collapse
when you run your task is tasker asked for root permission?.

Nope, but in SuperSU I see that the tasker app has been granted root privilege without prompting (and also a toast msg is shown too, which says that tasker has been granted root permission).

tutituba said:
Hi,
I would like to create a tasker task to turn the mobile data on and off.
I tried using the command svc data enable (disable), but it does not work. However it works in a terminal emulator. In tasker a red light is displayed when I trigger the task. Im rooted ofc (and in the tasker task the root privileges checkbox is also ticked in). I also tried Secure settings, but it says that my phone isn't rooted (intresting...).
Any ideas how to make it work? Could something be wrong with the root privileges? Im on stock OxygenOS 3.2.4.
Click to expand...
Click to collapse
Secure settings doesn't work with systemless root. I don't need systemless root so I have edited system partitions to make Secure settings work:
mount -o remount,rw /system
touch /sbin/su /system/bin/su /system/xbin/su
mount -o remount,ro /system

Squabl said:
Secure settings doesn't work with systemless root. I don't need systemless root so I have edited system partitions to make Secure settings work:
mount -o remount,rw /system
touch /sbin/su /system/bin/su /system/xbin/su
mount -o remount,ro /system
Click to expand...
Click to collapse
Then I get the following message in a tost:
An error occurred while executing action: mobile data
I also tried this:
http://i.imgur.com/fKqJeNj.png
No success, its like the tasker wouldnt do any commands that requires root priv.

tutituba said:
Then I get the following message in a tost:
An error occurred while executing action: mobile data
I also tried this:
http://i.imgur.com/fKqJeNj.png
No success, its like the tasker wouldnt do any commands that requires root priv.
Click to expand...
Click to collapse
Have you set the tick in the Run Shell Action in Tasker which says "Use Root"?

pik1 said:
Have you set the tick in the Run Shell Action in Tasker which says "Use Root"?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Yes.

tutituba said:
Yes.
Click to expand...
Click to collapse
Delete root permission in supersu and try again. Tasker should prompt for root permissions again...

No success

Can you try using a custom ROM? I am interested in this as I have tasker as well and have it run tasks when mobile data is turned on or off. As I haven't received my Oneplus 3 yet, I am a little worried how it'll turn out because of the dual sim.

Related

Am I not fully rooted?

I just tried to adb push a file into system\customize\resource folder (for custom bootanimation) and got a "failed to copy" message saying it is a read only file system... does this mean im not fully rooted?
Thanks in advance and sorry if this is the wrong forum or anything, this is my first post on here...
run adb shell, if the prompt looks like this
Code:
#
youre rooted. the problem is that the root filesystem, or / , is set to readonly after the system as booted. if you want to push into root, you need to remount it as read write, or push the file while youre in recovery.
yeah i have the # when i run shell.... thanks for the quick response! i was able to push the file after that =)
glad i can help, work is slow today
nenn said:
run adb shell, if the prompt looks like this
# youre rooted. the problem is that the root filesystem, or / , is set to readonly after the system as booted. if you want to push into root, you need to remount it as read write, or push the file while youre in recovery.
Click to expand...
Click to collapse
New guy here trying to use the search to get an answer to my question.....sorry for bumping an older thread. What is the command to "remount it as read write"
Also, I'm booted into recovery (Amon RA), but still can't seem to write to the system folder. Coincidentally, I too am toying with a custom boot animation.
Thanks to anyone who can help!
erikivy said:
Also, I'm booted into recovery (Amon RA), but still can't seem to write to the system folder. Coincidentally, I too am toying with a custom boot animation.
Click to expand...
Click to collapse
If you're booted into recovery, the filesystem usually mounted on /system isn't mounted. That's kinda the point.
So if you need to write to it, mount it first.
posguy99 said:
If you're booted into recovery, the filesystem usually mounted on /system isn't mounted. That's kinda the point.
So if you need to write to it, mount it first.
Click to expand...
Click to collapse
Thanks for your speedy reply. I'm sorry to be a dunce, but once again, what is the command to "mount it?" I'm guessing I do it via ADB, right?
I think you are looking for the command: remount rw
elegantai said:
I think you are looking for the command: remount rw
Click to expand...
Click to collapse
Thanks! Headed off to try it now.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
edit: YES! It's the simple things that bring so much joy. It worked perfectly, Bro. Thanks again.

Adb Shell

So I have a rooted Evo and am wondering how the heck do I open up a shell? I'm trying to see if I my Evo is properly rooted and it says I need to open up a shell so I can check for this. I'm guessing it's like opening a Linux terminal but I have no idea how to do this on my phone and it seems like it's a fairly common thing. Should I have access to an adb shell after rooting? I am new to all of this so please go easy on me...
PC-48 said:
So I have a rooted Evo and am wondering how the heck do I open up a shell? I'm trying to see if I my Evo is properly rooted and it says I need to open up a shell so I can check for this. I'm guessing it's like opening a Linux terminal but I have no idea how to do this on my phone and it seems like it's a fairly common thing. Should I have access to an adb shell after rooting? I am new to all of this so please go easy on me...
Click to expand...
Click to collapse
Just try downloading an app that requires root... like Titanium backup or wifi tether... all on the market...
or goto your tools folder from the SDK..with your phone plugged into your computer...on charge mode.... from a command prompt type "adb shell" and then if you get a "#" you are rooted.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
that is for the terminal emulator for your phone. Or just grab it from the market:
'Android Terminal Emulator' by Jack Palevich
Ok so I downloaded that app using the barcode scanner and it runs so I must be properly rooted. I'm just wondering what the SDK is that apristel mentioned. I'm guessing Software Development Kit but I don't have one of those that I am aware of. I used the Terminal Emulator and typed in adb shell and it responded with "adb: permission denied". I'm just trying to learn about how all of this stuff works, Thank you for your help so far.
PC-48 said:
Ok so I downloaded that app using the barcode scanner and it runs so I must be properly rooted. I'm just wondering what the SDK is that apristel mentioned. I'm guessing Software Development Kit but I don't have one of those that I am aware of. I used the Terminal Emulator and typed in adb shell and it responded with "adb: permission denied". I'm just trying to learn about how all of this stuff works, Thank you for your help so far.
Click to expand...
Click to collapse
http://developer.android.com/sdk/index.html
After you install that you will be able to open command prompt (windows) and type adb shell (when device is pluged in and in usb mode) to get shell access via your pc.
Ahh! Ok it's all starting to make sense now. By "usb mode" do you mean the Disk drive option or is it the Charge only option? I'm talking about the Connect to PC options...
I think he means usb debugging mode and charge only.
vbyt said:
I think he means usb debugging mode and charge only.
Click to expand...
Click to collapse
Yeah thats exactly what i meant. thanks for clearing that up.

Snapchat Image Locations on S3

Ok, so most of you probably already know people can screen shot your snapshot stuff, but you will obviously know.. Root users know you can just grab them without opening..How do you do so?
On the S3, you just open root explorer or something similar, go to data/data/apps/com.snapchat or w/e, then go to cache, and then theres a received image folder but at /sdcard/android/data/com.Snapchat.Android/cache is the videos. Just take whats in those, copy them, paste them somewhere on your sd card thats easily accessible, and then remove the .nodata at the end so only the image type of video format remains. Then, you have the images, actually saved, never expires, and they dont appear as opened on snapchat unless you press the button.
Remember, be careful of what you send people =p
I made a post asking if anyone who knows scripting wanted to make a script to go to the folders and grab them and drop them into a easy access folder and remove the .nodata at the end but there was no hits on that =p
When I go into the recieved images folder, theres nothing there....
Script coming...
EDIT: I need the exact path to each image
Or am I right in thinking that is like this?
com.xxxx/cache/receivedImages/xxxxx.nodata
@ReapersDeath
Script is finished and working, I just need the path now. Just give me a sample path to 1 image and 1 video
Images are each named differently so nothing specific but for images, /data/data/apps/com.Snapchat.Android/cache/received_image_snaps/xxxxx.jpg.nodata
Correcting myself from op, but for videos /sdcard/android/data/com.Snapchat.Android/cache/received_video_snaps/xxxxxx.mp4.nodata
So this script copies them to a new location and removes the .nodata?
And is there a way you could make this script into like a widget that you press and it does It? Or any app you know
Also, for videos I've noticed, when ever you open an app over Snap chat, videos instantly unload, ie the folder disappears for videos. Forcing you to use multi Window and root explorer to load the video and grab it without shrinking Snap chat
Code:
#!/system/bin/sh
OUT=/sdcard/snapchat
IN=/data/data/com.snapchat.android/cache
IMG=received_image_snaps
VID=received_video_snaps
su
mkdir -p $OUT/$IMG
mkdir -p $OUT/$VID
cd $IN/$IMG
for file in *; do name=${file%.*}; busybox cp $file $OUT/$IMG/$name; done
cd $IN/$VID
for file in *; do name=${file%.*}; busybox cp $file $OUT/$VID/$name; done
echo "Finished."
exit
exit
There you go. Just copy and paste that into an app like Script Manager and run it
It will make a folder on your internal storage called "snapchat" with 2 subdirectories, 1 for images and 1 for videos
It will make the folder, but retrieve no images or videos as I can see.
Figured it out. Have to mount system as r/w. Could you throw something in that changes it to r/w then back to r/o?
Also in the video folder only images show up. Won't get videos
Here it is with the mounting, sorry my mounting is set to rw by default so I didn't catch that
As for the other part, I don't know, I tested it and it pulled from both folders...
Let me try again
EDIT: Just tried it again and it works fine..
Code:
#!/system/bin/sh
OUT=/sdcard/snapchat
IN=/data/data/com.snapchat.android/cache
IMG=received_image_snaps
VID=received_video_snaps
su
mount -o remount, rw /system
mkdir -p $OUT/$IMG
mkdir -p $OUT/$VID
cd $IN/$IMG
for file in *
do name=${file%.*}
busybox cp $file $OUT/$IMG/$name
done
cd $IN/$VID
for file in *
do name=${file%.*}
busybox cp $file $OUT/$VID/$name
done
mount -o remount, ro /system
exit
Must be something with the moar rom with app priorities. Maybe it closes down snapchat instantly. Anyways, how could I get this to work with script Manager? I made the script into a file, but when I click the script, and then run, only the prompt console comes up without the code placed in
More specifically I press the widget assigned to the script, and get this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Doesn't want to run it the easy way.
Edit: the script isn't mounting the system. Still having to manually
Aren't there apps in the playstore that do this for you?
Sent from my Nexus 7 using xda app-developers app
Rename it so that it has no spaces in its name
CNexus said:
Rename it so that it has no spaces in its name
Click to expand...
Click to collapse
Didn't work.
Discard
Anyone have any idea why it won't launch the script? No spaces or caps

[Q] How can i check if device is full root or half root c1904

i have rooted my phone using framaroot option. i successfull installed and run LMT, adblock, gl to sd and game killer
but when i try delete pre loaded apps through titanium backup my phone rebooted..and after second or third attempt app get deleted after reboot.
There are still some steps to be performed after rooting with Framaroot like installing busybox... etc. Please check this forum. There threads which details the complete process.
Sent from my C2004 using Tapatalk
How to check:
1. Open Android Terminal Emulator
2. Type: date > test
3. If your phone reboots, you DON'T have full root.
This message was brought to you from my Sony Xperia M C1905 using Tapatalk.
http://forum.xda-developers.com/showthread.php?t=2457174
as stated and can't stress enough READ THE INSTRUCTIONS FULLY all steps have to be done on this method
Sent from my C1905 using xda app-developers app
Antrikos48 said:
How to check:
1. Open Android Terminal Emulator
2. Type: date > test
3. If your phone reboots, you DON'T have full root.
Click to expand...
Click to collapse
Code:
/system/bin/sh: can't create test: Read-only file system
so... I do have full root if it didn't reboot?
yogesh448 said:
i have rooted my phone using framaroot option. i successfull installed and run LMT, adblock, gl to sd and game killer
but when i try delete pre loaded apps through titanium backup my phone rebooted..and after second or third attempt app get deleted after reboot.
Click to expand...
Click to collapse
Open Android Terminal Emulator in your phone (or use adb shell in PC) and type su -c mount -o remount,rw /system. If this command finish without errors and your phone doesn't reboot after some seconds, then you're full rooted, otherwise you need a rootfixer to disable ric service every time your phone boot.
You guys are making this wayyy to complicated. The easiest way to find out is to download file explorer and file explorer (root add-on)from the play store.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Open file explorer.
Click on system (root)
Grant su access
Click i understand the risk then ok
Click the settings icon
Press mount read-write
Wait ten to twenty seconds. If nothing happens, then you have full root. But, if your phone reboots, then you dont have full root. You can delete the file explorer apps after usage
Hope this helped
Sent from my C2004 using xda app-developers app
paper13579 said:
You guys are making this wayyy to complicated. The easiest way to find out is to download file explorer and file explorer (root add-on)from the play store.
View attachment 2690135
View attachment 2690132
Open file explorer.
Click on system (root)
View attachment 2690145
Grant su access
Click i understand the risk then ok
Click the settings icon
Press mount read-write
View attachment 2690150
Wait ten to twenty seconds. If nothing happens, then you have full root. But, if your phone reboots, then you dont have full root. You can delete the file explorer apps after usage
Hope this helped
Sent from my C2004 using xda app-developers app
Click to expand...
Click to collapse
One single line in adb shell is more complicated than downloading an app and its addon, granting root access and accepting a term? Are you sure?
EDIT: I read the OP again and I'm pretty sure he doesn't have full root. His phone shouldn't reboot when removing system apps trough Titanium Backup...
download rootchecker app and that's it
I found above replies are bit complicated , so easy way is to download root checker and verify whether you have root access or not
XDASenior said:
I found above replies are bit complicated , so easy way is to download root checker and verify whether you have root access or not
Click to expand...
Click to collapse
That won't work. With half root, root checker (or any other app of this kind) will say you have root, but if you didn't use a root fixer, the ric binary will be running in background, meaning that it will reboot your phone whenever you remount any system partition with read/write access...
mbc07 said:
Open Android Terminal Emulator in your phone (or use adb shell in PC) and type su -c mount -o remount,rw /system. If this command finish without errors and your phone doesn't reboot after some seconds, then you're full rooted, otherwise you need a rootfixer to disable ric service every time your phone boot.
Click to expand...
Click to collapse
All i get is " mount: Operation not permitted " but no reboot or something. What does this mean?? :crying::crying:
Kostaspao13 said:
All i get is " mount: Operation not permitted " but no reboot or something. What does this mean?? :crying::crying:
Click to expand...
Click to collapse
Your phone isn't rooted.
mbc07 said:
Your phone isn't rooted.
Click to expand...
Click to collapse
So here is the thing: I rooted xperia m2 aqua D2403 with kingroot because it was the only one that worked. So I grabbed my xperia m C1905 to root it with the same method. The C1905 works fine. Changed kinguser to superSu, installed busybox, having access to freedom application and generally works like a charm. But I can't tell the same for the D2403. It cannot install busybox, cannot change to superSu from kinguser (update su binary) and freedom application says something about system partition. And still root checker says i have root.
*sigh*
Xperia M and Xperia M2 are completely different devices (that's why we have separated forums for each device). That error means you're not rooted at all in Xperia M, not Xperia M2. Newer devices (including Xperia M2) has a system write protection at kernel level and that's why you can't remount system partition, even if you have root access. Try this mod (enable USB debugging and run install.bat) and next time ask for help in Xperia M2 forums, not here (they probably have troubleshooting guides for that device)...

How do I root Telstra T-Hub 2? ICS (It has no download mode only Android Recovery 3e)

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is not my device (this is just a stock picture so you know what device I am talking about)​
Guys I have a Telstra T-Hub 2 that is in dire need of root.
I can't find any method to root the device.
So far I've got the USB drivers installed, and I can access the device with 'adb devices' and 'adb shell'
I've moved busybox and su to /data/local/tmp but no matter what I do I cannot move anything to /system/bin
The tablet is running Stock ICS 4.0.4. It's not modified in any way (yet).
I have the ability to open Android System Recovery (3e)
But there seems to be NO download mode on the device at all.
Tried cmd > adb reboot download - Device just reboots normally... (reboot recovery, does work, and reboots into recovery)
I can hold Volume - & Power that gives me a dead android screen, then I can press Power & Volume + which gets me to 'Android System Recovery 3e' however no matter what button combination I use. I cannot find some sort of 'download mode'. There doesn't seem to be one on the device....
So, so far I have only Android Stock System Recovery 3e and rebooting into 'Bootloader'. No download mode. So I cannot seem to find a way to browse the '/' root partition with a computer, (especially with SU permissions).
Do you have any advice at all?
Stuff I've tried:
SuperOneClick - Permissions denied
Cydia Impactor - cannot create /system/xbin/su: Read-only filesystem
Towelroot - Device unsupported
Kingo root - Device just reboots and doesn't root
Universal Root.zip from stock Android System Recovery (3e) - Signature verification of whole-file failed
Pushing su to /system/bin (from data/local/tmp/) - Permission denied
./psneuter (in data/local/temp) to try and get a root adb shell - failed to set prot mask (invalid ioctl for device)
Guys nothing is working. I'm raking my brain. There has to be a way to get rood privileges on this device.
Someone talked about flashing a custom restore on the device set to install an .apk in a weird place that gave root. But he didn't bother explaining how he did it
Does anyone have any information at all? I'd be happy to buy you a coffee if you can help me get root on this thing.
Thanks again!

Categories

Resources