Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hook __system_property_get crash app #35

Open
henrytom1703 opened this issue May 8, 2018 · 0 comments
Open

hook __system_property_get crash app #35

henrytom1703 opened this issue May 8, 2018 · 0 comments

Comments

@henrytom1703
Copy link

henrytom1703 commented May 8, 2018

static int new_property_get(const char *name, char *value) {

    if(strcmp(name,"ro.product.board") == 0){
        strcpy("google.com",value);
//        int a = old_property_get(name, value);
        Log("================Data native hook... %s -> %s | %d ", name, value,7);
        return 7;
    }
    int v = old_property_get(name, value);
    Log("Data native hook... %s -> %s | %d ", name, value,v);
    return v;
}

08 11:31:35.851 443-443/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/grandppltedx/grandpplte:6.0.1/MMB29T/G532GDXU1APJ3:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 11717, tid: 11830, name: RenderThread >>> com.xx.xx.xx<<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xb340c0f8
05-08 11:31:35.871 443-443/? A/DEBUG: r0 b340c0f8 r1 b3377e35 r2 0000006d r3 72000000
r4 b649d59a r5 00000000 r6 b3377e34 r7 b337be74
r8 b3377e34 r9 b345b6e3 sl 00000001 fp b649ee08
ip b340dffc sp b3377df0 lr b340c091 pc b6cef586 cpsr 600b0030
05-08 11:31:35.881 443-443/? A/DEBUG: backtrace:
#00 pc 00018586 /system/lib/libc.so (strcpy+5)
#1 pc 0000108d /data/app/com.xx.xx.xx-1/lib/arm/libhook.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant