Full Code of YurikeyDev/yurikey for AI

main 442cfc13e061 cached
89 files
783.2 KB
229.3k tokens
58 symbols
1 requests
Download .txt
Showing preview only (825K chars total). Download the full file or copy to clipboard to get everything.
Repository: YurikeyDev/yurikey
Branch: main
Commit: 442cfc13e061
Files: 89
Total size: 783.2 KB

Directory structure:
gitextract_9qmznag3/

├── .github/
│   └── workflows/
│       ├── build-release.yml
│       └── build-test.yml
├── .gitignore
├── LICENSE
├── Module/
│   ├── META-INF/
│   │   └── com/
│   │       └── google/
│   │           └── android/
│   │               ├── update-binary
│   │               └── updater-script
│   ├── Yuri/
│   │   ├── action/
│   │   │   ├── integrity.sh
│   │   │   └── root.sh
│   │   ├── boot_hash.sh
│   │   ├── clear_all_detection_traces.sh
│   │   ├── hma.sh
│   │   ├── kill_all.sh
│   │   ├── kill_google_process.sh
│   │   ├── pif.sh
│   │   ├── rka/
│   │   │   ├── arm64-v8a/
│   │   │   │   └── sqlite3
│   │   │   ├── armeabi/
│   │   │   │   └── sqlite3
│   │   │   ├── armeabi-v7a/
│   │   │   │   └── sqlite3
│   │   │   ├── jsonarray.sh
│   │   │   ├── lspmcfg.sh
│   │   │   ├── x86/
│   │   │   │   └── sqlite3
│   │   │   └── x86_64/
│   │   │       └── sqlite3
│   │   ├── security_patch.sh
│   │   ├── select_app_neccesary.sh
│   │   ├── target_txt.sh
│   │   ├── yuri_keybox.sh
│   │   ├── yurirka.sh
│   │   └── znctl.sh
│   ├── action.sh
│   ├── customize.sh
│   ├── module.prop
│   ├── service.sh
│   ├── uninstall.sh
│   └── webroot/
│       ├── common/
│       │   ├── FixWidevineL1/
│       │   │   ├── FixWidevineL1.sh
│       │   │   └── attestation
│       │   ├── boot_hash.sh
│       │   ├── device-info.sh
│       │   ├── lsposed2.sh
│       │   ├── pif2.sh
│       │   ├── twrp.sh
│       │   └── widevinel1.sh
│       ├── config.json
│       ├── css/
│       │   └── style.css
│       ├── index.html
│       ├── js/
│       │   ├── components/
│       │   │   ├── clock.js
│       │   │   ├── navigation.js
│       │   │   └── networkStatus.js
│       │   ├── dev.js
│       │   ├── device.js
│       │   ├── main.js
│       │   ├── redirect.js
│       │   ├── theme.js
│       │   ├── utils/
│       │   │   ├── i18n.js
│       │   │   ├── scriptExecutor.js
│       │   │   └── toast.js
│       │   └── version.js
│       ├── json/
│       │   └── dev.json
│       └── lang/
│           ├── af.json
│           ├── ar.json
│           ├── ca.json
│           ├── cs.json
│           ├── da.json
│           ├── de.json
│           ├── el.json
│           ├── es.json
│           ├── fi.json
│           ├── fr.json
│           ├── he.json
│           ├── hu.json
│           ├── it.json
│           ├── ja.json
│           ├── ko.json
│           ├── nl.json
│           ├── no.json
│           ├── pl.json
│           ├── pt.json
│           ├── ro.json
│           ├── ru.json
│           ├── sr.json
│           ├── sv.json
│           ├── tr.json
│           ├── uk.json
│           ├── vi.json
│           └── zh.json
├── README.md
├── changelog.md
├── config.json
├── doc/
│   └── README_ja-JP.md
├── key
└── update.json

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/workflows/build-release.yml
================================================
name: Build Release Module

on:
  workflow_dispatch:

permissions:
  contents: write

jobs:
  release:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v6

      - name: Extract version
        id: version
        run: |
          VERSION=$(grep -m 1 -oP 'v[0-9]+(\.[0-9]+)+' changelog.md)
          if [ -z "$VERSION" ]; then
            echo "No version found in changelog"
            exit 0
          fi

          VERSION_CODE=$(echo $VERSION | sed 's/v//' | sed 's/\.//g')
          RAW_VERSION=$(echo $VERSION | sed 's/v//')
          echo "version=$VERSION" >> $GITHUB_OUTPUT
          echo "version_code=$VERSION_CODE" >> $GITHUB_OUTPUT
          echo "raw_version=$RAW_VERSION" >> $GITHUB_OUTPUT
          
      - name: Update module.prop
        run: |
          sed -i "s/^version=.*/version=${{ steps.version.outputs.version }}/" Module/module.prop
          sed -i "s/^versionCode=.*/versionCode=${{ steps.version.outputs.version_code }}/" Module/module.prop

      - name: Update update.json
        run: |
          ZIP_URL="https://github.com/Yurii0307/yurikey/releases/download/${{ steps.version.outputs.version }}/Yurikey-${{ steps.version.outputs.version }}.signed.zip"
          
          jq --arg v "${{ steps.version.outputs.raw_version }}" \
             --argjson vc "${{ steps.version.outputs.version_code }}" \
             --arg url "$ZIP_URL" \
             '.version = $v | .versionCode = $vc | .zipUrl = $url' \
             update.json > update_tmp.json && mv update_tmp.json update.json
 
      - name: Zip Module folder (Upload module)
        run: |
          cd Module
          zip -r ../Yurikey-${{ steps.version.outputs.version }}.signed.zip .

      - name: Commit and push if changed
        run: |
          git config user.name "github-actions[bot]"
          git config user.email "github-actions[bot]@users.noreply.github.com"

          git add Module/module.prop update.json

          if git diff --cached --quiet; then
            echo "No changes to commit"
          else
            git commit -m "chore: sync Yurikey Manager version ${{ steps.version.outputs.raw_version }}"
            git push
          fi

      - name: Create Release
        uses: softprops/action-gh-release@v2
        with:
          tag_name: ${{ steps.version.outputs.version }}
          name: Yurikey Manager ${{ steps.version.outputs.version }}
          body_path: changelog.md
          files: Yurikey-${{ steps.version.outputs.version }}.signed.zip
        env:
          GITHUB_TOKEN: ${{ github.token }}


================================================
FILE: .github/workflows/build-test.yml
================================================
name: Build Test Module

on:
  #push:
  #  paths:
  #    - 'Module/**'
  #  branches:
  #    - main
  #    - dev
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v6

      - name: Update version with git HEAD
        run: |
          RANDOM_STRING=$(git rev-parse --short HEAD | cut -c1-7)
          echo "BUILD_ID=${RANDOM_STRING}" >> $GITHUB_ENV
          sed -i "s/^version=.*/version=${RANDOM_STRING}/" Module/module.prop

      - name: Upload release artifact
        uses: actions/upload-artifact@v7
        with:
          name: YuriKey_${{ env.BUILD_ID }}
          path: |
            ${{ github.workspace }}/Module/*

================================================
FILE: .gitignore
================================================
Module/webroot/json/device-info.json
Module/webroot/lang/source/string.json
string.yml


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: Module/META-INF/com/google/android/update-binary
================================================
#!/sbin/sh

#################
# Initialization
#################

umask 022

# echo before loading util_functions
ui_print() { echo "$1"; }

require_new_magisk() {
  ui_print "*******************************"
  ui_print " Please install Magisk v19.0+! "
  ui_print "*******************************"
  exit 1
}

#########################
# Load util_functions.sh
#########################

OUTFD=$2
ZIPFILE=$3

mount /data 2>/dev/null

[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk
. /data/adb/magisk/util_functions.sh
[ $MAGISK_VER_CODE -lt 19000 ] && require_new_magisk

if [ $MAGISK_VER_CODE -ge 20400 ]; then
  # New Magisk have complete installation logic within util_functions.sh
  install_module
  exit 0
fi

#################
# Legacy Support
#################

# Global vars
TMPDIR=/dev/tmp
PERSISTDIR=/sbin/.magisk/mirror/persist

rm -rf $TMPDIR 2>/dev/null
mkdir -p $TMPDIR

is_legacy_script() {
  unzip -l "$ZIPFILE" install.sh | grep -q install.sh
  return $?
}

print_modname() {
  local len
  len=`echo -n $MODNAME | wc -c`
  len=$((len + 2))
  local pounds=`printf "%${len}s" | tr ' ' '*'`
  ui_print "$pounds"
  ui_print "$MODNAME "
  ui_print "by $MODAUTH"
  ui_print "$pounds"
  ui_print "*******************"
  ui_print " Powered by Magisk "
  ui_print "*******************"
}

# Preperation for flashable zips
setup_flashable

# Mount partitions
mount_partitions

# Detect version and architecture
api_level_arch_detect

# Setup busybox and binaries
$BOOTMODE && boot_actions || recovery_actions

##############
# Preparation
##############

# Extract prop file
unzip -o "$ZIPFILE" module.prop -d $TMPDIR >&2
[ ! -f $TMPDIR/module.prop ] && abort "! Unable to extract zip file!"

$BOOTMODE && MODDIRNAME=modules_update || MODDIRNAME=modules
MODULEROOT=$NVBASE/$MODDIRNAME
MODID=`grep_prop id $TMPDIR/module.prop`
MODPATH=$MODULEROOT/$MODID
MODNAME=`grep_prop name $TMPDIR/module.prop`
MODAUTH=`grep_prop author $TMPDIR/module.prop`

# Create mod paths
rm -rf $MODPATH 2>/dev/null
mkdir -p $MODPATH

##########
# Install
##########

if is_legacy_script; then
  unzip -oj "$ZIPFILE" module.prop install.sh uninstall.sh 'common/*' -d $TMPDIR >&2

  # Load install script
  . $TMPDIR/install.sh

  # Callbacks
  print_modname
  on_install

  # Custom uninstaller
  [ -f $TMPDIR/uninstall.sh ] && cp -af $TMPDIR/uninstall.sh $MODPATH/uninstall.sh

  # Skip mount
  $SKIPMOUNT && touch $MODPATH/skip_mount

  # prop file
  $PROPFILE && cp -af $TMPDIR/system.prop $MODPATH/system.prop

  # Module info
  cp -af $TMPDIR/module.prop $MODPATH/module.prop

  # post-fs-data scripts
  $POSTFSDATA && cp -af $TMPDIR/post-fs-data.sh $MODPATH/post-fs-data.sh

  # service scripts
  $LATESTARTSERVICE && cp -af $TMPDIR/service.sh $MODPATH/service.sh

  ui_print "- Setting permissions"
  set_permissions
else
  print_modname

  unzip -o "$ZIPFILE" customize.sh -d $MODPATH >&2

  if ! grep -q '^SKIPUNZIP=1$' $MODPATH/customize.sh 2>/dev/null; then
    ui_print "- Extracting module files"
    unzip -o "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2

    # Default permissions
    set_perm_recursive $MODPATH 0 0 0755 0644
  fi

  # Load customization script
  [ -f $MODPATH/customize.sh ] && . $MODPATH/customize.sh
fi

# Handle replace folders
for TARGET in $REPLACE; do
  ui_print "- Replace target: $TARGET"
  mktouch $MODPATH$TARGET/.replace
done

if $BOOTMODE; then
  # Update info for Magisk Manager
  mktouch $NVBASE/modules/$MODID/update
  cp -af $MODPATH/module.prop $NVBASE/modules/$MODID/module.prop
fi

# Copy over custom sepolicy rules
if [ -f $MODPATH/sepolicy.rule -a -e $PERSISTDIR ]; then
  ui_print "- Installing custom sepolicy patch"
  PERSISTMOD=$PERSISTDIR/magisk/$MODID
  mkdir -p $PERSISTMOD
  cp -af $MODPATH/sepolicy.rule $PERSISTMOD/sepolicy.rule
fi

# Remove stuffs that don't belong to modules
rm -rf \
$MODPATH/system/placeholder $MODPATH/customize.sh \
$MODPATH/README.md $MODPATH/.git* 2>/dev/null

##############
# Finalizing
##############

cd /
$BOOTMODE || recovery_cleanup
rm -rf $TMPDIR

ui_print "- Done"
exit 0


================================================
FILE: Module/META-INF/com/google/android/updater-script
================================================
#MAGISK


================================================
FILE: Module/Yuri/action/integrity.sh
================================================
MODPATH="${0%/*}"
SCRIPT_PATH="$MODPATH/.."

for SCRIPT in \
  "kill_google_process.sh" \
  "target_txt.sh" \
  "security_patch.sh" \
  "boot_hash.sh" \
  "yuri_keybox.sh"
do
  if ! sh "$SCRIPT_PATH/$SCRIPT"; then
    echo "- Error: $SCRIPT failed. Aborting..."
    exit 1
  fi
done
  sh "$SCRIPT_PATH/pif.sh"

================================================
FILE: Module/Yuri/action/root.sh
================================================
MODPATH="${0%/*}"
SCRIPT_PATH="$MODPATH/.."

for SCRIPT in \
  "hma.sh"
do
  if ! sh "$SCRIPT_PATH/$SCRIPT"; then
    echo "- Error: $SCRIPT failed. Aborting..."
    exit 1
  fi
done
  sh "$SCRIPT_PATH/znctl.sh"

================================================
FILE: Module/Yuri/boot_hash.sh
================================================
#!/system/bin/sh

log_message() {
    echo "$(date +%Y-%m-%d\ %H:%M:%S) [SET_BOOT_HASH] $1"
}

log_message "Start"

# Get vbmeta hash
boot_hash=$(su -c "getprop ro.boot.vbmeta.digest" 2>/dev/null)
[ -z "$boot_hash" ] && boot_hash="0000000000000000000000000000000000000000000000000000000000000000"

file_path="/data/adb/boot_hash"

# Create folder and write file
log_message "Writing"
mkdir -p "$(dirname "$file_path")"
echo "$boot_hash" > "$file_path"
chmod 644 "$file_path"
su -c "resetprop -n ro.boot.vbmeta.digest $boot_hash" >/dev/null 2>&1

log_message "Finish"

================================================
FILE: Module/Yuri/clear_all_detection_traces.sh
================================================
#!/system/bin/sh

banner() {
    clear
    printf "\033[41m                                               \033[0m\n"
    printf "\033[41m                                               \033[0m\n"
    printf "\033[41m(One-click to clear all detection traces)\033[0m\n"
    printf "\033[41m                                               \033[0m\n"
    printf "\033[41m                                               \033[0m\n"
    sleep 3
    clear
}

progress() {
    printf "\033[31m[1/5] Clearing detector application data...\033[0m\n"
    sleep 0.5
    printf "\033[31m[2/5] Clearing file cache tool app (MT Manager, HyperCeiler, LuckyTool,....)\033[0m\n"
    sleep 0.5
    printf "\033[31m[3/5] Resetprop, reset system properties, clear custom rom,HMA paths...\033[0m\n"
    sleep 0.5
    printf "\033[31m[4/5] Clearing odex, art, cache Lsposed....\033[0m\n"
    sleep 0.5
    printf "\033[31m[5/5] Clearing...\033[0m\n"
    sleep 3
}

complete() {
    printf "\n"
    printf "\033[1;32mDone!\033[0m\n"
    printf "\033[1;32mt.me/yuriiroot\033[0m\n"
}


remove_path() {
    [ -n "$1" ] && rm -rf "$1" 2>/dev/null
}

detector_data() {   # For /storage/emulated/0/Android/data/* if exists
    remove_path "/storage/emulated/0/Android/data/me.garfieldhan.holmes"
    remove_path "/storage/emulated/0/Android/data/com.zhenxi.hunter"
    remove_path "/storage/emulated/0/Android/data/icu.nullptr.nativetest"
    remove_path "/storage/emulated/0/Android/data/icu.nullptr.applistdetector"
    remove_path "/storage/emulated/0/Android/data/com.byxiaorun.detector"
    remove_path "/storage/emulated/0/Android/data/io.github.huskydg.memorydetector"
    remove_path "/storage/emulated/0/Android/data/com.OrangeEnvironment.Detector"
    remove_path "/storage/emulated/0/Android/data/com.Longze.detector.pro2"
    remove_path "/storage/emulated/0/Android/data/rikka.safetynetchecker"
    remove_path "/storage/emulated/0/Android/data/io.github.vvb2060.keyattestation"
    remove_path "/storage/emulated/0/Android/data/io.github.vvb2060.mahoshojo"
    remove_path "/storage/emulated/0/Android/data/com.lingqing.detector"
    remove_path "/storage/emulated/0/Android/data/aidepro.top"
    remove_path "/storage/emulated/0/Android/data/com.junge.algorithmAidePro"
    remove_path "/storage/emulated/0/Android/data/chunqiu.safe"
    remove_path "/storage/emulated/0/Android/data/luna.safe.luna"
    remove_path "/storage/emulated/0/Android/data/io.liankong.riskdetector"
    remove_path "/storage/emulated/0/Android/data/com.studio.duckdetector"
    remove_path "/storage/emulated/0/Android/data/com.android.nativetest"
    remove_path "/storage/emulated/0/Android/data/com.byyoung.setting"
    remove_path "/storage/emulated/0/Android/data/com.scottyab.rootbeer"
    remove_path "/storage/emulated/0/Android/data/com.scottyab.rootbeer.sample"
    remove_path "/storage/emulated/0/Android/data/com.topjohnwu.magisk.detector"
    remove_path "/storage/emulated/0/Android/data/com.devadvance.rootcloak"
    remove_path "/storage/emulated/0/Android/data/com.fde.xposed.detector"
    remove_path "/storage/emulated/0/Android/data/com.zhenxi.checker"
    remove_path "/storage/emulated/0/Android/data/com.example.nativelibtest"
    remove_path "/storage/emulated/0/Android/data/com.example.memcheck"
    remove_path "/storage/emulated/0/Android/data/com.example.syscallchecker" 
    remove_path "/storage/emulated/0/Android/data/com.jrummyapps.rootchecker"
    remove_path "/storage/emulated/0/Android/data/com.kimchangyoun.magiskdetector"
    remove_path "/storage/emulated/0/Android/data/com.reveny.nativechecker"
    remove_path "/storage/emulated/0/Android/data/com.reveny.environmentchecker"
    remove_path "/storage/emulated/0/Android/data/com.reveny.rootchecker"
    remove_path "/storage/emulated/0/Android/data/com.guardian.detect"
    remove_path "/storage/emulated/0/Android/data/com.security.environmentchecker"
    remove_path "/storage/emulated/0/Android/data/com.integrity.checker"
    remove_path "/storage/emulated/0/Android/data/com.integrity.attestation"
    remove_path "/storage/emulated/0/Android/data/com.lody.virtual"
    remove_path "/storage/emulated/0/Android/data/com.lody.virtual.client"
    remove_path "/storage/emulated/0/Android/data/com.lody.virtual.server"
    remove_path "/storage/emulated/0/Android/data/com.lody.whale"
    remove_path "/storage/emulated/0/Android/data/com.kimchangyoun.rootbeerfresh"
    remove_path "/storage/emulated/0/Android/data/com.didikee.rootcheck"
    remove_path "/storage/emulated/0/Android/data/com.joeykrim.rootcheck"
    remove_path "/storage/emulated/0/Android/data/com.freeandroidtools.rootchecker"
    remove_path "/storage/emulated/0/Android/data/com.bluestacks.rootchecker"
    remove_path "/storage/emulated/0/Android/data/com.moonshine.checker"
    remove_path "/storage/emulated/0/Android/data/com.ramdroid.appdetector"
    remove_path "/storage/emulated/0/Android/data/com.smlj.rootcheck"
    remove_path "/storage/emulated/0/Android/data/com.devadvance.rootcloakplus"
    remove_path "/storage/emulated/0/Android/data/com.formyhm.hideroot"
    remove_path "/storage/emulated/0/Android/data/com.example.emulatordetector"
    remove_path "/storage/emulated/0/Android/data/com.vmcheck.detector"
    remove_path "/storage/emulated/0/Android/data/com.virtual.checker"
    remove_path "/storage/emulated/0/Android/data/com.antivm.detector"
    remove_path "/storage/emulated/0/Android/data/com.xposed.checker"
    remove_path "/storage/emulated/0/Android/data/com.google.snet.test"
    remove_path "/storage/emulated/0/Android/data/com.attestation.checker"
    remove_path "/storage/emulated/0/Android/data/com.integrity.check"
    remove_path "/storage/emulated/0/Android/data/com.native.checker"
    remove_path "/storage/emulated/0/Android/data/com.syscall.detector"
    remove_path "/storage/emulated/0/Android/data/com.memory.scan"
    remove_path "/storage/emulated/0/meow_detector.log"
    remove_path "/storage/emulated/0/keybox_status.json" 
    
}

detector_obb() { # Same as detector_data
    remove_path "/storage/emulated/0/Android/obb/io.github.vvb2060.mahoshojo"
    remove_path "/storage/emulated/0/Android/obb/icu.nullptr.applistdetector"
    remove_path "/storage/emulated/0/Android/obb/icu.nullptr.nativetest"
    remove_path "/storage/emulated/0/Android/obb/com.byxiaorun.detector"
    remove_path "/storage/emulated/0/Android/obb/io.github.huskydg.memorydetector"
    remove_path "/storage/emulated/0/Android/obb/com.OrangeEnvironment.Detector"
    remove_path "/storage/emulated/0/Android/obb/com.Longze.detector.pro2"
    remove_path "/storage/emulated/0/Android/obb/rikka.safetynetchecker"
    remove_path "/storage/emulated/0/Android/obb/io.github.vvb2060.keyattestation"
    remove_path "/storage/emulated/0/Android/obb/com.android.nativetest"
}

detector_media() { # Same as detector_data
    remove_path "/storage/emulated/0/Android/media/icu.nullptr.nativetest"
}

tool_apps_data() { # Same as detector_data, but for tool apps
    remove_path "/storage/emulated/0/Android/data/bin.mt.plus"
    remove_path "/storage/emulated/0/Android/data/bin.mt.plus.canary"
    remove_path "/storage/emulated/0/Android/data/com.omarea.vtools"
    remove_path "/storage/emulated/0/Android/data/moe.shizuku.privileged.api"
    remove_path "/storage/emulated/0/Android/data/com.estrongs.android.pop"
    remove_path "/storage/emulated/0/Android/data/com.coolapk.market"
    mv "/storage/emulated/0/MT2" "/storage/emulated/0/MT"
    remove_path "/storage/emulated/0/bin.mt.termux"
    remove_path "/storage/emulated/0/com.termux"
    remove_path "/storage/emulated/0/xzr.hkf"
    remove_path "/storage/emulated/0/Download/WechatXposed"
    remove_path "/storage/emulated/0/WechatXposed"
    remove_path "/storage/emulated/0/Android/naki"
    remove_path "/storage/emulated/0/最新版隐藏配置.json"
    remove_path "/storage/emulated/0/rlgg"
    remove_path "/storage/emulated/legacy"
    remove_path "/storage/emulated/com.luckyzyx.luckytool"
    remove_path "/storage/emulated/0/Android/data/com.sevtinge.hyperceiler"
    remove_path "/storage/emulated/0/Android/data/com.coderstory.toolkit"
}

remote_control_data_apps() { # Same as detector_data, but for remote control apps
    remove_path "/storage/emulated/0/.anydesk" 
    remove_path "/storage/emulated/0/Android/data/com.anydesk.anydeskandroid"
    remove_path "/storage/emulated/0/Android/data/com.teamviewer.teamviewer.market.mobile"
    remove_path "/storage/emulated/0/Android/data/com.teamviewer.quicksupport.market"
    remove_path "/storage/emulated/0/Android/data/com.sand.airdroid"
    remove_path "/storage/emulated/0/Android/data/com.sand.airmirror"
    remove_path "/storage/emulated/0/Android/data/com.koushikdutta.vysor"
    remove_path "/storage/emulated/0/Android/data/com.genymobile.scrcpy"
    remove_path "/storage/emulated/0/anydesk"
    remove_path "/storage/emulated/0/Android/data/com.microsoft.rdc.androidx"
    remove_path "/storage/emulated/0/Android/data/com.realvnc.viewer.android"
    remove_path "/storage/emulated/0/Android/data/com.splashtop.remote.pad.v2"
    remove_path "/storage/emulated/0/Android/data/com.dwservice.dwagent"
    remove_path "/storage/emulated/0/Android/data/com.carriez.flutter_hbb"
    remove_path "/storage/emulated/0/Android/data/com.carriez.flutter_hbbclient"
    remove_path "/storage/emulated/0/Android/data/com.rustdesk.rustdesk"
    remove_path "/storage/emulated/0/.rustdesk"
    remove_path "/storage/emulated/0/rustdesk"
    remove_path "/storage/emulated/0/Android/media/com.koushikdutta.vysor"
    remove_path "/storage/emulated/0/.vysor"
    remove_path "/storage/emulated/0/Vysor"
}

system_properties() { # For /data/property if exists
    remove_path "/data/property/persistent_properties"
    remove_path "/data/property"
}

tmp_data() {    # For /data/local/tmp if exists
    remove_path "/data/local/tmp/shizuku"
    remove_path "/data/local/tmp/shizuku_starter"
    remove_path "/data/local/tmp/byyang"
    remove_path "/data/local/tmp/HyperCeiler"
    remove_path "/data/local/tmp/luckys"
    remove_path "/data/local/tmp/input_devices"
    remove_path "/data/local/tmp/resetprop"

    rm -rf /data/local/tmp/* 2>/dev/null    # delete all on /data/local/tmp

    mkdir -p /data/local/tmp 2>/dev/null    # recreate, but this working?
}

system_data() { # For /data/system if exists
    remove_path "/data/system/graphicsstats"
    remove_path "/data/system/package_cache"
    remove_path "/data/system/NoActive"
    remove_path "/data/system/Freezer"
    remove_path "/data/system/junge"
    remove_path "/data/swap_config.conf"
}

dev_paths() { # For /dev
    remove_path "/dev/memcg/scene_idle"
    remove_path "/dev/memcg/scene_active"
    remove_path "/dev/scene"
    remove_path "/dev/cpuset/scene-daemon"
}

user_data() { # For /data/user/0
    remove_path "/data/user/0/com.juom"
}

reset_prop() { # Changing on build.prop file
    while [ "$(getprop sys.boot_completed)" != "1" ]; do
        sleep 1
    done
    # USB / ADB
    resetprop sys.usb.adb.disabled 1
    resetprop persist.sys.usb.config mtp
    resetprop sys.usb.config mtp
    resetprop sys.usb.state mtp
    resetprop service.adb.root 0
    resetprop service.adb.tcp.port -1
    resetprop --delete persist.service.adb.enable
    resetprop --delete persist.service.debuggable
    
    # Clear Detection HMA, Tools
    resetprop --delete persist.zygote.app_data_isolation
    resetprop --delete persist.hyperceiler.log.level
    resetprop --delete persist.com.luckyzyx.luckytool.log.level
    resetprop --delete persist.com.luckyzyx.luckytool.debug
    resetprop --delete persist.com.luckyzyx.luckytool.enable
    

    # Development mode
    resetprop persist.sys.developer_options 0
    resetprop persist.sys.dev_mode 0
    resetprop persist.sys.debuggable 0
    settings put global development_settings_enabled 0
    settings put global adb_enabled 0
    settings put global oem_unlock_allowed 0
    settings put global adb_enabled 0
    settings put global development_settings_enabled 0
    settings put global oem_unlock_allowed 0
    settings put global adb_wifi_enabled 0
    settings put global adb_wifi_port -1
    
    # Debug flags
    resetprop ro.debuggable 0
    resetprop ro.secure 1
    resetprop ro.adb.secure 1
    resetprop ro.build.type user
    resetprop ro.build.tags release-keys
    resetprop --delete persist.sys.developer_options
    resetprop --delete persist.sys.dev_mode
   
    resetprop ro.boot.verifiedbootstate green
    resetprop vendor.boot.verifiedbootstate green
    resetprop ro.boot.flash.locked 1
    resetprop ro.boot.vbmeta.device_state locked
    resetprop vendor.boot.vbmeta.device_state locked
    resetprop ro.secureboot.lockstate locked
    resetprop ro.boot.warranty_bit 0
    resetprop ro.boot.force_normal_boot 1
    resetprop ro.boot.realme.lockstate 1
    resetprop ro.boot.flash.locked 1  
    resetprop ro.boot.verifiedbootstate green  
    resetprop ro.boot.vbmeta.device_state locked  
    resetprop ro.boot.secureboot 1  
    resetprop ro.boot.veritymode enforcing  
    resetprop ro.boot.verifiedbootstate green  
    resetprop ro.boot.vbmeta.device_state locked  
    resetprop ro.boot.secureboot enabled  

    # OEM unlock
    resetprop ro.oem_unlock_supported 0
    resetprop sys.oem_unlock_allowed 0

    # SELinux (only fake if it is actually enforcing)
    if [ "$(getenforce 2>/dev/null)" = "Enforcing" ]; then
        resetprop ro.boot.selinux enforcing
        resetprop ro.build.selinux 1
    fi

    # Emulator traces
    resetprop ro.kernel.qemu 0
    resetprop ro.boot.qemu 0
    resetprop ro.hardware.virtual_device 0
}

odex_files() { # Delete all odex files
    su -c 'find /data/app -type f -name base.odex -delete' 2>/dev/null
}

main() {
    banner
    progress

    detector_data
    detector_obb
    detector_media
    tool_apps_data
    remote_control_data_apps
    system_properties
    tmp_data
    system_data
    dev_paths
    user_data
    reset_prop

    clear
    odex_files
    
    complete
}

main

================================================
FILE: Module/Yuri/hma.sh
================================================
#!/system/bin/sh

# Define important paths and file names
HMA_DIR="/data/user/0/org.frknkrc44.hma_oss/files"
HMA_FILE="/data/user/0/org.frknkrc44.hma_oss/files/config.json"
REMOTE_URL="https://raw.githubusercontent.com/YurikeyDev/yurikey/refs/heads/main/config.json"
ORG_PATH="$PATH"

log_message() {
    echo "$(date +%Y-%m-%d\ %H:%M:%S) [HMA_OSS] $1"
}

download() {
    PATH=/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH
    if command -v curl >/dev/null 2>&1; then
        curl --connect-timeout 10 -Ls "$1"
    else
        busybox wget -T 10 --no-check-certificate -qO- "$1"
    fi
    PATH="$ORG_PATH"
}

if pm list packages | grep -q org.frknkrc44.hma_oss; then
  mkdir -p "$HMA_DIR"
  download "$REMOTE_URL" > "$HMA_FILE" || log_message "Error: HMA-oss configs download failed, please download and add it manually!"
elif pm list packages | grep -q com.tsng.hidemyapplist; then
  log_message "HMA is deprecated and not supported, please use latest HMA-oss to get latest configs"
else
  log_message "Error: HMA-oss not found, please install latest HMA-oss"
  return 1
fi

chmod 777 "$HMA_FILE"
chown u0_a0:u0_a0 "$HMA_FILE"


================================================
FILE: Module/Yuri/kill_all.sh
================================================
#!/system/bin/sh

log_message() {
    echo "$(date +%Y-%m-%d\ %H:%M:%S) [KILL_ALL] $1"
}

# Start
log_message "Start"

# Writing
log_message "Writing"
PKGS="com.android.vending com.google.android.gsf com.google.android.gms com.google.android.contactkeys com.google.android.ims com.google.android.safetycore com.google.android.apps.walletnfcrel com.google.android.apps.nbu.paisa.user com.zhenxi.hunter com.reveny.nativecheck io.github.vvb2060.keyattestation io.github.vvb2060.mahoshojo icu.nullptr.nativetest com.android.nativetest io.liankong.riskdetector me.garfieldhan.holmes luna.safe.luna com.zhenxi.hunter gr.nikolasspyr.integritycheck com.youhu.laifu"

for pkg in $PKGS; do
    if ! am force-stop "$pkg" >/dev/null 2>&1; then
        log_message "Error: Failed to force-stop $pkg"
        return 1
    fi

    if ! pm clear "$pkg" >/dev/null 2>&1; then
        log_message "Error: Failed to clear data for $pkg"
        return 1
    fi
done

# Finish
log_message "Finish"


================================================
FILE: Module/Yuri/kill_google_process.sh
================================================
#!/system/bin/sh

log_message() {
    echo "$(date +%Y-%m-%d\ %H:%M:%S) [KILL_GOOGLE] $1"
}

# Start
log_message "Start"

# Writing
log_message "Writing"
PKGS="com.android.vending"

for pkg in $PKGS; do
    if ! am force-stop "$pkg" >/dev/null 2>&1; then
        log_message "Error: Failed to force-stop $pkg"
        return 1
    fi

    if ! cmd package trim-caches 0 "$pkg" >/dev/null 2>&1; then
        log_message "Error: Failed to clear cache for $pkg"
        return 1
    fi
done

# Finish
log_message "Finish"


================================================
FILE: Module/Yuri/pif.sh
================================================
#!/system/bin/sh

log_message() {
    echo "$(date +%Y-%m-%d\ %H:%M:%S) [PIF] $1"
}

log_message "Start"

TARGET_FILE="/data/adb/modules/playintegrityfix"

# Check if the directory exists 
if [ ! -d "$TARGET_FILE" ] && [ ! -f "$TARGET_FILE/module.prop" ]; then
    log_message "Error: Play Integrity Fix is not found, please install the latest Play Integrity Fix."
    return 1
fi

fetch_pif () {
    # Extract the name from module.prop
    MODULE_NAME=$(grep "^name=" "$TARGET_FILE/module.prop" | cut -d= -f2-)
    if [ "$MODULE_NAME" = "Play Integrity Fix [INJECT]" ]; then
      log_message "Detected Play Integrity Fix [INJECTS]. Executing..."
      sh "$TARGET_FILE/autopif_ota.sh" || true
      sh "$TARGET_FILE/autopif.sh"
    elif [ "$MODULE_NAME" = "Play Integrity Fork" ]; then
      log_message "Detected Play Integrity Fork. Executing..."
      sh "$TARGET_FILE/autopif4.sh" -m || return
    else
      log_message "Unknown module $MODULE_NAME"
      log_message "Please use Play Integrity Fix [INJECTS] or Play Integrity Fork to update fingeprint"
      return
    fi
}

update_pif () {
    if ! fetch_pif; then
        log_message "Failed to update fingerprints!"
        return
    fi
}

# Start main logic
log_message "Writing"

# Ensure directory exists before proceeding
mkdir -p "$TARGET_FILE"
update_pif

log_message "Finish"


================================================
FILE: Module/Yuri/rka/jsonarray.sh
================================================
#!/system/bin/sh
# jsonarray — flat JSON array manipulation library
# Contributed by mhmrdd <https://github.com/mhmrdd>
#
#   ja_count    <file>                          -> integer
#   ja_get      <file> <id|idx> <field>         -> raw value
#   ja_has      <file> <id|idx>                 -> exit 0/1
#   ja_index    <file> <id>                     -> 1-based index
#   ja_id       <file> <idx>                    -> id string
#   ja_ids      <file>                          -> one id per line
#   ja_keys     <file> <id|idx>                 -> one key per line
#   ja_dump     <file> <id|idx>                 -> key\tvalue per line
#   ja_search   <file> <field> <value>          -> matching indices per line
#   ja_add      <file> <k=v> [k=v ...]          -> prints assigned id
#   ja_set      <file> <id|idx> <field> <v> [t] -> exit 0/1 (t: s/n/b)
#   ja_del      <file> <id|idx>                 -> exit 0/1
#   ja_delfield <file> <id|idx> <field>         -> exit 0/1
#   ja_raw      <file>                          -> full JSON

_JA_AWK='
function split_objects(json, objs,    n, i, c, prev, in_str, depth, start) {
    n = 0; in_str = 0; depth = 0
    for (i = 1; i <= length(json); i++) {
        c = substr(json, i, 1)
        prev = (i > 1) ? substr(json, i-1, 1) : ""
        if (c == "\"" && prev != "\\") { in_str = !in_str; continue }
        if (in_str) continue
        if (c == "{") { depth++; if (depth == 1) start = i }
        else if (c == "}") { depth--; if (depth == 0) { n++; objs[n] = substr(json, start, i - start + 1) } }
    }
    return n
}

function get_field(obj, fname,    i, c, kstart, kend, key, vstart, val) {
    i = 1
    while (i <= length(obj)) {
        c = substr(obj, i, 1)
        if (c == "\"") {
            kstart = i + 1
            for (i = kstart; i <= length(obj); i++)
                if (substr(obj, i, 1) == "\"" && substr(obj, i-1, 1) != "\\") break
            kend = i - 1
            key = substr(obj, kstart, kend - kstart + 1)
            i++
            while (i <= length(obj)) { c = substr(obj, i, 1); if (c != ":" && c != " " && c != "\t") break; i++ }
            c = substr(obj, i, 1)
            if (c == "\"") {
                vstart = i; i++
                while (i <= length(obj))
                    if (substr(obj, i, 1) == "\"" && substr(obj, i-1, 1) != "\\") break; else i++
                val = substr(obj, vstart, i - vstart + 1)
            } else {
                vstart = i
                while (i <= length(obj)) { c = substr(obj, i, 1); if (c == "," || c == "}" || c == " " || c == "\n" || c == "\r" || c == "\t") break; i++ }
                val = substr(obj, vstart, i - vstart)
            }
            if (key == fname) return val
        }
        i++
    }
    return ""
}

function unquote(v) {
    if (substr(v, 1, 1) == "\"" && substr(v, length(v), 1) == "\"")
        return substr(v, 2, length(v) - 2)
    return v
}

function get_keys(obj, keys,    n, i, c, kstart, kend, key) {
    n = 0; i = 1
    while (i <= length(obj)) {
        c = substr(obj, i, 1)
        if (c == "\"") {
            kstart = i + 1
            for (i = kstart; i <= length(obj); i++)
                if (substr(obj, i, 1) == "\"" && substr(obj, i-1, 1) != "\\") break
            kend = i - 1; key = substr(obj, kstart, kend - kstart + 1); i++
            while (i <= length(obj) && (substr(obj,i,1)==" " || substr(obj,i,1)=="\t")) i++
            if (substr(obj, i, 1) == ":") {
                n++; keys[n] = key; i++
                while (i <= length(obj) && (substr(obj,i,1)==" " || substr(obj,i,1)=="\t")) i++
                c = substr(obj, i, 1)
                if (c == "\"") { i++; while (i <= length(obj)) { if (substr(obj,i,1) == "\"" && substr(obj,i-1,1) != "\\") break; i++ } }
                else { while (i <= length(obj)) { c = substr(obj, i, 1); if (c == "," || c == "}") break; i++ } }
            }
        }
        i++
    }
    return n
}

function rebuild_object(obj, skip_field,    keys, nk, k, v, out, sep) {
    nk = get_keys(obj, keys); out = "{"; sep = ""
    for (k = 1; k <= nk; k++) {
        if (keys[k] == skip_field) continue
        v = get_field(obj, keys[k]); out = out sep "\"" keys[k] "\":" v; sep = ","
    }
    return out "}"
}

function set_field_in_obj(obj, fname, fval,    keys, nk, k, v, out, sep, found) {
    nk = get_keys(obj, keys); out = "{"; sep = ""; found = 0
    for (k = 1; k <= nk; k++) {
        v = get_field(obj, keys[k])
        if (keys[k] == fname) { v = fval; found = 1 }
        out = out sep "\"" keys[k] "\":" v; sep = ","
    }
    if (!found) out = out sep "\"" fname "\":" fval
    return out "}"
}

function rebuild_array(objs, count,    out, i) {
    out = "["
    for (i = 1; i <= count; i++) { if (i > 1) out = out ","; out = out objs[i] }
    return out "]"
}

function find_entry(objs, count, target,    i, idx) {
    for (i = 1; i <= count; i++)
        if (unquote(get_field(objs[i], "id")) == target) return i
    idx = int(target)
    if (idx >= 1 && idx <= count) return idx
    return 0
}

{ if (NR == 1) json = $0; else json = json "\n" $0 }

END {
    count = split_objects(json, objs)

    if (OP == "count") { print count }

    else if (OP == "get") {
        idx = find_entry(objs, count, P1)
        if (idx == 0) exit 1
        print unquote(get_field(objs[idx], P2))
    }

    else if (OP == "has") {
        exit (find_entry(objs, count, P1) > 0) ? 0 : 1
    }

    else if (OP == "index") {
        for (i = 1; i <= count; i++)
            if (unquote(get_field(objs[i], "id")) == P1) { print i; exit 0 }
        exit 1
    }

    else if (OP == "id") {
        idx = int(P1)
        if (idx >= 1 && idx <= count) { print unquote(get_field(objs[idx], "id")); exit 0 }
        exit 1
    }

    else if (OP == "ids") {
        for (i = 1; i <= count; i++) print unquote(get_field(objs[i], "id"))
    }

    else if (OP == "keys") {
        idx = find_entry(objs, count, P1)
        if (idx == 0) exit 1
        nk = get_keys(objs[idx], keys)
        for (k = 1; k <= nk; k++) print keys[k]
    }

    else if (OP == "dump") {
        idx = find_entry(objs, count, P1)
        if (idx == 0) exit 1
        nk = get_keys(objs[idx], keys)
        for (k = 1; k <= nk; k++) printf "%s\t%s\n", keys[k], unquote(get_field(objs[idx], keys[k]))
    }

    else if (OP == "search") {
        needle = tolower(P2)
        for (i = 1; i <= count; i++) {
            v = tolower(unquote(get_field(objs[i], P1)))
            if (index(v, needle) > 0) print i
        }
    }

    else if (OP == "raw") {
        print rebuild_array(objs, count)
    }

    else if (OP == "del") {
        idx = find_entry(objs, count, P1)
        if (idx == 0) exit 1
        nc = 0
        for (i = 1; i <= count; i++) { if (i == idx) continue; nc++; no[nc] = objs[i] }
        print rebuild_array(no, nc)
    }

    else if (OP == "set") {
        vtype = (P4 == "") ? "s" : P4
        if (vtype == "s") fval = "\"" P3 "\""; else fval = P3
        idx = find_entry(objs, count, P1)
        if (idx == 0) exit 1
        objs[idx] = set_field_in_obj(objs[idx], P2, fval)
        print rebuild_array(objs, count)
    }

    else if (OP == "delfield") {
        idx = find_entry(objs, count, P1)
        if (idx == 0) exit 1
        objs[idx] = rebuild_object(objs[idx], P2)
        print rebuild_array(objs, count)
    }

    else if (OP == "add") {
        new_obj = "{"; sep = ""
        n = split(PAIRS, plines, "\n")
        for (p = 1; p <= n; p++) {
            eq = index(plines[p], "=")
            if (eq == 0) continue
            k = substr(plines[p], 1, eq - 1)
            v = substr(plines[p], eq + 1)
            if (v == "true" || v == "false") fval = v
            else if (v ~ /^[0-9]+$/) fval = v
            else fval = "\"" v "\""
            new_obj = new_obj sep "\"" k "\":" fval; sep = ","
        }
        new_obj = new_obj "}"
        count++; objs[count] = new_obj
        print rebuild_array(objs, count)
    }

    else exit 1
}
'

_ja_ensure() { [ ! -f "$1" ] && printf '[]' > "$1"; }
_ja_uuid() { cat /proc/sys/kernel/random/uuid 2>/dev/null || printf '%s-%s' "$(date +%s)" "$$"; }

ja_count() { _ja_ensure "$1"; awk -v OP=count "$_JA_AWK" "$1"; }
ja_get()   { _ja_ensure "$1"; awk -v OP=get -v P1="$2" -v P2="$3" "$_JA_AWK" "$1"; }
ja_has()   { _ja_ensure "$1"; awk -v OP=has -v P1="$2" "$_JA_AWK" "$1" >/dev/null 2>&1; }
ja_index() { _ja_ensure "$1"; awk -v OP=index -v P1="$2" "$_JA_AWK" "$1"; }
ja_id()    { _ja_ensure "$1"; awk -v OP=id -v P1="$2" "$_JA_AWK" "$1"; }
ja_ids()   { _ja_ensure "$1"; awk -v OP=ids "$_JA_AWK" "$1"; }
ja_keys()  { _ja_ensure "$1"; awk -v OP=keys -v P1="$2" "$_JA_AWK" "$1"; }
ja_dump()  { _ja_ensure "$1"; awk -v OP=dump -v P1="$2" "$_JA_AWK" "$1"; }
ja_search(){ _ja_ensure "$1"; awk -v OP=search -v P1="$2" -v P2="$3" "$_JA_AWK" "$1"; }
ja_raw()   { _ja_ensure "$1"; awk -v OP=raw "$_JA_AWK" "$1"; }

ja_add() {
    _f=$1; shift; _ja_ensure "$_f"
    _has_id=0
    for _a in "$@"; do case "$_a" in id=*) _has_id=1 ;; esac; done
    _pairs=""
    if [ "$_has_id" -eq 0 ]; then
        _uid=$(_ja_uuid)
        _pairs="id=$_uid"
    fi
    for _a in "$@"; do
        [ -n "$_pairs" ] && _pairs="$_pairs
$_a" || _pairs="$_a"
    done
    _pairs_esc=$(printf '%s\n' "$_pairs" | awk '{gsub(/\\/,"\\\\")}{if(NR>1)printf "\\n";printf "%s",$0}')
    _out=$(awk -v OP=add -v PAIRS="$_pairs_esc" "$_JA_AWK" "$_f") || return 1
    printf '%s\n' "$_out" > "$_f"
    if [ "$_has_id" -eq 0 ]; then
        printf '%s\n' "$_uid"
    else
        for _a in "$@"; do case "$_a" in id=*) printf '%s\n' "${_a#id=}"; break ;; esac; done
    fi
}

ja_set() {
    _ja_ensure "$1"
    _out=$(awk -v OP=set -v P1="$2" -v P2="$3" -v P3="$4" -v P4="$5" "$_JA_AWK" "$1") || return 1
    printf '%s\n' "$_out" > "$1"
}

ja_del() {
    _ja_ensure "$1"
    _out=$(awk -v OP=del -v P1="$2" "$_JA_AWK" "$1") || return 1
    printf '%s\n' "$_out" > "$1"
}

ja_delfield() {
    _ja_ensure "$1"
    _out=$(awk -v OP=delfield -v P1="$2" -v P2="$3" "$_JA_AWK" "$1") || return 1
    printf '%s\n' "$_out" > "$1"
}


================================================
FILE: Module/Yuri/rka/lspmcfg.sh
================================================
#!/system/bin/sh
#
# This file is part of LSPosed.
#
# LSPosed is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# LSPosed is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LSPosed.  If not, see <https://www.gnu.org/licenses/>.
#
# Copyright (C) 2021 LSPosed Contributors
#

# lspmcfg — module_configs database interface
# Contributed by mhmrdd <https://github.com/mhmrdd>
#
#   lsp_get     <mod> <group> <key>              -> raw value
#   lsp_type    <mod> <group> <key>              -> string|int|long|bool
#   lsp_set     <mod> <group> <key> <val> [type] -> exit 0/1
#   lsp_del     <mod> <group> <key>              -> exit 0/1
#   lsp_has     <mod> <group> <key>              -> exit 0/1
#   lsp_keys    <mod> <group>                    -> one key per line
#   lsp_groups  <mod>                            -> one group per line
#   lsp_dump    <mod> <group>                    -> key\ttype\tvalue per line
#   lsp_raw     <mod> <group> <key>              -> hex blob
#   lsp_count   <mod> <group>                    -> integer
#
# Override before sourcing: LSP_DB, LSP_SQLITE, LSP_UID

LSP_DB="${LSP_DB:-/data/adb/lspd/config/modules_config.db}"
LSP_UID="${LSP_UID:-$(id -u)}"

if [ -z "$LSP_SQLITE" ]; then
    _lsp_abi=$(getprop ro.product.cpu.abi 2>/dev/null)
    LSP_SQLITE="/data/adb/modules/Yurikey/Yuri/rka/${_lsp_abi}/sqlite3"
fi

_LSP_SCHEMA_OK=""
_LSP_EXPECTED_COLS="module_pkg_name user_id group_name key_name data"

_lsp_hex_to_str() { printf '%s\n' "$1" | xxd -r -p; }
_lsp_str_to_hex() { printf '%s' "$1" | xxd -p | tr -d '\n' | tr 'a-f' 'A-F'; }

_lsp_query() { "$LSP_SQLITE" "$LSP_DB" "$1"; }

_lsp_check_schema() {
    [ -n "$_LSP_SCHEMA_OK" ] && return 0

    if [ ! -f "$LSP_DB" ]; then
        echo "lspmcfg: database not found: $LSP_DB" >&2
        return 1
    fi

    _tables=$(_lsp_query "SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;")
    case "$_tables" in
        *module_configs*) ;;
        *)
            echo "lspmcfg: table 'module_configs' missing" >&2
            echo "lspmcfg: tables found: $_tables" >&2
            return 1
            ;;
    esac

    _cols=$(_lsp_query "PRAGMA table_info(module_configs);" | awk -F'|' '{print $2}' | tr '\n' ' ')
    _missing=""
    for _need in $_LSP_EXPECTED_COLS; do
        case "$_cols" in
            *${_need}*) ;;
            *) _missing="$_missing $_need" ;;
        esac
    done
    if [ -n "$_missing" ]; then
        echo "lspmcfg: incompatible schema, missing:$_missing" >&2
        echo "lspmcfg: columns found: $_cols" >&2
        return 1
    fi

    _LSP_SCHEMA_OK=1
    return 0
}

_lsp_query_blob() {
    _lsp_check_schema || return 1
    _lsp_query \
      "SELECT hex(data) FROM module_configs \
         WHERE module_pkg_name='$1' \
           AND user_id=$LSP_UID \
           AND \"group_name\"='$2' \
           AND key_name='$3';"
}

_lsp_write_blob() {
    _lsp_check_schema || return 1
    _lsp_query \
      "INSERT OR REPLACE INTO module_configs \
         (module_pkg_name, user_id, \"group_name\", key_name, data) \
       VALUES ('$1', $LSP_UID, '$2', '$3', x'$4');"
}

_lsp_delete_row() {
    _lsp_check_schema || return 1
    _lsp_query \
      "DELETE FROM module_configs \
         WHERE module_pkg_name='$1' \
           AND user_id=$LSP_UID \
           AND \"group_name\"='$2' \
           AND key_name='$3';"
}

_lsp_detect_type() {
    _hex=$1
    [ -z "$_hex" ] && return 1
    _tok=${_hex:8:2}
    case "$_tok" in
        74) echo string ;;
        73)
            case "$_hex" in
                *6A6176612E6C616E672E496E7465676572*) echo int ;;
                *6A6176612E6C616E672E4C6F6E67*)       echo long ;;
                *6A6176612E6C616E672E426F6F6C65616E*) echo bool ;;
                *) return 1 ;;
            esac
            ;;
        *) return 1 ;;
    esac
}

_lsp_extract_value() {
    _hex=$1
    [ -z "$_hex" ] && return 1
    _tok=${_hex:8:2}
    case "$_tok" in
        74)
            _len=$((16#${_hex:10:4}))
            _lsp_hex_to_str "${_hex:14:$((_len*2))}"
            ;;
        73)
            case "$_hex" in
                *6A6176612E6C616E672E496E7465676572*)
                    printf '%d' "$((16#${_hex: -8}))" ;;
                *6A6176612E6C616E672E4C6F6E67*)
                    printf '%s' "${_hex: -16}" ;;
                *6A6176612E6C616E672E426F6F6C65616E*)
                    case "${_hex: -2}" in
                        01) printf 'true' ;;
                        00) printf 'false' ;;
                    esac ;;
                *) return 1 ;;
            esac
            ;;
        *) return 1 ;;
    esac
}

_lsp_build_blob() {
    _type=$1
    _val=$2
    _hdr="ACED0005"
    case "$_type" in
        string)
            _vh=$(_lsp_str_to_hex "$_val")
            _ln=$(printf '%04X' "${#_val}")
            printf '%s' "${_hdr}74${_ln}${_vh}"
            ;;
        int)
            _ch=$(_lsp_str_to_hex "java.lang.Integer")
            _cl=$(printf '%04X' 17)
            _fh=$(_lsp_str_to_hex "value")
            _fl=$(printf '%04X' 5)
            _vx=$(printf '%08X' "$_val")
            printf '%s' "${_hdr}7372${_cl}${_ch}12E2A0A4F781873802000149${_fl}${_fh}7870${_vx}"
            ;;
        long)
            _ch=$(_lsp_str_to_hex "java.lang.Long")
            _cl=$(printf '%04X' 14)
            _fh=$(_lsp_str_to_hex "value")
            _fl=$(printf '%04X' 5)
            _vx=$(printf '%016X' "$_val")
            printf '%s' "${_hdr}7372${_cl}${_ch}3B8BE490CC8F23DF0200014A${_fl}${_fh}7870${_vx}"
            ;;
        bool)
            _ch=$(_lsp_str_to_hex "java.lang.Boolean")
            _cl=$(printf '%04X' 17)
            _fh=$(_lsp_str_to_hex "value")
            _fl=$(printf '%04X' 5)
            case "$_val" in
                true|1)  _vx="01" ;;
                false|0) _vx="00" ;;
                *) return 1 ;;
            esac
            printf '%s' "${_hdr}7372${_cl}${_ch}CD207280D59CFAEE0200015A${_fl}${_fh}7870${_vx}"
            ;;
        *) return 1 ;;
    esac
}

lsp_get() {
    _hex=$(_lsp_query_blob "$1" "$2" "$3")
    [ -z "$_hex" ] && return 1
    _lsp_extract_value "$_hex"
    echo
}

lsp_type() {
    _hex=$(_lsp_query_blob "$1" "$2" "$3")
    _lsp_detect_type "$_hex"
}

lsp_set() {
    _type=${5:-string}
    _blob=$(_lsp_build_blob "$_type" "$4") || return 1
    _blob=$(printf '%s' "$_blob" | tr 'a-f' 'A-F')
    _lsp_write_blob "$1" "$2" "$3" "$_blob"
}

lsp_del() { _lsp_delete_row "$1" "$2" "$3"; }

lsp_has() {
    _hex=$(_lsp_query_blob "$1" "$2" "$3")
    [ -n "$_hex" ]
}

lsp_keys() {
    _lsp_check_schema || return 1
    _lsp_query \
      "SELECT key_name FROM module_configs \
         WHERE module_pkg_name='$1' \
           AND user_id=$LSP_UID \
           AND \"group_name\"='$2' \
       ORDER BY rowid;"
}

lsp_groups() {
    _lsp_check_schema || return 1
    _lsp_query \
      "SELECT DISTINCT \"group_name\" FROM module_configs \
         WHERE module_pkg_name='$1' \
           AND user_id=$LSP_UID \
       ORDER BY \"group_name\";"
}

lsp_dump() {
    _mod=$1; _grp=$2
    lsp_keys "$_mod" "$_grp" | while IFS= read -r _k; do
        [ -z "$_k" ] && continue
        _hex=$(_lsp_query_blob "$_mod" "$_grp" "$_k")
        _t=$(_lsp_detect_type "$_hex")
        _v=$(_lsp_extract_value "$_hex")
        printf '%s\t%s\t%s\n' "$_k" "$_t" "$_v"
    done
}

lsp_raw() { _lsp_query_blob "$1" "$2" "$3"; }

lsp_count() {
    _lsp_check_schema || return 1
    _lsp_query \
      "SELECT count(*) FROM module_configs \
         WHERE module_pkg_name='$1' \
           AND user_id=$LSP_UID \
           AND \"group_name\"='$2';"
}


================================================
FILE: Module/Yuri/security_patch.sh
================================================
#!/system/bin/sh

log_message() {
    echo "$(date +%Y-%m-%d\ %H:%M:%S) [SET_SECURITY_PATCH] $1"
}

log_message "Start"

sp="/data/adb/tricky_store/security_patch.txt"

# Get current year / month / day
current_year=$(date +%Y) || {
    log_message "Error: Failed to get current year"
    return 1
}

current_month=$(date +%m | sed 's/^0*//') || {
    log_message "Error: Failed to get current month"
    return 1
}

current_day=$(date +%d | sed 's/^0*//') || {
    log_message "Error: Failed to get current day"
    return 1
}

# Logic: Security Patch drop on the 5th. 
if [ "$current_day" -lt 10 ]; then
  # Before the 5th: Use previous month
  if [ "$current_month" -eq 1 ]; then
    target_month=12
    target_year=$((current_year - 1))
  else
    target_month=$((current_month - 1))
    target_year=$current_year
  fi
else
  # On or after the 10th: Use current month
  target_month=$current_month
  target_year=$current_year
fi

# Format the target month to always have two digits (e.g., 03)
formatted_month=$(printf "%02d" "$target_month") || {
  log_message "Error: Failed to format month"
  return 1
}

patch_date="${target_year}-${formatted_month}-05"

log_message "Writing"

# Write correct Trickystore format
cat > "$sp" <<EOF
system=prop
boot=$patch_date
vendor=$patch_date
EOF

if [ $? -ne 0 ]; then
    log_message "Error: Failed to write $sp"
    return 1
fi

log_message "Finish"


================================================
FILE: Module/Yuri/select_app_neccesary.sh
================================================
#!/bin/sh

log_message() {
    echo "$(date +%Y-%m-%d\ %H:%M:%S) [KILL_ALL] $1"
}

# Start
log_message "Start"

t='/data/adb/tricky_store/target.txt'

# Writing
log_message "Writing"
rm -rf "$t"
# add list special
fixed_targets="\
android
com.android.vending
com.google.android.gsf
com.google.android.gms
com.google.android.ims
io.github.vvb2060.keyattestation?
io.github.vvb2060.mahoshojo?
io.github.qwq233.keyattestation?
com.google.android.contactkeys
com.google.android.safetycore
com.google.android.apps.walletnfcrel
com.google.android.apps.nbu.paisa.user
com.reveny.nativecheck?
icu.nullptr.nativetest?
com.android.nativetest?
io.liankong.riskdetector?
me.garfieldhan.holmes?
luna.safe.luna?
com.zhenxi.hunter?
com.studio.duckdetector?
com.eltavine.duckdetector?
com.rem01gaming.disclosure?
wu.keyChain.test?
com.kikyps.crackme?
com.chunqiunativecheck?"
for entry in $fixed_targets; do
    if ! echo "$entry" >> "$t"; then
        log_message "Error: Failed to write $entry to $t"
        return 1
    fi
done

log_message "Finish"


================================================
FILE: Module/Yuri/target_txt.sh
================================================
#!/system/bin/sh

log_message() {
    echo "$(date +%Y-%m-%d\ %H:%M:%S) [SET_TARGET] $1"
}

log_message "Start"

t='/data/adb/tricky_store/target.txt'
tees='/data/adb/tricky_store/tee_status'

# tee status 
teeBroken="false"
if [ -f "$tees" ]; then
    teeBroken=$(grep -E '^teeBroken=' "$tees" | cut -d '=' -f2 2>/dev/null || echo "false")
    if [ -z "$teeBroken" ]; then
        log_message "Error: Failed to parse teeBroken status"
        return 1
    fi
fi

# add list special
rm -rf "$t"
fixed_targets="\
android
com.android.vending
com.google.android.gsf
com.google.android.gms
com.google.android.ims
io.github.vvb2060.keyattestation?
io.github.vvb2060.mahoshojo?
io.github.qwq233.keyattestation?
com.google.android.contactkeys
com.google.android.safetycore
com.google.android.apps.walletnfcrel
com.google.android.apps.nbu.paisa.user
com.reveny.nativecheck?
icu.nullptr.nativetest?
com.android.nativetest?
io.liankong.riskdetector?
me.garfieldhan.holmes?
luna.safe.luna?
com.zhenxi.hunter?
com.studio.duckdetector?
com.eltavine.duckdetector?
com.rem01gaming.disclosure?
wu.keyChain.test?
com.kikyps.crackme?
com.chunqiunativecheck?"
for entry in $fixed_targets; do
    if ! echo "$entry" >> "$t"; then
        log_message "Error: Failed to write $entry to $t"
        return 1
    fi
done

# add list
log_message "Writing"

add_packages() {
    pkgs=$(pm list packages "$1" 2>/dev/null)
    if [ $? -ne 0 ] || [ -z "$pkgs" ]; then
        log_message "Error: Failed to list packages with flag $1"
        return 1
    fi

    echo "$pkgs" | cut -d ":" -f 2 | while read -r pkg; do
        if [ -n "$pkg" ] && ! grep -q "^$pkg" "$t"; then
            if [ "$teeBroken" = "true" ]; then
                if ! echo "$pkg?" >> "$t"; then
                    log_message "Error: Failed to write $pkg? to $t"
                    return 1
                fi
            else
                if ! echo "$pkg" >> "$t"; then
                    log_message "Error: Failed to write $pkg to $t"
                    return 1
                fi
            fi
        fi
    done
}

# add user apps
add_packages "-3"

# add system apps
add_packages "-s"

log_message "Finish"


================================================
FILE: Module/Yuri/yuri_keybox.sh
================================================
#!/system/bin/sh

# Define important paths and file names
TRICKY_DIR="/data/adb/tricky_store"
REMOTE_URL="https://raw.githubusercontent.com/Yurii0307/yurikey/main/key"
REMOTE_FILE="$TRICKY_DIR/keybox"
TARGET_FILE="$TRICKY_DIR/keybox.xml"
BACKUP_FILE="$TRICKY_DIR/keybox.xml.bak"
DECODE_FILE="$TRICKY_DIR/keybox_decode"
DEPENDENCY_MODULE="/data/adb/modules/tricky_store"
DEPENDENCY_MODULE_UPDATE="/data/adb/modules_update/tricky_store"
BBIN="/data/adb/Yurikey/bin"
ORG_PATH="$PATH"

log_message() {
    echo "$(date +%Y-%m-%d\ %H:%M:%S) [YURI_KEYBOX] $1"
}
log_message "Start"

# Check if Tricky Store module is installed (required dependency)
if [ ! -d "$DEPENDENCY_MODULE_UPDATE" ] && [ ! -d "$DEPENDENCY_MODULE" ]; then
  log_message "Error: Tricky Store module file not found!"
  log_message "Please install Tricky Store before using Yuri Keybox."
  return 0
fi

# Backup keybox before fetching
if [ -f "$TARGET_FILE" ]; then
  mv "$TARGET_FILE" "$BACKUP_FILE"
fi

download() {
    PATH=/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH
    if command -v curl >/dev/null 2>&1; then
        curl --connect-timeout 10 -Ls "$1"
    else
        busybox wget -T 10 --no-check-certificate -qO- "$1"
    fi
    PATH="$ORG_PATH"
}

# Function to download the remote keybox
get_keybox() {
    download "$REMOTE_URL" > "$REMOTE_FILE" || log_message "Error: Keybox download failed, please download and add it manually!"

    if ! base64 -d "$REMOTE_FILE" > "$DECODE_FILE" 2>/dev/null; then
        log_message "Error: Base64 decode failed!"
        rm -f "$REMOTE_FILE"
        mv "$BACKUP_FILE" "$TARGET_FILE"
        return 1
    fi

    rm -f "$REMOTE_FILE"
    mv "$DECODE_FILE" "$TARGET_FILE"
    return 0
}

# Function to update the keybox file
update_keybox() {
  if ! get_keybox; then
    log_message "Failed to fetch keybox!"
    return
  fi
}

# Start main logic
log_message "Writing"

mkdir -p "$TRICKY_DIR" # Make sure the directory exists
update_keybox          # Begin the update process

log_message "Finish"


================================================
FILE: Module/Yuri/yurirka.sh
================================================
#!/system/bin/sh
# yurirka — RKA provisioning for PassIt
# Contributed by mhmrdd <https://github.com/mhmrdd>

SCRDIR=$(cd "$(dirname "$0")" && pwd)
. "$SCRDIR/rka/jsonarray.sh"

MOD="io.github.mhmrdd.libxposed.ps.passit"

pm path "$MOD" >/dev/null 2>&1 || exit 1

CFG="/data/user/$(id -u)/${MOD}/files/rka_configs.json"
IDFILE="/data/local/tmp/yurid"

RKA_NAME="Yuri RKA"
RKA_HOST="rp.mhmrdd.me"
RKA_TCP=59416
RKA_UDP=0
RKA_TOKEN="yurikey-5b70e270d6d69cd399c59ca3d62ccf6e"

prev_id=""
if [ -f "$IDFILE" ]; then
    prev_id=$(cat "$IDFILE" 2>/dev/null)
    case "$prev_id" in
        ????????-????-????-????-????????????) ;;
        *) prev_id="" ;;
    esac
fi

if [ -n "$prev_id" ] && ja_has "$CFG" "$prev_id"; then
    ja_set "$CFG" "$prev_id" name      "$RKA_NAME"
    ja_set "$CFG" "$prev_id" host      "$RKA_HOST"
    ja_set "$CFG" "$prev_id" tcpPort       "$RKA_TCP"    n
    ja_set "$CFG" "$prev_id" udpPort       "$RKA_UDP"    n
    ja_set "$CFG" "$prev_id" authToken "$RKA_TOKEN"
    ja_set "$CFG" "$prev_id" isActive  true           b
else
    prev_id=$(ja_add "$CFG" \
        "name=$RKA_NAME" \
        "host=$RKA_HOST" \
        "tcpPort=$RKA_TCP" \
        "udpPort=$RKA_UDP" \
        "authToken=$RKA_TOKEN" \
        "isActive=true")
    printf '%s' "$prev_id" > "$IDFILE"
fi

for _oid in $(ja_ids "$CFG"); do
    [ "$_oid" = "$prev_id" ] && continue
    ja_set "$CFG" "$_oid" isActive false b
done


================================================
FILE: Module/Yuri/znctl.sh
================================================
#!/system/bin/sh

log_message() {
    echo "$(date +%Y-%m-%d\ %H:%M:%S) [ZYGISK_NEXT] $1"
}

log_message "Start"

TARGET_FILE="/data/adb/modules/zygisksu/module.prop"
SCRIPT_FILE="/data/adb/modules/zygisksu/bin/zygiskd"
REQUIRED="1.3.0"

# Check if Zygisk Next installed
if [ ! -f "$TARGET_FILE" ]; then
  log_message "Error: Zygisk Next is not found, please install latest Zygisk Next."
  return 1
fi

# Extract the version string
CURRENT=$(grep "^version=" "$TARGET_FILE" | cut -d'=' -f2 | cut -d' ' -f1)

# Compare versions
if [ "$(printf '%s\n%s' "$CURRENT" "$VERSION" | sort -V | head -n1)" != "$CURRENT" ]; then
  log_messgae "Error: Zygisk Next version is too low, please install latest Zygisk Next."
  return 1
fi

znctl() {
    [ -n "$1" ] && "$SCRIPT_FILE" "$@" 2>/dev/null
}

# Function to change configs
zn_configs() {
  znctl enforce-denylist just_umount
  znctl memory-type anonymous
  znctl linker builtin
}

set_zn_configs () {
  if ! zn_configs; then
    log_message "Failed to update configs!"
    return
  fi
}

# Start main logic
log_message "Writing"

mkdir -p "$SCRIPT_FILE" # Make sure the directory exists
set_zn_configs          # Begin the update process

log_message "Finish"


================================================
FILE: Module/action.sh
================================================
MODPATH="${0%/*}"

# ensure not running in busybox ash standalone shell
set +o standalone
unset ASH_STANDALONE

for SCRIPT in \
  "kill_google_process.sh" \
  "target_txt.sh" \
  "security_patch.sh" \
  "boot_hash.sh" \
  "yuri_keybox.sh"
do
  if ! sh "$MODPATH/Yuri/$SCRIPT"; then
    echo "- Error: $SCRIPT failed. Aborting..."
    exit 1
  fi
done
  sh "$MODPATH/Yuri/pif.sh"

if [ -f /data/adb/modules_update/Yurikey/webroot/common/device-info.sh ]; then
  sh /data/adb/modules_update/Yurikey/webroot/common/device-info.sh
elif [ -f /data/adb/modules/yurikey/webroot/common/device-info.sh ]; then
  sh /data/adb/modules/yurikey/webroot/common/device-info.sh
fi

echo -e "$(date +%Y-%m-%d\ %H:%M:%S) Meets Strong Integrity with Yurikey Manager✨✨"

================================================
FILE: Module/customize.sh
================================================
#!/system/bin/sh

# Define important paths and file names
TRICKY_DIR="/data/adb/tricky_store"
REMOTE_URL="https://raw.githubusercontent.com/Yurii0307/yurikey/main/key"
REMOTE_FILE="$TRICKY_DIR/keybox"
TARGET_FILE="$TRICKY_DIR/keybox.xml"
BACKUP_FILE="$TRICKY_DIR/keybox.xml.bak"
DECODE_FILE="$TRICKY_DIR/keybox_decode"
DEPENDENCY_MODULE="/data/adb/modules/tricky_store"
DEPENDENCY_MODULE_UPDATE="/data/adb/modules_update/tricky_store"
BBIN="/data/adb/Yurikey/bin"
ORG_PATH="$PATH"

# Show UI banner
ui_print ""
ui_print "*********************************"
ui_print "*****Yuri Keybox Installer*******"
ui_print "*********************************"
ui_print ""

# Remove old module if legacy path exists (lowercase 'yurikey')
if [ -d "/data/adb/modules/yurikey" ]; then
  touch /data/adb/modules/yurikey/remove
fi

# Check if Tricky Store module is installed (required dependency)
if [ ! -d "$DEPENDENCY_MODULE_UPDATE" ] && [ ! -d "$DEPENDENCY_MODULE" ]; then
  ui_print "- Error: Tricky Store module file not found!"
  ui_print "- Please install Tricky Store before using Yuri Keybox."
  return 0
fi

# A few wipes
if [ -d "$BBIN" ]; then
  rm -rf $BBIN
fi

download() {
    PATH=/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH
    if command -v curl >/dev/null 2>&1; then
        curl --connect-timeout 10 -Ls "$1"
    else
        busybox wget -T 10 --no-check-certificate -qO- "$1"
    fi
    PATH="$ORG_PATH"
}

# Function to download the remote keybox
get_keybox() {
    download "$REMOTE_URL" > "$REMOTE_FILE" || ui_print "Error: Keybox download failed, please add keybox manually!"

    if ! base64 -d "$REMOTE_FILE" > "$DECODE_FILE" 2>/dev/null; then
        ui_print "- Error: Base64 decode failed!"
        return 1
    fi
    return 0
}

# Function to update the keybox file
update_keybox() {
  ui_print "- Fetching remote keybox..."
  if ! get_keybox; then
    ui_print "- Failed to fetch keybox!"
    return
  fi

  # Check if keybox already exists
  if [ -f "$TARGET_FILE" ]; then
    # If the new one is identical, skip update
    if cmp -s "$TARGET_FILE" "$DECODE_FILE"; then
      ui_print "- Existing Yuri Keybox found. No changes made."
      rm -f "$REMOTE_FILE"
      return
    else
      # If the file differs, back up the old one
      ui_print "- Existing keybox is not by Yuri."
      ui_print "- Creating a backup keybox..."
      mv "$TARGET_FILE" "$BACKUP_FILE"
      mv "$DECODE_FILE" "$TARGET_FILE"
    fi
  else
    ui_print "- No keybox found! Creating a new one..."
    mv "$DECODE_FILE" "$TARGET_FILE"
    rm -f "$REMOTE_FILE"
  fi
}
# Start main logic
ui_print "- Checking if there is an Yuri Keybox..."
mkdir -p "$TRICKY_DIR" # Make sure the directory exists
update_keybox          # Begin the update process

# Run bundled device-info.sh if present (already verified)
DEVICE_INFO_SCRIPT="$TMPDIR/webroot/common/device-info.sh"
if [ -f "$DEVICE_INFO_SCRIPT" ]; then
  sh "$DEVICE_INFO_SCRIPT"
else
  # fallback: run already-installed one
  if [ -f /data/adb/modules_update/Yurikey/webroot/common/device-info.sh ]; then
    sh /data/adb/modules_update/Yurikey/webroot/common/device-info.sh
  elif [ -f /data/adb/modules/yurikey/webroot/common/device-info.sh ]; then
    sh /data/adb/modules/yurikey/webroot/common/device-info.sh
  fi
fi


================================================
FILE: Module/module.prop
================================================
id=Yurikey
name=Yurikey Manager
version=v3.0.5
versionCode=305
author=Yurikey Dev
banner=https://raw.githubusercontent.com/Yurii0307/yurikey/main/doc/banner.webp
description=A systemless module to get strong integrity so easily
updateJson=https://raw.githubusercontent.com/Yurii0307/yurikey/main/update.json


================================================
FILE: Module/service.sh
================================================
#!/system/bin/sh

# Function to check and reset property if it doesn't match the expected value
check_reset_prop() {
  local NAME=$1
  local EXPECTED=$2
  local VALUE=$(resetprop $NAME)
  [ -z $VALUE ] || [ $VALUE = $EXPECTED ] || resetprop -n $NAME $EXPECTED
}

# Function to check if a property contains a specific string and reset it
contains_reset_prop() {
  local NAME=$1
  local CONTAINS=$2
  local NEWVAL=$3
  [[ "$(resetprop $NAME)" = *"$CONTAINS"* ]] && resetprop -n $NAME $NEWVAL
}

# Wait for boot completion before applying changes
resetprop -w sys.boot_completed 0

# Bootloader and Verified Boot properties
check_reset_prop "ro.boot.vbmeta.device_state" "locked"
check_reset_prop "ro.boot.verifiedbootstate" "green"
check_reset_prop "ro.boot.flash.locked" "1"
check_reset_prop "ro.boot.veritymode" "enforcing"
check_reset_prop "ro.boot.warranty_bit" "0"
check_reset_prop "ro.warranty_bit" "0"
check_reset_prop "ro.debuggable" "0"
check_reset_prop "ro.force.debuggable" "0"
check_reset_prop "ro.secure" "1"
check_reset_prop "ro.adb.secure" "1"
check_reset_prop "ro.build.type" "user"
check_reset_prop "ro.build.tags" "release-keys"
check_reset_prop "ro.vendor.boot.warranty_bit" "0"
check_reset_prop "ro.vendor.warranty_bit" "0"
check_reset_prop "vendor.boot.vbmeta.device_state" "locked"
check_reset_prop "vendor.boot.verifiedbootstate" "green"
check_reset_prop "sys.oem_unlock_allowed" "0"

# MIUI specific properties
check_reset_prop "ro.secureboot.lockstate" "locked"

# Realme specific properties
check_reset_prop "ro.boot.realmebootstate" "green"
check_reset_prop "ro.boot.realme.lockstate" "1"

# Hide that we booted from recovery when magisk is in recovery mode
contains_reset_prop "ro.bootmode" "recovery" "unknown"
contains_reset_prop "ro.boot.bootmode" "recovery" "unknown"
contains_reset_prop "vendor.boot.bootmode" "recovery" "unknown"

# Security attributes
check_reset_prop "ro.secure" "1"
check_reset_prop "ro.debuggable" "0"
check_reset_prop "ro.build.type" "user"
check_reset_prop "ro.build.tags" "release-keys"

# Partition verification (Hide warnings)
check_reset_prop "partition.system.verified" "0"
check_reset_prop "partition.vendor.verified" "0"
check_reset_prop "partition.product.verified" "0"
check_reset_prop "partition.system_ext.verified" "0"
check_reset_prop "partition.odm.verified" "0"

# OEM Unlock status
check_reset_prop "ro.oem_unlock_supported" "0"

# USB / ADB settings
check_reset_prop "persist.sys.usb.config" "none"
check_reset_prop "service.adb.root" "0"

# Boot / Verification status
check_reset_prop "ro.boot.selinux" "enforcing"
check_reset_prop "ro.boot.verifiedbootstate" "green"
check_reset_prop "ro.boot.flash.locked" "1"
check_reset_prop "ro.boot.avb_version" "1.3"
check_reset_prop "ro.boot.vbmeta.device_state" "locked"
check_reset_prop "ro.crypto.state" "encrypted"

================================================
FILE: Module/uninstall.sh
================================================
#!/system/bin/sh

TRICKY_DIR="/data/adb/tricky_store"
TARGET_FILE="$TRICKY_DIR/keybox.xml"
BACKUP_FILE="$TRICKY_DIR/keybox.xml.bak"
BBIN="/data/adb/Yurikey/bin"

ui_print() {
  echo "$1"
}

backup () {
if [ -f "$BACKUP_FILE" ]; then
  rm -f "$TARGET_FILE"
  mv "$BACKUP_FILE" "$TARGET_FILE"
fi
}

if [ -f "$TARGET_FILE" ]; then
  if grep -q "yuriiroot" "$TARGET_FILE"; then
    backup
  fi
fi

if [ -d "$BBIN" ]; then
  rm -rf $BBIN
fi


================================================
FILE: Module/webroot/common/FixWidevineL1/FixWidevineL1.sh
================================================
LD_LIBRARY_PATH=/vendor/lib64/hw /vendor/bin/KmInstallKeybox /data/local/tmp/attestation attestation true

