Use the pc - linux - Xiaomi Mi Band 4 Questions & Answers

I would like to use my pc instead of the phone, is there some native linux app? I am using debian 10.
Or do I have to use a virtual machine and android?
I tried anbox and virt-manager to run the Mi Fit app but it didn' t work.

Have you tried emulator directly from Google? https://developer.android.com/studio/run/emulator
In the past I had a great success with Nox Android emulator (on Windows though), which was basically a Virtualbox image with some extra wrapper.
Also identifying why Mi Fit didn't run with Anbox would help you a lot, my first guess would be missing Google play services. Have you installed GAPPS in Anbox?

I installed android-studio from snap.
I made an empty project and then from "Tools" I launch the "Pixel_3a_API_30_x86" virtual machine, but it crashes:
Code:
10:04 PM * daemon not running; starting now at tcp:5037
10:04 PM * daemon started successfully
10:04 PM Gradle sync started
10:05 PM Gradle sync finished in 5 s 51 ms (from cached state)
10:05 PM Error running 'app': Default Activity not found
10:05 PM Emulator: pulseaudio: pa_context_connect() failed
10:05 PM Emulator: pulseaudio: Reason: Connection refused
10:05 PM Emulator: pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver
10:05 PM Emulator: E0716 22:05:23.766906668 10854 socket_utils_common_posix.cc:201] check for SO_REUSEPORT: {"created":"@1594929923.766892391","description":"SO_REUSEPORT unavailable on compiling system","file":"/mnt/tmpfs/src/android/emu-master-dev/external/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":169}
10:05 PM Emulator: [10839:10839:0716/220536.467317:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
10:05 PM Emulator: Process finished with exit code 1
10:05 PM Error running 'app': Default Activity not found
10:06 PM Error running 'app': Default Activity not found
10:06 PM Error running 'app': Default Activity not found
10:07 PM Emulator: pulseaudio: pa_context_connect() failed
10:07 PM Emulator: pulseaudio: Reason: Connection refused
10:07 PM Emulator: pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver
10:07 PM Emulator: E0716 22:07:32.404844376 11010 socket_utils_common_posix.cc:201] check for SO_REUSEPORT: {"created":"@1594930052.404828935","description":"SO_REUSEPORT unavailable on compiling system","file":"/mnt/tmpfs/src/android/emu-master-dev/external/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":169}
10:07 PM Emulator: emulator: ERROR: ScreenCapturer.cpp:168: take screenshot failed
10:07 PM Emulator: [10995:10995:0716/220748.185251:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported.
Is because I use root?
Maybe I can try nox with wine.
I am having some trouble with anbox I can' t interact with the GUI, for example when it works I can open "Files" but I can' t use it. Mi Fit app doesn' t even start.
What GAPPS should I download and install? (With adb install)

10:07 PM Emulator: [10995:10995:0716/220748.185251:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See crbug.com/638180.
I cannot post link so I put a smile instead of "https://".

Sorry, I don't know anything about that.
I've just tried Nox on Windows and Mi Fit starts fine, so you must search for a solution for your OS and Android emulator (or use Windows and Nox).

Does the android-studio virtual machine have the possibility to connect to the band?
Can someone please make a linux package? Free from Mi Fits and everything...

Scorpion2185 said:
Does the android-studio virtual machine have the possibility to connect to the band?
Can someone please make a linux package? Free from Mi Fits and everything...
Click to expand...
Click to collapse
Not sure about Android-studio VM, but standard VM should work fine with compatible Bluetooth adapter.
Don't forget that you need Mi Fit (or similar app) to obtain authentication key. Once you have it, you can try this Python app. https://github.com/satcar77/miband4

Nice github project, can someone please make a linux package to obtain the authentication key? And then maybe merge the projects.

There is no active Linux developer on this sub-forum (as you probably noticed, it's pretty inactive overall), so you either do it yourself, use a phone or keep wishing that someone will spoon feed you a complete solution.. I would chose either using a phone (you can buy many second-hand smartphones compatible with LineageOS for next to nothing), or fix Android emulator (switch to Windows or fix/change your Linux distribution). I wouldn't expect anyone to do it for me, especially if my needs are really.."unique".. But well, maybe you'll get lucky.

What ISO can I use to create a VM?
I am using "aosp-x86-oreo.iso" but on that VM the Mi Fit app is not available.
Can anbox connect to the band (via bluetooth)? If you can use it...

Scorpion2185 said:
What ISO can I use to create a VM?
I am using "aosp-x86-oreo.iso" but on that VM the Mi Fit app is not available.
Can anbox connect to the band (via bluetooth)? If you can use it...
Click to expand...
Click to collapse
What do you mean that Mi Fit is not available?
Can you see some nearby devices from Android system bluetooth menu?

_mysiak_ said:
What do you mean that Mi Fit is not available?
Can you see some nearby devices from Android system bluetooth menu?
Click to expand...
Click to collapse
On the play store, MI Fit page: " This item is not compatible with your device".
The Amazfit app from the github project link doesn' t start.
I cannot activate the BT, I was able to redirect a data usb drive but the BT one doesn 't work.
On the android VM if I use lsusb I get a strange output.
While on linux:
Code:
lsusb
[...]
Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
[...]

Scorpion2185 said:
On the play store, MI Fit page: " This item is not compatible with your device".
The Amazfit app from the github project link doesn' t start.
I cannot activate the BT, I was able to redirect a data usb drive but the BT one doesn 't work.
On the android VM if I use lsusb I get a strange output.
While on linux:
Code:
lsusb
[...]
Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
[...]
Click to expand...
Click to collapse
Try sideloading the APK, it should work (works in NOX).
I have no experience with running bluetooth on Android VM on Linux, so can't advise. You would save yourself a big headache by using an actual phone.

_mysiak_ said:
Try sideloading the APK, it should work (works in NOX).
I have no experience with running bluetooth on Android VM on Linux, so can't advise. You would save yourself a big headache by using an actual phone.
Click to expand...
Click to collapse
As the Amazfit app it doesn' t work.
Anyway that project on github doesn' t have a lot of functions, I would like to check sleep monitoring.
Can maybe a firmware free the band?

Scorpion2185 said:
As the Amazfit app it doesn' t work.
Anyway that project on github doesn' t have a lot of functions, I would like to check sleep monitoring.
Can maybe a firmware free the band?
Click to expand...
Click to collapse
For sleep monitoring you need either Mi Fit, Notify & Fitness or Mi Bandage. Gadgetbridge seems to provide inaccurate results, others either do not provide sleep stats or they require Mi Fit to be installed.
It is not possible to use any other firmware than the official one and you must register the band with Mi server once. Without the authorization key it simply won't work.
I know that we are discussing the option of using the band with a PC, but it will be much easier for you to use the band as it was designed - with a smartphone.

_mysiak_ said:
For sleep monitoring you need either Mi Fit, Notify & Fitness or Mi Bandage. Gadgetbridge seems to provide inaccurate results, others either do not provide sleep stats or they require Mi Fit to be installed.
It is not possible to use any other firmware than the official one and you must register the band with Mi server once. Without the authorization key it simply won't work.
I know that we are discussing the option of using the band with a PC, but it will be much easier for you to use the band as it was designed - with a smartphone.
Click to expand...
Click to collapse
Gadgetbridge seems a nice app:
Gadgetbridge is an Android (4.4+) application which will allow you to use your Pebble, Mi Band, Amazfit Bip and HPlus device (and more) without the vendor’s closed source application and without the need to create an account and transmit any of your data to the vendor’s servers.
Click to expand...
Click to collapse
I will ask them If they can make a linux version, I don' t like that my data are transmitted to the vendor' s servers. And that I have to make an account.
Do Notify & Fitness and Mi Bandage require an account and transmit data?
I am trying to get the AuthKey https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Huami-Server-Pairing, I have a rooted phone so:
Code:
sqlite3 /data/data/com.xiaomi.hm.health/databases/origin_db_[YOURDBNAMEHERE] "select AUTHKEY from DEVICE"
Error: unable to open databse "/data/data/com.xiaomi.hm.health/databases/origin_db_[YOURDBNAMEHERE]": unable to open database file
Is this the correct command? Is YOURDBNAMEHERE something that I have to change?
I am using termux.
I have the folder /android/data/com.xiaomi.hm.health in the SD card and also in the main storage but there is no folder "databases".
But sleep monitoring doesn' t work at all https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Huami-Deep-Sleep-Detection.

Scorpion2185 said:
Gadgetbridge seems a nice app:
I will ask them If they can make a linux version, I don' t like that my data are transmitted to the vendor' s servers. And that I have to make an account.
Do Notify & Fitness and Mi Bandage require an account and transmit data?
I am trying to get the AuthKey https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Huami-Server-Pairing, I have a rooted phone so:
Code:
sqlite3 /data/data/com.xiaomi.hm.health/databases/origin_db_[YOURDBNAMEHERE] "select AUTHKEY from DEVICE"
Error: unable to open databse "/data/data/com.xiaomi.hm.health/databases/origin_db_[YOURDBNAMEHERE]": unable to open database file
Is this the correct command? Is YOURDBNAMEHERE something that I have to change?
I am using termux.
I have the folder /android/data/com.xiaomi.hm.health in the SD card and also in the main storage but there is no folder "databases".
But sleep monitoring doesn' t work at all https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Huami-Deep-Sleep-Detection.
Click to expand...
Click to collapse
ALL apps require you to register you Mi Band with Mi Band server. There is no way around this. It must be done only once and then you can uninstall Mi Fit.
I don't have Mi Fit installed, but browse your file system in this path "/data/data/com.xiaomi.hm.health/databases/" and there you'll find exact database name which you need to use. Or use some Android SQlite browser app.
Well, Gadgetbridge is very lightweighted in functions, but it's the only open source app available. If you are fine with closed source apps, you can try one of those which I already mentioned. They don't transfer your data out of your phone, unless you use features which require this by their nature (e.g. cloud save) .

_mysiak_ said:
ALL apps require you to register you Mi Band with Mi Band server. There is no way around this. It must be done only once and then you can uninstall Mi Fit.
I don't have Mi Fit installed, but browse your file system in this path "/data/data/com.xiaomi.hm.health/databases/" and there you'll find exact database name which you need to use. Or use some Android SQlite browser app.
Well, Gadgetbridge is very lightweighted in functions, but it's the only open source app available. If you are fine with closed source apps, you can try one of those which I already mentioned. They don't transfer your data out of your phone, unless you use features which require this by their nature (e.g. cloud save) .
Click to expand...
Click to collapse
I can' t check because I need root permission, I am asking on the ROM page that I installed on my Xperia SP https://forum.xda-developers.com/xp...p-oreo-xperia-sp-t3666304/page87#post83144567.
With TWRP SuperSU get an error but it stated that was installed. But I cannot see the app in the menu.
And with Magisk it failed the installation.

Scorpion2185 said:
I can' t check because I need root permission, I am asking on the ROM page that I installed on my Xperia SP https://forum.xda-developers.com/xp...p-oreo-xperia-sp-t3666304/page87#post83144567.
With TWRP SuperSU get an error but it stated that was installed. But I cannot see the app in the menu.
And with Magisk it failed the installation.
Click to expand...
Click to collapse
Why don't you use the non root solution then..? [emoji846]

It is nice to have the phone rooted, but I don' t use it much.
So I will try the Mi Fit mod app https://www.freemyband.com/

Related

Asteroid OS no thread?

Ahoi!
Thought there was a Thread ,but did not Found any.
This seems to be a good Project
https://asteroidos.org/install/tetra/
How is it?
Tempted to give it ago.
I'm tempted to try it out but it seems like I'll lose a lot of the functions that's built in
---------- Post added at 12:00 PM ---------- Previous post was at 11:59 AM ----------
I also still get 2-day battery life on my watch and asteroid OS says that it'll only be around 7 hours
Jep,Battery Time is to bad
Anyone tested a newer Build ? (if something is even there)
For Asteroid OS, I would choose LG watch R or LG watch Urbane, since they are afforable, around 50 USD on ebay, and the belong to the best supported devices for Linux Asteroid OS:
Linux AsteroidOS on LG Watch R (lenok) & Urbane (bass)?
LG watch Urbane is currently one of the most attractive watches to install Linux AsteroidOS on it: https://forum.xda-developers.com/smartwatch/other-smartwatches/kw88-pro-asteroidos-linux-distribution-t4171413/page3 in contrast to other...
forum.xda-developers.com
Here is a thread:
AsteroidOS 1.0 released
Keeping our watch from dying of obsolescence :) What's in the 1.0 release? AsteroidOS 1.0 provides all the features needed for a modern wearable experience: phone notifications, an agenda, an alarm clock, a calculator, a music remote...
forum.xda-developers.com
Has anyone manage permanent install on the Sony SW3? In Linux I do not know where to find the ext2sim package. In Windows it will not show up as a fastboot device.
Droid_Nut said:
Has anyone manage permanent install on the Sony SW3? In Linux I do not know where to find the ext2sim package. In Windows it will not show up as a fastboot device.
Click to expand...
Click to collapse
It seems that there is currently an issue with a permanent install. On Linux I managed to solve it by patching img2simg. You can download the source code here: https://github.com/MagneFire/android-simg2img. Compile that and use the compiled img2simg instead of ext2simg to convert the image to a sparse image.
The issue you describe on Windows seems related to missing drivers you might want to try and install this fastboot driver: https://developer.sony.com/file/download/fastboot-driver/.
See https://github.com/AsteroidOS/asteroid/issues/161 for some more background info.
MagneFire said:
It seems that there is currently an issue with a permanent install. On Linux I managed to solve it by patching img2simg. You can download the source code here: https://github.com/MagneFire/android-simg2img. Compile that and use the compiled img2simg instead of ext2simg to convert the image to a sparse image.
The issue you describe on Windows seems related to missing drivers you might want to try and install this fastboot driver: https://developer.sony.com/file/download/fastboot-driver/.
See https://github.com/AsteroidOS/asteroid/issues/161 for some more background info.
Click to expand...
Click to collapse
I managed to get Wear working on MicroG, so not point in a watch with a 7 hour battery life.
Eureka! Wear works on microG!
1 Download and install Wear OS China Version. https://www.apkmirror.com/?post_type=app_release&searchtype=apk&s=wear+os+china&minapi=false 2 Download and install Wear OS GMS version from the Playstore or where ever. 3 Set up watch on China...
forum.xda-developers.com
More going on with it in Reddit.
https://www.reddit.com/r/MicroG/comments/moqxmb
Battery life was fixed today.
tetra: android-init: Initialize the PMU. by MagneFire · Pull Request #101 · AsteroidOS/meta-smartwatch
Finally found a solution to the battery drain issue on tetra! The solution is embarrassingly simple too! Battery life has improved from barely making it up to 8 hours to an entire day of use with o...
github.com

[Q] Sailfish OS for Motorola Moto G5S (montana)

Is there person who wants Sailfish OS for montana?
Comment if u want this beutiful system for this device
I make a pool for buying device to testing, porting, and polishing Sailfish. If u want to speed it up a little, you can consider supporting me there
paypal.me/pools/c/86YERyPO1I
Good evening, all the rom are welcome.
wiktorek140 said:
Is there person who wants Sailfish OS for montana?
Comment if u want this beutiful system for this device
Click to expand...
Click to collapse
Yes I want to test it if the battery backup is good then I would used it as daily driver
First i need to build it. For it i need listed partitions and input event device
wiktorek140 said:
First i need to build it. For it i need listed partitions and input event device
Click to expand...
Click to collapse
Yes we can provide and test it
Can we discuss about this in telegram group
https://t.me/g5susers
Sounds very interesting.. What are the advantages/possible downsides of this OS?
The main advantages it isn't Android. Only use base libs and hal from android part.
Its purely based on Linux. Apps are native, or u can write it using QML.
U dont send statiscic if u dont want and u can control it.
U control whole system via swipe gestures (it was there earlier than in Iphone)
Different UI and feels conected with using it.
The main disadvantage for someone can be impossibility to launch android app (rom need to be stable and get permision to access Store, from where u can install aliendalvik - app for launching android apk)
wiktorek140 said:
The main advantages it isn't Android. Only use base libs and hal from android part.
Its purely based on Linux. Apps are native, or u can write it using QML.
U dont send statiscic if u dont want and u can control it.
U control whole system via swipe gestures (it was there earlier than in Iphone)
Different UI and feels conected with using it.
The main disadvantage for someone can be impossibility to launch android app (rom need to be stable and get permision to access Store, from where u can install aliendalvik - app for launching android apk)
Click to expand...
Click to collapse
as far as i know, sailfish os could run android apps natively. anyway, good initiative, fingers crossed
We want it
I'll be happy to help porting it blind (can't find mine atm lol, but it is around somewhere) until I either find my phone, or until it gets to hard to do blind. I'll need your help though, can someone who is running lineage 14.1 on their Montana get me a list of partitions and their names? That's an important step to get the boot image going, almost all the other work has already been done by kayesk.
Code:
ls -l /dev/block/platform/*/by-name/
ls -l /dev/block/platform/*/*/by-name/
ls -l /dev/block/bootdevice/by-name/
One of those three commands should return a list, which is all I need to get the HAL build going. Oh, yeah, just in case, send me the output of all three commands. I think it should work both via adb and a terminal emulator on the phone, not too sure.
Oh yeah and as a disclaimer this is my first sailfish port, and first xda post in general, so good preconditions!
Is there anyway we can dual boot it. If so I would love to test it out!!

TP LINK TL-WN722N V.1 and MOTO G5

Hey guys! Wanna be really quick and not waste anyone's time:
I have succesfully installed Kali Nethunter on my MOTO G5 (ViperOS 8.1 OFFICIAL) and i have already connected succesfully a TP-LINK WN722N V.1 on it (already tested on Airmon-ng) but, can i use different apps with my new antenna's monitor mode? (For example: zANTI, Csploit, etc).
How can i ask Android to use ONLY, in this case, WLAN1 (TP-LINK WN722N) and not WLAN0 (My phone's chipset). Because this apps (zANTI and Csploit) are not working properly, of course due to this phone's chipset doesn't support monitor mode (although my new antenna does).
Thanks in advance!
Anyone?
MysteryWhiteBoy said:
Anyone?
Click to expand...
Click to collapse
I don't think it going to work as it required driver to work and it is compatible with pc. So I don't think so it going to work. If you are able to get the driver for your device then there are possibility of working. But I don't think so did some one has made the driver for your device. I think you should contact a developer or need to find an app which can make it work. There is very less chance of working.
MysteryWhiteBoy said:
Hey guys! Wanna be really quick and not waste anyone's time:
I have succesfully installed Kali Nethunter on my MOTO G5 (ViperOS 8.1 OFFICIAL) and i have already connected succesfully a TP-LINK WN722N V.1 on it (already tested on Airmon-ng) but, can i use different apps with my new antenna's monitor mode? (For example: zANTI, Csploit, etc).
How can i ask Android to use ONLY, in this case, WLAN1 (TP-LINK WN722N) and not WLAN0 (My phone's chipset). Because this apps (zANTI and Csploit) are not working properly, of course due to this phone's chipset doesn't support monitor mode (although my new antenna does).
Thanks in advance!
Click to expand...
Click to collapse
how did you connect it?
i am trying to connect it to my moto g5s plus with the otg cable but the cellphone doesnt recognize it
omarf045 said:
how did you connect it?
i am trying to connect it to my moto g5s plus with the otg cable but the cellphone doesnt recognize it
Click to expand...
Click to collapse
Maybe try Kali Nethunter Firmware Magisk module
---------- Post added at 03:10 PM ---------- Previous post was at 03:09 PM ----------
riyan65 said:
I don't think it going to work as it required driver to work and it is compatible with pc. So I don't think so it going to work. If you are able to get the driver for your device then there are possibility of working. But I don't think so did some one has made the driver for your device. I think you should contact a developer or need to find an app which can make it work. There is very less chance of working.
Click to expand...
Click to collapse
He wrote that it is already working

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

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.
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.
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.
eg1122 said:
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.
Click to expand...
Click to collapse
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.
ashergray said:
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.
Click to expand...
Click to collapse
eg1122 said:
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.
Click to expand...
Click to collapse
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.
Eugnis said:
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:
Click to expand...
Click to collapse
i tried the first command, i'll let you know if it sticks
eg1122 said:
i tried the first command, i'll let you know if it sticks
Click to expand...
Click to collapse
Did the override work?
I am from Hong Kong and Google banned my region as well
chris111111 said:
Did the override work?
I am from Hong Kong and Google banned my region as well
Click to expand...
Click to collapse
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
eg1122 said:
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
Click to expand...
Click to collapse
So Glad to hear that! Gotta try it out when I get my phone
Eugnis said:
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.
Click to expand...
Click to collapse
Thanks,According to your prompt, my friend has written the EDXPOSED module to open Motion Sense in any region.
Well ever since I ran the command, motion sense has not turned off
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.
ashergray said:
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.
Click to expand...
Click to collapse
Hey, can you DM me? I would love to learn more about your work.
[email protected] on Hangouts, @mrahmanXDA on Telegram, MishaalRahman#5289 on Discord.
ashergray said:
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!
Click to expand...
Click to collapse
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?
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
Balino said:
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
Click to expand...
Click to collapse
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
Well Done!?
i ll give it a try & send u feedback asap
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.
itylermartin said:
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.
Click to expand...
Click to collapse
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
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

[SOLVED] Ungoogled Lineageos

Hi,
Does someone know or can recommand an ungoogled Os (MicroG, floss app replacing base app, the less google fingerprints as possible) on a lineageos 18 base or very similar exist ?
Hello, you I would recommand you the best alternative (support-wise) : /e/ OS https://e.foundation/
It a very cleverly thought project and advanced, you can buy phones already with the os loaded (for you grandma) and it comes with micro g already in. There is even an account linked to the phone to save contacts and parameters.
It is ungoogled as much it can (clock server, dns server etc).
I would recommand installing it on a Samsung S9 or Fairphone as other phones are not having a support as quick as those (Android Q update and easy installer etc) .
Hi @Gabriel-Roger and thanks for your reply. I already check this option. But unfortunetly /e/ is not avalaible for my device. Moreover it has micro G currently i don't need anything about google or google play service. My whole apps came from Fdroid and don't need it. Finally i choose to use LineageOs on my phone with custom ungoogled settings find here and there.
For pple who are interested to tweak LineageOs i use :
GUIDE: How to avoid the Captive Portal Checkin to Google
Dear XDA community, this my first own thread and guide so please be forbear with me:) And i hope i choose the right section:) As the topic in the thread says it handles about the Captive Portal Checkin done by Android. So first some general...
forum.xda-developers.com
https://www.reddit.com/r/degoogle/comments/cldohl/how_to_degoogle_lineageos_in_2019/
In the futur will give a try to ubuntu touch when it will be avalaible for my phone or in a good GSI state.
A944684 said:
Hi @Gabriel-Roger and thanks for your reply. I already check this option. But unfortunetly /e/ is not avalaible for my device. Moreover it has micro G currently i don't need anything about google or google play service. My whole apps came from Fdroid without it. Finally i choose to use LineageOs on my phone with custom ungoogled settings find here and there.
For pple who are interested to tweak LineageOs i use :
GUIDE: How to avoid the Captive Portal Checkin to Google
Dear XDA community, this my first own thread and guide so please be forbear with me:) And i hope i choose the right section:) As the topic in the thread says it handles about the Captive Portal Checkin done by Android. So first some general...
forum.xda-developers.com
https://www.reddit.com/r/degoogle/comments/cldohl/how_to_degoogle_lineageos_in_2019/
In the futur will give a try to ubuntu touch when it will be avalaible for my phone or in a good GSI state.
Click to expand...
Click to collapse
Hello, thank you very much for this link, I was looking for such a tutorial for a long time !
I tried to modify the file /system/etc/gps_debug.conf in order to remove A-GPS google server but I cannot modify this file even though I have magisk installed and a root file explorer that says it has root access.
Have you done such a thing ? How
yes depends of the file manager, one guy on xda recommand me mixplorer, you can find it here on xda. it works pretty well with this file manager.
Did you do the webview change with bromite ? i failed on this busybox not seems to work on lineage 18
A944684 said:
yes depends of the file manager, one guy on xda recommand me mixplorer, you can find it here on xda. it works pretty well with this file manager.
Did you do the webview change with bromite ? i failed on this busybox not seems to work on lineage 18
Click to expand...
Click to collapse
Hello, tried with other file explorers but I got the same behavior, those system foldes must still be read only for me. I tried mixplorer but it doesnt work on my phone.
Regarding the webview, I only deactivated the app as I do not use it and it doesnot represents any risk by doing this.
Regarding the Captive portal, i have error that let me think that those commands are not working for LOS18.1.
It's like with the gps.conf, it does not exist. There is a gps_debug.conf file but it is not used.
You right i did the change on the gps debug file i didn't find the gps.conf....
Mixplorer works on mine maybe different rom we use ? on my way its LOs 18.1 by Andy.
For the captive portal i used the second part of the first link i gave you on XDA, works properly for me :
dhacke said:
For Android 8/9:
1. Open a terminal on your phone (via terminal apps).
2. Type the following command:
- su
- su
- pm disable com.android.captiveportallogin
- settings put global captive_portal_detection_enabled 0
- settings put global captive_portal_server localhost
- settings put global captive_portal_mode 0
3. Then reboot your phone (via hardware buttons, system or terminal app).
Click to expand...
Click to collapse
Gabriel-Roger said:
Regarding the webview, I only deactivated the app as I do not use it and it doesnot represents any risk by doing this.
Click to expand...
Click to collapse
This mean you have no web browser ?
A944684 said:
You right i did the change on the gps debug file i didn't find the gps.conf....
Mixplorer works on mine maybe different rom we use ? on my way its LOs 18.1 by Andy.
For the captive portal i used the second part of the first link i gave you on XDA, works properly for me :
This mean you have no web browser ?
Click to expand...
Click to collapse
Hi, Thanks for the other method regarding captive portal. I did it but I have no way to verify if it worked :/
Regarding the gps debug.conf, I still cannot modify it, I have tried updating magisk to version 22 but I still can't !
My Rom is Ivan meller 18.1 on Samsung S10
And yes I do have a webbrowser, I use Firefox installed through Aurora
[DISCONTINUED][GSI][11] LineageOS 18.x GSI (all archs)
Background: This is a natural continuation/extension of the LineageOS 17.x GSIs I've been making since November 2019. LineageOS is a free, community built, aftermarket firmware distribution of Android, which is designed to increase performance...
forum.xda-developers.com
this is the best. my honor 9 lite now have a second life

Categories

Resources