yashsingh1/xdaforums huggingface dataset:
[Google Pixel 4 XL Themes, Apps, and Mods] eg1122:
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.
[Google Pixel 4 XL Themes, Apps, and Mods] jasonlee0315:
It would be awesome if we can use Soli sensor with Tasker.

Actually, I've posted this suggestion on Tasker forum. and he, joaomgcd, also looking forward to it.
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
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.
[Google Pixel 4 XL Themes, Apps, and Mods] Eugnis:
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:

adb shell setprop pixel.oslo.allowed_override 1

or

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.
[Google Pixel 4 XL Themes, Apps, and Mods] eg1122:
i tried the first command, i'll let you know if it sticks
[Google Pixel 4 XL Themes, Apps, and Mods] chris111111:
Did the override work?

I am from Hong Kong and Google banned my region as well :(
[Google Pixel 4 XL Themes, Apps, and Mods] eg1122:
Well, I live in the US but live so close to Mexico that I get signal from their carriers every now and then and it turns off. Has not turned off since I did the command
[Google Pixel 4 XL Themes, Apps, and Mods] chris111111:
So Glad to hear that! Gotta try it out when I get my phone :D :):):)
[Google Pixel 4 XL Themes, Apps, and Mods] eudemonky:
Thanks，According to your prompt, my friend has written the EDXPOSED module to open Motion Sense in any region.
[Google Pixel 4 XL Themes, Apps, and Mods] eg1122:
Well ever since I ran the command, motion sense has not turned off
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Quick update I've had success. I needed to disable the signature check and modify the bridge app. But I got a custom app seeing gestures.
[Google Pixel 4 XL Themes, Apps, and Mods] MishaalRahman:
Hey, can you DM me? I would love to learn more about your work.

mishaal@xda-developers.com on Hangouts, [MENTION=1253609]mrahman[/MENTION]XDA on Telegram, MishaalRahman#5289 on Discord.
[Google Pixel 4 XL Themes, Apps, and Mods] j to the 4n:
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?
[Google Pixel 4 XL Themes, Apps, and Mods] Balino:
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
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Just completed my initial release to github. I'll be sending a pull request to John once I get some feedback on how it's

https://github.com/jcarletto27/magisk_module_motionsense_mod
[Google Pixel 4 XL Themes, Apps, and Mods] Geeks Empire:
Well Done!?

i ll give it a try & send u feedback asap
[Google Pixel 4 XL Themes, Apps, and Mods] itylermartin:
Did this break face unlock for anyone else?

I've tried setting it up 6 times. Successfully saves face data but can't verify my face.
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Appreciate the feedback. Just checked with my device and can't replicate the issue. Can anyone else replicate this?

Edit: are you using the November Android update? I never tested for that
[Google Pixel 4 XL Themes, Apps, and Mods] itylermartin:
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
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Thank you, I'll be upgrading to the nov patch today and see if I need to modify another bridge app. I might need some special install code to check for patch number.

Edit: Upgraded to Nov patch and still can't replicate the issue. I've only got systemless hosts and this module installed. Maybe one of your other modules aren't playing nicely?
[Google Pixel 4 XL Themes, Apps, and Mods] Balino:
Could someone guide me on how to use this? I'm quite noob at tasker. If it is possible for you to do an example would be much appreciated.

I installed edge sense app + active edge module in magisk manager. Oslo magisk module and tasker installed as well
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Check the OP, I just added my profiles I used for testing. That should get you off the ground.

Long press on the Profiles tab to import them.
[Google Pixel 4 XL Themes, Apps, and Mods] Balino:
I really appreciate the efforts you putting into this project. Unfortunately I'm not able to understand how this works. I successfully Imported the flick profile but can't figure out how to make it work in a specific app or how to make it do what I want it to do.. I guess it's time to study something about tasker eheh