================================================
FILE: Module/webroot/common/FixWidevineL1/attestation
================================================
<?xml version="1.0"?>                 
<AndroidAttestation><NumberOfKeyboxes>1</NumberOfKeyboxes><Keybox DeviceID="attestation"><Key algorithm="ecdsa"><PrivateKey format="pem">
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIITtDeCxHmadsR64nZgJmqW/tuWN2vjvpKHQc+ZK16vCoAoGCCqGSM49
AwEHoUQDQgAEze1OfhlNmrrghv23VH1080nuiOHTkE6U6UafCefyO9AeJb3ZjzTr
jJ5sVXRQ8zoP0kea8mB2Cg2/acuzQIcJeg==
-----END EC PRIVATE KEY-----
</PrivateKey><CertificateChain><NumberOfCertificates>3</NumberOfCertificates><Certificate format="pem">
-----BEGIN CERTIFICATE-----
MIIB8jCCAXmgAwIBAgIQFOOLOXnt7wbQ6VtxMaCLIjAKBggqhkjOPQQDAjA5MQww
CgYDVQQMDANURUUxKTAnBgNVBAUTIGUwYzM1NDhhNDdlNzNmMmE3NWZiOWVkNmRh
NWJmM2U4MB4XDTIwMDkyODIwMTgzOFoXDTMwMDkyNjIwMTgzOFowOTEMMAoGA1UE
DAwDVEVFMSkwJwYDVQQFEyAxOTllNWRjYWY1NjZhMGUzZWY5MDY2ZjMwNWU3NTZj
YTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABM3tTn4ZTZq64Ib9t1R9dPNJ7ojh
05BOlOlGnwnn8jvQHiW92Y8064yebFV0UPM6D9JHmvJgdgoNv2nLs0CHCXqjYzBh
MB0GA1UdDgQWBBRNOkkWmT0V3Uyj7ZjdQov5G6K66TAfBgNVHSMEGDAWgBTCUwGu
PmMBr/KlnNVfgJSOADJOPDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIC
BDAKBggqhkjOPQQDAgNnADBkAjAJKrzd5ePYC4kDP4xLvI8xuaBy1F3g4aeKWQNx
yFCFZMvuCwZ0vu58TDtoeGBsKVACMF7ixBjTVML8pHXcAh6cjk+60Syk0QsbnKxo
eDO28ev+S2qAjI1yvJD1UzqjyoIOCg==
-----END CERTIFICATE-----
</Certificate><Certificate format="pem">
-----BEGIN CERTIFICATE-----
MIIDkzCCAXugAwIBAgIQFk/xbbOK0z0ZBF99wwx/zDANBgkqhkiG9w0BAQsFADAb
MRkwFwYDVQQFExBmOTIwMDllODUzYjZiMDQ1MB4XDTIwMDkyODIwMTc0OVoXDTMw
MDkyNjIwMTc0OVowOTEMMAoGA1UEDAwDVEVFMSkwJwYDVQQFEyBlMGMzNTQ4YTQ3
ZTczZjJhNzVmYjllZDZkYTViZjNlODB2MBAGByqGSM49AgEGBSuBBAAiA2IABJHz
0uU3kbaMjfVN38GXDgIBLl4Gp7P59n6+zmqoswoBrbrsCiFOWUU+B918FnEVcW86
joLS+Ysn7msakvrHanJMJ4vDwD7/p+F6nkQ9J95FEkuq71oGTzCrs6SlCHu5XqNj
MGEwHQYDVR0OBBYEFMJTAa4+YwGv8qWc1V+AlI4AMk48MB8GA1UdIwQYMBaAFDZh
4QB8iAUJUYtEbEf/GkzJ6k8SMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQD
AgIEMA0GCSqGSIb3DQEBCwUAA4ICAQAnO5KNrbenSYxIOfzxH47CNi3Qz2O5+FoP
W7svNjggg/hZotSwbddpSVa+fdQYYYZdHMPNjQKXYaDxPPC2i/8KBhscq+TW1k9Y
KP+qNGMZ2CKzRIT0pByL0M5LQNbH6VxAvzGlaCvTOIsDmlLyjzmT9QMtjWkmLKdu
ISOa72hGMM4kCcIRKcgsq/s00whsOJ6IT27lp85AATuL9NvNE+kC1TZ96zEsR8Op
lur4euBmFoGzmtSFsZa9TNyc68RuJ+n/bY7iI77wXUz7ER6uj/sfnrjYJFclLjIj
m8Mqp69IZ1nbJsKTgg0e5X4xeecNPLSMp/hGqDOvNnSVbpri6Djm0ZWILk65BeRx
ANDUhICg/iuXnbSLIgPAIxsmniTV41nnIQ2nwDxVtfStsPzSWeEKkMTeta+Lu8jK
KVDcRTt2zoGx+JOQWaEWpOTUM/xZwnJamdHsKBWsskQhFMxLIPJbMeYAeCCswDTE
+LQv31wDTxSrFVw/fcfVY6PSRZWoy+6Q/zF3JATwQnYxNUchZG4suuy/ONPbOhD0
VdzjkSyza6fomTw2F1G3c4jSQIiNV3OIxsxh4ja1ssJqMPuQzRcGGXxX8yQHrg+t
+Dxn32jFVhl5bxTeKuI6mWBYM+/qEBTBEXLNSmVdxrntFaPmiQcguBSFR1oHZyi/
xS/jbYFZEQ==
-----END CERTIFICATE-----
</Certificate><Certificate format="pem">
-----BEGIN CERTIFICATE-----
MIIFHDCCAwSgAwIBAgIJANUP8luj8tazMA0GCSqGSIb3DQEBCwUAMBsxGTAXBgNV
BAUTEGY5MjAwOWU4NTNiNmIwNDUwHhcNMTkxMTIyMjAzNzU4WhcNMzQxMTE4MjAz
NzU4WjAbMRkwFwYDVQQFExBmOTIwMDllODUzYjZiMDQ1MIICIjANBgkqhkiG9w0B
AQEFAAOCAg8AMIICCgKCAgEAr7bHgiuxpwHsK7Qui8xUFmOr75gvMsd/dTEDDJdS
Sxtf6An7xyqpRR90PL2abxM1dEqlXnf2tqw1Ne4Xwl5jlRfdnJLmN0pTy/4lj4/7
tv0Sk3iiKkypnEUtR6WfMgH0QZfKHM1+di+y9TFRtv6y//0rb+T+W8a9nsNL/ggj
nar86461qO0rOs2cXjp3kOG1FEJ5MVmFmBGtnrKpa73XpXyTqRxB/M0n1n/W9nGq
C4FSYa04T6N5RIZGBN2z2MT5IKGbFlbC8UrW0DxW7AYImQQcHtGl/m00QLVWutHQ
oVJYnFPlXTcHYvASLu+RhhsbDmxMgJJ0mcDpvsC4PjvB+TxywElgS70vE0XmLD+O
JtvsBslHZvPBKCOdT0MS+tgSOIfga+z1Z1g7+DVagf7quvmag8jfPioyKvxnK/Eg
sTUVi2ghzq8wm27ud/mIM7AY2qEORR8Go3TVB4HzWQgpZrt3i5MIlCaY504LzSRi
igHCzAPlHws+W0rB5N+er5/2pJKnfBSDiCiFAVtCLOZ7gLiMm0jhO2B6tUXHI/+M
RPjy02i59lINMRRev56GKtcd9qO/0kUJWdZTdA2XoS82ixPvZtXQpUpuL12ab+9E
aDK8Z4RHJYYfCT3Q5vNAXaiWQ+8PTWm2QgBR/bkwSWc+NpUFgNPN9PvQi8WEg5Um
AGMCAwEAAaNjMGEwHQYDVR0OBBYEFDZh4QB8iAUJUYtEbEf/GkzJ6k8SMB8GA1Ud
IwQYMBaAFDZh4QB8iAUJUYtEbEf/GkzJ6k8SMA8GA1UdEwEB/wQFMAMBAf8wDgYD
VR0PAQH/BAQDAgIEMA0GCSqGSIb3DQEBCwUAA4ICAQBOMaBc8oumXb2voc7XCWnu
XKhBBK3e2KMGz39t7lA3XXRe2ZLLAkLM5y3J7tURkf5a1SutfdOyXAmeE6SRo83U
h6WszodmMkxK5GM4JGrnt4pBisu5igXEydaW7qq2CdC6DOGjG+mEkN8/TA6p3cno
L/sPyz6evdjLlSeJ8rFBH6xWyIZCbrcpYEJzXaUOEaxxXxgYz5/cTiVKN2M1G2ok
QBUIYSY6bjEL4aUN5cfo7ogP3UvliEo3Eo0YgwuzR2v0KR6C1cZqZJSTnghIC/vA
D32KdNQ+c3N+vl2OTsUVMC1GiWkngNx1OO1+kXW+YTnnTUOtOIswUP/Vqd5SYgAI
mMAfY8U9/iIgkQj6T2W6FsScy94IN9fFhE1UtzmLoBIuUFsVXJMTz+Jucth+IqoW
Fua9v1R93/k98p41pjtFX+H8DslVgfP097vju4KDlqN64xV1grw3ZLl4CiOe/A91
oeLm2UHOq6wn3esB4r2EIQKb6jTVGu5sYCcdWpXr0AUVqcABPdgL+H7qJguBw09o
jm6xNIrw2OocrDKsudk/okr/AwqEyPKw9WnMlQgLIKw1rODG2NvU9oR3GVGdMkUB
ZutL8VuFkERQGt6vQ2OCw0sV47VMkuYbacK/xyZFiRcrPJPb41zgbQj9XAEyLKCH
ex0SdDrx+tWUDqG8At2JHA==
-----END CERTIFICATE-----
</Certificate></CertificateChain></Key><Key algorithm="rsa"><PrivateKey format="pem">
-----BEGIN RSA PRIVATE KEY-----
MIIG5AIBAAKCAYEApPn7neF2UhbrkP/3IPA3H/zvQa7rXolMXecK0jKqb6dnRqgQ
u0cZajVvaSrYABTFDVfuCX5IEMiM4gYsOT7HDVY0h/SIL0OrdvXR+SHmLRc8D/rK
T9eQIIUtgf776aI/zc2EqPXRO3P8UahDDKfxWClUUOSfcv56zyKaWBaTsOgLGIE8
SiC5seRRd1Bo7qh3UVyP3qVA8pX4AQAA9odg+kXtBA52LeLy5RHcaJJzMqKSPNF2
MFuJSCD3qU7BB5oBMmnYV3RUFa/+QcI/6tg7LVS/P/Elyqnmb2WnuCPhPEtaW7Ip
SR8Vdmku7YFE7zXiCrFolxFd0pgNjfuGFdoqUbjyWfrzt0SABgKTYRQygX7mquiZ
uKzE0d02gkB9ucG123aupjN07XQC5DqwDG+rBdqNQ6yNL49LACnxMSxwCGoh6dpc
9jgXzT1SMH9v0Wp+krIWd94/WG+HosFFpCXKEj0yAQvCVzkBfx3wfHS/scYY6yXK
UCTGqwUPIcQ7MdnHAgMBAAECggGBAIP0//F0mXNnqdw9IKpT+YO4iJb9Fn5zS4YA
e4NNy02rlMvLOjbR095EB20TO9o0wri9kEQ/odzqzOUtEspnEEf2n+XvDc7gTZHF
ZcHj/3wpjX0qmA/s1/drDs9f6Jcjk+1FacrLdCQdzcBy2c6RtlVSGYLqmy8bpZdw
kgvLYy6pK9bZ6CNSsbU8bn0E8CmUznthkiIABEcE9W23Vw3ZkxQcQkxwVM63LJlV
A/sQyNvDdTz4PZTIYrIyzGW7/GHcJ7glMJQnvPVIl4XZqhpxk/iK8KC6FqclnHG5
BA2EaDrXiHa+THqGavkPpLzIBIS3odxFEDiRbrekDVT7nVQ21OhSIg4Mp++CT/RL
uiavlXJC0qobL23GRm9IUmkq88pGt1K06V3csaKfgOnJn4EMV5HorARnq1Zhtw/P
4Pzse+BQkTRfANVQ4ueocQus+MtutsJESvh4MF+ghgf0xeLWQs7rHNEIbRZhVxyX
kAQngkmoBw2U/Gziz7gkcXgRlh6HgQKBwQDQTCALdpIS8uWZfV8UQK5WzqKIyX3+
/NhFExsHI3GBjRSMVPbtphSPuD54jTZKboLuOGfHJAWleduYr0XUiUkMku37Y7Xj
anGUzSZvB3qasKxHfWxZKH+1OBWFlj7bkwgsLAh4+50Md44d7MfceD0mWBOyVlRt
5L8vIzLPxltbRcidISlnk/Moqk38QVGtQ7vo3NOR6PJwPY/V/g1/QDC2LORBNmt9
6Eqs3LdNf+3rSCaaYhD1XbaYQ7j095eFIBcCgcEAysIUdEUXrySRGGQ2PiBlszD0
l9jqL/wJEe+tOTu3F7+Qu7zmcS5Q0cbFJY+ztPPgzSrw2DOiFvPH63KlA9wJ2POR
O2pXar668FxJjoNF1Jkb8vMISrk/IHDYn7GL+/XTPiB+RglVgjz2ID+Z9UQZZRDp
R8p0Eqa12OxoP7HK7fmUkBjWKTqi1VDtfB6vM+EM7cxd+CsiKpazDjWGwMMc0jz7
ABiMFhhKiC+yq4fECXHt6ZA9oh8VGUdp7AIJO/HRAoHBAJqJP+UBTRJ93tXna9js
u+tvVqrBQpchI5rrt8uuAhIphysuBhz+cJbIDKEHs1W5c64lbukR0paYN9Gph9dN
G0MW5zTxHwrf9/B7253YIKAPn2FSrkXfhBAA0gbQF0Z0aUXMTWTk1/ld4bRV7Vmm
Y0fFZKeU4QK/CRCBvrrj4PdwaIwbBEryOx7aaw1RsLUpYYo7+0NvXh7jrYkH+R+F
kh42ZAn1w/4fjvd8sQnwdaVvXCSByS8hHc0NwXUNE/8SdQKBwHfg3+8Omr42xILD
XT7GMNsNatAMtAnC3in4p1ZbdBlabdxSB32LgMVG3HEk0X9/Yb5sURHDFWa0o9MV
aXMqubfH6mpSqXS3aBeMuQDFpJfaHqg6AQENHcG0dp+UfctuwILO+1m1UxU5rdvL
Pt/Ab7NNmF+V16LfZkznGYvvNqgVFD1OMfEWdgfhXUgxbC0kNlyypCyCdCTyDNOt
2gpGUdgLreuUl97IZei3KtA36TQcZCnf2lDsR7E2g+3CFmuWwQKBwDucj8UH0GKr
WEEO7q/Z5Vz2e9EyRRXdgrv/yRW1qm7EKAyLPfIb2TKQZqi5Mwr8umnaOfSrqt2p
1Kklhtz5AT73hXaoOqiXmxYDQoWnlXprJekDuV3EbBS0UuhXHrtRmg4bUmZoyTNl
YufICOO52cpPA/K7a0kRbNvwWHwPhZb5GFu9R030YT2yVMDtPIGr5BjwQYrHbxJW
0b13VeIupduHFWNQjkEpkFGvXQT9B8AIFVjOLbfPZKxY/WUltEOFhQ==
-----END RSA PRIVATE KEY-----
</PrivateKey><CertificateChain><NumberOfCertificates>3</NumberOfCertificates><Certificate format="pem">
-----BEGIN CERTIFICATE-----
MIIE4DCCAsigAwIBAgIRAMInLPJfnMrFtWM6NrXgj6kwDQYJKoZIhvcNAQELBQAw
OTEMMAoGA1UEDAwDVEVFMSkwJwYDVQQFEyBlMGMzNTQ4YTQ3ZTczZjJhNzVmYjll
ZDZkYTViZjNlODAeFw0yMDA5MjgyMDE4MzhaFw0zMDA5MjYyMDE4MzhaMDkxDDAK
BgNVBAwMA1RFRTEpMCcGA1UEBRMgMTk5ZTVkY2FmNTY2YTBlM2VmOTA2NmYzMDVl
NzU2Y2EwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCk+fud4XZSFuuQ
//cg8Dcf/O9BruteiUxd5wrSMqpvp2dGqBC7RxlqNW9pKtgAFMUNV+4JfkgQyIzi
Biw5PscNVjSH9IgvQ6t29dH5IeYtFzwP+spP15AghS2B/vvpoj/NzYSo9dE7c/xR
qEMMp/FYKVRQ5J9y/nrPIppYFpOw6AsYgTxKILmx5FF3UGjuqHdRXI/epUDylfgB
AAD2h2D6Re0EDnYt4vLlEdxoknMyopI80XYwW4lIIPepTsEHmgEyadhXdFQVr/5B
wj/q2DstVL8/8SXKqeZvZae4I+E8S1pbsilJHxV2aS7tgUTvNeIKsWiXEV3SmA2N
+4YV2ipRuPJZ+vO3RIAGApNhFDKBfuaq6Jm4rMTR3TaCQH25wbXbdq6mM3TtdALk
OrAMb6sF2o1DrI0vj0sAKfExLHAIaiHp2lz2OBfNPVIwf2/Ran6SshZ33j9Yb4ei
wUWkJcoSPTIBC8JXOQF/HfB8dL+xxhjrJcpQJMarBQ8hxDsx2ccCAwEAAaNjMGEw
HQYDVR0OBBYEFM19INv8epriYePOaPiYL8y349iXMB8GA1UdIwQYMBaAFJ7vzqb8
edZIDz2ZVIkiJkuCFGbMMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgIE
MA0GCSqGSIb3DQEBCwUAA4ICAQADFUIGtksG19PMnfpxz1oi3+EUeMNc/2OfNIry
CSqJt12pYgQxpW0R7glRrDT9JLw6Dajlt6jOSfl25PzcNUsE+twnp3Q4nTcMH1DD
OGuWviQJRuGlkb1GiasqgWaQXNmQEPUwcT85Bzv3h9aH1lnMeWSiQQ7F9dpS0qHV
JjO+yaHdcWHVtOtT9QGqH2P2GyuRnTimR/TJW1LaQHM8m7Ny4dAVhz86d/cYqY5s
r74fPnBSghyTDEUE8zTCU3SkWv+ykAbc+h1B+VpNH4hYm1Zj7HkJAOLFm8QYX0p6
haHo32DI4H3ttjdD4VVA5DiABbUom8goQeNjEU9bOl/WYsf/nYrLKkSSu30047Pf
gxl7UQcov7Xncs2/frytjKVd6L1zWNS3aIqNVMhJTPq1zADMJH1WFP1b77NVJyIB
8O3kuAlbMNILtg/eBhcD5o/8uuR0q0ikfKBWJSxWnf10BmkBkdAHeuFAC2GT+kkj
HGX2o+Q36X0dOBsu2FD5TOdNd8hYCRXyL2FoY+cm1JjziEK2bVoghgGq7iTNON3s
XtQbmOJ2ROpnk7rLKfsrydV9slH5UTe/25Eh9v4ORZOhwG/KA8KzlF2Jw24n+GU3
zZSjZuOjK9dFoPweg6XQkyH5zcQyZ1MpmbRTQR3O0wp6SGfdWhawY6+wP1/Yg7Ca
RZUuGg==
-----END CERTIFICATE-----
</Certificate><Certificate format="pem">
-----BEGIN CERTIFICATE-----
MIIFQTCCAymgAwIBAgIQYtQ3fMcTehyJlxjFD+BUFDANBgkqhkiG9w0BAQsFADAb
MRkwFwYDVQQFExBmOTIwMDllODUzYjZiMDQ1MB4XDTIwMDkyODIwMTY1MFoXDTMw
MDkyNjIwMTY1MFowOTEMMAoGA1UEDAwDVEVFMSkwJwYDVQQFEyBlMGMzNTQ4YTQ3
ZTczZjJhNzVmYjllZDZkYTViZjNlODCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCC
AgoCggIBANbbOT706t8OMUIx1hRGPcwPbaDvruVxbkx9K1QNFZzAFFu8faxHWjqe
um/VPAoaWxo7/pLXJ/1zkhABhTlcB3/aTQWnzxauwXGjZoj0HiUtQj2AoX6RCJX3
HN5hh9FQblE/JoR0/DoJPo/zPWv8OrpQcl06gyBKInTJNKD/+xVwTim6GlEQT754
UF39C+KoogzbwJGgfpT6Jdj08ork11mFOmQb8dszrN8oLzpmcfo83gUmLRKvHBue
TTN/aR/KtVjgsKxSdLgyyZ699A5vBzoFAsQu+lQvqckCF1Qx91wKcIkeYx03pM+4
zKquYe3OhUG5lwqaWsOhRVGpiU7iaFj6VMeInL7gBjS9LE42xnbItM1N4ZbJg5N7
qe4G4ZcQuZI8rEk9kjRgL91zgjQCIie3FU+UpvJSPpjsPjoWCv6paH9VCRcWlXo7
IP2RfTQXBohBznAh7abubK8ujNMa80i3uXN3Q2G0Jr/hIvCGMtNmzE+uPz79FEZG
PjKwO9XX2XtDBXzhgBs+AoV0ODswSbkFOamharOiT+Vq2U1BviDF/O1yzO53EP4S
weaLGsWznwVA7wppkmk2G2p1WjWJ6prBMYNoKLmArq+B5uZAFdLl+r9dy4gNkFyc
g10akANoSQIir+gb+DkiH1kgVuoO8+icTExwxaIdIhk9KWhEz1H3AgMBAAGjYzBh
MB0GA1UdDgQWBBSe786m/HnWSA89mVSJIiZLghRmzDAfBgNVHSMEGDAWgBQ2YeEA
fIgFCVGLRGxH/xpMyepPEjAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIC
BDANBgkqhkiG9w0BAQsFAAOCAgEACmD/wwX1+pNXfct3/q7AYnznjKo5C3MUFNPd
IJ9zYL74PbitMy50NU1XhVAs1uqjsUN+qgOxU9w2rz/0a1yf+2QLGGVFywbjP1Tt
/hZX8Ka04iVdnr7AyObloz9KchTE431wPGXrpEw5/NXr6yvmeUSxKYe1aJBrqHc3
xROh0+WkTHBiLBnlcFr5nmxYrVPDcC9sBwaU6TQvc2JUcBwIu5WowyItgeDrq+8h
0HcpomcHcqrfuEMnO/9LZIQECIf8rTc6k7mD8hL+xOWuqMO48eC8g9xwKXKjEfRo
/RZrM5uW/qP8E1JZyD81J4H0aW1hsuNvd/puUMj9EjWYZW/ud4r15fSJ9LYniJER
rpnUmB43wORBf6x29akHDXyohd6QbunpEhy7HBw7IzZ6ZemZ2zAcDfcI5KiGEyAu
scG3ov+WtGPq39NEc0ux5ipnO9ETkS50BDByFrGeZsGdpGBwK4xYLhmFPVzEaFDk
FOpBEzxfdkMBQX/5PMqYiWkLS8EoyCsdmnua07zs3qQtkXC7sQjwaK9h/FwkEdt/
CdtLvbZUpzd1I/qHJzIuAWhwPBLsCSvSaq+cSEvBPkhVmLJJY+dlkv6zPEo10hv5
y11KV3n/6sIxYNL4TGF1enD64ysmsEy1A6g4UkmMpaHePbLiyb6Ri26TKY7G+wuP
fmjXsWI=
-----END CERTIFICATE-----
</Certificate><Certificate format="pem">
-----BEGIN CERTIFICATE-----
MIIFHDCCAwSgAwIBAgIJANUP8luj8tazMA0GCSqGSIb3DQEBCwUAMBsxGTAXBgNV
BAUTEGY5MjAwOWU4NTNiNmIwNDUwHhcNMTkxMTIyMjAzNzU4WhcNMzQxMTE4MjAz
NzU4WjAbMRkwFwYDVQQFExBmOTIwMDllODUzYjZiMDQ1MIICIjANBgkqhkiG9w0B
AQEFAAOCAg8AMIICCgKCAgEAr7bHgiuxpwHsK7Qui8xUFmOr75gvMsd/dTEDDJdS
Sxtf6An7xyqpRR90PL2abxM1dEqlXnf2tqw1Ne4Xwl5jlRfdnJLmN0pTy/4lj4/7
tv0Sk3iiKkypnEUtR6WfMgH0QZfKHM1+di+y9TFRtv6y//0rb+T+W8a9nsNL/ggj
nar86461qO0rOs2cXjp3kOG1FEJ5MVmFmBGtnrKpa73XpXyTqRxB/M0n1n/W9nGq
C4FSYa04T6N5RIZGBN2z2MT5IKGbFlbC8UrW0DxW7AYImQQcHtGl/m00QLVWutHQ
oVJYnFPlXTcHYvASLu+RhhsbDmxMgJJ0mcDpvsC4PjvB+TxywElgS70vE0XmLD+O
JtvsBslHZvPBKCOdT0MS+tgSOIfga+z1Z1g7+DVagf7quvmag8jfPioyKvxnK/Eg
sTUVi2ghzq8wm27ud/mIM7AY2qEORR8Go3TVB4HzWQgpZrt3i5MIlCaY504LzSRi
igHCzAPlHws+W0rB5N+er5/2pJKnfBSDiCiFAVtCLOZ7gLiMm0jhO2B6tUXHI/+M
RPjy02i59lINMRRev56GKtcd9qO/0kUJWdZTdA2XoS82ixPvZtXQpUpuL12ab+9E
aDK8Z4RHJYYfCT3Q5vNAXaiWQ+8PTWm2QgBR/bkwSWc+NpUFgNPN9PvQi8WEg5Um
AGMCAwEAAaNjMGEwHQYDVR0OBBYEFDZh4QB8iAUJUYtEbEf/GkzJ6k8SMB8GA1Ud
IwQYMBaAFDZh4QB8iAUJUYtEbEf/GkzJ6k8SMA8GA1UdEwEB/wQFMAMBAf8wDgYD
VR0PAQH/BAQDAgIEMA0GCSqGSIb3DQEBCwUAA4ICAQBOMaBc8oumXb2voc7XCWnu
XKhBBK3e2KMGz39t7lA3XXRe2ZLLAkLM5y3J7tURkf5a1SutfdOyXAmeE6SRo83U
h6WszodmMkxK5GM4JGrnt4pBisu5igXEydaW7qq2CdC6DOGjG+mEkN8/TA6p3cno
L/sPyz6evdjLlSeJ8rFBH6xWyIZCbrcpYEJzXaUOEaxxXxgYz5/cTiVKN2M1G2ok
QBUIYSY6bjEL4aUN5cfo7ogP3UvliEo3Eo0YgwuzR2v0KR6C1cZqZJSTnghIC/vA
D32KdNQ+c3N+vl2OTsUVMC1GiWkngNx1OO1+kXW+YTnnTUOtOIswUP/Vqd5SYgAI
mMAfY8U9/iIgkQj6T2W6FsScy94IN9fFhE1UtzmLoBIuUFsVXJMTz+Jucth+IqoW
Fua9v1R93/k98p41pjtFX+H8DslVgfP097vju4KDlqN64xV1grw3ZLl4CiOe/A91
oeLm2UHOq6wn3esB4r2EIQKb6jTVGu5sYCcdWpXr0AUVqcABPdgL+H7qJguBw09o
jm6xNIrw2OocrDKsudk/okr/AwqEyPKw9WnMlQgLIKw1rODG2NvU9oR3GVGdMkUB
ZutL8VuFkERQGt6vQ2OCw0sV47VMkuYbacK/xyZFiRcrPJPb41zgbQj9XAEyLKCH
ex0SdDrx+tWUDqG8At2JHA==
-----END CERTIFICATE-----
</Certificate></CertificateChain></Key></Keybox></AndroidAttestation>
<!-- Android Attestation for OPPO / OnePlus / Realme by NekoYuzu -->


================================================
FILE: Module/webroot/common/boot_hash.sh
================================================
#!/system/bin/sh

log_message() {
    echo "$(date +%Y-%m-%d\ %H:%M:%S) [SET_BOOT_HASH] $1"
}

log_message "Start"

# Get vbmeta hash
boot_hash=$(su -c "getprop ro.boot.vbmeta.digest" 2>/dev/null)
[ -z "$boot_hash" ] && boot_hash="0000000000000000000000000000000000000000000000000000000000000000"

file_path="/data/adb/boot_hash"

# Create folder and write file
log_message "Writing"
mkdir -p "$(dirname "$file_path")"
echo "$boot_hash" > "$file_path"
chmod 644 "$file_path"
su -c "resetprop -n ro.boot.vbmeta.digest $boot_hash" >/dev/null 2>&1

log_message "Finish"

================================================
FILE: Module/webroot/common/device-info.sh
================================================
#!/system/bin/sh

# Specify the current root directory for both normal and update path
if [ -d "/data/adb/modules_update/Yurikey" ]; then
  BASE_PATH="/data/adb/modules_update/Yurikey"
else
  BASE_PATH="/data/adb/modules/Yurikey"
fi

INFO_PATH="$BASE_PATH/webroot/json/device-info.json"

android_ver=$(getprop ro.build.version.release)
kernel_ver=$(uname -r)

# Root Implementation
if [ -d "/data/adb/magisk" ] && [ -f "/data/adb/magisk.db" ]; then
  root_type="Magisk"
elif [ -f "/data/apatch/apatch" ]; then
  root_type="Apatch"
elif [ -d "/data/adb/ksu" ] && { [ -d "/data/adb/kpm" ] || [ -f "/data/adb/ksu/.dynamic_sign" ]; }; then
  root_type="SukiSU-Ultra"
elif [ -d "/data/adb/ksu" ] && { [ -f "/data/adb/ksud" ] || [ -f "/sys/module/kernelsu/parameters/expected_manager_size" ]; }; then
  root_type="KernelSU-Next"
elif [ -d "/data/adb/ksu" ]; then
  root_type="KernelSU"
else
  root_type="Unknown"
fi

# Output JSON
cat <<EOF > "$INFO_PATH"
{
  "android": "$android_ver",
  "kernel": "$kernel_ver",
  "root": "$root_type"
}
EOF

================================================
FILE: Module/webroot/common/lsposed2.sh
================================================
#!/system/bin/sh

find /data/app -type f -name base.odex -delete

================================================
FILE: Module/webroot/common/pif2.sh
================================================
#!/system/bin/sh

su -c '
getprop | grep -E "pihook|pixelprops" | sed -E "s/^\[(.*)\]:.*/\1/" | while IFS= read -r prop; do
  resetprop -p -d "$prop"
done
'

================================================
FILE: Module/webroot/common/twrp.sh
================================================
#!/system/bin/sh
# delete_twrp_folder.sh
# Script to delete TWRP folder from Android internal storage

echo "Starting deletion of TWRP folder..."

# Define the TWRP folder path (adjust if needed)
TWRP_FOLDER="/sdcard/TWRP"

if [ -d "$TWRP_FOLDER" ]; then
  echo "- Found folder $TWRP_FOLDER. Deleting..."
  rm -rf "$TWRP_FOLDER"
  echo "Folder deleted successfully."
else
  echo "- Folder $TWRP_FOLDER not found. Nothing to delete."
fi

echo "TWRP folder deletion script completed."

