[
  {
    "path": ".github/workflows/ci.yml",
    "content": "name: Build CI\n\non:\n  workflow_dispatch:\n  push:\n    branches: [ master ]\n    paths-ignore:\n      - '**.md'\n      - '**.txt'\n      - '.github/**'\n      - '!.github/workflows/**'\n\njobs:\n  build:\n    name: Build CI\n    runs-on: ubuntu-latest\n    if: ${{ !startsWith(github.event.head_commit.message, '[skip ci]') }}\n\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n        with:\n          fetch-depth: 0\n\n      - name: Checkout libxposed/api\n        uses: actions/checkout@v4\n        with:\n          repository: libxposed/api\n          path: libxposed/api\n          fetch-depth: 0\n\n      - name: Checkout libxposed/service\n        uses: actions/checkout@v4\n        with:\n          repository: libxposed/service\n          path: libxposed/service\n          fetch-depth: 0\n\n      - name: Setup Java\n        uses: actions/setup-java@v4\n        with:\n          distribution: corretto\n          java-version: '21'\n\n      - name: Write key\n        if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'\n        run: |\n          echo \"${{ secrets.KEYSTORE }}\" | base64 --decode > key.jks\n          echo keystore.store.file=`pwd`/key.jks >> local.properties\n          echo keystore.store.password='${{ secrets.KEYSTORE_PASSWORD }}' >> local.properties\n          echo keystore.key.alias='${{ secrets.KEYSTORE_KEY }}' >> local.properties\n          echo keystore.key.password='${{ secrets.KEYSTORE_KEY_PASSWORD }}' >> local.properties\n\n      - name: Build with Gradle\n        id: build_apk\n        run: |\n          # gradle properties\n          mkdir -p ~/.gradle\n          echo 'org.gradle.caching=true' >> ~/.gradle/gradle.properties\n          echo 'org.gradle.parallel=true' >> ~/.gradle/gradle.properties\n          echo 'org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:+UseParallelGC' >> ~/.gradle/gradle.properties\n          echo 'android.native.buildOutput=verbose' >> ~/.gradle/gradle.properties\n          # build dependencies\n          cd libxposed/api && ./gradlew publishToMavenLocal && cd ../..\n          cd libxposed/service && ./gradlew publishToMavenLocal && cd ../..\n          # build AppLock\n          ./gradlew :app:assemble\n          echo \"debug=$(ls app/build/outputs/apk/debug/*-debug.apk | grep -Po '[^/]*?(?=\\.apk)')\" >> $GITHUB_OUTPUT\n          echo \"release=$(ls app/build/outputs/apk/release/*-release.apk | grep -Po '[^/]*?(?=\\.apk)')\" >> $GITHUB_OUTPUT\n\n      - name: Upload debug\n        if: success()\n        uses: actions/upload-artifact@v4\n        with:\n          name: ${{ steps.build_apk.outputs.debug }}\n          path: \"app/build/outputs/apk/debug/*-debug.apk\"\n\n      - name: Upload release\n        if: success()\n        uses: actions/upload-artifact@v4\n        with:\n          name: ${{ steps.build_apk.outputs.release }}\n          path: \"app/build/outputs/apk/release/*-release.apk\"\n\n      - name: Upload mappings\n        if: success()\n        uses: actions/upload-artifact@v4\n        with:\n          name: mappings\n          path: \"app/build/outputs/mapping/release\"\n"
  },
  {
    "path": ".gitignore",
    "content": "/.gradle\n/.idea\n/build\nlocal.properties\n*.iml\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "README.md",
    "content": "## AppLock\n\n[![Build](https://img.shields.io/github/actions/workflow/status/Mufanc/AppLock/ci.yml?branch=master&logo=github&label=Build)](https://github.com/Mufanc/AppLock/actions)\n[![Download](https://img.shields.io/github/downloads/Xposed-Modules-Repo/mufanc.tools.applock/total?label=Downloads)](https://github.com/Xposed-Modules-Repo/mufanc.tools.applock/releases/latest)\n[![License](https://img.shields.io/github/license/Mufanc/AppLock?label=License)](https://choosealicense.com/licenses/gpl-3.0/)\n[![Stars](https://img.shields.io/github/stars/Mufanc/AppLock?label=Stars)](https://github.com/Mufanc)\n\n* 防止特定应用被侧滑杀死或一键清理\n\n* 理论上支持 Android 9~14，MIUI 12+\n\n![](images/screenshots.gif)\n\n* 项目地址：[Mufanc/AppLock](https://github.com/Mufanc/AppLock)\n\n* 下载链接\n\n| 稳定版 |                                     每夜版                                      |\n| :---: |:----------------------------------------------------------------------------:|\n| [模块仓库](https://github.com/Xposed-Modules-Repo/mufanc.tools.applock/releases/latest) | [Github Actions](https://github.com/Mufanc/AppLock/actions/workflows/ci.yml) |\n"
  },
  {
    "path": "api-stub/.gitignore",
    "content": "/build"
  },
  {
    "path": "api-stub/build.gradle.kts",
    "content": "plugins {\n    alias(libs.plugins.agp.library)\n}\n\nval androidMinSdkVersion: Int by rootProject.extra\nval androidCompileSdkVersion: Int by rootProject.extra\n\nval androidSourceCompatibility: JavaVersion by rootProject.extra\nval androidTargetCompatibility: JavaVersion by rootProject.extra\n\nandroid {\n    namespace = \"hidden.api.stub\"\n    compileSdk = androidCompileSdkVersion\n\n    defaultConfig {\n        minSdk = androidMinSdkVersion\n        consumerProguardFiles(\"consumer-rules.pro\")\n    }\n\n    buildTypes {\n        release {\n            isMinifyEnabled = false\n            proguardFiles(\"proguard-rules.pro\")\n        }\n    }\n\n    compileOptions {\n        sourceCompatibility = androidSourceCompatibility\n        targetCompatibility = androidTargetCompatibility\n    }\n}\n\ndependencies {\n    compileOnly(libs.hiddenapi.annotation)\n    annotationProcessor(libs.hiddenapi.annotation.processor)\n}\n"
  },
  {
    "path": "api-stub/consumer-rules.pro",
    "content": ""
  },
  {
    "path": "api-stub/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile"
  },
  {
    "path": "api-stub/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest />\n"
  },
  {
    "path": "api-stub/src/main/java/android/app/ActivityThread.java",
    "content": "package android.app;\n\npublic class ActivityThread {\n    public static ActivityThread currentActivityThread() {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    public ContextImpl getSystemContext() {\n        throw new RuntimeException(\"STUB\");\n    }\n}\n"
  },
  {
    "path": "api-stub/src/main/java/android/app/ContextImpl.java",
    "content": "package android.app;\n\nimport android.content.Context;\n\npublic abstract class ContextImpl extends Context {\n\n}\n"
  },
  {
    "path": "api-stub/src/main/java/android/os/ServiceManager.java",
    "content": "package android.os;\n\npublic class ServiceManager {\n    public static IBinder getService(String name) {\n        throw new RuntimeException(\"STUB\");\n    }\n}\n"
  },
  {
    "path": "api-stub/src/main/java/android/os/SystemProperties.java",
    "content": "package android.os;\n\npublic class SystemProperties {\n\n    public static String get(String key) {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    public static boolean getBoolean(String key, boolean def) {\n        throw new RuntimeException(\"STUB\");\n    }\n}\n"
  },
  {
    "path": "api-stub/src/main/java/android/util/ArrayMapStub.java",
    "content": "package android.util;\n\nimport java.util.Collection;\nimport java.util.Map;\nimport java.util.Set;\n\nimport dev.rikka.tools.refine.RefineAs;\n\n/** @noinspection NullableProblems*/\n@RefineAs(ArrayMap.class)\npublic class ArrayMapStub<K, V> implements Map<K, V> {\n    @Override\n    public int size() {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    @Override\n    public boolean isEmpty() {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    @Override\n    public boolean containsKey(Object key) {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    @Override\n    public boolean containsValue(Object value) {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    @Override\n    public V get(Object key) {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    @Override\n    public V put(K key, V value) {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    @Override\n    public V remove(Object key) {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    @Override\n    public void putAll(Map<? extends K, ? extends V> m) {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    @Override\n    public void clear() {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    @Override\n    public Set<K> keySet() {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    @Override\n    public Collection<V> values() {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    @Override\n    public Set<Entry<K, V>> entrySet() {\n        throw new RuntimeException(\"STUB\");\n    }\n}\n"
  },
  {
    "path": "api-stub/src/main/java/com/android/server/am/ProcessRecord.java",
    "content": "package com.android.server.am;\n\npublic class ProcessRecord {\n}\n"
  },
  {
    "path": "api-stub/src/main/java/sun/misc/Unsafe.java",
    "content": "package sun.misc;\n\nimport java.lang.reflect.Field;\n\npublic class Unsafe {\n    public static Unsafe getUnsafe() {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    public long objectFieldOffset(Field field) {\n        throw new RuntimeException(\"STUB\");\n    }\n\n    public native int getInt(Object obj, long offset);\n\n    public native void putInt(Object obj, long offset, int value);\n}\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build"
  },
  {
    "path": "app/build.gradle.kts",
    "content": "import dev.rikka.tools.materialthemebuilder.MaterialThemeBuilderExtension\nimport org.bouncycastle.util.encoders.Base64\nimport java.util.Properties\n\nplugins {\n    alias(libs.plugins.agp.app)\n    alias(libs.plugins.kotlin.android)\n    alias(libs.plugins.ksp)\n    alias(libs.plugins.material.color)\n    alias(libs.plugins.flexi.locale)\n    alias(libs.plugins.hiddenapi.refine)\n    id(\"kotlin-parcelize\")\n    id(\"kotlin-kapt\")\n}\n\nval androidMinSdkVersion: Int by rootProject.extra\nval androidTargetSdkVersion: Int by rootProject.extra\nval androidCompileSdkVersion: Int by rootProject.extra\n\nval androidSourceCompatibility: JavaVersion by rootProject.extra\nval androidTargetCompatibility: JavaVersion by rootProject.extra\nval androidKotlinJvmTarget: String by rootProject.extra\n\nval versionNamePrefix = \"3.0.0\"\n\nfun String.execute(): String {\n    return Runtime.getRuntime()\n        .exec(this.split(\"\\\\s+\".toRegex()).toTypedArray())\n        .apply { waitFor() }\n        .inputStream.bufferedReader().readText().trim()\n}\n\nfun getVersionCode(): Int {\n    return \"git rev-list --count HEAD\".execute().toInt()\n}\n\nfun getVersionName(): String {\n    val hash = \"git rev-parse --short HEAD\".execute()\n    val count = \"git rev-list --count HEAD\".execute()\n\n    return \"$versionNamePrefix.r$count.$hash\"\n}\n\nfun getCommitHash(): String {\n    return \"git rev-parse HEAD\".execute()\n}\n\nfun decodeBase64(data: String): String {\n    return Base64.decode(data).decodeToString().trim()\n}\n\nfun Properties.require(key: String): String {\n    val value = this[key] as? String\n    return value ?: throw NullPointerException(\"property missing: $key\")\n}\n\nandroid {\n    namespace = \"xyz.mufanc.applock\"\n    compileSdk = androidCompileSdkVersion\n\n    signingConfigs {\n        create(\"release\") {\n            val props = Properties().apply {\n                load(rootProject.file(\"local.properties\").inputStream())\n            }\n\n            storeFile = file(props.require(\"keystore.store.file\"))\n            storePassword = decodeBase64(props.require(\"keystore.store.password\"))\n            keyAlias = props.require(\"keystore.key.alias\")\n            keyPassword = decodeBase64(props.require(\"keystore.key.password\"))\n        }\n    }\n\n    defaultConfig {\n        applicationId = \"xyz.mufanc.applock\"\n        minSdk = androidMinSdkVersion\n        targetSdk = androidTargetSdkVersion\n        versionCode = getVersionCode()\n        versionName = getVersionName()\n        buildConfigField(\"String\", \"COMMIT_HASH\", \"\\\"${getCommitHash()}\\\"\")\n    }\n\n    buildTypes {\n        release {\n            isMinifyEnabled = true\n            proguardFiles(\"proguard-rules.pro\")\n            signingConfig = signingConfigs.getByName(\"release\")\n        }\n    }\n\n    compileOptions {\n        sourceCompatibility = androidSourceCompatibility\n        targetCompatibility = androidTargetCompatibility\n    }\n\n    kotlinOptions {\n        jvmTarget = androidKotlinJvmTarget\n    }\n\n    buildFeatures {\n        aidl = true\n        buildConfig = true\n        viewBinding = true\n        dataBinding = true\n    }\n}\n\nafterEvaluate {\n    android.applicationVariants.forEach { variant ->\n        variant.assembleProvider.get().doLast {\n            for (output in variant.outputs) {\n                val outputFile = output.outputFile\n\n                if (outputFile.relativeTo(projectDir).startsWith(\"build/intermediates\")) {\n                    continue\n                }\n\n                val targetName = \"AppLock-v${variant.versionName}-${variant.name}.apk\"\n                val targetFile = File(outputFile.parentFile, targetName)\n\n                outputFile.renameTo(targetFile)\n            }\n        }\n    }\n}\n\nmaterialThemeBuilder {\n    packageName = android.namespace\n\n    fun applyThemeConfigs(theme: MaterialThemeBuilderExtension.Theme) = theme.run {\n        lightThemeFormat = \"Theme.AppLock.Light.%s\"\n//        lightThemeParent = \"Theme.Material3.Light.NoActionBar\"\n        darkThemeFormat = \"Theme.AppLock.Dark.%s\"\n//        darkThemeParent = \"Theme.Material3.Dark.NoActionBar\"\n    }\n\n    themes {\n        for ((name, color) in listOf(\n            \"Anemo\" to \"#75C3A9\",\n            \"Cryo\" to \"#A0D7E4\",\n            \"Dendro\" to \"#A6C938\",\n            \"Electro\" to \"#B08FC2\",\n            \"Geo\" to \"#FAB72E\",\n            \"Hydro\" to \"#4BC3F1\",\n            \"Pyro\" to \"#EF7A35\"\n        )) {\n            create(\"NatureElement.$name\") {\n                primaryColor = color\n                applyThemeConfigs(this)\n            }\n        }\n\n        create(\"NatureElement.Dynamic\") {\n            isDynamicColors = true\n            applyThemeConfigs(this)\n        }\n    }\n}\n\ndependencies {\n    // Api Stub\n    compileOnly(project(\":api-stub\"))\n\n    // Xposed\n    compileOnly(libs.xposed.api)\n    implementation(libs.xposed.service)\n\n    // AutoX\n    ksp(libs.autox.ksp)\n    implementation(libs.autox.annotation)\n\n    // Reflect\n    implementation(kotlin(\"reflect\"))\n    implementation(libs.joor)\n\n    // Glide\n    kapt(libs.glide.compiler)\n    implementation(libs.glide)\n\n    // App\n    implementation(libs.core.ktx)\n    implementation(libs.appcompat)\n    implementation(libs.material)\n    implementation(libs.constraintlayout)\n    implementation(libs.lifecycle.livedata.ktx)\n    implementation(libs.lifecycle.viewmodel.ktx)\n    implementation(libs.navigation.fragment.ktx)\n    implementation(libs.navigation.ui.ktx)\n    implementation(libs.androidx.preference)\n    implementation(libs.androidx.preference.ktx)\n}\n"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile\n\n-keepattributes Signature\n-keep class kotlin.coroutines.Continuation\n\n-keep class xyz.mufanc.applock.ui.base.* { *; }\n-keep class ** extends xyz.mufanc.applock.ui.base.* { *; }\n\n-keepclassmembers class ** extends androidx.viewbinding.ViewBinding {\n    public static ** inflate(...);\n}\n\n-keepclassmembers class ** extends androidx.databinding.ViewDataBinding {\n    public static ** inflate(...);\n}\n\n-keep class kotlin.reflect.jvm.internal.** { *; }\n-keep @io.github.libxposed.api.annotations.* class ** { *; }\n\n-keep class xyz.mufanc.applock.core.process.guard.* { *; }\n-keep class xyz.mufanc.applock.core.scope.provider.* { *; }\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\">\n\n    <uses-permission\n        android:name=\"android.permission.QUERY_ALL_PACKAGES\"\n        tools:ignore=\"QueryAllPackagesPermission\" />\n\n    <application\n        android:name=\".App\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:roundIcon=\"@mipmap/ic_launcher_round\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/Theme.AppLock\"\n        tools:targetApi=\"31\">\n\n        <activity\n            android:name=\".ui.MainActivity\"\n            android:exported=\"true\">\n\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n                <category android:name=\"de.robv.android.xposed.category.MODULE_SETTINGS\" />\n            </intent-filter>\n\n        </activity>\n\n        <activity-alias android:name=\".Launcher\"\n            android:exported=\"true\"\n            android:targetActivity=\".ui.MainActivity\">\n\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n\n        </activity-alias>\n\n    </application>\n</manifest>\n"
  },
  {
    "path": "app/src/main/aidl/xyz/mufanc/applock/IAppLockService.aidl",
    "content": "package xyz.mufanc.applock;\n\ninterface IAppLockService {\n    Bundle handshake() = 16777114;\n    List<String> getAvailableProviders() = 1;\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/App.kt",
    "content": "package xyz.mufanc.applock\n\nimport android.app.Application\nimport android.content.SharedPreferences\nimport androidx.preference.PreferenceManager\nimport io.github.libxposed.service.XposedService\nimport io.github.libxposed.service.XposedServiceHelper\nimport io.github.libxposed.service.XposedServiceHelper.OnServiceListener\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport xyz.mufanc.applock.core.util.Log\nimport xyz.mufanc.applock.util.FrameworkInfo\nimport xyz.mufanc.applock.util.I18n\nimport xyz.mufanc.applock.util.RemotePrefs\n\nclass App : Application() {\n\n    companion object {\n        private const val TAG = \"App\"\n\n        val frameworkInfo = MutableStateFlow<FrameworkInfo?>(null)\n\n        lateinit var instance: Application\n        lateinit var prefs: SharedPreferences\n    }\n\n    override fun onCreate() {\n        super.onCreate()\n\n        Log.i(TAG, \"onCreate called\")\n\n        I18n.init(applicationContext)\n\n        XposedServiceHelper.registerListener(\n            object : OnServiceListener {\n                override fun onServiceBind(service: XposedService) {\n                    frameworkInfo.value = FrameworkInfo(service)\n                    RemotePrefs.init(service)\n                    Log.i(TAG, \"onServiceBind: $service\")\n                }\n\n                override fun onServiceDied(service: XposedService) {\n                    frameworkInfo.value = null\n                    Log.i(TAG, \"onServiceDied: $service\")\n                }\n            }\n        )\n\n        instance = this\n        prefs = PreferenceManager.getDefaultSharedPreferences(this)\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/bean/AppInfo.kt",
    "content": "package xyz.mufanc.applock.bean\n\nimport android.content.pm.ApplicationInfo\nimport xyz.mufanc.applock.App\n\nclass AppInfo(info: ApplicationInfo) : ApplicationInfo(info) {\n\n    val label by lazy { pm.getApplicationLabel(this).toString() }\n\n    companion object {\n        private val pm = App.instance.packageManager\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/AppLockService.kt",
    "content": "package xyz.mufanc.applock.core\n\nimport android.annotation.SuppressLint\nimport android.os.Bundle\nimport android.os.IBinder\nimport android.os.ServiceManager\nimport io.github.libxposed.api.XposedInterface\nimport io.github.libxposed.api.XposedInterface.BeforeHookCallback\nimport io.github.libxposed.api.annotations.BeforeInvocation\nimport io.github.libxposed.api.annotations.XposedHooker\nimport xyz.mufanc.applock.BuildConfig\nimport xyz.mufanc.applock.IAppLockService\nimport xyz.mufanc.applock.core.scope.ScopeManager\nimport xyz.mufanc.applock.core.util.GraftClassLoader\nimport xyz.mufanc.applock.core.util.Log\nimport java.lang.reflect.Method\n\nobject AppLockService : IAppLockService.Stub() {\n\n    private const val TAG = \"AppLockService\"\n\n    private val client by lazy {\n        asInterface(ServiceManager.getService(\"applock\"))\n    }\n\n    override fun handshake(): Bundle {\n        return Bundle()\n    }\n\n    override fun getAvailableProviders(): List<String> {\n        return ScopeManager.getAvailableProviders()\n    }\n\n    @SuppressLint(\"PrivateApi\")\n    fun init(ixp: XposedInterface) {\n        ixp.hook(\n            GraftClassLoader.loadClass(\"android.app.IApplicationThread\\$Stub\\$Proxy\")\n                .declaredMethods\n                .find { it.name == \"bindApplication\" }!!,\n            BindApplicationHook::class.java\n        )\n    }\n\n    fun client(): IAppLockService? {\n        return client\n    }\n\n    @XposedHooker\n    class BindApplicationHook : XposedInterface.Hooker {\n        companion object {\n\n            private var index = -1\n\n            @BeforeInvocation\n            @JvmStatic\n            @Suppress(\"Unused\", \"Unchecked_Cast\")\n            fun handle(callback: BeforeHookCallback): BindApplicationHook? {\n                if (index == -1) {\n                    val method = callback.member as Method\n                    index = method.parameterTypes.indexOf(Map::class.java)\n                }\n\n                val pkg = callback.args[0]\n                if (pkg == BuildConfig.APPLICATION_ID) {\n                    val serviceCache = callback.args[index] as MutableMap<String, IBinder>\n                    serviceCache[\"applock\"] = AppLockService\n\n                    Log.i(TAG, \"push applock service to manager!\")\n                }\n\n                return null\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/ClassMagic.kt",
    "content": "package xyz.mufanc.applock.core\n\nimport xyz.mufanc.applock.core.util.ClassUtil\nimport xyz.mufanc.applock.core.util.GraftClassLoader\nimport xyz.mufanc.applock.core.util.Log\n\nobject ClassMagic {\n\n    private const val TAG = \"ProcessRecordUtil\"\n\n    fun init() {\n        ClassUtil.makePublic(GraftClassLoader.loadClass(\"com.android.server.am.ProcessRecord\"))\n        Log.d(TAG, \"make class ProcessRecord public.\")\n\n//        ClassUtil.makeNonFinal(ArrayMap::class.java)\n//        Log.d(\"DeviceIdleProvider\", \"make class ArrayMap non-final\")\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/ModuleMain.kt",
    "content": "package xyz.mufanc.applock.core\n\nimport android.os.Handler\nimport android.os.Looper\nimport androidx.annotation.Keep\nimport io.github.libxposed.api.XposedInterface\nimport io.github.libxposed.api.XposedModule\nimport io.github.libxposed.api.XposedModuleInterface\nimport io.github.libxposed.api.XposedModuleInterface.ModuleLoadedParam\nimport xyz.mufanc.applock.core.process.KillProcessMonitor\nimport xyz.mufanc.applock.core.process.guard.ProcessGuard\nimport xyz.mufanc.applock.core.scope.ScopeManager\nimport xyz.mufanc.applock.core.util.GraftClassLoader\nimport xyz.mufanc.applock.core.util.Log\nimport xyz.mufanc.applock.util.Configs\nimport xyz.mufanc.autox.annotation.XposedEntry\nimport kotlin.concurrent.thread\n\n@Keep\n@XposedEntry([\"system\"])\n@Suppress(\"Unused\")\nclass ModuleMain(\n    private val ixp: XposedInterface,\n    private val mlp: ModuleLoadedParam\n) : XposedModule(ixp, mlp) {\n\n    companion object {\n        private const val TAG: String = \"ModuleMain\"\n    }\n\n    override fun onSystemServerLoaded(param: XposedModuleInterface.SystemServerLoadedParam) {\n        if (Configs.isDebug) {\n            Log.initXposed(ixp)\n        }\n\n        Log.i(TAG, \"module loaded in ${mlp.processName}.\")\n        Log.d(TAG, \"${param.classLoader}\")\n\n        GraftClassLoader.init(param.classLoader)\n        ClassMagic.init()\n\n        Log.d(TAG, \"waiting for system...\")\n\n        runOnSystemReady {\n            AppLockService.init(ixp)\n            ScopeManager.init(ixp)\n            ProcessGuard.install(ixp)\n\n            if (Configs.isDebug) {\n                KillProcessMonitor.init(ixp)\n            }\n        }\n    }\n\n    private fun runOnSystemReady(block: () -> Unit) {\n        thread {\n            try {\n                while (Looper.getMainLooper() == null) {\n                    Thread.sleep(1000)\n                }\n\n                Handler(Looper.getMainLooper()).post {\n                    block()\n                }\n            } catch (err: Throwable) {\n                Log.e(TAG, \"\", err)\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/process/KillProcessMonitor.kt",
    "content": "package xyz.mufanc.applock.core.process\n\nimport com.android.server.am.ProcessRecord\nimport io.github.libxposed.api.XposedInterface\nimport io.github.libxposed.api.annotations.BeforeInvocation\nimport io.github.libxposed.api.annotations.XposedHooker\nimport xyz.mufanc.applock.core.process.model.KillInfo\nimport xyz.mufanc.applock.core.process.model.KillInfoFactory\nimport xyz.mufanc.applock.core.util.ApiAdapter\nimport xyz.mufanc.applock.core.util.Log\nimport xyz.mufanc.applock.util.Configs\nimport java.lang.reflect.Method\n\n@XposedHooker\nobject KillProcessMonitor : ApiAdapter<Unit, Method>(), XposedInterface.Hooker {\n\n    private const val TAG = \"KillProcessMonitor\"\n\n    fun init(ixp: XposedInterface) {\n        ixp.hook(adapt(Unit), KillProcessMonitor::class.java)\n    }\n\n    private fun formatLog(info: KillInfo, backtrace: Sequence<StackTraceElement>): String {\n        val header = \"-\".repeat(20) + \" KillProcess \" + \"-\".repeat(20)\n\n        return StringBuilder()\n            .appendLine()\n            .appendLine(header)\n            .appendLine(info)\n            .appendLine(\"Backtrace:\")\n            .appendLine(backtrace.joinToString(\"\\n\") { \"  -> ${it.className}.${it.methodName}()\" })\n            .appendLine(\"-\".repeat(header.length))\n            .toString()\n    }\n\n    @BeforeInvocation\n    @JvmStatic\n    @Suppress(\"Unused\")\n    fun before(callback: XposedInterface.BeforeHookCallback): KillProcessMonitor? {\n        if (Configs.isMonitorLogEnabled) {\n            val info = KillInfoFactory.create(callback)\n            val backtrace = Thread.currentThread().stackTrace.asSequence().drop(2)\n\n            Log.d(TAG, formatLog(info, backtrace))\n        }\n\n        return null\n    }\n\n    override fun doAndroidP(from: Unit): Method {\n        return ProcessRecord::class.java.getDeclaredMethod(\n            \"kill\",\n            String::class.java, Boolean::class.java\n        )\n    }\n\n    override fun doAndroidQ(from: Unit): Method {\n        TODO(\"Not yet implemented\")\n    }\n\n    override fun doAndroidR(from: Unit): Method {\n        TODO(\"Not yet implemented\")\n    }\n\n    override fun doAndroidS(from: Unit): Method {\n        return ProcessRecord::class.java.getDeclaredMethod(\n            \"killLocked\",\n            String::class.java, Int::class.java, Int::class.java, Boolean::class.java\n        )\n    }\n\n    override fun doAndroidT(from: Unit): Method {\n        return ProcessRecord::class.java.getDeclaredMethod(\n            \"killLocked\",\n            String::class.java, String::class.java, Int::class.java, Int::class.java, Boolean::class.java\n        )\n    }\n\n    override fun doAndroidU(from: Unit): Method {\n        return ProcessRecord::class.java.getDeclaredMethod(\n            \"killLocked\",\n            String::class.java, String::class.java, Int::class.java, Int::class.java, Boolean::class.java, Boolean::class.java\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/process/guard/HookProcessCleanerBase.kt",
    "content": "package xyz.mufanc.applock.core.process.guard\n\nimport android.annotation.SuppressLint\nimport io.github.libxposed.api.XposedInterface\nimport xyz.mufanc.applock.core.process.model.ProcessInfo\nimport xyz.mufanc.applock.core.process.model.ProcessInfoFactory\nimport xyz.mufanc.applock.core.util.GraftClassLoader\nimport java.lang.reflect.Method\n\n@Suppress(\"Unused\")\ndata object HookProcessCleanerBase : ProcessGuard.Adapter() {\n\n    override val priority: Int = 0\n\n    @SuppressLint(\"PrivateApi\")\n    override fun getMethodInner(): Method {\n        return GraftClassLoader.loadClass(\"com.android.server.am.ProcessCleanerBase\")\n            .declaredMethods\n            .filter { it.name == \"killOnce\" && it.parameterTypes[0].simpleName == \"ProcessRecord\" }\n            .minByOrNull { it.parameterCount }!!\n    }\n\n    override fun getProcessInfoInner(callback: XposedInterface.BeforeHookCallback): ProcessInfo? {\n        return ProcessInfoFactory.create(callback.args[0]).takeIf { it.isValid }\n    }\n\n    override fun skipForKillInner(callback: XposedInterface.BeforeHookCallback) {\n        callback.returnAndSkip(null)\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/process/guard/HookProcessManagerService.kt",
    "content": "package xyz.mufanc.applock.core.process.guard\n\nimport android.annotation.SuppressLint\nimport io.github.libxposed.api.XposedInterface\nimport xyz.mufanc.applock.core.process.model.ProcessInfo\nimport xyz.mufanc.applock.core.process.model.ProcessInfoFactory\nimport xyz.mufanc.applock.core.util.GraftClassLoader\nimport java.lang.reflect.Method\n\n@Suppress(\"Unused\")\ndata object HookProcessManagerService : ProcessGuard.Adapter() {\n\n    override val priority: Int = 0\n\n    @SuppressLint(\"PrivateApi\")\n    override fun getMethodInner(): Method {\n        return GraftClassLoader.loadClass(\"com.android.server.am.ProcessManagerService\")\n            .declaredMethods\n            .filter { it.name == \"killOnce\" && it.parameterTypes[0].simpleName == \"ProcessRecord\" }\n            .maxByOrNull { it.parameterCount }!!\n    }\n\n    override fun getProcessInfoInner(callback: XposedInterface.BeforeHookCallback): ProcessInfo? {\n        return ProcessInfoFactory.create(callback.args[0]).takeIf { it.isValid }\n    }\n\n    override fun skipForKillInner(callback: XposedInterface.BeforeHookCallback) {\n        callback.returnAndSkip(null)\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/process/guard/ProcessGuard.kt",
    "content": "package xyz.mufanc.applock.core.process.guard\n\nimport io.github.libxposed.api.XposedInterface\nimport io.github.libxposed.api.annotations.BeforeInvocation\nimport io.github.libxposed.api.annotations.XposedHooker\nimport xyz.mufanc.applock.core.process.model.ProcessInfo\nimport xyz.mufanc.applock.core.scope.ScopeManager\nimport xyz.mufanc.applock.core.util.Log\nimport xyz.mufanc.applock.core.util.signature\nimport java.lang.reflect.Method\n\n@XposedHooker\nobject ProcessGuard : XposedInterface.Hooker {\n\n    private const val TAG = \"ProcessGuard\"\n\n    private var hookTarget: Method? = null\n    private lateinit var guardImpl: Adapter\n\n    fun install(ixp: XposedInterface) {\n        val implements = Adapter::class.sealedSubclasses.sortedBy { it.objectInstance!!.priority }\n\n        Log.d(TAG, \"process guard implements: ${implements.joinToString(\", \") { \"${it.simpleName}\" }}\")\n\n        for (klass in implements) {\n            val impl = klass.objectInstance\n            val target = impl?.getMethod()\n\n            if (target != null) {\n                hookTarget = target\n                guardImpl = impl\n                break\n            }\n        }\n\n        if (hookTarget != null) {\n            ixp.hook(hookTarget!!, ProcessGuard::class.java)\n            Log.i(TAG, \"use impl: ${guardImpl.javaClass.simpleName}\")\n            Log.i(TAG, \"hook target: ${hookTarget!!.signature()}\")\n        } else {\n            Log.e(TAG, \"failed to find compatible adapter!\")\n        }\n    }\n\n    @BeforeInvocation\n    @JvmStatic\n    @Suppress(\"Unused\", \"SameReturnValue\")\n    fun before(callback: XposedInterface.BeforeHookCallback): ProcessGuard? {\n        val pinfo = guardImpl.getProcessInfo(callback)\n        val pkg = pinfo?.packageList?.getOrNull(0)\n\n        if (pkg == null) {\n            Log.d(TAG, \"failed to get package name, skip\")\n            return null\n        }\n\n        if (ScopeManager.query(pkg)) {\n            guardImpl.skipForKill(callback)\n            Log.d(TAG, \"protected process: ${pinfo.name}\")\n        }\n\n        return null\n    }\n\n    sealed class Adapter {\n\n        abstract val priority: Int  // the smaller the number, the higher the priority\n\n        protected abstract fun getMethodInner(): Method\n        protected abstract fun getProcessInfoInner(callback: XposedInterface.BeforeHookCallback): ProcessInfo?\n        protected abstract fun skipForKillInner(callback: XposedInterface.BeforeHookCallback)\n\n        fun getMethod(): Method? {\n            return try {\n                getMethodInner()\n            } catch (err: Throwable) {\n                Log.d(TAG, \"failed to load target for ${javaClass.simpleName}, try next rule\")\n                null\n            }\n        }\n\n        fun getProcessInfo(callback: XposedInterface.BeforeHookCallback): ProcessInfo? {\n            return getProcessInfoInner(callback)?.takeIf { it.isValid }\n        }\n\n        fun skipForKill(callback: XposedInterface.BeforeHookCallback) {\n            skipForKillInner(callback)\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/process/model/KillInfo.kt",
    "content": "package xyz.mufanc.applock.core.process.model\n\nimport android.os.Parcelable\nimport androidx.annotation.Keep\nimport kotlinx.parcelize.Parcelize\n\n@Parcelize\n@Keep\ndata class KillInfo(\n    val reason: String?,\n    val description: String?,\n    val reasonCode: Int,\n    val subReason: Int,\n    val processInfo: ProcessInfo?,\n    val isValid: Boolean = true\n) : Parcelable {\n\n    companion object {\n        val INVALID = KillInfo(\"\", \"\", 0, 0, ProcessInfo.INVALID, false)\n    }\n\n    override fun toString(): String {\n        val indent = \" \".repeat(4)\n        val builder = StringBuilder()\n\n        builder.append(javaClass.simpleName).append(\"(\\n\")\n\n        if (isValid) {\n            builder\n                .append(indent).append(\"reason=\").append(reason).append(\"\\n\")\n                .append(indent).append(\"reasonCode=\").append(reasonCode).append(\"\\n\")\n                .append(indent).append(\"subReason=\").append(subReason).append(\"\\n\")\n                .append(indent)\n                .append(\"processInfo=\")\n                .append(processInfo.toString().prependIndent(indent).trim())\n                .append(\"\\n\")\n        } else {\n            builder.append(indent).append(\"[ failed to dump kill info ]\\n\")\n        }\n\n        builder.append(\")\")\n\n        return builder.toString()\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/process/model/KillInfoFactory.kt",
    "content": "package xyz.mufanc.applock.core.process.model\n\nimport io.github.libxposed.api.XposedInterface\nimport xyz.mufanc.applock.core.util.ApiAdapter\n\nobject KillInfoFactory : ApiAdapter<XposedInterface.BeforeHookCallback, KillInfo>() {\n\n    fun create(callback: XposedInterface.BeforeHookCallback): KillInfo {\n        return try {\n            adapt(callback)\n        } catch (err: Throwable) {\n            KillInfo.INVALID\n        }\n    }\n\n    override fun doAndroidP(from: XposedInterface.BeforeHookCallback): KillInfo {\n        return KillInfo(\n            reason = from.args[0] as String?,\n            description = null,\n            reasonCode = -1,\n            subReason = -1,\n            processInfo = ProcessInfoFactory.create(from.thisObject!!)\n        )\n    }\n\n    override fun doAndroidQ(from: XposedInterface.BeforeHookCallback): KillInfo {\n        TODO(\"Not yet implemented\")\n    }\n\n    override fun doAndroidR(from: XposedInterface.BeforeHookCallback): KillInfo {\n        TODO(\"Not yet implemented\")\n    }\n\n    override fun doAndroidS(from: XposedInterface.BeforeHookCallback): KillInfo {\n        return KillInfo(\n            reason = from.args[0] as String?,\n            description = null,\n            reasonCode = from.args[1] as Int,\n            subReason = from.args[2] as Int,\n            processInfo = ProcessInfoFactory.create(from.thisObject!!)\n        )\n    }\n\n    override fun doAndroidT(from: XposedInterface.BeforeHookCallback): KillInfo {\n        return KillInfo(\n            reason = from.args[0] as String?,\n            description = from.args[1] as String?,\n            reasonCode = from.args[2] as Int,\n            subReason = from.args[3] as Int,\n            processInfo = ProcessInfoFactory.create(from.thisObject!!)\n        )\n    }\n\n    override fun doAndroidU(from: XposedInterface.BeforeHookCallback): KillInfo {\n        return KillInfo(\n            reason = from.args[0] as String?,\n            description = from.args[1] as String?,\n            reasonCode = from.args[2] as Int,\n            subReason = from.args[3] as Int,\n            processInfo = ProcessInfoFactory.create(from.thisObject!!)\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/process/model/ProcessInfo.kt",
    "content": "package xyz.mufanc.applock.core.process.model\n\nimport android.app.ActivityManager\nimport android.os.Parcelable\nimport androidx.annotation.Keep\nimport kotlinx.parcelize.Parcelize\nimport java.lang.reflect.Modifier\n\n@Parcelize\n@Keep\ndata class ProcessInfo(\n    val killedByAm: Boolean,\n    val pid: Int,\n    val uid: Int,\n    val gids: List<Int>?,\n    val isolated: Boolean,\n    val name: String?,\n    val packageList: List<String>?,\n    val state: Int,  // ActivityManager.PROCESS_STATE_*\n    val isValid: Boolean = true\n) : Parcelable {\n\n    companion object {\n        val processStateNames by lazy {\n            ActivityManager::class.java\n                .declaredFields\n                .mapNotNull { field ->\n                    if (field.modifiers and Modifier.STATIC == 0) return@mapNotNull null\n                    if (!field.name.startsWith(\"PROCESS_STATE_\")) return@mapNotNull null\n                    return@mapNotNull Pair(field.get(null), field.name)\n                }\n                .toMap()\n        }\n\n        val INVALID = ProcessInfo(false, 0, 0, emptyList(), false, \"\", emptyList(), 0, false)\n    }\n\n    override fun toString(): String {\n        val indent = \" \".repeat(4)\n        val builder = StringBuilder()\n\n        builder.append(javaClass.simpleName).append(\"(\\n\")\n\n        if (isValid) {\n            builder\n                .append(indent).append(\"killedByAm=\").append(killedByAm).append(\"\\n\")\n                .append(indent).append(\"pid=\").append(pid).append(\"\\n\")\n                .append(indent).append(\"uid=\").append(uid).append(\"\\n\")\n                .append(indent).append(\"gids=\").append(gids).append(\"\\n\")\n                .append(indent).append(\"isolated=\").append(isolated).append(\"\\n\")\n                .append(indent).append(\"name=\").append(name).append(\"\\n\")\n                .append(indent).append(\"pkgList=\").append(packageList).append(\"\\n\")\n                .append(indent).append(\"state=\").append(processStateNames[state]).append(\"\\n\")\n        } else {\n            builder.append(indent).append(\"[ failed to dump process info ]\\n\")\n        }\n\n        builder.append(\")\")\n\n        return builder.toString()\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/process/model/ProcessInfoFactory.kt",
    "content": "package xyz.mufanc.applock.core.process.model\n\nimport android.util.ArrayMap\nimport xyz.mufanc.applock.core.util.ApiAdapter\nimport xyz.mufanc.applock.core.util.Ref\n\nobject ProcessInfoFactory : ApiAdapter<Any, ProcessInfo>() {\n    \n    fun create(record: Any): ProcessInfo {\n        return try {\n            adapt(record)\n        } catch (err: Throwable) {\n            ProcessInfo.INVALID\n        }\n    }\n\n    override fun doAndroidP(from: Any): ProcessInfo {\n        val ref = Ref(from)\n        return ProcessInfo(\n            killedByAm = ref[\"killedByAm\"].obtain()!!,\n            pid = ref[\"pid\"].obtain()!!,\n            uid = ref[\"uid\"].obtain()!!,\n            gids = (ref[\"gids\"].obtain<IntArray>())?.toList(),\n            isolated = ref[\"isolated\"].obtain()!!,\n            name = ref[\"processName\"].obtain(),\n            packageList = (ref[\"pkgList\"].obtain<ArrayMap<String, *>>())?.keys?.toList(),\n            state = ref[\"curProcState\"].obtain()!!\n        )\n    }\n\n    override fun doAndroidQ(from: Any): ProcessInfo {\n        TODO(\"Not yet implemented\")\n    }\n\n    override fun doAndroidR(from: Any): ProcessInfo {\n        TODO(\"Not yet implemented\")\n    }\n\n    override fun doAndroidS(from: Any): ProcessInfo {\n        val ref = Ref(from)\n        return ProcessInfo(\n            killedByAm = ref[\"mKilledByAm\"].obtain()!!,\n            pid = ref[\"mPid\"].obtain()!!,\n            uid = ref[\"uid\"].obtain()!!,\n            gids = (ref[\"mGids\"].obtain<IntArray>())?.toList(),\n            isolated = ref[\"isolated\"].obtain()!!,\n            name = ref[\"processName\"].obtain(),\n            packageList = (ref[\"mPkgList\"][\"mPkgList\"].obtain<ArrayMap<String, *>>())?.keys?.toList(),\n            state = ref[\"mState\"][\"mCurProcState\"].obtain()!!\n        )\n    }\n\n    override fun doAndroidT(from: Any): ProcessInfo {\n        val ref = Ref(from)\n        return ProcessInfo(\n            killedByAm = ref[\"mKilledByAm\"].obtain()!!,\n            pid = ref[\"mPid\"].obtain()!!,\n            uid = ref[\"uid\"].obtain()!!,\n            gids = (ref[\"mGids\"].obtain<IntArray>())?.toList(),\n            isolated = ref[\"isolated\"].obtain()!!,\n            name = ref[\"processName\"].obtain(),\n            packageList = (ref[\"mPkgList\"][\"mPkgList\"].obtain<ArrayMap<String, *>>())?.keys?.toList(),\n            state = ref[\"mState\"][\"mCurProcState\"].obtain()!!\n        )\n    }\n\n    override fun doAndroidU(from: Any): ProcessInfo {\n        val ref = Ref(from)\n        return ProcessInfo(\n            killedByAm = ref[\"mKilledByAm\"].obtain()!!,\n            pid = ref[\"mPid\"].obtain()!!,\n            uid = ref[\"uid\"].obtain()!!,\n            gids = (ref[\"mGids\"].obtain<IntArray>())?.toList(),\n            isolated = ref[\"isolated\"].obtain()!!,\n            name = ref[\"processName\"].obtain(),\n            packageList = (ref[\"mPkgList\"][\"mPkgList\"].obtain<ArrayMap<String, *>>())?.keys?.toList(),\n            state = ref[\"mState\"][\"mCurProcState\"].obtain()!!\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/scope/ScopeManager.kt",
    "content": "package xyz.mufanc.applock.core.scope\n\nimport io.github.libxposed.api.XposedInterface\nimport xyz.mufanc.applock.core.scope.provider.ScopeProvider\nimport xyz.mufanc.applock.core.util.Log\n\nobject ScopeManager {\n\n    private const val TAG = \"ScopeManager\"\n\n    private val scope = mutableSetOf<String>()\n    private val availableProviders = mutableListOf<String>()\n\n    @Synchronized\n    private fun updateScope(old: Set<String>, new: Set<String>, from: String? = null) {\n        scope.removeAll(old)\n        scope.addAll(new)\n\n        val source = from ?: \"unknown source\"\n        Log.i(TAG, \"update scope from $source: { ${scope.joinToString(\", \")} }\")\n    }\n\n    fun init(ixp: XposedInterface) {\n        val providers = ScopeProvider::class.sealedSubclasses\n        val disabledProviders = ixp.getRemotePreferences(\"applock_disabled_providers\").all.keys\n\n        Log.d(TAG, \"scope providers: ${providers.joinToString(\", \") { \"${it.simpleName}\" }}\")\n\n        providers.forEach { klass ->\n            val provider = klass.objectInstance!!\n\n            try {\n                if (!provider.isAvailable()) return@forEach\n            } catch (err: Throwable) {\n                Log.e(TAG, \"failed to check availability for scope provider: ${klass.simpleName}\", err)\n                return@forEach\n            }\n\n            availableProviders.add(klass.simpleName!!)\n            if (klass.simpleName in disabledProviders) return@forEach\n\n            try {\n                provider.registerOnScopeChangedListener(\n                    object : ScopeProvider.OnScopeChangedListener {\n                        override fun onScopeChanged(old: Set<String>, new: Set<String>) {\n                            updateScope(old, new, klass.simpleName)\n                        }\n                    }\n                )\n\n                Log.i(TAG, \"initializing scope provider: ${klass.simpleName}\")\n                provider.init(ixp)\n            } catch (err: Throwable) {\n                Log.e(TAG, \"failed to initialize scope provider: ${klass.simpleName}\", err)\n            }\n        }\n    }\n\n    fun query(pkg: String): Boolean {\n        return scope.contains(pkg)\n    }\n\n    fun getAvailableProviders(): List<String> {\n        return availableProviders\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/scope/provider/DebugScopeProvider.kt",
    "content": "package xyz.mufanc.applock.core.scope.provider\n\nimport android.os.FileObserver\nimport io.github.libxposed.api.XposedInterface\nimport xyz.mufanc.applock.core.util.Log\nimport java.io.File\n\n@Suppress(\"Unused\")\ndata object DebugScopeProvider : ScopeProvider() {\n\n    private const val TAG = \"ScopeObserver\"\n\n    private const val TARGET_DIR = \"/data/system\"\n    private const val SCOPE_FILE = \"applock-debug.list\"\n    private const val EVENTS = FileObserver.CREATE or FileObserver.CLOSE_WRITE or FileObserver.MOVED_TO\n\n    private val PACKAGE_NAME_PATTERN = \"^[A-Za-z\\\\d_.]+\\$\".toRegex()\n\n    private val scopeFile = File(TARGET_DIR, SCOPE_FILE)\n\n    private lateinit var observer: FileObserver\n\n    private fun refresh() {\n        if (!scopeFile.exists()) return\n\n        try {\n            val scope = scopeFile.readText()\n                .trim()\n                .split(\"\\\\s+\".toRegex())\n                .filter { name ->\n                    name.matches(PACKAGE_NAME_PATTERN)\n                }\n                .toSet()\n\n            emit(scope)\n        } catch (err: Throwable) {\n            Log.e(TAG, \"failed to read scope: $err\")\n        }\n    }\n\n    override fun isAvailable(): Boolean = true\n\n    @Suppress(\"Deprecation\")\n    override fun init(ixp: XposedInterface) {\n        observer = object : FileObserver(TARGET_DIR, EVENTS) {\n            override fun onEvent(event: Int, path: String?) {\n                val file = File(TARGET_DIR, path ?: return)\n\n                if (file.name != SCOPE_FILE) return\n\n                refresh()\n            }\n        }\n\n        observer.startWatching()\n        refresh()\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/scope/provider/MediaSessionProvider.kt",
    "content": "package xyz.mufanc.applock.core.scope.provider\n\nimport android.media.session.MediaSessionManager\nimport android.media.session.MediaSessionManager.OnActiveSessionsChangedListener\nimport io.github.libxposed.api.XposedInterface\nimport xyz.mufanc.applock.core.util.ContextHelper\nimport xyz.mufanc.applock.core.util.Log\n\n@Suppress(\"Unused\")\ndata object MediaSessionProvider : ScopeProvider() {\n\n    private const val TAG = \"MediaSessionProvider\"\n\n    private val manager: MediaSessionManager by lazy {\n        ContextHelper.systemContext()\n            .getSystemService(MediaSessionManager::class.java)\n    }\n\n    private var hash: Int = 0\n    private val listener = OnActiveSessionsChangedListener { controllers ->\n        if (controllers != null) {\n            val packages = controllers.map { it.packageName }.sorted()\n            val hashCode = packages.joinToString(\"|\").hashCode()\n\n            if (hash != hashCode) {\n                emit(packages.toSet())\n            }\n\n            hash = hashCode\n        }\n    }\n\n    override fun isAvailable(): Boolean = true\n\n    override fun init(ixp: XposedInterface) {\n        manager.addOnActiveSessionsChangedListener(listener, null)\n        Log.d(TAG, \"initialized\")\n    }\n}"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/scope/provider/PowerManagerProvider.kt",
    "content": "package xyz.mufanc.applock.core.scope.provider\n\nimport android.content.BroadcastReceiver\nimport android.content.Context\nimport android.content.Intent\nimport android.content.IntentFilter\nimport android.os.PowerManager\nimport android.os.ServiceManager\nimport android.util.ArrayMapStub\nimport io.github.libxposed.api.XposedInterface\nimport org.joor.Reflect\nimport xyz.mufanc.applock.core.util.ContextHelper\nimport xyz.mufanc.applock.core.util.Log\n\n@Suppress(\"Unused\")\ndata object PowerManagerProvider : ScopeProvider() {\n\n    private const val TAG = \"DeviceIdleProvider\"\n\n    private var whitelistApps: ArrayMapStub<String, *>? = null\n\n    private val whitelistChangedReceiver = object : BroadcastReceiver() {\n        override fun onReceive(context: Context?, intent: Intent?) {\n            val apps = whitelistApps ?: return\n            emit(apps.keys)\n        }\n    }\n    private val whitelistChangedFilter = IntentFilter(\n        Reflect.onClass(PowerManager::class.java).get<String>(\"ACTION_POWER_SAVE_WHITELIST_CHANGED\")\n    )\n\n    override fun isAvailable(): Boolean {\n        val binderService = ServiceManager.getService(\"deviceidle\") ?: return false\n\n        val serviceClass = binderService.javaClass\n        val controllerField = serviceClass.declaredFields.find { field ->\n            field.name.matches(\"this\\\\$\\\\d+\".toRegex())\n        } ?: return false\n\n        val controller = controllerField.apply { isAccessible = true }.get(binderService)\n        whitelistApps = Reflect.on(controller).get(\"mPowerSaveWhitelistUserApps\")\n\n        return whitelistApps != null\n    }\n\n    override fun init(ixp: XposedInterface) {\n//        Reflect.on(apps).set(\"shadow\\$_klass_\", ArrayMapProxy::class.java)\n        ContextHelper.systemContext()\n            .registerReceiver(whitelistChangedReceiver, whitelistChangedFilter)\n\n        Log.d(TAG, \"register receiver\")\n    }\n\n//    class ArrayMapProxy<K, V> : ArrayMapStub<K, V>() {\n//        override fun put(key: K, value: V): V? {\n//            Log.d(TAG, \"+ $key\")\n//            return super.put(key, value)\n//        }\n//\n//        override fun remove(key: K): V? {\n//            Log.d(TAG, \"- $key\")\n//            return super.remove(key)\n//        }\n//    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/scope/provider/PreferenceScopeProvider.kt",
    "content": "package xyz.mufanc.applock.core.scope.provider\n\nimport android.content.SharedPreferences\nimport io.github.libxposed.api.XposedInterface\n\n@Suppress(\"Unused\")\ndata object PreferenceScopeProvider : ScopeProvider() {\n\n    private const val TAG = \"PreferenceScopeProvider\"\n\n    private lateinit var prefs: SharedPreferences\n\n    override fun isAvailable(): Boolean = true\n\n    override fun init(ixp: XposedInterface) {\n        prefs = ixp.getRemotePreferences(\"applock_scope\")\n        prefs.registerOnSharedPreferenceChangeListener { prefs, _ ->\n            emit(prefs.all.keys)\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/scope/provider/ScopeProvider.kt",
    "content": "package xyz.mufanc.applock.core.scope.provider\n\nimport io.github.libxposed.api.XposedInterface\nimport xyz.mufanc.applock.core.scope.provider.ScopeProvider.ScopeType\n\n@Suppress(\"TopLevel_TypeAliases_Only\")\nsealed class ScopeProvider {\n\n    typealias ScopeType = Set<String>\n\n    interface OnScopeChangedListener {\n        fun onScopeChanged(old: ScopeType, new: ScopeType)\n    }\n\n    private var oldScope: ScopeType = emptySet()\n    private var registeredListener: OnScopeChangedListener? = null\n\n    abstract fun isAvailable(): Boolean\n\n    abstract fun init(ixp: XposedInterface)\n\n    fun registerOnScopeChangedListener(listener: OnScopeChangedListener) {\n        registeredListener = listener\n    }\n\n    protected fun emit(newScope: Set<String>) {\n        registeredListener?.onScopeChanged(oldScope, newScope)\n        oldScope = newScope\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/util/ApiAdapter.kt",
    "content": "package xyz.mufanc.applock.core.util\n\nimport android.os.Build\n\nabstract class ApiAdapter<T, R> {\n\n    object UnsupportedAndroidVersionException : UnsupportedOperationException(\"unsupported android version\")\n\n    fun adapt(from: T): R {\n        return when (Build.VERSION.SDK_INT) {\n            Build.VERSION_CODES.P -> doAndroidP(from)\n            Build.VERSION_CODES.Q -> doAndroidQ(from)\n            Build.VERSION_CODES.R -> doAndroidR(from)\n            Build.VERSION_CODES.S, Build.VERSION_CODES.S_V2 -> doAndroidS(from)\n            Build.VERSION_CODES.TIRAMISU -> doAndroidT(from)\n            Build.VERSION_CODES.UPSIDE_DOWN_CAKE -> doAndroidU(from)\n            else -> throw UnsupportedAndroidVersionException\n        }\n    }\n\n    protected abstract fun doAndroidP(from: T): R\n\n    protected abstract fun doAndroidQ(from: T): R\n\n    protected abstract fun doAndroidR(from: T): R\n\n    protected abstract fun doAndroidS(from: T): R\n\n    protected abstract fun doAndroidT(from: T): R\n\n    protected abstract fun doAndroidU(from: T): R\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/util/ClassUtil.kt",
    "content": "package xyz.mufanc.applock.core.util\n\nimport org.joor.Reflect\nimport sun.misc.Unsafe\nimport java.lang.reflect.Modifier\n\nobject ClassUtil {\n\n    private val theUnsafe: Unsafe = Reflect.onClass(Unsafe::class.java).call(\"getUnsafe\").get()\n\n    private val sAccessFlags = Class::class.java.getDeclaredField(\"accessFlags\")\n\n    fun makePublic(klass: Class<*>) {\n        val offset = theUnsafe.objectFieldOffset(sAccessFlags)\n        val flags = theUnsafe.getInt(klass, offset)\n        theUnsafe.putInt(klass, offset, flags or Modifier.PUBLIC)\n    }\n\n    fun makeNonFinal(klass: Class<*>) {\n        val offset = theUnsafe.objectFieldOffset(sAccessFlags)\n        val flags = theUnsafe.getInt(klass, offset)\n        theUnsafe.putInt(klass, offset, flags and Modifier.FINAL.inv())\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/util/ContextHelper.kt",
    "content": "package xyz.mufanc.applock.core.util\n\nimport android.app.ActivityThread\nimport android.content.Context\n\nobject ContextHelper {\n    fun systemContext(): Context {\n        return ActivityThread.currentActivityThread().systemContext\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/util/GraftClassLoader.kt",
    "content": "package xyz.mufanc.applock.core.util\n\nimport org.joor.Reflect\n\nobject GraftClassLoader : ClassLoader() {\n\n    private const val TAG = \"GraftClassLoader\"\n\n    private lateinit var cl: ClassLoader\n\n    fun init(cl: ClassLoader) {\n        this.cl = cl\n\n        val mine = javaClass.classLoader!!\n        val parent: ClassLoader = Reflect.on(mine).get(\"parent\")\n\n        Reflect.on(mine).set(\"parent\", this)\n        Reflect.on(this).set(\"parent\", parent)\n    }\n\n    override fun findClass(name: String?): Class<*> {\n        Log.d(TAG, \"loading class: $name\")\n        return cl.loadClass(name)\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/util/Log.kt",
    "content": "package xyz.mufanc.applock.core.util\n\nimport android.util.Log\nimport io.github.libxposed.api.XposedInterface\nimport xyz.mufanc.applock.util.Configs\n\nobject Log {\n\n    private const val TAG = \"AppLock\"\n\n    private var bridge: XposedInterface? = null\n\n    fun initXposed(ixp: XposedInterface) {\n        bridge = ixp\n    }\n\n    fun d(tag: String, msg: String) {\n        if (!Configs.isDebug) return\n\n        val message = \"[$tag] $msg\"\n\n        Log.d(TAG, message)\n        bridge?.log(message)\n    }\n\n    fun i(tag: String, msg: String) {\n        val message = \"[$tag] $msg\"\n\n        Log.i(TAG, message)\n        bridge?.log(message)\n    }\n\n    fun e(tag: String, msg: String, tr: Throwable? = null) {\n        val message = \"[$tag] $msg\"\n\n        if (tr != null) {\n            Log.e(TAG, message, tr)\n            bridge?.log(message, tr)\n        } else {\n            Log.e(TAG, message)\n            bridge?.log(message)\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/util/MethodUtil.kt",
    "content": "package xyz.mufanc.applock.core.util\n\nimport java.lang.reflect.Method\n\nfun Class<*>.signature(): String {\n    return java.lang.reflect.Array.newInstance(this, 0)\n        .javaClass.name.replace('.', '/').substring(1)\n}\n\nfun Method.signature(): String {\n    val builder = StringBuilder()\n\n    builder.append(declaringClass.name).append(\"#\").append(name).append(\"(\")\n\n    this.parameterTypes.forEach { cl ->\n        builder.append(cl.signature())\n    }\n\n    builder.append(\")\")\n    builder.append(if (returnType == Void.TYPE) \"V\" else returnType.signature())\n\n    return builder.toString()\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/core/util/Ref.kt",
    "content": "package xyz.mufanc.applock.core.util\n\nimport org.joor.Reflect\n\nclass Ref(private val inner: Any?) {\n\n    private val reflect = Reflect.on(inner)\n\n    @Suppress(\"UNCHECKED_CAST\")\n    fun <T> obtain() = inner as T?\n\n    operator fun get(key: String): Ref {\n        return Ref(if (inner == null) null else reflect.get<Any>(key))\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/MainActivity.kt",
    "content": "package xyz.mufanc.applock.ui\n\nimport android.os.Bundle\nimport androidx.activity.viewModels\nimport androidx.navigation.fragment.NavHostFragment\nimport androidx.navigation.ui.AppBarConfiguration\nimport androidx.navigation.ui.setupActionBarWithNavController\nimport androidx.navigation.ui.setupWithNavController\nimport xyz.mufanc.applock.R\nimport xyz.mufanc.applock.core.util.Log\nimport xyz.mufanc.applock.databinding.ActivityMainBinding\nimport xyz.mufanc.applock.ui.base.BaseActivity\nimport xyz.mufanc.applock.ui.util.ThemeManager\n\nclass MainActivity : BaseActivity<ActivityMainBinding>() {\n\n    companion object {\n        private const val TAG = \"MainActivity\"\n    }\n\n    private val model: MainViewModel by viewModels()\n\n    override fun onCreate(cache: Bundle?) {\n        setTheme(ThemeManager.getColorThemeStyle())\n\n        super.onCreate(cache)\n\n        binding.run {\n            setContentView(root)\n            setSupportActionBar(toolbar)\n\n            val navController = supportFragmentManager\n                .findFragmentById(R.id.nav_activity_main)\n                .let { (it as NavHostFragment).navController }\n\n            val appBarConfiguration = AppBarConfiguration(\n                setOf(\n                    R.id.nav_home,\n                    R.id.nav_apps,\n                    R.id.nav_settings\n                )\n            )\n\n            setupActionBarWithNavController(navController, appBarConfiguration)\n            navView.setupWithNavController(navController)\n        }\n\n        model.frameworkInfo.observe(this@MainActivity) { info ->\n            val visible = info != null\n            binding.navView.menu.findItem(R.id.nav_apps).isVisible = visible\n            Log.i(TAG, \"apps fragment: visible=$visible\")\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/MainViewModel.kt",
    "content": "package xyz.mufanc.applock.ui\n\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.asLiveData\nimport xyz.mufanc.applock.App\n\nclass MainViewModel : ViewModel() {\n    val frameworkInfo = App.frameworkInfo.asLiveData()\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/base/BaseActivity.kt",
    "content": "package xyz.mufanc.applock.ui.base\n\nimport android.os.Bundle\nimport android.view.LayoutInflater\nimport androidx.appcompat.app.AppCompatActivity\nimport androidx.viewbinding.ViewBinding\nimport java.lang.reflect.ParameterizedType\n\nabstract class BaseActivity<B : ViewBinding> : AppCompatActivity() {\n\n    private val geneticTypes = (javaClass.genericSuperclass as ParameterizedType).actualTypeArguments\n\n    protected lateinit var binding: B\n\n    @Suppress(\"UNCHECKED_CAST\")\n    override fun onCreate(cache: Bundle?) {\n        super.onCreate(cache)\n        binding = (geneticTypes[0] as Class<*>)\n            .getDeclaredMethod(\"inflate\", LayoutInflater::class.java)\n            .invoke(null, layoutInflater) as B\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/base/BaseFragment.kt",
    "content": "package xyz.mufanc.applock.ui.base\n\nimport android.os.Bundle\nimport android.view.LayoutInflater\nimport android.view.View\nimport android.view.ViewGroup\nimport androidx.annotation.CallSuper\nimport androidx.fragment.app.Fragment\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.ViewModelProvider\nimport androidx.viewbinding.ViewBinding\nimport java.lang.reflect.ParameterizedType\n\nabstract class BaseFragment<B : ViewBinding, M: ViewModel> : Fragment() {\n\n    private val geneticTypes = (javaClass.genericSuperclass as ParameterizedType).actualTypeArguments\n\n    private var _binding: B? = null\n    protected val binding get() = _binding!!\n\n    private var _model: M? = null\n    protected val model get() = _model!!\n\n    @Suppress(\"UNCHECKED_CAST\")\n    override fun onCreate(cache: Bundle?) {\n        super.onCreate(cache)\n        _model = ViewModelProvider(this)[geneticTypes[1] as Class<M>]\n    }\n\n    @CallSuper\n    @Suppress(\"UNCHECKED_CAST\")\n    override fun onCreateView(\n        inflater: LayoutInflater,\n        container: ViewGroup?,\n        cache: Bundle?\n    ): View? {\n\n        _binding = (geneticTypes[0] as Class<*>)\n            .getDeclaredMethod(\"inflate\", LayoutInflater::class.java, ViewGroup::class.java, Boolean::class.java)\n            .invoke(null, layoutInflater, container, false) as B\n\n        return binding.root\n    }\n\n    @CallSuper\n    override fun onDestroyView() {\n        super.onDestroyView()\n        _binding = null\n    }\n\n    override fun onDestroy() {\n        super.onDestroy()\n        _model = null\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/fragment/apps/AppListAdapter.kt",
    "content": "package xyz.mufanc.applock.ui.fragment.apps\n\nimport android.util.ArraySet\nimport android.view.LayoutInflater\nimport android.view.ViewGroup\nimport android.widget.Filter\nimport android.widget.Filterable\nimport androidx.lifecycle.LifecycleOwner\nimport androidx.recyclerview.widget.DiffUtil\nimport androidx.recyclerview.widget.RecyclerView\nimport xyz.mufanc.applock.bean.AppInfo\nimport xyz.mufanc.applock.core.util.Log\nimport xyz.mufanc.applock.databinding.ItemFragmentAppsAppListBinding\n\nclass AppListAdapter(\n    private val props: AppsViewModel,\n    lifecycleOwner: LifecycleOwner\n) : RecyclerView.Adapter<AppListAdapter.ViewHolder>(), Filterable {\n\n    companion object {\n        private const val TAG = \"AppListAdapter\"\n    }\n\n    class ViewHolder(binding: ItemFragmentAppsAppListBinding) : RecyclerView.ViewHolder(binding.root) {\n        val card = binding.appInfo\n        val checkbox = card.checkbox\n    }\n\n    private val prefs get() = props.scope.value!!\n    private val scope = ArraySet<String>()\n\n    private val apps = ArrayList<AppInfo>()\n    private val filteredApps = ArrayList<AppInfo>()\n\n    private val filter = object : Filter() {\n        override fun performFiltering(constraint: CharSequence?): FilterResults {\n            val query = constraint.toString().lowercase()\n\n            return FilterResults().apply {\n                values = apps\n                    .filter { info ->\n                        info.label.lowercase().contains(query) ||\n                            info.packageName.lowercase().contains(query)\n                    }\n                    .sortedWith(\n                        compareBy<AppInfo> { if (scope.contains(it.packageName)) 0 else 1 }\n                            .then(compareBy { it.label })\n                    )\n            }\n        }\n\n        @Suppress(\"Unchecked_Cast\")\n        override fun publishResults(query: CharSequence?, results: FilterResults) {\n            val filterResult = results.values as List<AppInfo>\n            val diff = DiffUtil.calculateDiff(object : DiffUtil.Callback() {\n                override fun getOldListSize() = filteredApps.size\n                override fun getNewListSize() = filterResult.size\n                override fun areContentsTheSame(i: Int, j: Int) = areItemsTheSame(i, j)\n                override fun areItemsTheSame(i: Int, j: Int) =\n                    filteredApps[i].packageName == filterResult[j].packageName\n            })\n\n            filteredApps.replace(filterResult)\n\n            diff.dispatchUpdatesTo(this@AppListAdapter)\n            props.loading.value = false\n        }\n    }\n\n    private fun <T> MutableCollection<T>.replace(new: Collection<T>) {\n        clear()\n        addAll(new)\n    }\n\n    override fun getItemCount(): Int = filteredApps.size\n\n    override fun onCreateViewHolder(parent: ViewGroup, type: Int): ViewHolder {\n        return ViewHolder(\n            ItemFragmentAppsAppListBinding.inflate(LayoutInflater.from(parent.context), parent, false)\n        )\n    }\n\n    override fun onBindViewHolder(holder: ViewHolder, position: Int) {\n        val info = filteredApps[position]\n\n        holder.card.info = info\n        holder.checkbox.isChecked = scope.contains(info.packageName)\n        holder.checkbox.setOnCheckedChangeListener { _, checked ->\n            val current = filteredApps[holder.adapterPosition]\n            val pkg = current.packageName\n            val editor = prefs.edit()\n\n            if (checked) {\n                scope.add(pkg)\n                editor.putBoolean(pkg, true)\n            } else {\n                scope.remove(pkg)\n                editor.remove(pkg)\n            }\n\n            editor.apply()\n\n            Log.d(TAG, \"update for $pkg: $checked\")\n        }\n    }\n\n    override fun getFilter(): Filter {\n        return filter\n    }\n\n    init {\n        props.scope.observe(lifecycleOwner) { prefs ->\n            scope.replace(prefs?.all?.keys ?: emptySet())\n        }\n\n        props.apps.observe(lifecycleOwner) { list ->\n            apps.replace(list)\n            filter.filter(props.query.value)\n        }\n\n        props.query.observe(lifecycleOwner) { query ->\n            filter.filter(query)\n        }\n\n        Log.d(TAG, \"initialize\")\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/fragment/apps/AppsFragment.kt",
    "content": "package xyz.mufanc.applock.ui.fragment.apps\n\nimport android.os.Bundle\nimport android.view.LayoutInflater\nimport android.view.Menu\nimport android.view.MenuInflater\nimport android.view.MenuItem\nimport android.view.View\nimport android.view.ViewGroup\nimport android.view.animation.AnimationUtils\nimport android.view.animation.LayoutAnimationController\nimport androidx.appcompat.widget.SearchView\nimport androidx.core.view.MenuProvider\nimport androidx.lifecycle.Lifecycle\nimport androidx.recyclerview.widget.LinearLayoutManager\nimport xyz.mufanc.applock.R\nimport xyz.mufanc.applock.core.util.Log\nimport xyz.mufanc.applock.databinding.FragmentAppsBinding\nimport xyz.mufanc.applock.ui.base.BaseFragment\nimport xyz.mufanc.applock.ui.util.AppsHelper\nimport xyz.mufanc.applock.ui.util.AppsHelper.ResolveMode\n\nclass AppsFragment : BaseFragment<FragmentAppsBinding, AppsViewModel>() {\n\n    companion object {\n        private const val TAG = \"AppsFragment\"\n    }\n\n    override fun onCreateView(\n        inflater: LayoutInflater,\n        container: ViewGroup?,\n        cache: Bundle?\n    ): View? {\n        requireActivity().addMenuProvider(AppsFragmentMenuProvider(), viewLifecycleOwner, Lifecycle.State.RESUMED)\n\n        Log.d(TAG, \"onCreateView\")\n\n        return super.onCreateView(inflater, container, cache).also {\n            model.loading.value = true\n            model.query.value = \"\"\n\n            binding.run {\n                appList.adapter = AppListAdapter(model, viewLifecycleOwner)\n                appList.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)\n\n                val animation = AnimationUtils.loadAnimation(requireContext(), R.anim.fragment_apps_item_enter)\n\n                appList.layoutAnimation = LayoutAnimationController(animation).apply {\n                    order = LayoutAnimationController.ORDER_NORMAL\n                    delay = 0.1f\n                }\n\n                props = model\n                lifecycleOwner = this@AppsFragment\n            }\n        }\n    }\n\n    private inner class AppsFragmentMenuProvider : MenuProvider {\n        override fun onCreateMenu(menu: Menu, inflater: MenuInflater) {\n            inflater.inflate(R.menu.menu_fragment_apps, menu)\n\n            (menu.findItem(R.id.search).actionView as? SearchView)!!.run {\n                setOnQueryTextListener(\n                    object : SearchView.OnQueryTextListener {\n                        override fun onQueryTextChange(query: String?): Boolean {\n                            model.query.value = query\n                            return true\n                        }\n\n                        override fun onQueryTextSubmit(query: String?) = false\n                    }\n                )\n\n                setOnCloseListener {\n                    model.query.value = \"\"\n                    false\n                }\n            }\n        }\n\n        override fun onMenuItemSelected(item: MenuItem): Boolean {\n\n            when (item.itemId) {\n                R.id.filter_mode_launcher -> AppsHelper.setResolveMode(ResolveMode.LAUNCHER)\n                R.id.filter_mode_non_system -> AppsHelper.setResolveMode(ResolveMode.NON_SYSTEM)\n                R.id.filter_mode_all -> AppsHelper.setResolveMode(ResolveMode.ALL)\n            }\n\n            return true\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/fragment/apps/AppsViewModel.kt",
    "content": "package xyz.mufanc.applock.ui.fragment.apps\n\nimport android.content.SharedPreferences\nimport androidx.lifecycle.LiveData\nimport androidx.lifecycle.MutableLiveData\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.asLiveData\nimport xyz.mufanc.applock.bean.AppInfo\nimport xyz.mufanc.applock.ui.util.AppsHelper\nimport xyz.mufanc.applock.util.RemotePrefs\n\nclass AppsViewModel : ViewModel() {\n    val apps: LiveData<List<AppInfo>> = AppsHelper.getAppList().asLiveData()\n    val loading = MutableLiveData(true)\n    val scope: LiveData<SharedPreferences?> = RemotePrefs.scope.asLiveData()\n    val query = MutableLiveData(\"\")\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/fragment/home/HomeFragment.kt",
    "content": "package xyz.mufanc.applock.ui.fragment.home\n\nimport android.os.Bundle\nimport android.view.LayoutInflater\nimport android.view.View\nimport android.view.ViewGroup\nimport xyz.mufanc.applock.databinding.FragmentHomeBinding\nimport xyz.mufanc.applock.ui.base.BaseFragment\n\nclass HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>() {\n    \n    companion object {\n        private const val TAG = \"HomeFragment\"\n    }\n\n    override fun onCreateView(\n        inflater: LayoutInflater,\n        container: ViewGroup?,\n        cache: Bundle?\n    ): View? {\n        return super.onCreateView(inflater, container, cache).also {\n            binding.props = model\n            binding.lifecycleOwner = this\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/fragment/home/HomeViewModel.kt",
    "content": "package xyz.mufanc.applock.ui.fragment.home\n\nimport androidx.lifecycle.LiveData\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.asLiveData\nimport androidx.lifecycle.map\nimport xyz.mufanc.applock.App\nimport xyz.mufanc.applock.BuildConfig\nimport xyz.mufanc.applock.util.I18n\n\nclass HomeViewModel : ViewModel() {\n\n    private val fwInfo = App.frameworkInfo.asLiveData()\n\n    val isModuleLoaded = fwInfo.map { it != null }\n\n    val moduleLoadState: LiveData<String> = fwInfo.map { info ->\n        if (info != null) {\n            I18n.strings.homeStatusModuleLoaded\n        } else {\n            I18n.strings.homeStatusModuleNotLoaded\n        }\n    }\n\n    val frameworkInfo = fwInfo.map { info ->\n        if (info != null) {\n            \"${info.name} API ${info.apiVersion} (${info.version}-${info.versionCode})\"\n        } else {\n            BuildConfig.VERSION_NAME\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/fragment/settings/SettingsFragment.kt",
    "content": "package xyz.mufanc.applock.ui.fragment.settings\n\nimport android.os.Bundle\nimport android.view.LayoutInflater\nimport android.view.View\nimport android.view.ViewGroup\nimport androidx.lifecycle.asLiveData\nimport androidx.preference.Preference\nimport androidx.preference.PreferenceFragmentCompat\nimport androidx.preference.PreferenceGroup\nimport androidx.preference.forEach\nimport xyz.mufanc.applock.R\nimport xyz.mufanc.applock.ui.util.ThemeManager\nimport xyz.mufanc.applock.ui.widgets.LicenseListDialog\nimport xyz.mufanc.applock.ui.widgets.ScopeProviderSelectorDialog\nimport xyz.mufanc.applock.ui.widgets.ThemeColorSelectorDialog\nimport xyz.mufanc.applock.util.RemotePrefs\n\nclass SettingsFragment : PreferenceFragmentCompat() {\n\n    private val disabledProviders = RemotePrefs.disabledProviders.asLiveData()\n\n    override fun onCreateView(\n        inflater: LayoutInflater,\n        container: ViewGroup?,\n        cache: Bundle?\n    ): View {\n        disabledProviders.observe(viewLifecycleOwner) { dps ->\n            val available = dps != null\n            val prefs: Preference? = preferenceScreen.findPreference(\"scope_providers\")\n\n            prefs?.isEnabled = available\n        }\n\n        return super.onCreateView(inflater, container, cache).apply {\n            setDivider(null)\n        }\n    }\n\n    override fun onCreatePreferences(cache: Bundle?, rootKey: String?) {\n        setPreferencesFromResource(R.xml.preferences, rootKey)\n\n        preferenceScreen.forEach { preference ->\n            (preference as? PreferenceGroup)?.forEach {\n                it.layoutResource = R.layout.component_preference_card\n            }\n        }\n    }\n\n    override fun onPreferenceTreeClick(preference: Preference): Boolean {\n        return when (preference.key) {\n            ThemeManager.PREFERENCE_KEY -> {\n                ThemeColorSelectorDialog(requireActivity()).show()\n                true\n            }\n            \"license\" -> {\n                LicenseListDialog(requireActivity()).show()\n                true\n            }\n            \"scope_providers\" -> {\n                ScopeProviderSelectorDialog(requireActivity())?.show()\n                true\n            }\n            else -> super.onPreferenceTreeClick(preference)\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/util/AppsHelper.kt",
    "content": "package xyz.mufanc.applock.ui.util\n\nimport android.content.Intent\nimport android.content.pm.ApplicationInfo\nimport android.content.pm.PackageManager\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.map\nimport xyz.mufanc.applock.App\nimport xyz.mufanc.applock.bean.AppInfo\n\nobject AppsHelper {\n\n    private val pm = App.instance.packageManager\n\n    enum class ResolveMode {\n        LAUNCHER, NON_SYSTEM, ALL\n    }\n\n    private val currentMode = MutableStateFlow(ResolveMode.LAUNCHER)\n\n    private val apps: Flow<List<AppInfo>> = currentMode.map { mode ->\n        when (mode) {\n            ResolveMode.LAUNCHER -> {\n                pm\n                    .queryIntentActivities(\n                        Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_LAUNCHER),\n                        PackageManager.MATCH_ALL or PackageManager.MATCH_DISABLED_COMPONENTS\n                    )\n                    .map { it.activityInfo.applicationInfo }\n            }\n            ResolveMode.NON_SYSTEM -> {\n                pm\n                    .getInstalledApplications(PackageManager.MATCH_DISABLED_COMPONENTS)\n                    .filter { it.flags and ApplicationInfo.FLAG_SYSTEM == 0 }\n            }\n            ResolveMode.ALL -> {\n                pm.getInstalledApplications(PackageManager.MATCH_DISABLED_COMPONENTS)\n            }\n        }\n            .distinctBy { it.packageName }\n            .map { AppInfo(it) }\n    }\n\n    fun setResolveMode(mode: ResolveMode) {\n        currentMode.value = mode\n    }\n\n    fun getAppList(): Flow<List<AppInfo>> = apps\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/util/ColorUtils.kt",
    "content": "// modified from: https://cs.android.com/android/platform/superproject/+/android14-release:packages/apps/ThemePicker/src/com/android/customization/model/color/ColorUtils.kt\n\n/*\n * Copyright (C) 2022 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npackage xyz.mufanc.applock.ui.util\n\nimport android.annotation.SuppressLint\nimport android.content.Context\nimport android.content.pm.PackageManager\nimport android.content.res.Resources\nimport android.os.SystemProperties\nimport android.util.Log\nimport androidx.annotation.ColorInt\n\n/** Utility to wrap Monet's color extraction */\nobject ColorUtils {\n    private const val TAG = \"ColorUtils\"\n    private const val MONET_FLAG = \"flag_monet\"\n    private var sSysuiRes: Resources? = null\n    private var sFlagId = 0\n\n    /** Returns true if color extraction is enabled in systemui. */\n    @SuppressLint(\"DiscouragedApi\")\n    @JvmStatic\n    fun isMonetEnabled(context: Context): Boolean {\n        var monetEnabled = SystemProperties.getBoolean(\"persist.systemui.flag_monet\", false)\n        if (!monetEnabled) {\n            if (sSysuiRes == null) {\n                try {\n                    val pm = context.packageManager\n                    val sysUIInfo =\n                        pm.getApplicationInfo(\n                            \"com.android.systemui\",\n                            PackageManager.GET_META_DATA or PackageManager.MATCH_SYSTEM_ONLY\n                        )\n                    sSysuiRes = pm.getResourcesForApplication(sysUIInfo)\n                } catch (e: PackageManager.NameNotFoundException) {\n                    Log.w(TAG, \"Couldn't read color flag, skipping section\", e)\n                }\n            }\n            if (sFlagId == 0) {\n                sFlagId =\n                    if (sSysuiRes == null) 0\n                    else sSysuiRes!!.getIdentifier(MONET_FLAG, \"bool\", \"com.android.systemui\")\n            }\n            if (sFlagId > 0) {\n                monetEnabled = sSysuiRes!!.getBoolean(sFlagId)\n            }\n        }\n        return monetEnabled\n    }\n\n    @JvmStatic\n    fun toColorString(@ColorInt color: Int): String {\n        return String.format(\"%06X\", 0xFFFFFF and color)\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/util/ThemeManager.kt",
    "content": "package xyz.mufanc.applock.ui.util\n\nimport androidx.annotation.DrawableRes\nimport androidx.annotation.Keep\nimport androidx.annotation.StyleRes\nimport xyz.mufanc.applock.App\nimport xyz.mufanc.applock.R\nimport xyz.mufanc.applock.util.Configs\n\nobject ThemeManager {\n\n    val PREFERENCE_KEY by lazy {\n        App.instance.getString(R.string.misc_theme_color_preference_key)\n    }\n\n    @Keep\n    enum class ThemeColor(@DrawableRes val icon: Int) {\n        PYRO(R.drawable.ic_element_pyro),\n        HYDRO(R.drawable.ic_element_hydro),\n        ANEMO(R.drawable.ic_element_anemo),\n        ELECTRO(R.drawable.ic_element_electro),\n        DENDRO(R.drawable.ic_element_dendro),\n        CRYO(R.drawable.ic_element_cryo),\n        GEO(R.drawable.ic_element_geo),\n        DYNAMIC(R.drawable.ic_element_dynamic)\n    }\n\n    @StyleRes\n    fun getColorThemeStyle(): Int {\n        val default = if (Configs.isMonetEnabled) ThemeColor.DYNAMIC.name else ThemeColor.PYRO.name\n        val value = App.prefs.getString(PREFERENCE_KEY, default)!!\n\n        return when (ThemeColor.valueOf(value)) {\n            ThemeColor.PYRO -> R.style.Theme_AppLock_NatureElement_Pyro\n            ThemeColor.HYDRO -> R.style.Theme_AppLock_NatureElement_Hydro\n            ThemeColor.ANEMO -> R.style.Theme_AppLock_NatureElement_Anemo\n            ThemeColor.ELECTRO -> R.style.Theme_AppLock_NatureElement_Electro\n            ThemeColor.DENDRO -> R.style.Theme_AppLock_NatureElement_Dendro\n            ThemeColor.CRYO -> R.style.Theme_AppLock_NatureElement_Cyro\n            ThemeColor.GEO -> R.style.Theme_AppLock_NatureElement_Geo\n            ThemeColor.DYNAMIC -> R.style.Theme_AppLock_NatureElement_Dynamic\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/widgets/AppInfoCard.kt",
    "content": "package xyz.mufanc.applock.ui.widgets\n\nimport android.content.Context\nimport android.util.AttributeSet\nimport android.view.LayoutInflater\nimport com.bumptech.glide.Glide\nimport com.google.android.material.card.MaterialCardView\nimport xyz.mufanc.applock.R\nimport xyz.mufanc.applock.bean.AppInfo\nimport xyz.mufanc.applock.databinding.ComponentAppInfoCardBinding\n\nclass AppInfoCard(\n    context: Context,\n    attrs: AttributeSet? = null\n) : MaterialCardView(context, attrs) {\n\n    private val binding = ComponentAppInfoCardBinding.inflate(LayoutInflater.from(context), this, true)\n\n    var info: AppInfo? = null\n        set(value) {\n            field = value\n            if (value == null) return\n\n            binding.run {\n                Glide.with(context)\n                    .load(value)\n                    .placeholder(R.drawable.ic_app_icon_placeholder)\n                    .into(appIcon)\n\n                appName.text = value.label\n                packageName.text = value.packageName\n            }\n        }\n\n    val checkbox: UserSensitiveCheckBox get() = binding.checkbox\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/widgets/LicenseListDialog.kt",
    "content": "package xyz.mufanc.applock.ui.widgets\n\nimport android.app.Activity\nimport android.content.DialogInterface\nimport android.content.Intent\nimport android.view.LayoutInflater\nimport android.view.ViewGroup\nimport android.widget.TextView\nimport androidx.appcompat.app.AlertDialog\nimport androidx.recyclerview.widget.LinearLayoutManager\nimport androidx.recyclerview.widget.RecyclerView\nimport com.google.android.material.dialog.MaterialAlertDialogBuilder\nimport xyz.mufanc.applock.R\nimport xyz.mufanc.applock.databinding.DialogLicenseListBinding\nimport xyz.mufanc.applock.databinding.ItemDialogLicenseListBinding\nimport xyz.mufanc.applock.util.I18n\n\nclass LicenseListDialog private constructor(\n    private val dialog: AlertDialog\n) : DialogInterface by dialog {\n\n    companion object {\n        operator fun invoke(activity: Activity): LicenseListDialog {\n            val dialog = MaterialAlertDialogBuilder(activity)\n                .setTitle(I18n.strings.dialogLicenseListTitle)\n                .setPositiveButton(I18n.strings.dialogLicenseListDismiss) { _, _ -> }\n                .create()\n                .apply {\n                    val binding = DialogLicenseListBinding.inflate(layoutInflater)\n                    setView(binding.root)\n\n                    binding.licenseList.run {\n                        layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)\n                        adapter = Adapter(resources.getStringArray(R.array.license_list).toList())\n                    }\n                }\n\n            return LicenseListDialog(dialog)\n        }\n    }\n\n    fun show() {\n        dialog.show()\n    }\n\n    private class Adapter(\n        private val licenseList: List<String>\n    ) : RecyclerView.Adapter<Adapter.ViewHolder>() {\n\n        class ViewHolder(binding: ItemDialogLicenseListBinding) : RecyclerView.ViewHolder(binding.root) {\n            val projectName: TextView = binding.projectName\n            val licenseName: TextView = binding.licenseName\n        }\n\n        override fun getItemCount(): Int = licenseList.size\n\n        override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {\n            return ViewHolder(\n                ItemDialogLicenseListBinding.inflate(LayoutInflater.from(parent.context), parent, false)\n            )\n        }\n\n        override fun onBindViewHolder(holder: ViewHolder, position: Int) {\n            val (projectName, licenseName, projectUrl) = licenseList[position]\n                .split(\"|\")\n                .map { str -> str.trim() }\n\n            holder.projectName.text = projectName\n            holder.licenseName.text = licenseName\n\n            holder.itemView.setOnClickListener { view ->\n                view.context.startActivity(Intent.parseUri(projectUrl, 0))\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/widgets/MultiChoiceItem.kt",
    "content": "package xyz.mufanc.applock.ui.widgets\n\nimport android.content.Context\nimport android.util.AttributeSet\nimport android.view.LayoutInflater\nimport android.view.MotionEvent\nimport android.widget.CompoundButton\nimport android.widget.FrameLayout\nimport xyz.mufanc.applock.databinding.ComponentMuitiChoiceItemBinding\n\nclass MultiChoiceItem(\n    context:Context,\n    attrs:AttributeSet? = null\n) : FrameLayout(context, attrs) {\n\n    private val binding = ComponentMuitiChoiceItemBinding.inflate(LayoutInflater.from(context), this, true)\n    private var onCheckedChangeListener: CompoundButton.OnCheckedChangeListener? = null\n\n    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {\n        if (!isEnabled) return false\n        return super.dispatchTouchEvent(ev)\n    }\n\n    init {\n        binding.root.setOnClickListener {\n            if (isEnabled) {\n                isChecked = !isChecked\n                onCheckedChangeListener?.onCheckedChanged(binding.checkbox, isChecked)\n            }\n        }\n    }\n\n    var isChecked: Boolean\n        get() = binding.checkbox.isChecked\n        set(value) {\n            binding.checkbox.isChecked = value\n        }\n\n    fun setOnCheckedChangeListener(listener: CompoundButton.OnCheckedChangeListener) {\n        onCheckedChangeListener = listener\n        binding.checkbox.setOnCheckedChangeListener(listener)\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/widgets/ScopeProviderSelectorDialog.kt",
    "content": "package xyz.mufanc.applock.ui.widgets\n\nimport android.app.Activity\nimport android.app.Application.ActivityLifecycleCallbacks\nimport android.content.Context\nimport android.content.DialogInterface\nimport android.os.Build\nimport android.os.Bundle\nimport android.view.View\nimport android.view.ViewGroup\nimport android.widget.ArrayAdapter\nimport android.widget.Toast\nimport androidx.appcompat.app.AlertDialog\nimport androidx.lifecycle.asLiveData\nimport com.google.android.material.dialog.MaterialAlertDialogBuilder\nimport xyz.mufanc.applock.R\nimport xyz.mufanc.applock.core.AppLockService\nimport xyz.mufanc.applock.core.util.Log\nimport xyz.mufanc.applock.util.I18n\nimport xyz.mufanc.applock.util.RemotePrefs\n\nclass ScopeProviderSelectorDialog private constructor(\n    private val dialog: AlertDialog\n) : DialogInterface by dialog {\n\n    companion object {\n        private const val TAG = \"ScopeProviderSelectorDialog\"\n\n        private val disabledProviders = RemotePrefs.disabledProviders.asLiveData()\n\n        operator fun invoke(activity: Activity): ScopeProviderSelectorDialog? {\n            val service = AppLockService.client() ?: return null\n            val availableProviders = service.availableProviders.toSet()\n\n            if (availableProviders.isEmpty()) {\n                Toast.makeText(activity, R.string.message_no_available_provider, Toast.LENGTH_SHORT).show()\n                return null\n            }\n\n            Log.d(TAG, \"available providers: $availableProviders\")\n            Log.d(TAG, \"disabled providers: ${disabledProviders.value?.all?.keys}\")\n\n            val registeredProviders = activity.resources.getStringArray(R.array.scope_providers)\n            val registeredProviderNames = activity.resources.getStringArray(R.array.scope_provider_names)\n\n            val visibleProviders = registeredProviders\n                .filter { id -> availableProviders.contains(id) }\n\n            val visibleProviderNames = registeredProviders.indices\n                .filter { i -> registeredProviders[i] in availableProviders }\n                .map { i -> registeredProviderNames[i] }\n\n            val dialog = MaterialAlertDialogBuilder(activity)\n                .setTitle(I18n.strings.settingsItemScopeProviders)\n                .setPositiveButton(R.string.dialog_scope_provider_btn_dismiss) { _, _ ->\n                    Log.d(TAG, \"dismiss\")\n                }\n                .setAdapter(ProviderAdapter(activity, visibleProviders, visibleProviderNames)) { _, index ->\n                    Log.d(TAG, \"$index\")\n                }\n                .create()\n\n\n            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {\n                activity.registerActivityLifecycleCallbacks(object : ActivityLifecycleCallbacks {\n                    override fun onActivityDestroyed(activity: Activity) {\n                        dialog.dismiss()\n                    }\n\n                    override fun onActivityCreated(activity: Activity, bundle: Bundle?) = Unit\n                    override fun onActivityStarted(activity: Activity) = Unit\n                    override fun onActivityResumed(activity: Activity) = Unit\n                    override fun onActivityPaused(activity: Activity) = Unit\n                    override fun onActivityStopped(activity: Activity) = Unit\n                    override fun onActivitySaveInstanceState(activity: Activity, bundle: Bundle) = Unit\n                })\n            } else {\n                // Todo:\n            }\n\n            return ScopeProviderSelectorDialog(dialog)\n        }\n    }\n\n    fun show() {\n        dialog.show()\n    }\n\n    private class ProviderAdapter(\n        context: Context,\n        private val providerIds: List<String>,\n        private val providerNames: List<String>,\n    ) : ArrayAdapter<String>(\n        context,\n        R.layout.item_dialog_scope_provider_list,\n        R.id.scope_provider_name,\n        providerNames\n    ) {\n        override fun getView(position: Int, view: View?, parent: ViewGroup): View {\n            val itemView = super.getView(position, view, parent)\n\n            if (position == 0) {\n                itemView.isEnabled = false\n            }\n\n            val prefs = disabledProviders.value ?: return itemView\n\n            itemView as MultiChoiceItem\n            itemView.isChecked = !prefs.contains(providerIds[position])\n            itemView.setOnCheckedChangeListener { _, checked ->\n                val editor = prefs.edit()\n\n                if (checked) {\n                    editor.remove(providerIds[position])\n                } else {\n                    editor.putBoolean(providerIds[position], true)\n                }\n\n                editor.apply()\n\n                Log.i(TAG, \"update disabled providers: ${providerIds[position]}=${if (checked) \"enabled\" else \"disabled\"} (${providerNames[position]})\")\n            }\n\n            return itemView\n        }\n    }\n}"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/widgets/StatusCard.kt",
    "content": "package xyz.mufanc.applock.ui.widgets\n\nimport android.content.Context\nimport android.util.AttributeSet\nimport android.view.LayoutInflater\nimport androidx.appcompat.content.res.AppCompatResources\nimport com.google.android.material.card.MaterialCardView\nimport xyz.mufanc.applock.R\nimport xyz.mufanc.applock.databinding.ComponentStatusCardBinding\n\nclass StatusCard(\n    context: Context,\n    attrs: AttributeSet? = null\n) : MaterialCardView(context, attrs) {\n\n    companion object {\n        private const val TAG = \"StatusCard\"\n    }\n\n    private val binding = ComponentStatusCardBinding.inflate(LayoutInflater.from(context), this, true)\n\n    var ok: Boolean = false\n        set(value) {\n            field = value\n            binding.statusIcon.setImageDrawable(\n                AppCompatResources.getDrawable(\n                    context,\n                    if (value) R.drawable.ic_status_card_ok else R.drawable.ic_status_card_error\n                )\n            )\n        }\n\n    var title: CharSequence? = null\n        set(value) {\n            field = value\n            binding.title.text = value\n        }\n\n    var description: CharSequence? = null\n        set(value) {\n            field = value\n            binding.description.text = value\n        }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/widgets/ThemeColorSelectorDialog.kt",
    "content": "package xyz.mufanc.applock.ui.widgets\n\nimport android.app.Activity\nimport android.content.DialogInterface\nimport android.view.LayoutInflater\nimport android.view.ViewGroup\nimport androidx.appcompat.app.AlertDialog\nimport androidx.recyclerview.widget.GridLayoutManager\nimport androidx.recyclerview.widget.RecyclerView\nimport com.google.android.material.dialog.MaterialAlertDialogBuilder\nimport xyz.mufanc.applock.App\nimport xyz.mufanc.applock.databinding.DialogThemeColorSelectorBinding\nimport xyz.mufanc.applock.databinding.ItemDialogThemeColorListBinding\nimport xyz.mufanc.applock.ui.util.ThemeManager\nimport xyz.mufanc.applock.util.Configs\nimport xyz.mufanc.applock.util.I18n\n\nclass ThemeColorSelectorDialog private constructor(\n    private val dialog: AlertDialog\n) : DialogInterface by dialog {\n\n    companion object {\n        operator fun invoke(activity: Activity): ThemeColorSelectorDialog {\n            val dialog = MaterialAlertDialogBuilder(activity)\n                .setTitle(I18n.strings.dialogThemeColorSelectorTitle)\n                .setPositiveButton(I18n.strings.dialogThemeColorSelectorDismiss) { _, _ -> }\n                .create()\n                .apply {\n                    val binding = DialogThemeColorSelectorBinding.inflate(layoutInflater)\n                    setView(binding.root)\n                    binding.themeColors.run {\n                        layoutManager = GridLayoutManager(context, 4, GridLayoutManager.VERTICAL, false)\n                        adapter = Adapter(this@apply, activity)\n                    }\n                }\n\n            return ThemeColorSelectorDialog(dialog)\n        }\n    }\n\n    fun show() {\n        dialog.show()\n    }\n\n    private class Adapter(\n        private val dialog: AlertDialog,\n        private val activity: Activity\n    ) : RecyclerView.Adapter<Adapter.ViewHolder>() {\n\n        class ViewHolder(\n            binding: ItemDialogThemeColorListBinding\n        ) : RecyclerView.ViewHolder(binding.root) {\n            val icon = binding.icon\n        }\n\n        override fun getItemCount(): Int {\n            val count = ThemeManager.ThemeColor.entries.size\n            return count - if (Configs.isMonetEnabled) 0 else 1\n        }\n\n        override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {\n            return ViewHolder(\n                ItemDialogThemeColorListBinding.inflate(LayoutInflater.from(parent.context), parent, false)\n            )\n        }\n\n        override fun onBindViewHolder(holder: ViewHolder, position: Int) {\n            val theme = ThemeManager.ThemeColor.entries[position]\n\n            holder.icon.setImageResource(theme.icon)\n            holder.icon.setOnClickListener {\n\n                App.prefs\n                    .edit()\n                    .apply {\n                        putString(ThemeManager.PREFERENCE_KEY, theme.name)\n                    }\n                    .apply()\n\n                dialog.dismiss()\n                activity.recreate()\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/ui/widgets/UserSensitiveCheckBox.kt",
    "content": "package xyz.mufanc.applock.ui.widgets\n\nimport android.content.Context\nimport android.util.AttributeSet\nimport android.widget.CompoundButton\nimport com.google.android.material.checkbox.MaterialCheckBox\n\nclass UserSensitiveCheckBox(\n    context: Context,\n    attrs: AttributeSet? = null\n) : MaterialCheckBox(context, attrs) {\n\n    var userTriggered = false\n\n    override fun performClick(): Boolean {\n        userTriggered = true\n        val handled = super.performClick()\n        userTriggered = false\n        return handled\n    }\n\n    override fun setOnCheckedChangeListener(listener: OnCheckedChangeListener?) {\n        if (listener == null) {\n            super.setOnCheckedChangeListener(null)\n            return\n        }\n\n        super.setOnCheckedChangeListener(\n            object : OnCheckedChangeListener {\n                override fun onCheckedChanged(buttonView: CompoundButton?, isChecked: Boolean) {\n                    if (!userTriggered) return\n                    listener.onCheckedChanged(buttonView, isChecked)\n                }\n            }\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/util/Configs.kt",
    "content": "package xyz.mufanc.applock.util\n\nimport xyz.mufanc.applock.App\nimport xyz.mufanc.applock.BuildConfig\nimport xyz.mufanc.applock.ui.util.ColorUtils\n\nobject Configs {\n    val isDebug get() = BuildConfig.DEBUG || PropHelper.getBoolean(\"debug.applock\", false)\n\n    val isMonitorLogEnabled get() = PropHelper.getBoolean(\"debug.applock.enable_monitor_log\", false)\n\n    val isMonetEnabled by lazy { ColorUtils.isMonetEnabled(App.instance) }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/util/FrameworkInfo.kt",
    "content": "package xyz.mufanc.applock.util\n\nimport io.github.libxposed.service.XposedService\n\ndata class FrameworkInfo(\n    val name: String,\n    val version: String,\n    val versionCode: Long,\n    val apiVersion: Int\n) {\n    constructor(service: XposedService): this(\n        service.frameworkName,\n        service.frameworkVersion,\n        service.frameworkVersionCode,\n        service.apiVersion\n    )\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/util/I18n.kt",
    "content": "package xyz.mufanc.applock.util\n\nimport android.annotation.SuppressLint\nimport android.content.Context\nimport xyz.mufanc.applock.generated.locale.AppLocale\n\nobject I18n {\n\n    @SuppressLint(\"StaticFieldLeak\")\n    lateinit var strings: AppLocale\n\n    fun init(context: Context) {\n        strings = AppLocale.attach(context)\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/util/IconLoader.kt",
    "content": "package xyz.mufanc.applock.util\n\nimport android.content.pm.ApplicationInfo\nimport android.content.pm.PackageManager\nimport android.graphics.Bitmap\nimport androidx.core.graphics.drawable.toBitmapOrNull\nimport com.bumptech.glide.Priority\nimport com.bumptech.glide.load.DataSource\nimport com.bumptech.glide.load.Options\nimport com.bumptech.glide.load.data.DataFetcher\nimport com.bumptech.glide.load.model.ModelLoader\nimport com.bumptech.glide.load.model.ModelLoaderFactory\nimport com.bumptech.glide.load.model.MultiModelLoaderFactory\nimport com.bumptech.glide.signature.ObjectKey\nimport kotlinx.coroutines.DelicateCoroutinesApi\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.GlobalScope\nimport kotlinx.coroutines.launch\nimport java.io.ByteArrayOutputStream\nimport java.nio.ByteBuffer\n\nclass IconLoader(\n    private val pm: PackageManager\n) : ModelLoader<ApplicationInfo, ByteBuffer> {\n\n    // always handle ApplicationInfo\n    override fun handles(model: ApplicationInfo): Boolean = true\n\n    override fun buildLoadData(\n        model: ApplicationInfo,\n        w: Int,\n        h: Int,\n        options: Options\n    ): ModelLoader.LoadData<ByteBuffer> {\n        return ModelLoader.LoadData(ObjectKey(model.packageName), IconFetcher(pm, model))\n    }\n\n    private class IconFetcher(\n        private val pm: PackageManager,\n        private val info: ApplicationInfo\n    ) : DataFetcher<ByteBuffer> {\n\n        override fun getDataClass() = ByteBuffer::class.java\n\n        override fun getDataSource() = DataSource.LOCAL\n\n        override fun cancel() = Unit\n\n        override fun cleanup() = Unit\n\n        @OptIn(DelicateCoroutinesApi::class)\n        override fun loadData(\n            priority: Priority,\n            callback: DataFetcher.DataCallback<in ByteBuffer>\n        ) {\n            GlobalScope.launch(Dispatchers.IO) {\n                val icon = pm.getApplicationIcon(info.packageName).toBitmapOrNull()\n\n                if (icon != null) {\n                    val baos = ByteArrayOutputStream()\n\n                    icon.compress(Bitmap.CompressFormat.PNG, 90, baos)\n\n                    callback.onDataReady(ByteBuffer.wrap(baos.toByteArray()))\n                } else {\n                    callback.onLoadFailed(NullPointerException(\"The icon of ${info.packageName} is not a bitmap!\"))\n                }\n            }\n        }\n    }\n\n    class Factory(\n        private val pm: PackageManager\n    ) : ModelLoaderFactory<ApplicationInfo, ByteBuffer> {\n\n        override fun teardown() = Unit\n\n        override fun build(multiFactory: MultiModelLoaderFactory): ModelLoader<ApplicationInfo, ByteBuffer> {\n            return IconLoader(pm)\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/util/IconLoaderGlideModule.kt",
    "content": "package xyz.mufanc.applock.util\n\nimport android.content.Context\nimport android.content.pm.ApplicationInfo\nimport com.bumptech.glide.Glide\nimport com.bumptech.glide.Registry\nimport com.bumptech.glide.annotation.GlideModule\nimport com.bumptech.glide.module.AppGlideModule\nimport java.nio.ByteBuffer\n\n@GlideModule\nclass IconLoaderGlideModule : AppGlideModule() {\n    override fun registerComponents(context: Context, glide: Glide, registry: Registry) {\n        registry.prepend(\n            ApplicationInfo::class.java, ByteBuffer::class.java,\n            IconLoader.Factory(context.packageManager)\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/util/PropHelper.kt",
    "content": "package xyz.mufanc.applock.util\n\nimport android.os.SystemProperties\n\nobject PropHelper {\n\n    private const val MAX_AGE = 5000\n\n    private val cache = HashMap<String, Pair<Any?, Long>>()  // key -> (value, last-updated)\n\n    @Suppress(\"UNCHECKED_CAST\")\n    private fun <R> autoCache(key: String, func: () -> R): R {\n        val pair = cache[key]\n        val now = System.currentTimeMillis()\n\n        val value = if (pair != null && now - pair.second < MAX_AGE) {\n            pair.first as R\n        } else {\n            func()\n        }\n\n        cache[key] = Pair(value, now)\n\n        return value\n    }\n\n    fun get(key: String): String? {\n        return autoCache(key) { SystemProperties.get(key) }\n    }\n\n    fun getBoolean(key: String, def: Boolean): Boolean {\n        return autoCache(key) { SystemProperties.getBoolean(key, def) }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/xyz/mufanc/applock/util/RemotePrefs.kt",
    "content": "package xyz.mufanc.applock.util\n\nimport android.content.SharedPreferences\nimport io.github.libxposed.service.XposedService\nimport kotlinx.coroutines.flow.MutableStateFlow\n\nobject RemotePrefs {\n\n    val scope = MutableStateFlow<SharedPreferences?>(null)\n    val disabledProviders = MutableStateFlow<SharedPreferences?>(null)\n\n    fun init(service: XposedService) {\n        scope.value = service.getRemotePreferences(\"applock_scope\")\n        disabledProviders.value = service.getRemotePreferences(\"applock_disabled_providers\")\n    }\n}\n"
  },
  {
    "path": "app/src/main/res/anim/fragment_apps_item_enter.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n    <alpha\n        android:fromAlpha=\"0\"\n        android:toAlpha=\"1\"\n        android:duration=\"100\" />\n\n    <scale\n        android:pivotX=\"50%\"\n        android:pivotY=\"50%\"\n        android:fromXScale=\"0.8\"\n        android:fromYScale=\"0.8\"\n        android:toXScale=\"1\"\n        android:toYScale=\"1\"\n        android:duration=\"100\" />\n\n</set>\n"
  },
  {
    "path": "app/src/main/res/color/settings_icon.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:state_enabled=\"false\" android:color=\"?attr/colorSecondary\" android:alpha=\"0.25\" />\n    <item android:color=\"?attr/colorSecondary\" />\n</selector>"
  },
  {
    "path": "app/src/main/res/drawable/ic_app_icon_placeholder.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" android:height=\"24dp\" android:tint=\"#000000\" android:viewportHeight=\"24\" android:viewportWidth=\"24\" android:width=\"24dp\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M17.33,3.55c-0.94,-0.6 -1.99,-1.04 -3.12,-1.3C13.59,2.11 13,2.59 13,3.23v0c0,0.45 0.3,0.87 0.74,0.97c0.91,0.2 1.77,0.56 2.53,1.05c0.39,0.25 0.89,0.17 1.22,-0.16l0,0C17.94,4.64 17.87,3.89 17.33,3.55zM20.77,11L20.77,11c0.64,0 1.13,-0.59 0.98,-1.21c-0.26,-1.12 -0.7,-2.17 -1.3,-3.12c-0.34,-0.54 -1.1,-0.61 -1.55,-0.16l0,0c-0.32,0.32 -0.4,0.83 -0.16,1.22c0.49,0.77 0.85,1.62 1.05,2.53C19.9,10.7 20.31,11 20.77,11zM18.9,17.49L18.9,17.49c0.45,0.45 1.21,0.38 1.55,-0.15c0.6,-0.94 1.04,-1.99 1.3,-3.11c0.14,-0.62 -0.35,-1.21 -0.98,-1.21h0c-0.45,0 -0.87,0.3 -0.97,0.74c-0.2,0.91 -0.57,1.76 -1.05,2.53C18.5,16.66 18.58,17.17 18.9,17.49zM13,20.77L13,20.77c0,0.64 0.59,1.13 1.21,0.98c1.12,-0.26 2.17,-0.7 3.11,-1.3c0.54,-0.34 0.61,-1.1 0.16,-1.55l0,0c-0.32,-0.32 -0.83,-0.4 -1.21,-0.15c-0.76,0.49 -1.61,0.85 -2.53,1.05C13.3,19.9 13,20.31 13,20.77zM13,12V8c0,-0.55 -0.45,-1 -1,-1h0c-0.55,0 -1,0.45 -1,1v4H9.41c-0.89,0 -1.34,1.08 -0.71,1.71l2.59,2.59c0.39,0.39 1.02,0.39 1.41,0l2.59,-2.59c0.63,-0.63 0.18,-1.71 -0.71,-1.71H13zM11,20.77L11,20.77c0,0.64 -0.59,1.13 -1.21,0.99C5.33,20.75 2,16.77 2,12s3.33,-8.75 7.79,-9.75C10.41,2.11 11,2.59 11,3.23v0c0,0.46 -0.31,0.87 -0.76,0.97C6.67,5 4,8.19 4,12s2.67,7 6.24,7.8C10.69,19.9 11,20.31 11,20.77z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_apps_more.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" android:height=\"24dp\" android:tint=\"#000000\" android:viewportHeight=\"24\" android:viewportWidth=\"24\" android:width=\"24dp\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M6,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM18,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_apps_search.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" android:height=\"24dp\" android:tint=\"#000000\" android:viewportHeight=\"24\" android:viewportWidth=\"24\" android:width=\"24dp\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M15.5,14h-0.79l-0.28,-0.27c1.2,-1.4 1.82,-3.31 1.48,-5.34 -0.47,-2.78 -2.79,-5 -5.59,-5.34 -4.23,-0.52 -7.79,3.04 -7.27,7.27 0.34,2.8 2.56,5.12 5.34,5.59 2.03,0.34 3.94,-0.28 5.34,-1.48l0.27,0.28v0.79l4.25,4.25c0.41,0.41 1.08,0.41 1.49,0 0.41,-0.41 0.41,-1.08 0,-1.49L15.5,14zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_element_anemo.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"513dp\"\n    android:height=\"500dp\"\n    android:viewportWidth=\"513\"\n    android:viewportHeight=\"500\">\n  <path\n      android:pathData=\"M167.31,375.97C175.51,370.68 183.59,372.12 190.81,377.58C196.59,381.94 202.25,381.32 208.4,379.57C243.82,369.46 258.74,335.28 241.9,302.44C229.96,279.17 209.57,265.74 185.71,258.09C168.87,252.68 151.12,249.86 133.61,246.85C114.98,243.65 97.04,238.77 80.99,228.6C48.63,208.13 33.57,178.88 37.69,140.51C40.18,117.34 46.71,95.39 60.15,72.92C61.7,80.35 63.07,85.57 63.87,90.88C69.34,127.18 85.48,158.45 109.11,186.05C113.98,191.74 119.71,197.06 126,201.08C143.24,212.07 160.97,222.3 178.53,232.8C194.17,242.15 210.3,250.77 225.38,260.95C238.83,270.05 248.93,282.59 254.75,297.72C262.63,287.9 269.21,276.6 278.64,268.72C292.19,257.4 307.49,248.04 322.65,238.85C335.57,231.02 349.55,224.97 362.73,217.54C408.67,191.67 435.01,151.58 446.56,100.97C448.24,93.61 449.59,86.17 451.2,78.8C451.36,78.05 452.28,77.45 453.63,75.87C468.93,104.26 477.48,133.71 474.38,165.63C472.05,189.53 459.83,208.26 440.51,222.33C422.52,235.45 402.21,242.82 380.37,246.57C365.47,249.11 350.51,251.68 335.84,255.29C313.74,260.75 293.82,270.82 279.89,289.35C273.6,297.69 267.89,307.43 265.3,317.42C257.79,346.55 278.89,376.4 309.3,380.96C313.11,381.54 317.95,379.68 321.38,377.48C329.28,372.43 336.96,371.55 345.23,375.88C328.38,395.27 310.06,413.57 295.16,434.31C280.5,454.69 269.29,477.55 256.17,500C242.85,477.27 231.38,454.11 216.52,433.37C201.93,412.96 183.87,395.01 167.31,375.97ZM277.38,420.97C269.8,415.95 262.86,411.37 255.93,406.79C248.72,411.77 241.9,416.46 234.89,421.31C242.02,433.2 248.77,444.45 256.27,456.97C263.62,444.46 270.25,433.13 277.38,420.97ZM291.83,398.63C276.27,392.08 264.1,382.01 255.79,365.39C248.34,382.8 235.84,391.48 219.07,398.57C235.13,404.05 245.84,397.36 256.25,389.86C266.95,398.75 278.05,403.72 291.83,398.63Z\"\n      android:fillColor=\"#75C3A9\"/>\n  <path\n      android:pathData=\"M172.23,344.11C180.47,342.26 187.98,341.22 195.07,338.87C210.58,333.74 217.26,321.6 213.46,306.84C209.76,292.53 195.44,282.7 181.01,285.45C174.56,286.68 168.43,289.68 162.21,292.02C144.35,298.75 126.72,306.17 108.63,312.21C74.78,323.48 39.67,307.62 22.12,283.06C-0.77,251.02 -5.66,215.67 6.36,175.79C9.61,179.62 11.95,181.91 13.75,184.57C26.49,203.4 40.16,221.33 57.84,236.04C80.36,254.81 105.99,264.27 135.24,262.94C155.16,262.05 174.25,264.57 192.32,273.3C205.45,279.62 216.53,288.21 223.68,301.2C232.81,317.81 230.53,339.75 218.31,353.62C208.87,364.34 194.26,367.56 181.96,361.65C174.54,358.09 172.66,354.83 172.23,344.11Z\"\n      android:fillColor=\"#75C3A9\"/>\n  <path\n      android:pathData=\"M504.89,176.13C521.74,218.65 508.56,272.16 475.23,298.28C456.6,312.89 435.24,318.76 411.3,314C388.77,309.52 368.29,299.85 347.62,290.52C338.61,286.46 329.61,283.14 319.33,286.28C306.41,290.24 297.85,300.72 297.88,313.56C297.9,326.4 305.18,335.74 318.66,339.43C325.46,341.29 332.48,342.29 339.29,343.66C339.42,355.99 335.42,361.74 324.63,363.71C311.24,366.14 300.1,362.17 291.74,351C276.57,330.72 282.36,298.87 304.95,282.42C325.08,267.74 348.05,262.05 372.85,262.65C382.15,262.88 391.63,263.04 400.74,261.51C430.13,256.61 453.52,240.98 472.55,218.64C480.61,209.18 487.73,198.91 495.26,189C498.2,185.16 501.05,181.28 504.89,176.13Z\"\n      android:fillColor=\"#75C3A9\"/>\n  <path\n      android:pathData=\"M343.34,0.23C377.35,13.75 404.3,34.59 415.12,70.48C427.25,110.7 421.93,148.35 391.33,179.11C379.89,190.6 366.08,200.17 352.17,208.67C332,220.99 308.87,226.36 285.57,232.47C319.39,203.83 342.7,168.76 354.38,126.3C366.26,83.12 364.17,41.12 343.34,0.23Z\"\n      android:fillColor=\"#75C3A9\"/>\n  <path\n      android:pathData=\"M228.49,234.42C193.45,223.51 160.86,213.32 133.63,191.35C92.24,157.98 80.04,103.16 103.18,55.5C114.68,31.82 142.12,8.52 168.66,0C130.12,91.86 157.62,167.07 228.49,234.42Z\"\n      android:fillColor=\"#75C3A9\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_element_cryo.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"433dp\"\n    android:height=\"500dp\"\n    android:viewportWidth=\"433\"\n    android:viewportHeight=\"500\">\n  <path\n      android:pathData=\"M152.41,386.27C158.07,387.97 163.71,389.67 170.28,391.65C182.66,376.93 191.86,360.24 198.55,342.38C205.16,324.7 210.21,306.42 216.9,285.36C224.93,325.42 237.78,360.78 261.51,391.67C268.03,389.67 273.7,387.94 280.33,385.91C258.55,424.51 237.38,462.02 215.96,499.97C216.56,499.97 216.12,500.04 215.7,499.96C215.32,499.88 214.86,499.74 214.63,499.45C214.06,498.8 213.5,498.12 213.13,497.34C195.21,459.31 174.66,422.72 152.41,386.27ZM239.12,401.86C235.37,392.47 230.41,381.42 226.54,370C222.68,358.64 219.91,346.92 216.58,335.05C208.49,359.08 200.8,381.92 192.96,405.23C200.42,412.32 208.41,419.91 216.2,427.3C223.85,418.79 230.8,411.08 239.12,401.86Z\"\n      android:fillColor=\"#A0D7E4\"/>\n  <path\n      android:pathData=\"M132.33,125.92C125.72,131.98 121.32,136 116.5,140.42C131.65,177.4 156.35,206.72 185.78,233.16C148.47,220.76 110.72,214.64 71.14,219.5C69.57,225.78 68.06,231.8 66.47,238.19C43.9,200.06 21.87,162.86 0,125.92C42.95,125.92 86.18,125.92 132.33,125.92ZM70.56,192.92C96.02,198.3 120.2,203.41 142.4,208.11C126.95,190.79 110.33,172.16 93.52,153.34C83.69,156.18 73.35,159.17 62.79,162.22C65.45,172.71 68.08,183.09 70.56,192.92Z\"\n      android:fillColor=\"#A0D7E4\"/>\n  <path\n      android:pathData=\"M432.16,125.91C410.1,163.16 388.07,200.37 365.56,238.41C364.08,232 362.72,226.16 361.2,219.55C322.02,214.61 284.22,220.49 246.71,233.11C275.58,206.76 300.24,177.66 316.11,139.62C311.34,136.05 306.27,132.24 301.19,128.43C301.64,127.6 302.09,126.76 302.55,125.92C345.73,125.91 388.92,125.91 432.16,125.91ZM338.75,153.32C321.38,172.7 304.84,191.16 289.65,208.11C312.33,203.33 336.74,198.19 361.52,192.96C363.99,183.3 366.66,172.88 369.38,162.24C359.07,159.23 348.74,156.22 338.75,153.32Z\"\n      android:fillColor=\"#A0D7E4\"/>\n  <path\n      android:pathData=\"M215.39,0C237.05,38.48 258.11,75.89 279.79,114.41C274,112.9 268.16,111.35 261.5,109.6C237.72,140.19 224.89,175.75 216.1,213.75C207.34,175.99 194.59,140.46 170.54,109.43C164.42,111.27 158.74,112.99 150.21,115.57C162.71,95.08 174.36,77.14 184.84,58.54C195.49,39.6 205.01,20.01 215.39,0ZM193.28,96.89C200.95,119.64 208.58,142.31 216.04,164.44C223.58,142.19 231.26,119.49 239.22,96.02C231.97,89.1 223.97,81.46 215.69,73.55C207.56,82 200.11,89.77 193.28,96.89Z\"\n      android:fillColor=\"#A0D7E4\"/>\n  <path\n      android:pathData=\"M246.7,268.32C283.93,279.8 321.51,287.39 361.08,281.55C362.6,275.23 363.99,269.42 365.57,262.78C388.15,300.9 410.27,338.23 432.14,375.14C389.55,375.14 346.16,375.14 300.17,375.14C306.33,369.38 310.61,365.38 315.73,360.59C300.64,324.22 276.3,294.8 246.7,268.32ZM361.45,307.93C336.71,302.88 312.61,297.94 290.15,293.36C305.6,310.7 322.15,329.32 338.64,347.82C348.7,344.9 359,341.92 369.37,338.92C366.5,327.72 363.85,317.3 361.45,307.93Z\"\n      android:fillColor=\"#A0D7E4\"/>\n  <path\n      android:pathData=\"M66.68,262.66C68.05,268.88 69.27,274.34 70.8,281.29C109.98,287.9 147.82,279.63 185.74,268.15C156.54,294.34 131.88,323.56 115.91,361.86C120.47,365.51 125.38,369.41 132.49,375.08C86.13,375.08 42.92,375.08 0.09,375.08C21.77,338.48 43.82,301.24 66.68,262.66ZM70.6,307.94C68.2,317.73 65.56,328.44 62.95,339.11C74.26,342.3 84.6,345.22 93.55,347.74C110.53,328.69 126.82,310.41 141.98,293.39C119.4,297.99 95.29,302.9 70.6,307.94Z\"\n      android:fillColor=\"#A0D7E4\"/>\n  <path\n      android:pathData=\"M254.13,316.8C246.85,313.57 239.48,310.96 232.89,307.05C229.99,305.34 227.82,301.2 226.81,297.74C223.32,285.74 220.49,273.55 216.71,258.72C214.84,263.19 213.72,265.19 213.16,267.32C211.52,273.63 209.23,279.94 208.77,286.37C207.4,305.69 194.66,312.49 177.61,316.12C176.81,309.81 176.38,303.8 175.24,297.93C174.04,291.7 175.95,287 180.49,282.82C186.26,277.53 191.82,272 197.44,266.54C200.8,263.25 204.1,259.89 206.6,254.72C203.15,255.57 199.66,256.37 196.22,257.31C192.45,258.35 188.74,259.63 184.95,260.61C158.8,267.43 165.78,271.11 139.43,250.2C146.59,245.01 153.18,239.72 160.35,235.35C162.45,234.06 166.27,234.84 169.07,235.56C178.34,237.94 187.49,240.74 196.71,243.34C200.76,244.5 204.84,245.58 211.75,247.48C201.07,237.32 192.9,228.88 184,221.29C176.27,214.69 172.92,207.34 175.69,197.3C176.71,193.58 176.79,189.6 177.28,185.75C196.55,187.6 203.49,193.28 207.95,210.83C210.38,220.43 212.65,230.07 217.02,239.98C217.71,237.98 218.55,236.01 219.06,233.96C220.65,227.64 222.93,221.34 223.48,214.91C225.09,196.18 236.63,187.98 253.58,184.93C254.1,185.54 254.99,186.1 255.09,186.77C258.68,211.81 258.67,211.81 240.06,229.34C234.39,234.67 228.76,240.03 223.95,246.96C234.63,243.75 245.49,241.04 255.95,237.21C266.45,233.34 275.3,234.5 283.29,242.47C285.98,245.14 289.17,247.28 293.31,250.61C286.42,255.52 280.89,260.51 274.45,263.65C270.65,265.49 265.18,265.46 260.9,264.46C249.13,261.68 237.6,257.94 223.46,253.85C225.96,257.44 226.8,259.13 228.07,260.36C232.45,264.59 237.19,268.48 241.45,272.83C260.01,291.83 260.27,284.22 254.13,316.8Z\"\n      android:fillColor=\"#A0D7E4\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_element_dendro.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"531dp\"\n    android:height=\"500dp\"\n    android:viewportWidth=\"531\"\n    android:viewportHeight=\"500\">\n  <path\n      android:pathData=\"M57.82,279.84C54.55,283.24 51.12,286.74 47.74,290.31C41.67,296.71 34.95,299.71 26.43,294.87C18.03,290.12 9.54,285.51 0,280.25C8.81,269.72 17.76,262.75 28.29,259.04C32.71,257.49 39.1,260 44.06,261.98C48.12,263.6 51.4,267.16 57.69,271.84C55.16,249.06 56.91,229.43 60.77,209.71C64.76,189.32 74.8,172.25 88.2,152.85C81.25,153.6 77.4,153.83 73.63,154.46C50.42,158.41 36.88,151.38 27.45,129.78C24.07,122.06 21.59,113.93 18.92,105.91C18.07,103.36 17.93,100.58 17.36,97.24C20.38,96.53 22.58,95.5 24.72,95.61C34.57,96.14 44.4,96.96 54.24,97.71C72.52,99.09 84.3,109.68 87.87,127.84C88.94,133.34 90.09,138.81 91.23,144.45C96.83,147.11 99.84,142.74 103.24,139.93C122.97,123.58 145.74,113.67 170.95,110.64C201.35,107 227.44,117.66 248.96,138.97C258.48,148.38 257.91,156.06 249.03,166.03C243.84,171.84 239.94,172.35 235.34,165.78C220.07,143.96 197.21,140.65 173.86,141.85C122.52,144.48 87.62,182.86 87.06,234.4C86.52,283.11 106.68,320.66 147.56,346.54C163.75,356.79 181.16,365.39 198.72,373.1C224.27,384.31 247.32,397.97 261.08,423.48C261.73,424.69 262.76,425.71 264.27,427.7C266.96,424.78 269.38,422.75 271.01,420.24C283.42,401.12 300.36,387.62 321,378.13C339.33,369.7 357.63,361.06 375.33,351.42C412.71,331.03 436.12,299.51 442.8,257.59C449.05,218.39 439.27,182.7 406.17,158.41C377.58,137.43 344.87,135.66 312.58,150.69C304.09,154.63 297.71,163.1 289.94,169.86C273.78,164.05 269.76,151.1 282.27,139.02C308.96,113.3 340.29,103.57 376.74,114.01C395.49,119.38 412.95,127.2 427.7,140.37C430.46,142.83 433.87,144.58 438.39,147.61C439.81,140.55 440.87,134.4 442.28,128.35C446.65,109.63 455.54,100.76 474.59,98.22C487.03,96.56 499.72,96.7 514.34,95.94C509.08,113.02 505.7,129.03 495.84,142.45C486.69,154.9 473.49,156.97 459.14,154.82C454.81,154.17 450.51,153.32 445.24,153.76C469.12,189.12 478.52,227.2 472.41,270.99C476.74,268.59 478.86,267.84 480.45,266.47C494.26,254.59 499.02,256.4 513.05,264.85C518.95,268.4 523.88,273.54 530.03,278.6C525.27,282.44 521.96,285.85 518,288.2C494.85,301.86 491.59,300.12 476.97,284.01C475.54,282.43 473.52,281.38 471.57,279.93C466.94,292.58 463.21,304.5 458.3,315.91C445.14,346.55 421.55,367.9 393.81,384.86C375.39,396.11 356.52,406.83 337.1,416.22C306.26,431.13 285.47,454.71 272.25,485.7C270.5,489.8 268.35,493.75 265.29,500C261.97,493.74 259.41,489.95 257.84,485.77C245.2,452.33 221.78,429.71 189.94,413.9C166.46,402.24 143.6,388.86 121.83,374.23C89.28,352.34 68.96,321.39 60.84,282.76C60.72,282.05 59.63,281.54 57.82,279.84Z\"\n      android:fillColor=\"#A6C938\"/>\n  <path\n      android:pathData=\"M231.36,335.72C216.18,326.46 201.27,316.75 185.76,308.08C170.12,299.36 153.71,292.24 135.02,294.72C129.14,295.49 123.31,296.71 116,297.97C120.56,283.65 131.36,279.49 142.08,276.01C144.34,269.01 138.39,266.37 136.05,262.17C131.08,253.24 123.84,245.58 123.23,234.45C121.93,210.53 134.19,194.06 153.08,182.4C167.53,173.5 184.19,171.62 200.73,176.44C212.69,179.92 222.43,186.6 226.37,200.74C221.71,201.01 218.09,201.58 214.5,201.38C193.19,200.24 181.98,214.52 177.7,231.26C172.1,253.15 178.22,272.16 192.41,288.67C202.2,300.03 213.31,310.23 223.58,321.19C227.27,325.13 230.2,329.81 233.48,334.14C232.77,334.68 232.06,335.2 231.36,335.72Z\"\n      android:fillColor=\"#A6C938\"/>\n  <path\n      android:pathData=\"M305.61,201.13C305.12,189.52 313.23,184.6 320.73,180.4C353.71,161.99 401.46,185.88 407.13,223.25C409.01,235.6 405.42,246.47 398.39,256.48C394.4,262.15 390.5,267.88 385.79,274.7C397.56,279.81 409.89,282.87 413.8,297.29C407.33,296.32 401.93,295.37 396.5,294.69C379.4,292.57 363.83,297.79 349.33,305.89C334.58,314.13 320.44,323.48 306,332.3C303.43,333.87 300.74,335.24 298.11,336.7C297.4,335.89 296.7,335.1 295.99,334.3C304.57,324.72 312.87,314.88 321.81,305.65C333.25,293.81 345.46,282.84 351.3,266.61C356.86,251.15 356.61,236.43 349.42,221.66C342.24,206.87 330.67,199.98 314.26,201.08C311.53,201.28 308.76,201.13 305.61,201.13Z\"\n      android:fillColor=\"#A6C938\"/>\n  <path\n      android:pathData=\"M265.22,135.52C252.03,121.56 238.26,111.03 228.73,96.26C223.04,87.46 221.36,78.07 223.99,68.08C225.53,62.23 227.02,56.04 230.13,50.99C240.82,33.58 252.21,16.61 263.02,0C265.83,0.82 267.1,0.79 267.51,1.37C280.2,19.26 294.14,36.23 303.06,56.69C311.25,75.45 307.46,91.56 294.76,106.04C286.18,115.82 276.32,124.53 265.22,135.52Z\"\n      android:fillColor=\"#A6C938\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_element_dynamic.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"1024\"\n    android:viewportHeight=\"1024\">\n  <path\n      android:pathData=\"M512,0L362.2,149.8L149.8,149.8L149.8,362.2L0,512L149.8,661.8L149.8,874.2L362.2,874.2L512,1024L661.8,874.2L874.2,874.2L874.2,661.8L1024,512L874.2,362.2L874.2,149.8L661.8,149.8L512,0z\"\n      android:fillColor=\"?attr/colorPrimary\" />\n  <path\n      android:pathData=\"m468.7,295.4 l-4.1,11.6 -5,14.1 -2.5,6.9 -13.7,38.6 -11.5,32.2 -4.1,11.6l0,0l-36.8,103.4 -8,22.6l0,0l-12.5,35.2l0,0l-14.7,41.3 -1.9,5.2 -2.7,7.6 -19.1,53.7 -2.1,5.8l32.7,0 20.8,0 26.2,0 2.6,0l3,-8.5 0.2,-0.5 0,-0.1 20.5,-58.5 6.7,-19.1l104.1,0 23.7,0 10.9,0l8.3,23.7 13.5,38.6 3.3,9.4 5.2,14.9l1.4,0 47.2,0 29.1,0 4.6,0l-3.7,-10.3l0,-0l-15.2,-42.6 -9.8,-27.6 -17.5,-49.3 -14.9,-42 -2.3,-6.3 -2.1,-5.9 -21,-59.1 -6.9,-19.5 -25.2,-70.9 -7.1,-20 -12.9,-36.4l-11.6,0 -41.6,0zM512,382 L518.1,401.3 529,435.9 540.1,471.4 540.4,472.3 541.1,474.5 561.8,540.2l-12.8,0 -70.6,0 -16.3,0l2.2,-7 3.7,-11.7 19.8,-62.9 0,-0 0,-0 8.7,-27.7 1.3,-4.2z\"\n      android:fillColor=\"?attr/colorPrimaryDark\"\n      android:fillAlpha=\"0.5\" />\n  <path\n      android:pathData=\"M512,22 L368.6,165.4L165.4,165.4L165.4,368.6L22,512 165.4,655.4L165.4,858.6L368.6,858.6L512,1002 655.4,858.6L858.6,858.6L858.6,655.4L1002,512 858.6,368.6L858.6,165.4L655.4,165.4ZM468.7,295.4l86.6,0l138.6,389.9l-82.3,0l-30.3,-86.6L442.7,598.6l-30.3,86.6l-82.3,0zM512,382 L462.2,540.2l99.6,0z\"\n      android:fillColor=\"?attr/colorPrimaryContainer\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_element_dynamic_2.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"1024\"\n    android:viewportHeight=\"1024\">\n  <path\n      android:fillColor=\"?attr/colorPrimary\"\n      android:pathData=\"M512,0L362.2,149.8L149.8,149.8L149.8,362.2L0,512L149.8,661.8L149.8,874.2L362.2,874.2L512,1024L661.8,874.2L874.2,874.2L874.2,661.8L1024,512L874.2,362.2L874.2,149.8L661.8,149.8L512,0z\"\n      android:strokeWidth=\"24.0005\"\n      android:strokeColor=\"#00000000\"/>\n  <path\n      android:pathData=\"M512,22 L368.6,165.4L165.4,165.4L165.4,368.6L22,512 165.4,655.4L165.4,858.6L368.6,858.6L512,1002 655.4,858.6L858.6,858.6L858.6,655.4L1002,512 858.6,368.6L858.6,165.4L655.4,165.4ZM468.7,295.4l86.6,0l138.6,389.9l-82.3,0l-30.3,-86.6L442.7,598.6l-30.3,86.6l-82.3,0zM512,382 L462.2,540.2l99.6,0z\"\n      android:strokeWidth=\"23\"\n      android:fillColor=\"?attr/colorPrimaryContainer\"\n      android:strokeColor=\"#00000000\"/>\n  <path\n      android:pathData=\"m464.6,306.9 l-5,14.1 10.6,6.3z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fe8b72\"\n      android:strokeColor=\"#fe8b72\"/>\n  <path\n      android:pathData=\"m545.6,355.2 l-27.5,46.1 10.9,34.6 54.8,6.7z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fd5f9f\"\n      android:strokeColor=\"#fd5f9f\"/>\n  <path\n      android:pathData=\"m575.4,351.8 l-29.8,3.4 38.1,87.4 16.8,-20z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fe7c81\"\n      android:strokeColor=\"#fe7c81\"/>\n  <path\n      android:pathData=\"m568.3,331.7 l-22.7,23.5 29.8,-3.4z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fe9469\"\n      android:strokeColor=\"#fe9469\"/>\n  <path\n      android:pathData=\"M600.6,422.7 L583.8,442.6 607.5,442.2Z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fe7a84\"\n      android:strokeColor=\"#fe7a84\"/>\n  <path\n      android:pathData=\"m487.9,458.6 l-31.3,70.7 11.5,-7.8zM540.1,471.4 L540.4,472.3 540.8,472z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#db76aa\"\n      android:strokeColor=\"#db76aa\"/>\n  <path\n      android:pathData=\"m529,435.9 l11.2,35.5 0.7,0.7 42.9,-29.4z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#ea71a1\"\n      android:strokeColor=\"#ea71a1\"/>\n  <path\n      android:pathData=\"m583.8,442.6 l-42.9,29.4 75.5,38.9z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#dd8897\"\n      android:strokeColor=\"#dd8897\"/>\n  <path\n      android:pathData=\"m607.5,442.2 l-23.8,0.5 32.6,68.3 12.2,-9.7z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#e38f8a\"\n      android:strokeColor=\"#e38f8a\"/>\n  <path\n      android:pathData=\"m628.5,501.3 l-12.2,9.7 14.3,-3.8z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#dca17f\"\n      android:strokeColor=\"#dca17f\"/>\n  <path\n      android:pathData=\"m540.8,472 l-0.4,0.3 0.7,2.2zM468.1,521.5 L456.6,529.2 464.4,533.1zM478.4,540.2 L553.6,577.7 549,540.2z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#c294a6\"\n      android:strokeColor=\"#c294a6\"/>\n  <path\n      android:pathData=\"m540.8,472 l0.3,2.5 20.7,65.7l-12.8,0l4.5,37.6 37.4,-16.7z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#bca49b\"\n      android:strokeColor=\"#bca49b\"/>\n  <path\n      android:pathData=\"m540.8,472 l50.1,89 25.4,-50.1z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#c89d96\"\n      android:strokeColor=\"#c89d96\"/>\n  <path\n      android:pathData=\"m616.3,511 l-25.4,50.1 74.4,43.7 -17.5,-49.3z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#aec48a\"\n      android:strokeColor=\"#aec48a\"/>\n  <path\n      android:pathData=\"m616.3,511 l31.5,44.5 -14.9,-42z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#b3cb7f\"\n      android:strokeColor=\"#b3cb7f\"/>\n  <path\n      android:pathData=\"m630.6,507.1 l-14.3,3.8 16.5,2.5z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#ccb27f\"\n      android:strokeColor=\"#ccb27f\"/>\n  <path\n      android:pathData=\"m408.9,603.9 l-50.9,16.7 30.2,50.1z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#8aaec4\"\n      android:strokeColor=\"#8aaec4\"/>\n  <path\n      android:pathData=\"m408.9,603.9 l-20.7,66.8 27,5.6z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#81bbbf\"\n      android:strokeColor=\"#81bbbf\"/>\n  <path\n      android:pathData=\"m415.5,676.2 l-0.2,0 0.2,0.1z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#7fd1ab\"\n      android:strokeColor=\"#7fd1ab\"/>\n  <path\n      android:pathData=\"m543.7,295.4 l1.9,59.8 22.7,-23.5 -12.9,-36.4z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fe9a64\"\n      android:strokeColor=\"#fe9a64\"/>\n  <path\n      android:pathData=\"m468.7,295.4 l-4.1,11.6 5.5,20.4 32,-32z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fe9b62\"\n      android:strokeColor=\"#fe9b62\"/>\n  <path\n      android:pathData=\"m502.1,295.4 l-32,32 75.5,27.8 -1.9,-59.8z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fe8d71\"\n      android:strokeColor=\"#fe8d71\"/>\n  <path\n      android:pathData=\"m470.1,327.4 l27.8,99.3 14.1,-44.6 6.1,19.2 27.5,-46.1z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fe6b94\"\n      android:strokeColor=\"#fe6b94\"/>\n  <path\n      android:pathData=\"m470.1,327.4 l-26.8,39.2 -11.5,32.2 64.7,32 1.3,-4.2z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fd5aa4\"\n      android:strokeColor=\"#fd5aa4\"/>\n  <path\n      android:pathData=\"m459.5,321.1 l-2.5,6.9 13,-0.6z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fd738b\"\n      android:strokeColor=\"#fd738b\"/>\n  <path\n      android:pathData=\"m470.1,327.4 l-13,0.6 -13.7,38.6z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#fe629d\"\n      android:strokeColor=\"#fe629d\"/>\n  <path\n      android:pathData=\"m353.9,618.2 l-2.7,7.6 6.9,-5.2z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#8d97d8\"\n      android:strokeColor=\"#8d97d8\"/>\n  <path\n      android:pathData=\"m358.1,620.6 l-6.9,5.2 -19.1,53.7 56.2,-8.8z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#7faecf\"\n      android:strokeColor=\"#7faecf\"/>\n  <path\n      android:pathData=\"m388.3,670.7 l-56.2,8.8 -2.1,5.8l32.7,0z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#7fa9d4\"\n      android:strokeColor=\"#7fa9d4\"/>\n  <path\n      android:pathData=\"m388.3,670.7 l-25.5,14.6l20.8,0z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#7fafcd\"\n      android:strokeColor=\"#7fafcd\"/>\n  <path\n      android:pathData=\"m388.3,670.7 l-4.7,14.6l26.2,0l5.5,-9z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#7fb9c3\"\n      android:strokeColor=\"#7fb9c3\"/>\n  <path\n      android:pathData=\"m415.3,676.3 l-5.5,9l2.6,0l3,-8.5z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#7fbcc0\"\n      android:strokeColor=\"#7fbcc0\"/>\n  <path\n      android:pathData=\"m415.3,676.3 l0,0.5 0.2,-0.5z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#7fcab2\"\n      android:strokeColor=\"#7fcab2\"/>\n  <path\n      android:pathData=\"m590.9,561 l29.4,99.3 54.8,-28 -9.8,-27.6z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#94de89\"\n      android:strokeColor=\"#94de89\"/>\n  <path\n      android:pathData=\"m690.3,675 l-0.9,10.3l4.6,0z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#80ff7e\"\n      android:strokeColor=\"#80ff7e\"/>\n  <path\n      android:pathData=\"m675.1,632.4 l-54.8,28 40,24.9l29.1,0l0.9,-10.3z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#80fb81\"\n      android:strokeColor=\"#80fb81\"/>\n  <path\n      android:pathData=\"m620.3,660.4 l-7.3,24.9l47.2,0z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#80f28a\"\n      android:strokeColor=\"#80f28a\"/>\n  <path\n      android:pathData=\"m620.3,660.4 l-13.9,10 5.2,14.9l1.4,0z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#7fe696\"\n      android:strokeColor=\"#7fe696\"/>\n  <path\n      android:pathData=\"m590.9,561 l-37.4,16.7 16.9,20.9l10.9,0l8.3,23.7 30.7,38z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#9ccc95\"\n      android:strokeColor=\"#9ccc95\"/>\n  <path\n      android:pathData=\"m620.3,660.4 l-17.2,0.6 3.3,9.4z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#7fe19b\"\n      android:strokeColor=\"#7fe19b\"/>\n  <path\n      android:pathData=\"m553.6,577.7 l-6.8,20.9l23.7,0zM589.6,622.4 L603.1,660.9 620.3,660.4z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#8ad999\"\n      android:strokeColor=\"#8ad999\"/>\n  <path\n      android:pathData=\"m408.9,603.9 l6.4,72.3 0.2,-0 20.5,-58.5z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#82c5b5\"\n      android:strokeColor=\"#82c5b5\"/>\n  <path\n      android:pathData=\"m456.6,529.2 l-47.7,74.7 144.6,-26.2 -75.1,-37.6l-16.3,0l2.2,-7z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#aba1b0\"\n      android:strokeColor=\"#aba1b0\"/>\n  <path\n      android:pathData=\"m553.6,577.7 l-144.6,26.2 27.1,13.8 6.7,-19.1l104.1,0z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#94beaa\"\n      android:strokeColor=\"#94beaa\"/>\n  <path\n      android:pathData=\"m355.8,613 l-1.9,5.2 4.2,2.4z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#a683d3\"\n      android:strokeColor=\"#a683d3\"/>\n  <path\n      android:pathData=\"m370.5,571.6 l-14.7,41.3 2.3,7.7 50.9,-16.7z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#a192c9\"\n      android:strokeColor=\"#a192c9\"/>\n  <path\n      android:pathData=\"m456.6,529.2 l-73.6,7.2l0,0l-12.5,35.2 38.5,32.3z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#b18ac1\"\n      android:strokeColor=\"#b18ac1\"/>\n  <path\n      android:pathData=\"m391,513.9 l-8,22.6 73.6,-7.2z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#c371c8\"\n      android:strokeColor=\"#c371c8\"/>\n  <path\n      android:pathData=\"m427.8,410.4 l-36.8,103.4 65.6,15.4z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#dc5ec1\"\n      android:strokeColor=\"#dc5ec1\"/>\n  <path\n      android:pathData=\"m431.9,398.8 l-4.1,11.6 28.8,118.8 31.3,-70.7 8.7,-27.7z\"\n      android:strokeWidth=\"0.8\"\n      android:fillColor=\"#e960b4\"\n      android:strokeColor=\"#e960b4\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_element_electro.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"500\"\n    android:viewportHeight=\"500\">\n  <path\n      android:pathData=\"M137.96,304.73C142.53,309.65 144.83,312.12 147.14,314.59C168.52,337.43 202.18,335.5 220.36,309.4C237.03,285.46 239.96,259.12 227.86,232.34C206.08,184.13 147.26,165.09 98.7,189.77C73.34,202.66 56.4,222.87 45.55,248.78C34.22,275.85 31.35,304.41 30.26,333.28C29.89,343.1 30.21,352.93 30.21,364.24C-24.33,277.55 -5.75,130.72 91.92,57C75.78,87.7 55.7,116.92 54.03,156.01C58.88,151.5 61.95,148.69 64.97,145.83C91.36,120.72 120.76,101.16 157.48,94.43C192.07,88.09 231.54,98.71 259.94,123.32C254.1,124.8 248.91,125.94 243.83,127.44C219.91,134.48 207.97,154.15 212.5,178.83C218.25,210.24 248.18,234.98 282.91,236.97C340.34,240.25 374.84,194.16 379.36,152.71C383.33,116.35 370.53,85.9 346.3,59.57C328.01,39.75 306.12,24.67 282.57,11.87C275.7,8.13 268.71,4.63 261.2,0.72C344.61,-8.43 480.99,70.36 500,204.9C481.83,175.14 464.73,144.47 432.46,123.42C435.51,138.33 438.59,150.87 440.56,163.58C445.52,195.75 442.81,227.03 428.75,256.91C414.36,287.48 390.1,306.58 357.15,319.45C358.73,314.06 359.69,310.55 360.79,307.08C371,275.02 351.39,246.63 317.66,244.69C278.03,242.42 242.34,271.33 234.66,311.94C225.44,360.58 256.96,409.32 306.56,423.1C329.93,429.59 353.3,428.73 376.39,422.02C404.23,413.94 430.48,402.24 454.5,385.79C457.33,383.86 460.29,382.15 463.76,380C450.76,417.8 388.83,467.01 330.53,487.21C273.26,507.06 200.16,502.27 168.01,483.34C195.92,480.8 223.74,483.17 250.25,474.41C256.42,472.38 262.43,469.89 271.33,466.58C265.48,464.56 262.17,463.32 258.82,462.27C236.24,455.19 214.22,446.84 194.58,433.3C166.13,413.69 146.55,387.78 139.17,353.62C137.53,345.99 137.01,338.05 136.77,330.23C136.53,322.88 137.4,315.52 137.96,304.73Z\"\n      android:fillColor=\"#B08FC2\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_element_geo.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"467dp\"\n    android:height=\"500dp\"\n    android:viewportWidth=\"467\"\n    android:viewportHeight=\"500\">\n  <path\n      android:pathData=\"M466.03,249.31C453.34,273.51 436.09,294.67 416.32,315.96C377.06,203.14 308.72,110.5 231.65,21.88C188.23,72.37 143.78,120.5 125.54,185.45C126.28,186.09 127.01,186.73 127.76,187.38C162.05,158.65 196.37,129.91 231.69,100.33C271.82,138.18 304.62,180.88 330.18,230.78C305.39,258.88 275.66,280.65 245.29,303.88C238.7,295.85 232.82,288.66 228.52,283.42C244.74,266.13 259.85,249.82 275.2,233.74C284.36,224.14 284.67,224.24 279.02,212.64C267.96,190 251.45,171.9 231,155.22C223.31,159.85 215.31,163.98 208.07,169.15C175.08,192.65 144.82,219.32 116.95,248.69C114.99,250.75 113.18,252.94 110.88,255.55C109.12,253.52 107.89,252.51 107.16,251.22C91.8,224.23 80.07,195.82 72.9,165.52C71.22,158.39 72.54,153.05 76.83,147.31C104.11,110.77 136.58,79.22 170.83,49.42C187.6,34.82 205.09,21.05 222.32,6.97C225.45,4.41 228.88,2.2 231.95,0C302.63,41.41 437.89,185.45 466.03,249.31Z\"\n      android:fillColor=\"#FAB72E\"/>\n  <path\n      android:pathData=\"M231.27,500C202.87,475.73 174.79,452.77 147.9,428.51C105.89,390.61 66.94,349.73 33.52,303.94C22.84,289.32 13.59,273.67 3.43,258.67C-0.76,252.51 -1.48,247.01 3.33,240.81C17.17,222.9 30.75,204.8 44.51,186.83C45.45,185.61 46.96,184.82 49.03,183.18C87.76,294.8 155.95,387.2 231.85,474.73C266.64,452.03 332.95,350.93 338.71,310.39C302.33,339.07 269.11,368.74 233.32,397.89C193.38,360.39 160.72,317.67 134.79,267.49C159.38,239.6 189.26,217.89 219.57,194.49C225.93,202.1 231.89,209.23 237.44,215.87C229.73,224.2 223,231.88 215.84,239.15C206.29,248.83 196.57,258.36 186.63,267.64C182.36,271.63 181.52,275.59 183.8,280.81C194.11,304.4 210.53,323.15 229.9,339.64C233.38,342.6 236.82,341.76 240.12,339.67C248.13,334.61 256.36,329.82 263.93,324.19C295.08,301 324.2,275.49 350.55,246.91C351.64,245.72 352.9,244.69 353.99,243.68C354.97,244.1 355.93,244.2 356.23,244.69C373.16,272.79 385.13,302.86 392.63,334.8C394.13,341.19 392.06,345.74 388.45,350.66C367.58,379 343.5,404.46 317.42,427.91C293.84,449.12 269.21,469.17 244.99,489.66C241.21,492.81 237.15,495.57 231.27,500Z\"\n      android:fillColor=\"#FAB72E\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_element_hydro.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"502dp\"\n    android:height=\"500dp\"\n    android:viewportWidth=\"502\"\n    android:viewportHeight=\"500\">\n  <path\n      android:pathData=\"M109.53,442.36C112.38,443.52 115.34,444.47 118.07,445.89C155.97,465.62 196.42,475.3 238.95,477.98C320.1,483.1 386.43,421.04 385.72,340.01C385.15,275.22 334.52,218.47 269.83,209.36C250.24,206.6 231.23,207.74 212.38,213.29C203.14,216.01 193.75,217.9 184.67,213.79C172.56,208.29 165.57,198.66 164.53,185.21C163.49,171.7 168.43,160.44 180.59,154.57C191.53,149.29 203.33,144.97 215.23,142.58C334.8,118.51 439.46,219.85 423.71,334.98C417.18,382.71 394.07,420.93 356.52,450.72C352.56,453.85 348.48,456.86 345.28,461.47C347.65,460.44 350.16,459.66 352.36,458.35C416.61,419.96 450.64,362.99 453.8,288.66C458.7,172.89 368,96.4 289.89,83.27C209.2,69.71 142.73,94.23 91.08,157.75C75.75,176.61 57.84,180.88 39.38,168.79C27.54,161.04 22.56,149.09 27.1,135.72C29.8,127.79 33.79,120.03 38.51,113.09C80.66,51.13 139.44,14.89 213.05,3.07C325.62,-15.03 455.3,46.97 493.1,188.67C531.69,333.29 435.72,461.53 309.87,492.64C263.38,504.13 217.13,501.99 171.48,487.43C146.07,479.33 125.77,463.91 109.53,442.36Z\"\n      android:fillColor=\"#4BC3F1\"/>\n  <path\n      android:pathData=\"M318.57,423.78C300.92,450.48 265.23,464.62 232.12,458.07C190.97,449.92 160.85,414.12 159.43,371.7C158.13,332.31 187.06,294.2 226.98,284.46C257.25,277.08 285.05,283.08 309.02,303.76C323.28,316.06 330.72,332.15 333.6,350.34C335.66,363.33 330.99,374.68 321.99,383.91C310.08,396.11 289.01,394.34 278.44,379.96C274.35,374.4 271.88,367.5 269.36,360.95C260.36,337.64 238.43,329.92 216.72,342.64C187.28,359.89 180.99,395.76 202.69,422.82C222.3,447.28 257.14,455.48 287.46,441.83C298.35,436.95 308.24,429.87 318.57,423.78Z\"\n      android:fillColor=\"#4BC3F1\"/>\n  <path\n      android:pathData=\"M34.63,220.19C52.19,220.16 67.95,235.97 68.19,253.85C68.43,271.67 51.41,288.43 33.42,288.09C15.7,287.75 0.06,271.86 0,254.1C-0.06,235.61 15.65,220.21 34.63,220.19Z\"\n      android:fillColor=\"#4BC3F1\"/>\n  <path\n      android:pathData=\"M102.54,364.79C102.32,377.72 91.57,388.16 78.83,387.86C66.68,387.58 55.07,375.9 55.13,364.02C55.2,351.72 66.4,340.47 78.75,340.3C92.23,340.11 102.78,350.97 102.54,364.79Z\"\n      android:fillColor=\"#4BC3F1\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_element_pyro.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"414dp\"\n    android:height=\"500dp\"\n    android:viewportWidth=\"414\"\n    android:viewportHeight=\"500\">\n  <path\n      android:pathData=\"M210.84,500C206.38,496.42 201.97,492.81 197.49,489.28C167.73,465.89 137.59,443.1 103.9,425.38C88.16,417.11 72.9,407.86 57.83,398.39C45.78,390.84 33.67,383.11 22.81,374C4.43,358.59 -3.62,338.79 1.53,314.52C5.82,294.27 13.73,275.52 24.62,258.01C29.07,250.84 33.86,243.84 38.84,237.03C61.96,205.56 89.7,177.43 107.52,139.69C109.01,143.91 110.06,145.84 110.33,147.85C113.47,171.02 125.89,188.79 144.82,201.07C160.76,211.4 178.44,219.08 195.34,227.93C197.53,229.08 199.76,230.16 201.81,233.26C197.62,233.77 193.44,234.25 189.25,234.8C145.05,240.59 103.97,270.15 96.4,322.28C93.4,342.95 99.51,360.9 111.03,377.55C113.29,380.81 115.86,383.86 118.87,387.73C117.03,387.98 115.64,388.62 115.04,388.18C100.77,377.64 85.07,368.5 72.72,356.04C45.83,328.89 42.51,298.14 60.51,264.43C64.59,256.78 69.7,249.68 74.89,241.47C35.61,258.64 16.06,299.83 28.56,337.02C33.25,350.99 41.98,362.14 53.42,371.02C61.12,377 69.33,382.49 77.83,387.27C121.6,411.88 167.99,431.98 207.9,463.55C211.22,461.82 214.08,460.67 216.55,458.95C251.01,435.14 286.85,413.66 324.01,394.29C335.44,388.32 346.53,381.64 357.27,374.51C364.62,369.62 371.83,364.08 377.83,357.64C400.93,332.85 401.47,300 379.72,274.09C371.37,264.16 361.64,255.84 348.38,248.52C349.35,252.81 349.81,255.47 350.56,258.04C353.79,269.11 357.79,280 360.25,291.23C366.65,320.35 358.3,345.85 339.09,367.95C307.43,404.39 231.94,437.22 166.54,407.96C152.55,401.71 139.42,394.22 130.65,381.16C113.59,355.79 128.61,322.46 158.37,319.87C165.71,319.23 173.18,320.26 183.72,320.62C178.62,325.65 175.68,328.59 172.7,331.5C160.92,343 156.95,357.18 159.6,373.02C161.7,385.58 168.88,394.93 180.6,400.54C196.36,408.1 213.05,410.02 230.11,407.9C247.46,405.73 264,400.45 279.15,391.51C318.9,368.03 328.3,315.55 299.67,279.2C286.14,262.02 269.64,248.93 249.63,240.28C234.52,233.76 218.95,228.22 204.19,221C189.87,214.01 175.15,206.95 162.67,197.26C131.32,172.9 126.41,138.06 148.09,105.03C152.47,98.35 157.24,91.88 162.26,85.63C182.31,60.67 199.16,34.23 201.86,0C204.33,1.39 206.16,1.8 206.91,2.93C218.33,19.87 230.96,36.18 240.59,54.09C253.48,78.09 249.72,92.99 228.81,110.45C215.26,121.77 203.68,134.41 196.71,150.76C186.6,174.45 193.76,196.55 217.27,211.16C215.62,208.34 214.93,206.92 214.01,205.67C201.03,188.07 202.19,169.98 212.49,151.85C223.01,133.32 238.15,119.55 257.98,109.71C249.47,141.08 243.83,171.8 259.7,202.23C269.34,220.71 285.3,241.14 300.85,252.17C300.07,241.93 294.81,234.96 289.98,227.65C285.11,220.27 279.92,212.89 276.53,204.81C270.58,190.65 271.21,175.97 277.71,162.03C282.49,151.76 287.23,141.25 296.56,133.04C297.48,135.03 298.2,136.09 298.47,137.25C307.24,174.42 328.16,203.41 358.36,226.15C376.16,239.54 389.25,256.91 399.7,276.2C404.53,285.11 408.13,294.84 411,304.59C416.46,323.09 414.09,341.25 402.73,356.78C394.16,368.51 384.53,380.21 373.11,388.94C355.16,402.67 335.96,415.1 316.09,425.9C279.91,445.6 245.94,468.06 215.92,496.36C214.71,497.57 213.12,498.41 210.84,500Z\"\n      android:fillColor=\"#EF7A35\"/>\n  <path\n      android:pathData=\"M148.02,301.35C156.72,275.31 180.25,258.81 207.76,260.15C219.09,260.7 230.8,262.94 241.41,266.91C264.68,275.6 276.94,294.09 281.01,318C283.16,330.63 278.6,341.65 269.68,350.69C259.59,360.93 247.46,368.04 232.34,374.03C233.25,371.12 233.52,369.64 234.15,368.33C247.8,340.24 235.91,310.15 206.59,298.68C191.08,292.61 175.4,292.6 159.61,297.38C155.96,298.49 152.39,299.86 148.02,301.35Z\"\n      android:fillColor=\"#EF7A35\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_foreground.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\"\n    android:tint=\"@color/ic_launcher_foreground\">\n  <group android:scaleX=\"1.6965\"\n      android:scaleY=\"1.6965\"\n      android:translateX=\"33.642\"\n      android:translateY=\"33.642\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M18,8h-1L17,6c0,-2.76 -2.24,-5 -5,-5S7,3.24 7,6v2L6,8c-1.1,0 -2,0.9 -2,2v10c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L20,10c0,-1.1 -0.9,-2 -2,-2zM12,17c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2zM15.1,8L8.9,8L8.9,6c0,-1.71 1.39,-3.1 3.1,-3.1 1.71,0 3.1,1.39 3.1,3.1v2z\"/>\n  </group>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_nav_apps.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" android:height=\"24dp\" android:tint=\"#000000\" android:viewportHeight=\"24\" android:viewportWidth=\"24\" android:width=\"24dp\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M4,8h4L8,4L4,4v4zM10,20h4v-4h-4v4zM4,20h4v-4L4,16v4zM4,14h4v-4L4,10v4zM10,14h4v-4h-4v4zM16,4v4h4L20,4h-4zM10,8h4L14,4h-4v4zM16,14h4v-4h-4v4zM16,20h4v-4h-4v4z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_nav_home.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:drawable=\"@drawable/ic_nav_home_filled\" android:state_selected=\"true\" />\n    <item android:drawable=\"@drawable/ic_nav_home_outlined\" />\n</selector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_nav_home_filled.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" android:height=\"24dp\" android:tint=\"#000000\" android:viewportHeight=\"24\" android:viewportWidth=\"24\" android:width=\"24dp\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_nav_home_outlined.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" android:height=\"24dp\" android:tint=\"#000000\" android:viewportHeight=\"24\" android:viewportWidth=\"24\" android:width=\"24dp\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M12,5.69l5,4.5V18h-2v-6H9v6H7v-7.81l5,-4.5M12,3L2,12h3v8h6v-6h2v6h6v-8h3L12,3z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_nav_settings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:drawable=\"@drawable/ic_nav_settings_filled\" android:state_selected=\"true\" />\n    <item android:drawable=\"@drawable/ic_nav_settings_outlined\" />\n</selector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_nav_settings_filled.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" android:height=\"24dp\" android:tint=\"#000000\" android:viewportHeight=\"24\" android:viewportWidth=\"24\" android:width=\"24dp\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94zM12,15.6c-1.98,0 -3.6,-1.62 -3.6,-3.6s1.62,-3.6 3.6,-3.6s3.6,1.62 3.6,3.6S13.98,15.6 12,15.6z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_nav_settings_outlined.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" android:height=\"24dp\" android:tint=\"#000000\" android:viewportHeight=\"24\" android:viewportWidth=\"24\" android:width=\"24dp\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M19.43,12.98c0.04,-0.32 0.07,-0.64 0.07,-0.98 0,-0.34 -0.03,-0.66 -0.07,-0.98l2.11,-1.65c0.19,-0.15 0.24,-0.42 0.12,-0.64l-2,-3.46c-0.09,-0.16 -0.26,-0.25 -0.44,-0.25 -0.06,0 -0.12,0.01 -0.17,0.03l-2.49,1c-0.52,-0.4 -1.08,-0.73 -1.69,-0.98l-0.38,-2.65C14.46,2.18 14.25,2 14,2h-4c-0.25,0 -0.46,0.18 -0.49,0.42l-0.38,2.65c-0.61,0.25 -1.17,0.59 -1.69,0.98l-2.49,-1c-0.06,-0.02 -0.12,-0.03 -0.18,-0.03 -0.17,0 -0.34,0.09 -0.43,0.25l-2,3.46c-0.13,0.22 -0.07,0.49 0.12,0.64l2.11,1.65c-0.04,0.32 -0.07,0.65 -0.07,0.98 0,0.33 0.03,0.66 0.07,0.98l-2.11,1.65c-0.19,0.15 -0.24,0.42 -0.12,0.64l2,3.46c0.09,0.16 0.26,0.25 0.44,0.25 0.06,0 0.12,-0.01 0.17,-0.03l2.49,-1c0.52,0.4 1.08,0.73 1.69,0.98l0.38,2.65c0.03,0.24 0.24,0.42 0.49,0.42h4c0.25,0 0.46,-0.18 0.49,-0.42l0.38,-2.65c0.61,-0.25 1.17,-0.59 1.69,-0.98l2.49,1c0.06,0.02 0.12,0.03 0.18,0.03 0.17,0 0.34,-0.09 0.43,-0.25l2,-3.46c0.12,-0.22 0.07,-0.49 -0.12,-0.64l-2.11,-1.65zM17.45,11.27c0.04,0.31 0.05,0.52 0.05,0.73 0,0.21 -0.02,0.43 -0.05,0.73l-0.14,1.13 0.89,0.7 1.08,0.84 -0.7,1.21 -1.27,-0.51 -1.04,-0.42 -0.9,0.68c-0.43,0.32 -0.84,0.56 -1.25,0.73l-1.06,0.43 -0.16,1.13 -0.2,1.35h-1.4l-0.19,-1.35 -0.16,-1.13 -1.06,-0.43c-0.43,-0.18 -0.83,-0.41 -1.23,-0.71l-0.91,-0.7 -1.06,0.43 -1.27,0.51 -0.7,-1.21 1.08,-0.84 0.89,-0.7 -0.14,-1.13c-0.03,-0.31 -0.05,-0.54 -0.05,-0.74s0.02,-0.43 0.05,-0.73l0.14,-1.13 -0.89,-0.7 -1.08,-0.84 0.7,-1.21 1.27,0.51 1.04,0.42 0.9,-0.68c0.43,-0.32 0.84,-0.56 1.25,-0.73l1.06,-0.43 0.16,-1.13 0.2,-1.35h1.39l0.19,1.35 0.16,1.13 1.06,0.43c0.43,0.18 0.83,0.41 1.23,0.71l0.91,0.7 1.06,-0.43 1.27,-0.51 0.7,1.21 -1.07,0.85 -0.89,0.7 0.14,1.13zM12,8c-2.21,0 -4,1.79 -4,4s1.79,4 4,4 4,-1.79 4,-4 -1.79,-4 -4,-4zM12,14c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_settings_author.xml",
    "content": "<vector\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24\"\n    android:viewportWidth=\"24\"\n    android:tint=\"@color/settings_icon\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M12,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zM12,14c-2.67,0 -8,1.34 -8,4v1c0,0.55 0.45,1 1,1h14c0.55,0 1,-0.45 1,-1v-1c0,-2.66 -5.33,-4 -8,-4z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_settings_hide_icon.xml",
    "content": "<vector\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24\"\n    android:viewportWidth=\"24\"\n    android:tint=\"@color/settings_icon\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M6,13c-0.55,0 -1,0.45 -1,1s0.45,1 1,1 1,-0.45 1,-1 -0.45,-1 -1,-1zM6,17c-0.55,0 -1,0.45 -1,1s0.45,1 1,1 1,-0.45 1,-1 -0.45,-1 -1,-1zM6,9c-0.55,0 -1,0.45 -1,1s0.45,1 1,1 1,-0.45 1,-1 -0.45,-1 -1,-1zM3,9.5c-0.28,0 -0.5,0.22 -0.5,0.5s0.22,0.5 0.5,0.5 0.5,-0.22 0.5,-0.5 -0.22,-0.5 -0.5,-0.5zM6,5c-0.55,0 -1,0.45 -1,1s0.45,1 1,1 1,-0.45 1,-1 -0.45,-1 -1,-1zM21,10.5c0.28,0 0.5,-0.22 0.5,-0.5s-0.22,-0.5 -0.5,-0.5 -0.5,0.22 -0.5,0.5 0.22,0.5 0.5,0.5zM14,7c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1 -1,0.45 -1,1 0.45,1 1,1zM14,3.5c0.28,0 0.5,-0.22 0.5,-0.5s-0.22,-0.5 -0.5,-0.5 -0.5,0.22 -0.5,0.5 0.22,0.5 0.5,0.5zM3,13.5c-0.28,0 -0.5,0.22 -0.5,0.5s0.22,0.5 0.5,0.5 0.5,-0.22 0.5,-0.5 -0.22,-0.5 -0.5,-0.5zM10,20.5c-0.28,0 -0.5,0.22 -0.5,0.5s0.22,0.5 0.5,0.5 0.5,-0.22 0.5,-0.5 -0.22,-0.5 -0.5,-0.5zM10,3.5c0.28,0 0.5,-0.22 0.5,-0.5s-0.22,-0.5 -0.5,-0.5 -0.5,0.22 -0.5,0.5 0.22,0.5 0.5,0.5zM10,7c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1 -1,0.45 -1,1 0.45,1 1,1zM10,12.5c-0.83,0 -1.5,0.67 -1.5,1.5s0.67,1.5 1.5,1.5 1.5,-0.67 1.5,-1.5 -0.67,-1.5 -1.5,-1.5zM18,13c-0.55,0 -1,0.45 -1,1s0.45,1 1,1 1,-0.45 1,-1 -0.45,-1 -1,-1zM18,17c-0.55,0 -1,0.45 -1,1s0.45,1 1,1 1,-0.45 1,-1 -0.45,-1 -1,-1zM18,9c-0.55,0 -1,0.45 -1,1s0.45,1 1,1 1,-0.45 1,-1 -0.45,-1 -1,-1zM18,5c-0.55,0 -1,0.45 -1,1s0.45,1 1,1 1,-0.45 1,-1 -0.45,-1 -1,-1zM21,13.5c-0.28,0 -0.5,0.22 -0.5,0.5s0.22,0.5 0.5,0.5 0.5,-0.22 0.5,-0.5 -0.22,-0.5 -0.5,-0.5zM14,17c-0.55,0 -1,0.45 -1,1s0.45,1 1,1 1,-0.45 1,-1 -0.45,-1 -1,-1zM14,20.5c-0.28,0 -0.5,0.22 -0.5,0.5s0.22,0.5 0.5,0.5 0.5,-0.22 0.5,-0.5 -0.22,-0.5 -0.5,-0.5zM10,8.5c-0.83,0 -1.5,0.67 -1.5,1.5s0.67,1.5 1.5,1.5 1.5,-0.67 1.5,-1.5 -0.67,-1.5 -1.5,-1.5zM10,17c-0.55,0 -1,0.45 -1,1s0.45,1 1,1 1,-0.45 1,-1 -0.45,-1 -1,-1zM14,12.5c-0.83,0 -1.5,0.67 -1.5,1.5s0.67,1.5 1.5,1.5 1.5,-0.67 1.5,-1.5 -0.67,-1.5 -1.5,-1.5zM14,8.5c-0.83,0 -1.5,0.67 -1.5,1.5s0.67,1.5 1.5,1.5 1.5,-0.67 1.5,-1.5 -0.67,-1.5 -1.5,-1.5z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_settings_license.xml",
    "content": "<vector\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24\"\n    android:viewportWidth=\"24\"\n    android:tint=\"@color/settings_icon\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M14.59,2.59c-0.38,-0.38 -0.89,-0.59 -1.42,-0.59L6,2c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.89,2 1.99,2L18,22c1.1,0 2,-0.9 2,-2L20,8.83c0,-0.53 -0.21,-1.04 -0.59,-1.41l-4.82,-4.83zM15,18L9,18c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1h6c0.55,0 1,0.45 1,1s-0.45,1 -1,1zM15,14L9,14c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1h6c0.55,0 1,0.45 1,1s-0.45,1 -1,1zM13,8L13,3.5L18.5,9L14,9c-0.55,0 -1,-0.45 -1,-1z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_settings_project_link.xml",
    "content": "<vector\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24\"\n    android:viewportWidth=\"24\"\n    android:tint=\"@color/settings_icon\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M18,19H6c-0.55,0 -1,-0.45 -1,-1V6c0,-0.55 0.45,-1 1,-1h5c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1H5c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2v-6c0,-0.55 -0.45,-1 -1,-1s-1,0.45 -1,1v5c0,0.55 -0.45,1 -1,1zM14,4c0,0.55 0.45,1 1,1h2.59l-9.13,9.13c-0.39,0.39 -0.39,1.02 0,1.41 0.39,0.39 1.02,0.39 1.41,0L19,6.41V9c0,0.55 0.45,1 1,1s1,-0.45 1,-1V3h-6c-0.55,0 -1,0.45 -1,1z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_settings_scope_provider.xml",
    "content": "<vector\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24\"\n    android:viewportWidth=\"24\"\n    android:tint=\"@color/settings_icon\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M14,12l-2,2l-2,-2l2,-2L14,12zM12,6l2.12,2.12l2.5,-2.5L12,1L7.38,5.62l2.5,2.5L12,6zM6,12l2.12,-2.12l-2.5,-2.5L1,12l4.62,4.62l2.5,-2.5L6,12zM18,12l-2.12,2.12l2.5,2.5L23,12l-4.62,-4.62l-2.5,2.5L18,12zM12,18l-2.12,-2.12l-2.5,2.5L12,23l4.62,-4.62l-2.5,-2.5L12,18z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_settings_theme_color.xml",
    "content": "<vector\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24\"\n    android:viewportWidth=\"24\"\n    android:tint=\"?attr/colorSecondary\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M12,2C6.49,2 2,6.49 2,12s4.49,10 10,10c1.38,0 2.5,-1.12 2.5,-2.5c0,-0.61 -0.23,-1.2 -0.64,-1.67c-0.08,-0.1 -0.13,-0.21 -0.13,-0.33c0,-0.28 0.22,-0.5 0.5,-0.5H16c3.31,0 6,-2.69 6,-6C22,6.04 17.51,2 12,2zM17.5,13c-0.83,0 -1.5,-0.67 -1.5,-1.5c0,-0.83 0.67,-1.5 1.5,-1.5s1.5,0.67 1.5,1.5C19,12.33 18.33,13 17.5,13zM14.5,9C13.67,9 13,8.33 13,7.5C13,6.67 13.67,6 14.5,6S16,6.67 16,7.5C16,8.33 15.33,9 14.5,9zM5,11.5C5,10.67 5.67,10 6.5,10S8,10.67 8,11.5C8,12.33 7.33,13 6.5,13S5,12.33 5,11.5zM11,7.5C11,8.33 10.33,9 9.5,9S8,8.33 8,7.5C8,6.67 8.67,6 9.5,6S11,6.67 11,7.5z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_status_card_error.xml",
    "content": "<vector\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24\"\n    android:viewportWidth=\"24\"\n    android:tint=\"?attr/colorError\">\n      \n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M4.47,21h15.06c1.54,0 2.5,-1.67 1.73,-3L13.73,4.99c-0.77,-1.33 -2.69,-1.33 -3.46,0L2.74,18c-0.77,1.33 0.19,3 1.73,3zM12,14c-0.55,0 -1,-0.45 -1,-1v-2c0,-0.55 0.45,-1 1,-1s1,0.45 1,1v2c0,0.55 -0.45,1 -1,1zM13,18h-2v-2h2v2z\"/>\n    \n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_status_card_ok.xml",
    "content": "<vector\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"30\"\n    android:viewportWidth=\"30\"\n    android:tint=\"?attr/colorSecondary\">\n\n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M15,5C9.48,5 5,9.48 5,15s4.48,10 10,10 10,-4.48 10,-10S20.52,5 15,5zM12.29,19.29L8.7,15.7c-0.39,-0.39 -0.39,-1.02 0,-1.41 0.39,-0.39 1.02,-0.39 1.41,0L13,17.17l6.88,-6.88c0.39,-0.39 1.02,-0.39 1.41,0 0.39,0.39 0.39,1.02 0,1.41l-7.59,7.59c-0.38,0.39 -1.02,0.39 -1.41,0z\"/>\n\n</vector>\n"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/container\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\">\n\n    <com.google.android.material.appbar.AppBarLayout\n        android:id=\"@+id/appbar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        android:fitsSystemWindows=\"true\">\n\n        <com.google.android.material.appbar.MaterialToolbar\n            android:id=\"@+id/toolbar\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"?attr/actionBarSize\"\n            app:title=\"@string/app_name\"\n            app:titleCentered=\"true\"\n            app:titleTextAppearance=\"@style/TextAppearance.MaterialComponents.Headline6\" />\n\n    </com.google.android.material.appbar.AppBarLayout>\n\n    <com.google.android.material.bottomnavigation.BottomNavigationView\n        android:id=\"@+id/nav_view\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"0dp\"\n        android:layout_marginEnd=\"0dp\"\n        android:background=\"?android:attr/windowBackground\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toRightOf=\"parent\"\n        app:menu=\"@menu/menu_activity_main_navigator\" />\n\n    <androidx.fragment.app.FragmentContainerView\n        android:id=\"@+id/nav_activity_main\"\n        android:name=\"androidx.navigation.fragment.NavHostFragment\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"0dp\"\n        app:defaultNavHost=\"true\"\n        app:layout_constraintTop_toBottomOf=\"@id/appbar\"\n        app:layout_constraintBottom_toTopOf=\"@id/nav_view\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toRightOf=\"parent\"\n        app:navGraph=\"@navigation/mobile_navigation\" />\n\n</androidx.constraintlayout.widget.ConstraintLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/component_app_info_card.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:paddingVertical=\"@dimen/dim_nano\"\n    android:paddingHorizontal=\"@dimen/dim_full\">\n\n    <ImageView\n        android:id=\"@+id/app_icon\"\n        android:layout_width=\"30dp\"\n        android:layout_height=\"30dp\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintEnd_toStartOf=\"@id/app_name\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        android:importantForAccessibility=\"no\"\n        android:scaleType=\"fitCenter\" />\n\n    <TextView\n        android:id=\"@+id/app_name\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        app:layout_constraintStart_toEndOf=\"@id/app_icon\"\n        app:layout_constraintEnd_toStartOf=\"@id/checkbox\"\n        app:layout_constraintTop_toTopOf=\"@id/app_icon\"\n        app:layout_constraintBottom_toTopOf=\"@id/package_name\"\n        android:layout_marginStart=\"12dp\"\n        android:layout_marginEnd=\"0dp\"\n        android:textAppearance=\"?attr/textAppearanceBodyMedium\"\n        android:maxLines=\"1\"\n        android:ellipsize=\"end\" />\n\n    <TextView\n        android:id=\"@+id/package_name\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        app:layout_constraintStart_toStartOf=\"@id/app_name\"\n        app:layout_constraintEnd_toEndOf=\"@id/app_name\"\n        app:layout_constraintTop_toBottomOf=\"@id/app_name\"\n        app:layout_constraintBottom_toBottomOf=\"@id/app_icon\"\n        android:fontFamily=\"monospace\"\n        android:ellipsize=\"end\"\n        android:maxLines=\"1\"\n        android:textAppearance=\"@style/TextAppearance.Material3.BodySmall\" />\n\n    <xyz.mufanc.applock.ui.widgets.UserSensitiveCheckBox\n        android:id=\"@+id/checkbox\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        app:layout_constraintStart_toEndOf=\"@id/app_name\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintBottom_toBottomOf=\"parent\" />\n\n</androidx.constraintlayout.widget.ConstraintLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/component_muiti_choice_item.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:paddingHorizontal=\"10dp\"\n    android:clickable=\"true\"\n    android:foreground=\"?attr/selectableItemBackground\"\n    android:duplicateParentState=\"true\">\n\n    <xyz.mufanc.applock.ui.widgets.UserSensitiveCheckBox\n        android:id=\"@+id/checkbox\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        android:duplicateParentState=\"true\" />\n\n    <TextView\n        android:id=\"@+id/scope_provider_name\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        app:layout_constraintStart_toEndOf=\"@id/checkbox\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        android:duplicateParentState=\"true\" />\n\n</androidx.constraintlayout.widget.ConstraintLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/component_preference_card.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<com.google.android.material.card.MaterialCardView\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_marginHorizontal=\"@dimen/dim_full\"\n    android:layout_marginVertical=\"@dimen/dim_nano\">\n\n    <androidx.constraintlayout.widget.ConstraintLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:padding=\"@dimen/dim_full\">\n\n        <ImageView\n            android:id=\"@android:id/icon\"\n            android:layout_width=\"25dp\"\n            android:layout_height=\"25dp\"\n            app:layout_constraintStart_toStartOf=\"parent\"\n            app:layout_constraintTop_toTopOf=\"@android:id/title\"\n            app:layout_constraintBottom_toBottomOf=\"@android:id/summary\"\n            android:layout_marginHorizontal=\"@dimen/dim_nano\"\n            android:importantForAccessibility=\"no\" />\n\n        <TextView\n            android:id=\"@android:id/title\"\n            android:layout_width=\"0dp\"\n            android:layout_height=\"wrap_content\"\n            app:layout_constraintStart_toEndOf=\"@android:id/icon\"\n            app:layout_constraintEnd_toStartOf=\"@android:id/widget_frame\"\n            app:layout_constraintTop_toTopOf=\"parent\"\n            app:layout_constraintBottom_toTopOf=\"@android:id/summary\"\n            android:layout_marginHorizontal=\"@dimen/dim_full\"\n            android:textAppearance=\"@style/TextAppearance.Material3.BodyMedium\" />\n\n        <TextView\n            android:id=\"@android:id/summary\"\n            android:layout_width=\"0dp\"\n            android:layout_height=\"wrap_content\"\n            app:layout_constraintStart_toStartOf=\"@android:id/title\"\n            app:layout_constraintEnd_toEndOf=\"@android:id/title\"\n            app:layout_constraintTop_toBottomOf=\"@android:id/title\"\n            app:layout_constraintBottom_toBottomOf=\"parent\"\n            android:layout_marginTop=\"@dimen/dim_pico\"\n            android:textAppearance=\"@style/TextAppearance.Material3.BodySmall\" />\n\n        <LinearLayout android:id=\"@android:id/widget_frame\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"0dp\"\n            app:layout_constraintEnd_toEndOf=\"parent\"\n            app:layout_constraintTop_toTopOf=\"parent\"\n            app:layout_constraintBottom_toBottomOf=\"parent\"\n            android:gravity=\"center_vertical\"\n            android:orientation=\"vertical\" />\n\n    </androidx.constraintlayout.widget.ConstraintLayout>\n</com.google.android.material.card.MaterialCardView>\n"
  },
  {
    "path": "app/src/main/res/layout/component_status_card.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:padding=\"@dimen/dim_full\">\n\n    <ImageView\n        android:id=\"@+id/status_icon\"\n        android:layout_width=\"30dp\"\n        android:layout_height=\"30dp\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"@id/title\"\n        app:layout_constraintBottom_toBottomOf=\"@id/description\"\n        android:importantForAccessibility=\"no\" />\n\n    <TextView\n        android:id=\"@+id/title\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        app:layout_constraintStart_toEndOf=\"@id/status_icon\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintBottom_toTopOf=\"@id/description\"\n        android:layout_marginStart=\"@dimen/dim_full\"\n        android:textAppearance=\"@style/TextAppearance.Material3.BodyMedium\" />\n\n    <TextView\n        android:id=\"@+id/description\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        app:layout_constraintStart_toStartOf=\"@id/title\"\n        app:layout_constraintEnd_toEndOf=\"@id/title\"\n        app:layout_constraintTop_toBottomOf=\"@id/title\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        android:layout_marginTop=\"@dimen/dim_pico\"\n        android:fontFamily=\"monospace\"\n        android:textAppearance=\"@style/TextAppearance.Material3.BodySmall\" />\n\n</androidx.constraintlayout.widget.ConstraintLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/dialog_license_list.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:paddingHorizontal=\"@dimen/dim_full\"\n    android:paddingVertical=\"@dimen/dim_full\">\n\n    <androidx.recyclerview.widget.RecyclerView\n        android:id=\"@+id/license_list\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintBottom_toBottomOf=\"parent\" />\n\n</androidx.constraintlayout.widget.ConstraintLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/dialog_theme_color_selector.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:paddingHorizontal=\"@dimen/dim_full\"\n    android:paddingVertical=\"@dimen/dim_full\" >\n\n    <androidx.recyclerview.widget.RecyclerView\n        android:id=\"@+id/theme_colors\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\" />\n\n</androidx.constraintlayout.widget.ConstraintLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/fragment_apps.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<layout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n\n    <data>\n        <import type=\"android.view.View\" />\n        <variable name=\"props\" type=\"xyz.mufanc.applock.ui.fragment.apps.AppsViewModel\" />\n    </data>\n\n    <androidx.constraintlayout.widget.ConstraintLayout\n        tools:context=\".ui.fragment.home.HomeFragment\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:paddingBottom=\"@dimen/dim_full\">\n\n        <com.google.android.material.progressindicator.LinearProgressIndicator\n            android:id=\"@+id/progress\"\n            android:layout_width=\"0dp\"\n            android:layout_height=\"wrap_content\"\n            app:layout_constraintStart_toStartOf=\"parent\"\n            app:layout_constraintEnd_toEndOf=\"parent\"\n            app:layout_constraintTop_toTopOf=\"parent\"\n            app:layout_constraintBottom_toBottomOf=\"parent\"\n            app:layout_constraintWidth_percent=\"0.6\"\n            app:trackCornerRadius=\"10dp\"\n            android:indeterminate=\"true\"\n            android:visibility=\"@{ props.loading ? View.VISIBLE : View.GONE }\" />\n\n        <androidx.recyclerview.widget.RecyclerView\n            android:id=\"@+id/app_list\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:clipToPadding=\"false\"\n            android:requiresFadingEdge=\"vertical\"\n            android:fadingEdgeLength=\"@dimen/dim_full\" />\n\n    </androidx.constraintlayout.widget.ConstraintLayout>\n</layout>\n"
  },
  {
    "path": "app/src/main/res/layout/fragment_home.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<layout xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n\n    <data>\n        <variable name=\"props\" type=\"xyz.mufanc.applock.ui.fragment.home.HomeViewModel\" />\n    </data>\n\n    <androidx.appcompat.widget.LinearLayoutCompat\n        xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        xmlns:tools=\"http://schemas.android.com/tools\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:padding=\"@dimen/dim_full\"\n        tools:context=\".ui.fragment.apps.AppsFragment\"\n        android:orientation=\"vertical\">\n\n        <xyz.mufanc.applock.ui.widgets.StatusCard\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            app:ok=\"@{ props.isModuleLoaded }\"\n            app:title=\"@{ props.moduleLoadState }\"\n            app:description=\"@{ props.frameworkInfo }\" />\n\n    </androidx.appcompat.widget.LinearLayoutCompat>\n\n</layout>\n"
  },
  {
    "path": "app/src/main/res/layout/fragment_settings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\".ui.fragment.settings.SettingsFragment\">\n\n</androidx.constraintlayout.widget.ConstraintLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/item_dialog_license_list.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.appcompat.widget.LinearLayoutCompat\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:orientation=\"vertical\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:padding=\"10dp\"\n    android:background=\"?attr/selectableItemBackground\">\n\n    <TextView android:id=\"@+id/project_name\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:textAppearance=\"@style/TextAppearance.Material3.TitleSmall\"\n        android:textSize=\"12sp\" />\n\n    <TextView android:id=\"@+id/license_name\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:textAppearance=\"@style/TextAppearance.Material3.BodySmall\" />\n\n</androidx.appcompat.widget.LinearLayoutCompat>\n"
  },
  {
    "path": "app/src/main/res/layout/item_dialog_scope_provider_list.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<xyz.mufanc.applock.ui.widgets.MultiChoiceItem\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\" />\n"
  },
  {
    "path": "app/src/main/res/layout/item_dialog_theme_color_list.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\">\n\n    <ImageView\n        android:id=\"@+id/icon\"\n        android:layout_gravity=\"center\"\n        android:layout_width=\"60dp\"\n        android:layout_height=\"60dp\"\n        android:padding=\"10dp\"\n        android:layout_marginVertical=\"5dp\"\n        android:scaleType=\"fitCenter\"\n        android:background=\"@android:color/transparent\"\n        android:importantForAccessibility=\"no\" />\n\n</FrameLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/item_fragment_apps_app_list.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FrameLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_marginTop=\"@dimen/dim_full\"\n    android:layout_marginHorizontal=\"@dimen/dim_full\">\n\n    <xyz.mufanc.applock.ui.widgets.AppInfoCard\n        android:id=\"@+id/app_info\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\" />\n\n</FrameLayout>\n"
  },
  {
    "path": "app/src/main/res/menu/menu_activity_main_navigator.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n    <item\n        android:id=\"@+id/nav_home\"\n        android:icon=\"@drawable/ic_nav_home\"\n        android:title=\"@string/nav_title_home\" />\n\n    <item\n        android:id=\"@+id/nav_apps\"\n        android:icon=\"@drawable/ic_nav_apps\"\n        android:title=\"@string/nav_title_apps\"\n        android:visible=\"false\" />\n\n    <item\n        android:id=\"@+id/nav_settings\"\n        android:icon=\"@drawable/ic_nav_settings\"\n        android:title=\"@string/nav_title_settings\" />\n\n</menu>\n"
  },
  {
    "path": "app/src/main/res/menu/menu_fragment_apps.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n\n    <item\n        android:id=\"@+id/search\"\n        android:icon=\"@drawable/ic_apps_search\"\n        android:title=\"\"\n        app:actionViewClass=\"androidx.appcompat.widget.SearchView\"\n        app:showAsAction=\"ifRoom\" />\n\n    <item\n        android:id=\"@+id/more\"\n        android:icon=\"@drawable/ic_apps_more\"\n        android:title=\"\"\n        app:showAsAction=\"ifRoom\">\n\n        <menu>\n            <item android:title=\"@string/menu_fragment_apps_filter_title\">\n                <menu>\n                    <item\n                        android:id=\"@+id/filter_mode_launcher\"\n                        android:title=\"@string/menu_fragment_apps_filter_mode_launcher\" />\n                    <item\n                        android:id=\"@+id/filter_mode_non_system\"\n                        android:title=\"@string/menu_fragment_apps_filter_mode_non_system\" />\n                    <item\n                        android:id=\"@+id/filter_mode_all\"\n                        android:title=\"@string/menu_fragment_apps_filter_mode_all\" />\n                </menu>\n            </item>\n        </menu>\n    </item>\n\n</menu>\n"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi/ic_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@color/ic_launcher_background\"/>\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\"/>\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi/ic_launcher_round.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@color/ic_launcher_background\"/>\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\"/>\n</adaptive-icon>\n"
  },
  {
    "path": "app/src/main/res/navigation/mobile_navigation.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<navigation\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:id=\"@+id/mobile_navigation\"\n    app:startDestination=\"@+id/nav_home\">\n\n    <fragment\n        android:id=\"@+id/nav_home\"\n        android:name=\"xyz.mufanc.applock.ui.fragment.home.HomeFragment\"\n        android:label=\"@string/nav_title_home\"\n        tools:layout=\"@layout/fragment_apps\" />\n\n    <fragment\n        android:id=\"@+id/nav_apps\"\n        android:name=\"xyz.mufanc.applock.ui.fragment.apps.AppsFragment\"\n        android:label=\"@string/nav_title_apps\"\n        tools:layout=\"@layout/fragment_home\" />\n\n    <fragment\n        android:id=\"@+id/nav_settings\"\n        android:name=\"xyz.mufanc.applock.ui.fragment.settings.SettingsFragment\"\n        android:label=\"@string/nav_title_settings\"\n        tools:layout=\"@layout/fragment_settings\" />\n\n</navigation>\n"
  },
  {
    "path": "app/src/main/res/values/arrays.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <string-array name=\"license_list\">\n        <!-- project | license | link -->\n        <item>JetBrains - Kotlin | Apache-2.0 License | https://github.com/JetBrains/kotlin</item>\n        <item>Google - AndroidX | Apache-2.0 License | https://source.android.com/</item>\n        <item>Material Components | Apache-2.0 License | https://github.com/material-components/material-components-android</item>\n        <item>RikkaApps - MaterialThemeBuilder | MIT License | https://github.com/RikkaApps/MaterialThemeBuilder</item>\n        <item>Bumptech - Glide | BSD License | https://github.com/bumptech/glide</item>\n        <item>Mufanc - AutoX | MIT License | https://github.com/Mufanc/AutoX</item>\n        <item>jOOQ - jOOR | Apache-2.0 License | https://github.com/jOOQ/jOOR</item>\n    </string-array>\n\n    <string-array name=\"scope_providers\">\n        <item>PreferenceScopeProvider</item>\n        <item>MediaSessionProvider</item>\n        <item>PowerManagerProvider</item>\n    </string-array>\n\n    <string-array name=\"scope_provider_names\">\n        <item>@string/scope_provider_default</item>\n        <item>@string/scope_provider_media_session</item>\n        <item>@string/scope_provider_power_manager</item>\n    </string-array>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/attrs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <declare-styleable name=\"StatusCard\">\n        <attr name=\"ok\" format=\"boolean\" />\n        <attr name=\"title\" format=\"string\" />\n        <attr name=\"description\" format=\"string\" />\n    </declare-styleable>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"ic_launcher_foreground\">#FFFFFF</color>\n    <color name=\"ic_launcher_background\">#F48FB1</color>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/dimens.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <dimen name=\"dim_full\">16dp</dimen>\n    <dimen name=\"dim_mini\">12dp</dimen>\n    <dimen name=\"dim_nano\">5dp</dimen>\n    <dimen name=\"dim_pico\">2dp</dimen>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\" translatable=\"false\">AppLock</string>\n\n    <!-- nav -->\n    <string name=\"nav_title_home\" translatable=\"false\">@string/app_name</string>\n    <string name=\"nav_title_apps\">Apps</string>\n    <string name=\"nav_title_settings\">Settings</string>\n\n    <!-- home fragment -->\n    <string name=\"home_status_module_loaded\">Module loaded</string>\n    <string name=\"home_status_module_not_loaded\">Module not loaded</string>\n\n    <!-- apps fragment -->\n    <string name=\"menu_fragment_apps_filter_title\">Filter</string>\n    <string name=\"menu_fragment_apps_filter_mode_launcher\">Apps on launcher</string>\n    <string name=\"menu_fragment_apps_filter_mode_non_system\">Non-system apps</string>\n    <string name=\"menu_fragment_apps_filter_mode_all\">All apps</string>\n\n    <!-- settings fragment -->\n    <string name=\"settings_category_settings\">Settings</string>\n    <string name=\"settings_item_hide_icon\">Hide module icon in launcher</string>\n    <string name=\"settings_item_hide_icon_summary\">You can still open the app in Xposed manager</string>\n    <string name=\"settings_item_scope_providers\">Scope providers</string>\n    <string name=\"settings_item_scope_providers_summary\">Select providers to enable (reboot required)</string>\n    <string name=\"settings_item_theme_color\">Theme color</string>\n    <string name=\"settings_item_theme_color_summary\">Choose an element you like!</string>\n    <string name=\"settings_category_about\">About</string>\n    <string name=\"settings_item_author\">Author</string>\n    <string name=\"settings_item_author_summary\" translatable=\"false\">Mufanc</string>\n    <string name=\"settings_item_project_link\">Project Link</string>\n    <string name=\"settings_item_project_link_summary\">@string/misc_project_link</string>\n    <string name=\"settings_item_license\">Open source license</string>\n    <string name=\"settings_item_license_summary\">Click to show</string>\n\n    <!-- scope providers -->\n    <string name=\"message_no_available_provider\">No available provider</string>\n    <string name=\"scope_provider_default\">Default</string>\n    <string name=\"scope_provider_media_session\">Media sessions</string>\n    <string name=\"scope_provider_power_manager\">Power manager</string>\n\n    <!-- dialogs -->\n    <string name=\"dialog_theme_color_selector_title\">@string/settings_item_theme_color</string>\n    <string name=\"dialog_theme_color_selector_dismiss\">Dismiss</string>\n    <string name=\"dialog_license_list_title\">Open source licenses</string>\n    <string name=\"dialog_license_list_dismiss\">@string/dialog_theme_color_selector_dismiss</string>\n    <string name=\"dialog_scope_provider_btn_dismiss\">Dismiss</string>\n\n    <!-- misc -->\n    <string name=\"misc_theme_color_preference_key\" translatable=\"false\">theme_color</string>\n    <string name=\"misc_author_link\" translatable=\"false\">https://github.com/Mufanc</string>\n    <string name=\"misc_project_link\" translatable=\"false\">https://github.com/Mufanc/AppLock</string>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/themes.xml",
    "content": "<resources xmlns:tools=\"http://schemas.android.com/tools\">\n    <style name=\"Theme.AppLock.NatureElement.Anemo\" parent=\"Theme.AppLock.Light.NatureElement.Anemo\"/>\n    <style name=\"Theme.AppLock.NatureElement.Cyro\" parent=\"Theme.AppLock.Light.NatureElement.Cryo\"/>\n    <style name=\"Theme.AppLock.NatureElement.Dendro\" parent=\"Theme.AppLock.Light.NatureElement.Dendro\"/>\n    <style name=\"Theme.AppLock.NatureElement.Electro\" parent=\"Theme.AppLock.Light.NatureElement.Electro\"/>\n    <style name=\"Theme.AppLock.NatureElement.Geo\" parent=\"Theme.AppLock.Light.NatureElement.Geo\"/>\n    <style name=\"Theme.AppLock.NatureElement.Hydro\" parent=\"Theme.AppLock.Light.NatureElement.Hydro\"/>\n    <style name=\"Theme.AppLock.NatureElement.Pyro\" parent=\"Theme.AppLock.Light.NatureElement.Pyro\"/>\n    <style name=\"Theme.AppLock.NatureElement.Dynamic\" parent=\"Theme.AppLock.Light.NatureElement.Dynamic\"/>\n\n    <style name=\"Theme.AppLock\" parent=\"Theme.Material3.Light.NoActionBar\">\n        <!-- status bar -->\n        <item name=\"android:statusBarColor\">@android:color/transparent</item>\n        <item name=\"android:windowLightStatusBar\">?attr/isLightTheme</item>\n\n        <!-- navigation bar -->\n        <item name=\"android:navigationBarColor\">@android:color/transparent</item>\n        <item name=\"android:windowLightNavigationBar\">?attr/isLightTheme</item>\n    </style>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values-night/themes.xml",
    "content": "<resources>\n    <style name=\"Theme.AppLock.NatureElement.Anemo\" parent=\"Theme.AppLock.Dark.NatureElement.Anemo\"/>\n    <style name=\"Theme.AppLock.NatureElement.Cyro\" parent=\"Theme.AppLock.Dark.NatureElement.Cryo\"/>\n    <style name=\"Theme.AppLock.NatureElement.Dendro\" parent=\"Theme.AppLock.Dark.NatureElement.Dendro\"/>\n    <style name=\"Theme.AppLock.NatureElement.Electro\" parent=\"Theme.AppLock.Dark.NatureElement.Electro\"/>\n    <style name=\"Theme.AppLock.NatureElement.Geo\" parent=\"Theme.AppLock.Dark.NatureElement.Geo\"/>\n    <style name=\"Theme.AppLock.NatureElement.Hydro\" parent=\"Theme.AppLock.Dark.NatureElement.Hydro\"/>\n    <style name=\"Theme.AppLock.NatureElement.Pyro\" parent=\"Theme.AppLock.Dark.NatureElement.Pyro\"/>\n    <style name=\"Theme.AppLock.NatureElement.Dynamic\" parent=\"Theme.AppLock.Dark.NatureElement.Dynamic\"/>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values-v31/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"ic_launcher_foreground\">@android:color/system_accent1_0</color>\n    <color name=\"ic_launcher_background\">@android:color/system_accent1_500</color>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values-zh-rCN/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <!-- nav -->\n    <string name=\"nav_title_apps\">应用选择</string>\n    <string name=\"nav_title_settings\">设置</string>\n\n    <!-- home fragment -->\n    <string name=\"home_status_module_loaded\">模块已加载</string>\n    <string name=\"home_status_module_not_loaded\">模块未加载</string>\n\n    <!-- apps fragment -->\n    <string name=\"menu_fragment_apps_filter_title\">过滤</string>\n    <string name=\"menu_fragment_apps_filter_mode_launcher\">桌面应用</string>\n    <string name=\"menu_fragment_apps_filter_mode_non_system\">非系统应用</string>\n    <string name=\"menu_fragment_apps_filter_mode_all\">所有应用</string>\n\n    <!-- settings fragment -->\n    <string name=\"settings_category_settings\">设置</string>\n    <string name=\"settings_item_hide_icon\">隐藏启动器图标</string>\n    <string name=\"settings_item_hide_icon_summary\">仍可在 Xposed 管理器中打开此应用</string>\n    <string name=\"settings_item_scope_providers\">作用域提供器</string>\n    <string name=\"settings_item_scope_providers_summary\">选择要启用的提供器（重启生效）</string>\n    <string name=\"settings_item_theme_color\">主题色</string>\n    <string name=\"settings_item_theme_color_summary\">选择一种元素力来加持 AppLock！</string>\n    <string name=\"settings_category_about\">关于</string>\n    <string name=\"settings_item_author\">作者</string>\n    <string name=\"settings_item_project_link\">项目链接</string>\n    <string name=\"settings_item_project_link_summary\">@string/misc_project_link</string>\n    <string name=\"settings_item_license\">开放源代码协议</string>\n    <string name=\"settings_item_license_summary\">点击查看</string>\n\n    <!-- scope providers -->\n    <string name=\"message_no_available_provider\">无可用的提供器</string>\n    <string name=\"scope_provider_default\">默认</string>\n    <string name=\"scope_provider_media_session\">媒体会话</string>\n    <string name=\"scope_provider_power_manager\">电源管理</string>\n\n    <!-- dialogs -->\n    <string name=\"dialog_theme_color_selector_title\">@string/settings_item_theme_color</string>\n    <string name=\"dialog_theme_color_selector_dismiss\">关闭</string>\n    <string name=\"dialog_license_list_title\">开放源代码协议</string>\n    <string name=\"dialog_license_list_dismiss\">@string/dialog_theme_color_selector_dismiss</string>\n    <string name=\"dialog_scope_provider_btn_dismiss\">关闭</string>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/xml/preferences.xml",
    "content": "<PreferenceScreen xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n    <PreferenceCategory\n        app:key=\"applock\"\n        app:title=\"@string/settings_category_settings\">\n\n        <SwitchPreferenceCompat\n            app:key=\"hide_icon\"\n            app:title=\"@string/settings_item_hide_icon\"\n            app:summary=\"@string/settings_item_hide_icon_summary\"\n            app:icon=\"@drawable/ic_settings_hide_icon\" />\n\n        <Preference\n            android:key=\"scope_providers\"\n            android:title=\"@string/settings_item_scope_providers\"\n            android:summary=\"@string/settings_item_scope_providers_summary\"\n            android:icon=\"@drawable/ic_settings_scope_provider\" />\n\n        <Preference\n            app:key=\"@string/misc_theme_color_preference_key\"\n            app:title=\"@string/settings_item_theme_color\"\n            app:summary=\"@string/settings_item_theme_color_summary\"\n            app:icon=\"@drawable/ic_settings_theme_color\" />\n\n    </PreferenceCategory>\n\n<!--    <PreferenceCategory-->\n<!--        app:key=\"backup_and_restore\"-->\n<!--        app:title=\"@string/settings_category_backup_restore\">-->\n\n<!--        <Preference-->\n<!--            app:key=\"backup\"-->\n<!--            app:title=\"@string/settings_item_backup\"-->\n<!--            app:summary=\"@string/settings_item_backup_summary\"-->\n<!--            app:icon=\"@drawable/ic_settings_backup\" />-->\n\n<!--        <Preference-->\n<!--            app:key=\"restore\"-->\n<!--            app:title=\"@string/settings_item_restore\"-->\n<!--            app:summary=\"@string/settings_item_restore_summary\"-->\n<!--            app:icon=\"@drawable/ic_settings_restore\" />-->\n\n<!--    </PreferenceCategory>-->\n\n    <PreferenceCategory\n        app:key=\"about\"\n        app:title=\"@string/settings_category_about\">\n\n        <Preference\n            app:title=\"@string/settings_item_author\"\n            app:summary=\"@string/settings_item_author_summary\"\n            app:icon=\"@drawable/ic_settings_author\">\n\n            <intent\n                android:action=\"android.intent.action.VIEW\"\n                android:data=\"@string/misc_author_link\" />\n\n        </Preference>\n\n        <Preference\n            app:title=\"@string/settings_item_project_link\"\n            app:summary=\"@string/settings_item_project_link_summary\"\n            app:icon=\"@drawable/ic_settings_project_link\">\n\n            <intent\n                android:action=\"android.intent.action.VIEW\"\n                android:data=\"@string/misc_project_link\" />\n\n        </Preference>\n\n        <Preference\n            app:key=\"license\"\n            app:title=\"@string/settings_item_license\"\n            app:summary=\"@string/settings_item_license_summary\"\n            app:icon=\"@drawable/ic_settings_license\" />\n\n    </PreferenceCategory>\n</PreferenceScreen>\n"
  },
  {
    "path": "build.gradle.kts",
    "content": "plugins {\n    alias(libs.plugins.agp.app) apply false\n    alias(libs.plugins.kotlin.android) apply false\n    alias(libs.plugins.agp.library) apply false\n}\n\nval androidMinSdkVersion by extra(28)\nval androidTargetSdkVersion by extra(34)\nval androidCompileSdkVersion by extra(34)\n\nval androidSourceCompatibility by extra(JavaVersion.VERSION_21)\nval androidTargetCompatibility by extra(JavaVersion.VERSION_21)\nval androidKotlinJvmTarget by extra(\"21\")\n"
  },
  {
    "path": "gradle/libs.versions.toml",
    "content": "[versions]\nagp = \"8.4.0\"\nkotlin = \"1.9.22\"\ncore-ktx = \"1.12.0\"\nappcompat = \"1.6.1\"\nmaterial = \"1.11.0\"\nksp = \"1.9.22-1.0.17\"\nautox = \"1.0.0\"\nxposed-api = \"100\"\nxposed-service = \"100-1.0.0\"\njoor = \"0.9.14\"\nconstraintlayout = \"2.1.4\"\nlifecycle-livedata-ktx = \"2.7.0\"\nlifecycle-viewmodel-ktx = \"2.7.0\"\nnavigation-fragment-ktx = \"2.7.6\"\nnavigation-ui-ktx = \"2.7.6\"\nmaterial-color = \"1.3.3\"\nandroidx-preference = \"1.2.1\"\nflexi-locale = \"1.0.1\"\nglide = \"4.13.2\"\nhiddenapi-refine = \"4.4.0\"\n\n[libraries]\ncore-ktx = { module = \"androidx.core:core-ktx\", version.ref = \"core-ktx\" }\nappcompat = { module = \"androidx.appcompat:appcompat\", version.ref = \"appcompat\" }\nmaterial = { module = \"com.google.android.material:material\", version.ref = \"material\" }\nxposed-api = { module = \"io.github.libxposed:api\", version.ref = \"xposed-api\" }\nxposed-service = { module = \"io.github.libxposed:service\", version.ref = \"xposed-service\" }\nautox-ksp = { module = \"xyz.mufanc.autox:ksp\", version.ref = \"autox\" }\nautox-annotation = { module = \"xyz.mufanc.autox:annotation\", version.ref = \"autox\" }\njoor = { module = \"org.jooq:joor\", version.ref = \"joor\" }\nconstraintlayout = { module = \"androidx.constraintlayout:constraintlayout\", version.ref = \"constraintlayout\" }\nlifecycle-livedata-ktx = { module = \"androidx.lifecycle:lifecycle-livedata-ktx\", version.ref = \"lifecycle-livedata-ktx\" }\nlifecycle-viewmodel-ktx = { module = \"androidx.lifecycle:lifecycle-viewmodel-ktx\", version.ref = \"lifecycle-viewmodel-ktx\" }\nnavigation-fragment-ktx = { module = \"androidx.navigation:navigation-fragment-ktx\", version.ref = \"navigation-fragment-ktx\" }\nnavigation-ui-ktx = { module = \"androidx.navigation:navigation-ui-ktx\", version.ref = \"navigation-ui-ktx\" }\nandroidx-preference = { module = \"androidx.preference:preference\", version.ref = \"androidx-preference\" }\nandroidx-preference-ktx = { module = \"androidx.preference:preference-ktx\", version.ref = \"androidx-preference\" }\nglide = { module = \"com.github.bumptech.glide:glide\", version.ref = \"glide\" }\nglide-compiler = { module = \"com.github.bumptech.glide:compiler\", version.ref = \"glide\" }\nhiddenapi-annotation-processor = { module = \"dev.rikka.tools.refine:annotation-processor\", version.ref = \"hiddenapi-refine\" }\nhiddenapi-annotation = { module = \"dev.rikka.tools.refine:annotation\", version.ref = \"hiddenapi-refine\" }\n\n[plugins]\nagp-app = { id = \"com.android.application\", version.ref = \"agp\" }\nagp-library = { id = \"com.android.library\", version.ref = \"agp\" }\nkotlin-android = { id = \"org.jetbrains.kotlin.android\", version.ref = \"kotlin\" }\nksp = { id = \"com.google.devtools.ksp\", version.ref = \"ksp\" }\nmaterial-color = { id = \"dev.rikka.tools.materialthemebuilder\", version.ref = \"material-color\" }\nflexi-locale = { id = \"com.highcapable.flexilocale\", version.ref = \"flexi-locale\" }\nhiddenapi-refine = { id = \"dev.rikka.tools.refine\", version.ref = \"hiddenapi-refine\" }\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Sun Dec 10 23:29:02 CST 2023\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-8.6-bin.zip\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n# AndroidX package structure to make it clearer which packages are bundled with the\n# Android operating system, and which are packaged with your app's APK\n# https://developer.android.com/topic/libraries/support-library/androidx-rn\nandroid.useAndroidX=true\n# Kotlin code style for this project: \"official\" or \"obsolete\":\nkotlin.code.style=official\n# Enables namespacing of each library's R class so that its R class includes only the\n# resources declared in the library itself and none from the library's dependencies,\n# thereby reducing the size of the R class for that library\nandroid.nonTransitiveRClass=true\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n#\n# Copyright 2015 the original author or authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS='\"-Xmx64m\" \"-Xms64m\"'\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin or MSYS, switch paths to Windows format before running java\nif [ \"$cygwin\" = \"true\" -o \"$msys\" = \"true\" ] ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=`expr $i + 1`\n    done\n    case $i in\n        0) set -- ;;\n        1) set -- \"$args0\" ;;\n        2) set -- \"$args0\" \"$args1\" ;;\n        3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=`save \"$@\"`\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@rem\n@rem Copyright 2015 the original author or authors.\n@rem\n@rem Licensed under the Apache License, Version 2.0 (the \"License\");\n@rem you may not use this file except in compliance with the License.\n@rem You may obtain a copy of the License at\n@rem\n@rem      https://www.apache.org/licenses/LICENSE-2.0\n@rem\n@rem Unless required by applicable law or agreed to in writing, software\n@rem distributed under the License is distributed on an \"AS IS\" BASIS,\n@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n@rem See the License for the specific language governing permissions and\n@rem limitations under the License.\n@rem\n\n@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Resolve any \".\" and \"..\" in APP_HOME to make it shorter.\nfor %%i in (\"%APP_HOME%\") do set APP_HOME=%%~fi\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\"-Xmx64m\" \"-Xms64m\"\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto execute\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto execute\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %*\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "settings.gradle.kts",
    "content": "pluginManagement {\n    repositories {\n        google()\n        mavenCentral()\n        gradlePluginPortal()\n    }\n}\n\ndependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        google()\n        mavenCentral()\n        maven(\"https://jitpack.io\")\n        mavenLocal {\n            content {\n                includeGroup(\"io.github.libxposed\")\n            }\n        }\n    }\n}\n\nrootProject.name = \"AppLock\"\ninclude(\":app\")\ninclude(\":api-stub\")\n"
  }
]