2

I have spent hours trying to perfect build.prop and when I finally was at the end I forgot about this leakage. Any app can easily know device's bootloader info. I realized this when I ran CPU-Z. Installed Magisk and Xposed in systemless mode. Running Lineage OS 14.1. I by no means an expert as it is clearly evident from my question otherwise.

Idea is to hide or fake this information from any app including system apps. But I am failing miserably at achieving this since I have no deep understanding of Android.

I searched Git and XDA but answers were not met with requirement. Final search with keywords "getprop ro.bootloader" shade some light about the fundamental commands about getting this info. I am exhausted right now and I might be not thinking in the right direction so your input matters a lot.

I await your instructions!

4
  • Have you installed and configured Magisk Hide?
    – acejavelin
    Aug 7, 2018 at 22:53
  • Magisk Hide only hides the Root status. CPU-Z is able to get bootloader info.
    – markofden
    Aug 7, 2018 at 23:08
  • True, but it even says in it's description "Hide Magisk from detections: Google SafetyNet, enterprise / bank system integrity checks, game tamper checks." Other than that, I don't believe what you want is possible without actually relocking the bootloader, but remember that can be detected as well.
    – acejavelin
    Aug 7, 2018 at 23:11
  • I mean there has to be some way we can know how CPU-Z gets this info from, right? Once we can know that, there is a chance of hiding or faking it. For example how Xprivacy module does it. So what I am looking for is: Either to hide it and shield its original info. Spoof it otherwise.
    – markofden
    Aug 7, 2018 at 23:16

1 Answer 1

4

Install XprivacyLua and select use tracking Pics below show the difference in output

enter image description here enter image description here

For spoofing instead of hiding you may have to use custom hooks. You can ask on the XDA thread of the app or use the pro version of the module to change values globally or on per app basis

enter image description here

Caveat

Quoting Namnodorel from comments

Note that this only works if the apps tries to retrieve bootloader status via Java. XPrivacyLua can't do anything if an app uses native code to check the bootloader.

5
  • 1
    Note that this only works if the apps tries to retrieve bootloader status via Java. XPrivacyLua can't do anything if an app uses native code to check the bootloader.
    – Namnodorel
    Aug 10, 2018 at 10:06
  • @beeshyams - That did it! (Nowhere on the Internet this question has been answered. I had tried XDA, Reddit and what not!)
    – markofden
    Aug 15, 2018 at 22:57
  • Glad to help. That module is worth it's weight for the power it has
    – beeshyams
    Aug 16, 2018 at 0:55
  • 1
    Absolutely. I had been a user of previous verions of Xprivacy. Recently had switched to Lua and it is quite empowring indeed. I don't have Pro features right now to test with. Nevertheless, an amazing module!
    – markofden
    Aug 16, 2018 at 6:06
  • I did manage to create a seprate post over there but got no response. So had to go several places to get an answer. Only here I got one.
    – markofden
    Aug 16, 2018 at 6:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .