How to eliminate Backdoor - Xiaomi Mi 5 Questions & Answers

Do you guys know how to eliminate xiaomi backdoor AnalyticsCore.apk ?

lapocompris said:
Do you guys know how to eliminate xiaomi backdoor AnalyticsCore.apk ?
Click to expand...
Click to collapse
You have to root it 1st. Than you eill br able to remove system files
Sent from my ONEPLUS A3003 using XDA-Developers mobile app

I've seen that if you remove AnalyticsCore, it'll be back soon enough, somehow.
The only reliable way to disable the backdoor is to use a firewall (like AdAway) to block incoming and send data from/to Xiaomi's domains.
(For AdAway you'll need to be rooted though)
See this link : https://www.thijsbroenink.com/2016/09/xiaomis-analytics-app-reverse-engineered/

Related

[Q] Enable themes app in permanent English?

I've seen many posts regarding this and no permanent solutions.... aside from an Indian solution which requires root.
Is there actually a solution to this? Or do they just not care?
To replicate... Open the themes app after clearing cache or force closing it, it will show English text for a very short period, then it will switch go Chinese (every single time)
kickassdave said:
I've seen many posts regarding this and no permanent solutions.... aside from an Indian solution which requires root.
Is there actually a solution to this? Or do they just not care?
To replicate... Open the themes app after clearing cache or force closing it, it will show English text for a very short period, then it will switch go Chinese (every single time)
Click to expand...
Click to collapse
This is not a solution! (Be aware of it)
Some other Chinese brands have lines in the build.prop that distinguishes between global and Chinese firmware.
So all you have to do is compare a Global and Chinese build.prop (you get it from the system.img) and try to find a difference.
Dunno if it works, but if you are desperate with a lot of time, give it a shot.
But you can't edit the build.prop without root access
kickassdave said:
But you can't edit the build.prop without root access
Click to expand...
Click to collapse
I have the Mi 5 + root, so that's no problem. And you can get it too. (Just boot into TWRP and sideload SuperSU on an unlocked phone.)
I've tried changing all locale related entries in the build.prop and I'm still stuck with Chinese language in themes app.
It appears this bug has been ongoing for a lonnnnng time and I think they just don't give a damn.
Sent from my MI 5 using XDA-Developers mobile app
Point to note this fixed in the Global ROM but we lose the ability to use paid themes and I'm quite sure our theme choices in general are less.
Sent from my MI 5 using XDA-Developers mobile app

Snapchat log in issue (solved)

Hello,
I just bought a mi5 today and I can't log into snapchat. Whenever I type my username and password it says that the login temporarily failed. I have my Google account set up and synced. I also don't have root.
Have you guys had any problems like that? Or any idea I can try?
Thanks!
Yes, I have fix this issue by change the permission from google application.
Cannot post screen (New user restriction...)
Could you be more specific? I think I granted all the permissions to Google Apps...
LE: I downloaded more apps from Google and made sure that every one of them has all permissions. Thank you!
ovi1602 said:
Could you be more specific? I think I granted all the permissions to Google Apps...
LE: I downloaded more apps from Google and made sure that every one of them has all permissions. Thank you!
Click to expand...
Click to collapse
Also make sure that the Mi App Store doesn't have access to any form of data connection or it will try to update your apps... ?
Sent from my MI 5 using XDA-Developers mobile app
Same problem.. idk what to do
Hawxyde said:
Same problem.. idk what to do
Click to expand...
Click to collapse
Did you make sure the Mi App Store doesn't have access to data of any type? Cause if it does it will "update" your apps.
Sent from my MI 5 using XDA-Developers mobile app
Hawxyde said:
Same problem.. idk what to do
Click to expand...
Click to collapse
i had the same problem
i denied the access of data for the mi store and granted all google apps all permissions, now it works!
Hawxyde said:
Same problem.. idk what to do
Click to expand...
Click to collapse
If it doesn't work, consider flashing the global rom.
You don't have xposed installed do you? Also why bother posting a thread without a logcat. Without the proper testing done your issue would be due to it just being a piece of junk.
can anyone help solving the snapchat issue.. it says tempory failed but thats coming ever since i got the phone.
zelendel said:
You don't have xposed installed do you? Also why bother posting a thread without a logcat. Without the proper testing done your issue would be due to it just being a piece of junk.
Click to expand...
Click to collapse
I said I had no root. Also, if you read the answers, I solved my issue so I think it was worth bothering.
having xiaomi eu rom, there's no setting for google manger or google service framework on app permission, can't login
Forbizzn said:
having xiaomi eu rom, there's no setting for google manger or google service framework on app permission, can't login
Click to expand...
Click to collapse
You have to find a way to remove root.
zelendel said:
You have to find a way to remove root.
Click to expand...
Click to collapse
That's the only way? I like being rooted for extra features like xposed modules
Sent from my MI 5 using Tapatalk
Forbizzn said:
That's the only way? I like being rooted for extra features like xposed modules
Sent from my MI 5 using Tapatalk
Click to expand...
Click to collapse
Snapchat is now looking for both root and xposed and refuses to work if either is installed.
Working with root, had to uninstall xposed framework and it worked. Will try to install framework again and see if its still works. Will try to install rootcloak.
Edit: Snapchat working now after first logging in then install xposed framework latest update and then reboot, still works as promised.

Magisk to fix overly restrictive SELinux filesystem permissions in Android N and O?

Is posible use magisk to fix overly restrictive SELinux filesystem permissions in Android Nougat and Oreo
https://issuetracker.google.com/issues/37091475
Well this is crap!!!
This is exactly like if Windows would deny end users permission to Task Manager, Resource Monitor, and Process Explorer! It is laughable! It is unacceptable! I'm absolutely shocked that this is where Android has gone now. It's getting worse. Since API level 26 (Android O, to be released) you cannot even access any more /prop/stat of your own process. In addition https://developer.android.com/reference/android/app/ActivityManager.html#getRunningServices(int) is being deprecated. Hereafter there is no way to know anything about any process running on a device.
tecnicopascoal said:
Is posible use magisk to fix overly restrictive SELinux filesystem permissions in Android Nougat and Oreo
https://issuetracker.google.com/issues/37091475
Well this is crap!!!
This is exactly like if Windows would deny end users permission to Task Manager, Resource Monitor, and Process Explorer! It is laughable! It is unacceptable! I'm absolutely shocked that this is where Android has gone now. It's getting worse. Since API level 26 (Android O, to be released) you cannot even access any more /prop/stat of your own process. In addition https://developer.android.com/reference/android/app/ActivityManager.html#getRunningServices(int) is being deprecated. Hereafter there is no way to know anything about any process running on a device.
Click to expand...
Click to collapse
If you find wich system file(s) are to be eddited, we could setup an Magisk module, assuming that the file(s) is/are located in the system part.
The file(s) path(s) aren't present by your link.
Rom said:
If you find wich system file(s) are to be eddited, we could setup an Magisk module, assuming that the file(s) is/are located in the system part.
The file(s) path(s) aren't present by your link.
Click to expand...
Click to collapse
I just will update to Nougat or Oreo when I find a solution to this, I need use the "Usage Timelines" like an Task Manager to stay my Hard Multitasking mint. If you know a solution to this please let me know
https://play.google.com/store/apps/details?id=com.als.usagetimelines
Sent from my Asus ZenFone 3 Deluxe using XDA Labs
tecnicopascoal said:
I just will update to Nougat or Oreo when I find a solution to this, I need use the "Usage Timelines" like an Task Manager to stay my Hard Multitasking mint. If you know a solution to this please let me know
https://play.google.com/store/apps/details?id=com.als.usagetimelines
Sent from my Asus ZenFone 3 Deluxe using XDA Labs
Click to expand...
Click to collapse
sorry but i don't understand exactly what you want to have/make..
Rom said:
sorry but i don't understand exactly what you want to have/make..
Click to expand...
Click to collapse
The app "Usage Timelines" do not work on Nougat and Oreo, apps likes SystemPanel too. I want a fix to make that apps work.Look the description of the app Usage Timelines on play store to you understand
Sent from my Asus ZenFone 3 Deluxe using XDA Labs

[Module] NFC Screen Off

NFC Screen Off
Read NFC tags when screen is off.
Disable NFC tagging sound.
Tap to pay when screen is off.
ALWAYS include Magisk installation logs when posting an issue.
Useful integrations: NFC Card Emulator Pro - Tasker
Installation metrics: Grafana dashboard
How does it work?
The NFC app is patched during installation into a `modded` version. This `modded` version is injected at boot time by service.sh so that the phone thinks the screen is always on and unlocked.
This patch only applies to NFC Service so it does not impact any other functionality of the phone that involves screen state detection.
The `modded` app was generated using this method.
Help section
MY NFC IS NOT DETECTED ANYMORE
If you did not unlock your device since last boot, unlock it and wait 30 seconds for the module to be loaded.
After that time, if NFC does not start automatically or manually, it means that the patch does not work for your device. You can uninstall the module and create an issue.
I AM STUCK IN A BOOTLOOP
Remove the module manually.
1. Boot into TWRP
1. Advanced -> File Manager
1. Delete /adb/modules/NFCScreenOff
1. Reboot
THE MODULE IS NOT WORKING SINCE LAST UPDATE
Perform a clean reinstallation.
1. Uninstall the module
1. Reboot
1. Install the module
1. Reboot
If it does not solve your problem, you can create an issue.
I LIKE THE MODULE
Only for rooted devices ok?
lapwat said:
NFCScreenOff
Enable NFC pooling while phone is locked and screen is off for Android 9 and above.
Make it work for host card emulator to pay in stores
Ask me
Click to expand...
Click to collapse
It broke my nfc payments. Any fixes ?
Should it work normally with Google pay ?
maujogue said:
It broke my nfc payments. Any fixes ?
Should it work normally with Google pay ?
Click to expand...
Click to collapse
Not yet. It's on the To-Do list.
Thanks for enabling this option.
It may not necessarily be a bad thing that it breaks safety net.
Enabling mobile payments while phone is locked is NOT a good idea. Your phone will be vulnerable to money theft with some special NFC devices. They can get close to your phone while it is in your pocket or purse and that is enough for them to steal your money.
crime_of_heart said:
Thanks for enabling this option.
It may not necessarily be a bad thing that it breaks safety net.
Enabling mobile payments while phone is locked is NOT a good idea. Your phone will be vulnerable to money theft with some special NFC devices. They can get close to your phone while it is in your pocket or purse and that is enough for them to steal your money.
Click to expand...
Click to collapse
Yes, that's a bad idea. I just want it to not brake payments, as I couldnt use Google pay even if I unlocked with this module
@lapwat Hi, awesome module. It is not working for me since the path (and app name) for nfc app is system/app/NxpNfcNci/NxpNfcNci.apk
Android 10.3.0
Oneplus 6
Stock ROM
Edit:attach log
maujogue said:
It broke my nfc payments. Any fixes ?
Should it work normally with Google pay ?
Click to expand...
Click to collapse
Yes it should continue to work normally with Google Pay.
What I meant in the description of the module is:
For now, it only works for reading NFC tags. For payments in stores, the phone still needs to be at least on. If the module is working for tags but breaks your payments, leave a comment.
Is it the case for you? The module works for NFC tags but the payments are broken?
What are your specs (device, rom, android version)?
marcozpaulo said:
Only for rooted devices ok?
Click to expand...
Click to collapse
Yes, only for devices rooted with Magisk.
lapwat said:
Yes it should continue to work normally with Google Pay.
What I meant in the description of the module is:
For now, it only works for reading NFC tags. For payments in stores, the phone still needs to be at least on. If the module is working for tags but breaks your payments, leave a comment.
Is it the case for you? The module works for NFC tags but the payments are broken?
What are your specs (device, rom, android version)?
Click to expand...
Click to collapse
Now I get it regarding Google Pay.
lapwat said:
Yes it should continue to work normally with Google Pay.
What I meant in the description of the module is:
For now, it only works for reading NFC tags. For payments in stores, the phone still needs to be at least on. If the module is working for tags but breaks your payments, leave a comment.
Is it the case for you? The module works for NFC tags but the payments are broken?
What are your specs (device, rom, android version)?
Click to expand...
Click to collapse
Exactly. I tried paying but nothing happens, like if nfc didn't exists on my phone. I desinstalled the module and I could pay again. Paying is more important than reading nfc tags for me !
maujogue said:
Exactly. I tried paying but nothing happens, like if nfc didn't exists on my phone. I desinstalled the module and I could pay again. Paying is more important than reading nfc tags for me !
Click to expand...
Click to collapse
That's good to know. Will wait for further development.
SatanicShanker666 said:
@lapwat Hi, awesome module. It is not working for me since the path (and app name) for nfc app is system/app/NxpNfcNci/NxpNfcNci.apk
Android 10.3.0
Oneplus 6
Stock ROM
Edit:attach log
Click to expand...
Click to collapse
Thanks for the logs. Can you send those files to me:
/system/app/NxpNfcNci/NxpNfcNci.apk
/system/framework/framework-res.apk
I will do a version for people with NxpNfcNci app (I guess it is OnePlus customized NfcService).
My stock Xiaomi ROM had a NQNfcNci app.
lapwat said:
Thanks for the logs. Can you send those files to me:
/system/app/NxpNfcNci/NxpNfcNci.apk
/system/framework/framework-res.apk
I will do a version for people with NxpNfcNci app (I guess it is OnePlus customized NfcService).
My stock Xiaomi ROM had a NQNfcNci app.
Click to expand...
Click to collapse
Ok nice, thanks! Here you go:
http://www.mediafire.com/file/2zcmud0i2z8y0vy/framework-res.apk/file
http://www.mediafire.com/file/fys9ee6s308qmy9/NxpNfcNci.apk/file
SatanicShanker666 said:
Ok nice, thanks! Here you go:
http://www.mediafire.com/file/2zcmud0i2z8y0vy/framework-res.apk/file
http://www.mediafire.com/file/fys9ee6s308qmy9/NxpNfcNci.apk/file
Click to expand...
Click to collapse
I've done it! Try installing the module and tell me if it works!
lapwat said:
I've done it! Try installing the module and tell me if it works!
Click to expand...
Click to collapse
Not the same guy, but also using Oneplus. It installed successfully but doesn't seem to be working.
Is it possible to modify the installation script to account for ncinfc with other names? For instance on the Razer phone 2 it is named NQNFCnci so the script can't find it
virseph said:
Not the same guy, but also using Oneplus. It installed successfully but doesn't seem to be working.
Click to expand...
Click to collapse
2me3 said:
Is it possible to modify the installation script to account for ncinfc with other names? For instance on the Razer phone 2 it is named NQNFCnci so the script can't find it
Click to expand...
Click to collapse
From what I understand from feedbacks, the apk app can have several names:
NfcNci
NQNfcNci
NpxNfcNci
Those names do not depend of the device but depend of the ROM.
Two apk with the same name will in fact be different. They are very related to the framework of the ROM.
Loading an APK from another ROM even if it is the same Android version will have little chance to work.
I cannot detect all the specs of the device. Magisk only gives me the Android SDK Version that's all.
I could make an apk for every ROM.
2 possibilities:
- Zip framework.apk + (NQ/Npx)NfcNci.apk, send it to a server. The server will return a custom apk just for your ROM. This is the one that Magisk will use.
- Build the custom APK directly on the phone, but I cannot find how to run apktools, jarsigner, etc on Android (because there is no JAVA env on Android)
Hi, on my first try a few days ago it didn't install i think it was because the path too, but now it works perfect. Thanks dev:good:
oneplus 6
Android 10 OB 33
xXx magisk on stock rom
Blu spark kernel
Sent from my OnePlus6 using XDA Labs
lapwat said:
From what I understand from feedbacks, the apk app can have several names:
NfcNci
NQNfcNci
NpxNfcNci
Those names do not depend of the device but depend of the ROM.
Two apk with the same name will in fact be different. They are very related to the framework of the ROM.
Loading an APK from another ROM even if it is the same Android version will have little chance to work.
I cannot detect all the specs of the device. Magisk only gives me the Android SDK Version that's all.
I could make an apk for every ROM.
2 possibilities:
- Zip framework.apk + (NQ/Npx)NfcNci.apk, send it to a server. The server will return a custom apk just for your ROM. This is the one that Magisk will use.
- Build the custom APK directly on the phone, but I cannot find how to run apktools, jarsigner, etc on Android (because there is no JAVA env on Android)
Click to expand...
Click to collapse
Yes I extracted the zip and modified the customize/service.sh scripts to properly work with my rom and as you stated it did not work. as soon as the script killed the nfc service it triggered a reboot to recovery.
I PM'd you a gdrive link to the stock apk's from the razer phone 2 Pi stock rom. If you have some time would please build it for me? I tried to do it myself a while ago but ran out of steam before i even got all the dependencies running on my computer lol. I can modify your magisk package to work with it myself.
I like your idea of a server that automatically runs the process to patch the apk. Would every use need to upload both the framework.apk and nfcnci or just the nfc? The only concern I would have is bandwithd as the framework apk is 30+ MB's. If you could build the server into a docker container I think it would be easy enough for others to host you could probably find some people willing to host it for free. Another option could be using a google drive account to allow people to upload the apk's for their phone then batch process them all and sort them by model/build # or something to cover most phones/roms . I have a gapps for business account with unlimited storage I could probably lend for this purpose
Once again thanks for all your work! If you have a bitcoin address i'd like to buy you a beer

Question True Always On Display possible on the stock rom?

I know the "disable miu optimizations" trick but that ain't a good idea, and i can install a third party Always On Display app from the Playstore, but with the latter the fingerprintscanner doesn't function well when unlocking the device so a no go either.
Any other workarounds to get rid of that ridiculous 10 second limitation from Xiaomi other than installing a custom rom?
If i knew this in advance i would have never bought this phone.
Apple740 said:
I know the "disable miu optimizations" trick but that ain't a good idea, and i can install a third party Always On Display app from the Playstore, but with the latter the fingerprintscanner doesn't function well when unlocking the device so a no go either.
Any other workarounds to get rid of that ridiculous 10 second limitation from Xiaomi other than installing a custom rom?
If i knew this in advance i would have never bought this phone.
Click to expand...
Click to collapse
Try:
https://xiaomi.eu/community/threads/miui-13-stable-release.64441/
NOSS8 said:
Try:
https://xiaomi.eu/community/threads/miui-13-stable-release.64441/
Click to expand...
Click to collapse
I have MIUI 13.0.14 but nothing worked as it was on Samsung. I know apps from Google Play that work as it was previous, but they want access to read messages from phone. Is it safe?
reg1stration said:
I have MIUI 13.0.14 but nothing worked as it was on Samsung. I know apps from Google Play that work as it was previous, but they want access to read messages from phone. Is it safe?
Click to expand...
Click to collapse
If the apps come from the play store, it should be safe.
Some apps need specific permissions to work.
It's just the security on the Xiaomi that blocks while on other brands these authorizations are automatically granted.
NOSS8 said:
If the apps come from the play store, it should be safe.
Some apps need specific permissions to work.
It's just the security on the Xiaomi that blocks while on other brands these authorizations are automatically granted.
Click to expand...
Click to collapse
So they actually can't see messages body, just count of unread messages?
reg1stration said:
So they actually can't see messages body, just count of unread messages?
Click to expand...
Click to collapse
What apps?
NOSS8 said:
What apps?
Click to expand...
Click to collapse
Always On AMOLED (Tomer Rosenfeld)
reg1stration said:
Always On AMOLED (Tomer Rosenfeld)
Click to expand...
Click to collapse
Mandatory access for notifications.
Apple740 said:
I know the "disable miu optimizations" trick but that ain't a good idea, and i can install a third party Always On Display app from the Playstore, but with the latter the fingerprintscanner doesn't function well when unlocking the device so a no go either.
Any other workarounds to get rid of that ridiculous 10 second limitation from Xiaomi other than installing a custom rom?
If i knew this in advance i would have never bought this phone.
Click to expand...
Click to collapse
Hi, I found this magisk module on Mods center Telegram channel (which yes, needs to be rooted)
This basically removes the 10s limit. Don't have any screenshot but should work in the latest MIUI 13 since the module was made recently (posted on September 15 in the channel)
PS: Never tested it myself on stock ROM
Download (Gdrive) Made by Kashi
Mod edit: TG link removed
Alex Zander-kun said:
Hi, I found this magisk module on Mods center Telegram channel (which yes, needs to be rooted)
This basically removes the 10s limit. Don't have any screenshot but should work in the latest MIUI 13 since the module was made recently (posted on September 15 in the channel)
PS: Never tested it myself on stock ROM
Download (Gdrive) Made by Kashi
Mod edit: TG link removed
Click to expand...
Click to collapse
To get root i need to unlock the bootloader, might as well flash a custom rom then.

Categories

Resources