================================================
FILE: Module/webroot/common/widevinel1.sh
================================================
#!/system/bin/sh
# Copy FixWidevineL1/* directory to /data/local/tmp
cp -r ./FixWidevineL1/* /data/local/tmp/

# Set correct permissions
chmod 777 /data/local/tmp/FixWidevineL1.sh
chmod 777 /data/local/tmp/attestation

# Set owner and group to root:root
chown root:root /data/local/tmp/FixWidevineL1.sh
chown root:root /data/local/tmp/attestation

# Execute the script
su -c sh /data/local/tmp/FixWidevineL1.sh


================================================
FILE: Module/webroot/config.json
================================================
{
    "title": "Yurikey Manager",
    "icon": "yurikey.png",
    "windowResize": false,
    "exitConfirm": false
}

================================================
FILE: Module/webroot/css/style.css
================================================
:root {
  color-scheme: dark;
  --ui-bg: #111a26;
  --ui-text: #f3edf7;
  --ui-card-bg: #1d2a3a;
  --ui-card-border: #334759;
  --ui-muted: #c2d0e3;
  --ui-pill-bg: #9ecaff;
  --ui-pill-bg-hover: #b0d4ff;
  --ui-pill-border: #c7ddff;
  --ui-pill-text: #003258;
  --ui-nav-active: #00497d;
  --ui-nav-text: #d1e4ff;
  --ui-nav-text-active: #ffffff;
  --ui-select-bg: #3a546f;
  --ui-select-border: #6f90b2;
  --ui-select-panel: #273a4e;
  --ui-select-panel-border: #587493;
  --snackbar-info: #2196f3;
  --snackbar-success: #43a047;
  --snackbar-warning: #f9a825;
  --snackbar-error: #e53935;
  --snackbar-text: #ffffff;
}

:root[data-theme-mode="light"] {
  color-scheme: light;
  --ui-bg: #e9f2ff;
  --ui-text: #2f2433;
  --ui-card-bg: #f2f7ff;
  --ui-card-border: #c6d8ef;
  --ui-muted: #44607d;
  --ui-pill-bg: #0061a4;
  --ui-pill-bg-hover: #1a74b7;
  --ui-pill-border: #6aa6d3;
  --ui-pill-text: #ffffff;
  --ui-nav-active: #0061a4;
  --ui-nav-text: #001d36;
  --ui-nav-text-active: #ffffff;
  --ui-select-bg: #d1e4ff;
  --ui-select-border: #b2cbe9;
  --ui-select-panel: #e2eeff;
  --ui-select-panel-border: #c3d8f3;
}

body {
  margin: 0;
  background: var(--ui-bg);
  color: var(--ui-text);
}

.page-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 0.75rem 6rem;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-card {
  padding: 1rem;
  border-radius: 1rem;
}

.block {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.9rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.menu-btn {
  width: 100%;
  justify-content: center;
}

.page-title {
  font-size: 1.5rem;
  line-height: 1.2;
}

#home-page #refresh-info-btn,
#actions-page .menu-btn,
#advance-menu .menu-btn,
#settings-page .update-support .menu-btn {
  border-radius: 999px;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ui-pill-border);
  background: var(--ui-pill-bg);
  color: var(--ui-pill-text);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
}

#home-page #refresh-info-btn {
  width: auto;
  min-width: 180px;
  align-self: flex-start;
}

.mini-card {
  padding: 0.5rem 0.8rem;
  border-radius: 0.9rem;
  background: var(--ui-card-bg);
  border: 1px solid var(--ui-card-border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mini-card-value {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ui-text);
}

.module-version-label {
  font-size: 0.98rem;
}

.module-version-value {
  font-size: 1.08rem;
}

.home-top-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}


#home-page #refresh-info-btn:hover,
#actions-page .menu-btn:hover,
#advance-menu .menu-btn:hover,
#settings-page .update-support .menu-btn:hover {
  background: var(--ui-pill-bg-hover);
}

#home-page #refresh-info-btn:disabled,
#home-page #refresh-info-btn.rotating {
  opacity: 1 !important;
  background: var(--ui-pill-bg) !important;
  background-image: none !important;
  color: var(--ui-pill-text) !important;
  border-color: var(--ui-pill-border) !important;
  box-shadow: none !important;
  filter: none !important;
}

#home-page #refresh-info-btn.rotating:hover,
#home-page #refresh-info-btn.rotating:active {
  background: var(--ui-pill-bg) !important;
  background-image: none !important;
}

#home-page #refresh-info-btn.rotating::before,
#home-page #refresh-info-btn.rotating::after {
  color: var(--ui-pill-text) !important;
  border-color: var(--ui-pill-text) !important;
}

#home-page #refresh-info-btn:active,
#actions-page .menu-btn:active,
#advance-menu .menu-btn:active,
#settings-page .update-support .menu-btn:active:active {
  transform: translateY(1px);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Küçük kartlar için daha dar kolonlar */
  gap: 0.75rem;
}

.beer-card {
  padding: 0.8rem 1rem;
  border-radius: 1.25rem;
  background: var(--ui-card-bg);
  border: 1px solid var(--ui-card-border);
  box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  color: var(--ui-muted);
  font-size: 1rem;
}

.section-heading {
  font-size: 1.14rem;
  line-height: 1.35;
}

.long-heading {
  font-size: 1.08rem;
}

.card-value {
  margin: 0.65rem 0 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ui-text);
}

#status-row.online {
  border: 1px solid color-mix(in srgb, var(--tertiary) 50%, transparent);
}

#status-row.offline {
  border: 1px solid color-mix(in srgb, var(--error) 50%, transparent);
}

.bottom-nav {
  position: fixed;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--outline-variant);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgb(0 0 0 / 35%);
}

.nav-btn {
  border: none;
  background: transparent;
  min-height: 44px;
  padding: 0.55rem 0.35rem;
  border-radius: 999px;
  color: var(--ui-nav-text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  opacity: 0.72;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.nav-icon {
  font-size: 18px !important;
  line-height: 1;
  opacity: 0.72;
}

.nav-btn.active {
  background: var(--ui-nav-active);
  color: var(--ui-nav-text-active);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%), 0 8px 24px rgb(127 39 80 / 35%);
  opacity: 1;
}

.nav-btn.active .nav-icon {
  opacity: 1;
  transform: scale(1.03);
}

.nav-btn span {
  font-size: 0.85rem;
  white-space: nowrap;
}

.custom-dropdown {
  position: relative;
}

.lang-select-wrap {
  margin-top: 0.4rem;
}

#settings-page .lang-select-btn {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid var(--ui-select-border);
  background: var(--ui-select-bg);
  color: var(--ui-text);
  font-weight: 600;
  justify-content: space-between;
  padding: 0.8rem 1rem 0.8rem 1.2rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

#settings-page .lang-select-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ui-text);
  margin-left: 0.5rem;
}

.lang-options-list {
  margin-top: 0.45rem;
  border-radius: 1rem;
  background: var(--ui-select-panel);
  border: 1px solid var(--ui-select-panel-border);
  box-shadow: 0 10px 28px rgb(0 0 0 / 45%);
}

.dropdown-list {
  display: none;
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  max-height: 240px;
  overflow-y: auto;
  border-radius: 0.75rem;
  background: var(--surface-container-high);
  border: 1px solid var(--outline-variant);
  padding: 0.25rem 0;
}

.dropdown-list.show {
  display: block;
}

.dropdown-list li {
  list-style: none;
  cursor: pointer;
  padding: 0.6rem 0.75rem;
}

.dropdown-list li:hover {
  background: var(--surface-container-highest);
}

.lang-select-wrap .lang-options-list {
  background: var(--ui-select-panel);
  border: 1px solid var(--ui-select-panel-border);
  box-shadow: 0 10px 28px rgb(0 0 0 / 45%);
}

.lang-select-wrap .lang-options-list li:hover {
  background: color-mix(in srgb, var(--ui-select-panel) 86%, #ffffff 14%);
}

.theme-presets {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
}

.theme-preset-btn {
  border: 1px solid var(--ui-pill-border);
  background: color-mix(in srgb, var(--ui-card-bg) 78%, var(--ui-pill-bg) 22%);
  color: var(--ui-text);
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
  font-weight: 600;
}

.theme-preset-btn.active {
  background: var(--ui-pill-bg);
  color: var(--ui-pill-text);
  border-color: var(--ui-pill-border);
}

#settings-page .surface-variant.block,
#actions-page .surface-variant.block.menu-card,
#advance-menu .surface-variant.block.menu-card {
  background: var(--ui-card-bg);
  border: 1px solid var(--ui-card-border);
  color: var(--ui-text);
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#actions-page .surface-variant.block.menu-card h6,
#advance-menu .surface-variant.block.menu-card h6,
#settings-page .surface-variant.block h6 {
  color: var(--ui-text);
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  #settings-page .surface-variant.block,
  #actions-page .surface-variant.block.menu-card,
  #advance-menu .surface-variant.block.menu-card {
    padding: 0.6rem 0.8rem;
    min-height: 90px;
    border-radius: 0.9rem;
  }

  #actions-page .surface-variant.block.menu-card h6,
  #advance-menu .surface-variant.block.menu-card h6,
  #settings-page .surface-variant.block h6 {
    font-size: 0.9rem;
  }
}

.appearance-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.appearance-title {
  font-size: 1.08rem;
  line-height: 1.2;
}



.contrib-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.contrib-card {
  border: 1px solid var(--outline-variant);
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--ui-card-bg) 88%, #ffffff 12%);
  color: var(--on-surface);
  padding: 0.8rem;
  text-align: center;
  min-height: 138px;
  box-shadow: 0 6px 16px rgb(0 0 0 / 18%);
}

.contrib-card:hover {
  transform: translateY(-2px);
  border-color: var(--ui-pill-border);
}

.contrib-card img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.contrib-name {
  margin-top: 0.45rem;
  font-weight: 700;
}

.contrib-role {
  font-size: 0.85rem;
  color: var(--on-surface-variant);
}

.small-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

#settings-page h6[data-i18n="settings_language"],
#settings-page h6[data-i18n="update_title"],
#settings-page h6[data-i18n="settings_contributors"] {
  font-size: 1.08rem;
}

#settings-page .surface-variant.block > h6:not(.section-heading) {
  font-size: 1.08rem;
}

#settings-page p[data-i18n="update_desc"] {
  font-size: 1rem;
  line-height: 1.55;
}

#settings-page p[data-i18n="update_note"] {
  font-size: 1rem;
  line-height: 1.6;
}



.snackbar {
  position: fixed;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%) translateY(-20px);
  min-width: min(88vw, 560px);
  max-width: min(88vw, 560px);
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  color: var(--snackbar-text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 40;
  box-shadow: 0 10px 26px rgb(0 0 0 / 32%);
}

.snackbar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.snackbar.has-output {
  pointer-events: auto;
  cursor: pointer;
}

.snackbar.info { background: var(--snackbar-info); }
.snackbar.success { background: var(--snackbar-success); }
.snackbar.warning { background: var(--snackbar-warning); }
.snackbar.error { background: var(--snackbar-error); }

.overlay.blur {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 35%);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.overlay.blur.active {
  opacity: 1;
  pointer-events: auto;
}

.snackbar-dialog {
  z-index: 61;
  width: min(92vw, 640px);
  border: 1px solid var(--ui-card-border);
  border-radius: 1rem;
  background: var(--ui-card-bg);
  color: var(--ui-text);
}

.snackbar-output-pre {
  max-height: 48vh;
  overflow: auto;
  white-space: pre-wrap;
  background: color-mix(in srgb, var(--ui-card-bg) 78%, #000 22%);
  border-radius: 0.7rem;
  padding: 0.85rem;
}

.snackbar-output-meta {
  margin: 0.6rem 0 0;
  opacity: 0.85;
}

.history-dialog-actions {
  margin-top: 1rem;
  gap: 0.5rem;
}

.history-dialog-actions .history-btn {
  border-radius: 999px;
  min-width: 110px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--ui-pill-border);
  background: var(--ui-pill-bg);
  color: var(--ui-pill-text);
  font-weight: 700;
  box-shadow: none;
}

.history-dialog-actions .history-btn:hover {
  background: var(--ui-pill-bg-hover);
}

@media (max-width: 768px) {
  .beer-card {
    min-height: 90px; /* Mobilde daha kısa */
    padding: 0.7rem 0.8rem; /* Daha küçük iç boşluk */
  }

  .mini-card {
    padding: 0.4rem 0.6rem; /* Küçük kartlar daha da küçülsün */
  }

  .home-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Kolonlar daha dar */
  }
}


================================================
FILE: Module/webroot/index.html
================================================
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="theme-color" content="#121212" />
  <title>Yurikey Manager</title>

  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:FILL@1" />
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/beercss@3.9.8/dist/cdn/beer.min.css" />
  <link rel="stylesheet" href="css/style.css" />
</head>
<body class="dark">
  <main id="app" class="page-shell">
    <section id="home-page" class="page active">
      <article class="surface page-card">
        <h4 class="center-align page-title">Yurikey Manager</h4>

        <div class="home-top-controls">
          <div id="module-version-card" class="mini-card">
            <h6 class="no-margin module-version-label" data-i18n="home_version">Version</h6>
            <p id="version-text" class="mini-card-value module-version-value">Error</p>
          </div>
          <button id="refresh-info-btn" type="button" class="menu-btn" data-script="webroot/common/device-info.sh" data-i18n="home_refresh">Refresh Info</button>
        </div>

        <div class="home-grid">
          <article class="beer-card">
            <h6 class="card-title no-margin" data-i18n="home_clock_date">Clock Date</h6>
            <p id="clock-date" class="card-value">--/--/--</p>
          </article>

          <article class="beer-card">
            <h6 class="card-title no-margin" data-i18n="home_clock_time">Clock Time</h6>
            <p id="clock-time" class="card-value">--:--:--</p>
          </article>

          <article id="status-row" class="beer-card offline">
            <h6 class="card-title no-margin" data-i18n="home_status">Status</h6>
            <p id="status-bar-text" class="card-value" data-i18n="home_status_offline">Offline</p>
          </article>

          <article class="beer-card">
            <h6 class="card-title no-margin">Android</h6>
            <p id="android-version" class="card-value">Error</p>
          </article>

          <article class="beer-card">
            <h6 class="card-title no-margin">Kernel</h6>
            <p id="kernel-version" class="card-value">Error</p>
          </article>

          <article class="beer-card">
            <h6 class="card-title no-margin" data-i18n="home_root">Root Implementation</h6>
            <p id="root-type" class="card-value">Error</p>
          </article>
        </div>
      </article>
    </section>

    <section id="actions-page" class="page">
      <article class="surface page-card">
        <h5 class="page-title" data-i18n="menu_title">Main Menu</h5>

        <article class="surface-variant block menu-card">
          <h6 class="section-heading">Keybox</h6>
          <div class="stack">
            <button class="menu-btn" data-script="yuri_keybox.sh" data-i18n="menu_keybox">Set up Yuri Keybox</button>
          </div>
        </article>

        <article class="surface-variant block menu-card">
          <h6 class="section-heading">GMS</h6>
          <div class="stack">
            <button class="menu-btn" data-script="kill_google_process.sh" data-i18n="menu_force_clear">Force Stop & Clear Data Play Store</button>
            <button class="menu-btn" data-script="target_txt.sh" data-i18n="menu_target">Set up target.txt</button>
            <button class="menu-btn" data-script="select_app_neccesary.sh" data-i18n="menu_necessary">Set Necessary App</button>
            <button class="menu-btn" data-script="security_patch.sh" data-i18n="menu_patch">Set up Security Patch</button>
            <button class="menu-btn" data-script="boot_hash.sh" data-i18n="advance_set_verified_boot">Set Verified Boothash</button>
          </div>
        </article>
      </article>
    </section>

    <section id="advance-menu" class="page">
      <article class="surface page-card">
        <h5 class="page-title" data-i18n="advance_menu_title">Advanced Menu</h5>

        <article class="surface-variant block menu-card">
          <h6 class="section-heading" data-i18n="nav_advance_menu">Menu +</h6>
          <div class="stack">
            <button class="menu-btn" data-script="clear_all_detection_traces.sh" data-i18n="advance_clear_all_detection_traces">Clear all detection traces</button>
            <button class="menu-btn" data-script="hma.sh" data-i18n="advance_set_hma-oss_configs">Set HMA-oss configs</button>
            <button class="menu-btn" data-script="znctl.sh" data-i18n="advance_set_zygisk_next_configs">Set Zygisk Next configs</button>
            <button class="menu-btn" data-script="pif.sh" data-i18n="advance_set_pif">Set fingerprint (PIF)</button>
            <button class="menu-btn" data-script="webroot/common/lsposed2.sh" data-i18n="advance_fix_detect_lsposed">Fix LSPosed Detection</button>
            <button class="menu-btn" data-script="webroot/common/pif2.sh" data-i18n="advance_fix_detect_pif">Fix PIF Detection</button>
            <button class="menu-btn" data-script="webroot/common/twrp.sh" data-i18n="advance_fix_detect_recovery_file">Fix Recovery File Detection</button>
            <button class="menu-btn" data-script="kill_all.sh" data-i18n="advance_kill_all">Kill All Process</button>
            <button class="menu-btn" data-script="yurirka.sh" data-i18n="advance_upd_yurirka">Update RKA config</button>
          </div>
        </article>

        <article class="surface-variant block menu-card">
          <h6 class="section-heading long-heading">Fix TEE broken: Oneplus, Redmagic, Realme, Oppo,...</h6>
          <div class="stack">
            <button class="menu-btn" data-script="webroot/common/widevinel1.sh" data-i18n="advance_widevinel1">Fix Widevine L1</button>
          </div>
        </article>
      </article>
    </section>

    <section id="settings-page" class="page">
      <article class="surface page-card">
        <h5 class="page-title" data-i18n="settings_title">Settings</h5>

        <article class="surface-variant block">
          <h6 data-i18n="settings_language">Language</h6>
          <div class="custom-dropdown lang-select-wrap">
            <button id="lang-btn" class="menu-btn lang-select-btn">🇬🇧 English</button>
            <ul id="lang-options" class="dropdown-list lang-options-list">
              <li data-lang="af">🇿🇦 Afrikaans</li>
              <li data-lang="ar">🇸🇦 Arabic</li>
              <li data-lang="ca">🇪🇸 Catalan</li>
              <li data-lang="cs">🇨🇿 Czech</li>
              <li data-lang="da">🇩🇰 Danish</li>
              <li data-lang="de">🇩🇪 German</li>
              <li data-lang="el">🇬🇷 Greek</li>
              <li data-lang="en">🇬🇧 English</li>
              <li data-lang="es">🇪🇸 Spanish</li>
              <li data-lang="fi">🇫🇮 Finnish</li>
              <li data-lang="fr">🇫🇷 French</li>
              <li data-lang="he">🇮🇱 Hebrew</li>
              <li data-lang="hu">🇭🇺 Hungarian</li>
              <li data-lang="it">🇮🇹 Italian</li>
              <li data-lang="ja">🇯🇵 Japanese</li>
              <li data-lang="ko">🇰🇷 Korean</li>
              <li data-lang="nl">🇳🇱 Dutch</li>
              <li data-lang="no">🇳🇴 Norwegian</li>
              <li data-lang="pl">🇵🇱 Polish</li>
              <li data-lang="pt">🇵🇹 Portuguese</li>
              <li data-lang="ro">🇷🇴 Romanian</li>
              <li data-lang="ru">🇷🇺 Russian</li>
              <li data-lang="sr">🇷🇸 Serbian</li>
              <li data-lang="sv">🇸🇪 Swedish</li>
              <li data-lang="tr">🇹🇷 Turkish</li>
              <li data-lang="uk">🇺🇦 Ukrainian</li>
              <li data-lang="vi">🇻🇳 Vietnamese</li>
              <li data-lang="zh">🇨🇳 Chinese</li>
            </ul>
          </div>
        </article>

        <article class="surface-variant block">
          <div class="appearance-header">
            <h6 class="appearance-title" data-i18n="settings_appearance">Appearance</h6>
          </div>
          <div class="custom-dropdown lang-select-wrap">
            <button id="theme-mode-btn" class="menu-btn lang-select-btn" data-i18n="theme_mode_dark">Dark</button>
            <ul id="theme-mode-options" class="dropdown-list lang-options-list">
              <li data-mode="dark" data-i18n="theme_mode_dark">Dark</li>
              <li data-mode="light" data-i18n="theme_mode_light">Light</li>
              <li data-mode="auto" data-i18n="theme_mode_auto">Auto (System)</li>
            </ul>
          </div>
          <div class="theme-presets">
            <button class="theme-preset-btn" data-theme-preset="ocean" data-i18n="theme_preset_ocean">Ocean</button>
            <button class="theme-preset-btn" data-theme-preset="rose" data-i18n="theme_preset_rose">Rose</button>
            <button class="theme-preset-btn" data-theme-preset="forest" data-i18n="theme_preset_forest">Forest</button>
            <button class="theme-preset-btn" data-theme-preset="sunset" data-i18n="theme_preset_sunset">Sunset</button>
            <button class="theme-preset-btn" data-theme-preset="violet" data-i18n="theme_preset_violet">Violet</button>
          </div>
        </article>

        <article class="surface-variant block">
          <h6 data-i18n="settings_clock_format">Clock Format</h6>
          <div class="custom-dropdown lang-select-wrap">
            <button id="clock-format-btn" class="menu-btn lang-select-btn" data-i18n="clock_format_auto">Auto (Device)</button>
            <ul id="clock-format-options" class="dropdown-list lang-options-list">
              <li data-format="auto" data-i18n="clock_format_auto">Auto (Device)</li>
              <li data-format="24h" data-i18n="clock_format_24h">24-hour (00:00)</li>
              <li data-format="12h" data-i18n="clock_format_12h">12-hour (AM/PM)</li>
            </ul>
          </div>
        </article>
        <article class="surface-variant block update-support">
          <h6 data-i18n="update_title">Update & Support</h6>
          <p data-i18n="update_desc">Stay up-to-date with the latest version of <strong>YuriKey</strong>, bug fixes, and new features.</p>

          <div class="stack">
            <button class="menu-btn" data-url="https://github.com/Yurii0307/yurikey" data-i18n="update_github">View on GitHub</button>
            <button class="menu-btn" data-url="https://t.me/yuriiroot" data-i18n="update_telegram">Join Telegram Channel</button>
          </div>

          <p class="small-text" data-i18n="update_note">Join our Telegram channel or check GitHub for updates, contributions, and technical discussions.</p>
        </article>

        <article id="dev-info" class="surface-variant block">
          <h6 data-i18n="settings_contributors">Project Contributors</h6>
          <div id="contrib-list" class="contrib-grid"></div>
        </article>
      </article>
    </section>
  </main>

  <nav class="bottom-nav surface-container-high">
    <button class="nav-btn active" type="button">
      <i class="material-symbols-rounded nav-icon" aria-hidden="true">home</i>
      <span data-i18n="nav_home">Home</span>
    </button>
    <button class="nav-btn" type="button">
      <i class="material-symbols-rounded nav-icon" aria-hidden="true">grid_view</i>
      <span data-i18n="nav_menu">Menu</span>
    </button>
    <button class="nav-btn" type="button">
      <i class="material-symbols-rounded nav-icon" aria-hidden="true">tune</i>
      <span data-i18n="nav_advance_menu">Menu +</span>
    </button>
    <button class="nav-btn" type="button">
      <i class="material-symbols-rounded nav-icon" aria-hidden="true">settings</i>
      <span data-i18n="nav_settings">Settings</span>
    </button>
  </nav>


  <div id="snackbar" class="snackbar" role="status" aria-live="polite"></div>

  <div id="script-history-overlay" class="overlay blur"></div>
  <dialog id="script-history-dialog" class="snackbar-dialog">
    <h5 data-i18n="script_history_title">Script Outputs</h5>
    <div id="script-history-content" class="snackbar-output-pre"></div>
    <nav class="right-align history-dialog-actions">
      <button id="script-history-clear" class="history-btn" data-i18n="dialog_clear">Clear</button>
      <button id="script-history-close" class="history-btn" data-i18n="dialog_close">Close</button>
    </nav>
  </dialog>

  <script src="https://cdn.jsdelivr.net/npm/beercss@3.9.8/dist/cdn/beer.min.js" type="module"></script>
  <!-- Utilities -->
  <script src="js/utils/i18n.js"></script>
  <script src="js/utils/toast.js"></script>
  <script src="js/utils/scriptExecutor.js"></script>
  <!-- Components -->
  <script src="js/components/navigation.js"></script>
  <script src="js/components/clock.js"></script>
  <script src="js/components/networkStatus.js"></script>
  <!-- Main Components -->
  <script src="js/theme.js"></script>
  <script src="js/redirect.js"></script>
  <script src="js/device.js"></script>
  <script src="js/main.js"></script>
  <script src="js/version.js"></script>
  <script src="js/dev.js"></script>
</body>
</html>


================================================
FILE: Module/webroot/js/components/clock.js
================================================
// Clock Component
const CLOCK_FORMAT_KEY = "clockFormat";

function getClockFormat() {
  return localStorage.getItem(CLOCK_FORMAT_KEY) || "auto";
}

function getClockFormatLabel(format) {
  if (format === "24h") return "24-hour (00:00)";
  if (format === "12h") return "12-hour (AM/PM)";
  return "Auto (Device)";
}

function setupClockFormatDropdown() {
  const clockFormatBtn = document.getElementById("clock-format-btn");
  const clockFormatOptions = document.getElementById("clock-format-options");
  
  if (!clockFormatBtn || !clockFormatOptions) return;

  const currentFormat = getClockFormat();
  clockFormatBtn.innerText = getClockFormatLabel(currentFormat);

  clockFormatBtn.addEventListener("click", (e) => {
    e.stopPropagation();
    clockFormatOptions.classList.toggle("show");
  });

  document.addEventListener("click", (e) => {
    if (!clockFormatOptions.contains(e.target) && e.target !== clockFormatBtn) {
      clockFormatOptions.classList.remove("show");
    }
  });

  clockFormatOptions.querySelectorAll("li[data-format]").forEach(item => {
    item.addEventListener("click", () => {
      const format = item.dataset.format || "auto";
      localStorage.setItem(CLOCK_FORMAT_KEY, format);
      clockFormatBtn.innerText = getClockFormatLabel(format);
      clockFormatOptions.classList.remove("show");
      updateClock();
      showToast(`Clock format: ${getClockFormatLabel(format)}`, "success");
    });
  });
}

function updateClock() {
  const now = new Date();
  const format = getClockFormat();

  const formattedDate = new Intl.DateTimeFormat(undefined, {
    day: "2-digit",
    month: "2-digit",
    year: "numeric",
  }).format(now);

  let formattedTime;
  if (format === "24h") {
    formattedTime = new Intl.DateTimeFormat(undefined, {
      hour: "2-digit",
      minute: "2-digit",
      second: "2-digit",
      hour12: false,
    }).format(now);
  } else if (format === "12h") {
    formattedTime = new Intl.DateTimeFormat(undefined, {
      hour: "2-digit",
      minute: "2-digit",
      second: "2-digit",
      hour12: true,
    }).format(now);
  } else {
    formattedTime = now.toLocaleTimeString(undefined, {
      hour: "2-digit",
      minute: "2-digit",
      second: "2-digit",
    });
  }

  const clockDateEl = document.getElementById("clock-date");
  const clockTimeEl = document.getElementById("clock-time");
  
  if (clockDateEl) clockDateEl.textContent = formattedDate;
  if (clockTimeEl) clockTimeEl.textContent = formattedTime;
}

// Initialize clock
document.addEventListener("DOMContentLoaded", () => {
  setupClockFormatDropdown();
  updateClock();
  setInterval(updateClock, 1000);
});

// Export functions
window.updateClock = updateClock;


================================================
FILE: Module/webroot/js/components/navigation.js
================================================
// Navigation Component
document.addEventListener("DOMContentLoaded", () => {
  // Navigation buttons
  document.querySelectorAll(".nav-btn").forEach((btn, idx) => {
    btn.addEventListener("click", () => {
      document.querySelectorAll(".nav-btn").forEach(b => b.classList.remove("active"));
      document.querySelectorAll(".page").forEach(p => p.classList.remove("active"));
      btn.classList.add("active");
      document.querySelectorAll(".page")[idx].classList.add("active");
      window.scrollTo({ top: 0, behavior: 'smooth' });
    });
  });
});


================================================
FILE: Module/webroot/js/components/networkStatus.js
================================================
// Network Status Component
let lastStatus = null;

