Coder Social home page Coder Social logo

Comments (5)

renyuneyun avatar renyuneyun commented on August 23, 2024

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.

jpggithub avatar jpggithub commented on August 23, 2024

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.

jpggithub avatar jpggithub commented on August 23, 2024

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.

renyuneyun avatar renyuneyun commented on August 23, 2024

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.

jpggithub avatar jpggithub commented on August 23, 2024

Tests made as recommended, results are on #32

from easer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.