Full Code of Team-xManager/xManager for AI

main 7e8476815c84 cached
50 files
1.2 MB
321.9k tokens
201 symbols
1 requests
Download .txt
Showing preview only (1,273K chars total). Download the full file or copy to clipboard to get everything.
Repository: Team-xManager/xManager
Branch: main
Commit: 7e8476815c84
Files: 50
Total size: 1.2 MB

Directory structure:
gitextract_xj3b05el/

├── .github/
│   ├── FUNDING.yml
│   └── ISSUE_TEMPLATE/
│       ├── bug_report.yml
│       └── idea.yml
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── app/
│   ├── build.gradle
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           ├── java/
│           │   └── com/
│           │       └── xc3fff0e/
│           │           └── xmanager/
│           │               ├── FileUtil.java
│           │               ├── MainActivity.java
│           │               ├── RequestNetwork.java
│           │               ├── RequestNetworkController.java
│           │               ├── SketchwareUtil.java
│           │               ├── SplashActivity.java
│           │               ├── xManager.java
│           │               └── xManagerLogger.java
│           └── res/
│               ├── anim/
│               │   ├── slide_in_left.xml
│               │   ├── slide_in_right.xml
│               │   ├── slide_out_left.xml
│               │   └── slide_out_right.xml
│               ├── drawable/
│               │   ├── background.xml
│               │   ├── divider.xml
│               │   ├── light_blue.xml
│               │   ├── light_cyan.xml
│               │   ├── light_green.xml
│               │   ├── light_orange.xml
│               │   ├── light_pink.xml
│               │   ├── light_purple.xml
│               │   ├── light_red.xml
│               │   ├── progress_bar.xml
│               │   ├── progress_dialog.xml
│               │   ├── scrollbar_vertical_thumb.xml
│               │   ├── state_off.xml
│               │   ├── state_on.xml
│               │   ├── thumb.xml
│               │   └── track.xml
│               ├── layout/
│               │   ├── list_changelogs.xml
│               │   ├── list_versions.xml
│               │   ├── main.xml
│               │   └── splash.xml
│               ├── mipmap-anydpi-v26/
│               │   ├── xmanager.xml
│               │   └── xmanager_round.xml
│               └── values/
│                   ├── colors.xml
│                   ├── icon.xml
│                   ├── strings.xml
│                   └── styles.xml
├── build.gradle
├── gradle.properties
└── settings.gradle

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

================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: xC3FFF0E
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']


================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.yml
================================================
name: ❌ Bug report
description: Report errors or unexpected behavior
labels: ❌ bug
body:
- type: checkboxes
  attributes:
      label: 🧐 Have you fully read the README and viewed similar issues?
      description: Please read the <a href="https://github.com/xManager-v2/xManager-Spotify/blob/main/README.md">README</a>. Also check the open and closed <a href="https://github.com/xManager-v2/xManager-Spotify/issues">issue</a> because your issue may have already been fixed.
      options:
        - label: I have read the README
          required: true
        - label: I have checked older issues, open and closed
          required: true
        - label: I did a clean install of xManager
          required: true
        - label: This is an xManager app issue -- NOT a Spotify mod issue
          required: true
- type: markdown
  attributes:
    value: "###"    
- type: textarea
  attributes:
    label: ℹ Information
    description: |
      - Device Model: e.g. <kbd>Pixel 7 Pro</kbd> 
      - Android Version: e.g. <kbd>Android 13</kbd>
      - ROM Version: e.g. <kbd>stock</kbd>
        - If using unmodified device, list as `stock`. If using a custom ROM, list ROM used, e.g. `LineageOS 20`
      - xManager Version: e.g. <kbd>4.1</kbd>
        - Open xManager, in the bottom section, click <kbd>About ℹ</kbd>
        - Report version # at top of screen
    placeholder: |
        - Device Model:  
        - Android Version:  
        - ROM Version:  
        - xManager Version:  
    value: |
        - Device Model:  
        - Android Version:  
        - ROM Version:  
        - xManager Version:  
    render: markdown   
  validations:
    required: true    
- type: textarea
  attributes:
    label: 📝 Description
    description: List steps to reproduce the error and details on what happens and what you expected to happen.
    value: |
      1.
      2.
      3.
      ...
  validations:
    required: true
- type: textarea
  attributes:
    label: 📸 Screenshots
    description: Place any screenshots of the issue here if needed
  validations:
    required: false    


================================================
FILE: .github/ISSUE_TEMPLATE/idea.yml
================================================
name: 💡 Suggest an idea
description: Suggest a new feature or improvement
labels: 💡 enhancement
body:
- type: textarea
  attributes:
    label: Description of the new feature / enhancement
    description: A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable)
    value: |
        - 1
        - 2
        - 3
  validations:
    required: true
- type: textarea
  attributes:
    label: 📸 Screenshots
    description: Place any screenshots of the issue here if needed
  validations:
    required: false


================================================
FILE: CODE_OF_CONDUCT.md
================================================
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
  and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
  overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
  advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
  address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
  professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
xc3fff0e@gmail.com.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior,  harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.


================================================
FILE: CONTRIBUTING.md
================================================
**CODE CHANGE:** Pull request should be done on the **"Developer"** branch.  

**TRANSLATION CHANGE/UPDATE:** Pull request should be done on the **"Developer"** branch. The translations can be found at  `res/values/strings.xml`.  

**SUBMIT TRANSLATIONS:** Pull request should be done on the **"Developer"** branch. Please follow the `<--DEFAULT LANGUAGE-->` format that can be found at `res/values/strings.xml`.  


================================================
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: README.md
================================================
<p align="center">
  <a href="https://www.xmanagerapp.com/"><img width="200" src="https://i.ibb.co/64bJncy/xmanger.gif">
</p>

### <p align="center">AD-FREE | NEW FEATURES | FREEDOM</p>

<div align="center">

| **Status** | <img src="https://img.shields.io/github/release-date/xManager-App/xManager?label=UPDATED%20SINCE&style=for-the-badge"></br><img src="https://img.shields.io/github/v/tag/xManager-App/xManager?label=LATEST%20VERSION&style=for-the-badge"> |
| :-------------: | :-------------: |
| **Download Milestone** | **<img src="https://img.shields.io/github/downloads/xManager-App/xManager/total?label=DAWN%20(ACTIVE)&style=for-the-badge"></br><img src="https://img.shields.io/badge/OMNIBUS%20(SHUTDOWN)-7.3M-red.svg?style=for-the-badge"></br><img src="https://img.shields.io/badge/ORIGINS%20(SHUTDOWN)-1.1M-red.svg?style=for-the-badge"></br><img src="https://img.shields.io/badge/LEGACY%20(SHUTDOWN)-400K-red.svg?style=for-the-badge">** |
| **Miscellaneous** | **<a href="https://github.com/xManager-v2/xManager/wiki/xManager-Roadmaps,-Changelogs-and-Milestones"><img src="https://img.shields.io/badge/Roadmaps%20&%20Changelogs-Click%20Here-white.svg?style=for-the-badge"/></br><a href="https://www.virustotal.com/gui/file/15d39158448f02704c151cf0632486cf9b0eeb8e3ddabfd0250d0a5c3c10f0ae/detection"><img src="https://img.shields.io/badge/VirusTotal%20Analysis-Click%20Here-blue.svg?style=for-the-badge"/>** |
| **Trust Seal** | **<a href="https://monitor2025.sucuri.net/m/verify/?r=ccceaab79b44b4835a6a85d916bf5613b9c98436db"><img src="https://i.ibb.co/vLvdNCR/trustseal.gif"/>** |
| **Donation/Sponsor** | **[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/I3I0IPJ3W)** |

---
  
| **Key Features** | **Descriptions** |
| ------------- | ------------- |
| **All-in-One Place** | Upgrade or Downgrade Anytime & Anywhere |
| **Manager Tools** | Uninstall, Open Settings, Clean Cached Data & Launch App. |
| **Experimentals** | Some A/B Features Are Available to Use |
| **Friendly Interface** | Neat & Slick Minimalist UI |
| **Less Storage** | Lightweight Manager |
| **Android** | Easy to Use |
  
---

| **Key Details** | **More Informations** |
  | :-------------: | ------------- |
| **How It Works** | Depending on what variant or version the user wants to install, the manager will directly fetch that selected URL data. Once completed, the selected file can be installed. All links are available publicly.</br></br>IF, you know what it means, then you know what it is. |
| **About The Project** | The successor to our previous manager app that was released way back in 2020 was developed by xC3FFF0E with the help of Sherlock Holmes.</br></br>We decided to create an app where people can easily manage and install all versions of the music streaming app from their devices.</br></br>We aim to make a simple yet useful manager app for everyone's convenience. On this second version of the manager app, we added a couple of features, such as the ability to uninstall, open the app's settings directly, clear the offline cached data, and launch the app. We hope that all users find these newly added features very useful. |

---

| **Databases** | **Shutdown Date** | **More Informations** |
| :-------------: | :-------------: | ------------- |
| **Legacy** | 04/01/22 | Legacy databases are now officially shut down. Update to the latest version of xManager (v3.2) to continue using the app. These are the databases used by our old manager up until xManager v1-v3.1.</br></br>These databases are very old and deprecated at the same time. That is why we decided to take them down. |
| **Origins** | 02/24/23 | Origins databases are now officially shut down. Update to the latest version of xManager (v4.5) to continue using the app.</br></br>These are the databases used by our old manager up until xManager v3.4-v4.4. |

---


| **For Contributors** | **More Informations** |
| ------------- | ------------- |
| **Code Change** | Pull requests should be done on the **"Developer"** branch. |
| **Translation Change/Update** | Pull requests should be done on the **"Developer"** branch. The translations can be found at  `resource/values/strings.xml`. |
| **Submit Translations** | Pull requests should be done on the **"Developer"** branch. Please follow the `<--DEFAULT LANGUAGE-->` format that can be found at `resource/values/strings.xml`. |

---