After digging into some guide on XDA and your profiles I'm been able to get it working. I had to disable motion sense from settings as music was skipping when the flick gesture was made. I just have to understand how to make different profiles/action into a specific app
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
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.
[Google Pixel 4 XL Themes, Apps, and Mods] jasonlee0315:
I've upgraded to Nov patch and installed the latest beta version of Tasker.

I can't get it working even using your Tasker profiles.

To be more specific here's what I try.

For example, I tried to create a task to send Intent "com.jcarletto.oslobridger.REACH_GESTURE", and I've imported your profile "Receive Reach Intent".

When I ran the task, your profile works perfectly.

So I used "com.jcarletto.oslobridger.TOGGLE_SERVICE" to enable the service. Then I reached my phone with my hand, nothing happened.

Maybe OsloBridger didn't send Intent to Tasker?

Is this mod running in the background all the time as the service is enabled?
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
I think you may not have have setup the OsloBridger app yet. You'll need to go in to the app and enable which ever gestures you want to register. I recommend only having one or two on at a time. then you can press the play button in the OsloBridger App or send the TOGGLE_SERVICE intent. Please note the Toggle Service intent must be set to a target of "Service" or my App won't receive it. Assuming you sent the intent correctly you should she a notification that lists what the active Gestures are

My recommendations for which gestures to use are the Reach Gesture and the Flick Gesture.
[Google Pixel 4 XL Themes, Apps, and Mods] jasonlee0315:
Actually, I did go into OsloBridger app to check which Intents I want to send. But It doesn't work...:(
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
You clicked play and you're not seeing the notification?
[Google Pixel 4 XL Themes, Apps, and Mods] jasonlee0315:
I saw the notification says Reach, Flick Gestures Active.

But I waved my hand, nothing happened.
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
And the profile was active and the task had a flash with the %direction variable in it?
[Google Pixel 4 XL Themes, Apps, and Mods] jasonlee0315:
Yes.

But somehow I bricked my phone just now after I uninstalled the update of Motion Sense Bridge... It just stuck at the G logo with an unlimited loading bar and never go into the main screen.

I factory reset it and I'm restoring my phone now....
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
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
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
I've just posted the Updated version (V1.1.0) it now lets you select a specific task to execute from OsloBridger. Please check the ReadMe on my GitHub for details.

https://github.com/jcarletto27/magisk_module_motionsense_mod
[Google Pixel 4 XL Themes, Apps, and Mods] jasonlee0315:
It WORKS on V1.1.0 !!!

Thanks!
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Great, here's to hoping this resolved the struggles a few others were having.
[Google Pixel 4 XL Themes, Apps, and Mods] jasonlee0315:
It works when I select Task to execute in OsloBridger App.

But it doesn't work just using the Intent, it keeps telling me Broadcast Error. And of course I've enabled Allow External Access in Tasker setting, so .... I don't know why...
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
If you can export your profile I'll take a look at it. Might be something I'm not expecting.
[Google Pixel 4 XL Themes, Apps, and Mods] jasonlee0315:
I'm using your profile in the first page and I didn't modify anything.
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
I cleared my Tasker and imported just the flick profile and got it to register right away. Not sure where the failure is. Is it all profiles or just specific ones?
[Google Pixel 4 XL Themes, Apps, and Mods] jasonlee0315:
Um... I found only swipe Intent works for me

OK, I got it working by clearing OsloBridger App data!
[Google Pixel 4 XL Themes, Apps, and Mods] Balino:
Thank you for the update

Does anyone knows how to set the toggle with active edge? I would be really grateful
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
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
[Google Pixel 4 XL Themes, Apps, and Mods] Balino:
Ok thank you very much. I just successfully set everything.

