All Discussions
  • Apps
  • Mouse for SONIM XP3

Started by Techgen · Apr 05, 2021 · Page 1 of 3
Techgen

If you have the Sonim XP3 you may have noticed that none of the mouse apps so far work for the xp3, I've been working with Virresh, and he came out with a version that works pretty well with the xp3, it still needs some work, but I figured I'll give what we have so far. Activating it is pretty straightforward, just click setup permissions, enable screen overlay permission, then press back and enable accessibility permission. Then change the default activation key, you'll need to know the key code of the key you want to set, 17 is the star key, 18 is the pound key, and the speaker key is 285 [I cant list all keys, but these are prob ones you would use]. Press and hold the activation key to turn on/off, and when on press once to turn on/off scroll mode. Heres the link [expires in 7 days] https://we.tl/t-p0md9pp4nS

L-B

Virresh is from the chasidei umos haolam!

Techgen

chaimontherun Thanks for that! Virresh has released a new version with some updates, including scrolling speed, I found that the scrolling acts weird when its on really slow, it works good when its a little faster than half by me, you can test what works for you. This should work on ther phones as well. Here's the link, APK file is on bottom by assets. https://github.com/virresh/matvt/releases/tag/phone-v1.03

I'm having issues with the scrolling speed. I have the latest version of the mouse even though I set the scrolling speed to the slowest it still goes really fast sometimes. Anyone else have that issue? Cc @Techgen

Techgen

chaimontherun It might depend on your dpi, mine is set to 125, and by me i keep the scroll speed about 1/3 of the way to slow and it works fine. Also scroll speed increases the longer its held down

BeBrave

Techgen Wow this mouse is really helpful, friend was asking me for a chess game for a long time but I told him its not possible because of touch/mouse problem, but I just tried this mouse with a chess game (not the one from apps4flip) and it works great! Thank you Techgen!

Techgen

BeBrave You're welcome. Obviously the credit mainly goes to @virresh who developed the whole app, I just provided him with the info needed to make it compatible with the XP3, and posted a link to his page

@BeBrave thanks a ton! As you can see with the first post in the thread "app requests" ,ive been waiting for a chess app for quite some time...the one that apps4flip provided doest let me start a new game...

Woah,
I wasn't aware this was another thread for the mouse.

I'm glad the app is helpful for y'all

chaimontherun I'm having issues with the scrolling speed. I have the latest version of the mouse even though I set the scrolling speed to the slowest it still goes really fast sometimes

As Techgen mentioned, scroll speed could differ based on different dpi's
I don't have a flipphone device to experiment and determine the exact range of workable parameters, I've put in some which worked for me on a Virtual Machine.
Would help if you can experiment with DPI and resolution settings and report if that helps.

Also just a side request, I know it's all in good faith, but please avoid hosting mirrors of the apk. Downloads from the mirrors don't add up to the source download count. Downloading directly from releases page helps me know which of my projects are active and need immediate attention and prioritize my time amongst them. I need to use downloads count, because none of my software ships with any kind of tracker to track users etc (this is by choice).

Direct link for download is available from the repository also -- https://github.com/virresh/matvt/releases/download/phone-v1.03/matvt-v1.0.3-phone-app-release.apk

In case link is not accessible, please let me know so that I can arrange official mirrors and make it accessible for even wider audience.

Techgen

virresh Downloads from the mirrors don't add up to the source download count.

I never realized there was a download count, thanks for pointing that out!

Techgen

chaimontherun DPI is the density of your screen, by default the XP3 is 160 dpi, I changed mine to 125 so apps should display better (less cluttered) I posted elsewhere on this forum how to do that, but I'll repeat it again here. Its adb shell wm density 125 (set to whatever you want, but 120 and under causes the phone app to crash) You'll prob want to raise your text size in the regular settings so its easier to read after.

Techgen Thx! I believe you can lower the DPI on the phone itself. Can I raise the DPI thru ADB?

virresh As Techgen mentioned, scroll speed could differ based on different dpi's
I don't have a flipphone device to experiment and determine the exact range of workable parameters, I've put in some which worked for me on a Virtual Machine.
Would help if you can experiment with DPI and resolution settings and report if that helps.

I played around with the speed and it works fine now. Thank you for all your help!

