def __init__(self, line, a_v):
        # If this is an old-style process line (Android<=6.0)
        if a_v == "6.0" or (a_v[0].isdigit() and (int(a_v[0])) < 6):
            if not Process.correct_line_6_0.match(line):
                raise ValueError('Bad process "{}"'.format(line))
            p = line.split(None, 4)
            self._context = Context(p[0])
            self._user = p[1]
            self._pid = p[2]
            self._ppid = p[3]
            self._name = p[4]
        # If this is a new-style process line (Android>=6.0.1)
        elif a_v == "6.0.1" or Process.SUPPORT_NEWER_VERSIONS:
            if not Process.correct_line_6_0_1.match(line):
                raise ValueError('Bad process "{}"'.format(line))
            p = line.split(None, 9)
            self._context = Context(p[0])
            self._user = p[1]
            self._pid = p[2]
            self._ppid = p[3]
            self._vsize = p[4]
            self._rss = p[5]
            self._wchan = p[6]
            self._pc = p[7]
            self._status = p[8]
            self._name = p[9]
        else:
            raise NotImplementedError("Unsupported Android version.")
Initialize a Process.
dataset/ETHPy150Open seandroid-analytics/seal/sealib/device.py/Process.__init__