flzyup / Riru-LocationReportEnabler

A Riru module. Enable location report by hook system_property_get.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Riru - Location Report Enabler

A module of Riru. Enable Google location report and Google app timeline by hook __system_property_get in specific packages.

What does this module do

By default, __system_property_get (and android::base::GetProperty on Pie+) will be hooked in these packages

  • com.google.android.gsf
  • com.google.android.gms
  • com.google.android.apps.maps

and the return value will be changed

  • gsm.sim.operator.numeric -> 310030
  • gsm.sim.operator.iso-country -> us

Customize

  • Add / remove enabled package

    touch /data/misc/riru/modules/location_report_enabler/packages/<package name>
    rm /data/misc/riru/modules/location_report_enabler/packages/<package name>
    
  • Return value

    echo -n 310030 > /data/misc/riru/modules/location_report_enabler/gsm.sim.operator.numeric
    echo -n us > /data/misc/riru/modules/location_report_enabler/gsm.sim.operator.iso-country
    

    Don't forget -n, or the return data will contain a newline

About

A Riru module. Enable location report by hook system_property_get.


Languages

Language:Shell 47.2%Language:C++ 29.3%Language:C 19.1%Language:Makefile 4.4%