Jump to content

Ptrace support to hack app data advanced in virtual environment


Vishbro

Recommended Posts

  • Administrators

In virtual space, you do not need root to read (and change) application data. Therefore, you can read them and change them from lua scripts via io. * Functions.
You just need to know exactly the right path.

Link to comment
Share on other sites

  • Administrators

You write some kind of nonsense. If you know the absolute path to the file in the virtual space, then you can read it from the scripts.

For example I read internal data for jackpal.androidterm installed in parallel space. GG also must run in Parallel Space.

path = '/data/data/com.lbe.parallel.intl/parallel_intl/0/jackpal.androidterm/shared_prefs/jackpal.androidterm_preferences.xml'

file = io.open(path, 'r')
content = file:read('*a')
file:close()

print(content)

scr_1540307791.jpg

In any case it is not intended feature, but is is possible with some limitation: GG must be installed with game in one virtual space, and you must know exact full path (it is vary on different virtual spaces).

Link to comment
Share on other sites

  • Administrators

Here another example which work in any virtual space:

path = gg.getTargetInfo().dataDir..'/shared_prefs/jackpal.androidterm_preferences.xml'

file = io.open(path, 'r')
content = file:read('*a')
file:close()

print(gg.getTargetInfo().dataDir)
print(path)
print(content)

Path to data in virtual space detected automatically. App must be selected in GG for this works.

scr_1540308930.jpg

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.