async function verifyRealInternet() {
  try {
    const controller = new AbortController();
    const timeoutId = setTimeout(() => controller.abort(), 2000);

    await fetch("https://clients3.google.com/generate_204", {
      method: "GET",
      cache: "no-store",
      signal: controller.signal,
    });

    clearTimeout(timeoutId);
    return true;
  } catch {
    try {
      const controller = new AbortController();
      const timeoutId = setTimeout(() => controller.abort(), 2000);

      await fetch("https://clients3.google.com/generate_204", {
        method: "GET",
        cache: "no-store",
        mode: "no-cors",
        signal: controller.signal,
      });

      clearTimeout(timeoutId);
      return true;
    } catch {
      return false;
    }
  }
}

async function updateNetworkStatus() {
  const statusRow = document.getElementById("status-row");
  const statusText = document.getElementById("status-bar-text");

  if (!statusRow || !statusText) {
    console.warn("Status elements not found");
    return;
  }

  // Show temporary status while checking
  statusText.textContent = t("home_refreshing");
  statusRow.title = t("home_refreshing");

  const isProbablyOnline = navigator.onLine;
  const isActuallyOnline = isProbablyOnline && await verifyRealInternet();

  if (isActuallyOnline && lastStatus !== "online") {
    statusRow.classList.replace("offline", "online");
    statusText.textContent = t("home_status_online");
    statusRow.title = t("status_online");
    lastStatus = "online";
  } else if (!isActuallyOnline && lastStatus !== "offline") {
    statusRow.classList.replace("online", "offline");
    statusText.textContent = t("home_status_offline");
    statusRow.title = t("status_offline");
    showToast(t("status_offline"), "error");
    lastStatus = "offline";
  } else {
    // Update text only to sync language
    if (lastStatus === "online") {
      statusText.textContent = t("home_status_online");
      statusRow.title = t("status_online");
    } else if (lastStatus === "offline") {
      statusText.textContent = t("home_status_offline");
      statusRow.title = t("status_offline");
    }
  }
}

// Initialize network status
setTimeout(() => {
  updateNetworkStatus();
  setInterval(updateNetworkStatus, 3000);
  window.addEventListener("online", updateNetworkStatus);
  window.addEventListener("offline", updateNetworkStatus);
}, 500);

// Export function
window.updateNetworkStatus = updateNetworkStatus;


================================================
FILE: Module/webroot/js/dev.js
================================================
// === Load Contributors and Apply Translations ===
(function loadContributors() {
  fetch("json/dev.json")
    .then(res => {
      if (!res.ok) throw new Error(`HTTP ${res.status}`);
      return res.json();
    })
    .then(data => {
      const container = document.getElementById("contrib-list");
      if (!container || !Array.isArray(data.contributors)) return;

      container.innerHTML = ""; // Clear any existing entries

      // Render each contributor
      data.contributors.forEach(user => {
        const username = user.username || user.name || "unknown";
        const avatar = `https://github.com/${encodeURIComponent(username)}.png`;
        const profileURL = user.url || "#";
        const rawRole = user.role || "Unknown Role";
        const roleKey = `role_${rawRole}`; // Use this for translation lookup

        const card = document.createElement("button");
        card.className = "contrib-card";
        card.setAttribute("type", "button");
        card.addEventListener("click", () => openUrlViaIntent(profileURL));

        card.innerHTML = `
          <img src="${avatar}" alt="${user.name}" onerror="this.src='/common/icon/default-avatar.png'" />
          <div class="contrib-name">${user.name}</div>
          <div class="contrib-role" data-i18n="${roleKey}">${rawRole}</div>
        `;

        container.appendChild(card);
      });

      // Re-apply language translation after cards are rendered
      const currentLang = localStorage.getItem("selectedLanguage") || "en";
      setTimeout(() => applyLanguage(currentLang), 50); // delay to ensure DOM is updated
    })
    .catch(err => {
      console.error("Failed to load contributors:", err);
    });
})();


================================================
FILE: Module/webroot/js/device.js
================================================
// Device Information Component
const BASE_SCRIPT = "/data/adb/modules/Yurikey/webroot/common/";

// Wait until translation data is loaded
async function waitForTranslations(timeout = 3000) {
  const start = Date.now();
  while (Date.now() - start < timeout) {
    if (window.translations && Object.keys(window.translations).length > 0) {
      return;
    }
    await new Promise(r => setTimeout(r, 100));
  }
  console.warn("translations not loaded in time.");
}

// Wait for valid device-info.json response
async function waitForValidDeviceInfo(maxWait = 4000, interval = 400) {
  const start = Date.now();
  while (Date.now() - start < maxWait) {
    try {
      const res = await fetch("/json/device-info.json?ts=" + Date.now());
      if (!res.ok) throw new Error("Fetch failed");

      const data = await res.json();
      if (data.android || data.kernel || data.root) return data;
    } catch (err) {}
    await new Promise(r => setTimeout(r, interval));
  }
  throw new Error("Timeout waiting for valid device-info.json");
}

// Load device info and display it in the UI
async function loadDeviceInfo() {
  try {
    const res = await fetch("/json/device-info.json?ts=" + Date.now());
    if (!res.ok) throw new Error("Failed to fetch");

    const data = await res.json();
    document.getElementById("android-version").innerText = data.android || "-";
    document.getElementById("kernel-version").innerText = data.kernel || "-";
    document.getElementById("root-type").innerText = data.root || "-";
  } catch (err) {
    console.error("loadDeviceInfo() error:", err);
    document.getElementById("android-version").innerText = "Error";
    document.getElementById("kernel-version").innerText = "Error";
    document.getElementById("root-type").innerText = "Error";
  }
}

// Execute a shell script with KernelSU
function runScript(scriptName, callback) {
  const fullPath = `${BASE_SCRIPT}${scriptName}`;
  if (typeof ksu === "object" && typeof ksu.exec === "function") {
    const cbId = `cb_${Date.now()}`;
    window[cbId] = () => {
      delete window[cbId];
      if (typeof callback === "function") callback();
    };
    ksu.exec(`sh '${fullPath}'`, "{}", cbId);
  } else {
    console.warn("ksu.exec not available.");
    if (typeof callback === "function") callback();
  }
}

// Setup refresh button behavior with translation and animation
function setupRefreshButton() {
  const refreshBtn = document.getElementById("refresh-info-btn");
  if (!refreshBtn) return;

  const scriptName = refreshBtn.dataset.script;

  refreshBtn.addEventListener("click", () => {
    if (refreshBtn.disabled) return;
    refreshBtn.disabled = true;
    refreshBtn.classList.add("rotating");

    runScript(scriptName, async () => {
      try {
        const data = await waitForValidDeviceInfo();
        document.getElementById("android-version").innerText = data.android || "-";
        document.getElementById("kernel-version").innerText = data.kernel || "-";
        document.getElementById("root-type").innerText = data.root || "-";
      } catch (err) {
        console.warn("Could not update device info:", err);
      }

      refreshBtn.classList.remove("rotating");
      refreshBtn.disabled = false;
    });
  });
}

// Init device info and action buttons on page load
window.addEventListener("DOMContentLoaded", async () => {
  await waitForTranslations();     // Make sure translations are loaded
  loadDeviceInfo();                // Load initial device info
  setupRefreshButton();           // Setup refresh button

  // Bind all action buttons to their scripts
  document.querySelectorAll(".action-buttons .menu-btn").forEach(button => {
    const scriptName = button.dataset.script;
    if (scriptName) {
      button.addEventListener("click", () => runScript(scriptName));
    }
  });
});

window.loadDeviceInfo = loadDeviceInfo;


================================================
FILE: Module/webroot/js/main.js
================================================
// Main Application Entry Point
// This file orchestrates the loading of all components and utilities

document.addEventListener("DOMContentLoaded", () => {
  console.log("main.js active");

  const BASE_SCRIPT = "/data/adb/modules/Yurikey/Yuri/";

  // Register click events for buttons in Actions Page
  document.querySelectorAll("#actions-page .menu-btn[data-script]").forEach(button => {
    const scriptName = button.dataset.script;
    if (scriptName) {
      button.addEventListener("click", () => runScript(scriptName, BASE_SCRIPT, button));
    }
  });

  // Register click events for buttons in Advanced Menu Page
  document.querySelectorAll("#advance-menu .menu-btn[data-script]").forEach(button => {
      const scriptName = button.dataset.script;
      if (scriptName) {
          button.addEventListener("click", () => runScript(scriptName, BASE_SCRIPT, button));
      }
  });

  const historyCard = document.getElementById("module-version-card");
  const historyDialog = document.getElementById("script-history-dialog");
  const historyOverlay = document.getElementById("script-history-overlay");
  const historyCloseBtn = document.getElementById("script-history-close");
  const historyClearBtn = document.getElementById("script-history-clear");

  historyCard?.addEventListener("click", openHistoryDialog);
  historyCloseBtn?.addEventListener("click", closeHistoryDialog);
  historyOverlay?.addEventListener("click", closeHistoryDialog);
  historyDialog?.addEventListener("close", () => historyOverlay?.classList.remove("active"));
  historyClearBtn?.addEventListener("click", () => {
    writeHistory([]);
    renderHistoryDialog();
  });

  // Refresh info button event
  const refreshBtn = document.getElementById("refresh-info-btn");
  if (refreshBtn) {
    refreshBtn.addEventListener("click", () => {
      showToast(t("home_refreshing"), "info");
      updateNetworkStatus();
      if (window.loadDeviceInfo) {
        window.loadDeviceInfo();
      }
    });
  }
});


================================================
FILE: Module/webroot/js/redirect.js
================================================
// === Function: Open a URL using Android Intent via KernelSU ===
function openUrlViaIntent(url) {
  if (!url || typeof url !== "string") return;

  // Build the intent command to open the URL
  const intentCmd = `nohup am start -a android.intent.action.VIEW -d '${url}' >/dev/null 2>&1 &`;

  // Check if KernelSU is available and execute the intent command
  if (typeof ksu === "object" && typeof ksu.exec === "function") {
    const cbId = `cb_${Date.now()}`;
    window[cbId] = () => delete window[cbId];
    ksu.exec(intentCmd, "{}", cbId);
  } else {
    // Fallback for non-KernelSU environments (desktop browser, webview without exec bridge)
    try {
      const opened = window.open(url, "_blank", "noopener,noreferrer");
      if (!opened) {
        window.location.href = url;
      }
    } catch {
      window.location.href = url;
    }
  }
}

// === Function: Attach click listeners to elements with [data-url] ===
function setupIntentLinks(selector = "[data-url]") {
  document.querySelectorAll(selector).forEach(button => {
    const url = button.dataset.url;
    if (url) {
      button.addEventListener("click", () => openUrlViaIntent(url));
    }
  });
}

// === Initialize: Run setup when the DOM is fully loaded ===
window.addEventListener("DOMContentLoaded", () => {
  setupIntentLinks();
});


================================================
FILE: Module/webroot/js/theme.js
================================================
const THEME_MODE_KEY = "themeMode";
const THEME_PRESET_KEY = "themePreset";

const SNACKBAR_COLOR_KEYS = {
  info: "snackbarInfoColor",
  success: "snackbarSuccessColor",
  warning: "snackbarWarningColor",
  error: "snackbarErrorColor",
  text: "snackbarTextColor",
};

const SNACKBAR_DEFAULTS = {
  info: "#2196f3",
  success: "#43a047",
  warning: "#f9a825",
  error: "#e53935",
  text: "#ffffff",
};

const THEME_PRESETS = {
  ocean: {
    dark: { "--ui-bg": "#111a26", "--ui-card-bg": "#1d2a3a", "--ui-card-border": "#334759", "--ui-pill-bg": "#9ecaff", "--ui-pill-text": "#003258", "--ui-nav-active": "#00497d", "--ui-nav-text": "#d1e4ff", "--ui-select-bg": "#3a546f", "--ui-select-border": "#6f90b2", "--ui-select-panel": "#273a4e", "--ui-select-panel-border": "#587493" },
    light:{ "--ui-bg": "#e9f2ff", "--ui-card-bg": "#f2f7ff", "--ui-card-border": "#c6d8ef", "--ui-pill-bg": "#0061a4", "--ui-pill-text": "#ffffff", "--ui-nav-active": "#0061a4", "--ui-nav-text": "#001d36", "--ui-select-bg": "#d1e4ff", "--ui-select-border": "#b2cbe9", "--ui-select-panel": "#e2eeff", "--ui-select-panel-border": "#c3d8f3" },
  },
  rose: {
    dark: { "--ui-bg": "#221516", "--ui-card-bg": "#362124", "--ui-card-border": "#5a3539", "--ui-pill-bg": "#ffb4a9", "--ui-pill-text": "#690002", "--ui-nav-active": "#930005", "--ui-nav-text": "#ffdad5", "--ui-select-bg": "#5f3a3e", "--ui-select-border": "#9a6c72", "--ui-select-panel": "#452a2d", "--ui-select-panel-border": "#7a4c51" },
    light:{ "--ui-bg": "#fff3f1", "--ui-card-bg": "#ffe8e4", "--ui-card-border": "#efc7c1", "--ui-pill-bg": "#bb1614", "--ui-pill-text": "#ffffff", "--ui-nav-active": "#bb1614", "--ui-nav-text": "#410001", "--ui-select-bg": "#ffdad5", "--ui-select-border": "#e4b7b1", "--ui-select-panel": "#ffe9e5", "--ui-select-panel-border": "#e8c1bc" },
  },
  forest: {
    dark: { "--ui-bg": "#132016", "--ui-card-bg": "#1d3222", "--ui-card-border": "#365441", "--ui-pill-bg": "#78dc77", "--ui-pill-text": "#00390a", "--ui-nav-active": "#005313", "--ui-nav-text": "#94f990", "--ui-select-bg": "#355142", "--ui-select-border": "#6f9a7f", "--ui-select-panel": "#253b2b", "--ui-select-panel-border": "#5d7e68" },
    light:{ "--ui-bg": "#eff9ef", "--ui-card-bg": "#f5fcf4", "--ui-card-border": "#cce3cd", "--ui-pill-bg": "#006e1c", "--ui-pill-text": "#ffffff", "--ui-nav-active": "#006e1c", "--ui-nav-text": "#002204", "--ui-select-bg": "#94f990", "--ui-select-border": "#77d274", "--ui-select-panel": "#def6dd", "--ui-select-panel-border": "#b8dfb7" },
  },
  sunset: {
    dark: { "--ui-bg": "#241911", "--ui-card-bg": "#39291b", "--ui-card-border": "#5d4330", "--ui-pill-bg": "#ffb870", "--ui-pill-text": "#4a2800", "--ui-nav-active": "#693c00", "--ui-nav-text": "#ffdcbe", "--ui-select-bg": "#594131", "--ui-select-border": "#8f6a4e", "--ui-select-panel": "#3f2d20", "--ui-select-panel-border": "#73543d" },
    light:{ "--ui-bg": "#fff4ea", "--ui-card-bg": "#fff8f2", "--ui-card-border": "#ecd3bc", "--ui-pill-bg": "#8b5000", "--ui-pill-text": "#ffffff", "--ui-nav-active": "#8b5000", "--ui-nav-text": "#2c1600", "--ui-select-bg": "#ffdcbe", "--ui-select-border": "#e8bf98", "--ui-select-panel": "#ffeddc", "--ui-select-panel-border": "#edcdb0" },
  },
  violet: {
    dark: { "--ui-bg": "#1f1626", "--ui-card-bg": "#30243a", "--ui-card-border": "#52405f", "--ui-pill-bg": "#f9abff", "--ui-pill-text": "#570066", "--ui-nav-active": "#7b008f", "--ui-nav-text": "#ffd6fe", "--ui-select-bg": "#4f3d5e", "--ui-select-border": "#8b74a0", "--ui-select-panel": "#3a2d47", "--ui-select-panel-border": "#715788" },
    light:{ "--ui-bg": "#f9ecff", "--ui-card-bg": "#fdf5ff", "--ui-card-border": "#e4cdee", "--ui-pill-bg": "#9a25ae", "--ui-pill-text": "#ffffff", "--ui-nav-active": "#9a25ae", "--ui-nav-text": "#35003f", "--ui-select-bg": "#ffd6fe", "--ui-select-border": "#e8b8e8", "--ui-select-panel": "#ffe9ff", "--ui-select-panel-border": "#eecbf1" },
  },
};

function hexToRgb(hex) {
  const h = hex.replace("#", "");
  const n = h.length === 3 ? h.split("").map(c => c + c).join("") : h;
  const int = parseInt(n, 16);
  return { r: (int >> 16) & 255, g: (int >> 8) & 255, b: int & 255 };
}
function rgbToHex({ r, g, b }) {
  return `#${[r, g, b].map(v => v.toString(16).padStart(2, "0")).join("")}`;
}
function mix(a, b, t) {
  const c1 = hexToRgb(a), c2 = hexToRgb(b);
  return rgbToHex({ r: Math.round(c1.r + (c2.r - c1.r) * t), g: Math.round(c1.g + (c2.g - c1.g) * t), b: Math.round(c1.b + (c2.b - c1.b) * t) });
}