I have a slight issue when using the matvt mouse on the Sonim XP3, after I go onto a new page in the DansDeals viewer or Apps4Flip viewer or after I take a screenshot, the scroll speed defaults back to the fastest speed. (When I switch to D-pad and then back to mouse the scroll goes back to my set, slower speed.) Anyone else has this issue?

BeBrave

RebYid Yeah have the same issue too sometimes.

Thanks for reporting. I'll log a bug and try to investigate as soon as I can (It will take a long while though, have an unprecedented situation around my place).

esaphire3

not allowing me to enable accesibility keeps saying settings has crashed when i try

virresh On Sonim Xp3plus seem not working . Install all permissed granted I can change mode to mouse ( that see and move on screen ) but not pick

Hi matteovisco
Thanks for trying out the app. I don't know what could have gone wrong. Are you not able to click / scroll but can see the mouse?

If so, likely some OS update has removed critical features required for the app. Unfortunately I don't have a Sonim XP3 Plus (or any flipphone) to test on.

Would need help of some developer with access to such a flipphone to look into it.

Techgen

matteovisco It could be the xp3 plus has a different keycode for select for some reason. Try using keyevent display (in the uploaded apps thread) to see what the keycode is for your select button and report back to @virresh to see if it's included in the current version of the game

News? For me no work see it but not pick

darren051

are these mostly modified android apks or are some of there built from the groud up? Does anyone know what programming language or skill set to start contributing to the community to keep apps up to date I'm using a XP3 for specific reason possibly not the same for others here. Is there a way to donate I'm in the US.

virresh

All command fine

with app4flipmouse

try adb command
LAST : adb shell am startservice com.android.cts.appsflipcursor/com.android.cts.appsflipcursor.services.MouseEventService

REPLY : Error: Requires permission not exported from uid 10196

Is this the problem ?

Techgen

matteovisco no, it always says that, you just ignore it and it works anyway. The apps for flip mouse does not work to click on the xp3 so I assume it won't work with the xp3 plus either. You have a better chance with the one from virresh. Did you check the keycode of the select button like I suggested to you a while back?

Techgen and with

matvt-v1.03-phone but

SETUP PERMISSION : Open new windows "feature not availabe"

and also try

a4fmouse

with WEBADB command :
pm uninstall -k --user 0 com.lge.voicecommand
appops set com.android.cts.appsflipcursor SYSTEM_ALERT_WINDOW allow
settings put secure accessibility_enabled 1
settings put secure enabled_accessibility_services com.android.cts.appsflipcursor/com.android.cts.appsflipcursor.services.MouseEventService
am startservice com.android.cts.appsflipcursor/com.android.cts.appsflipcursor.services.MouseEventService

IS THIS VERSION ALL GRANT but see mouse move and NOT PICK!!!

Techgen

matteovisco It sounds like youre having an issue activating the matvt mouse with the UI, so try installing the MATVT mouse, but activating it with adb [or webadb shell] use these commands
adb shell appops set com.android.cts.io.github.virresh.matvt SYSTEM_ALERT_WINDOW allow
adb shell settings put secure accessibility_enabled 1
adb shell settings put secure enabled_accessibility_services com.android.cts.io.github.virresh.matvt/com.android.cts.io.github.virresh.matvt.services.MouseEventService
adb shell am startservice com.android.cts.io.github.virresh.matvt/com.android.cts.io.github.virresh.matvt.services.MouseEventService

If youre using WebADB shell, leave out "adb shell" from the commands

Try but no work not see mouse and tree time * do nothing All now is granted

Techgen

matteovisco Open the mouse app, go down to override activation key, check that, and put in 17 for the * key or 18 for the # key, and press and hold the key to turn on the mouse (not press 3 times)

darren051

using Linux terminal

adb shell am startservice com.android.cts.io.github.virresh.matvt/com.android.cts.io.github.virresh.matvt.services.MouseEventService
Starting service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.android.cts.io.github.virresh.matvt/.services.MouseEventService }
Error: Requires permission not exported from uid 10162

when i scroll down the page I cant go back up and now both mice are on the screen but i cant scroll back up before initiating mouse mode anyway.

darren051

darren051 you also cant select anything I am also using the XP3 plus