Skip to content

Commit 075a9e4

Browse files
author
zhangtianshuo
committed
update
1 parent e062cfe commit 075a9e4

File tree

6 files changed

+15
-153
lines changed

6 files changed

+15
-153
lines changed

README.md

Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,17 @@
1-
# Riru-LocationReportEnabler
1+
# Riru-MiPushFakeModule
22

3-
A module of [Riru](https://github.com/RikkaApps/Riru). Enable Google's location report by hook `__system_property_get` in some packages.
3+
A module of [Riru](https://github.com/RikkaApps/Riru). Fake as a Xiaomi Device by hook system_property_get.
44

55
## What does this module do
66

7-
By default, `__system_property_get` (`android::base::GetProperty` on Pie+) will be hooked in these packages
7+
By default, `__system_property_get` (`android::base::GetProperty` on Pie+) will be hooked in all packages
88

9-
* com.google.android.gsf
10-
* com.google.android.gms
11-
* com.google.android.apps.maps
9+
* `ro.miui.ui.version.name` -> `V9`
10+
* `ro.miui.ui.version.code` -> `7`
11+
* `ro.miui.version.code_time` -> `1527550858`
12+
* `ro.miui.internal.storage` -> `/sdcard/`
13+
* `ro.product.manufacturer` -> `Xiaomi`
14+
* `ro.product.brand` -> `Xiaomi`
15+
* `ro.product.name` -> `Xiaomi`
1216

13-
and the return value will be changed
14-
15-
* `gsm.sim.operator.numeric` -> `310030`
16-
* `gsm.sim.operator.iso-country` -> `us`
17-
18-
## Customize
19-
20-
* Add / remove enabled package
21-
22-
```
23-
touch /data/misc/riru/location_report_enabler/packages/<package name>
24-
rm /data/misc/riru/location_report_enabler/packages/<package name>
25-
```
26-
27-
If `/data/misc/riru/location_report_enabler/packages` not exists, default package list will be used.
28-
29-
* Return value
30-
31-
```
32-
echo 310030 > /data/misc/riru/location_report_enabler/gsm.sim.operator.numeric
33-
echo us > /data/misc/riru/location_report_enabler/gsm.sim.operator.iso-country
34-
```
17+

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function copy_files {
22
# /data/misc/riru/modules/template exists -> libriru_template.so will be loaded
33
# Change "template" to your module name
44
# You can also use this folder as your config folder
5-
NAME="location_report_enabler"
5+
NAME="riru_mipushfake"
66
mkdir -p $TMP_DIR_MAGISK/data/misc/riru/modules/$NAME
77
cp $MODULE_NAME/template_override/riru_module.prop $TMP_DIR_MAGISK/data/misc/riru/modules/$NAME/module.prop
88

jni/main/main.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@
1616
#include "hook.h"
1717
#include "misc.h"
1818

19-
#define CONFIG_PATH "/data/misc/riru/location_report_enabler"
20-
2119
static char package_name[256];
2220
static int uid;
2321
static int enable_hook = true;
2422

25-
2623
void nativeForkAndSpecialize(int res, int enable_hook, const char *package_name, jint uid) {
2724
if (res == 0 && enable_hook) {
2825
install_hook(package_name, uid / 100000);

riru-location-report-enabler.iml

Lines changed: 0 additions & 118 deletions
This file was deleted.

template_override/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ LATESTARTSERVICE=false
4141

4242
print_modname() {
4343
ui_print "********************************"
44-
ui_print "Riru - Location Report Enabler "
44+
ui_print "Riru - MiPush Fake "
4545
ui_print "********************************"
4646
}
4747

template_override/module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
id=riru_mipushmake
2-
name=Riru - MiPushMakeModule
1+
id=riru_mipushfake
2+
name=Riru - MiPushFakeModule
33
version=v3
44
versionCode=3
55
author=Timothy

0 commit comments

Comments
 (0)