seandroid-analytics / seal Goto Github PK
View Code? Open in Web Editor NEWSEAndroid Analytics Library for live device analysis
License: Apache License 2.0
SEAndroid Analytics Library for live device analysis
License: Apache License 2.0
$ python seal/seal.py files
Using device {redacted}
error: device not found
Traceback (most recent call last):
File "seal/seal.py", line 829, in
main()
File "seal/seal.py", line 826, in main
args.func(args)
File "seal/seal.py", line 489, in files
if not initialise_device(args):
File "seal/seal.py", line 612, in initialise_device
args.root_adb = check_root_adb(args.device)
File "seal/seal.py", line 275, in check_root_adb
[adb, "-s", device, "shell", "su", "-c", "id"]).strip('\r\n')
File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['adb', '-s', '{redacted}', 'shell', 'su', '-c', 'id']' returned non-zero exit status 255
$ adb -s '{redacted}' shell su -c id
/system/bin/sh: su: not found
It would be nice if it would indicate that the device is not compatible, instead of the obscure python errors.
Fails with the following stack trace , because it cant parse se-linux policy v30 which is used by android marshmallow .
Using device ZX1G42778K
/tmp/tmpttj7AN/sepolicy
1081 KB/s (160013 bytes in 0.144s)
Parsing policy "/sys/fs/selinux/policy" from device...
ERROR: policydb version 30 does not match my version range 15-29
ERROR: Unable to open policy /tmp/tmpttj7AN/sepolicy.
Traceback (most recent call last):
File "seal.py", line 838, in
main()
File "seal.py", line 835, in main
args.func(args)
File "seal.py", line 361, in polinfo
p = setup_policy(args.policy, args.device)
File "seal.py", line 352, in setup_policy
p = Policy(sepolicy)
File "/home/anto/seal/seal/policy.py", line 131, in init
raise IOError('Invalid policy file')
IOError: Invalid policy file
When i use seal ,i got a error.I installed setools V4 on ubuntu.Anyone can tell ne why ?
$ python seal.py processes --permissions
Traceback (most recent call last):
File "seal.py", line 598, in
main()
File "seal.py", line 595, in main
args.func(args)
File "seal.py", line 343, in processes
device = get_device(args.device, args.adb)
File "seal.py", line 151, in get_device
devices = sealib.device.Device.get_devices()
File "/home/simon/seal/sealib/device.py", line 41, in get_devices
[adb, "devices", "-l"]).split('\n')[1:]
File "/usr/lib/python2.7/subprocess.py", line 567, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.