function getStoredMode() { return localStorage.getItem(THEME_MODE_KEY) || "dark"; }
function getResolvedMode(mode) { return mode === "auto" ? (window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark") : (mode || "dark"); }
function getStoredPreset() {
  const preset = localStorage.getItem(THEME_PRESET_KEY) || "ocean";
  return THEME_PRESETS[preset] ? preset : "ocean";
}
function themeText(key, fallback) { return window.translations?.[key] || fallback; }
function modeLabel(mode) {
  if (mode === "auto") return themeText("theme_mode_auto", "Auto (System)");
  if (mode === "light") return themeText("theme_mode_light", "Light");
  return themeText("theme_mode_dark", "Dark");
}

function withDerived(colors, mode) {
  const base = colors["--ui-pill-bg"];
  const pillText = colors["--ui-pill-text"] || (mode === "light" ? "#ffffff" : "#231531");
  return {
    ...colors,
    "--ui-pill-bg-hover": mix(base, mode === "light" ? "#ffffff" : "#f8d8e8", 0.18),
    "--ui-pill-border": mix(base, mode === "light" ? "#ffffff" : "#f9e7f2", 0.35),
    "--ui-nav-text-active": "#ffffff",
    "--ui-pill-text": pillText,
  };
}

function applyColors(rawColors) {
  const root = document.documentElement;
  Object.entries(rawColors).forEach(([k, v]) => root.style.setProperty(k, v));
}

function applyThemeMode(mode) {
  const resolved = getResolvedMode(mode);
  document.documentElement.setAttribute("data-theme-mode", resolved);
  return resolved;
}

function applyThemePreset(presetName) {
  const mode = document.documentElement.getAttribute("data-theme-mode") || "dark";
  const preset = THEME_PRESETS[presetName] || THEME_PRESETS.ocean;
  applyColors(withDerived(preset[mode] || preset.dark, mode));
  document.querySelectorAll(".theme-preset-btn").forEach(btn => btn.classList.toggle("active", btn.dataset.themePreset === presetName));
}


function normalizeHex(value, fallback = "#2196f3") {
  const raw = (value || "").trim();
  const match = raw.match(/^#?[0-9a-fA-F]{6}$/);
  if (!match) return fallback;
  return raw.startsWith("#") ? raw.toLowerCase() : `#${raw.toLowerCase()}`;
}

function hexToRgbTuple(hex) {
  const n = normalizeHex(hex).replace("#", "");
  return {
    r: parseInt(n.slice(0, 2), 16),
    g: parseInt(n.slice(2, 4), 16),
    b: parseInt(n.slice(4, 6), 16),
  };
}

function rgbToHexTuple(r, g, b) {
  return `#${[r, g, b].map(v => Number(v).toString(16).padStart(2, "0")).join("")}`;
}

function setSnackbarColor(type, value) {
  const key = SNACKBAR_COLOR_KEYS[type];
  const normalized = normalizeHex(value, SNACKBAR_DEFAULTS[type]);
  localStorage.setItem(key, normalized);
  document.documentElement.style.setProperty(`--snackbar-${type}`, normalized);

  const input = document.getElementById(`snackbar-${type}-color`);
  const preview = document.getElementById(`snackbar-${type}-preview`);
  if (input) input.value = normalized;
  if (preview) preview.style.background = normalized;
  return normalized;
}

function applySnackbarColors() {
  Object.entries(SNACKBAR_COLOR_KEYS).forEach(([type, key]) => {
    const value = localStorage.getItem(key) || SNACKBAR_DEFAULTS[type];
    setSnackbarColor(type, value);
  });
}

function bindSnackbarColorInputs() {
  Object.keys(SNACKBAR_COLOR_KEYS).forEach(type => {
    const input = document.getElementById(`snackbar-${type}-color`);
    if (!input) return;

    input.addEventListener("change", () => setSnackbarColor(type, input.value));
    input.addEventListener("blur", () => setSnackbarColor(type, input.value));
  });
}

function bindSnackbarColorTool() {
  const target = document.getElementById("snackbar-color-target");
  const hexInput = document.getElementById("snackbar-color-tool-hex");
  const preview = document.getElementById("snackbar-color-tool-preview");
  const rangeR = document.getElementById("snackbar-color-r");
  const rangeG = document.getElementById("snackbar-color-g");
  const rangeB = document.getElementById("snackbar-color-b");
  const applyBtn = document.getElementById("snackbar-color-tool-apply");
  if (!target || !hexInput || !preview || !rangeR || !rangeG || !rangeB || !applyBtn) return;

  const syncFromHex = (hex) => {
    const rgb = hexToRgbTuple(hex);
    rangeR.value = rgb.r;
    rangeG.value = rgb.g;
    rangeB.value = rgb.b;
    preview.style.background = normalizeHex(hex);
    hexInput.value = normalizeHex(hex);
  };

  const syncFromTarget = () => {
    const type = target.value || "info";
    const input = document.getElementById(`snackbar-${type}-color`);
    syncFromHex(input?.value || SNACKBAR_DEFAULTS[type]);
  };

  const syncFromRanges = () => {
    const hex = rgbToHexTuple(rangeR.value, rangeG.value, rangeB.value);
    preview.style.background = hex;
    hexInput.value = hex;
  };

  target.addEventListener("change", syncFromTarget);
  [rangeR, rangeG, rangeB].forEach(range => range.addEventListener("input", syncFromRanges));
  hexInput.addEventListener("input", () => {
    if (/^#?[0-9a-fA-F]{6}$/.test(hexInput.value.trim())) {
      syncFromHex(hexInput.value);
    }
  });

  applyBtn.addEventListener("click", () => {
    const type = target.value || "info";
    const applied = setSnackbarColor(type, hexInput.value);
    syncFromHex(applied);
  });

  syncFromTarget();
}

window.addEventListener("DOMContentLoaded", () => {
  const modeBtn = document.getElementById("theme-mode-btn");
  const modeOptions = document.getElementById("theme-mode-options");

  const mode = getStoredMode();
  modeBtn.innerText = modeLabel(mode);
  applyThemeMode(mode);

  modeBtn.addEventListener("click", (e) => { e.stopPropagation(); modeOptions.classList.toggle("show"); });
  modeOptions.querySelectorAll("li[data-mode]").forEach(item => {
    item.addEventListener("click", () => {
      const m = item.dataset.mode || "dark";
      localStorage.setItem(THEME_MODE_KEY, m);
      modeBtn.innerText = modeLabel(m);
      modeOptions.classList.remove("show");
      applyThemeMode(m);
      applyThemePreset(getStoredPreset());
    });
  });
  document.addEventListener("click", (e) => { if (!modeOptions.contains(e.target) && e.target !== modeBtn) modeOptions.classList.remove("show"); });

  document.querySelectorAll(".theme-preset-btn").forEach(btn => {
    btn.addEventListener("click", () => {
      const p = btn.dataset.themePreset;
      if (!p || !THEME_PRESETS[p]) return;
      localStorage.setItem(THEME_PRESET_KEY, p);
      applyThemePreset(p);
    });
  });

  applyThemePreset(getStoredPreset());
  applySnackbarColors();
  bindSnackbarColorInputs();
  bindSnackbarColorTool();

  window.matchMedia("(prefers-color-scheme: light)").addEventListener("change", () => {
    if (getStoredMode() === "auto") {
      applyThemeMode("auto");
      applyThemePreset(getStoredPreset());
    }
  });

  document.addEventListener("languageChanged", () => { modeBtn.innerText = modeLabel(getStoredMode()); });
});


================================================
FILE: Module/webroot/js/utils/i18n.js
================================================
// Internationalization Utilities
const LANG_PATH = "lang/";
const DEFAULT_LANG = "en";
let translations = {};
window.translations = translations;

// Translation helper function
function t(key) {
  return window.translations?.[key] || key;
}

// Interpolation formatter for translation strings
function tFormat(key, vars = {}) {
  let str = t(key);
  Object.keys(vars).forEach(k => {
    str = str.replace(`{${k}}`, vars[k]);
  });
  return str;
}

// Load and apply translations to all elements
async function applyLanguage(langCode) {
  try {
    let fetchUrl = `${LANG_PATH}${langCode}.json?ts=${Date.now()}`;
    if (langCode === 'en') {
      fetchUrl = `${LANG_PATH}source/string.json?ts=${Date.now()}`;
    }
    const res = await fetch(fetchUrl);
    const json = await res.json();

    translations = json;
    window.translations = json;

    // Apply to elements using [data-i18n] attribute
    document.querySelectorAll("[data-i18n]").forEach(el => {
      const key = el.getAttribute("data-i18n");
      if (translations[key]) {
        if (el.children.length > 0) {
          const hasHTMLContent = el.innerHTML.includes('<');
          if (hasHTMLContent) {
            el.innerHTML = translations[key];
          } else {
            const walker = document.createTreeWalker(
              el,
              NodeFilter.SHOW_TEXT,
              null,
              false
            );
            let textNodes = [];
            let textNode;
            while (textNode = walker.nextNode()) {
              if (textNode.nodeValue.trim()) {
                textNodes.push(textNode);
              }
            }
            if (textNodes.length > 0) {
              textNodes[0].nodeValue = translations[key];
              for (let i = 1; i < textNodes.length; i++) {
                textNodes[i].remove();
              }
            } else {
              el.appendChild(document.createTextNode(translations[key]));
            }
          }
        } else {
          el.innerText = translations[key];
        }
      }
    });

    // Update refresh button text if available
    const refreshBtn = document.getElementById("refresh-info-btn");
    if (refreshBtn && refreshBtn.getAttribute("data-i18n")) {
      const defaultKey = refreshBtn.getAttribute("data-i18n");
      refreshBtn.innerText = t(defaultKey);
    }

    // Save the selected language in localStorage
    document.documentElement.lang = langCode;
    localStorage.setItem("selectedLanguage", langCode);

    // Call updateNetworkStatus to refresh network status text in new language with a slight delay
    if (typeof window.updateNetworkStatus === "function") {
      setTimeout(() => window.updateNetworkStatus(), 100);
    }

    document.dispatchEvent(new CustomEvent("languageChanged", {
      detail: { language: langCode, translations: translations }
    }));
  } catch (err) {
    console.error("Failed to load language:", err);
  }
}

// Handle dropdown language selection
function setupLanguageDropdown(currentLang) {
  const langBtn = document.getElementById("lang-btn");
  const langOptions = document.getElementById("lang-options");

  const activeItem = document.querySelector(`#lang-options li[data-lang='${currentLang}']`);
  if (langBtn && activeItem) langBtn.innerText = activeItem.innerText;

  // Toggle dropdown visibility
  langBtn?.addEventListener("click", (e) => {
    e.stopPropagation();
    langOptions?.classList.toggle("show");
  });

  // Close dropdown if clicked outside
  document.addEventListener("click", (e) => {
    if (!langOptions.contains(e.target) && e.target !== langBtn) {
      langOptions?.classList.remove("show");
    }
  });

  // Handle language option click
  document.querySelectorAll("#lang-options li").forEach(item => {
    item.addEventListener("click", () => {
      const lang = item.getAttribute("data-lang");
      applyLanguage(lang);
      langOptions?.classList.remove("show");
      langBtn.innerText = item.innerText;
    });
  });
}

// Initialize language and dropdown on page load
document.addEventListener("DOMContentLoaded", async () => {
  const savedLang = localStorage.getItem("selectedLanguage") || DEFAULT_LANG;
  await applyLanguage(savedLang);
  setupLanguageDropdown(savedLang);
});

// Export functions to window object
window.t = t;
window.tFormat = tFormat;
window.applyLanguage = applyLanguage;
window.setupLanguageDropdown = setupLanguageDropdown;


================================================
FILE: Module/webroot/js/utils/scriptExecutor.js
================================================
// Script Execution Utilities
const SCRIPT_HISTORY_KEY = "scriptHistoryLogs";

function getScriptExecutor() {
  if (typeof window.YuriKeyHost?.execScript === "function") {
    return (scriptPath, scriptName, cb) => {
      Promise.resolve(window.YuriKeyHost.execScript(scriptPath, scriptName))
        .then(result => cb(typeof result === "string" ? result : JSON.stringify(result)))
        .catch(() => cb(""));
    };
  }

  if (typeof window.execYurikeyScript === "function") {
    return (scriptPath, scriptName, cb) => {
      Promise.resolve(window.execYurikeyScript(scriptPath, scriptName))
        .then(result => cb(typeof result === "string" ? result : JSON.stringify(result)))
        .catch(() => cb(""));
    };
  }

  if (typeof ksu === "object" && typeof ksu.exec === "function") {
    return (scriptPath, _scriptName, cbName) => ksu.exec(`sh "${scriptPath}"`, "{}", cbName);
  }

  return null;
}

function readHistory() {
  try {
    const parsed = JSON.parse(localStorage.getItem(SCRIPT_HISTORY_KEY) || "[]");
    return Array.isArray(parsed) ? parsed : [];
  } catch {
    return [];
  }
}

function writeHistory(items) {
  localStorage.setItem(SCRIPT_HISTORY_KEY, JSON.stringify(items.slice(0, 80)));
}

function addScriptHistory(scriptName, outputText) {
  const cleanOutput = (outputText || "").trim();
  if (!cleanOutput) return;

  const history = readHistory();
  history.unshift({
    script: scriptName,
    output: cleanOutput,
    time: new Date().toLocaleString(),
  });
  writeHistory(history);
}

function renderHistoryDialog() {
  const contentEl = document.getElementById("script-history-content");
  if (!contentEl) return;

  const history = readHistory();
  if (!history.length) {
    contentEl.textContent = t("script_history_empty");
    return;
  }

  contentEl.innerHTML = history.map(item => {
    const script = item.script || "script";
    const time = item.time || "";
    const output = (item.output || "")
      .replace(/&/g, "&amp;")
      .replace(/</g, "&lt;")
      .replace(/>/g, "&gt;")
              .replace(/\n/g, "<br>");
    return `<div><strong>[${time}] ${script}</strong><br>${output}</div><hr>`;
  }).join("");
}

function openHistoryDialog() {
  const dialog = document.getElementById("script-history-dialog");
  const overlay = document.getElementById("script-history-overlay");
  if (!dialog || !overlay) return;

  renderHistoryDialog();
  overlay.classList.add("active");
  if (!dialog.open) dialog.showModal();
}

function closeHistoryDialog() {
  const dialog = document.getElementById("script-history-dialog");
  const overlay = document.getElementById("script-history-overlay");
  if (!dialog || !overlay) return;

  if (dialog.open) dialog.close();
  overlay.classList.remove("active");
}

function handleScriptResult(rawOutput, scriptName) {
  const raw = typeof rawOutput === "string" ? rawOutput.trim() : "";

  if (!raw) {
    showToast(tFormat("success", { script: scriptName }), "success", 3000);
    return;
  }

  try {
    const json = JSON.parse(raw);
    if (json.success) {
      const commandOutput = typeof json.output === "string" ? json.output.trim() : "";
      addScriptHistory(scriptName, commandOutput || tFormat("success", { script: scriptName }));
      showToast(tFormat("success", { script: scriptName }), "success", 3000);
    } else {
      addScriptHistory(scriptName, raw);
      showToast(t("script_execution_failed_generic"), "error", 4000);
    }
  } catch {
    addScriptHistory(scriptName, raw);
    showToast(tFormat("success", { script: scriptName }), "success", 3500);
  }
}

function runScript(scriptName, basePath, button) {
  const scriptPath = `${basePath}${scriptName}`;
  const executeScript = getScriptExecutor();

  const originalClass = button.className;
  button.classList.add("executing");

  const cb = `cb_${Date.now()}_${Math.floor(Math.random() * 1000)}`;
  let timeoutId;

  window[cb] = (output) => {
    clearTimeout(timeoutId);
    delete window[cb];
    button.className = originalClass;
    handleScriptResult(output, scriptName);
  };

  try {
    if (!executeScript) {
      throw new Error("executor-unavailable");
    }

    showToast(tFormat("executing", { script: scriptName }), "info");
    executeScript(scriptPath, scriptName, cb);
  } catch (_e) {
    clearTimeout(timeoutId);
    delete window[cb];
    button.className = originalClass;
    addScriptHistory(scriptName, t("script_execution_failed_generic"));
    showToast(t("script_execution_failed_generic"), "error", 4500);
    return;
  }

  timeoutId = setTimeout(() => {
    delete window[cb];
    button.className = originalClass;
    addScriptHistory(scriptName, tFormat("timeout", { script: scriptName }));
    showToast(t("script_execution_failed_generic"), "error", 4500);
  }, 7000);
}

// Export functions to window object
window.getScriptExecutor = getScriptExecutor;
window.readHistory = readHistory;
window.writeHistory = writeHistory;
window.addScriptHistory = addScriptHistory;
window.renderHistoryDialog = renderHistoryDialog;
window.openHistoryDialog = openHistoryDialog;
window.closeHistoryDialog = closeHistoryDialog;
window.handleScriptResult = handleScriptResult;
window.runScript = runScript;


================================================
FILE: Module/webroot/js/utils/toast.js
================================================
// Toast Notification Utilities
let toastTimer;

function showToast(message, type = "info", duration = 3000) {
  const snackbar = document.getElementById("snackbar");
  if (!snackbar) return;

  snackbar.textContent = message;
  snackbar.className = `snackbar show ${type}`;

  clearTimeout(toastTimer);
  toastTimer = setTimeout(() => {
    snackbar.classList.remove("show");
  }, duration);
}

// Export toast functions to window object
window.showToast = showToast;
window.showSuccessToast = (message, duration = 3000) => showToast(message, "success", duration);
window.showErrorToast = (message, duration = 4000) => showToast(message, "error", duration);
window.showWarningToast = (message, duration = 3500) => showToast(message, "warning", duration);
window.showInfoToast = (message, duration = 3000) => showToast(message, "info", duration);


================================================
FILE: Module/webroot/js/version.js
================================================
// ========== EXECUTOR FUNCTION ==========
// Executes a shell command using KernelSU and returns a Promise with the output
function exec(command) {
  return new Promise((resolve, reject) => {
    const cb = `cb_${Date.now()}`;
    window[cb] = (code, out, err) => {
      delete window[cb];
      code ? reject(err || "Unknown error") : resolve(out);
    };
    ksu.exec(command, "{}", cb);
  });
}

// ========== VERSION MODULE DETECTION ==========
// Reads the 'version' from /data/adb/modules/Yurikey/module.prop
async function loadVersionFromModuleProp() {
  const versionElement = document.getElementById('version-text');
  try {
    const version = await exec("grep '^version=' /data/adb/modules/Yurikey/module.prop | cut -d'=' -f2");
    versionElement.textContent = version.trim();
  } catch (error) {
    appendToOutput("[!] Failed to read version from module.prop");
    console.error("Failed to read version from module.prop:", error);
  }
}

// ========== DOM INITIALIZATION ==========
document.addEventListener('DOMContentLoaded', () => {
  loadVersionFromModuleProp();
});


================================================
FILE: Module/webroot/json/dev.json
================================================
{
  "project": "Project Contributors",
  "contributors": [
    {
      "name": "Yuri",
      "username": "Yurii0307",
      "role": "Founder & Module Developer",
      "url": "https://github.com/Yurii0307"
    },
    {
      "name": "Tam",
      "username": "Tam97123",
      "role": "Module Developer",
      "url": "https://github.com/Tam97123"
    },
    {
      "name": "yourbestregard",
      "username": "yourbestregard",
      "role": "Module Developer",
      "url": "https://github.com/yourbestregard"
    },
    {
      "name": "CEHunter",
      "username": "cvnertnc",
      "role": "Module/WebUI Developer",
      "url": "https://github.com/cvnertnc"
    },
    {
      "name": "ZG089",
      "username": "ZG089",
      "role": "Module Developer",
      "url": "https://github.com/ZG089"
    },
    {
      "name": "Munch",
      "username": "SudoNothing404",
      "role": "WebUI Developer",
      "url": "https://github.com/SudoNothing404"
    },
    {
      "name": "Wes",
      "username": "p0ntu5",
      "role": "WebUI Developer",
      "url": "https://github.com/ihatenodejs"
    },
    {
      "name": "Khx",
      "username": "dpejoh",
      "role": "Ex Module Developer",
      "url": "https://github.com/dpejoh"
    },
    {
      "name": "HzzMonet",
      "username": "hzzmonet",
      "role": "Feminine Boy",
      "url": "https://github.com/hzzmonetvn"
    }
  ]
}


================================================
FILE: Module/webroot/lang/af.json
================================================
{
  "nav_home": "Home",
  "nav_menu": "Menu",
  "nav_update": "Update",
  "nav_settings": "Settings",
  "home_version": "Module Version",
  "home_root": "Root Implementation",
  "home_refresh": "Refresh Info",
  "home_refreshing": "Refreshing...",
  "home_status": "Status",
  "home_status_online": "Online",
  "home_status_offline": "Offline",
  "home_clock_date": "Clock Date",
  "home_clock_time": "Clock Time",
  "menu_title": "MAIN MENU",
  "menu_force_clear": "Force Stop & Clear Data Play Store",
  "menu_keybox": "Set Up Yuri Keybox",
  "menu_target": "Set Up Target.txt",
  "menu_necessary": "Only Set Necessary App",
  "menu_patch": "Set Up Security Patch",
  "advance_menu_title": "Advanced Menu",
  "advance_clear_all_detection_traces": "Clear all detection traces",
  "advance_set_hma-oss_configs": "Set HMA-oss configs",
  "advance_fix_detect_lsposed": "Fix Detect lsposed (2)",
  "advance_fix_detect_pif": "Fix Detect PIF (1)",
  "advance_fix_detect_recovery_file": "Fix Detect Recovery File",
  "advance_kill_all": "Kill All Process",
  "advance_set_verified_boot": "Set Up Verified Boothash",
  "update_title": "UPDATE & SUPPORT",
  "update_desc": "Stay up to date with the latest version of Yurikey, bug fixes, and new features.",
  "update_github": "View on GitHub",
  "update_telegram": "Join Telegram Channel",
  "update_note": "Join our Telegram channel or check GitHub for updates, contributions, and technical discussions.",
  "settings_contributors": "Project Contributors",
  "role_Founder & Module Developer": "Founder & Module Developer",
  "role_Module Developer": "Module Developer",
  "role_WebUI Developer": "WebUI Developer",
  "role_Ex Module Developer": "Former Module Developer",
  "executing": "Executing \"{script}\"...",
  "success": "Script \"{script}\" executed successfully.",
  "failed": "Failed to execute script \"{script}\".",
  "timeout": "Script \"{script}\" timed out.",
  "ksu_not_available": "KernelSU exec API not available.",
  "status_online": "Status: Online",
  "status_offline": "Status: Offline",
  "home_refresh_failed": "Failed to refresh info!",
  "home_no_internet": "No internet connection.",
  "home_connected": "Connected",
  "home_disconnected": "Disconnected",
  "settings_appearance": "Appearance",
  "settings_clock_format": "Clock Format",
  "clock_format_auto": "Auto (Device)",
  "clock_format_24h": "24-hour (00:00)",
  "clock_format_12h": "12-hour (AM/PM)",
  "theme_mode_dark": "Dark",
  "theme_mode_light": "Light",
  "theme_mode_auto": "Auto (System)",
  "theme_preset_ocean": "Ocean",
  "theme_preset_rose": "Rose",
  "theme_preset_forest": "Forest",
  "theme_preset_sunset": "Sunset",
  "theme_preset_violet": "Violet",
  "settings_title": "Settings",
  "settings_language": "Language",
  "menu_keybox_title": "Keybox",
  "advance_upd_yurirka": "Update RKA config",
  "advance_widevinel1": "Fix Widevine L1",
  "nav_advance_menu": "Menu +",
  "advance_set_zygisk_next_configs": "Set Zygisk Next configs"
}


================================================
FILE: Module/webroot/lang/ar.json
================================================
{
  "nav_home": "Home",
  "nav_menu": "Menu",
  "nav_update": "Update",
  "nav_settings": "Settings",
  "home_version": "Module Version",
  "home_root": "Root Implementation",
  "home_refresh": "Refresh Info",
  "home_refreshing": "Refreshing...",
  "home_status": "Status",
  "home_status_online": "Online",
  "home_status_offline": "Offline",
  "home_clock_date": "Clock Date",
  "home_clock_time": "Clock Time",
  "menu_title": "MAIN MENU",
  "menu_force_clear": "Force Stop & Clear Data Play Store",
  "menu_keybox": "Set Up Yuri Keybox",
  "menu_target": "Set Up Target.txt",
  "menu_necessary": "Only Set Necessary App",
  "menu_patch": "Set Up Security Patch",
  "advance_menu_title": "Advanced Menu",
  "advance_clear_all_detection_traces": "Clear all detection traces",
  "advance_set_hma-oss_configs": "Set HMA-oss configs",
  "advance_fix_detect_lsposed": "Fix Detect lsposed (2)",
  "advance_fix_detect_pif": "Fix Detect PIF (1)",
  "advance_fix_detect_recovery_file": "Fix Detect Recovery File",
  "advance_kill_all": "Kill All Process",
  "advance_set_verified_boot": "Set Up Verified Boothash",
  "update_title": "UPDATE & SUPPORT",
  "update_desc": "Stay up to date with the latest version of Yurikey, bug fixes, and new features.",
  "update_github": "View on GitHub",
  "update_telegram": "Join Telegram Channel",
  "update_note": "Join our Telegram channel or check GitHub for updates, contributions, and technical discussions.",
  "settings_contributors": "Project Contributors",
  "role_Founder & Module Developer": "Founder & Module Developer",
  "role_Module Developer": "Module Developer",
  "role_WebUI Developer": "WebUI Developer",
  "role_Ex Module Developer": "Former Module Developer",
  "executing": "Executing \"{script}\"...",
  "success": "Script \"{script}\" executed successfully.",
  "failed": "Failed to execute script \"{script}\".",
  "timeout": "Script \"{script}\" timed out.",
  "ksu_not_available": "KernelSU exec API not available.",
  "status_online": "Status: Online",
  "status_offline": "Status: Offline",
  "home_refresh_failed": "Failed to refresh info!",
  "home_no_internet": "No internet connection.",
  "home_connected": "Connected",
  "home_disconnected": "Disconnected",
  "settings_appearance": "Appearance",
  "settings_clock_format": "Clock Format",
  "clock_format_auto": "Auto (Device)",
  "clock_format_24h": "24-hour (00:00)",
  "clock_format_12h": "12-hour (AM/PM)",
  "theme_mode_dark": "Dark",
  "theme_mode_light": "Light",
  "theme_mode_auto": "Auto (System)",
  "theme_preset_ocean": "Ocean",
  "theme_preset_rose": "Rose",
  "theme_preset_forest": "Forest",
  "theme_preset_sunset": "Sunset",
  "theme_preset_violet": "Violet",
  "settings_title": "Settings",
  "settings_language": "Language",
  "menu_keybox_title": "Keybox",
  "advance_upd_yurirka": "Update RKA config",
  "advance_widevinel1": "Fix Widevine L1",
  "nav_advance_menu": "Menu +",
  "advance_set_zygisk_next_configs": "Set Zygisk Next configs"
}


================================================
FILE: Module/webroot/lang/ca.json
================================================
{
  "nav_home": "Home",
  "nav_menu": "Menu",
  "nav_update": "Update",
  "nav_settings": "Settings",
  "home_version": "Module Version",
  "home_root": "Root Implementation",
  "home_refresh": "Refresh Info",
  "home_refreshing": "Refreshing...",
  "home_status": "Status",
  "home_status_online": "Online",
  "home_status_offline": "Offline",
  "home_clock_date": "Clock Date",
  "home_clock_time": "Clock Time",
  "menu_title": "MAIN MENU",
  "menu_force_clear": "Force Stop & Clear Data Play Store",
  "menu_keybox": "Set Up Yuri Keybox",
  "menu_target": "Set Up Target.txt",
  "menu_necessary": "Only Set Necessary App",
  "menu_patch": "Set Up Security Patch",
  "advance_menu_title": "Advanced Menu",
  "advance_clear_all_detection_traces": "Clear all detection traces",
  "advance_set_hma-oss_configs": "Set HMA-oss configs",
  "advance_fix_detect_lsposed": "Fix Detect lsposed (2)",
  "advance_fix_detect_pif": "Fix Detect PIF (1)",
  "advance_fix_detect_recovery_file": "Fix Detect Recovery File",
  "advance_kill_all": "Kill All Process",
  "advance_set_verified_boot": "Set Up Verified Boothash",
  "update_title": "UPDATE & SUPPORT",
  "update_desc": "Stay up to date with the latest version of Yurikey, bug fixes, and new features.",
  "update_github": "View on GitHub",
  "update_telegram": "Join Telegram Channel",
  "update_note": "Join our Telegram channel or check GitHub for updates, contributions, and technical discussions.",
  "settings_contributors": "Project Contributors",
  "role_Founder & Module Developer": "Founder & Module Developer",
  "role_Module Developer": "Module Developer",
  "role_WebUI Developer": "WebUI Developer",
  "role_Ex Module Developer": "Former Module Developer",
  "executing": "Executing \"{script}\"...",
  "success": "Script \"{script}\" executed successfully.",
  "failed": "Failed to execute script \"{script}\".",
  "timeout": "Script \"{script}\" timed out.",
  "ksu_not_available": "KernelSU exec API not available.",
  "status_online": "Status: Online",
  "status_offline": "Status: Offline",
  "home_refresh_failed": "Failed to refresh info!",
  "home_no_internet": "No internet connection.",
  "home_connected": "Connected",
  "home_disconnected": "Disconnected",
  "settings_appearance": "Appearance",
  "settings_clock_format": "Clock Format",
  "clock_format_auto": "Auto (Device)",
  "clock_format_24h": "24-hour (00:00)",
  "clock_format_12h": "12-hour (AM/PM)",
  "theme_mode_dark": "Dark",
  "theme_mode_light": "Light",
  "theme_mode_auto": "Auto (System)",
  "theme_preset_ocean": "Ocean",
  "theme_preset_rose": "Rose",
  "theme_preset_forest": "Forest",
  "theme_preset_sunset": "Sunset",
  "theme_preset_violet": "Violet",
  "settings_title": "Settings",
  "settings_language": "Language",
  "menu_keybox_title": "Keybox",
  "advance_upd_yurirka": "Update RKA config",
  "advance_widevinel1": "Fix Widevine L1",
  "nav_advance_menu": "Menu +",
  "advance_set_zygisk_next_configs": "Set Zygisk Next configs"
}


================================================
FILE: Module/webroot/lang/cs.json
================================================
{
  "nav_home": "Home",
  "nav_menu": "Menu",
  "nav_update": "Update",
  "nav_settings": "Settings",
  "home_version": "Module Version",
  "home_root": "Root Implementation",
  "home_refresh": "Refresh Info",
  "home_refreshing": "Refreshing...",
  "home_status": "Status",
  "home_status_online": "Online",
  "home_status_offline": "Offline",
  "home_clock_date": "Clock Date",
  "home_clock_time": "Clock Time",
  "menu_title": "MAIN MENU",
  "menu_force_clear": "Force Stop & Clear Data Play Store",
  "menu_keybox": "Set Up Yuri Keybox",
  "menu_target": "Set Up Target.txt",
  "menu_necessary": "Only Set Necessary App",
  "menu_patch": "Set Up Security Patch",
  "advance_menu_title": "Advanced Menu",
  "advance_clear_all_detection_traces": "Clear all detection traces",
  "advance_set_hma-oss_configs": "Set HMA-oss configs",
  "advance_fix_detect_lsposed": "Fix Detect lsposed (2)",
  "advance_fix_detect_pif": "Fix Detect PIF (1)",
  "advance_fix_detect_recovery_file": "Fix Detect Recovery File",
  "advance_kill_all": "Kill All Process",
  "advance_set_verified_boot": "Set Up Verified Boothash",
  "update_title": "UPDATE & SUPPORT",
  "update_desc": "Stay up to date with the latest version of Yurikey, bug fixes, and new features.",
  "update_github": "View on GitHub",
  "update_telegram": "Join Telegram Channel",
  "update_note": "Join our Telegram channel or check GitHub for updates, contributions, and technical discussions.",
  "settings_contributors": "Project Contributors",
  "role_Founder & Module Developer": "Founder & Module Developer",
  "role_Module Developer": "Module Developer",
  "role_WebUI Developer": "WebUI Developer",
  "role_Ex Module Developer": "Former Module Developer",
  "executing": "Executing \"{script}\"...",
  "success": "Script \"{script}\" executed successfully.",
  "failed": "Failed to execute script \"{script}\".",
  "timeout": "Script \"{script}\" timed out.",
  "ksu_not_available": "KernelSU exec API not available.",
  "status_online": "Status: Online",
  "status_offline": "Status: Offline",
  "home_refresh_failed": "Failed to refresh info!",
  "home_no_internet": "No internet connection.",
  "home_connected": "Connected",
  "home_disconnected": "Disconnected",
  "settings_appearance": "Appearance",
  "settings_clock_format": "Clock Format",
  "clock_format_auto": "Auto (Device)",
  "clock_format_24h": "24-hour (00:00)",
  "clock_format_12h": "12-hour (AM/PM)",
  "theme_mode_dark": "Dark",
  "theme_mode_light": "Light",
  "theme_mode_auto": "Auto (System)",
  "theme_preset_ocean": "Ocean",
  "theme_preset_rose": "Rose",
  "theme_preset_forest": "Forest",
  "theme_preset_sunset": "Sunset",
  "theme_preset_violet": "Violet",
  "settings_title": "Settings",
  "settings_language": "Language",
  "menu_keybox_title": "Keybox",
  "advance_upd_yurirka": "Update RKA config",
  "advance_widevinel1": "Fix Widevine L1",
  "nav_advance_menu": "Menu +",
  "advance_set_zygisk_next_configs": "Set Zygisk Next configs"
}


================================================
FILE: Module/webroot/lang/da.json
================================================
{
  "nav_home": "Home",
  "nav_menu": "Menu",
  "nav_update": "Update",
  "nav_settings": "Settings",
  "home_version": "Module Version",
  "home_root": "Root Implementation",
  "home_refresh": "Refresh Info",
  "home_refreshing": "Refreshing...",
  "home_status": "Status",
  "home_status_online": "Online",
  "home_status_offline": "Offline",
  "home_clock_date": "Clock Date",
  "home_clock_time": "Clock Time",
  "menu_title": "MAIN MENU",
  "menu_force_clear": "Force Stop & Clear Data Play Store",
  "menu_keybox": "Set Up Yuri Keybox",
  "menu_target": "Set Up Target.txt",
  "menu_necessary": "Only Set Necessary App",
  "menu_patch": "Set Up Security Patch",
  "advance_menu_title": "Advanced Menu",
  "advance_clear_all_detection_traces": "Clear all detection traces",
  "advance_set_hma-oss_configs": "Set HMA-oss configs",
  "advance_fix_detect_lsposed": "Fix Detect lsposed (2)",
  "advance_fix_detect_pif": "Fix Detect PIF (1)",
  "advance_fix_detect_recovery_file": "Fix Detect Recovery File",
  "advance_kill_all": "Kill All Process",
  "advance_set_verified_boot": "Set Up Verified Boothash",
  "update_title": "UPDATE & SUPPORT",
  "update_desc": "Stay up to date with the latest version of Yurikey, bug fixes, and new features.",
  "update_github": "View on GitHub",
  "update_telegram": "Join Telegram Channel",
  "update_note": "Join our Telegram channel or check GitHub for updates, contributions, and technical discussions.",
  "settings_contributors": "Project Contributors",
  "role_Founder & Module Developer": "Founder & Module Developer",
  "role_Module Developer": "Module Developer",
  "role_WebUI Developer": "WebUI Developer",
  "role_Ex Module Developer": "Former Module Developer",
  "executing": "Executing \"{script}\"...",
  "success": "Script \"{script}\" executed successfully.",
  "failed": "Failed to execute script \"{script}\".",
  "timeout": "Script \"{script}\" timed out.",
  "ksu_not_available": "KernelSU exec API not available.",
  "status_online": "Status: Online",
  "status_offline": "Status: Offline",
  "home_refresh_failed": "Failed to refresh info!",
  "home_no_internet": "No internet connection.",
  "home_connected": "Connected",
  "home_disconnected": "Disconnected",
  "settings_appearance": "Appearance",
  "settings_clock_format": "Clock Format",
  "clock_format_auto": "Auto (Device)",
  "clock_format_24h": "24-hour (00:00)",
  "clock_format_12h": "12-hour (AM/PM)",
  "theme_mode_dark": "Dark",
  "theme_mode_light": "Light",
  "theme_mode_auto": "Auto (System)",
  "theme_preset_ocean": "Ocean",
  "theme_preset_rose": "Rose",
  "theme_preset_forest": "Forest",
  "theme_preset_sunset": "Sunset",
  "theme_preset_violet": "Violet",
  "settings_title": "Settings",
  "settings_language": "Language",
  "menu_keybox_title": "Keybox",
  "advance_upd_yurirka": "Update RKA config",
  "advance_widevinel1": "Fix Widevine L1",
  "nav_advance_menu": "Menu +",
  "advance_set_zygisk_next_configs": "Set Zygisk Next configs"
}


================================================
FILE: Module/webroot/lang/de.json
================================================
{
  "nav_home": "Home",
  "nav_menu": "Menü",
  "nav_update": "Update",
  "nav_settings": "Einstellungen",
  "home_version": "Version",
  "home_root": "Root Implementation",
  "home_refresh": "Aktualisieren der Info",
  "home_refreshing": "Akt
Download .txt
gitextract_9qmznag3/

├── .github/
│   └── workflows/
│       ├── build-release.yml
│       └── build-test.yml
├── .gitignore
├── LICENSE
├── Module/
│   ├── META-INF/
│   │   └── com/
│   │       └── google/
│   │           └── android/
│   │               ├── update-binary
│   │               └── updater-script
│   ├── Yuri/
│   │   ├── action/
│   │   │   ├── integrity.sh
│   │   │   └── root.sh
│   │   ├── boot_hash.sh
│   │   ├── clear_all_detection_traces.sh
│   │   ├── hma.sh
│   │   ├── kill_all.sh
│   │   ├── kill_google_process.sh
│   │   ├── pif.sh
│   │   ├── rka/
│   │   │   ├── arm64-v8a/
│   │   │   │   └── sqlite3
│   │   │   ├── armeabi/
│   │   │   │   └── sqlite3
│   │   │   ├── armeabi-v7a/
│   │   │   │   └── sqlite3
│   │   │   ├── jsonarray.sh
│   │   │   ├── lspmcfg.sh
│   │   │   ├── x86/
│   │   │   │   └── sqlite3
│   │   │   └── x86_64/
│   │   │       └── sqlite3
│   │   ├── security_patch.sh
│   │   ├── select_app_neccesary.sh
│   │   ├── target_txt.sh
│   │   ├── yuri_keybox.sh
│   │   ├── yurirka.sh
│   │   └── znctl.sh
│   ├── action.sh
│   ├── customize.sh
│   ├── module.prop
│   ├── service.sh
│   ├── uninstall.sh
│   └── webroot/
│       ├── common/
│       │   ├── FixWidevineL1/
│       │   │   ├── FixWidevineL1.sh
│       │   │   └── attestation
│       │   ├── boot_hash.sh
│       │   ├── device-info.sh
│       │   ├── lsposed2.sh
│       │   ├── pif2.sh
│       │   ├── twrp.sh
│       │   └── widevinel1.sh
│       ├── config.json
│       ├── css/
│       │   └── style.css
│       ├── index.html
│       ├── js/
│       │   ├── components/
│       │   │   ├── clock.js
│       │   │   ├── navigation.js
│       │   │   └── networkStatus.js
│       │   ├── dev.js
│       │   ├── device.js
│       │   ├── main.js
│       │   ├── redirect.js
│       │   ├── theme.js
│       │   ├── utils/
│       │   │   ├── i18n.js
│       │   │   ├── scriptExecutor.js
│       │   │   └── toast.js
│       │   └── version.js
│       ├── json/
│       │   └── dev.json
│       └── lang/
│           ├── af.json
│           ├── ar.json
│           ├── ca.json
│           ├── cs.json
│           ├── da.json
│           ├── de.json
│           ├── el.json
│           ├── es.json
│           ├── fi.json
│           ├── fr.json
│           ├── he.json
│           ├── hu.json
│           ├── it.json
│           ├── ja.json
│           ├── ko.json
│           ├── nl.json
│           ├── no.json
│           ├── pl.json
│           ├── pt.json
│           ├── ro.json
│           ├── ru.json
│           ├── sr.json
│           ├── sv.json
│           ├── tr.json
│           ├── uk.json
│           ├── vi.json
│           └── zh.json
├── README.md
├── changelog.md
├── config.json
├── doc/
│   └── README_ja-JP.md
├── key
└── update.json
Download .txt
SYMBOL INDEX (58 symbols across 9 files)

FILE: Module/webroot/js/components/clock.js
  constant CLOCK_FORMAT_KEY (line 2) | const CLOCK_FORMAT_KEY = "clockFormat";
  function getClockFormat (line 4) | function getClockFormat() {
  function getClockFormatLabel (line 8) | function getClockFormatLabel(format) {
  function setupClockFormatDropdown (line 14) | function setupClockFormatDropdown() {
  function updateClock (line 46) | function updateClock() {

FILE: Module/webroot/js/components/networkStatus.js
  function verifyRealInternet (line 4) | async function verifyRealInternet() {
  function updateNetworkStatus (line 37) | async function updateNetworkStatus() {

FILE: Module/webroot/js/device.js
  constant BASE_SCRIPT (line 2) | const BASE_SCRIPT = "/data/adb/modules/Yurikey/webroot/common/";
  function waitForTranslations (line 5) | async function waitForTranslations(timeout = 3000) {
  function waitForValidDeviceInfo (line 17) | async function waitForValidDeviceInfo(maxWait = 4000, interval = 400) {
  function loadDeviceInfo (line 33) | async function loadDeviceInfo() {
  function runScript (line 51) | function runScript(scriptName, callback) {
  function setupRefreshButton (line 67) | function setupRefreshButton() {

FILE: Module/webroot/js/redirect.js
  function openUrlViaIntent (line 2) | function openUrlViaIntent(url) {
  function setupIntentLinks (line 27) | function setupIntentLinks(selector = "[data-url]") {

FILE: Module/webroot/js/theme.js
  constant THEME_MODE_KEY (line 1) | const THEME_MODE_KEY = "themeMode";
  constant THEME_PRESET_KEY (line 2) | const THEME_PRESET_KEY = "themePreset";
  constant SNACKBAR_COLOR_KEYS (line 4) | const SNACKBAR_COLOR_KEYS = {
  constant SNACKBAR_DEFAULTS (line 12) | const SNACKBAR_DEFAULTS = {
  constant THEME_PRESETS (line 20) | const THEME_PRESETS = {
  function hexToRgb (line 43) | function hexToRgb(hex) {
  function rgbToHex (line 49) | function rgbToHex({ r, g, b }) {
  function mix (line 52) | function mix(a, b, t) {
  function getStoredMode (line 57) | function getStoredMode() { return localStorage.getItem(THEME_MODE_KEY) |...
  function getResolvedMode (line 58) | function getResolvedMode(mode) { return mode === "auto" ? (window.matchM...
  function getStoredPreset (line 59) | function getStoredPreset() {
  function themeText (line 63) | function themeText(key, fallback) { return window.translations?.[key] ||...
  function modeLabel (line 64) | function modeLabel(mode) {
  function withDerived (line 70) | function withDerived(colors, mode) {
  function applyColors (line 82) | function applyColors(rawColors) {
  function applyThemeMode (line 87) | function applyThemeMode(mode) {
  function applyThemePreset (line 93) | function applyThemePreset(presetName) {
  function normalizeHex (line 101) | function normalizeHex(value, fallback = "#2196f3") {
  function hexToRgbTuple (line 108) | function hexToRgbTuple(hex) {
  function rgbToHexTuple (line 117) | function rgbToHexTuple(r, g, b) {
  function setSnackbarColor (line 121) | function setSnackbarColor(type, value) {
  function applySnackbarColors (line 134) | function applySnackbarColors() {
  function bindSnackbarColorInputs (line 141) | function bindSnackbarColorInputs() {
  function bindSnackbarColorTool (line 151) | function bindSnackbarColorTool() {

FILE: Module/webroot/js/utils/i18n.js
  constant LANG_PATH (line 2) | const LANG_PATH = "lang/";
  constant DEFAULT_LANG (line 3) | const DEFAULT_LANG = "en";
  function t (line 8) | function t(key) {
  function tFormat (line 13) | function tFormat(key, vars = {}) {
  function applyLanguage (line 22) | async function applyLanguage(langCode) {
  function setupLanguageDropdown (line 96) | function setupLanguageDropdown(currentLang) {

FILE: Module/webroot/js/utils/scriptExecutor.js
  constant SCRIPT_HISTORY_KEY (line 2) | const SCRIPT_HISTORY_KEY = "scriptHistoryLogs";
  function getScriptExecutor (line 4) | function getScriptExecutor() {
  function readHistory (line 28) | function readHistory() {
  function writeHistory (line 37) | function writeHistory(items) {
  function addScriptHistory (line 41) | function addScriptHistory(scriptName, outputText) {
  function renderHistoryDialog (line 54) | function renderHistoryDialog() {
  function openHistoryDialog (line 76) | function openHistoryDialog() {
  function closeHistoryDialog (line 86) | function closeHistoryDialog() {
  function handleScriptResult (line 95) | function handleScriptResult(rawOutput, scriptName) {
  function runScript (line 119) | function runScript(scriptName, basePath, button) {

FILE: Module/webroot/js/utils/toast.js
  function showToast (line 4) | function showToast(message, type = "info", duration = 3000) {

FILE: Module/webroot/js/version.js
  function exec (line 3) | function exec(command) {
  function loadVersionFromModuleProp (line 16) | async function loadVersionFromModuleProp() {
Condensed preview — 89 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (877K chars).
[
  {
    "path": ".github/workflows/build-release.yml",
    "chars": 2564,
    "preview": "name: Build Release Module\n\non:\n  workflow_dispatch:\n\npermissions:\n  contents: write\n\njobs:\n  release:\n    runs-on: ubun"
  },
  {
    "path": ".github/workflows/build-test.yml",
    "chars": 717,
    "preview": "name: Build Test Module\n\non:\n  #push:\n  #  paths:\n  #    - 'Module/**'\n  #  branches:\n  #    - main\n  #    - dev\n  workf"
  },
  {
    "path": ".gitignore",
    "chars": 87,
    "preview": "Module/webroot/json/device-info.json\nModule/webroot/lang/source/string.json\nstring.yml\n"
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "Module/META-INF/com/google/android/update-binary",
    "chars": 4070,
    "preview": "#!/sbin/sh\n\n#################\n# Initialization\n#################\n\numask 022\n\n# echo before loading util_functions\nui_pri"
  },
  {
    "path": "Module/META-INF/com/google/android/updater-script",
    "chars": 8,
    "preview": "#MAGISK\n"
  },
  {
    "path": "Module/Yuri/action/integrity.sh",
    "chars": 309,
    "preview": "MODPATH=\"${0%/*}\"\nSCRIPT_PATH=\"$MODPATH/..\"\n\nfor SCRIPT in \\\n  \"kill_google_process.sh\" \\\n  \"target_txt.sh\" \\\n  \"securit"
  },
  {
    "path": "Module/Yuri/action/root.sh",
    "chars": 211,
    "preview": "MODPATH=\"${0%/*}\"\nSCRIPT_PATH=\"$MODPATH/..\"\n\nfor SCRIPT in \\\n  \"hma.sh\"\ndo\n  if ! sh \"$SCRIPT_PATH/$SCRIPT\"; then\n    ec"
  },
  {
    "path": "Module/Yuri/boot_hash.sh",
    "chars": 566,
    "preview": "#!/system/bin/sh\n\nlog_message() {\n    echo \"$(date +%Y-%m-%d\\ %H:%M:%S) [SET_BOOT_HASH] $1\"\n}\n\nlog_message \"Start\"\n\n# Ge"
  },
  {
    "path": "Module/Yuri/clear_all_detection_traces.sh",
    "chars": 14050,
    "preview": "#!/system/bin/sh\n\nbanner() {\n    clear\n    printf \"\\033[41m                                               \\033[0m\\n\"\n   "
  },
  {
    "path": "Module/Yuri/hma.sh",
    "chars": 1144,
    "preview": "#!/system/bin/sh\n\n# Define important paths and file names\nHMA_DIR=\"/data/user/0/org.frknkrc44.hma_oss/files\"\nHMA_FILE=\"/"
  },
  {
    "path": "Module/Yuri/kill_all.sh",
    "chars": 978,
    "preview": "#!/system/bin/sh\n\nlog_message() {\n    echo \"$(date +%Y-%m-%d\\ %H:%M:%S) [KILL_ALL] $1\"\n}\n\n# Start\nlog_message \"Start\"\n\n#"
  },
  {
    "path": "Module/Yuri/kill_google_process.sh",
    "chars": 519,
    "preview": "#!/system/bin/sh\n\nlog_message() {\n    echo \"$(date +%Y-%m-%d\\ %H:%M:%S) [KILL_GOOGLE] $1\"\n}\n\n# Start\nlog_message \"Start\""
  },
  {
    "path": "Module/Yuri/pif.sh",
    "chars": 1346,
    "preview": "#!/system/bin/sh\n\nlog_message() {\n    echo \"$(date +%Y-%m-%d\\ %H:%M:%S) [PIF] $1\"\n}\n\nlog_message \"Start\"\n\nTARGET_FILE=\"/"
  },
  {
    "path": "Module/Yuri/rka/jsonarray.sh",
    "chars": 10083,
    "preview": "#!/system/bin/sh\n# jsonarray — flat JSON array manipulation library\n# Contributed by mhmrdd <https://github.com/mhmrdd>\n"
  },
  {
    "path": "Module/Yuri/rka/lspmcfg.sh",
    "chars": 8047,
    "preview": "#!/system/bin/sh\n#\n# This file is part of LSPosed.\n#\n# LSPosed is free software: you can redistribute it and/or modify\n#"
  },
  {
    "path": "Module/Yuri/security_patch.sh",
    "chars": 1395,
    "preview": "#!/system/bin/sh\n\nlog_message() {\n    echo \"$(date +%Y-%m-%d\\ %H:%M:%S) [SET_SECURITY_PATCH] $1\"\n}\n\nlog_message \"Start\"\n"
  },
  {
    "path": "Module/Yuri/select_app_neccesary.sh",
    "chars": 1038,
    "preview": "#!/bin/sh\n\nlog_message() {\n    echo \"$(date +%Y-%m-%d\\ %H:%M:%S) [KILL_ALL] $1\"\n}\n\n# Start\nlog_message \"Start\"\n\nt='/data"
  },
  {
    "path": "Module/Yuri/target_txt.sh",
    "chars": 2169,
    "preview": "#!/system/bin/sh\n\nlog_message() {\n    echo \"$(date +%Y-%m-%d\\ %H:%M:%S) [SET_TARGET] $1\"\n}\n\nlog_message \"Start\"\n\nt='/dat"
  },
  {
    "path": "Module/Yuri/yuri_keybox.sh",
    "chars": 2026,
    "preview": "#!/system/bin/sh\n\n# Define important paths and file names\nTRICKY_DIR=\"/data/adb/tricky_store\"\nREMOTE_URL=\"https://raw.gi"
  },
  {
    "path": "Module/Yuri/yurirka.sh",
    "chars": 1415,
    "preview": "#!/system/bin/sh\n# yurirka — RKA provisioning for PassIt\n# Contributed by mhmrdd <https://github.com/mhmrdd>\n\nSCRDIR=$(c"
  },
  {
    "path": "Module/Yuri/znctl.sh",
    "chars": 1203,
    "preview": "#!/system/bin/sh\n\nlog_message() {\n    echo \"$(date +%Y-%m-%d\\ %H:%M:%S) [ZYGISK_NEXT] $1\"\n}\n\nlog_message \"Start\"\n\nTARGET"
  },
  {
    "path": "Module/action.sh",
    "chars": 749,
    "preview": "MODPATH=\"${0%/*}\"\n\n# ensure not running in busybox ash standalone shell\nset +o standalone\nunset ASH_STANDALONE\n\nfor SCRI"
  },
  {
    "path": "Module/customize.sh",
    "chars": 3282,
    "preview": "#!/system/bin/sh\n\n# Define important paths and file names\nTRICKY_DIR=\"/data/adb/tricky_store\"\nREMOTE_URL=\"https://raw.gi"
  },
  {
    "path": "Module/module.prop",
    "chars": 308,
    "preview": "id=Yurikey\nname=Yurikey Manager\nversion=v3.0.5\nversionCode=305\nauthor=Yurikey Dev\nbanner=https://raw.githubusercontent.c"
  },
  {
    "path": "Module/service.sh",
    "chars": 2832,
    "preview": "#!/system/bin/sh\n\n# Function to check and reset property if it doesn't match the expected value\ncheck_reset_prop() {\n  l"
  },
  {
    "path": "Module/uninstall.sh",
    "chars": 436,
    "preview": "#!/system/bin/sh\n\nTRICKY_DIR=\"/data/adb/tricky_store\"\nTARGET_FILE=\"$TRICKY_DIR/keybox.xml\"\nBACKUP_FILE=\"$TRICKY_DIR/keyb"
  },
  {
    "path": "Module/webroot/common/FixWidevineL1/FixWidevineL1.sh",
    "chars": 105,
    "preview": "LD_LIBRARY_PATH=/vendor/lib64/hw /vendor/bin/KmInstallKeybox /data/local/tmp/attestation attestation true"
  },
  {
    "path": "Module/webroot/common/FixWidevineL1/attestation",
    "chars": 12803,
    "preview": "<?xml version=\"1.0\"?>                 \n<AndroidAttestation><NumberOfKeyboxes>1</NumberOfKeyboxes><Keybox DeviceID=\"attes"
  },
  {
    "path": "Module/webroot/common/boot_hash.sh",
    "chars": 566,
    "preview": "#!/system/bin/sh\n\nlog_message() {\n    echo \"$(date +%Y-%m-%d\\ %H:%M:%S) [SET_BOOT_HASH] $1\"\n}\n\nlog_message \"Start\"\n\n# Ge"
  },
  {
    "path": "Module/webroot/common/device-info.sh",
    "chars": 1036,
    "preview": "#!/system/bin/sh\n\n# Specify the current root directory for both normal and update path\nif [ -d \"/data/adb/modules_update"
  },
  {
    "path": "Module/webroot/common/lsposed2.sh",
    "chars": 64,
    "preview": "#!/system/bin/sh\n\nfind /data/app -type f -name base.odex -delete"
  },
  {
    "path": "Module/webroot/common/pif2.sh",
    "chars": 156,
    "preview": "#!/system/bin/sh\n\nsu -c '\ngetprop | grep -E \"pihook|pixelprops\" | sed -E \"s/^\\[(.*)\\]:.*/\\1/\" | while IFS= read -r prop;"
  },
  {
    "path": "Module/webroot/common/twrp.sh",
    "chars": 482,
    "preview": "#!/system/bin/sh\n# delete_twrp_folder.sh\n# Script to delete TWRP folder from Android internal storage\n\necho \"Starting de"
  },
  {
    "path": "Module/webroot/common/widevinel1.sh",
    "chars": 411,
    "preview": "#!/system/bin/sh\n# Copy FixWidevineL1/* directory to /data/local/tmp\ncp -r ./FixWidevineL1/* /data/local/tmp/\n\n# Set cor"
  },
  {
    "path": "Module/webroot/config.json",
    "chars": 114,
    "preview": "{\n    \"title\": \"Yurikey Manager\",\n    \"icon\": \"yurikey.png\",\n    \"windowResize\": false,\n    \"exitConfirm\": false\n}"
  },
  {
    "path": "Module/webroot/css/style.css",
    "chars": 12686,
    "preview": ":root {\n  color-scheme: dark;\n  --ui-bg: #111a26;\n  --ui-text: #f3edf7;\n  --ui-card-bg: #1d2a3a;\n  --ui-card-border: #33"
  },
  {
    "path": "Module/webroot/index.html",
    "chars": 12978,
    "preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\" />\n  <meta name=\"viewport\" content=\"width=device-width, "
  },
  {
    "path": "Module/webroot/js/components/clock.js",
    "chars": 2711,
    "preview": "// Clock Component\nconst CLOCK_FORMAT_KEY = \"clockFormat\";\n\nfunction getClockFormat() {\n  return localStorage.getItem(CL"
  },
  {
    "path": "Module/webroot/js/components/navigation.js",
    "chars": 560,
    "preview": "// Navigation Component\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n  // Navigation buttons\n  document.querySe"
  },
  {
    "path": "Module/webroot/js/components/networkStatus.js",
    "chars": 2519,
    "preview": "// Network Status Component\nlet lastStatus = null;\n\nasync function verifyRealInternet() {\n  try {\n    const controller ="
  },
  {
    "path": "Module/webroot/js/dev.js",
    "chars": 1702,
    "preview": "// === Load Contributors and Apply Translations ===\n(function loadContributors() {\n  fetch(\"json/dev.json\")\n    .then(re"
  },
  {
    "path": "Module/webroot/js/device.js",
    "chars": 3854,
    "preview": "// Device Information Component\nconst BASE_SCRIPT = \"/data/adb/modules/Yurikey/webroot/common/\";\n\n// Wait until translat"
  },
  {
    "path": "Module/webroot/js/main.js",
    "chars": 1993,
    "preview": "// Main Application Entry Point\n// This file orchestrates the loading of all components and utilities\n\ndocument.addEvent"
  },
  {
    "path": "Module/webroot/js/redirect.js",
    "chars": 1316,
    "preview": "// === Function: Open a URL using Android Intent via KernelSU ===\nfunction openUrlViaIntent(url) {\n  if (!url || typeof "
  },
  {
    "path": "Module/webroot/js/theme.js",
    "chars": 11373,
    "preview": "const THEME_MODE_KEY = \"themeMode\";\nconst THEME_PRESET_KEY = \"themePreset\";\n\nconst SNACKBAR_COLOR_KEYS = {\n  info: \"snac"
  },
  {
    "path": "Module/webroot/js/utils/i18n.js",
    "chars": 4422,
    "preview": "// Internationalization Utilities\nconst LANG_PATH = \"lang/\";\nconst DEFAULT_LANG = \"en\";\nlet translations = {};\nwindow.tr"
  },
  {
    "path": "Module/webroot/js/utils/scriptExecutor.js",
    "chars": 5210,
    "preview": "// Script Execution Utilities\nconst SCRIPT_HISTORY_KEY = \"scriptHistoryLogs\";\n\nfunction getScriptExecutor() {\n  if (type"
  },
  {
    "path": "Module/webroot/js/utils/toast.js",
    "chars": 847,
    "preview": "// Toast Notification Utilities\nlet toastTimer;\n\nfunction showToast(message, type = \"info\", duration = 3000) {\n  const s"
  },
  {
    "path": "Module/webroot/js/version.js",
    "chars": 1088,
    "preview": "// ========== EXECUTOR FUNCTION ==========\n// Executes a shell command using KernelSU and returns a Promise with the out"
  },
  {
    "path": "Module/webroot/json/dev.json",
    "chars": 1391,
    "preview": "{\n  \"project\": \"Project Contributors\",\n  \"contributors\": [\n    {\n      \"name\": \"Yuri\",\n      \"username\": \"Yurii0307\",\n  "
  },
  {
    "path": "Module/webroot/lang/af.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/ar.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/ca.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/cs.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/da.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/de.json",
    "chars": 3116,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menü\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Einstellungen\",\n  \"home_versi"
  },
  {
    "path": "Module/webroot/lang/el.json",
    "chars": 3394,
    "preview": "{\n  \"nav_home\": \"Αρχική σελίδα\",\n  \"nav_menu\": \"Μενού\",\n  \"nav_update\": \"Ενημέρωση\",\n  \"nav_settings\": \"Ρυθμίσεις\",\n  \"h"
  },
  {
    "path": "Module/webroot/lang/es.json",
    "chars": 3248,
    "preview": "{\n  \"nav_home\": \"Casa\",\n  \"nav_menu\": \"Menú\",\n  \"nav_update\": \"Actualizar\",\n  \"nav_settings\": \"Ajustes\",\n  \"home_version"
  },
  {
    "path": "Module/webroot/lang/fi.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/fr.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/he.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/hu.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/it.json",
    "chars": 3281,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Aggiorna\",\n  \"nav_settings\": \"Impostazioni\",\n  \"home_vers"
  },
  {
    "path": "Module/webroot/lang/ja.json",
    "chars": 2554,
    "preview": "{\n  \"nav_home\": \"ホーム\",\n  \"nav_menu\": \"メニュー\",\n  \"nav_update\": \"更新\",\n  \"nav_settings\": \"設定\",\n  \"home_version\": \"モジュールのバージョ"
  },
  {
    "path": "Module/webroot/lang/ko.json",
    "chars": 2501,
    "preview": "{\n  \"nav_home\": \"홈\",\n  \"nav_menu\": \"메뉴\",\n  \"nav_update\": \"업데이트\",\n  \"nav_settings\": \"설정\",\n  \"home_version\": \"모듈 버전\",\n  \"h"
  },
  {
    "path": "Module/webroot/lang/nl.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/no.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/pl.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/pt.json",
    "chars": 3258,
    "preview": "{\n  \"nav_home\": \"Início\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Atualizar\",\n  \"nav_settings\": \"Configurações\",\n  \"home_"
  },
  {
    "path": "Module/webroot/lang/ro.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/ru.json",
    "chars": 3281,
    "preview": "{\n  \"nav_home\": \"Главная\",\n  \"nav_menu\": \"Меню\",\n  \"nav_update\": \"Обновление\",\n  \"nav_settings\": \"Настройки\",\n  \"home_ve"
  },
  {
    "path": "Module/webroot/lang/sr.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/sv.json",
    "chars": 2985,
    "preview": "{\n  \"nav_home\": \"Home\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Update\",\n  \"nav_settings\": \"Settings\",\n  \"home_version\": "
  },
  {
    "path": "Module/webroot/lang/tr.json",
    "chars": 3149,
    "preview": "{\n  \"nav_home\": \"Ana Sayfa\",\n  \"nav_menu\": \"Menü\",\n  \"nav_update\": \"Güncelle\",\n  \"nav_settings\": \"Ayarlar\",\n  \"home_vers"
  },
  {
    "path": "Module/webroot/lang/uk.json",
    "chars": 3204,
    "preview": "{\n  \"nav_home\": \"Головна\",\n  \"nav_menu\": \"Меню\",\n  \"nav_update\": \"Оновлення\",\n  \"nav_settings\": \"Налаштування\",\n  \"home_"
  },
  {
    "path": "Module/webroot/lang/vi.json",
    "chars": 3107,
    "preview": "{\n  \"nav_home\": \"Trang chủ\",\n  \"nav_menu\": \"Menu\",\n  \"nav_update\": \"Cập nhật\",\n  \"nav_settings\": \"Cài đặt\",\n  \"home_vers"
  },
  {
    "path": "Module/webroot/lang/zh.json",
    "chars": 2407,
    "preview": "{\n  \"nav_home\": \"主页\",\n  \"nav_menu\": \"菜单\",\n  \"nav_update\": \"更新\",\n  \"nav_settings\": \"设置\",\n  \"home_version\": \"模块版本\",\n  \"hom"
  },
  {
    "path": "README.md",
    "chars": 2535,
    "preview": "# YuriKey\r\n![Artifacts](./doc/banner.webp)\r\n\r\n\r\n[![Telegram](https://img.shields.io/badge/Follow-Telegram-blue.svg?logo="
  },
  {
    "path": "changelog.md",
    "chars": 213,
    "preview": "***✨ v3.0.5 – Version Changes:***\n\n-> perf(pif): Enhance pif detection\n\n-> Update language string\n\n-> Various performanc"
  },
  {
    "path": "config.json",
    "chars": 521469,
    "preview": "{\"configVersion\":93,\"detailLog\":false,\"errorOnlyLog\":false,\"maxLogSize\":256,\"forceMountData\":true,\"disableActivityLaunch"
  },
  {
    "path": "doc/README_ja-JP.md",
    "chars": 2207,
    "preview": "# YuriKey\n![Artifacts](/doc/banner.webp)\n\n\n[![Telegram](https://img.shields.io/badge/Follow-Telegram-blue.svg?logo=teleg"
  },
  {
    "path": "key",
    "chars": 17013,
    "preview": "PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxBbmRyb2lkQXR0ZXN0YXRpb24+CjxOdW1iZXJPZktleWJveGVzPjE8L051bWJlck9mS2V5Ym94ZXM+CjxLZXlib3gg"
  },
  {
    "path": "update.json",
    "chars": 238,
    "preview": "{\n  \"version\": \"3.0.5\",\n  \"versionCode\": 305,\n  \"zipUrl\": \"https://github.com/Yurii0307/yurikey/releases/download/v3.0.5"
  }
]

// ... and 5 more files (download for full content)

About this extraction

This page contains the full source code of the YurikeyDev/yurikey GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 89 files (783.2 KB), approximately 229.3k tokens, and a symbol index with 58 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!