Comments (5)
Were I correct, only a new Operation
is needed and then you can select it in the profile and link it with an event.
I'll have a try.
To put the phone into the airplane mode, the app (Easer) should be a system app or use root permission (though on lower versions, e.g. Android 2.3 if I'm correct, this isn't required). This isn't ideal (at least for now) and users may get confused, so I didn't implement it in the first place. (Actually the cellular network is in a similar situation, although that is the case in a even higher android version)
Maybe it will be added when other informing mechanisms are implemented.
from easer.
Thanks for taking my proposal in account ! :-)
I test this new operation but it didn't work on my two samsung (S4 and Note 2).
If I manually put the hotspot "on" on my smartphone, Easer don't put it off.
If the hotspot is "off", Easer don't put it on.
I try the same configuration to toggle the bluetooth or the wifi on or off and it worked.
from easer.
Sorry, I correct my previous message about put the hotspot on/off with an event "battery is charging/discharging"
- It works on my Galaxy Note 2, Android 5.1.1, CM 12.1
- It does not work on my S4, Android 6.0.1, LineageOS 13.0. Another point is that the "Outline" page updates correctly and completely when charging, but it does not update when the phone is discharging and should have the profile "hotspot off". Again, anything works well if I want to trigger the bluetooth on/off with the same event.
I tried to reboot my S4 but the bugs remains.
from easer.
Hmm... That seems to be two different problems.
The first one is that switching hotspot on/off doesn't work on some devices; the second is "outline" doesn't behave correctly.
Regarding the first issue: Android doesn't provide the API (directly) to switch hostspot on/off so I used some workarounds (adapted from web). However, the workaround doesn't work on all devices (i.e. may fail on some devices). Unfortunately I currently doesn't know how to solve this. Maybe this could be solved if Easer is installed as a system app (and uses some system privilaged APIs) or uses root permission, but they are not available in Easer now (although it is in the longer plan).
For the second issue: I think this is due to the after-run check for loading profiles. Could you try some others to see if this only happens for "hotspot"? If hotspot is not the only one which has this problem, please open another issue and describe there.
from easer.
Tests made as recommended, results are on #32
from easer.
Related Issues (20)
- Question: How to switch hotspot on/of when connecting to other device via Bluetooth; Bug: external logging not possible
- wifi or data does not work
- [FR] Monitor directory HOT 4
- Improving the usage example HOT 1
- [FR] "wait" profile command
- Wiki pages vandalized HOT 1
- [FR] Multiple conditions?
- Crash when opening `Pivot`
- Download link is dead.
- FeatureRequest: Add option to scan for available networks and connect to a better one if in range
- [FR] Wi-Fi disconnection trigger
- [FR] dynamics string sanitization
- [FR] Condition valid for <x> time (duration condition)
- Can I initiate power off/on, enabled/disable battery saving mode? HOT 1
- Broadcast not accepted by Android system HOT 2
- Profile triggering at the wrong time
- Media volume issue
- [FR] Detect USB connections/input devices.
- [support] Where is the user support forum? (sending contents of notification) HOT 3
- [FR] use WGTunnel for Wireguard intent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easer.