Javascript  |  45行  |  1.62 KB

var violatedLibs = {"system.private.bin": [
        ["/system/bin/systembin", 2],
        ["/system/bin/otherbin", 1]],
    "system.private.fwk-only": [
        ["/system/lib/test.so", 1]],
    "vendor.private.bin": [
        ["/vendor/lib/libvendor.so", 2],
        ["/vendor/lib/vendor_2_lib.so", 1]]};
var depData = [
    {"name": "/system/lib/oklib.so",
        "violate_count": 0,
        "violates": [],
        "depends": [],
        "tag": "system.public.vndk"},
    {"name": "/system/lib/oklib2.so",
        "violate_count": 0,
        "violates": [],
        "depends": ["/system/lib/oklib.so"],
        "tag": "system.private.fwk_only"},
    {"name": "/system/bin/systembin",
        "violate_count": 2,
        "violates": ["/vendor/lib/libvendor.so", "/vendor/lib/vendor_2_lib.so"],
        "depends": ["/system/lib/oklib.so"],
        "tag": "system.private.bin"},
    {"name": "/system/bin/otherbin",
        "violate_count": 1,
        "violates": ["/vendor/lib/libvendor.so"],
        "depends": ["/system/lib/oklib2.so"],
        "tag": "system.private.bin"},
    {"name": "/system/lib/test.so",
        "violate_count": 1,
        "violates": ["/vendor/lib/libvendor.so"],
        "depends": ["/system/lib/oklib.so"],
        "tag": "system.private.fwk-only"},
    {"name": "/vendor/lib/libvendor.so",
        "violate_count": 2,
        "violates": ["/system/lib/test.so", "/system/lib/oklib2.so"],
        "depends": [],
        "tag": "vendor.private.bin"},
    {"name": "/vendor/lib/vendor_2_lib.so",
        "violate_count": 1,
        "violates": ["/system/lib/test.so"],
        "depends": [],
        "tag": "vendor.private.bin"}
];