I'll post a guide on "how to for noobs" like me asap
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Updated to Version 1.1.2, fleshed out the GitHub readme with more details and added a few extra service intents to starting and stopping the service. I've also changed the default values for sensor settings to match what Google found to work best with the built in actions.
[Google Pixel 4 XL Themes, Apps, and Mods] Seanzle:
When I try to assign a task the Oslo app force closes on me....any ideas?
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Have you read the GitHub read me? Double check to make sure that allow external access is enabled in tasker.
[Google Pixel 4 XL Themes, Apps, and Mods] Seanzle:
Edit
[Google Pixel 4 XL Themes, Apps, and Mods] Seanzle:
So I've really tried to sort this out and maybe I'm just slow but can someone slow this down and make it simple for me to get the flick Intent mapped to an actual action? Ive got the option to select flick Intent in the Oslo app but I cant figure out how to map that to an action in tasker. I apologize in advance....tasker is confusing
[Google Pixel 4 XL Themes, Apps, and Mods] Seanzle:
Halp
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Hi Seanzle,

can you answer these questions?

Are you using the most recent version of the Magisk module and App?

Have you read the readme on my github completely?

Do you have a task in Tasker to perform?

Is Tasker set to allow external access?

how does your task make use of the %direction variable?

A screenshot or export of your task would be helpful in guiding you but essentially the %direction variable sent by the flick gesture contains 1,3,5,7 for east,north, west, south resepctively. you should have an "if" action where %direction matches the number you want to react to, then under the if you have the action you want to happen, then an "end if" action to close it out. The action under your "if" action might be the play/pause media action or it might be a shell script that swipes the screen to the left, but either way you can build it like this:

If %direction matches 1
Media Action: Next Track
End if
If %direction matches 5
Media Action: Previous Track
End if

Probably the simplest way of testing that everything is setup is

Flash %direction

If you're unfamiliar with Tasker and this isn't enough to get you moving there tons of tutorials out there on youtube.
[Google Pixel 4 XL Themes, Apps, and Mods] yyz71:
Does this app turn on automatically or it has to be enabled after every reboot?
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
It's a service that you can start with Tasker or by clicking the play button on OsloBridger app. Keeping it running all the time could cause your gestures to trigger when you don't want them to. My recommendation is to have tasker turn on the service based opening an app (ie: audible, youtube, reddit, etc). the profile to do that would look like this

the intents follow whats on the ReadMe
[Google Pixel 4 XL Themes, Apps, and Mods] yyz71:
Thank you. Love the app ?
[Google Pixel 4 XL Themes, Apps, and Mods] Balino:
What action are you guys using with this module? I still couldn't find any practical solution for those gestures
[Google Pixel 4 XL Themes, Apps, and Mods] azamsahik:
can we unroot the phone after running the code and still have motion sense unlocked?
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
I mostly use it to play/pause audio and volume manipulation when I'm doing dishes. I also setup a test profile for presence that sets a variable after detecting a hand at a specific distance for a few seconds, not sure how to use that yet, maybe continue to hold to lower screen brightness?

I can think of using the swipes to switch tabs in Chrome, or switching panels on the home screen.

Swipe Along Home (157)
Abort Existing Task
A1: Variable Set [ Name:%Flickdirection To:%direction Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff Max Rounding Digits:3 ]
A2: If [ %direction ~ 1 ]
A3: [X] Run Shell [ Command:input keyevent 21 Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In:%errmsg Store Result In: ]
A4: Run Shell [ Command:input swipe 800 1200 1200 1200 200 Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In:%errmsg Store Result In: ]
A5: End If
A6: If [ %direction ~ 3 ]
A7: Status Bar [ Set:Collapsed ]
A8: End If
A9: If [ %direction ~ 5 ]
A10: Run Shell [ Command:input swipe 1200 1200 800 1200 200 Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In:%errmsg Store Result In: ]
A11: [X] Run Shell [ Command:input keyevent 22 Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In:%errmsg Store Result In: ]
A12: End If
A13: If [ %direction ~ 7 ]
A14: Status Bar [ Set:Expanded ]
A15: End If
A16: If [ %errmsg Set ]
A17: Flash [ Text:%errmsg Long:eek:ff ]
A18: End If
A19: [X] Flash [ Text:eek:n Home Long:eek:ff ]
[Google Pixel 4 XL Themes, Apps, and Mods] oraned:
I don't understand how working if you can help me has a guide??
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Can you be clearer in your problem? Have you read the initial post and the readme on the github,?
[Google Pixel 4 XL Themes, Apps, and Mods] Balino:
Everything should work as expected on december update right?
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Great Question, I've not updated yet. I'll try it today and see if it has any issues.

