• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[MAGISK] [Tasker][Release] Motion Sense (Soli/Oslo) Mod

Search This thread

ashergray

Senior Member
Jul 19, 2011
167
92
Rock Hill SC
Release of OsloBridge v1.1.2 can be found here https://github.com/jcarletto27/magisk_module_motionsense_mod/releases

The purpose of this is to broadcast intents that Tasker can pick up as events. I plan on sending a PR to TopJohnWu once i hear back on some QA. Please update me here in this thread if you find any bugs! In my own testing I've found that the official apps like Pokemon wave hello and Headed South still function fine.

This module overwrites the built-in Bridge with a modified one that does not check for Googles signature on the requesting app, essentially letting anyone with knowledge of the bridge api to create an app to use MotionSense. My app which I'm calling OsloBridger (Oslo is the internal name for the MotionSense app) creates a foreground service that works even if the screen is off. I've not noticed any serious battery issues, but time will tell.

If you have issues please post here with the following and I'll do my best to help:
Device : (Pixel 4, Pixel 4XL)
Patch Date: (Oct,Nov,etc)
Are you Rooted with Magisk? : (Yes, No)
Other Modules Installed: (Systemless Hosts, edXposed, etc.)
Do you have Tasker installed ? (Yes, No)
Is "Allow External Access" checked in the Tasker Misc Preferences? (Yes, No)
When you start the service in OsloBridger what does it say in the Notification? (Reach, Flick Gestures Active)
Level of Tasker Experience ? (Novice, Experienced)
Also, please provide the task your trying to run. The steps to do that are Go to Tasks -> Long Press the Task you want to execute -> Click Three Dots in top right -> Export -> Description to Clipboard and paste it here


Update Nov 7, 2019 : I've updated the OsloBridger app to now allow the selection of specific tasks from within the app. No more setting up broadcast receivers in Tasker!

Update Nov 12, 2019: Added 2 new service intent filters to allow the starting and stopping of the Service without needing to use the Toggle intent. Updated the defaults to use what I've found works best (surprise! it's the same settings google uses for the builtin actions)

Advanced Users:
The app will still send those same broadcasts if you don't select a task in OsloBridger, so no changes for those setup already. I find this way to be more flexible because you can add multiple conditions to the event in Tasker, but I get that Tasker can have a huge learning curve.
 

Attachments

  • Received_Reach_Intent.prf.xml
    1.5 KB · Views: 398
  • Receive_Swipe_Intent.prf.xml
    850 bytes · Views: 271
  • Receive_Flick_Intent.prf.xml
    4.3 KB · Views: 291
  • Receive_Presence_Intent.prf.xml
    2.1 KB · Views: 230
Last edited:

eg1122

Senior Member
Oct 5, 2009
2,357
3,033
Roma, Tx
Google Pixel 6 Pro
Not sure if this will help, but I have used a magisk module to replace an apk in the product folder. Not sure if it's the same but the directory is /system/product/..….

I noticed in root explorer that the product directory in system is a shortcut to the one in the root directory

Btw, since you already digging around. Anyway to bypass the country restriction. I live so close to Mexico that it turns off every now and then.
 
Last edited:
  • Like
Reactions: ashergray

ashergray

Senior Member
Jul 19, 2011
167
92
Rock Hill SC
Not sure if this will help, but I have used a magisk module to replace an apk in the product folder. Not sure if it's the same but the directory is /system/product/..….

I noticed in root explorer that the product directory in system is a shortcut to the one in the root directory

Btw, since you already digging around. Anyway to bypass the country restriction. I live so close to Mexico that it turns off every now and then.
Thanks that might be exactly what I was looking for. In my digging I did find a country code in a preference file somewhere. I've also heard that it's restricted based on which service provider. I'll find the file and you can let me know if it works in your country.
 
  • Like
Reactions: eg1122

Eugnis

Member
Oct 19, 2019
15
4
Kyiv
Thanks that might be exactly what I was looking for. In my digging I did find a country code in a preference file somewhere. I've also heard that it's restricted based on which service provider. I'll find the file and you can let me know if it works in your country.
Not sure if this will help, but I have used a magisk module to replace an apk in the product folder. Not sure if it's the same but the directory is /system/product/..….

I noticed in root explorer that the product directory in system is a shortcut to the one in the root directory

Btw, since you already digging around. Anyway to bypass the country restriction. I live so close to Mexico that it turns off every now and then.
Also looked into Motion Sense APK. Restriction is phone number country code based, can be bypassed. Also looks like its developers left setting to disable country checks at all. TO do that, you just need to change android setting 'pixel.oslo.allowed_override' to '1'. This way modified APK not needed.

I can't try this right now but if you want to check, then connect Pixel 4 with developer mode and execute command in adb shell:
Code:
adb shell setprop pixel.oslo.allowed_override 1
or
Code:
adb shell "setprop persist.pixel.oslo.allowed_override 1; setprop ctl.restart zygote"
or edit system/build.prop with some app
You need root to do this.
 
Last edited:
  • Like
Reactions: eg1122

eg1122

Senior Member
Oct 5, 2009
2,357
3,033
Roma, Tx
Google Pixel 6 Pro
Also looked into Motion Sense APK. Restriction is phone number country code based, can be bypassed. Also looks like its developers left setting to disable country checks at all. TO do that, you just need to change android setting 'pixel.oslo.allowed_override' to '1' or 'true'. This way modified APK not needed.

I can't try this right now but if you want to check, then connect Pixel 4 with developer mode and execute command in adb shell:

i tried the first command, i'll let you know if it sticks
 
Last edited:

eudemonky

Member
Dec 3, 2014
15
12
Chengdu
OnePlus 9 Pro
Also looked into Motion Sense APK. Restriction is phone number country code based, can be bypassed. Also looks like its developers left setting to disable country checks at all. TO do that, you just need to change android setting 'pixel.oslo.allowed_override' to '1' or 'true'. This way modified APK not needed.

I can't try this right now but if you want to check, then connect Pixel 4 with developer mode and execute command in adb shell:
Code:
adb shell setprop pixel.oslo.allowed_override true
or
Code:
adb shell "setprop persist.pixel.oslo.allowed_override true; setprop ctl.restart zygote"
or edit system/build.prop with some app
You need root to do this.

Thanks,According to your prompt, my friend has written the EDXPOSED module to open Motion Sense in any region.
 

j to the 4n

Recognized Developer
Oct 18, 2012
16,166
44,267
33
apktool d -b -f Freetime.apk xda
I've modified the Oslo Code [APK found in /product/priv-apps/OsloFeedback/OsloFeedback.apk] and added in some custom code to send intents for Tasker to pick up, but I can't over-write the file because Android 10 locks the /product folder.

I've tweeted at John to ask if Magisk can do this but I'm not sure. Does anyone have any experience with this? I'd really like to have custom actions for the Motion Sense Gestures.


If you can help I'll be happy to share my Module!

My Active Edge module modifies the SystemUIGoogle.apk to provide custom squeeze actions via Edge Sense Plus.
So yeah, you can build a magisk module to replace the file. You can check on my github how it works: https://github.com/Magisk-Modules-Repo/active_edge_system_mod/tree/Android10

I also want to inject some custom code, struggling a bit though, because I rely on logcats, because I don't own a pixel.
You hooked into handleContextHubMessageReceipt method in the FlickGestureSensor?
 
  • Like
Reactions: otrobruno

Balino

Senior Member
Mar 3, 2011
1,714
590
27
Gaeta
Any news on development? I'm not asking for eta Just curious about the progress as I'm quite disappointed by the actual use of this soli chip... It's useless atm atleast for me
 

ashergray

Senior Member
Jul 19, 2011
167
92
Rock Hill SC
  • Like
Reactions: Balino

itylermartin

Senior Member
May 4, 2011
57
19
Louisville
Yes I am. Tomorrow I'm going to do a fresh install see exactly what's causing the issue. Only modules I have installed are BusyBox, viper, sq lite, and this.

I turned face unlock off for the time being. Even if it does conflict with this mod it's worth it! Great work
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Release of OsloBridge v1.1.2 can be found here https://github.com/jcarletto27/magisk_module_motionsense_mod/releases

    The purpose of this is to broadcast intents that Tasker can pick up as events. I plan on sending a PR to TopJohnWu once i hear back on some QA. Please update me here in this thread if you find any bugs! In my own testing I've found that the official apps like Pokemon wave hello and Headed South still function fine.

    This module overwrites the built-in Bridge with a modified one that does not check for Googles signature on the requesting app, essentially letting anyone with knowledge of the bridge api to create an app to use MotionSense. My app which I'm calling OsloBridger (Oslo is the internal name for the MotionSense app) creates a foreground service that works even if the screen is off. I've not noticed any serious battery issues, but time will tell.

    If you have issues please post here with the following and I'll do my best to help:
    Device : (Pixel 4, Pixel 4XL)
    Patch Date: (Oct,Nov,etc)
    Are you Rooted with Magisk? : (Yes, No)
    Other Modules Installed: (Systemless Hosts, edXposed, etc.)
    Do you have Tasker installed ? (Yes, No)
    Is "Allow External Access" checked in the Tasker Misc Preferences? (Yes, No)
    When you start the service in OsloBridger what does it say in the Notification? (Reach, Flick Gestures Active)
    Level of Tasker Experience ? (Novice, Experienced)
    Also, please provide the task your trying to run. The steps to do that are Go to Tasks -> Long Press the Task you want to execute -> Click Three Dots in top right -> Export -> Description to Clipboard and paste it here


    Update Nov 7, 2019 : I've updated the OsloBridger app to now allow the selection of specific tasks from within the app. No more setting up broadcast receivers in Tasker!

    Update Nov 12, 2019: Added 2 new service intent filters to allow the starting and stopping of the Service without needing to use the Toggle intent. Updated the defaults to use what I've found works best (surprise! it's the same settings google uses for the builtin actions)

    Advanced Users:
    The app will still send those same broadcasts if you don't select a task in OsloBridger, so no changes for those setup already. I find this way to be more flexible because you can add multiple conditions to the event in Tasker, but I get that Tasker can have a huge learning curve.
    2
    There's a squeeze action that says shortcut. Choose the Tasker shortcut and pick the task you want executed. You might need to assign an icon for the shortcut to work. Not sure
    Ok thank you very much. I just successfully set everything.
    I'll post a guide on "how to for noobs" like me asap
    2
    Ok, I hear you guys. Tasker can have a pretty steep learning curve. I'll see what I can do about that with the next release of OsloBridger
    2
    Amy news on March update? I think something could have changed as a new gesture has been added. Did anyone try It?
    I've tested the new update and it still works for the original gestures. I'll need to update the bridge to use the new gesture.
    2
    Sorry Balino, sometimes I forget not everyone has the same level of experience. I'm sure someone will come out full guide for using this. I'll try to put a quick start guide together whenever I can get some free time.