yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] eximido:
Strange... There's nothing in logcat with that tag. I've enabled Tasker logging to syslog, manually executed a task which should set Airplane Mode On and just after that used the following command in the terminal:

So it looks like the task was executed but its call was never received by Airplane Helper... What could be the cause? Setting to check for WRITE_SECURE_SETTINGS was disabled, and setting different timeout doesn't change anything, if it might matter.

It is interesting that after playing with logcat for a while I've managed somehow to catch a message like this:

It is not happening when executing a task in tasker. Probably it shows up while messing around with Airplane Helper UI... but not every time. I'm not quiet sure that it's important but it's the only warning-like looking message with the word "airplane".

PS: And here is verbose tasker file log, where I enable file logging, open task called Airplane Enable for editing, manually execute it and then disable file logging.
[Xposed Framework Modules] DavisNT:
[MENTION=4493036]eximido[/MENTION] message Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value. is normal/usual. Can you check that Airplane Mode Switch can toggle airplane mode on your phone? What message is displayed in Jelly Bean 4.x Airplane Mode Helper main screen under Xposed framework, is Enabled checkbox checked in that screen?
[Xposed Framework Modules] eximido:
[MENTION=4234598]DavisNT[/MENTION] I believe that it's enabled correctly because without Airplane Mode Helper the Timerrific app I currently use was unable to swith the airplane mode on my phone. On the main screen under "Xposed framework" is a message saying "Xposed module setup is OK. This app is currently acting as Xposed framework module". And yes, it's enabled. So that at first I thought that the problem lies only in Tasker plugin. I'll try to install Airplane Mode Switch a bit later if required.
[Xposed Framework Modules] DavisNT:
That is interesting. Can you check with Airplene Mode Switch? Has the problem appeared after Tasker update?
[Xposed Framework Modules] eximido:
[MENTION=4234598]DavisNT[/MENTION] I've just checked with Airplene Mode Switch - it works fine. Regarding previous tasker versions - I don't know, I've switched to 4.2+ phone just recently and didn't use this Helper before. So it never worked for me with Tasker. The idea that something might have changed in a recent tasker updates which may caused this issue was a guess. :)
[Xposed Framework Modules] DavisNT:
[MENTION=4493036]eximido[/MENTION] can you disable Jelly Bean 4.x Airplane Mode Helper as Xposed framework module, reboot, try using it from Tasker and then check logcat of tag AirplaneModeHelperX entries?

