vitas / beaconloc

Beacon Locator - android application for scan, track and management of beacons
Apache License 2.0
104 stars 43 forks source link

Viability to support CyanogenMod profiles? #5

Open alexbarcelo opened 7 years ago

alexbarcelo commented 7 years ago

I was looking into some app capable of switching CyanogenMod profiles (something like Tasker profiles, but built-in with the CyanogenMod ROM and tight integration with the system) with Beacon.

I realized that this project may be interested in adding that feature, given that there are some "trigger actions" available and Tasker does not have direct support for CyanogenMod profiles. I am not a very good Android programmer, but I don't mind to try to add the feature. That is, if it is of any interest. Or maybe there is some better idea on the integration of those profiles.

vitas commented 7 years ago

Hi , could you point me to a doc where i can find out how to program that profile switching?

alexbarcelo commented 7 years ago

I assume that the documentation here is the main stuff: https://cyanogenmod.github.io/cm_platform_sdk/reference/cyanogenmod/app/ProfileManager.html

There are, according to the wiki, some apps that implement the switch profile functionality. But the Profile 4 Tasker seems to not be available anymore (or maybe only not available in my country?), and the other suggested apps does not seem to have any Beacon features...?

There is a quite old repo over there: https://github.com/seamusphelan/ProfileSwitcher Which does Profile Switching. No idea if it still works. I recall reading somewhere that Profile API changed, but don't remember where I read that or when it changed. Maybe that's a red herring.