| Important Notes |
| ------------- |
| xManager was created using [Sketchware Pro](https://github.com/Sketchware-Pro/Sketchware-Pro) for Android.  
xManager uses [Sketch2Any](https://play.google.com/store/apps/details?id=com.sketch2any) to convert the project to Android Studio.  
**No trackers, no spyware, no keyloggers, or any other malicious codes** are added to the source code. What you see in the source code is what's inside the build app. You can extract the app for yourself. The source code that can be seen here is what's inside the exported zip file for Android Studio. There are some instances where the source code is unbuildable. Some parts might be missing and such due to limitations. Users might experience downtime and maintenance when using the manager app since we are manually changing the hosting links of each file from time to time. xManager is completely free, and we do not get any commissions from it **(rewarded ads are optional and can be disabled in the settings)**. We will support the app as long as we can. Internal improvements may not be guaranteed. |

---

| **The Team**  | **Names/Alias** |
| ------------- | ------------- |
| **Developer** | xC3FFF0E |

---

| **Manager Translators** | **Names/Alias** |
| ------------- | ------------- |
| **Arabic Translation** | Yazan Kasem \| lnfinitesimal |
| **Bengali Translation** | 0V3R5!9H7 \| ssabit |
| **Chinese - Simplified Translation** | Gent G \| Softland99 \| zelixdxin |
| **French Translation** | The Punisher \| Luxchar \| xerta555 \| GlThibault |
| **Greek Translation** | Walter's Cousin #CAF |
| **Indonesian Translation** | Mc.J \| Deraidos \| RelvinArsenio |
| **Italian Translation** | albertopasqualetto \| Marco \| gdonisi |
| **Portuguese - Brazil Translation** | Loui's™ \| Zilberto Junior |
| **Portuguese - Portugal Translation** | Androide323 |
| **Romanian Translation**              | NACH \| f9branza \| StephenTheMoldovan |
| **Russian Translation**               | Pegioner \| vanja-san |
| **Slovenian Translation**             | MysticX |
| **Spanish - Spain Translation**       | PetFix \| Snapdragon845GMS \| Zkyclad \| c-franco |
| **Turkish Translation**               | Berkay \| mikropsoft |
| **Ukrainian Translation**             | NIKITA🇺🇦[beryllium] #PocoForEver |
| **Korean Translation**                | Apious \| Annyeong-One |
| **Dutch Translation**                 | Kevin |
| **Vietnamese Translation**            | minhtamvn \| tungnnnt17 |
| **German Translation**                | smokedzn \| 4NDROM3DA |
| **Persian Translation**               | ohshahab |
| **Hebrew Translation**                | GreenArmy18 |
| **Polish Translation**                | dearminder |
| **English Translation**               | Dyras \| TheChilledBuffalo |
| **Slovak Translation**                | KaldonM |
| **Swedish Translation**               | rexobo |
| **Finnish Translation**               | AfraidOfTheBigBlack \| Lilko1ra \| KasperiP |
| **Czech Translation**                 | rex2630 |
| **Chinese (Traditional) Translation** | cracky5322 \| TragicLifeHu |
| **Bulgarian Translation** | meorro \| martinov83 |
| **Serbian (Cyrillic) Translation** | nexiRS \| momcilovicluka |
| **Serbian (Latin) Translation** | nexiRS \| momcilovicluka |
| **Catalan Translation** | tomaquet18 |
| **Latvian Translation** | ClientSiderz \| gatesbydude |
| **Sinhala Translation** | Psycho649 |
| **Hungarian Translation** | gurtnyi |
| **Japanese Translation** | reindex-ot |
| **Nepali Translation** | iamkishansharma |
| **Tamil Translation** | jothi-prasath |
| **Thai Translation** | MaxNjtk |
| **Marathi Translation** | 5eeTheaveragecoder |
| **Malayalam Translation** | TheChilledBuffalo |
| **Croatian Translation** | mrki1111 \| momcilovicluka |
| **Hindi Translation** | askadityapandey |
| **Mongolian Translation** | Madvellony |
| **Armenian Translation** | AAVVIronAlex |

</div>

### <p align="center">THANKS TO ALL CONTRIBUTORS! ❤️</p>


================================================
FILE: app/build.gradle
================================================
plugins {
	id 'com.android.application'
}

android {
	compileSdkVersion 28
	
	useLibrary 'org.apache.http.legacy'
	
	defaultConfig {
		applicationId "com.xc3fff0e.xmanager"
		minSdkVersion 21
		targetSdkVersion 28
		versionCode 230224
		versionName "5.9"
	}
	
	buildTypes {
		release {
			minifyEnabled false
			proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
		}
	}
}

dependencies {
	implementation fileTree(dir: 'libs', include: ['*.jar'])
	implementation 'androidx.appcompat:appcompat:1.2.0'
	implementation 'com.google.android.material:material:1.4.0'
	implementation 'com.google.android.gms:play-services-ads:20.1.0'
	implementation 'com.github.bumptech.glide:glide:4.12.0'
	implementation 'com.google.code.gson:gson:2.8.7'
	implementation 'com.squareup.okhttp3:okhttp:3.9.1'
}


================================================
FILE: app/src/main/AndroidManifest.xml
================================================
<manifest
	xmlns:android="http://schemas.android.com/apk/res/android"
	package="com.xc3fff0e.xmanager">
	<uses-permission android:name="android.permission.INTERNET" />
	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
	<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
	<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
	<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
	<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
	<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
	<uses-permission android:name="android:name=com.google.android.gms.permission.AD_ID" />
	<application
		android:allowBackup="true"
		android:icon="@mipmap/xmanager"
		android:roundIcon="@mipmap/xmanager_round"
		android:label="@string/app_name"
		android:name=".xManager"
		android:requestLegacyExternalStorage="true"
		android:usesCleartextTraffic="true"
		android:theme="@style/Theme_Origins">
		<activity
			android:name=".MainActivity"
            android:exported="true"
			android:configChanges="orientation|screenSize|keyboardHidden|smallestScreenSize|screenLayout"
			android:hardwareAccelerated="true"
			android:supportsPictureInPicture="true"
			android:windowSoftInputMode="stateHidden" />
		<activity
			android:name=".SplashActivity"
			android:configChanges="orientation|screenSize|keyboardHidden|smallestScreenSize|screenLayout"
			android:hardwareAccelerated="true"
			android:supportsPictureInPicture="true"
			android:windowSoftInputMode="stateHidden">
			<intent-filter>
				<action android:name="android.intent.action.MAIN" />
				<category android:name="android.intent.category.LAUNCHER" />
			</intent-filter>
		</activity>
		<activity
			android:name=".DebugActivity"
            android:exported="true"
			android:screenOrientation="portrait" />
		<activity
			android:name="com.google.android.gms.ads.AdActivity"
            android:exported="true"
			android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
			android:theme="@android:style/Theme.Translucent" />
		<meta-data
			android:name="com.google.android.gms.version"
			android:value="@integer/google_play_services_version" />
		<uses-library
			android:name="org.apache.http.legacy"
			android:required="false" />
	</application>
</manifest>


================================================
FILE: app/src/main/java/com/xc3fff0e/xmanager/FileUtil.java
================================================
package com.xc3fff0e.xmanager;

import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.ColorMatrix;
import android.graphics.ColorMatrixColorFilter;
import android.graphics.LightingColorFilter;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.RectF;
import android.media.ExifInterface;
import android.net.Uri;
import android.os.Environment;
import android.provider.DocumentsContract;
import android.provider.MediaStore;
import android.text.TextUtils;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.net.URLDecoder;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;

public class FileUtil {

    private static void createNewFile(String path) {
        int lastSep = path.lastIndexOf(File.separator);
        if (lastSep > 0) {
            String dirPath = path.substring(0, lastSep);
            makeDir(dirPath);
        }

        File file = new File(path);

        try {
            if (!file.exists()) file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String readFile(String path) {
        createNewFile(path);

        StringBuilder sb = new StringBuilder();
        FileReader fr = null;
        try {
            fr = new FileReader(new File(path));

            char[] buff = new char[1024];
            int length = 0;

            while ((length = fr.read(buff)) > 0) {
                sb.append(new String(buff, 0, length));
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (fr != null) {
                try {
                    fr.close();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }

        return sb.toString();
    }

    public static void writeFile(String path, String str) {
        createNewFile(path);
        FileWriter fileWriter = null;

        try {
            fileWriter = new FileWriter(new File(path), false);
            fileWriter.write(str);
            fileWriter.flush();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (fileWriter != null)
                    fileWriter.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }

    public static void copyFile(String sourcePath, String destPath) {
        if (!isExistFile(sourcePath)) return;
        createNewFile(destPath);

        FileInputStream fis = null;
        FileOutputStream fos = null;

        try {
            fis = new FileInputStream(sourcePath);
            fos = new FileOutputStream(destPath, false);

            byte[] buff = new byte[1024];
            int length = 0;

            while ((length = fis.read(buff)) > 0) {
                fos.write(buff, 0, length);
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (fis != null) {
                try {
                    fis.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            if (fos != null) {
                try {
                    fos.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }

    public static void copyDir(String oldPath, String newPath) {
        File oldFile = new File(oldPath);
        File[] files = oldFile.listFiles();
        File newFile = new File(newPath);
        if (!newFile.exists()) {
            newFile.mkdirs();
        }
        for (File file : files) {
            if (file.isFile()) {
                copyFile(file.getPath(), newPath + "/" + file.getName());
            } else if (file.isDirectory()) {
                copyDir(file.getPath(), newPath + "/" + file.getName());
            }
        }
    }

    public static void moveFile(String sourcePath, String destPath) {
        copyFile(sourcePath, destPath);
        deleteFile(sourcePath);
    }

    public static void deleteFile(String path) {
        File file = new File(path);

        if (!file.exists()) return;

        if (file.isFile()) {
            file.delete();
            return;
        }

        File[] fileArr = file.listFiles();

        if (fileArr != null) {
            for (File subFile : fileArr) {
                if (subFile.isDirectory()) {
                    deleteFile(subFile.getAbsolutePath());
                }

                if (subFile.isFile()) {
                    subFile.delete();
                }
            }
        }

        file.delete();
    }

    public static boolean isExistFile(String path) {
        File file = new File(path);
        return file.exists();
    }

    public static void makeDir(String path) {
        if (!isExistFile(path)) {
            File file = new File(path);
            file.mkdirs();
        }
    }

    public static void listDir(String path, ArrayList<String> list) {
        File dir = new File(path);
        if (!dir.exists() || dir.isFile()) return;

        File[] listFiles = dir.listFiles();
        if (listFiles == null || listFiles.length <= 0) return;

        if (list == null) return;
        list.clear();
        for (File file : listFiles) {
            list.add(file.getAbsolutePath());
        }
    }

    public static boolean isDirectory(String path) {
        if (!isExistFile(path)) return false;
        return new File(path).isDirectory();
    }

    public static boolean isFile(String path) {
        if (!isExistFile(path)) return false;
        return new File(path).isFile();
    }

    public static long getFileLength(String path) {
        if (!isExistFile(path)) return 0;
        return new File(path).length();
    }

    public static String getExternalStorageDir() {
        return Environment.getExternalStorageDirectory().getAbsolutePath();
    }

    public static String getPackageDataDir(Context context) {
        return context.getExternalFilesDir(null).getAbsolutePath();
    }

    public static String getPublicDir(String type) {
        return Environment.getExternalStoragePublicDirectory(type).getAbsolutePath();
    }

    public static String convertUriToFilePath(final Context context, final Uri uri) {
        String path = null;
        if (DocumentsContract.isDocumentUri(context, uri)) {
            if (isExternalStorageDocument(uri)) {
                final String docId = DocumentsContract.getDocumentId(uri);
                final String[] split = docId.split(":");
                final String type = split[0];

                if ("primary".equalsIgnoreCase(type)) {
                    path = Environment.getExternalStorageDirectory() + "/" + split[1];
                }
            } else if (isDownloadsDocument(uri)) {
                final String id = DocumentsContract.getDocumentId(uri);

                if (!TextUtils.isEmpty(id)) {
                    if (id.startsWith("raw:")) {
                        return id.replaceFirst("raw:", "");
                    }
                }

                final Uri contentUri = ContentUris
                        .withAppendedId(Uri.parse("content://downloads/public_downloads"), Long.valueOf(id));

                path = getDataColumn(context, contentUri, null, null);
            } else if (isMediaDocument(uri)) {
                final String docId = DocumentsContract.getDocumentId(uri);
                final String[] split = docId.split(":");
                final String type = split[0];

                Uri contentUri = null;
                if ("image".equals(type)) {
                    contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
                } else if ("video".equals(type)) {
                    contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
                } else if ("audio".equals(type)) {
                    contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
                }

                final String selection = "_id=?";
                final String[] selectionArgs = new String[]{
                        split[1]
                };

                path = getDataColumn(context, contentUri, selection, selectionArgs);
            }
        } else if (ContentResolver.SCHEME_CONTENT.equalsIgnoreCase(uri.getScheme())) {
            path = getDataColumn(context, uri, null, null);
        } else if (ContentResolver.SCHEME_FILE.equalsIgnoreCase(uri.getScheme())) {
            path = uri.getPath();
        }

        if (path != null) {
            try {
                return URLDecoder.decode(path, "UTF-8");
            } catch(Exception e) {
                return null;
            }
        }
        return null;
    }

    private static String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) {
        final String column = MediaStore.Images.Media.DATA;
        final String[] projection = {
                column
        };

        try (Cursor cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null)) {
            if (cursor != null && cursor.moveToFirst()) {
                final int column_index = cursor.getColumnIndexOrThrow(column);
                return cursor.getString(column_index);
            }
        } catch (Exception e) {

        }
        return null;
    }


    private static boolean isExternalStorageDocument(Uri uri) {
        return "com.android.externalstorage.documents".equals(uri.getAuthority());
    }

    private static boolean isDownloadsDocument(Uri uri) {
        return "com.android.providers.downloads.documents".equals(uri.getAuthority());
    }

    private static boolean isMediaDocument(Uri uri) {
        return "com.android.providers.media.documents".equals(uri.getAuthority());
    }

    private static void saveBitmap(Bitmap bitmap, String destPath) {
        FileUtil.createNewFile(destPath);
        try (FileOutputStream out = new FileOutputStream(new File(destPath))) {
            bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static Bitmap getScaledBitmap(String path, int max) {
        Bitmap src = BitmapFactory.decodeFile(path);

        int width = src.getWidth();
        int height = src.getHeight();
        float rate = 0.0f;

        if (width > height) {
            rate = max / (float) width;
            height = (int) (height * rate);
            width = max;
        } else {
            rate = max / (float) height;
            width = (int) (width * rate);
            height = max;
        }

        return Bitmap.createScaledBitmap(src, width, height, true);
    }

    public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {
        final int width = options.outWidth;
        final int height = options.outHeight;
        int inSampleSize = 1;

        if (height > reqHeight || width > reqWidth) {
            final int halfHeight = height / 2;
            final int halfWidth = width / 2;

            while ((halfHeight / inSampleSize) >= reqHeight && (halfWidth / inSampleSize) >= reqWidth) {
                inSampleSize *= 2;
            }
        }

        return inSampleSize;
    }

    public static Bitmap decodeSampleBitmapFromPath(String path, int reqWidth, int reqHeight) {
        final BitmapFactory.Options options = new BitmapFactory.Options();
        options.inJustDecodeBounds = true;
        BitmapFactory.decodeFile(path, options);

        options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);

        options.inJustDecodeBounds = false;
        return BitmapFactory.decodeFile(path, options);
    }

    public static void resizeBitmapFileRetainRatio(String fromPath, String destPath, int max) {
        if (!isExistFile(fromPath)) return;
        Bitmap bitmap = getScaledBitmap(fromPath, max);
        saveBitmap(bitmap, destPath);
    }

    public static void resizeBitmapFileToSquare(String fromPath, String destPath, int max) {
        if (!isExistFile(fromPath)) return;
        Bitmap src = BitmapFactory.decodeFile(fromPath);
        Bitmap bitmap = Bitmap.createScaledBitmap(src, max, max, true);
        saveBitmap(bitmap, destPath);
    }

    public static void resizeBitmapFileToCircle(String fromPath, String destPath) {
        if (!isExistFile(fromPath)) return;
        Bitmap src = BitmapFactory.decodeFile(fromPath);
        Bitmap bitmap = Bitmap.createBitmap(src.getWidth(),
                src.getHeight(), Bitmap.Config.ARGB_8888);
        Canvas canvas = new Canvas(bitmap);

        final int color = 0xff424242;
        final Paint paint = new Paint();
        final Rect rect = new Rect(0, 0, src.getWidth(), src.getHeight());

        paint.setAntiAlias(true);
        canvas.drawARGB(0, 0, 0, 0);
        paint.setColor(color);
        canvas.drawCircle(src.getWidth() / 2, src.getHeight() / 2,
                src.getWidth() / 2, paint);
        paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
        canvas.drawBitmap(src, rect, rect, paint);

        saveBitmap(bitmap, destPath);
    }

    public static void resizeBitmapFileWithRoundedBorder(String fromPath, String destPath, int pixels) {
        if (!isExistFile(fromPath)) return;
        Bitmap src = BitmapFactory.decodeFile(fromPath);
        Bitmap bitmap = Bitmap.createBitmap(src.getWidth(), src
                .getHeight(), Bitmap.Config.ARGB_8888);
        Canvas canvas = new Canvas(bitmap);

        final int color = 0xff424242;
        final Paint paint = new Paint();
        final Rect rect = new Rect(0, 0, src.getWidth(), src.getHeight());
        final RectF rectF = new RectF(rect);
        final float roundPx = pixels;

        paint.setAntiAlias(true);
        canvas.drawARGB(0, 0, 0, 0);
        paint.setColor(color);
        canvas.drawRoundRect(rectF, roundPx, roundPx, paint);

        paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
        canvas.drawBitmap(src, rect, rect, paint);

        saveBitmap(bitmap, destPath);
    }

    public static void cropBitmapFileFromCenter(String fromPath, String destPath, int w, int h) {
        if (!isExistFile(fromPath)) return;
        Bitmap src = BitmapFactory.decodeFile(fromPath);

        int width = src.getWidth();
        int height = src.getHeight();

        if (width < w && height < h) return;

        int x = 0;
        int y = 0;

        if (width > w) x = (width - w) / 2;

        if (height > h) y = (height - h) / 2;

        int cw = w;
        int ch = h;

        if (w > width) cw = width;

        if (h > height) ch = height;

        Bitmap bitmap = Bitmap.createBitmap(src, x, y, cw, ch);
        saveBitmap(bitmap, destPath);
    }

    public static void rotateBitmapFile(String fromPath, String destPath, float angle) {
        if (!isExistFile(fromPath)) return;
        Bitmap src = BitmapFactory.decodeFile(fromPath);
        Matrix matrix = new Matrix();
        matrix.postRotate(angle);
        Bitmap bitmap = Bitmap.createBitmap(src, 0, 0, src.getWidth(), src.getHeight(), matrix, true);
        saveBitmap(bitmap, destPath);
    }

    public static void scaleBitmapFile(String fromPath, String destPath, float x, float y) {
        if (!isExistFile(fromPath)) return;
        Bitmap src = BitmapFactory.decodeFile(fromPath);
        Matrix matrix = new Matrix();
        matrix.postScale(x, y);

        int w = src.getWidth();
        int h = src.getHeight();

        Bitmap bitmap = Bitmap.createBitmap(src, 0, 0, w, h, matrix, true);
        saveBitmap(bitmap, destPath);
    }

    public static void skewBitmapFile(String fromPath, String destPath, float x, float y) {
        if (!isExistFile(fromPath)) return;
        Bitmap src = BitmapFactory.decodeFile(fromPath);
        Matrix matrix = new Matrix();
        matrix.postSkew(x, y);

        int w = src.getWidth();
        int h = src.getHeight();

        Bitmap bitmap = Bitmap.createBitmap(src, 0, 0, w, h, matrix, true);
        saveBitmap(bitmap, destPath);
    }

    public static void setBitmapFileColorFilter(String fromPath, String destPath, int color) {
        if (!isExistFile(fromPath)) return;
        Bitmap src = BitmapFactory.decodeFile(fromPath);
        Bitmap bitmap = Bitmap.createBitmap(src, 0, 0,
                src.getWidth() - 1, src.getHeight() - 1);
        Paint p = new Paint();
        ColorFilter filter = new LightingColorFilter(color, 1);
        p.setColorFilter(filter);
        Canvas canvas = new Canvas(bitmap);
        canvas.drawBitmap(bitmap, 0, 0, p);
        saveBitmap(bitmap, destPath);
    }

    public static void setBitmapFileBrightness(String fromPath, String destPath, float brightness) {
        if (!isExistFile(fromPath)) return;
        Bitmap src = BitmapFactory.decodeFile(fromPath);
        ColorMatrix cm = new ColorMatrix(new float[]
                {
                        1, 0, 0, 0, brightness,
                        0, 1, 0, 0, brightness,
                        0, 0, 1, 0, brightness,
                        0, 0, 0, 1, 0
                });

        Bitmap bitmap = Bitmap.createBitmap(src.getWidth(), src.getHeight(), src.getConfig());
        Canvas canvas = new Canvas(bitmap);
        Paint paint = new Paint();
        paint.setColorFilter(new ColorMatrixColorFilter(cm));
        canvas.drawBitmap(src, 0, 0, paint);
        saveBitmap(bitmap, destPath);
    }

    public static void setBitmapFileContrast(String fromPath, String destPath, float contrast) {
        if (!isExistFile(fromPath)) return;
        Bitmap src = BitmapFactory.decodeFile(fromPath);
        ColorMatrix cm = new ColorMatrix(new float[]
                {
                        contrast, 0, 0, 0, 0,
                        0, contrast, 0, 0, 0,
                        0, 0, contrast, 0, 0,
                        0, 0, 0, 1, 0
                });

        Bitmap bitmap = Bitmap.createBitmap(src.getWidth(), src.getHeight(), src.getConfig());
        Canvas canvas = new Canvas(bitmap);
        Paint paint = new Paint();
        paint.setColorFilter(new ColorMatrixColorFilter(cm));
        canvas.drawBitmap(src, 0, 0, paint);

        saveBitmap(bitmap, destPath);
    }

    public static int getJpegRotate(String filePath) {
        int rotate = 0;
        try {
            ExifInterface exif = new ExifInterface(filePath);
            int iOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, -1);

            switch (iOrientation) {
                case ExifInterface.ORIENTATION_ROTATE_90:
                    rotate = 90;
                    break;

                case ExifInterface.ORIENTATION_ROTATE_180:
                    rotate = 180;
                    break;

                case ExifInterface.ORIENTATION_ROTATE_270:
                    rotate = 270;
                    break;
            }
        } catch (IOException e) {
            return 0;
        }

        return rotate;
    }

    public static File createNewPictureFile(Context context) {
        SimpleDateFormat date = new SimpleDateFormat("yyyyMMdd_HHmmss");
        String fileName = date.format(new Date()) + ".jpg";
        return new File(context.getExternalFilesDir(Environment.DIRECTORY_DCIM).getAbsolutePath() + File.separator + fileName);
    }
}


================================================
FILE: app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java
================================================
package com.xc3fff0e.xmanager;

import com.xc3fff0e.xmanager.SplashActivity;
import android.Manifest;
import android.animation.*;
import android.app.*;
import android.app.Activity;
import android.content.*;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.res.*;
import android.graphics.*;
import android.graphics.Typeface;
import android.graphics.drawable.*;
import android.media.*;
import android.net.*;
import android.os.*;
import android.text.*;
import android.text.style.*;
import android.util.*;
import android.view.*;
import android.view.View;
import android.view.View.*;
import android.view.animation.*;
import android.webkit.*;
import android.widget.*;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ScrollView;
import android.widget.Spinner;
import android.widget.Switch;
import android.widget.TextView;
import androidx.annotation.*;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout.OnRefreshListener;
import com.google.android.ads.consent.*;
import com.google.android.gms.ads.MobileAds;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.wuyr.rippleanimation.*;
import java.io.*;
import java.text.*;
import java.text.DecimalFormat;
import java.util.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Timer;
import java.util.TimerTask;
import java.util.regex.*;
import org.json.*;
import static android.os.Build.VERSION.SDK_INT;
import androidx.appcompat.app.AlertDialog;
import androidx.core.widget.NestedScrollView;
import androidx.core.content.ContextCompat;
import androidx.core.app.ActivityCompat;
import android.provider.Settings;
import androidx.annotation.NonNull;
import com.google.android.gms.ads.*;
import com.google.android.gms.ads.AdError;
import com.google.android.gms.ads.MobileAds;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.LoadAdError;
import com.google.android.material.snackbar.Snackbar;
import androidx.browser.customtabs.CustomTabsIntent;
import com.google.android.gms.ads.rewarded.RewardItem;
import com.google.android.gms.ads.rewarded.RewardedAd;
import com.google.android.gms.ads.interstitial.InterstitialAd;
import com.google.android.gms.ads.FullScreenContentCallback;
import com.google.android.gms.ads.OnUserEarnedRewardListener;
import com.google.android.gms.ads.initialization.InitializationStatus;
import com.google.android.gms.ads.rewarded.RewardedAdLoadCallback;
import com.google.android.gms.ads.interstitial.InterstitialAdLoadCallback;
import com.google.android.gms.ads.initialization.OnInitializationCompleteListener;
import com.google.android.ump.ConsentForm;
import com.google.android.ump.ConsentInformation;
import com.google.android.ump.ConsentRequestParameters;
import com.google.android.ump.FormError;
import com.google.android.ump.UserMessagingPlatform;

public class MainActivity extends AppCompatActivity {
	
     private RewardedAd mRewardedAd;
	private Timer _timer = new Timer();
	
	private double CHECK = 0;
	private double COUNTER = 0;
	private String download_ready_0 = "";
	private String download_ready_desc_0 = "";
	private String download_0 = "";
	private String cancel_0 = "";
	private double CLOSER_1 = 0;
	private double CLOSER_2 = 0;
	private String Installed_Checker = "";
	private String Installed_Checker_Cloned = "";
	private HashMap<String, Object> Datas = new HashMap<>();
	private double Current_Version = 0;
	private double Latest_Version = 0;
	private double CLICKER_1 = 0;
	private double CLICKER_2 = 0;
	private double CLICKER_3 = 0;
	private  AlertDialog AlertDialog;
	private double CLICKER_4 = 0;
	private String Stock_Patched = "";
	private String Amoled_Patched = "";
	private String Stock_Cloned_Patched = "";
	private String Amoled_Cloned_Patched = "";
	private String Patched_Changelogs = "";
	ConsentInformation consentInformation;
	ConsentForm consentForm;
	private String Other_Patched = "";
	
	private ArrayList<String> Language = new ArrayList<>();
	private ArrayList<String> Theme = new ArrayList<>();
	private ArrayList<HashMap<String, Object>> stock_patched = new ArrayList<>();
	private ArrayList<HashMap<String, Object>> amoled_patched = new ArrayList<>();
	private ArrayList<HashMap<String, Object>> stock_cloned_patched = new ArrayList<>();
	private ArrayList<HashMap<String, Object>> amoled_cloned_patched = new ArrayList<>();
	private ArrayList<HashMap<String, Object>> patched_changelogs = new ArrayList<>();
	private ArrayList<HashMap<String, Object>> other_patched = new ArrayList<>();
	
	private LinearLayout box_header;
	private LinearLayout main_body_optimization;
	private ScrollView main_scroll_settings;
	private ScrollView main_scroll_about;
	private SwipeRefreshLayout main_refresh_layout;
	private TextView title_header;
	private TextView title_header_separator;
	private TextView title_header_beta;
	private LinearLayout box_header_tab;
	private LinearLayout box_experiment;
	private LinearLayout box_switch;
	private LinearLayout box_update;
	private ImageView icon_experiment;
	private ImageView icon_switch;
	private ImageView icon_update;
	private TextView experiment_title;
	private TextView hidden_download_1;
	private TextView hidden_download_2;
	private TextView hidden_download_3;
	private TextView hidden_patched;
	private TextView installation_failed;
	private TextView existing_patched;
	private TextView close;
	private TextView mirror;
	private TextView spap;
	private TextView uninstall_patched;
	private TextView open_settings;
	private TextView uninstall;
	private TextView delete;
	private TextView open_patched;
	private TextView ignore;
	private TextView cloned;
	private TextView install;
	private TextView existing_patched_desc;
	private TextView installation_failed_cloned_desc;
	private TextView installation_failed_spap_desc;
	private TextView installation_failed_desc;
	private TextView hidden_update;
	private TextView app_changelogs;
	private TextView download_selected;
	private TextView download_ready;
	private TextView download_ready_desc;
	private TextView downloading_file;
	private TextView download_success;
	private TextView maintenance_desc;
	private TextView maintenance;
	private TextView thanks;
	private TextView main_title;
	private TextView settings_title;
	private TextView about_title;
	private TextView file_directory;
	private TextView new_update;
	private TextView continue_1;
	private TextView cancel;
	private TextView download;
	private TextView later;
	private TextView directory;
	private TextView install_now;
	private TextView install_update;
	private TextView go_back;
	private TextView download_update;
	private TextView not_now;
	private TextView lite;
	private TextView show_support;
	private TextView show_support_desc;
	private LinearLayout main_body_settings;
	private LinearLayout box_settings_close;
	private LinearLayout main_box_16;
	private LinearLayout main_box_8;
	private LinearLayout main_box_17;
	private LinearLayout main_box_21;
	private LinearLayout main_box_20;
	private LinearLayout main_box_5;
	private LinearLayout main_box_14;
	private LinearLayout main_box_13;
	private LinearLayout box_settings_icon_close;
	private ImageView settings_icon_close;
	private LinearLayout box_16_sub_1;
	private LinearLayout box_16_sub_2;
	private LinearLayout title_box_5;
	private LinearLayout box_cloned_version;
	private TextView cloned_version;
	private Switch cloned_version_switch;
	private TextView cloned_version_info;
	private LinearLayout box_8_sub_1;
	private LinearLayout box_8_sub_2;
	private LinearLayout title_box_1;
	private LinearLayout box_list_auto_refresh;
	private TextView list_auto_refresh;
	private Switch list_auto_refresh_switch;
	private TextView list_auto_refresh_info;
	private LinearLayout box_17_sub_1;
	private LinearLayout box_17_sub_2;
	private LinearLayout title_box_6;
	private LinearLayout box_disable_reward_ad;
	private TextView disable_reward_ad;
	private Switch disable_reward_ad_switch;
	private TextView disable_reward_ad_info;
	private LinearLayout box_21_sub_1;
	private LinearLayout box_21_sub_2;
	private LinearLayout title_box_12;
	private LinearLayout box_disable_notification;
	private TextView disable_notification;
	private Switch disable_notification_switch;
	private TextView disable_notification_info;
	private LinearLayout box_20_sub_1;
	private LinearLayout box_20_sub_2;
	private LinearLayout title_box_8;
	private LinearLayout box_hide_stock_patched;
	private TextView hide_stock_patched;
	private Switch hide_stock_patched_switch;
	private LinearLayout title_box_9;
	private LinearLayout box_hide_amoled_patched;
	private TextView hide_amoled_patched;
	private Switch hide_amoled_patched_switch;
	private LinearLayout box_5_sub_1;
	private TextView theme;
	private LinearLayout box_theme_switch;
	private Spinner select_theme;
	private LinearLayout box_14_sub_1;
	private TextView language;
	private LinearLayout box_language_switch;
	private Spinner select_language;
	private LinearLayout box_reboot;
	private LinearLayout box_reset_preferences;
	private TextView reboot;
	private TextView reset_preferences;
	private LinearLayout main_body_about;
	private LinearLayout box_about_close;
	private LinearLayout box_about_header;
	private LinearLayout box_about_sub;
	private LinearLayout box_about_1;
	private LinearLayout box_about_6;
	private LinearLayout box_about_7;
	private TextView contributors;
	private LinearLayout box_icon_close;
	private ImageView icon_close;
	private TextView title_about;
	private TextView local_version;
	private TextView sub_title;
	private TextView xmanager_dev;
	private TextView developer_1;
	private TextView manager_lang_13;
	private TextView translator_13;
	private TextView manager_lang_1;
	private TextView translator_1;
	private TextView manager_lang_2;
	private TextView translator_2;
	private TextView manager_lang_3;
	private TextView translator_3;
	private TextView manager_lang_4;
	private TextView translator_4;
	private TextView manager_lang_5;
	private TextView translator_5;
	private TextView manager_lang_6;
	private TextView translator_6;
	private TextView manager_lang_7;
	private TextView translator_7;
	private TextView manager_lang_8;
	private TextView translator_8;
	private TextView manager_lang_15;
	private TextView translator_15;
	private TextView manager_lang_9;
	private TextView translator_9;
	private TextView manager_lang_14;
	private TextView translator_14;
	private TextView manager_lang_10;
	private TextView translator_10;
	private TextView manager_lang_12;
	private TextView translator_12;
	private TextView manager_lang_11;
	private TextView translator_11;
	private TextView manager_lang_16;
	private TextView translator_16;
	private TextView manager_lang_17;
	private TextView translator_17;
	private TextView manager_lang_18;
	private TextView translator_18;
	private TextView manager_lang_19;
	private TextView translator_19;
	private TextView manager_lang_20;
	private TextView translator_20;
	private TextView manager_lang_21;
	private TextView translator_21;
	private TextView manager_lang_22;
	private TextView translator_22;
	private TextView manager_lang_23;
	private TextView translator_23;
	private TextView manager_lang_24;
	private TextView translator_24;
	private TextView manager_lang_25;
	private TextView translator_25;
	private TextView manager_lang_26;
	private TextView translator_26;
	private TextView manager_lang_27;
	private TextView translator_27;
	private TextView manager_lang_28;
	private TextView translator_28;
	private TextView manager_lang_29;
	private TextView translator_29;
	private TextView manager_lang_30;
	private TextView translator_30;
	private TextView manager_lang_31;
	private TextView translator_31;
	private TextView manager_lang_32;
	private TextView translator_32;
	private TextView manager_lang_33;
	private TextView translator_33;
	private TextView manager_lang_34;
	private TextView translator_34;
	private TextView manager_lang_35;
	private TextView translator_35;
	private TextView manager_lang_36;
	private TextView translator_36;
	private TextView manager_lang_37;
	private TextView translator_37;
	private TextView manager_lang_38;
	private TextView translator_38;
	private TextView manager_lang_39;
	private TextView translator_39;
	private TextView manager_lang_40;
	private TextView translator_40;
	private TextView manager_lang_41;
	private TextView translator_41;
	private TextView manager_lang_42;
	private TextView translator_42;
	private TextView manager_lang_43;
	private TextView translator_43;
	private TextView manager_lang_44;
	private TextView translator_44;
	private TextView manager_lang_45;
	private TextView translator_45;
	private TextView manager_lang_46;
	private TextView translator_46;
	private TextView manager_donors;
	private TextView donors_1;
	private ScrollView main_scroll_body;
	private LinearLayout main_body;
	private LinearLayout main_box_1;
	private LinearLayout main_box_2;
	private LinearLayout main_box_3;
	private LinearLayout main_box_19;
	private LinearLayout main_box_6;
	private LinearLayout box_sub_header;
	private LinearLayout main_box_4;
	private LinearLayout main_box_15;
	private LinearLayout box_1;
	private LinearLayout box_2;
	private LinearLayout box_separator_1;
	private LinearLayout box_5;
	private ListView list_items_1;
	private TextView title_1;
	private LinearLayout box_1_sub;
	private TextView patched_1;
	private TextView sub_text_1;
	private LinearLayout box_switch_1;
	private TextView sub_1;
	private TextView sub_3;
	private TextView versions_1;
	private LinearLayout box_sub_5;
	private ImageView version_oc_01;
	private LinearLayout box_3;
	private LinearLayout box_4;
	private LinearLayout box_separator_2;
	private LinearLayout box_6;
	private ListView list_items_2;
	private TextView title_2;
	private LinearLayout box_2_sub;
	private TextView patched_2;
	private TextView sub_text_2;
	private LinearLayout box_switch_2;
	private TextView sub_2;
	private TextView sub_4;
	private TextView versions_2;
	private LinearLayout box_sub_6;
	private ImageView version_oc_02;
	private LinearLayout box_7;
	private LinearLayout box_separator_3;
	private LinearLayout box_9;
	private ListView list_items_3;
	private TextView title_3;
	private LinearLayout box_3_sub;
	private TextView patched_3;
	private TextView versions_3;
	private LinearLayout box_sub_7;
	private ImageView version_oc_03;
	private LinearLayout box_separator_8;
	private LinearLayout box_sub_9;
	private LinearLayout box_separator_9;
	private TextView title_6;
	private LinearLayout box_6_sub_2;
	private LinearLayout box_separator_4;
	private LinearLayout box_6_sub_3;
	private ListView list_items_5;
	private TextView sub_text_installed;
	private LinearLayout box_installed;
	private TextView sub_installed;
	private TextView sub_separator_1;
	private TextView sub_installed_c;
	private TextView changelogs;
	private LinearLayout box_changelogs;
	private ImageView changelogs_oc;
	private LinearLayout box_sub_1;
	private LinearLayout box_sub_2;
	private TextView title_sub;
	private LinearLayout box_uninstall;
	private LinearLayout box_settings;
	private LinearLayout box_cache;
	private LinearLayout box_open;
	private ImageView icon_uninstall;
	private ImageView icon_settings;
	private ImageView icon_cache;
	private ImageView icon_open;
	private LinearLayout box_support;
	private LinearLayout box_reddit;
	private LinearLayout box_donate;
	private LinearLayout box_about;
	private TextView support;
	private ImageView icon_support;
	private TextView reddit;
	private ImageView icon_reddit;
	private TextView donate;
	private ImageView icon_donate;
	private TextView about;
	private ImageView icon_about;
	private LinearLayout box_discord;
	private LinearLayout box_source;
	private LinearLayout box_website;
	private LinearLayout box_faq;
	private TextView discord;
	private ImageView icon_discord;
	private TextView source;
	private ImageView icon_source;
	private TextView website;
	private ImageView icon_website;
	private TextView faq;
	private ImageView icon_faq;
	
	private TimerTask Timer;
	private SharedPreferences THEME;
	private SharedPreferences DESC_X;
	private RequestNetwork Connection;
	private RequestNetwork.RequestListener _Connection_request_listener;
	private SharedPreferences LIST_REFRESH;
	private SharedPreferences LANGUAGE;
	private SharedPreferences DISABLE_REWARD_AD;
	private SharedPreferences AD_UNIT;
	private SharedPreferences SWITCH_VERSION;
	private SharedPreferences REFETCH;
	private SharedPreferences INITIALIZATION;
	private SharedPreferences HIDE_PATCHED;
	private SharedPreferences DISABLE_NOTIFICATION;
	
	@Override
	protected void onCreate(Bundle _savedInstanceState) {
		super.onCreate(_savedInstanceState);
		setContentView(R.layout.main);
		initialize(_savedInstanceState);
		
		MobileAds.initialize(this);
		
		
		if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_DENIED
		|| ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_DENIED) {
			ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1000);
		} else {
			initializeLogic();
		}
	}
	
	@Override
	public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
		super.onRequestPermissionsResult(requestCode, permissions, grantResults);
		if (requestCode == 1000) {
			initializeLogic();
		}
	}
	
	private void initialize(Bundle _savedInstanceState) {
		box_header = findViewById(R.id.box_header);
		main_body_optimization = findViewById(R.id.main_body_optimization);
		main_scroll_settings = findViewById(R.id.main_scroll_settings);
		main_scroll_about = findViewById(R.id.main_scroll_about);
		main_refresh_layout = findViewById(R.id.main_refresh_layout);
		title_header = findViewById(R.id.title_header);
		title_header_separator = findViewById(R.id.title_header_separator);
		title_header_beta = findViewById(R.id.title_header_beta);
		box_header_tab = findViewById(R.id.box_header_tab);
		box_experiment = findViewById(R.id.box_experiment);
		box_switch = findViewById(R.id.box_switch);
		box_update = findViewById(R.id.box_update);
		icon_experiment = findViewById(R.id.icon_experiment);
		icon_switch = findViewById(R.id.icon_switch);
		icon_update = findViewById(R.id.icon_update);
		experiment_title = findViewById(R.id.experiment_title);
		hidden_download_1 = findViewById(R.id.hidden_download_1);
		hidden_download_2 = findViewById(R.id.hidden_download_2);
		hidden_download_3 = findViewById(R.id.hidden_download_3);
		hidden_patched = findViewById(R.id.hidden_patched);
		installation_failed = findViewById(R.id.installation_failed);
		existing_patched = findViewById(R.id.existing_patched);
		close = findViewById(R.id.close);
		mirror = findViewById(R.id.mirror);
		spap = findViewById(R.id.spap);
		uninstall_patched = findViewById(R.id.uninstall_patched);
		open_settings = findViewById(R.id.open_settings);
		uninstall = findViewById(R.id.uninstall);
		delete = findViewById(R.id.delete);
		open_patched = findViewById(R.id.open_patched);
		ignore = findViewById(R.id.ignore);
		cloned = findViewById(R.id.cloned);
		install = findViewById(R.id.install);
		existing_patched_desc = findViewById(R.id.existing_patched_desc);
		installation_failed_cloned_desc = findViewById(R.id.installation_failed_cloned_desc);
		installation_failed_spap_desc = findViewById(R.id.installation_failed_spap_desc);
		installation_failed_desc = findViewById(R.id.installation_failed_desc);
		hidden_update = findViewById(R.id.hidden_update);
		app_changelogs = findViewById(R.id.app_changelogs);
		download_selected = findViewById(R.id.download_selected);
		download_ready = findViewById(R.id.download_ready);
		download_ready_desc = findViewById(R.id.download_ready_desc);
		downloading_file = findViewById(R.id.downloading_file);
		download_success = findViewById(R.id.download_success);
		maintenance_desc = findViewById(R.id.maintenance_desc);
		maintenance = findViewById(R.id.maintenance);
		thanks = findViewById(R.id.thanks);
		main_title = findViewById(R.id.main_title);
		settings_title = findViewById(R.id.settings_title);
		about_title = findViewById(R.id.about_title);
		file_directory = findViewById(R.id.file_directory);
		new_update = findViewById(R.id.new_update);
		continue_1 = findViewById(R.id.continue_1);
		cancel = findViewById(R.id.cancel);
		download = findViewById(R.id.download);
		later = findViewById(R.id.later);
		directory = findViewById(R.id.directory);
		install_now = findViewById(R.id.install_now);
		install_update = findViewById(R.id.install_update);
		go_back = findViewById(R.id.go_back);
		download_update = findViewById(R.id.download_update);
		not_now = findViewById(R.id.not_now);
		lite = findViewById(R.id.lite);
		show_support = findViewById(R.id.show_support);
		show_support_desc = findViewById(R.id.show_support_desc);
		main_body_settings = findViewById(R.id.main_body_settings);
		box_settings_close = findViewById(R.id.box_settings_close);
		main_box_16 = findViewById(R.id.main_box_16);
		main_box_8 = findViewById(R.id.main_box_8);
		main_box_17 = findViewById(R.id.main_box_17);
		main_box_21 = findViewById(R.id.main_box_21);
		main_box_20 = findViewById(R.id.main_box_20);
		main_box_5 = findViewById(R.id.main_box_5);
		main_box_14 = findViewById(R.id.main_box_14);
		main_box_13 = findViewById(R.id.main_box_13);
		box_settings_icon_close = findViewById(R.id.box_settings_icon_close);
		settings_icon_close = findViewById(R.id.settings_icon_close);
		box_16_sub_1 = findViewById(R.id.box_16_sub_1);
		box_16_sub_2 = findViewById(R.id.box_16_sub_2);
		title_box_5 = findViewById(R.id.title_box_5);
		box_cloned_version = findViewById(R.id.box_cloned_version);
		cloned_version = findViewById(R.id.cloned_version);
		cloned_version_switch = findViewById(R.id.cloned_version_switch);
		cloned_version_info = findViewById(R.id.cloned_version_info);
		box_8_sub_1 = findViewById(R.id.box_8_sub_1);
		box_8_sub_2 = findViewById(R.id.box_8_sub_2);
		title_box_1 = findViewById(R.id.title_box_1);
		box_list_auto_refresh = findViewById(R.id.box_list_auto_refresh);
		list_auto_refresh = findViewById(R.id.list_auto_refresh);
		list_auto_refresh_switch = findViewById(R.id.list_auto_refresh_switch);
		list_auto_refresh_info = findViewById(R.id.list_auto_refresh_info);
		box_17_sub_1 = findViewById(R.id.box_17_sub_1);
		box_17_sub_2 = findViewById(R.id.box_17_sub_2);
		title_box_6 = findViewById(R.id.title_box_6);
		box_disable_reward_ad = findViewById(R.id.box_disable_reward_ad);
		disable_reward_ad = findViewById(R.id.disable_reward_ad);
		disable_reward_ad_switch = findViewById(R.id.disable_reward_ad_switch);
		disable_reward_ad_info = findViewById(R.id.disable_reward_ad_info);
		box_21_sub_1 = findViewById(R.id.box_21_sub_1);
		box_21_sub_2 = findViewById(R.id.box_21_sub_2);
		title_box_12 = findViewById(R.id.title_box_12);
		box_disable_notification = findViewById(R.id.box_disable_notification);
		disable_notification = findViewById(R.id.disable_notification);
		disable_notification_switch = findViewById(R.id.disable_notification_switch);
		disable_notification_info = findViewById(R.id.disable_notification_info);
		box_20_sub_1 = findViewById(R.id.box_20_sub_1);
		box_20_sub_2 = findViewById(R.id.box_20_sub_2);
		title_box_8 = findViewById(R.id.title_box_8);
		box_hide_stock_patched = findViewById(R.id.box_hide_stock_patched);
		hide_stock_patched = findViewById(R.id.hide_stock_patched);
		hide_stock_patched_switch = findViewById(R.id.hide_stock_patched_switch);
		title_box_9 = findViewById(R.id.title_box_9);
		box_hide_amoled_patched = findViewById(R.id.box_hide_amoled_patched);
		hide_amoled_patched = findViewById(R.id.hide_amoled_patched);
		hide_amoled_patched_switch = findViewById(R.id.hide_amoled_patched_switch);
		box_5_sub_1 = findViewById(R.id.box_5_sub_1);
		theme = findViewById(R.id.theme);
		box_theme_switch = findViewById(R.id.box_theme_switch);
		select_theme = findViewById(R.id.select_theme);
		box_14_sub_1 = findViewById(R.id.box_14_sub_1);
		language = findViewById(R.id.language);
		box_language_switch = findViewById(R.id.box_language_switch);
		select_language = findViewById(R.id.select_language);
		box_reboot = findViewById(R.id.box_reboot);
		box_reset_preferences = findViewById(R.id.box_reset_preferences);
		reboot = findViewById(R.id.reboot);
		reset_preferences = findViewById(R.id.reset_preferences);
		main_body_about = findViewById(R.id.main_body_about);
		box_about_close = findViewById(R.id.box_about_close);
		box_about_header = findViewById(R.id.box_about_header);
		box_about_sub = findViewById(R.id.box_about_sub);
		box_about_1 = findViewById(R.id.box_about_1);
		box_about_6 = findViewById(R.id.box_about_6);
		box_about_7 = findViewById(R.id.box_about_7);
		contributors = findViewById(R.id.contributors);
		box_icon_close = findViewById(R.id.box_icon_close);
		icon_close = findViewById(R.id.icon_close);
		title_about = findViewById(R.id.title_about);
		local_version = findViewById(R.id.local_version);
		sub_title = findViewById(R.id.sub_title);
		xmanager_dev = findViewById(R.id.xmanager_dev);
		developer_1 = findViewById(R.id.developer_1);
		manager_lang_13 = findViewById(R.id.manager_lang_13);
		translator_13 = findViewById(R.id.translator_13);
		manager_lang_1 = findViewById(R.id.manager_lang_1);
		translator_1 = findViewById(R.id.translator_1);
		manager_lang_2 = findViewById(R.id.manager_lang_2);
		translator_2 = findViewById(R.id.translator_2);
		manager_lang_3 = findViewById(R.id.manager_lang_3);
		translator_3 = findViewById(R.id.translator_3);
		manager_lang_4 = findViewById(R.id.manager_lang_4);
		translator_4 = findViewById(R.id.translator_4);
		manager_lang_5 = findViewById(R.id.manager_lang_5);
		translator_5 = findViewById(R.id.translator_5);
		manager_lang_6 = findViewById(R.id.manager_lang_6);
		translator_6 = findViewById(R.id.translator_6);
		manager_lang_7 = findViewById(R.id.manager_lang_7);
		translator_7 = findViewById(R.id.translator_7);
		manager_lang_8 = findViewById(R.id.manager_lang_8);
		translator_8 = findViewById(R.id.translator_8);
		manager_lang_15 = findViewById(R.id.manager_lang_15);
		translator_15 = findViewById(R.id.translator_15);
		manager_lang_9 = findViewById(R.id.manager_lang_9);
		translator_9 = findViewById(R.id.translator_9);
		manager_lang_14 = findViewById(R.id.manager_lang_14);
		translator_14 = findViewById(R.id.translator_14);
		manager_lang_10 = findViewById(R.id.manager_lang_10);
		translator_10 = findViewById(R.id.translator_10);
		manager_lang_12 = findViewById(R.id.manager_lang_12);
		translator_12 = findViewById(R.id.translator_12);
		manager_lang_11 = findViewById(R.id.manager_lang_11);
		translator_11 = findViewById(R.id.translator_11);
		manager_lang_16 = findViewById(R.id.manager_lang_16);
		translator_16 = findViewById(R.id.translator_16);
		manager_lang_17 = findViewById(R.id.manager_lang_17);
		translator_17 = findViewById(R.id.translator_17);
		manager_lang_18 = findViewById(R.id.manager_lang_18);
		translator_18 = findViewById(R.id.translator_18);
		manager_lang_19 = findViewById(R.id.manager_lang_19);
		translator_19 = findViewById(R.id.translator_19);
		manager_lang_20 = findViewById(R.id.manager_lang_20);
		translator_20 = findViewById(R.id.translator_20);
		manager_lang_21 = findViewById(R.id.manager_lang_21);
		translator_21 = findViewById(R.id.translator_21);
		manager_lang_22 = findViewById(R.id.manager_lang_22);
		translator_22 = findViewById(R.id.translator_22);
		manager_lang_23 = findViewById(R.id.manager_lang_23);
		translator_23 = findViewById(R.id.translator_23);
		manager_lang_24 = findViewById(R.id.manager_lang_24);
		translator_24 = findViewById(R.id.translator_24);
		manager_lang_25 = findViewById(R.id.manager_lang_25);
		translator_25 = findViewById(R.id.translator_25);
		manager_lang_26 = findViewById(R.id.manager_lang_26);
		translator_26 = findViewById(R.id.translator_26);
		manager_lang_27 = findViewById(R.id.manager_lang_27);
		translator_27 = findViewById(R.id.translator_27);
		manager_lang_28 = findViewById(R.id.manager_lang_28);
		translator_28 = findViewById(R.id.translator_28);
		manager_lang_29 = findViewById(R.id.manager_lang_29);
		translator_29 = findViewById(R.id.translator_29);
		manager_lang_30 = findViewById(R.id.manager_lang_30);
		translator_30 = findViewById(R.id.translator_30);
		manager_lang_31 = findViewById(R.id.manager_lang_31);
		translator_31 = findViewById(R.id.translator_31);
		manager_lang_32 = findViewById(R.id.manager_lang_32);
		translator_32 = findViewById(R.id.translator_32);
		manager_lang_33 = findViewById(R.id.manager_lang_33);
		translator_33 = findViewById(R.id.translator_33);
		manager_lang_34 = findViewById(R.id.manager_lang_34);
		translator_34 = findViewById(R.id.translator_34);
		manager_lang_35 = findViewById(R.id.manager_lang_35);
		translator_35 = findViewById(R.id.translator_35);
		manager_lang_36 = findViewById(R.id.manager_lang_36);
		translator_36 = findViewById(R.id.translator_36);
		manager_lang_37 = findViewById(R.id.manager_lang_37);
		translator_37 = findViewById(R.id.translator_37);
		manager_lang_38 = findViewById(R.id.manager_lang_38);
		translator_38 = findViewById(R.id.translator_38);
		manager_lang_39 = findViewById(R.id.manager_lang_39);
		translator_39 = findViewById(R.id.translator_39);
		manager_lang_40 = findViewById(R.id.manager_lang_40);
		translator_40 = findViewById(R.id.translator_40);
		manager_lang_41 = findViewById(R.id.manager_lang_41);
		translator_41 = findViewById(R.id.translator_41);
		manager_lang_42 = findViewById(R.id.manager_lang_42);
		translator_42 = findViewById(R.id.translator_42);
		manager_lang_43 = findViewById(R.id.manager_lang_43);
		translator_43 = findViewById(R.id.translator_43);
		manager_lang_44 = findViewById(R.id.manager_lang_44);
		translator_44 = findViewById(R.id.translator_44);
		manager_lang_45 = findViewById(R.id.manager_lang_45);
		translator_45 = findViewById(R.id.translator_45);
		manager_lang_46 = findViewById(R.id.manager_lang_46);
		translator_46 = findViewById(R.id.translator_46);
		manager_donors = findViewById(R.id.manager_donors);
		donors_1 = findViewById(R.id.donors_1);
		main_scroll_body = findViewById(R.id.main_scroll_body);
		main_body = findViewById(R.id.main_body);
		main_box_1 = findViewById(R.id.main_box_1);
		main_box_2 = findViewById(R.id.main_box_2);
		main_box_3 = findViewById(R.id.main_box_3);
		main_box_19 = findViewById(R.id.main_box_19);
		main_box_6 = findViewById(R.id.main_box_6);
		box_sub_header = findViewById(R.id.box_sub_header);
		main_box_4 = findViewById(R.id.main_box_4);
		main_box_15 = findViewById(R.id.main_box_15);
		box_1 = findViewById(R.id.box_1);
		box_2 = findViewById(R.id.box_2);
		box_separator_1 = findViewById(R.id.box_separator_1);
		box_5 = findViewById(R.id.box_5);
		list_items_1 = findViewById(R.id.list_items_1);
		title_1 = findViewById(R.id.title_1);
		box_1_sub = findViewById(R.id.box_1_sub);
		patched_1 = findViewById(R.id.patched_1);
		sub_text_1 = findViewById(R.id.sub_text_1);
		box_switch_1 = findViewById(R.id.box_switch_1);
		sub_1 = findViewById(R.id.sub_1);
		sub_3 = findViewById(R.id.sub_3);
		versions_1 = findViewById(R.id.versions_1);
		box_sub_5 = findViewById(R.id.box_sub_5);
		version_oc_01 = findViewById(R.id.version_oc_01);
		box_3 = findViewById(R.id.box_3);
		box_4 = findViewById(R.id.box_4);
		box_separator_2 = findViewById(R.id.box_separator_2);
		box_6 = findViewById(R.id.box_6);
		list_items_2 = findViewById(R.id.list_items_2);
		title_2 = findViewById(R.id.title_2);
		box_2_sub = findViewById(R.id.box_2_sub);
		patched_2 = findViewById(R.id.patched_2);
		sub_text_2 = findViewById(R.id.sub_text_2);
		box_switch_2 = findViewById(R.id.box_switch_2);
		sub_2 = findViewById(R.id.sub_2);
		sub_4 = findViewById(R.id.sub_4);
		versions_2 = findViewById(R.id.versions_2);
		box_sub_6 = findViewById(R.id.box_sub_6);
		version_oc_02 = findViewById(R.id.version_oc_02);
		box_7 = findViewById(R.id.box_7);
		box_separator_3 = findViewById(R.id.box_separator_3);
		box_9 = findViewById(R.id.box_9);
		list_items_3 = findViewById(R.id.list_items_3);
		title_3 = findViewById(R.id.title_3);
		box_3_sub = findViewById(R.id.box_3_sub);
		patched_3 = findViewById(R.id.patched_3);
		versions_3 = findViewById(R.id.versions_3);
		box_sub_7 = findViewById(R.id.box_sub_7);
		version_oc_03 = findViewById(R.id.version_oc_03);
		box_separator_8 = findViewById(R.id.box_separator_8);
		box_sub_9 = findViewById(R.id.box_sub_9);
		box_separator_9 = findViewById(R.id.box_separator_9);
		title_6 = findViewById(R.id.title_6);
		box_6_sub_2 = findViewById(R.id.box_6_sub_2);
		box_separator_4 = findViewById(R.id.box_separator_4);
		box_6_sub_3 = findViewById(R.id.box_6_sub_3);
		list_items_5 = findViewById(R.id.list_items_5);
		sub_text_installed = findViewById(R.id.sub_text_installed);
		box_installed = findViewById(R.id.box_installed);
		sub_installed = findViewById(R.id.sub_installed);
		sub_separator_1 = findViewById(R.id.sub_separator_1);
		sub_installed_c = findViewById(R.id.sub_installed_c);
		changelogs = findViewById(R.id.changelogs);
		box_changelogs = findViewById(R.id.box_changelogs);
		changelogs_oc = findViewById(R.id.changelogs_oc);
		box_sub_1 = findViewById(R.id.box_sub_1);
		box_sub_2 = findViewById(R.id.box_sub_2);
		title_sub = findViewById(R.id.title_sub);
		box_uninstall = findViewById(R.id.box_uninstall);
		box_settings = findViewById(R.id.box_settings);
		box_cache = findViewById(R.id.box_cache);
		box_open = findViewById(R.id.box_open);
		icon_uninstall = findViewById(R.id.icon_uninstall);
		icon_settings = findViewById(R.id.icon_settings);
		icon_cache = findViewById(R.id.icon_cache);
		icon_open = findViewById(R.id.icon_open);
		box_support = findViewById(R.id.box_support);
		box_reddit = findViewById(R.id.box_reddit);
		box_donate = findViewById(R.id.box_donate);
		box_about = findViewById(R.id.box_about);
		support = findViewById(R.id.support);
		icon_support = findViewById(R.id.icon_support);
		reddit = findViewById(R.id.reddit);
		icon_reddit = findViewById(R.id.icon_reddit);
		donate = findViewById(R.id.donate);
		icon_donate = findViewById(R.id.icon_donate);
		about = findViewById(R.id.about);
		icon_about = findViewById(R.id.icon_about);
		box_discord = findViewById(R.id.box_discord);
		box_source = findViewById(R.id.box_source);
		box_website = findViewById(R.id.box_website);
		box_faq = findViewById(R.id.box_faq);
		discord = findViewById(R.id.discord);
		icon_discord = findViewById(R.id.icon_discord);
		source = findViewById(R.id.source);
		icon_source = findViewById(R.id.icon_source);
		website = findViewById(R.id.website);
		icon_website = findViewById(R.id.icon_website);
		faq = findViewById(R.id.faq);
		icon_faq = findViewById(R.id.icon_faq);
		THEME = getSharedPreferences("THEME", Activity.MODE_PRIVATE);
		DESC_X = getSharedPreferences("DESC_X", Activity.MODE_PRIVATE);
		Connection = new RequestNetwork(this);
		LIST_REFRESH = getSharedPreferences("LIST_REFRESH", Activity.MODE_PRIVATE);
		LANGUAGE = getSharedPreferences("LANGUAGE", Activity.MODE_PRIVATE);
		DISABLE_REWARD_AD = getSharedPreferences("DISABLE_REWARD_AD", Activity.MODE_PRIVATE);
		AD_UNIT = getSharedPreferences("AD_UNIT", Activity.MODE_PRIVATE);
		SWITCH_VERSION = getSharedPreferences("SWITCH_VERSION", Activity.MODE_PRIVATE);
		REFETCH = getSharedPreferences("REFETCH", Activity.MODE_PRIVATE);
		INITIALIZATION = getSharedPreferences("INITIALIZATION", Activity.MODE_PRIVATE);
		HIDE_PATCHED = getSharedPreferences("HIDE_PATCHED", Activity.MODE_PRIVATE);
		DISABLE_NOTIFICATION = getSharedPreferences("DISABLE_NOTIFICATION", Activity.MODE_PRIVATE);
		
		box_experiment.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				RippleAnimation.create(box_experiment).setDuration((long)1000).start();
				main_body_optimization.setVisibility(View.GONE);
				main_scroll_settings.setVisibility(View.VISIBLE);
				main_scroll_about.setVisibility(View.GONE);
				main_refresh_layout.setVisibility(View.GONE);
				box_experiment.setVisibility(View.GONE);
				box_switch.setVisibility(View.GONE);
				box_update.setVisibility(View.GONE);
				main_box_5.setVisibility(View.GONE);
				main_box_8.setVisibility(View.GONE);
				
				
				
				main_box_13.setVisibility(View.GONE);
				main_box_14.setVisibility(View.GONE);
				main_box_16.setVisibility(View.VISIBLE);
				main_box_17.setVisibility(View.GONE);
				
				main_box_20.setVisibility(View.GONE);
				main_box_21.setVisibility(View.GONE);
				
				
				
				title_header.setText(experiment_title.getText().toString());
				title_header_beta.setTextColor(Color.TRANSPARENT);
				title_header_separator.setTextColor(Color.TRANSPARENT);
				_Tap_Animation(box_experiment);
				CLOSER_2 = 1;
				_Animation_4();
				_Language_UI();
				_Theme_UI();
			}
		});
		
		box_switch.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				RippleAnimation.create(box_switch).setDuration((long)1000).start();
				main_body_optimization.setVisibility(View.GONE);
				main_scroll_settings.setVisibility(View.VISIBLE);
				main_scroll_about.setVisibility(View.GONE);
				main_refresh_layout.setVisibility(View.GONE);
				box_experiment.setVisibility(View.GONE);
				box_switch.setVisibility(View.GONE);
				box_update.setVisibility(View.GONE);
				main_box_5.setVisibility(View.VISIBLE);
				main_box_8.setVisibility(View.VISIBLE);
				main_box_13.setVisibility(View.VISIBLE);
				main_box_14.setVisibility(View.VISIBLE);
				main_box_16.setVisibility(View.GONE);
				main_box_17.setVisibility(View.VISIBLE);
				main_box_20.setVisibility(View.VISIBLE);
				main_box_21.setVisibility(View.VISIBLE);
				title_header.setText(settings_title.getText().toString());
				title_header_beta.setTextColor(Color.TRANSPARENT);
				title_header_separator.setTextColor(Color.TRANSPARENT);
				_Tap_Animation(box_switch);
				CLOSER_2 = 1;
				_Animation_1();
				_Language_UI();
				_Theme_UI();
			}
		});
		
		box_update.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					if (CHECK == 0) {
						CHECK = 1;
						Timer = new TimerTask() {
							@Override
							public void run() {
								runOnUiThread(new Runnable() {
									@Override
									public void run() {
										CHECK = 0;
									}
								});
							}
						};
						_timer.schedule(Timer, (int)(2000));
						if (!SketchwareUtil.isConnected(getApplicationContext())) {
							com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Slow or No Internet Connection. Try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
						}
						else {
							if (Latest_Version > Current_Version) {
								com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Checking Updates...", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
								Timer = new TimerTask() {
									@Override
									public void run() {
										runOnUiThread(new Runnable() {
											@Override
											public void run() {
												try {
													final AlertDialog.Builder Update_Authorized = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
													
													String Title = "<b>".concat(new_update.getText().toString().concat("</b>"));
													String TitleColor = "1DB954";
													
													Update_Authorized.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
													String Message = "What's New (Version ".concat(String.valueOf(Latest_Version).concat("):<br/><br/>".concat(app_changelogs.getText().toString().replace("\n", "<br/>"))));
													String MessageColor = "FFFFFF";
													
													Update_Authorized.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
													Update_Authorized.setPositiveButton(download_update.getText().toString(), new DialogInterface.OnClickListener(){
														
														                @Override
														                public void onClick(DialogInterface Update_Authorized, int p) {
															AlertDialog.setCancelable(true);
															try {
																_Browser(hidden_update.getText().toString());
															}
															catch(Exception e) {
																com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "The file or link is currently unavailable. Please try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
															}
															                }
														            });
													 Update_Authorized.setNeutralButton(not_now.getText().toString(), new DialogInterface.OnClickListener(){
														
														                @Override
														                public void onClick(DialogInterface Update_Authorized, int p) {
															AlertDialog.setCancelable(true);
															                }
														            });
													AlertDialog = Update_Authorized.create();
													AlertDialog.setCancelable(false);
													_AlertDialog_Color();
													AlertDialog.show();
												}
												catch(Exception e) {
												}
											}
										});
									}
								};
								_timer.schedule(Timer, (int)(2800));
							}
							else {
								if (Latest_Version == Current_Version) {
									com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Checking Updates...", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
									Timer = new TimerTask() {
										@Override
										public void run() {
											runOnUiThread(new Runnable() {
												@Override
												public void run() {
													try {
														final AlertDialog.Builder Update_Latest = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
														
														String Title = "<b>".concat("xManager v".concat(local_version.getText().toString().concat(" (Latest)")).concat("</b>"));
														String TitleColor = "1DB954";
														
														Update_Latest.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
														String Message = app_changelogs.getText().toString().replace("\n", "<br/>");
														String MessageColor = "FFFFFF";
														
														Update_Latest.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
														AlertDialog = Update_Latest.create();
														_AlertDialog_Color();
														AlertDialog.show();
													}
													catch(Exception e) {
													}
												}
											});
										}
									};
									_timer.schedule(Timer, (int)(2800));
								}
							}
						}
					}
					_Tap_Animation(box_update);
				}
				catch(Exception e) {
				}
			}
		});
		
		box_settings_icon_close.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				RippleAnimation.create(box_settings_icon_close).setDuration((long)1000).start();
				main_body_optimization.setVisibility(View.GONE);
				main_scroll_settings.setVisibility(View.GONE);
				main_scroll_about.setVisibility(View.GONE);
				main_refresh_layout.setVisibility(View.VISIBLE);
				box_experiment.setVisibility(View.VISIBLE);
				box_switch.setVisibility(View.VISIBLE);
				box_update.setVisibility(View.VISIBLE);
				title_header.setText(main_title.getText().toString());
				title_header_beta.setTextColor(0xFFFFFFFF);
				title_header_separator.setTextColor(0xFFFFFFFF);
				Animation header_beta;
				header_beta = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
				header_beta.setDuration(200); title_header_beta.startAnimation(header_beta);
				header_beta = null;
				_Tap_Animation(box_settings_icon_close);
				CLOSER_2 = 0;
				_Animation_0();
			}
		});
		
		cloned_version_switch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
			@Override
			public void onCheckedChanged(CompoundButton _param1, boolean _param2) {
				final boolean _isChecked = _param2;
				if (!_isChecked) {
					SWITCH_VERSION.edit().putString("SWITCH", "A").commit();
					title_1.setText("STOCK PATCHED");
					title_2.setText("AMOLED PATCHED");
					patched_1.setText("Ad-free, unlimited skips, and play on-demand");
					patched_2.setText("Same features but in an AMOLED black theme");
					patched_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0);
					patched_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0);
					patched_1.setTextSize((int)12);
					patched_2.setTextSize((int)12);
					sub_1.setVisibility(View.VISIBLE);
					sub_2.setVisibility(View.VISIBLE);
					sub_3.setVisibility(View.GONE);
					sub_4.setVisibility(View.GONE);
					list_items_1.setVisibility(View.GONE);
					list_items_2.setVisibility(View.GONE);
					list_items_3.setVisibility(View.GONE);
					list_items_5.setVisibility(View.GONE);
					version_oc_01.setImageResource(R.drawable.close);
					version_oc_02.setImageResource(R.drawable.close);
					version_oc_03.setImageResource(R.drawable.close);
					changelogs_oc.setImageResource(R.drawable.close);
					list_items_1.setAdapter(new List_items_1Adapter(stock_patched));
					list_items_2.setAdapter(new List_items_2Adapter(amoled_patched));
					((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
					((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
					CLICKER_1 = 1;
					CLICKER_2 = 1;
					CLICKER_3 = 1;
					CLICKER_4 = 1;
				}
				else {
					if (_isChecked) {
						SWITCH_VERSION.edit().putString("SWITCH", "B").commit();
						title_1.setText("STOCK CLONED PATCHED");
						title_2.setText("AMOLED CLONED PATCHED");
						patched_1.setText("A cloned version of the stock patched");
						patched_2.setText("A cloned version of the stock patched with an AMOLED black theme");
						patched_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0);
						patched_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0);
						patched_1.setTextSize((int)12);
						patched_2.setTextSize((int)12);
						sub_1.setVisibility(View.GONE);
						sub_2.setVisibility(View.GONE);
						sub_3.setVisibility(View.VISIBLE);
						sub_4.setVisibility(View.VISIBLE);
						list_items_1.setVisibility(View.GONE);
						list_items_2.setVisibility(View.GONE);
						list_items_3.setVisibility(View.GONE);
						list_items_5.setVisibility(View.GONE);
						version_oc_01.setImageResource(R.drawable.close);
						version_oc_02.setImageResource(R.drawable.close);
						version_oc_03.setImageResource(R.drawable.close);
						changelogs_oc.setImageResource(R.drawable.close);
						list_items_1.setAdapter(new List_items_1Adapter(stock_cloned_patched));
						list_items_2.setAdapter(new List_items_2Adapter(amoled_cloned_patched));
						((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
						((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
						CLICKER_1 = 1;
						CLICKER_2 = 1;
						CLICKER_3 = 1;
						CLICKER_4 = 1;
					}
				}
				COUNTER = 1;
			}
		});
		
		list_auto_refresh_switch.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
						if (CHECK == 0) {
								CHECK = 1;
								Timer = new TimerTask() {
										@Override
										public void run() {
												runOnUiThread(new Runnable() {
														@Override
														public void run() {
																CHECK = 0;
														}
												});
										}
								};
								_timer.schedule(Timer, (int)(3000));
								_Hide_Reminder();
						}
						else {
						}
				}
				catch(Exception e) {
				}
				
			}
		});
		
		list_auto_refresh_switch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
			@Override
			public void onCheckedChanged(CompoundButton _param1, boolean _param2) {
				final boolean _isChecked = _param2;
				if (_isChecked) {
					LIST_REFRESH.edit().putString("UPDATE", "ON").commit();
				}
				else {
					LIST_REFRESH.edit().putString("UPDATE", "OFF").commit();
				}
				COUNTER = 1;
			}
		});
		
		disable_reward_ad_switch.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
						if (CHECK == 0) {
								CHECK = 1;
								Timer = new TimerTask() {
										@Override
										public void run() {
												runOnUiThread(new Runnable() {
														@Override
														public void run() {
																CHECK = 0;
														}
												});
										}
								};
								_timer.schedule(Timer, (int)(3000));
								_Hide_Reminder();
						}
						else {
						}
				}
				catch(Exception e) {
				}
				
			}
		});
		
		disable_reward_ad_switch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
			@Override
			public void onCheckedChanged(CompoundButton _param1, boolean _param2) {
				final boolean _isChecked = _param2;
				if (_isChecked) {
					DISABLE_REWARD_AD.edit().putString("REWARD_AD", "ON").commit();
				}
				else {
					DISABLE_REWARD_AD.edit().putString("REWARD_AD", "OFF").commit();
				}
				COUNTER = 1;
			}
		});
		
		disable_notification_switch.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
						if (CHECK == 0) {
								CHECK = 1;
								Timer = new TimerTask() {
										@Override
										public void run() {
												runOnUiThread(new Runnable() {
														@Override
														public void run() {
																CHECK = 0;
														}
												});
										}
								};
								_timer.schedule(Timer, (int)(3000));
								_Hide_Reminder();
						}
						else {
						}
				}
				catch(Exception e) {
				}
				
			}
		});
		
		disable_notification_switch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
			@Override
			public void onCheckedChanged(CompoundButton _param1, boolean _param2) {
				final boolean _isChecked = _param2;
				if (_isChecked) {
					DISABLE_NOTIFICATION.edit().putString("DISABLE", "ON").commit();
				}
				else {
					DISABLE_NOTIFICATION.edit().putString("DISABLE", "OFF").commit();
				}
				COUNTER = 1;
			}
		});
		
		hide_stock_patched_switch.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
						if (CHECK == 0) {
								CHECK = 1;
								Timer = new TimerTask() {
										@Override
										public void run() {
												runOnUiThread(new Runnable() {
														@Override
														public void run() {
																CHECK = 0;
														}
												});
										}
								};
								_timer.schedule(Timer, (int)(3000));
								_Hide_Reminder();
						}
						else {
						}
				}
				catch(Exception e) {
				}
				
			}
		});
		
		hide_stock_patched_switch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
			@Override
			public void onCheckedChanged(CompoundButton _param1, boolean _param2) {
				final boolean _isChecked = _param2;
				if (_isChecked) {
					HIDE_PATCHED.edit().putString("SWITCH_A", "ON").commit();
				}
				else {
					HIDE_PATCHED.edit().putString("SWITCH_A", "OFF").commit();
				}
				COUNTER = 1;
			}
		});
		
		hide_amoled_patched_switch.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
						if (CHECK == 0) {
								CHECK = 1;
								Timer = new TimerTask() {
										@Override
										public void run() {
												runOnUiThread(new Runnable() {
														@Override
														public void run() {
																CHECK = 0;
														}
												});
										}
								};
								_timer.schedule(Timer, (int)(3000));
								_Hide_Reminder();
						}
						else {
						}
				}
				catch(Exception e) {
				}
				
			}
		});
		
		hide_amoled_patched_switch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
			@Override
			public void onCheckedChanged(CompoundButton _param1, boolean _param2) {
				final boolean _isChecked = _param2;
				if (_isChecked) {
					HIDE_PATCHED.edit().putString("SWITCH_B", "ON").commit();
				}
				else {
					HIDE_PATCHED.edit().putString("SWITCH_B", "OFF").commit();
				}
				COUNTER = 1;
			}
		});
		
		select_theme.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
			@Override
			public void onItemSelected(AdapterView<?> _param1, View _param2, int _param3, long _param4) {
				final int _position = _param3;
				if (_position == 0) {
					THEME.edit().putString("THEME", "0").commit();
					COUNTER = 1;
					_Theme_UI();
				}
				else {
					if (_position == 1) {
						THEME.edit().putString("THEME", "1").commit();
						COUNTER = 1;
						_Theme_UI();
					}
					else {
						if (_position == 2) {
							THEME.edit().putString("THEME", "2").commit();
							COUNTER = 1;
							_Theme_UI();
						}
						else {
							if (_position == 3) {
								THEME.edit().putString("THEME", "3").commit();
								COUNTER = 1;
								_Theme_UI();
							}
							else {
								if (_position == 4) {
									THEME.edit().putString("THEME", "4").commit();
									COUNTER = 1;
									_Theme_UI();
								}
								else {
									if (_position == 5) {
										THEME.edit().putString("THEME", "5").commit();
										COUNTER = 1;
										_Theme_UI();
									}
									else {
										if (_position == 6) {
											THEME.edit().putString("THEME", "6").commit();
											COUNTER = 1;
											_Theme_UI();
										}
										else {
											if (_position == 7) {
												THEME.edit().putString("THEME", "7").commit();
												COUNTER = 1;
												_Theme_UI();
											}
											else {
												if (_position == 8) {
													THEME.edit().putString("THEME", "8").commit();
													COUNTER = 1;
													_Theme_UI();
												}
												else {
													if (_position == 9) {
														THEME.edit().putString("THEME", "9").commit();
														COUNTER = 1;
														_Theme_UI();
													}
													else {
														if (_position == 10) {
															THEME.edit().putString("THEME", "10").commit();
															COUNTER = 1;
															_Theme_UI();
														}
														else {
															if (_position == 11) {
																THEME.edit().putString("THEME", "11").commit();
																COUNTER = 1;
																_Theme_UI();
															}
															else {
																if (_position == 12) {
																	THEME.edit().putString("THEME", "12").commit();
																	COUNTER = 1;
																	_Theme_UI();
																}
																else {
																	if (_position == 13) {
																		THEME.edit().putString("THEME", "13").commit();
																		COUNTER = 1;
																		_Theme_UI();
																	}
																	else {
																		if (_position == 14) {
																			THEME.edit().putString("THEME", "14").commit();
																			COUNTER = 1;
																			_Theme_UI();
																		}
																		else {
																			if (_position == 15) {
																				THEME.edit().putString("THEME", "15").commit();
																				COUNTER = 1;
																				_Theme_UI();
																			}
																			else {
																				if (_position == 16) {
																					THEME.edit().putString("THEME", "16").commit();
																					COUNTER = 1;
																					_Theme_UI();
																				}
																				else {
																					if (_position == 17) {
																						THEME.edit().putString("THEME", "17").commit();
																						COUNTER = 1;
																						_Theme_UI();
																					}
																					else {
																						if (_position == 18) {
																							THEME.edit().putString("THEME", "18").commit();
																							COUNTER = 1;
																							_Theme_UI();
																						}
																						else {
																							if (_position == 19) {
																								THEME.edit().putString("THEME", "19").commit();
																								COUNTER = 1;
																								_Theme_UI();
																							}
																							else {
																								if (_position == 20) {
																									THEME.edit().putString("THEME", "20").commit();
																									COUNTER = 1;
																									_Theme_UI();
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
			
			@Override
			public void onNothingSelected(AdapterView<?> _param1) {
				
			}
		});
		
		select_language.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
			@Override
			public void onItemSelected(AdapterView<?> _param1, View _param2, int _param3, long _param4) {
				final int _position = _param3;
				if (_position == 0) {
					LANGUAGE.edit().putString("LANGUAGE", "0").commit();
					COUNTER = 1;
					_Language_UI();
				}
				else {
					if (_position == 1) {
						LANGUAGE.edit().putString("LANGUAGE", "1").commit();
						COUNTER = 1;
						_Language_UI();
					}
					else {
						if (_position == 2) {
							LANGUAGE.edit().putString("LANGUAGE", "2").commit();
							COUNTER = 1;
							_Language_UI();
						}
						else {
							if (_position == 3) {
								LANGUAGE.edit().putString("LANGUAGE", "3").commit();
								COUNTER = 1;
								_Language_UI();
							}
							else {
								if (_position == 4) {
									LANGUAGE.edit().putString("LANGUAGE", "4").commit();
									COUNTER = 1;
									_Language_UI();
								}
								else {
									if (_position == 5) {
										LANGUAGE.edit().putString("LANGUAGE", "5").commit();
										COUNTER = 1;
										_Language_UI();
									}
									else {
										if (_position == 6) {
											LANGUAGE.edit().putString("LANGUAGE", "6").commit();
											COUNTER = 1;
											_Language_UI();
										}
										else {
											if (_position == 7) {
												LANGUAGE.edit().putString("LANGUAGE", "7").commit();
												COUNTER = 1;
												_Language_UI();
											}
											else {
												if (_position == 8) {
													LANGUAGE.edit().putString("LANGUAGE", "8").commit();
													COUNTER = 1;
													_Language_UI();
												}
												else {
													if (_position == 9) {
														LANGUAGE.edit().putString("LANGUAGE", "9").commit();
														COUNTER = 1;
														_Language_UI();
													}
													else {
														if (_position == 10) {
															LANGUAGE.edit().putString("LANGUAGE", "10").commit();
															COUNTER = 1;
															_Language_UI();
														}
														else {
															if (_position == 11) {
																LANGUAGE.edit().putString("LANGUAGE", "11").commit();
																COUNTER = 1;
																_Language_UI();
															}
															else {
																if (_position == 12) {
																	LANGUAGE.edit().putString("LANGUAGE", "12").commit();
																	COUNTER = 1;
																	_Language_UI();
																}
																else {
																	if (_position == 13) {
																		LANGUAGE.edit().putString("LANGUAGE", "13").commit();
																		COUNTER = 1;
																		_Language_UI();
																	}
																	else {
																		if (_position == 14) {
																			LANGUAGE.edit().putString("LANGUAGE", "14").commit();
																			COUNTER = 1;
																			_Language_UI();
																		}
																		else {
																			if (_position == 15) {
																				LANGUAGE.edit().putString("LANGUAGE", "15").commit();
																				COUNTER = 1;
																				_Language_UI();
																			}
																			else {
																				if (_position == 16) {
																					LANGUAGE.edit().putString("LANGUAGE", "16").commit();
																					COUNTER = 1;
																					_Language_UI();
																				}
																				else {
																					if (_position == 17) {
																						LANGUAGE.edit().putString("LANGUAGE", "17").commit();
																						COUNTER = 1;
																						_Language_UI();
																					}
																					else {
																						if (_position == 18) {
																							LANGUAGE.edit().putString("LANGUAGE", "18").commit();
																							COUNTER = 1;
																							_Language_UI();
																						}
																						else {
																							if (_position == 19) {
																								LANGUAGE.edit().putString("LANGUAGE", "19").commit();
																								COUNTER = 1;
																								_Language_UI();
																							}
																							else {
																								if (_position == 20) {
																									LANGUAGE.edit().putString("LANGUAGE", "20").commit();
																									COUNTER = 1;
																									_Language_UI();
																								}
																								else {
																									if (_position == 21) {
																										LANGUAGE.edit().putString("LANGUAGE", "21").commit();
																										COUNTER = 1;
																										_Language_UI();
																									}
																									else {
																										if (_position == 22) {
																											LANGUAGE.edit().putString("LANGUAGE", "22").commit();
																											COUNTER = 1;
																											_Language_UI();
																										}
																										else {
																											if (_position == 23) {
																												LANGUAGE.edit().putString("LANGUAGE", "23").commit();
																												COUNTER = 1;
																												_Language_UI();
																											}
																											else {
																												if (_position == 24) {
																													LANGUAGE.edit().putString("LANGUAGE", "24").commit();
																													COUNTER = 1;
																													_Language_UI();
																												}
																												else {
																													if (_position == 25) {
																														LANGUAGE.edit().putString("LANGUAGE", "25").commit();
																														COUNTER = 1;
																														_Language_UI();
																													}
																													else {
																														if (_position == 26) {
																															LANGUAGE.edit().putString("LANGUAGE", "26").commit();
																															COUNTER = 1;
																															_Language_UI();
																														}
																														else {
																															if (_position == 27) {
																																LANGUAGE.edit().putString("LANGUAGE", "27").commit();
																																COUNTER = 1;
																																_Language_UI();
																															}
																															else {
																																if (_position == 28) {
																																	LANGUAGE.edit().putString("LANGUAGE", "28").commit();
																																	COUNTER = 1;
																																	_Language_UI();
																																}
																																else {
																																	if (_position == 29) {
																																		LANGUAGE.edit().putString("LANGUAGE", "29").commit();
																																		COUNTER = 1;
																																		_Language_UI();
																																	}
																																	else {
																																		if (_position == 30) {
																																			LANGUAGE.edit().putString("LANGUAGE", "30").commit();
																																			COUNTER = 1;
																																			_Language_UI();
																																		}
																																		else {
																																			if (_position == 31) {
																																				LANGUAGE.edit().putString("LANGUAGE", "31").commit();
																																				COUNTER = 1;
																																				_Language_UI();
																																			}
																																			else {
																																				if (_position == 32) {
																																					LANGUAGE.edit().putString("LANGUAGE", "32").commit();
																																					COUNTER = 1;
																																					_Language_UI();
																																				}
																																				else {
																																					if (_position == 33) {
																																						LANGUAGE.edit().putString("LANGUAGE", "33").commit();
																																						COUNTER = 1;
																																						_Language_UI();
																																					}
																																					else {
																																						if (_position == 34) {
																																							LANGUAGE.edit().putString("LANGUAGE", "34").commit();
																																							COUNTER = 1;
																																							_Language_UI();
																																						}
																																						else {
																																							if (_position == 35) {
																																								LANGUAGE.edit().putString("LANGUAGE", "35").commit();
																																								COUNTER = 1;
																																								_Language_UI();
																																							}
																																							else {
																																								if (_position == 36) {
																																									LANGUAGE.edit().putString("LANGUAGE", "36").commit();
																																									COUNTER = 1;
																																									_Language_UI();
																																								}
																																								else {
																																									if (_position == 37) {
																																										LANGUAGE.edit().putString("LANGUAGE", "37").commit();
																																										COUNTER = 1;
																																										_Language_UI();
																																									}
																																									else {
																																										if (_position == 38) {
																																											LANGUAGE.edit().putString("LANGUAGE", "38").commit();
																																											COUNTER = 1;
																																											_Language_UI();
																																										}
																																										else {
																																											if (_position == 39) {
																																												LANGUAGE.edit().putString("LANGUAGE", "39").commit();
																																												COUNTER = 1;
																																												_Language_UI();
																																											}
																																											else {
																																												if (_position == 40) {
																																													LANGUAGE.edit().putString("LANGUAGE", "40").commit();
																																													COUNTER = 1;
																																													_Language_UI();
																																												}
																																												else {
																																													if (_position == 41) {
																																														LANGUAGE.edit().putString("LANGUAGE", "41").commit();
																																														COUNTER = 1;
																																														_Language_UI();
																																													}
																																													else {
																																														if (_position == 42) {
																																															LANGUAGE.edit().putString("LANGUAGE", "42").commit();
																																															COUNTER = 1;
																																															_Language_UI();
																																														}
																																														else {
																																															if (_position == 43) {
																																																LANGUAGE.edit().putString("LANGUAGE", "43").commit();
																																																COUNTER = 1;
																																																_Language_UI();
																																															}
																																															else {
																																																if (_position == 44) {
																																																	LANGUAGE.edit().putString("LANGUAGE", "44").commit();
																																																	COUNTER = 1;
																																																	_Language_UI();
																																																}
																																																else {
																																																	if (_position == 45) {
																																																		LANGUAGE.edit().putString("LANGUAGE", "45").commit();
																																																		COUNTER = 1;
																																																		_Language_UI();
																																																	}
																																																}
																																															}
																																														}
																																													}
																																												}
																																											}
																																										}
																																									}
																																								}
																																							}
																																						}
																																					}
																																				}
																																			}
																																		}
																																	}
																																}
																															}
																														}
																													}
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
			
			@Override
			public void onNothingSelected(AdapterView<?> _param1) {
				
			}
		});
		
		box_reboot.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					box_header.setVisibility(View.GONE);
					final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Intro_Dialog);
					prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog);
					prog.setMax(100);
					prog.setMessage("Refetching datas...");
					prog.setIndeterminate(true);
					prog.setCancelable(false);
					if (!MainActivity.this.isFinishing()){
							prog.show();
					}
					
					Timer = new TimerTask() {
						@Override
						public void run() {
							runOnUiThread(new Runnable() {
								@Override
								public void run() {
									prog.dismiss();
									final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Intro_Dialog);
									prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog);
									prog.setMax(100);
									prog.setMessage("Rebooting...");
									prog.setIndeterminate(true);
									prog.setCancelable(false);
									prog.show();
									if (!MainActivity.this.isFinishing()){
											return;
									}
									
									Timer = new TimerTask() {
										@Override
										public void run() {
											runOnUiThread(new Runnable() {
												@Override
												public void run() {
													box_header.setVisibility(View.VISIBLE);
													prog.dismiss();
												}
											});
										}
									};
									_timer.schedule(Timer, (int)(1000));
								}
							});
						}
					};
					_timer.schedule(Timer, (int)(500));
					Timer = new TimerTask() {
						@Override
						public void run() {
							runOnUiThread(new Runnable() {
								@Override
								public void run() {
									try {
										Intent intent = getBaseContext().getPackageManager().getLaunchIntentForPackage(getBaseContext().getPackageName() ); 
										
										intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
										intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
										startActivity(intent);
									}
									catch (Exception e) {
									}
								}
							});
						}
					};
					_timer.schedule(Timer, (int)(1500));
					if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) {
						Window w =MainActivity.this.getWindow();
						w.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
						w.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); w.setStatusBarColor(0xFF171717);
					}
					main_body_optimization.setVisibility(View.VISIBLE);
					main_scroll_settings.setVisibility(View.GONE);
					main_scroll_about.setVisibility(View.GONE);
					main_refresh_layout.setVisibility(View.GONE);
					box_experiment.setVisibility(View.GONE);
					box_switch.setVisibility(View.GONE);
					box_update.setVisibility(View.GONE);
					_Reboot();
				}
				catch(Exception e) {
				}
				_Tap_Animation(box_reboot);
			}
		});
		
		box_reset_preferences.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				cloned_version_switch.setChecked(false);
				list_auto_refresh_switch.setChecked(false);
				disable_reward_ad_switch.setChecked(false);
				disable_notification_switch.setChecked(false);
				hide_stock_patched_switch.setChecked(false);
				hide_amoled_patched_switch.setChecked(false);
				main_refresh_layout.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF000000}));
				main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF000000}));
				main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF000000}));
				select_language.setSelection((int)(0));
				select_theme.setSelection((int)(0));
				_Language_Fixer();
				if (COUNTER == 1) {
					com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Back to default preferences", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
				}
				_Tap_Animation(box_reset_preferences);
				COUNTER = 0;
			}
		});
		
		box_icon_close.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				RippleAnimation.create(box_icon_close).setDuration((long)1000).start();
				main_body_optimization.setVisibility(View.GONE);
				main_scroll_settings.setVisibility(View.GONE);
				main_scroll_about.setVisibility(View.GONE);
				main_refresh_layout.setVisibility(View.VISIBLE);
				box_experiment.setVisibility(View.VISIBLE);
				box_switch.setVisibility(View.VISIBLE);
				box_update.setVisibility(View.VISIBLE);
				title_header.setText(main_title.getText().toString());
				title_header_beta.setTextColor(0xFFFFFFFF);
				title_header_separator.setTextColor(0xFFFFFFFF);
				Animation header_beta;
				header_beta = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);
				header_beta.setDuration(200); title_header_beta.startAnimation(header_beta);
				header_beta = null;
				_Tap_Animation(box_icon_close);
				CLOSER_1 = 0;
				_Animation_0();
			}
		});
		
		main_box_1.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				if (CLICKER_1 == 1) {
					if (SWITCH_VERSION.getString("SWITCH", "").equals("A")) {
						list_items_1.setVisibility(View.VISIBLE);
						list_items_1.setAdapter(new List_items_1Adapter(stock_patched));
						((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
					}
					else {
						if (SWITCH_VERSION.getString("SWITCH", "").equals("B")) {
							list_items_1.setVisibility(View.VISIBLE);
							list_items_1.setAdapter(new List_items_1Adapter(stock_cloned_patched));
							((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged();
						}
					}
					version_oc_01.setImageResource(R.drawable.open);
					version_oc_02.setImageResource(R.drawable.close);
					version_oc_03.setImageResource(R.drawable.close);
					changelogs_oc.setImageResource(R.drawable.close);
					list_items_2.setVisibility(View.GONE);
					list_items_3.setVisibility(View.GONE);
					list_items_5.setVisibility(View.GONE);
					CLICKER_1 = 0;
					CLICKER_2 = 1;
					CLICKER_3 = 1;
					CLICKER_4 = 1;
				}
				else {
					if (CLICKER_1 == 0) {
						version_oc_01.setImageResource(R.drawable.close);
						list_items_1.setVisibility(View.GONE);
						CLICKER_1 = 1;
					}
				}
				Animation animation;
				animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
				animation.setDuration(500); version_oc_01.startAnimation(animation);
				animation = null;
			}
		});
		
		main_box_2.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				if (CLICKER_2 == 1) {
					if (SWITCH_VERSION.getString("SWITCH", "").equals("A")) {
						list_items_2.setVisibility(View.VISIBLE);
						list_items_2.setAdapter(new List_items_2Adapter(amoled_patched));
						((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
					}
					else {
						if (SWITCH_VERSION.getString("SWITCH", "").equals("B")) {
							list_items_2.setVisibility(View.VISIBLE);
							list_items_2.setAdapter(new List_items_2Adapter(amoled_cloned_patched));
							((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged();
						}
					}
					version_oc_01.setImageResource(R.drawable.close);
					version_oc_02.setImageResource(R.drawable.open);
					version_oc_03.setImageResource(R.drawable.close);
					changelogs_oc.setImageResource(R.drawable.close);
					list_items_1.setVisibility(View.GONE);
					list_items_3.setVisibility(View.GONE);
					list_items_5.setVisibility(View.GONE);
					CLICKER_1 = 1;
					CLICKER_2 = 0;
					CLICKER_3 = 1;
					CLICKER_4 = 1;
				}
				else {
					if (CLICKER_2 == 0) {
						version_oc_02.setImageResource(R.drawable.close);
						list_items_2.setVisibility(View.GONE);
						CLICKER_2 = 1;
					}
				}
				Animation animation;
				animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
				animation.setDuration(500); version_oc_02.startAnimation(animation);
				animation = null;
			}
		});
		
		main_box_3.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				if (CLICKER_3 == 1) {
					version_oc_01.setImageResource(R.drawable.close);
					version_oc_02.setImageResource(R.drawable.close);
					version_oc_03.setImageResource(R.drawable.open);
					changelogs_oc.setImageResource(R.drawable.close);
					list_items_1.setVisibility(View.GONE);
					list_items_2.setVisibility(View.GONE);
					list_items_3.setVisibility(View.VISIBLE);
					list_items_5.setVisibility(View.GONE);
					list_items_3.setAdapter(new List_items_3Adapter(other_patched));
					((BaseAdapter)list_items_3.getAdapter()).notifyDataSetChanged();
					CLICKER_1 = 1;
					CLICKER_2 = 1;
					CLICKER_3 = 0;
					CLICKER_4 = 1;
				}
				else {
					if (CLICKER_3 == 0) {
						version_oc_03.setImageResource(R.drawable.close);
						list_items_3.setVisibility(View.GONE);
						CLICKER_3 = 1;
					}
				}
				Animation animation;
				animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
				animation.setDuration(500); version_oc_03.startAnimation(animation);
				animation = null;
			}
		});
		
		main_box_6.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				if (CLICKER_4 == 1) {
					version_oc_01.setImageResource(R.drawable.close);
					version_oc_02.setImageResource(R.drawable.close);
					version_oc_03.setImageResource(R.drawable.close);
					changelogs_oc.setImageResource(R.drawable.open);
					list_items_1.setVisibility(View.GONE);
					list_items_2.setVisibility(View.GONE);
					list_items_3.setVisibility(View.GONE);
					list_items_5.setVisibility(View.VISIBLE);
					list_items_5.setAdapter(new List_items_5Adapter(patched_changelogs));
					((BaseAdapter)list_items_5.getAdapter()).notifyDataSetChanged();
					CLICKER_1 = 1;
					CLICKER_2 = 1;
					CLICKER_3 = 1;
					CLICKER_4 = 0;
				}
				else {
					if (CLICKER_4 == 0) {
						changelogs_oc.setImageResource(R.drawable.close);
						list_items_5.setVisibility(View.GONE);
						CLICKER_4 = 1;
					}
				}
				Animation animation;
				animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
				animation.setDuration(500); changelogs_oc.startAnimation(animation);
				animation = null;
			}
		});
		
		list_items_1.setOnItemClickListener(new AdapterView.OnItemClickListener() {
			@Override
			public void onItemClick(AdapterView<?> _param1, View _param2, int _param3, long _param4) {
				final int _position = _param3;
				try {
					final AlertDialog.Builder Selected_Patched = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
					
					String Title = "<b>".concat(download_ready_0.concat("</b>"));
					String TitleColor = "1DB954";
					
					Selected_Patched.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
					if (SWITCH_VERSION.getString("SWITCH", "").equals("A")) {
						if (_position < 1) {
							if ((_position % 1) == 0) {
								String Message = "<b>VERSION: </b>".concat(stock_patched.get((int)(stock_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("STOCK<br/><br/>").concat(download_ready_desc_0)));
								String MessageColor = "FFFFFF";
								
								Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
							}
						}
						else {
							String Message = "<b>VERSION: </b>".concat(stock_patched.get((int)(stock_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("STOCK<br/><br/>").concat(download_ready_desc_0)));
							String MessageColor = "FFFFFF";
							
							Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
						}
					}
					else {
						if (SWITCH_VERSION.getString("SWITCH", "").equals("B")) {
							if (_position < 1) {
								if ((_position % 1) == 0) {
									String Message = "<b>VERSION: </b>".concat(stock_cloned_patched.get((int)(stock_cloned_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("STOCK CLONED<br/><br/>").concat(download_ready_desc_0)));
									String MessageColor = "FFFFFF";
									
									Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
								}
							}
							else {
								String Message = "<b>VERSION: </b>".concat(stock_cloned_patched.get((int)(stock_cloned_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("STOCK CLONED<br/><br/>").concat(download_ready_desc_0)));
								String MessageColor = "FFFFFF";
								
								Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
							}
						}
					}
					Selected_Patched.setPositiveButton(download_0, new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Selected_Patched, int p) {
							try {
								if (SWITCH_VERSION.getString("SWITCH", "").contains("A")) {
									if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) {
										AlertDialog.setCancelable(true);
										if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
											_Browser(hidden_download_1.getText().toString());
										}
										else {
											_Browser(hidden_download_2.getText().toString());
										}
									}
									else {
										if (mRewardedAd != null) {
											  Activity activityContext = MainActivity.this;
											  mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() {
												    @Override
												    public void onUserEarnedReward(@NonNull RewardItem rewardItem) {
													       AlertDialog.setCancelable(true);
													if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
														_Browser(hidden_download_1.getText().toString());
													}
													else {
														_Browser(hidden_download_2.getText().toString());
													}
													      int rewardAmount = rewardItem.getAmount();
													      String rewardType = rewardItem.getType();
													    }
												  });
										} else {
											AlertDialog.setCancelable(true);
											if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
												_Browser(hidden_download_1.getText().toString());
											}
											else {
												_Browser(hidden_download_2.getText().toString());
											}
										}
									}
								}
								else {
									if (SWITCH_VERSION.getString("SWITCH", "").contains("B")) {
										if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) {
											AlertDialog.setCancelable(true);
											if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
												_Browser(hidden_download_1.getText().toString());
											}
											else {
												_Browser(hidden_download_2.getText().toString());
											}
										}
										else {
											if (mRewardedAd != null) {
												  Activity activityContext = MainActivity.this;
												  mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() {
													    @Override
													    public void onUserEarnedReward(@NonNull RewardItem rewardItem) {
														       AlertDialog.setCancelable(true);
														if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
															_Browser(hidden_download_1.getText().toString());
														}
														else {
															_Browser(hidden_download_2.getText().toString());
														}
														      int rewardAmount = rewardItem.getAmount();
														      String rewardType = rewardItem.getType();
														    }
													  });
											} else {
												AlertDialog.setCancelable(true);
												if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
													_Browser(hidden_download_1.getText().toString());
												}
												else {
													_Browser(hidden_download_2.getText().toString());
												}
											}
										}
									}
								}
							}
							catch(Exception e) {
								com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "The file or link is currently unavailable. Please try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
							}
							                }
						            });
					Selected_Patched.setNegativeButton(cancel_0, new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Selected_Patched, int p) {
							
							AlertDialog.setCancelable(true);
							                }
						            });
					AlertDialog = Selected_Patched.create();
					AlertDialog.setCancelable(false);
					_AlertDialog_Color();
					AlertDialog.show();
					if (SWITCH_VERSION.getString("SWITCH", "").equals("A")) {
						hidden_patched.setText(stock_patched.get((int)(stock_patched.size() - 1) - _position).get("Title").toString());
						hidden_download_1.setText(stock_patched.get((int)(stock_patched.size() - 1) - _position).get("Link_1").toString());
						hidden_download_2.setText(stock_patched.get((int)(stock_patched.size() - 1) - _position).get("Link_2").toString());
					}
					else {
						if (SWITCH_VERSION.getString("SWITCH", "").equals("B")) {
							hidden_patched.setText(stock_cloned_patched.get((int)(stock_cloned_patched.size() - 1) - _position).get("Title").toString());
							hidden_download_1.setText(stock_cloned_patched.get((int)(stock_cloned_patched.size() - 1) - _position).get("Link_1").toString());
							hidden_download_2.setText(stock_cloned_patched.get((int)(stock_cloned_patched.size() - 1) - _position).get("Link_2").toString());
						}
					}
				}
				catch(Exception e) {
				}
			}
		});
		
		list_items_2.setOnItemClickListener(new AdapterView.OnItemClickListener() {
			@Override
			public void onItemClick(AdapterView<?> _param1, View _param2, int _param3, long _param4) {
				final int _position = _param3;
				try {
					final AlertDialog.Builder Selected_Patched = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
					
					String Title = "<b>".concat(download_ready_0.concat("</b>"));
					String TitleColor = "1DB954";
					
					Selected_Patched.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
					if (SWITCH_VERSION.getString("SWITCH", "").equals("A")) {
						if (_position < 1) {
							if ((_position % 1) == 0) {
								String Message = "<b>VERSION: </b>".concat(amoled_patched.get((int)(amoled_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("AMOLED<br/><br/>").concat(download_ready_desc_0)));
								String MessageColor = "FFFFFF";
								
								Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
							}
						}
						else {
							String Message = "<b>VERSION: </b>".concat(amoled_patched.get((int)(amoled_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("AMOLED<br/><br/>").concat(download_ready_desc_0)));
							String MessageColor = "FFFFFF";
							
							Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
						}
					}
					else {
						if (SWITCH_VERSION.getString("SWITCH", "").equals("B")) {
							if (_position < 1) {
								if ((_position % 1) == 0) {
									String Message = "<b>VERSION: </b>".concat(amoled_cloned_patched.get((int)(amoled_cloned_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("AMOLED CLONED<br/><br/>").concat(download_ready_desc_0)));
									String MessageColor = "FFFFFF";
									
									Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
								}
							}
							else {
								String Message = "<b>VERSION: </b>".concat(amoled_cloned_patched.get((int)(amoled_cloned_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("AMOLED CLONED<br/><br/>").concat(download_ready_desc_0)));
								String MessageColor = "FFFFFF";
								
								Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
							}
						}
					}
					Selected_Patched.setPositiveButton(download_0, new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Selected_Patched, int p) {
							try {
								if (SWITCH_VERSION.getString("SWITCH", "").equals("A")) {
									if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) {
										AlertDialog.setCancelable(true);
										if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
											_Browser(hidden_download_1.getText().toString());
										}
										else {
											_Browser(hidden_download_2.getText().toString());
										}
									}
									else {
										if (mRewardedAd != null) {
											  Activity activityContext = MainActivity.this;
											  mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() {
												    @Override
												    public void onUserEarnedReward(@NonNull RewardItem rewardItem) {
													       AlertDialog.setCancelable(true);
													if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
														_Browser(hidden_download_1.getText().toString());
													}
													else {
														_Browser(hidden_download_2.getText().toString());
													}
													      int rewardAmount = rewardItem.getAmount();
													      String rewardType = rewardItem.getType();
													    }
												  });
										} else {
											AlertDialog.setCancelable(true);
											if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
												_Browser(hidden_download_1.getText().toString());
											}
											else {
												_Browser(hidden_download_2.getText().toString());
											}
										}
									}
								}
								else {
									if (SWITCH_VERSION.getString("SWITCH", "").equals("B")) {
										if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) {
											AlertDialog.setCancelable(true);
											if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
												_Browser(hidden_download_1.getText().toString());
											}
											else {
												_Browser(hidden_download_2.getText().toString());
											}
										}
										else {
											if (mRewardedAd != null) {
												  Activity activityContext = MainActivity.this;
												  mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() {
													    @Override
													    public void onUserEarnedReward(@NonNull RewardItem rewardItem) {
														       AlertDialog.setCancelable(true);
														if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
															_Browser(hidden_download_1.getText().toString());
														}
														else {
															_Browser(hidden_download_2.getText().toString());
														}
														      int rewardAmount = rewardItem.getAmount();
														      String rewardType = rewardItem.getType();
														    }
													  });
											} else {
												AlertDialog.setCancelable(true);
												if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
													_Browser(hidden_download_1.getText().toString());
												}
												else {
													_Browser(hidden_download_2.getText().toString());
												}
											}
										}
									}
								}
							}
							catch(Exception e) {
								com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "The file or link is currently unavailable. Please try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
							}
							                }
						            });
					Selected_Patched.setNegativeButton(cancel_0, new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Selected_Patched, int p) {
							
							AlertDialog.setCancelable(true);
							                }
						            });
					AlertDialog = Selected_Patched.create();
					AlertDialog.setCancelable(false);
					_AlertDialog_Color();
					AlertDialog.show();
					if (SWITCH_VERSION.getString("SWITCH", "").equals("A")) {
						hidden_patched.setText(amoled_patched.get((int)(amoled_patched.size() - 1) - _position).get("Title").toString());
						hidden_download_1.setText(amoled_patched.get((int)(amoled_patched.size() - 1) - _position).get("Link_1").toString());
						hidden_download_2.setText(amoled_patched.get((int)(amoled_patched.size() - 1) - _position).get("Link_2").toString());
					}
					else {
						if (SWITCH_VERSION.getString("SWITCH", "").equals("B")) {
							hidden_patched.setText(amoled_cloned_patched.get((int)(amoled_cloned_patched.size() - 1) - _position).get("Title").toString());
							hidden_download_1.setText(amoled_cloned_patched.get((int)(amoled_cloned_patched.size() - 1) - _position).get("Link_1").toString());
							hidden_download_2.setText(amoled_cloned_patched.get((int)(amoled_cloned_patched.size() - 1) - _position).get("Link_2").toString());
						}
					}
				}
				catch(Exception e) {
				}
			}
		});
		
		list_items_3.setOnItemClickListener(new AdapterView.OnItemClickListener() {
			@Override
			public void onItemClick(AdapterView<?> _param1, View _param2, int _param3, long _param4) {
				final int _position = _param3;
				try {
					final AlertDialog.Builder Selected_Patched = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
					
					String Title = "<b>".concat(download_ready_0.concat("</b>"));
					String TitleColor = "1DB954";
					
					Selected_Patched.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
					if (_position < 1) {
						if ((_position % 1) == 0) {
							String Message = "<b>NAME: </b>".concat(other_patched.get((int)(other_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>FEATURES: </b>".concat(other_patched.get((int)(other_patched.size() - 1) - _position).get("Description").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("OTHER<br/><br/>").concat(download_ready_desc_0)))));
							String MessageColor = "FFFFFF";
							
							Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
						}
					}
					else {
						String Message = "<b>NAME: </b>".concat(other_patched.get((int)(other_patched.size() - 1) - _position).get("Title").toString().concat("<br/><b>FEATURES: </b>".concat(other_patched.get((int)(other_patched.size() - 1) - _position).get("Description").toString().concat("<br/><b>PATCHED TYPE: </b>".concat("OTHER<br/><br/>").concat(download_ready_desc_0)))));
						String MessageColor = "FFFFFF";
						
						Selected_Patched.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
					}
					Selected_Patched.setPositiveButton(download_0, new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Selected_Patched, int p) {
							try {
								if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) {
									AlertDialog.setCancelable(true);
									if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
										_Browser(hidden_download_1.getText().toString());
									}
									else {
										_Browser(hidden_download_2.getText().toString());
									}
								}
								else {
									if (mRewardedAd != null) {
										  Activity activityContext = MainActivity.this;
										  mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() {
											    @Override
											    public void onUserEarnedReward(@NonNull RewardItem rewardItem) {
												       AlertDialog.setCancelable(true);
												if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
													_Browser(hidden_download_1.getText().toString());
												}
												else {
													_Browser(hidden_download_2.getText().toString());
												}
												      int rewardAmount = rewardItem.getAmount();
												      String rewardType = rewardItem.getType();
												    }
											  });
									} else {
										AlertDialog.setCancelable(true);
										if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) {
											_Browser(hidden_download_1.getText().toString());
										}
										else {
											_Browser(hidden_download_2.getText().toString());
										}
									}
								}
							}
							catch(Exception e) {
								com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "The file or link is currently unavailable. Please try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
							}
							                }
						            });
					Selected_Patched.setNegativeButton(cancel_0, new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Selected_Patched, int p) {
							
							AlertDialog.setCancelable(true);
							                }
						            });
					AlertDialog = Selected_Patched.create();
					AlertDialog.setCancelable(false);
					_AlertDialog_Color();
					AlertDialog.show();
					hidden_patched.setText(other_patched.get((int)(other_patched.size() - 1) - _position).get("Title").toString());
					hidden_download_1.setText(other_patched.get((int)(other_patched.size() - 1) - _position).get("Link_1").toString());
					hidden_download_2.setText(other_patched.get((int)(other_patched.size() - 1) - _position).get("Link_2").toString());
				}
				catch(Exception e) {
				}
			}
		});
		
		box_uninstall.setOnLongClickListener(new View.OnLongClickListener() {
			@Override
			public boolean onLongClick(View _view) {
				com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Uninstall Patched", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
				return true;
			}
		});
		
		box_uninstall.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					final AlertDialog.Builder Uninstall = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog);
					
					String Title = "<b>".concat(uninstall_patched.getText().toString().concat("</b>"));
					String TitleColor = "1DB954";
					
					Uninstall.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
					Uninstall.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Uninstall, int p) {
							AlertDialog.setCancelable(true);
							try {
									Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); 
									startActivity(intent);
							} catch (Exception e) {
									com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
							}
							
							                }
						            });
					Uninstall.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Uninstall, int p) {
							
							AlertDialog.setCancelable(true);
							try {
									Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); 
									startActivity(intent);
							} catch (Exception e) {	com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
							}
							                }
						            });
					AlertDialog = Uninstall.create();
					AlertDialog.setCancelable(true);
					_AlertDialog_Color();
					AlertDialog.show();
					_Tap_Animation(box_uninstall);
				} catch (Exception e) {
				}
				
			}
		});
		
		box_settings.setOnLongClickListener(new View.OnLongClickListener() {
			@Override
			public boolean onLongClick(View _view) {
				com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Open Patched's App Settings", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
				return true;
			}
		});
		
		box_settings.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					final AlertDialog.Builder Settings = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog);
					
					String Title = "<b>".concat(open_settings.getText().toString().concat("</b>"));
					String TitleColor = "1DB954";
					
					Settings.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
					Settings.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Settings, int p) {
							AlertDialog.setCancelable(true);
							try {
									Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
									intent.setData(Uri.parse("package:com.spotify.music"));
									if (intent.resolveActivity(getPackageManager()) != null) {
											startActivity(intent);
									} else {
											com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Unable to open app settings", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
									}
							} catch (Exception e) {
									com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
							}
							
							                }
						            });
					Settings.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Settings, int p) {
							
							AlertDialog.setCancelable(true);
							try {
									Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
									intent.setData(Uri.parse("package:com.spotify.musix"));
									if (intent.resolveActivity(getPackageManager()) != null) {
											startActivity(intent);
									} else {
											com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Unable to open app settings.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
									}
							} catch (Exception e) {
									com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
							}
							
							                }
						            });
					AlertDialog = Settings.create();
					AlertDialog.setCancelable(true);
					_AlertDialog_Color();
					AlertDialog.show();
					_Tap_Animation(box_settings);
				}
				catch(Exception e) {
				}
			}
		});
		
		box_cache.setOnLongClickListener(new View.OnLongClickListener() {
			@Override
			public boolean onLongClick(View _view) {
				com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Clear Offline Cached Datas", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
				return true;
			}
		});
		
		box_cache.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					if (CHECK == 0) {
						CHECK = 1;
						Timer = new TimerTask() {
							@Override
							public void run() {
								runOnUiThread(new Runnable() {
									@Override
									public void run() {
										CHECK = 0;
									}
								});
							}
						};
						_timer.schedule(Timer, (int)(2000));
						if (Build.VERSION.SDK_INT <= 30) {
								if (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.music/") || (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.musix/"))) {
										FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.music/");
										FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.musix/");
										com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Successfully Deleted", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
								}
								else {
										com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Directory Files Are Empty", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
								}
						} else {
								if (Build.VERSION.SDK_INT >= 31) {
										com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "This feature does not support Android 12 and above", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
								}
						}
						
					}
					_Tap_Animation(box_cache);
				}
				catch(Exception e) {
				}
			}
		});
		
		box_open.setOnLongClickListener(new View.OnLongClickListener() {
			@Override
			public boolean onLongClick(View _view) {
				com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Launch Patched App", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
				return true;
			}
		});
		
		box_open.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					final AlertDialog.Builder Open = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog);
					
					String Title = "<b>".concat(open_patched.getText().toString().concat("</b>"));
					String TitleColor = "1DB954";
					
					Open.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
					Open.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Open, int p) {
							AlertDialog.setCancelable(true);
							String packageName = "com.spotify.music";
							
							Intent intent = getPackageManager().getLaunchIntentForPackage(packageName);
							
							if (intent == null) {
									try {
											intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName));
											intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
									} catch (Exception e) {
											intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + packageName));
											intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
									}
							} else {
									intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
							}
							
							startActivity(intent);
							
							                }
						            });
					Open.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Open, int p) {
							
							AlertDialog.setCancelable(true);
							String packageName = "com.spotify.musix";
							
							Intent intent = getPackageManager().getLaunchIntentForPackage(packageName);
							
							if (intent == null) {
									try {
											intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName));
											intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
									} catch (Exception e) {
											intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + packageName));
											intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
									}
							} else {
									intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
							}
							
							startActivity(intent);
							
							                }
						            });
					AlertDialog = Open.create();
					AlertDialog.setCancelable(true);
					_AlertDialog_Color();
					AlertDialog.show();
					_Tap_Animation(box_open);
				}
				catch(Exception e) {
				}
			}
		});
		
		box_support.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					_Browser(Datas.get("Telegram").toString());
					_Tap_Animation(box_support);
				}
				catch(Exception e) {
				}
			}
		});
		
		box_reddit.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					_Browser(Datas.get("Reddit").toString());
					_Tap_Animation(box_reddit);
				}
				catch(Exception e) {
				}
			}
		});
		
		box_donate.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					final AlertDialog.Builder Donation = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);
					
					String Title = "<b>".concat(show_support.getText().toString().concat("</b>"));
					String TitleColor = "1DB954";
					
					Donation.setTitle(Html.fromHtml("<font color=\"#" + TitleColor + "\">"+Title+"</font>"));
					String Message = show_support_desc.getText().toString().replace("\n", "<br/>");
					String MessageColor = "FFFFFF";
					
					Donation.setMessage(Html.fromHtml("<font color=\"#" + MessageColor + "\">"+Message+"</font>"));
					Donation.setPositiveButton(donate.getText().toString(), new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Donation, int p) {
							AlertDialog.setCancelable(true);
							try {
								_Browser(Datas.get("Donate").toString());
							}
							catch(Exception e) {
							}
							                }
						            });
					 Donation.setNeutralButton(not_now.getText().toString(), new DialogInterface.OnClickListener(){
						
						                @Override
						                public void onClick(DialogInterface Donation, int p) {
							AlertDialog.setCancelable(true);
							                }
						            });
					AlertDialog = Donation.create();
					AlertDialog.setCancelable(false);
					_AlertDialog_Color();
					AlertDialog.show();
					_Tap_Animation(box_donate);
				}
				catch(Exception e) {
				}
			}
		});
		
		box_about.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				RippleAnimation.create(box_about).setDuration((long)1000).start();
				main_body_optimization.setVisibility(View.GONE);
				main_scroll_settings.setVisibility(View.GONE);
				main_scroll_about.setVisibility(View.VISIBLE);
				main_refresh_layout.setVisibility(View.GONE);
				box_experiment.setVisibility(View.GONE);
				box_switch.setVisibility(View.GONE);
				box_update.setVisibility(View.GONE);
				title_header.setText(about_title.getText().toString());
				title_header_beta.setTextColor(Color.TRANSPARENT);
				title_header_separator.setTextColor(Color.TRANSPARENT);
				_Tap_Animation(box_about);
				CLOSER_1 = 1;
				_Animation_2();
			}
		});
		
		box_discord.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					_Browser(Datas.get("Discord").toString());
					_Tap_Animation(box_discord);
				}
				catch(Exception e) {
				}
			}
		});
		
		box_source.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					_Browser(Datas.get("Source").toString());
					_Tap_Animation(box_source);
				}
				catch(Exception e) {
				}
			}
		});
		
		box_website.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					_Browser(Datas.get("Website").toString());
					_Tap_Animation(box_website);
				}
				catch(Exception e) {
				}
			}
		});
		
		box_faq.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View _view) {
				try {
					_Browser(Datas.get("FAQ").toString());
					_Tap_Animation(box_faq);
				}
				catch(Exception e) {
				}
			}
		});
		
		_Connection_request_listener = new RequestNetwork.RequestListener() {
			@Override
			public void onResponse(String _param1, String _param2, HashMap<String, Object> _param3) {
				final String _tag = _param1;
				final String _response = _param2;
				final HashMap<String, Object> _responseHeaders = _param3;
				Timer = new TimerTask() {
						@Override
						public void run() {
								runOnUiThread(new Runnable() {
										@Override
										public void run() {
												try {
														Datas = new Gson().fromJson(_response, new TypeToken<HashMap<String, Object>>(){}.getType());
														_Backbone();
												} catch (Exception e) {
														_Backbone();
												}
												
										}
								});
						}
				};
				_timer.schedule(Timer, (int)(0));
				
			}
			
			@Override
			public void onErrorResponse(String _param1, String _param2) {
				final String _tag = _param1;
				final String _message = _param2;
				
			}
		};
	}
	
	private void initializeLogic() {
		_API();
		_Initialize();
		_Reinitialize();
		_Animation_0();
		_Gate_Keeper();
		_Theme_Pack();
		_Language_Pack();
		_Dark_Navigation();
	}
	
	@Override
	public void onBackPressed() {
		try {
			if (CLOSER_1 == 1) {
				CHECK = 0;
				box_icon_close.performClick();
			}
			else {
				if (CLOSER_2 == 1) {
					CHECK = 0;
					box_settings_icon_close.performClick();
				}
			}
			if (CHECK == 0) {
				CHECK = 1;
				Timer = new TimerTask() {
					@Override
					public void run() {
						runOnUiThread(new Runnable() {
							@Override
							public void run() {
								CHECK = 0;
							}
						});
					}
				};
				_timer.schedule(Timer, (int)(3000));
				com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Press back again to exit", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
			}
			else {
				finishAndRemoveTask();
				finishAffinity();
			}
		}
		catch(Exception e) {
		}
	}
	
	public void _Informations() {
		Timer = new TimerTask() {
			@Override
			public void run() {
				runOnUiThread(new Runnable() {
					@Override
					public void run() {
						Timer = new TimerTask() {
							@Override
							public void run() {
								runOnUiThread(new Runnable() {
									@Override
									public void run() {
										if (Installed_Checker.equals("true") && Installed_Checker_Cloned.equals("true")) {
											sub_installed.setVisibility(View.VISIBLE);
											sub_separator_1.setVisibility(View.VISIBLE);
											sub_installed_c.setVisibility(View.VISIBLE);
											sub_installed.setTextColor(0xFFFFFFFF);
											sub_separator_1.setTextColor(0xFF616161);
											sub_installed_c.setTextColor(0xFFBDBDBD);
										}
										else {
											if (Installed_Checker.equals("false") && Installed_Checker_Cloned.equals("false")
Download .txt
gitextract_xj3b05el/

├── .github/
│   ├── FUNDING.yml
│   └── ISSUE_TEMPLATE/
│       ├── bug_report.yml
│       └── idea.yml
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── app/
│   ├── build.gradle
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           ├── java/
│           │   └── com/
│           │       └── xc3fff0e/
│           │           └── xmanager/
│           │               ├── FileUtil.java
│           │               ├── MainActivity.java
│           │               ├── RequestNetwork.java
│           │               ├── RequestNetworkController.java
│           │               ├── SketchwareUtil.java
│           │               ├── SplashActivity.java
│           │               ├── xManager.java
│           │               └── xManagerLogger.java
│           └── res/
│               ├── anim/
│               │   ├── slide_in_left.xml
│               │   ├── slide_in_right.xml
│               │   ├── slide_out_left.xml
│               │   └── slide_out_right.xml
│               ├── drawable/
│               │   ├── background.xml
│               │   ├── divider.xml
│               │   ├── light_blue.xml
│               │   ├── light_cyan.xml
│               │   ├── light_green.xml
│               │   ├── light_orange.xml
│               │   ├── light_pink.xml
│               │   ├── light_purple.xml
│               │   ├── light_red.xml
│               │   ├── progress_bar.xml
│               │   ├── progress_dialog.xml
│               │   ├── scrollbar_vertical_thumb.xml
│               │   ├── state_off.xml
│               │   ├── state_on.xml
│               │   ├── thumb.xml
│               │   └── track.xml
│               ├── layout/
│               │   ├── list_changelogs.xml
│               │   ├── list_versions.xml
│               │   ├── main.xml
│               │   └── splash.xml
│               ├── mipmap-anydpi-v26/
│               │   ├── xmanager.xml
│               │   └── xmanager_round.xml
│               └── values/
│                   ├── colors.xml
│                   ├── icon.xml
│                   ├── strings.xml
│                   └── styles.xml
├── build.gradle
├── gradle.properties
└── settings.gradle
Download .txt
SYMBOL INDEX (201 symbols across 8 files)

FILE: app/src/main/java/com/xc3fff0e/xmanager/FileUtil.java
  class FileUtil (line 38) | public class FileUtil {
    method createNewFile (line 40) | private static void createNewFile(String path) {
    method readFile (line 56) | public static String readFile(String path) {
    method writeFile (line 85) | public static void writeFile(String path, String str) {
    method copyFile (line 105) | public static void copyFile(String sourcePath, String destPath) {
    method copyDir (line 142) | public static void copyDir(String oldPath, String newPath) {
    method moveFile (line 158) | public static void moveFile(String sourcePath, String destPath) {
    method deleteFile (line 163) | public static void deleteFile(String path) {
    method isExistFile (line 190) | public static boolean isExistFile(String path) {
    method makeDir (line 195) | public static void makeDir(String path) {
    method listDir (line 202) | public static void listDir(String path, ArrayList<String> list) {
    method isDirectory (line 216) | public static boolean isDirectory(String path) {
    method isFile (line 221) | public static boolean isFile(String path) {
    method getFileLength (line 226) | public static long getFileLength(String path) {
    method getExternalStorageDir (line 231) | public static String getExternalStorageDir() {
    method getPackageDataDir (line 235) | public static String getPackageDataDir(Context context) {
    method getPublicDir (line 239) | public static String getPublicDir(String type) {
    method convertUriToFilePath (line 243) | public static String convertUriToFilePath(final Context context, final...
    method getDataColumn (line 304) | private static String getDataColumn(Context context, Uri uri, String s...
    method isExternalStorageDocument (line 322) | private static boolean isExternalStorageDocument(Uri uri) {
    method isDownloadsDocument (line 326) | private static boolean isDownloadsDocument(Uri uri) {
    method isMediaDocument (line 330) | private static boolean isMediaDocument(Uri uri) {
    method saveBitmap (line 334) | private static void saveBitmap(Bitmap bitmap, String destPath) {
    method getScaledBitmap (line 343) | public static Bitmap getScaledBitmap(String path, int max) {
    method calculateInSampleSize (line 363) | public static int calculateInSampleSize(BitmapFactory.Options options,...
    method decodeSampleBitmapFromPath (line 380) | public static Bitmap decodeSampleBitmapFromPath(String path, int reqWi...
    method resizeBitmapFileRetainRatio (line 391) | public static void resizeBitmapFileRetainRatio(String fromPath, String...
    method resizeBitmapFileToSquare (line 397) | public static void resizeBitmapFileToSquare(String fromPath, String de...
    method resizeBitmapFileToCircle (line 404) | public static void resizeBitmapFileToCircle(String fromPath, String de...
    method resizeBitmapFileWithRoundedBorder (line 426) | public static void resizeBitmapFileWithRoundedBorder(String fromPath, ...
    method cropBitmapFileFromCenter (line 450) | public static void cropBitmapFileFromCenter(String fromPath, String de...
    method rotateBitmapFile (line 477) | public static void rotateBitmapFile(String fromPath, String destPath, ...
    method scaleBitmapFile (line 486) | public static void scaleBitmapFile(String fromPath, String destPath, f...
    method skewBitmapFile (line 499) | public static void skewBitmapFile(String fromPath, String destPath, fl...
    method setBitmapFileColorFilter (line 512) | public static void setBitmapFileColorFilter(String fromPath, String de...
    method setBitmapFileBrightness (line 525) | public static void setBitmapFileBrightness(String fromPath, String des...
    method setBitmapFileContrast (line 544) | public static void setBitmapFileContrast(String fromPath, String destP...
    method getJpegRotate (line 564) | public static int getJpegRotate(String filePath) {
    method createNewPictureFile (line 590) | public static File createNewPictureFile(Context context) {

FILE: app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java
  class MainActivity (line 93) | public class MainActivity extends AppCompatActivity {
    method onCreate (line 487) | @Override
    method onRequestPermissionsResult (line 504) | @Override
    method initialize (line 512) | private void initialize(Bundle _savedInstanceState) {
    method initializeLogic (line 2980) | private void initializeLogic() {
    method onBackPressed (line 2991) | @Override
    method _Informations (line 3029) | public void _Informations() {
    method _Theme_UI (line 3136) | public void _Theme_UI() {
    method _Updater (line 4090) | public void _Updater() {
    method _Effects (line 4188) | public void _Effects() {
    method _Ripple (line 4199) | public void _Ripple(final View _view, final String _c) {
    class Drawables (line 4205) | public static class Drawables {
      method getSelectableDrawableFor (line 4206) | public static android.graphics.drawable.Drawable getSelectableDrawab...
      method getRippleColor (line 4235) | private static android.graphics.drawable.Drawable getRippleColor(int...
      method lightenOrDarken (line 4246) | private static int lightenOrDarken(int color, double fraction) {
      method lighten (line 4254) | private static int lighten(int color, double fraction) {
      method darken (line 4265) | private static int darken(int color, double fraction) {
      method canLighten (line 4277) | private static boolean canLighten(int color, double fraction) {
      method canLightenComponent (line 4286) | private static boolean canLightenComponent(int colorComponent, doubl...
      method darkenColor (line 4295) | private static int darkenColor(int color, double fraction) {
      method lightenColor (line 4299) | private static int lightenColor(int color, double fraction) {
    class CircleDrawables (line 4303) | public static class CircleDrawables {
      method getSelectableDrawableFor (line 4304) | public static android.graphics.drawable.Drawable getSelectableDrawab...
      method getRippleColor (line 4333) | private static android.graphics.drawable.Drawable getRippleColor(int...
      method lightenOrDarken (line 4344) | private static int lightenOrDarken(int color, double fraction) {
      method lighten (line 4352) | private static int lighten(int color, double fraction) {
      method darken (line 4363) | private static int darken(int color, double fraction) {
      method canLighten (line 4375) | private static boolean canLighten(int color, double fraction) {
      method canLightenComponent (line 4384) | private static boolean canLightenComponent(int colorComponent, doubl...
      method darkenColor (line 4393) | private static int darkenColor(int color, double fraction) {
      method lightenColor (line 4397) | private static int lightenColor(int color, double fraction) {
    method drawableclass (line 4402) | public void drawableclass() {
    method _Animation_0 (line 4411) | public void _Animation_0() {
    method _Animation_1 (line 4471) | public void _Animation_1() {
    method _Animation_2 (line 4511) | public void _Animation_2() {
    method _Dark_Navigation (line 4547) | public void _Dark_Navigation() {
    method _List_Updater (line 4555) | public void _List_Updater() {
    method _Switch_Fixer (line 4716) | public void _Switch_Fixer() {
    method _Language_UI (line 4728) | public void _Language_UI() {
    method _Language_Pack (line 8319) | public void _Language_Pack() {
    method _Theme_Pack (line 8387) | public void _Theme_Pack() {
    method _Language_Fixer (line 8430) | public void _Language_Fixer() {
    method _Browser (line 8513) | public void _Browser(final String _String_Text) {
    method getCurrentContext (line 8523) | public Context getCurrentContext(Context c) {
    method getCurrentContext (line 8526) | public Context getCurrentContext(Fragment c) {
    method getCurrentContext (line 8529) | public Context getCurrentContext(DialogFragment c) {
    method _Gate_Keeper (line 8536) | public void _Gate_Keeper() {
    method _Extra (line 8540) | public void _Extra() {
    method _Animation_3 (line 8604) | public void _Animation_3() {
    method _Scroll_Fixed (line 8640) | public void _Scroll_Fixed() {
    method _Tap_Animation (line 8680) | public void _Tap_Animation(final View _Linear) {
    method _Maintenance (line 8689) | public void _Maintenance() {
    method _Rewarded_AdMob (line 8734) | public void _Rewarded_AdMob() {
    method _Ads_AdMob (line 8769) | public void _Ads_AdMob() {
    method _API (line 8790) | public void _API() {
    method _Backbone (line 8800) | public void _Backbone() {
    method _Initialize (line 8869) | public void _Initialize() {
    method _API_Token (line 9298) | public void _API_Token() {
    method _Clickers (line 9358) | public void _Clickers() {
    method _Reinitialize (line 9366) | public void _Reinitialize() {
    method _Reminder (line 9460) | public void _Reminder() {
    method _Animation_4 (line 9472) | public void _Animation_4() {
    method _Layout_Transition (line 9488) | public void _Layout_Transition() {
    method _Reboot (line 9524) | public void _Reboot() {
    method _Refetch (line 9600) | public void _Refetch() {
    method _Hide_Patched (line 9651) | public void _Hide_Patched() {
    method _Hide_Reminder (line 9675) | public void _Hide_Reminder() {
    method _GDRP_Message (line 9680) | public void _GDRP_Message() {
    method _GDPR_Consent (line 9718) | public void _GDPR_Consent() {
    method _Personalized_Ads (line 9746) | public void _Personalized_Ads() {
    method _Non_Personalized_Ads (line 9751) | public void _Non_Personalized_Ads() {
    method _Original_Theme (line 9756) | public void _Original_Theme() {
    method _AlertDialog_Color (line 9870) | public void _AlertDialog_Color() {
    class List_items_1Adapter (line 9909) | public class List_items_1Adapter extends BaseAdapter {
      method List_items_1Adapter (line 9913) | public List_items_1Adapter(ArrayList<HashMap<String, Object>> _arr) {
      method getCount (line 9917) | @Override
      method getItem (line 9922) | @Override
      method getItemId (line 9927) | @Override
      method getView (line 9932) | @Override
    class List_items_2Adapter (line 9986) | public class List_items_2Adapter extends BaseAdapter {
      method List_items_2Adapter (line 9990) | public List_items_2Adapter(ArrayList<HashMap<String, Object>> _arr) {
      method getCount (line 9994) | @Override
      method getItem (line 9999) | @Override
      method getItemId (line 10004) | @Override
      method getView (line 10009) | @Override
    class List_items_3Adapter (line 10063) | public class List_items_3Adapter extends BaseAdapter {
      method List_items_3Adapter (line 10067) | public List_items_3Adapter(ArrayList<HashMap<String, Object>> _arr) {
      method getCount (line 10071) | @Override
      method getItem (line 10076) | @Override
      method getItemId (line 10081) | @Override
      method getView (line 10086) | @Override
    class List_items_5Adapter (line 10135) | public class List_items_5Adapter extends BaseAdapter {
      method List_items_5Adapter (line 10139) | public List_items_5Adapter(ArrayList<HashMap<String, Object>> _arr) {
      method getCount (line 10143) | @Override
      method getItem (line 10148) | @Override
      method getItemId (line 10153) | @Override
      method getView (line 10158) | @Override
    method showMessage (line 10192) | @Deprecated
    method getLocationX (line 10197) | @Deprecated
    method getLocationY (line 10204) | @Deprecated
    method getRandom (line 10211) | @Deprecated
    method getCheckedItemPositionsToArray (line 10217) | @Deprecated
    method getDip (line 10228) | @Deprecated
    method getDisplayWidthPixels (line 10233) | @Deprecated
    method getDisplayHeightPixels (line 10238) | @Deprecated

FILE: app/src/main/java/com/xc3fff0e/xmanager/RequestNetwork.java
  class RequestNetwork (line 7) | public class RequestNetwork {
    method RequestNetwork (line 15) | public RequestNetwork(Activity activity) {
    method setHeaders (line 19) | public void setHeaders(HashMap<String, Object> headers) {
    method setParams (line 23) | public void setParams(HashMap<String, Object> params, int requestType) {
    method getParams (line 28) | public HashMap<String, Object> getParams() {
    method getHeaders (line 32) | public HashMap<String, Object> getHeaders() {
    method getActivity (line 36) | public Activity getActivity() {
    method getRequestType (line 40) | public int getRequestType() {
    method startRequestNetwork (line 44) | public void startRequestNetwork(String method, String url, String tag,...
    type RequestListener (line 48) | public interface RequestListener {
      method onResponse (line 49) | public void onResponse(String tag, String response, HashMap<String, ...
      method onErrorResponse (line 50) | public void onErrorResponse(String tag, String message);

FILE: app/src/main/java/com/xc3fff0e/xmanager/RequestNetworkController.java
  class RequestNetworkController (line 30) | public class RequestNetworkController {
    method getInstance (line 46) | public static synchronized RequestNetworkController getInstance() {
    method getClient (line 53) | private OkHttpClient getClient() {
    method execute (line 99) | public void execute(final RequestNetwork requestNetwork, String method...

FILE: app/src/main/java/com/xc3fff0e/xmanager/SketchwareUtil.java
  class SketchwareUtil (line 14) | public class SketchwareUtil {
    method CustomToast (line 20) | public static void CustomToast(Context _context, String _message, int ...
    method CustomToastWithIcon (line 51) | public static void CustomToastWithIcon(Context _context, String _messa...
    method sortListMap (line 84) | public static void sortListMap(final ArrayList<HashMap<String, Object>...
    method CropImage (line 106) | public static void CropImage(Activity _activity, String _path, int _re...
    method isConnected (line 124) | public static boolean isConnected(Context _context) {
    method copyFromInputStream (line 130) | public static String copyFromInputStream(InputStream _inputStream) {
    method hideKeyboard (line 146) | public static void hideKeyboard(Context _context) {
    method showKeyboard (line 151) | public static void showKeyboard(Context _context) {
    method showMessage (line 156) | public static void showMessage(Context _context, String _s) {
    method getLocationX (line 160) | public static int getLocationX(View _view) {
    method getLocationY (line 166) | public static int getLocationY(View _view) {
    method getRandom (line 172) | public static int getRandom(int _min, int _max) {
    method getCheckedItemPositionsToArray (line 177) | public static ArrayList<Double> getCheckedItemPositionsToArray(ListVie...
    method getDip (line 187) | public static float getDip(Context _context, int _input) {
    method getDisplayWidthPixels (line 191) | public static int getDisplayWidthPixels(Context _context) {
    method getDisplayHeightPixels (line 195) | public static int getDisplayHeightPixels(Context _context) {
    method getAllKeysFromMap (line 199) | public static void getAllKeysFromMap(Map<String, Object> _map, ArrayLi...

FILE: app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java
  class SplashActivity (line 45) | public class SplashActivity extends AppCompatActivity {
    method onCreate (line 57) | @Override
    method initialize (line 68) | private void initialize(Bundle _savedInstanceState) {
    method initializeLogic (line 75) | private void initializeLogic() {
    method onBackPressed (line 138) | @Override
    method _Dark_Navigation (line 142) | public void _Dark_Navigation() {
    method _Theme_UI (line 150) | public void _Theme_UI() {
    method showMessage (line 190) | @Deprecated
    method getLocationX (line 195) | @Deprecated
    method getLocationY (line 202) | @Deprecated
    method getRandom (line 209) | @Deprecated
    method getCheckedItemPositionsToArray (line 215) | @Deprecated
    method getDip (line 226) | @Deprecated
    method getDisplayWidthPixels (line 231) | @Deprecated
    method getDisplayHeightPixels (line 236) | @Deprecated

FILE: app/src/main/java/com/xc3fff0e/xmanager/xManager.java
  class xManager (line 11) | public class xManager extends Application {
    method getContext (line 16) | public static Context getContext() {
    method onCreate (line 20) | @Override

FILE: app/src/main/java/com/xc3fff0e/xmanager/xManagerLogger.java
  class xManagerLogger (line 12) | public class xManagerLogger {
    method run (line 15) | @Override
    method startLogging (line 45) | public static void startLogging() {
    method broadcastLog (line 53) | public static void broadcastLog(String log) {
    method stopLogging (line 63) | public static void stopLogging() {
Condensed preview — 50 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,496K chars).
[
  {
    "path": ".github/FUNDING.yml",
    "chars": 773,
    "preview": "# These are supported funding model platforms\n\ngithub: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [u"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.yml",
    "chars": 2093,
    "preview": "name: ❌ Bug report\ndescription: Report errors or unexpected behavior\nlabels: ❌ bug\nbody:\n- type: checkboxes\n  attributes"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/idea.yml",
    "chars": 613,
    "preview": "name: 💡 Suggest an idea\ndescription: Suggest a new feature or improvement\nlabels: 💡 enhancement\nbody:\n- type: textarea\n "
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "chars": 5220,
    "preview": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participa"
  },
  {
    "path": "CONTRIBUTING.md",
    "chars": 415,
    "preview": "**CODE CHANGE:** Pull request should be done on the **\"Developer\"** branch.  \n\n**TRANSLATION CHANGE/UPDATE:** Pull reque"
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "README.md",
    "chars": 8363,
    "preview": "<p align=\"center\">\n  <a href=\"https://www.xmanagerapp.com/\"><img width=\"200\" src=\"https://i.ibb.co/64bJncy/xmanger.gif\">"
  },
  {
    "path": "app/build.gradle",
    "chars": 862,
    "preview": "plugins {\r\n\tid 'com.android.application'\r\n}\r\n\r\nandroid {\r\n\tcompileSdkVersion 28\r\n\t\r\n\tuseLibrary 'org.apache.http.legacy'"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "chars": 2474,
    "preview": "<manifest\r\n\txmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n\tpackage=\"com.xc3fff0e.xmanager\">\r\n\t<uses-permis"
  },
  {
    "path": "app/src/main/java/com/xc3fff0e/xmanager/FileUtil.java",
    "chars": 19986,
    "preview": "package com.xc3fff0e.xmanager;\n\nimport android.content.ContentResolver;\nimport android.content.ContentUris;\nimport andro"
  },
  {
    "path": "app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java",
    "chars": 595027,
    "preview": "package com.xc3fff0e.xmanager;\r\n\r\nimport com.xc3fff0e.xmanager.SplashActivity;\r\nimport android.Manifest;\r\nimport android"
  },
  {
    "path": "app/src/main/java/com/xc3fff0e/xmanager/RequestNetwork.java",
    "chars": 1310,
    "preview": "package com.xc3fff0e.xmanager;\r\n\r\nimport android.app.Activity;\r\n\r\nimport java.util.HashMap;\r\n\r\npublic class RequestNetwo"
  },
  {
    "path": "app/src/main/java/com/xc3fff0e/xmanager/RequestNetworkController.java",
    "chars": 5924,
    "preview": "package com.xc3fff0e.xmanager;\n\nimport com.google.gson.Gson;\n\nimport java.io.IOException;\nimport java.security.SecureRan"
  },
  {
    "path": "app/src/main/java/com/xc3fff0e/xmanager/SketchwareUtil.java",
    "chars": 8367,
    "preview": "package com.xc3fff0e.xmanager;\r\nimport android.app.*;\r\nimport android.content.*;\r\nimport android.graphics.drawable.*;\r\ni"
  },
  {
    "path": "app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java",
    "chars": 7103,
    "preview": "package com.xc3fff0e.xmanager;\r\n\r\nimport android.animation.*;\r\nimport android.app.*;\r\nimport android.app.Activity;\r\nimpo"
  },
  {
    "path": "app/src/main/java/com/xc3fff0e/xmanager/xManager.java",
    "chars": 1609,
    "preview": "package com.xc3fff0e.xmanager;\n\nimport android.app.AlarmManager;\nimport android.app.Application;\nimport android.app.Pend"
  },
  {
    "path": "app/src/main/java/com/xc3fff0e/xmanager/xManagerLogger.java",
    "chars": 1802,
    "preview": "package com.xc3fff0e.xmanager;\n\nimport android.content.Intent;\n\nimport java.io.BufferedReader;\nimport java.io.IOExceptio"
  },
  {
    "path": "app/src/main/res/anim/slide_in_left.xml",
    "chars": 195,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<translate xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android"
  },
  {
    "path": "app/src/main/res/anim/slide_in_right.xml",
    "chars": 199,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<translate xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    andro"
  },
  {
    "path": "app/src/main/res/anim/slide_out_left.xml",
    "chars": 200,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<translate xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    andro"
  },
  {
    "path": "app/src/main/res/anim/slide_out_right.xml",
    "chars": 199,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<translate xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    andro"
  },
  {
    "path": "app/src/main/res/drawable/background.xml",
    "chars": 322,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/divider.xml",
    "chars": 338,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/light_blue.xml",
    "chars": 322,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/light_cyan.xml",
    "chars": 322,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/light_green.xml",
    "chars": 322,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/light_orange.xml",
    "chars": 322,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/light_pink.xml",
    "chars": 322,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/light_purple.xml",
    "chars": 322,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/light_red.xml",
    "chars": 322,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/progress_bar.xml",
    "chars": 691,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/progress_dialog.xml",
    "chars": 322,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/scrollbar_vertical_thumb.xml",
    "chars": 189,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <solid and"
  },
  {
    "path": "app/src/main/res/drawable/state_off.xml",
    "chars": 310,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/state_on.xml",
    "chars": 310,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "app/src/main/res/drawable/thumb.xml",
    "chars": 251,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item a"
  },
  {
    "path": "app/src/main/res/drawable/track.xml",
    "chars": 730,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item a"
  },
  {
    "path": "app/src/main/res/layout/list_changelogs.xml",
    "chars": 854,
    "preview": "<LinearLayout\r\n\txmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n\txmlns:app=\"http://schemas.android.com/apk/r"
  },
  {
    "path": "app/src/main/res/layout/list_versions.xml",
    "chars": 2062,
    "preview": "<LinearLayout\r\n\txmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n\txmlns:app=\"http://schemas.android.com/apk/r"
  },
  {
    "path": "app/src/main/res/layout/main.xml",
    "chars": 118410,
    "preview": "<LinearLayout\r\n\txmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n\txmlns:app=\"http://schemas.android.com/apk/r"
  },
  {
    "path": "app/src/main/res/layout/splash.xml",
    "chars": 1284,
    "preview": "<LinearLayout\r\n\txmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n\txmlns:app=\"http://schemas.android.com/apk/r"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/xmanager.xml",
    "chars": 326,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <b"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/xmanager_round.xml",
    "chars": 325,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <b"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "chars": 310,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<resources>\r\n\t<color name=\"colorPrimary\">#171717</color>\r\n\t<color name=\"colorPri"
  },
  {
    "path": "app/src/main/res/values/icon.xml",
    "chars": 118,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"xmanager_background\">#171717</color>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "chars": 423913,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><resources>\r\n    <!--DEFAULT LANGUAGE-->\r\n    <string name=\"app_name\" translatable"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "chars": 11424,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><resources>\r\n    <style name=\"Theme_Origins\" parent=\"Theme.Material3.Light.NoActio"
  },
  {
    "path": "build.gradle",
    "chars": 611,
    "preview": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\r\nbuildscript {\r\n    "
  },
  {
    "path": "gradle.properties",
    "chars": 52,
    "preview": "android.useAndroidX=true\nandroid.enableJetifier=true"
  },
  {
    "path": "settings.gradle",
    "chars": 15,
    "preview": "include ':app'\n"
  }
]

About this extraction

This page contains the full source code of the Team-xManager/xManager GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 50 files (1.2 MB), approximately 321.9k tokens, and a symbol index with 201 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!