mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
1 line
8.5 KiB
Plaintext
1 line
8.5 KiB
Plaintext
ZGlmZiAtLWdpdCBhL21tLXZpZGVvLXY0bDIvdmlkYy92ZGVjL2luYy9vbXhfdmRlYy5oIGIvbW0tdmlkZW8tdjRsMi92aWRjL3ZkZWMvaW5jL29teF92ZGVjLmgKaW5kZXggMTIwYTExZC4uM2Q4ZWM5ZSAxMDA2NDQKLS0tIGEvbW0tdmlkZW8tdjRsMi92aWRjL3ZkZWMvaW5jL29teF92ZGVjLmgKKysrIGIvbW0tdmlkZW8tdjRsMi92aWRjL3ZkZWMvaW5jL29teF92ZGVjLmgKQEAgLTE4Myw3ICsxODMsNyBAQAogI2RlZmluZSBERVNDX0JVRkZFUl9TSVpFICg4MTkyICogMTYpCiAKICNpZmRlZiBfQU5EUk9JRF8KLSNkZWZpbmUgTUFYX05VTV9JTlBVVF9PVVRQVVRfQlVGRkVSUyAzMgorI2RlZmluZSBNQVhfTlVNX0lOUFVUX09VVFBVVF9CVUZGRVJTIDY0CiAjZW5kaWYKIAogI2lmZGVmIF9JT05fSEVBUF9NQVNLX0NPTVBBVElCSUxJVFlfV0EKZGlmZiAtLWdpdCBhL21tLXZpZGVvLXY0bDIvdmlkYy92ZGVjL3NyYy9vbXhfdmRlY19tc204OTc0LmNwcCBiL21tLXZpZGVvLXY0bDIvdmlkYy92ZGVjL3NyYy9vbXhfdmRlY19tc204OTc0LmNwcAppbmRleCA5NzdhZWYyLi45NWZmYjk4IDEwMDY0NAotLS0gYS9tbS12aWRlby12NGwyL3ZpZGMvdmRlYy9zcmMvb214X3ZkZWNfbXNtODk3NC5jcHAKKysrIGIvbW0tdmlkZW8tdjRsMi92aWRjL3ZkZWMvc3JjL29teF92ZGVjX21zbTg5NzQuY3BwCkBAIC0zNDAxLDEwICszNDAxLDIyIEBACiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghY2xpZW50X2J1ZmZlcnMuZ2V0X2J1ZmZlcl9yZXEoYnVmZmVyX3NpemUpKSB7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChwb3J0RGVmbi0+bkJ1ZmZlckNvdW50QWN0dWFsID4gTUFYX05VTV9JTlBVVF9PVVRQVVRfQlVGRkVSUykgeworICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgREVCVUdfUFJJTlRfRVJST1IoIlJlcXVlc3RlZCBvL3AgYnVmIGNvdW50ICgldSkgZXhjZWVkcyBsaW1pdCAoJXUpIiwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcG9ydERlZm4tPm5CdWZmZXJDb3VudEFjdHVhbCwgTUFYX05VTV9JTlBVVF9PVVRQVVRfQlVGRkVSUyk7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlUmV0ID0gT01YX0Vycm9yQmFkUGFyYW1ldGVyOworICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKCFjbGllbnRfYnVmZmVycy5nZXRfYnVmZmVyX3JlcShidWZmZXJfc2l6ZSkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIERFQlVHX1BSSU5UX0VSUk9SKCJFcnJvciBpbiBnZXR0aW5nIGJ1ZmZlciByZXF1aXJlbWVudHMiKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVSZXQgPSBPTVhfRXJyb3JCYWRQYXJhbWV0ZXI7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoIXBvcnRfZm9ybWF0X2NoYW5nZWQpIHsKKworICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gQnVmZmVyIGNvdW50IGNhbiBjaGFuZ2Ugb25seSB3aGVuIHBvcnQgaXMgZGlzYWJsZWQKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghcmVsZWFzZV9vdXRwdXRfZG9uZSgpKSB7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgREVCVUdfUFJJTlRfRVJST1IoIkNhbm5vdCBjaGFuZ2Ugby9wIGJ1ZmZlciBjb3VudCBzaW5jZSBhbGwgYnVmZmVycyBhcmUgbm90IGZyZWVkIHlldCAhIik7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZVJldCA9IE9NWF9FcnJvckludmFsaWRTdGF0ZTsKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KKwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCBwb3J0RGVmbi0+bkJ1ZmZlckNvdW50QWN0dWFsID49IGRydl9jdHgub3BfYnVmLm1pbmNvdW50ICYmCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBvcnREZWZuLT5uQnVmZmVyU2l6ZSA+PSAgZHJ2X2N0eC5vcF9idWYuYnVmZmVyX3NpemUgKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZHJ2X2N0eC5vcF9idWYuYWN0dWFsY291bnQgPSBwb3J0RGVmbi0+bkJ1ZmZlckNvdW50QWN0dWFsOwpAQCAtMzUxMyw2ICszNTI1LDE5IEBACiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlUmV0ID0gT01YX0Vycm9yQmFkUGFyYW1ldGVyOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHBvcnREZWZuLT5uQnVmZmVyQ291bnRBY3R1YWwgPiBNQVhfTlVNX0lOUFVUX09VVFBVVF9CVUZGRVJTKSB7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBERUJVR19QUklOVF9FUlJPUigiUmVxdWVzdGVkIGkvcCBidWYgY291bnQgKCV1KSBleGNlZWRzIGxpbWl0ICgldSkiLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwb3J0RGVmbi0+bkJ1ZmZlckNvdW50QWN0dWFsLCBNQVhfTlVNX0lOUFVUX09VVFBVVF9CVUZGRVJTKTsKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVSZXQgPSBPTVhfRXJyb3JCYWRQYXJhbWV0ZXI7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBCdWZmZXIgY291bnQgY2FuIGNoYW5nZSBvbmx5IHdoZW4gcG9ydCBpcyBkaXNhYmxlZAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIXJlbGVhc2VfaW5wdXRfZG9uZSgpKSB7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBERUJVR19QUklOVF9FUlJPUigiQ2Fubm90IGNoYW5nZSBpL3AgYnVmZmVyIGNvdW50IHNpbmNlIGFsbCBidWZmZXJzIGFyZSBub3QgZnJlZWQgeWV0ICEiKTsKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVSZXQgPSBPTVhfRXJyb3JJbnZhbGlkU3RhdGU7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQorCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChwb3J0RGVmbi0+bkJ1ZmZlckNvdW50QWN0dWFsID49IGRydl9jdHguaXBfYnVmLm1pbmNvdW50CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfHwgcG9ydERlZm4tPm5CdWZmZXJTaXplICE9IGRydl9jdHguaXBfYnVmLmJ1ZmZlcl9zaXplKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwb3J0X2Zvcm1hdF9jaGFuZ2VkID0gdHJ1ZTsKQEAgLTU4ODIsNyArNTkwNyw4IEBACiAgICAgICAgICAgICBuUG9ydEluZGV4ID0gYnVmZmVyIC0gbV9pbnBfaGVhcF9wdHI7CiAKICAgICAgICAgREVCVUdfUFJJTlRfTE9XKCJmcmVlX2J1ZmZlciBvbiBpL3AgcG9ydCAtIFBvcnQgaWR4ICVkIiwgblBvcnRJbmRleCk7Ci0gICAgICAgIGlmIChuUG9ydEluZGV4IDwgZHJ2X2N0eC5pcF9idWYuYWN0dWFsY291bnQpIHsKKyAgICAgICAgaWYgKG5Qb3J0SW5kZXggPCBkcnZfY3R4LmlwX2J1Zi5hY3R1YWxjb3VudCAmJgorICAgICAgICAgICAgICAgIEJJVE1BU0tfUFJFU0VOVCgmbV9pbnBfYm1fY291bnQsIG5Qb3J0SW5kZXgpKSB7CiAgICAgICAgICAgICAvLyBDbGVhciB0aGUgYml0IGFzc29jaWF0ZWQgd2l0aCBpdC4KICAgICAgICAgICAgIEJJVE1BU0tfQ0xFQVIoJm1faW5wX2JtX2NvdW50LG5Qb3J0SW5kZXgpOwogICAgICAgICAgICAgQklUTUFTS19DTEVBUigmbV9oZWFwX2lucF9ibV9jb3VudCxuUG9ydEluZGV4KTsKQEAgLTU5MjQsNyArNTk1MCw4IEBACiAgICAgfSBlbHNlIGlmIChw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AgICAgICBjbGllbnRfYnVmZmVycy5mcmVlX291dHB1dF9idWZmZXIgKCZtX291dF9tZW1fcHRyW2ldKTsKKyAgICAgICAgICAgIH0KKworICAgICAgICAgICAgaWYgKHJlbGVhc2Vfb3V0cHV0X2RvbmUoKSkgeworICAgICAgICAgICAgICAgIGJyZWFrOworICAgICAgICAgICAgfQogICAgICAgICB9CiAjaWZkZWYgX0FORFJPSURfSUNTXwogICAgICAgICBtZW1zZXQoJm5hdGl2ZV9idWZmZXIsIDAsIChzaXplb2YobmF0aXZlYnVmZmVyKSAqIE1BWF9OVU1fSU5QVVRfT1VUUFVUX0JVRkZFUlMpKTsKQEAgLTY1ODcsMTEgKzY2MjEsMTkgQEAKICAgICBpZiAobV9pbnBfbWVtX3B0ciB8fCBtX2lucF9oZWFwX3B0cikgewogICAgICAgICBERUJVR19QUklOVF9MT1coIkZyZWVpbmcgdGhlIElucHV0IE1lbW9yeSIpOwogICAgICAgICBmb3IgKGkgPSAwOyBpPGRydl9jdHguaXBfYnVmLmFjdHVhbGNvdW50OyBpKysgKSB7Ci0gICAgICAgICAgICBpZiAobV9pbnBfbWVtX3B0cikKLSAgICAgICAgICAgICAgICBmcmVlX2lucHV0X2J1ZmZlciAoaSwmbV9pbnBfbWVtX3B0cltpXSk7Ci0gICAgICAgICAgICBlbHNlCi0gICAgICAgICAgICAgICAgZnJlZV9pbnB1dF9idWZmZXIgKGksTlVMTCk7Ci0gICAgICAgIH0KKworICAgICAgICAgICAgaWYgKEJJVE1BU0tfUFJFU0VOVCgmbV9pbnBfYm1fY291bnQsIGkpKSB7CisgICAgICAgICAgICAgICAgQklUTUFTS19DTEVBUigmbV9pbnBfYm1fY291bnQsIGkpOworICAgICAgICAgICAgICAgIGlmIChtX2lucF9tZW1fcHRyKQorICAgICAgICAgICAgICAgICAgICBmcmVlX2lucHV0X2J1ZmZlciAoaSwmbV9pbnBfbWVtX3B0cltpXSk7CisgICAgICAgICAgICAgICAgZWxzZQorICAgICAgICAgICAgICAgICAgICBmcmVlX2lucHV0X2J1ZmZlciAoaSxOVUxMKTsKKyAgICAgICAgICAgIH0KKworICAgICAgICAgICAgaWYgKHJlbGVhc2VfaW5wdXRfZG9uZSgpKSB7CisgICAgICAgICAgICAgICAgYnJlYWs7CisgICAgICAgICAgICB9CisgICAgICAgfQogICAgIH0KICAgICBmcmVlX2lucHV0X2J1ZmZlcl9oZWFkZXIoKTsKICAgICBmcmVlX291dHB1dF9idWZmZXJfaGVhZGVyKCk7CkBAIC02OTkzLDcgKzcwMzUsNyBAQAogICAgIGJvb2wgYlJldCA9IGZhbHNlOwogICAgIHVuc2lnbmVkIGk9MCxqPTA7CiAKLSAgICBERUJVR19QUklOVF9MT1coIlZhbHVlIG9mIG1fb3V0X21lbV9wdHIgJXAiLG1faW5wX21lbV9wdHIpOworICAgIERFQlVHX1BSSU5UX0xPVygiVmFsdWUgb2YgbV9vdXRfbWVtX3B0ciAlcCIsbV9vdXRfbWVtX3B0cik7CiAgICAgaWYgKG1fb3V0X21lbV9wdHIpIHsKICAgICAgICAgZm9yICg7IGogPCBkcnZfY3R4Lm9wX2J1Zi5hY3R1YWxjb3VudCA7IGorKykgewogICAgICAgICAgICAgaWYgKEJJVE1BU0tfUFJFU0VOVCgmbV9vdXRfYm1fY291bnQsaikpIHsK |