Edit: ran the update to for the December patch. All of my gestures still work, using the latest Module from my github.
[Google Pixel 4 XL Themes, Apps, and Mods] Balino:
Yeah I installed it aswell but not tested yet. Boot up fine. Thank you for letting me know it's working
[Google Pixel 4 XL Themes, Apps, and Mods] ScrapMaker:
Was losing my mind trying to figure out why my module died, but it turns out when you go into airplane mode, you lose motion sense. Something to do with regional restrictions. Odd.

https://support.google.com/pixelphone/answer/9517454
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
Make sense that it would disable, Motion sense uses RADAR which literally stands for RAdio Detection And Ranging, just Motion Sense is an extremely low power version of it.
[Google Pixel 4 XL Themes, Apps, and Mods] smartymcfly:
So gestures can be assigned based on what app is in the foreground?
[Google Pixel 4 XL Themes, Apps, and Mods] cryppie:
I have found Soli to work only sporadically. Seems like a gimmick that wasn't ready for rollout.
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
yes it's possible to set that up. If you're familiar with Tasker you can set taskers App Check method in the preferences to Accessibility and then you can use the %WIN variable to use the forground app in your tasks.
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
I understand, I spent around 40 hours writing an re-writing my bridge app and I've only gotten a little use out of it. I think it would be better with more gestures and some sort of live positioning for a mouse like control.
[Google Pixel 4 XL Themes, Apps, and Mods] cryppie:
Your app is great! It's just the sensor needs work. It misses about 70% of my gestures.
[Google Pixel 4 XL Themes, Apps, and Mods] nexusTHIRTEEN:
when I run the adb command, i get a FAILED ?!

btw im rooted with magisk
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
What ADB command? you shouldn't need to run any commands for the Bridge app.
[Google Pixel 4 XL Themes, Apps, and Mods] sylikc:
[MENTION=4180335]ashergray[/MENTION] I installed the OsloBridger 1.1.2 from the github page and running on the January patch on the smaller Pixel (flame)

Whenever I try to select task, the com.jcarletto.oslobridger crashes

in logcat, I see

java.lang.IllegalStateException: ListPreference requires an entries array and an entryValues array. at androidx.preference.ListPreferenceDialogFragmentCompat.onCreate ...

I don't have Tasker installed... was hoping to just use the select task feature. Does it allow skipping songs in any app? :)

Thanks,

/sylikc

PS. Also, github only has the APK for the bridger... can you upload the source as well?
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
You must have Tasker installed. No way around that. Sorry!
[Google Pixel 4 XL Themes, Apps, and Mods] sylikc:
:confused:

Oh, so this feature depends on Tasker?

It's not standalone? (Thanks for the quick reply)
[Google Pixel 4 XL Themes, Apps, and Mods] switchy85:
Has anyone tried this with the January update? I made sure everything is enabled properly and the flick gesture does nothing at all when the oslobridge notification is showing. It worked perfectly fine (sometimes too well) until the Jan update.
[Google Pixel 4 XL Themes, Apps, and Mods] nexusTHIRTEEN:
can we please have a dummy proof step by step tutorial to get motion sense in restricted countries ???
[Google Pixel 4 XL Themes, Apps, and Mods] gskonlines:
Has anyone have this running on Feb security patch?...I got a pixel 4xl recently..wanted to try this.
[Google Pixel 4 XL Themes, Apps, and Mods] Kevtrejo37:
Yes it is
[Google Pixel 4 XL Themes, Apps, and Mods] gskonlines:
Perfect...thank you.
[Google Pixel 4 XL Themes, Apps, and Mods] Balino:
Amy news on March update? I think something could have changed as a new gesture has been added. Did anyone try It?
[Google Pixel 4 XL Themes, Apps, and Mods] ashergray:
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.
[Google Pixel 4 XL Themes, Apps, and Mods] Balino:
Thank you for your support. I use the phone for work so I can't use it for testing Sorry to bother you Every time a new update drops. This mod Is really useful for me, using gestures while driving Is the reason I bought this phone eheh
[Google Pixel 4 XL Themes, Apps, and Mods] jdever123:
source code

