I tried to edit source code of an app which is used to locate servants It has a function or parameter "isFromMockProvider()" I guess this one is the culprit I want to bypass it So that App could not know that I am using Mock location I am a python dev not know enough about Smali Please Help.. Thank You..
.line 106
invoke-virtual {p0}, Landroid/location/Location;->isFromMockProvider()Z
move-result p0
const-string v1, "mocked"
invoke-interface {v0, v1, p0}, Lcom/facebook/react/bridge/WritableMap;->putBoolean(Ljava/lang/String;Z)V
:cond_61
return-object v0
.end method
Try replacing your lines with this
Here I initialised another boolean (Z) variable v2 with false (0x0) and put it instead of p0 in putBoolean function call.
But I don't know if your original function has space for another register (v2). So check if .locals or .registers is more then 3.
Usually .locals N is first line in your function. Where N means that you can use N-1 registers name.