P.S. Then airplane mode toggling should not work, but an error message should be logged in logcat if Jelly Bean 4.x Airplane Mode Helper will receive plugin action request from Tasker.
[Xposed Framework Modules] eximido:
[MENTION=4234598]DavisNT[/MENTION] Ok, I've just tried that. Disabled Airplane Mode Helper in Xposed Framework options, rebooted, checked that Airplene Mode Switch isn't working anymore (now it's just Force Closes immediately) and tried to manually run the Airplane Enable task. And again it immediately finishes with a green dot (showing that it ended OK), and there's still no single line with "AirplaneModeHelperX" in the logcat entries. I tried enabling tasker logging again and retried executing a task: in this case I see exactly the same lines in the log as before. And no errors.

So... It seems that plugin never receives any action requests. Weird.
[Xposed Framework Modules] DavisNT:
If seems so. Can you download Llama and test Jelly Bean 4.x Airplane Mode Helper plugin from there (in Events tab create new event, add Locale plugin action and test actions)?
[Xposed Framework Modules] eximido:
[MENTION=4234598]DavisNT[/MENTION], yeah, it works as expected with Llama... So apparently it should be an issue with the tasker itself, not the plugin. I'll try to reinstall it, clean its data or try something like that if that's the case.

Sorry for inconvenience.
[Xposed Framework Modules] leoetlino:
Doesn't work on Lollipop

As you may already know, Xposed now supports Lollipop (on ARMv7 devices). So I immediately upgraded, installed Xposed, and as expected, this helper module does not work :(

Would it perhaps need an update? I would be willing to help with test builds and logcats if you need those.
[Xposed Framework Modules] DavisNT:
Thanks for notifying me!

I will check this in next few days.

Update: Looks like, at least on unofficial CM12 for i9300, Jelly Bean 4.x Airplane Mode Helper works, but displays a notice that it is not enabled as Xposed module. [MENTION=6096933]leoetlino[/MENTION] could you please confirm that this is (or isn't) your case? If Jelly Bean 4.x Airplane Mode Helper is not working for you, please send me logcat via PM!
[Xposed Framework Modules] leoetlino:
It turns out it actually works! I was fooled by two things: Xposed disabled itself − somehow − after I enabled your module (but I didn't see it until I checked the Xposed logs); also, there was a notice in the app saying the module is not enabled within Xposed. This made me believe that your module was not compatible with Xposed on Lollipop, since that's exactly how an incompatible module behaves (like Greenify).

So, after removing the `conf/disable` file in Xposed's data directory, I still get the notice that the module is not enabled, but it works fine (tried with an app called Sleep as Android).

I tested it on a Moto G running CM12, not sure why Xposed decided to disable itself. I'll still send you a logcat to fix the "not enabled" message. Sorry for the inconvenience!
[Xposed Framework Modules] DavisNT:
New version (1.0.2) has been released. This version contains only cosmetic changes (most notable change: fixed Xposed module detection on Lollipop).

For some users of CyanogenMod 12 Jelly Bean 4.x Airplane Mode Helper really didn't work. This was caused by this commit made on 2015.02.19. and fixed by this commit made on 2015.02.27. Official CM 12 builds made between February 19 and 28 as well as unofficial builds from CM sources forked in this time window should have this issue.
[Xposed Framework Modules] rloup:
The new version is working on my OnePlus One with CM 12 20150228. Thanks for the good work!
[Xposed Framework Modules] hstop:
Unfortunately it is'nt working on my Nexus 4 CM12 20150227. It is activated and correctly shown in xposed framework (where xprivacy works fine) but apps make no use of it. I'm trying to use Profile Scheduler to change into airplane mod but it is not working.

Are there any known issues with that?
[Xposed Framework Modules] DavisNT:
Most likely you are suffering from issue described a bit above. There is said that you have to update to build made from post-February 28 sources. ;) Please try updating CM to fix this issue.

P.S. I strongly suggest updating to CM 12 made from sources after March 11, due to fixed FREAK attack.
[Xposed Framework Modules] Raul^:
Htc (Desire) 510, Android 4.4.3 (original Orange ROM, rooted, Xposed and APMH instaled and on, Sense 6.0, version 1.16.69.2).

When I toggle airplane mode and back it asks for PIN.

How can I help you? I would really love to turn it off.
[Xposed Framework Modules] .fabioss.:
is it compatible with Android 5.0?
[Xposed Framework Modules] DavisNT:
This should happen every time you turn off airplane mode and it should not be related to Jelly Bean 4.x Airplane Mode Helper.

You can avoid this by disabling PIN code of your SIM card (look for SIM Lock in Security Settings of the phone), however this is security versus convenience question.

Yes, but Xposed framework for Lollipop must be used.
[Xposed Framework Modules] kchannel9:
Really wish there was a way to make it so Wi-Fi won't get turned off when I toggle airplane mode. There used to be a way before 4.3 or 4.4, anyone know of a new way?
[Xposed Framework Modules] DavisNT:
Have you tried setting airplane_mode_radios?
[Xposed Framework Modules] kchannel9:
No, I read the post you linked and I'm not sure what to put into terminal emulator to only disable wifi from toggling
[Xposed Framework Modules] DavisNT:
Take output of the first command (write it down!), remove wifi from it and put in place of new_comma_separated_values in second command.
[Xposed Framework Modules] jtwolverine8:
Hi, I am on android 4.4 Kitkat with root, and have the Xposed framework and Jelly Bean 4.x Airplane Mode Helper 1.0.2 installed and enabled. Profile Scheduler + still could not detect it and the option for airplane mode is still greyed out. Any idea how can I make this work? I installed Airplane Mode Switch by Ottavio Vanini and it worked (albeit - showing on when airplane mode is off and vice versa).

Thanks! :)
[Xposed Framework Modules] DavisNT:
If Airplane Mode Switch can toggle airplane mode then Jelly Bean 4.x Airplane Mode Helper is working properly.

I have just tested Profile Scheduler by Wetpalm with Jelly Bean 4.x Airplane Mode Helper and it works (at least on my phone). If you are using another app with the same name and if that application has disabled ability to toggle airplane mode due to version of Android it is running on, then please contact developer of that app and tell him about Jelly Bean 4.x Airplane Mode Helper (you can give the developer this link)!
[Xposed Framework Modules] Oshi-Tech:
After the latest commit by [MENTION=2476451]romracer[/MENTION] with the help of [MENTION=5008415]C3C076[/MENTION], it seems this module now works on Lollipop 5.1.

At least, it seems to be working on my i9100 running CM12.1 (Lollipop 5.1.1). :D

Finally I can get my Sleep app to automatically turn on Airplane mode ever since I upgraded to Lollipop. :good:
[Xposed Framework Modules] tarroyo:
Would love to see this updated to 6.0 Marshmallow.
[Xposed Framework Modules] DavisNT:
Have you tested the existing version on Marshmallow?
[Xposed Framework Modules] tarroyo:
I haven't, I just assumed seeing how the OP didn't say 6.0 was supported.
[Xposed Framework Modules] DavisNT:
I don't know whether Jelly Bean 4.x Airplane Mode Helper will work on Marshmallow (as I am still using Lollipop 5.1). Could you please test it? :)
[Xposed Framework Modules] tarroyo:
Will do, how will I know if it's working or not?
[Xposed Framework Modules] DavisNT:
The best way to test is to set up Jelly Bean 4.x Airplane Mode helper (activate it as Xposed module + open its launcher icon and enable it there + reboot) and then try to use Airplane Mode Switch by Ottavio Vanini ( https://play.google.com/store/apps/details?id=it.vanini.ottavio.android.utility ) to toggle airplane mode.

Airplane Mode Switch is just an application that uses pre-4.2 API to toggle airplane mode, many (but not all) similar apps would do as well.
[Xposed Framework Modules] tarroyo:
Can't get that app to run, It force closes on launch.
[Xposed Framework Modules] DavisNT:
Update! Most likely this was caused by CyanogenMod 13 specific issue that should be resolved in next CM 13 nightly build, so existing version of Jelly Bean 4.x Airplane Mode Helper should be mostly working on Marshmallow. See this post for more details.

If Jelly Bean 4.x Airplane Mode Helper was set up and phone rebooted before running Airplane Mode Switch then Airplane Mode Helper is not working on Marshmallow. Could you please try this once more and afterwards post here output of the following commands:

su
logcat -d | grep AirplaneModeHelperX
[Xposed Framework Modules] ezio84:
Testing it on 6.0.1 and hammerhead:

View attachment 3575945

When running it as Tasker plugin, i get this error:

12-14 09:28:17.844 2262 2281 W BroadcastQueue: Appop Denial: broadcasting Intent { act=com.twofortyfouram.locale.intent.action.FIRE_SETTING flg=0x14 cmp=lv.id.dm.airplanemhx/.PluginReceiver (has extras) } from net.dinglisch.android.taskerm (pid=3145, uid=10120) requires appop android:write_settings due to registered receiver lv.id.dm.airplanemhx/.PluginReceiver
[Xposed Framework Modules] DavisNT:
Issues on CyanogenMod 13 were caused by problem described in this post (fix mentioned on that post wasn't merged in cm-13.0 branch) and are fixed by this commit made on 2016.01.02.

Existing version of Jelly Bean 4.x Airplane Mode Helper is expected to (mostly) work on CyanogenMod 13.0 official nightlies 20160103 and later (and unofficial CM 13 builds with sources forked after 2016.01.02 19:40 UTC). Once this will be tested I will post an update.

Existing version of Jelly Bean 4.x Airplane Mode Helper might not work as Tasker/Locale plugin (as those applications don't have WRITE_SETTINGS permission anymore). There is a fix being developed.
[Xposed Framework Modules] DavisNT:
A new version (1.0.3) fully compatible with Android 6.0 (Marshmallow) has been released.

Locale/Tasker plugin on Android 6.0 has been fixed (pre-4.2 API was already working on Android 6.0).

Please note that:

Locale/Tasker plugin now has to be explicitly enabled in Airplane Mode Helper settings.

Name of the application has changed to Airplane Mode Helper.

It may be required to remove and re-add Airplane Mode Helper plugin actions in Locale and Tasker (due to name change of the application).
[Xposed Framework Modules] nayan159:
Working in Nexus 6P 6.0.1

With Phone Schedule I can now use Airplane Mode.

Thank you very much.
[Xposed Framework Modules] Spodi2290:
Uh, the last update causes a looping systemUi crash on my samsung gt-9295 (s4 active) with android 4.4.2 and TouchWiz. Only thing i could do was to disable xposed at startup to stop it from crashing. Disabled this module for now. There wasnt any error related to this module in the xposed log after restart, so i dont really know what exactly happened....
[Xposed Framework Modules] DavisNT:
Are you sure the System UI crash was related to this module? There were no potentially-dangerous code changes in this release.

Could you please reproduce it and send me full logcat?
[Xposed Framework Modules] Roland_SGN:
I installed 1.03 it on my Samsung with 5.1.1. in combination with Tasker. And it seems to work in general but not always. I can switch into Airplane mode all the times (at least as far as I now tested) - which worx fine.

But turning OFF the Airplane mode worx only when I switched the mode ON via the Helper. If I manually switched the mode ON than I cannot turn it off via the Helper. Any ideas, hints, requests?
[Xposed Framework Modules] DavisNT:
Can you reproduce the issue and send me logcat (or at least output of commands:

su

logcat -d | grep AirplaneModeHelper

) afterwards?

If you have several Tasker tasks manipulating airplane mode, make sure you removed and re-added Airplane Mode Helper plugin actions to all those tasks.
[Xposed Framework Modules] Roland_SGN:
I think I figured out the MAIN problem of my issue - usability prob :(

For unknown reasons the tick of 'Enable Locale/Tasker plugin' went off, i.e. not any longer executed by Tasker. I figured this out via Logcat.

BUT the very weird point is that even it is disabled, Tasker shows it in its list as well as I can select On or Off options. Which makes me wander why selecting these options is even possible when the Enable-option is disabled?

At least I solved this issue although I remain little bit :eek:
[Xposed Framework Modules] Roland_SGN:
I think THE root cause of my prob was that 5.1.1 disables the app from autostart. Since the app didn't start after reboot one has to manually start the app to get it running.

Changing the settings to autostart solves the REAL prob.
[Xposed Framework Modules] DavisNT:
Enable Locale/Tasker plugin is a new setting introduced in version 1.0.3, it is disabled by default. This was mentioned a few posts above (and in OP, and in several places in documentation of Airplane Mode Helper).

When it is disabled plugin will be shown and will be configurable (the same way it will be shown and configurable if Airplane Mode Helper is completely disabled). At first I had an idea to add some kind of warning, but as there is no warning when Airplane Mode Helper is completely disabled (Enabled checkbox is unchecked) I decided to skip that.

P.S. Regarding autostart I assume you had disabled autostart of Tasker and re-enabing it resolved the issue?
[Xposed Framework Modules] Roland_SGN:
Well, the whole thing is little bit weird and to be honest I have no clear clue about it.... I found a way to resolve it but don't really know if they could be easily solved in a way to inform the user properly :(

Note: For the next I have the enable-tick set!!!

The disable autostart is referring to Airplane Mode Helper directly. Cause I have launched the Taskers task to enable/disable and didn't see any kind of traces in the logcat :( Then I figured out that the module itself was not loaded and therefore the Tasker couldn't enable nor disable the functions. I think that's a feature with 5.1.1. and I would highly guess that other users would run into similar situations not being aware that the autostart needs to be enabled! Perhaps a warning message might help to get a clue for a quick check if the module is really running resp. not disabled in the autostart!!! - But I guess that's a prob starting with 5.1.1....
[Xposed Framework Modules] Dynomia:
I have created a simple task in tasker that does the following:

Display State Off

Enter -> Airplane Mode Helper On

Exit -> Airplane Mode Helper Off

When i lock my device airplane mode will kick in. When i unlock my device airplane mode gets removed, but it keeps asking for my PIN code. Hopefully you can help me with my issue.

/Edit: Im running CM11 (4.4.4) on HTC One X and use the built-in root.
[Xposed Framework Modules] DavisNT:
I believe PIN code is requested by your ROM each time airplane mode is switched off (you can verify it by manually enabling and disabling airplane mode), so it should not be caused by Airplane Mode Helper.
[Xposed Framework Modules] Dynomia:
I have tried it and you are correct. I have disabled the PIN for now and all is like i want it to be. Thank you for your fast reply and help!
[Xposed Framework Modules] Eddiemc:
[MENTION=4234598]DavisNT[/MENTION]

Please consider making an exposed module for gps too, or adding gps function to this module.

Tasker cannot turn on/off neither gps nor flight mode by it self, so in order to do so either secure settings or something like your exposed module is needed. Secure settings is not reliable anymore, so it would be great if you could add gps functionality too.
[Xposed Framework Modules] daClaus:
I can't get this to work on tasker. I'm trying to customize the alert slider on my Oneplus 3 with Oxygen 3.1.3 to activate notification profiles. I'm rooted with the latest Chainfire 2.74 systemless root, which is not detected by Secure Settings.

What I want to achieve is:

slider in normal position: ringer & notification sounds -> works with my tasker profile

slider in priority position: ringer silent, notification sounds low -> works with my tasker profile

slider in silent position: airplane mode -> and this doesn't work

What I did:

installed AirplaneMode Helper 1.0.3 and ticked all check boxes.

in tasker I added a profil using state - variables - variable value with the condition %INTERRUPT eq none

When tasker asks me to select a task I create a new task called AlertSlider_airplane

There I add the action Plugin - Airplane Mode Helper and set it under Configuration to Airplane Mode On

This should do it, but doesn't work. It works when I select the ringer volume option and set it to 0, but it won't turn on airplane mode.

Edit: Problem solved, fresh installed xposed, now it works.
[Xposed Framework Modules] jackoboy9:
Running Marshmallow on my Moto X Play and trying to allow Profile Scheduler to turn on and off airplane mode, but this app doesn't seem to be doing anything (v1.0.3). Anyone had any luck?

The option in Profile Scheduler is greyed out.
[Xposed Framework Modules] DavisNT:
If the option is grayed out, then the app detects that it is running on Android 4.2+ and has disabled the option to toggle Airplane Mode (you can try contacting the developers of that app and point them to https://projects.dm.id.lv/Airplane_Mode_Helper#Notes_for_developers ). Exactly which of the apps named "Profile Scheduler are you using?
[Xposed Framework Modules] pioppolo:
Hello,

I've the same problem with the same app on my Oukitel K6000Pro.

The app is : https://play.google.com/store/apps/details?id=com.wetpalm.ProfileScheduler&hl=it

Hope you can help us :)

edit : the strange thing is that in the field where you can select airplane mode, it is specified that this function can only be achieved with Xposed and airplane mode helper module
[Xposed Framework Modules] DavisNT:
This app shpuld work (just tested on my phone). Do you have the latest official version from Google Play (modified versions versions obtained from third parties might be outdated and may contain additional bugs)? Have you tried to reinstall the app from Google Play (and test whether this issue happens in freshly installed app)?
[Xposed Framework Modules] pioppolo:
Hello, sorry for delay

I've tried to uninstall and instal again the app, from play store , without my setting backup, and the problem remain. When I try to change the setting of airplane mode, nothing happens.

My smartphone have Android 6.0
[Xposed Framework Modules] pioppolo:
Can someone help me?
[Xposed Framework Modules] DavisNT:
Does the Profile Schedule app now allow you to select Airplane Mode setting for a profile, but the setting has no effect?

Or do you still see the error message that Airplane Mode Helper is missing (if so please post screenshot of the error message and screenshot of Airplane Mode Helper main screen)?
[Xposed Framework Modules] pioppolo:
You cannot select the option, the option is a yellow point.

In normal condition you can select it and it change the color from yellow ( that indicate the state will not change from the last profile ) to green ( that indicate the state will change to active ) or gray ( that indicate the state will change to not active).

But I repeat : you cannot set the option into other state ( green or gray ) , the state of the flag point not change after push on it.

edit: I was unclear?
[Xposed Framework Modules] DavisNT:
Can you please post screenshots from the screen where you can't change Airplane Mode setting and from Airplane Mode Helper main screen?
[Xposed Framework Modules] pioppolo:
Thanks for replay,

Yes, I try to post a pair of images
[Xposed Framework Modules] pioppolo:
Ok, I've solved the problem by myself!

....I've uninstalled the airplane mode helper .

Thanks to all.
[Xposed Framework Modules] DavisNT:
Great! Thanks for feedback!

P.S. I assume you have reinstalled Airplane Mode Helper (as uninstalling it would render the setting non-working).
[Xposed Framework Modules] pioppolo:
I'm sorry, but I have not reinstalled again .... mine was a sarcastic response.

When I saw that there was a solution, I decided not to keep hoping.

Unfortunately on my device it did not work.

Thanks again
[Xposed Framework Modules] DavisNT:
This response is more for other users - this app is (still) supported. :)

As nobody has posted here for a month I don't want to leave misleading post hanging as the last one for a long time.

In [MENTION=743849]pioppolo[/MENTION] case problem was in another application (Airplane Mode option was grayed out in Profile Schedule) and I wasn't able to reproduce the issue on my device (to report it to application's author). As mentioned in Airplane Mode Helper documentation, applications which explicitly detect Android 4.2+ and remove/disable Airplane Mode controls on these platforms aren't supported (and efficiently cannot be supported, as making the OS to report incorrect version to every installed app would just break some functionality of many other apps). And if somebody just decides to "rage quit" a problem solving, there is not much I can help anyway.