Is there any way to get the source code for OsloBridger?
[Google Pixel 4 XL Themes, Apps, and Mods] plethorahil:
used to work but doesnt anymore :(

Just executing commands used to work for me back in Dec but now when I run commands, device restarts and motion sense disabled as usual :crying:

Can you confirm this? I don't want to try hard to enable it (installing xposed, modules, 3rd party apps) if it can be done by changing flags
[Google Pixel 4 XL Themes, Apps, and Mods] Eugnis:
After update they changed value from true to 1 so you can set same prop

pixel.oslo.allowed_override

with value

1

Btw I'm using MagiskHide Props for it so it set this setting after each reboot.

It's easy to use, after installing add new prop with magiskhide: pixel.oslo.allowed_override with value 1. After reboot it'll start work
[Google Pixel 4 XL Themes, Apps, and Mods] Mikulec:
Does anybody know the adb command to toggle motion sense on and off?
[Google Pixel 4 XL Themes, Apps, and Mods] ZacharyZhao:
Thanks for your excellent module.

However, when I run the lastest OsloBridger in my pixel 4, the warning says "BroadcastQueue: Permission Denial: broadcasting Intent { act=net.dinglisch.android.tasker.ACTION_TASK dat=id:5918405318731213582 flg=0x10 (has extras) } from com.jcarletto.oslobridger (pid=24009, uid=10208) requires net.dinglisch.android.tasker.PERMISSION_RUN_TASKS due to receiver net.dinglisch.android.taskerm/.ReceiverStaticRunTasks"

And I notice that the data I can read from logcat "Oslo/OsloMetrics" keeps static, especially " mAxialVelocity = 0.0, mAngle = 1.17549435E-38", which is not in line with the reality.

Device : Pixel 4

Patch Date: January, 1, 2020

Are you Rooted with Magisk? : Yes

Other Modules Installed: edXposed

Do you have Tasker installed ? Yes

Is "Allow External Access" checked in the Tasker Misc Preferences? Yes

p.s. I want to store oslo data from soli in pixel 4, may I find the source code of OsloBridger? I really appreciate your help thanks a lot.
[Google Pixel 4 XL Themes, Apps, and Mods] Guinis:
Hi

I got a Pixel 4 and root the device, but I don't understand what you mean for developer mode. How can I turn on my device for that?

I know is a kinda old post, I'm new to this and I don't understand many things. Someone could help me?
[Google Pixel 4 XL Themes, Apps, and Mods] jnss98b:
Google already provided a toggle in settings for turning Motion Sense on and off. Why would you wanna do it the hard way?
[Google Pixel 4 XL Themes, Apps, and Mods] ok555:
Hi, I tried to use terminal command but it doesn't work for me, then installed mqagisk module EnableSoli.Magisk20.2.V1.2 and still cant enable soli(((

any suggestion?
[Google Pixel 4 XL Themes, Apps, and Mods] tlama:
there is no way i can enable SOLI, i tried everything, even ADB, now my last chance is to dig how the hell i can edit the system.buid.prop without screwing up the phone...can anybody help?

---------- Post added at 10:25 PM ---------- Previous post was at 09:39 PM ----------

how to add the command editting the build.prop? can i just copy the command at the end of editing ?

---------- Post added at 10:30 PM ---------- Previous post was at 10:25 PM ----------

I'm still having a hard time time with this...