From: Radek Czajka Date: Tue, 13 Jan 2015 13:40:13 +0000 (+0100) Subject: Migrate to gradle, appcompat as external dependency. X-Git-Tag: 1.02~1 X-Git-Url: https://git.mdrn.pl/mobilnebezpieczenstwo.git/commitdiff_plain/be45943134f44b96728f516e91a66149e51443c0 Migrate to gradle, appcompat as external dependency. --- diff --git a/.gitignore b/.gitignore index bcfdb84..c62b2fb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -/bin -/gen +/build /local.properties diff --git a/AndroidManifest.xml b/AndroidManifest.xml deleted file mode 100644 index e7decd3..0000000 --- a/AndroidManifest.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..dba13ed --- /dev/null +++ b/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are 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. + + 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. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + 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 Affero 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. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + 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 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 work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero 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 Affero 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 Affero 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 Affero 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. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + 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 AGPL, see +. diff --git a/app/app.iml b/app/app.iml new file mode 100644 index 0000000..8e83694 --- /dev/null +++ b/app/app.iml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..421d2a1 --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,25 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 'Google Inc.:Google APIs:21' + buildToolsVersion "21.1.2" + + defaultConfig { + applicationId "com.samsung.srpol" + minSdkVersion 8 + targetSdkVersion 21 + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + } +} + +dependencies { + compile 'com.android.support:appcompat-v7:21.0.3' + compile files('libs/listviewanimations_lib-core_3.1.0.jar') + compile files('libs/nineoldandroids-2.4.0.jar') +} diff --git a/app/libs/listviewanimations_lib-core_3.1.0.jar b/app/libs/listviewanimations_lib-core_3.1.0.jar new file mode 100644 index 0000000..68e3c5a Binary files /dev/null and b/app/libs/listviewanimations_lib-core_3.1.0.jar differ diff --git a/app/libs/nineoldandroids-2.4.0.jar b/app/libs/nineoldandroids-2.4.0.jar new file mode 100644 index 0000000..43ee45f Binary files /dev/null and b/app/libs/nineoldandroids-2.4.0.jar differ diff --git a/app/lint.xml b/app/lint.xml new file mode 100644 index 0000000..8423c0e --- /dev/null +++ b/app/lint.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..e7decd3 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/ic_launcher-web.png b/app/src/main/ic_launcher-web.png new file mode 100644 index 0000000..b843eee Binary files /dev/null and b/app/src/main/ic_launcher-web.png differ diff --git a/app/src/main/java/com/samsung/srpol/data/Category.java b/app/src/main/java/com/samsung/srpol/data/Category.java new file mode 100644 index 0000000..8127b82 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/data/Category.java @@ -0,0 +1,147 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.data; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +import com.samsung.srpol.loader.AppDetails; + +import android.content.Context; +import android.graphics.drawable.Drawable; + +public class Category { + + private String mTitle; + private String mHeader; + private String mDescription; + private String mShortDescription; + private int mSubCategoriesMask; + private int mIconRes; + private String mLink; + private boolean mCanSendData; + private Drawable mIconDrawable; + private ArrayList mSubCategories; + private ArrayList mRelatedApps = new ArrayList(); + private int mCurrentlyVisible; + + public Category(Context ctx, String title, String header, + String shortDescription, String description, int icon, String link, + boolean dataSend, ArrayList subCategories) { + mTitle = title; + mHeader = header; + mShortDescription = shortDescription; + mDescription = description; + mIconRes = icon; + mLink = link; + mIconDrawable = ctx.getResources().getDrawable(mIconRes); + mSubCategories = subCategories; + for (Subcategory subcategory : mSubCategories) + mSubCategoriesMask = mSubCategoriesMask | subcategory.getId(); + mCanSendData = dataSend; + mCurrentlyVisible = mRelatedApps.size(); + } + + public void removeAppFromList(AppDetails removed) { + mRelatedApps.remove(removed); + } + + public int getSubCategoriesMask() { + return mSubCategoriesMask; + } + + public void addApplicationToCategory(AppDetails toBeAdded) { + int size = mRelatedApps.size(); + addAppToList(toBeAdded); + if (size < mRelatedApps.size()) + Collections.sort(mRelatedApps, AppDetails.SMART_COMPARATOR); + } + + private void addAppToList(AppDetails toBeAdded) { + // Checking if any subcategory fits + if (!toBeAdded.isInSubcategory(mSubCategoriesMask) + || (mCanSendData && !toBeAdded + .isInSubcategory(Subcategory.CAN_SEND_DATA_SUB_CATEGORY_ID))) + return; + mRelatedApps.add(toBeAdded); + } + + public List getSubCategories() { + return mSubCategories; + } + + /** + * Create app list + */ + public void assignAppsToCategory(List appDetailsList) { + mRelatedApps.clear(); + + if (appDetailsList != null && mSubCategories != null) { + for (AppDetails appDetails : appDetailsList) { + addAppToList(appDetails); + } + } + } + + /** + * @return the mRelatedApps + */ + public ArrayList getRelatedApps() { + return mRelatedApps; + } + + public int getIconRes() { + return mIconRes; + } + + public Drawable getIconDrawable() { + return mIconDrawable; + } + + public String getTitle() { + return mTitle; + } + + public String getDescription() { + return mDescription; + } + + public String getHeader() { + return mHeader; + } + + public String getShortDescription() { + return mShortDescription; + } + + public void updateVisibleCount(int size) { + mCurrentlyVisible = size; + } + + public int getCurrentlyVisible() { + return mCurrentlyVisible; + } + + public String getLink() { + return mLink; + } +} diff --git a/app/src/main/java/com/samsung/srpol/data/Subcategory.java b/app/src/main/java/com/samsung/srpol/data/Subcategory.java new file mode 100644 index 0000000..6eb1bc5 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/data/Subcategory.java @@ -0,0 +1,112 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.data; + +import java.util.ArrayList; + +import android.content.Context; +import android.content.res.Resources.NotFoundException; +import android.graphics.drawable.Drawable; + +public class Subcategory { + + public static final int CAN_SEND_DATA_SUB_CATEGORY_ID = 1; + public static final String CAN_SEND_DATA_SUB_CATEGORY_HEADER = "uprawnienia do przesyłu danych"; + private static final String DARK_SUFIX = "_dark"; + private static final String DISABLE_SUFIX = "_disable"; + private static int mIdGenerator = 2; + + private int mSubcatId; + private String mHeader; + private String mDescription; + private int mIconRes; + private Drawable mIconDrawable; + private Drawable mIconDarkDrawable; + private Drawable mIconDisabledDrawable; + private ArrayList mPermissions; + + public Subcategory(Context context, String header, String description, + String icon, ArrayList permissions) { + mHeader = header; + mDescription = description; + if (mHeader.equals(CAN_SEND_DATA_SUB_CATEGORY_HEADER)) { + mSubcatId = CAN_SEND_DATA_SUB_CATEGORY_ID; + } else { + mSubcatId = mIdGenerator; + mIdGenerator = mIdGenerator << 1; + } + + String packageName = context.getPackageName(); + mIconRes = context.getResources().getIdentifier(icon, "drawable", + packageName); + mIconDrawable = context.getResources().getDrawable(mIconRes); + + int iconDarkRes = context.getResources().getIdentifier( + icon.concat(DARK_SUFIX), "drawable", packageName); + try { + mIconDarkDrawable = context.getResources().getDrawable(iconDarkRes); + } catch (NotFoundException ex) { + mIconDarkDrawable = mIconDrawable; + } + + int iconDisableRes = context.getResources().getIdentifier(icon.concat(DISABLE_SUFIX), "drawable", packageName); + try { + mIconDisabledDrawable = context.getResources().getDrawable(iconDisableRes); + } catch (NotFoundException ex) { + mIconDisabledDrawable = mIconDrawable; + } + + mPermissions = permissions; + } + + public ArrayList getPermissions() { + return mPermissions; + } + + public int getId() { + return mSubcatId; + } + + public String getHeader() { + return mHeader; + } + + public Drawable getIconDrawable() { + return mIconDrawable; + } + + public Drawable getDarkIcon() { + return mIconDarkDrawable; + } + + public Drawable getDisabledIcon() { + return mIconDisabledDrawable; + } + + public String getDescription() { + return mDescription; + } + + public static void resetGenerator() { + mIdGenerator = 2; + } + +} diff --git a/app/src/main/java/com/samsung/srpol/loader/AppDetails.java b/app/src/main/java/com/samsung/srpol/loader/AppDetails.java new file mode 100644 index 0000000..6fff62b --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/loader/AppDetails.java @@ -0,0 +1,198 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.loader; + +import java.io.File; +import java.util.Comparator; + +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager.NameNotFoundException; +import android.graphics.ColorMatrix; +import android.graphics.ColorMatrixColorFilter; +import android.graphics.drawable.Drawable; +import android.os.Build; + +/** + * Helper class containing details about given permission + * + * This Class contains : String mPermissionName; String + * mPermissionLabel; String mPermissionDetails; + */ +public class AppDetails { + public static final String TAG = "AppDetails"; + private static final ColorMatrixColorFilter mGrayscaleFilter; + + private String mAppName; + private String mPackageName; + private Drawable mAppIcon; + private boolean mSystemApp; + + private int mSubCategoriesMask; + + private static AppListLoader mLoader; + private boolean mEnabled; + private boolean mMounted; + private final File mApkFile; + + static { + ColorMatrix matrix = new ColorMatrix(); + matrix.setSaturation(0); + mGrayscaleFilter = new ColorMatrixColorFilter(matrix); + } + + public AppDetails(AppListLoader loader, PackageInfo packageinfo) { + mLoader = loader; + mPackageName = packageinfo.applicationInfo.packageName; + mEnabled = packageinfo.applicationInfo.enabled; + mApkFile = new File(packageinfo.applicationInfo.sourceDir); + if (!mApkFile.exists()) { + mMounted = false; + mAppName = packageinfo.applicationInfo.packageName; + } else { + mMounted = true; + CharSequence label = packageinfo.applicationInfo.loadLabel(mLoader.getPm()); + mAppName = label != null ? label.toString() + : packageinfo.applicationInfo.packageName; + } + mSystemApp = (packageinfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) > 0; + } + + /** + * @return the mAppName + */ + public String getAppName() { + return mAppName; + } + + /** + * @return the mAppPackageName + */ + public String getAppPackageName() { + return mPackageName; + } + + /** + * @return the mAppIcon + */ + public Drawable getAppIcon() { + if (mAppIcon == null || !mMounted) { + if (mApkFile.exists()) { + try { + mAppIcon = mLoader.getPm().getApplicationIcon(mPackageName); + } catch (NameNotFoundException e) { + mAppIcon = mLoader.getContext().getResources() + .getDrawable(android.R.drawable.sym_def_app_icon); + } + mMounted = true; + return updateAppIconColor(mAppIcon); + } else { + mMounted = false; + return updateAppIconColor(mLoader.getContext().getResources() + .getDrawable(android.R.drawable.sym_def_app_icon)); + } + } else + return mAppIcon; + } + + public int getSubcategoriesMask() { + return mSubCategoriesMask; + } + + public boolean isInSubcategory(int subcategoryId) { + return (mSubCategoriesMask & subcategoryId) > 0; + } + + public boolean isInAllSubcategories(int subcategoryIds) { + return (mSubCategoriesMask & subcategoryIds) == subcategoryIds; + } + + public boolean isEnabled() { + return mEnabled; + } + + public void setEnabled(boolean state) { + mEnabled = state; + updateAppIconColor(mAppIcon); + } + + private Drawable updateAppIconColor(Drawable icon) { + // disabling and enabling apps in system application manager is + // available since API 4.0 + if (icon != null + && Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { + if (mEnabled) { + icon.setColorFilter(null); + } else { + icon.setColorFilter(mGrayscaleFilter); + } + } + return icon; + } + + /** + * @return the mSystemApp + */ + public boolean isSystemApp() { + return mSystemApp; + } + + public void addSubcategory(int id) { + mSubCategoriesMask |= id; + } + + /** + * @return the mAppPackageName + */ + @Override + public String toString() { + return mPackageName; + } + + @Override + public boolean equals(Object o) { + if (o instanceof AppDetails) { + AppDetails appDetails = (AppDetails) o; + if (appDetails.getAppPackageName().equals(mPackageName)) { + return true; + } + } + return false; + } + + /** + * Perform inteligent comparison of application entry objects. + */ + public static final Comparator SMART_COMPARATOR = new Comparator() { + @Override + public int compare(AppDetails object1, AppDetails object2) { + if (object1.mSystemApp) { + if (object2.mSystemApp) + return object1.mAppName.compareTo(object2.mAppName); + return 1; + } else { + if (object2.mSystemApp) + return -1; + return object1.mAppName.compareTo(object2.mAppName); + } + } + }; +} diff --git a/app/src/main/java/com/samsung/srpol/loader/AppListChangeListener.java b/app/src/main/java/com/samsung/srpol/loader/AppListChangeListener.java new file mode 100644 index 0000000..d176903 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/loader/AppListChangeListener.java @@ -0,0 +1,26 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.loader; + +public interface AppListChangeListener { + + public void onAppListChanged(); +} diff --git a/app/src/main/java/com/samsung/srpol/loader/AppListLoader.java b/app/src/main/java/com/samsung/srpol/loader/AppListLoader.java new file mode 100644 index 0000000..3dfdb0f --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/loader/AppListLoader.java @@ -0,0 +1,627 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.loader; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; + +import org.xmlpull.v1.XmlPullParserException; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.content.pm.PackageManager.NameNotFoundException; +import android.content.pm.Signature; +import android.content.res.XmlResourceParser; +import android.support.v4.content.AsyncTaskLoader; + +import com.samsung.srpol.R; +import com.samsung.srpol.data.Category; +import com.samsung.srpol.data.Subcategory; + +/** + * A custom Loader that loads all of the installed applications. + */ +public class AppListLoader extends AsyncTaskLoader> { + private static final String SYSTEM_UI = "com.android.systemui"; + private static final String PHONE = "com.android.phone"; + + public static final String PREF_INCLUDE_SYSTEM_APPS = "include_system_apps"; + + private final PackageManager mPm; + + private static List mAppDetailsList = null; + private static List mCategories; + private static ArrayList mSubcategories; + private static HashMap mAllPermissionsHash; + + private PackageIntentReceiver mPackageObserver; + private boolean mWasDataReloaded = true; + private static OnAppRemoveListener mChangeListener = null; + + public AppListLoader(Context context) { + super(context); + + if (mCategories == null || mSubcategories == null + || mAllPermissionsHash == null) + initCategories(context); + + mPm = getContext().getPackageManager(); + } + + private void initCategories(Context context) { + mCategories = new ArrayList(); + mSubcategories = new ArrayList(); + Subcategory.resetGenerator(); + + // Reading "data send" subcategory as it is common + try { + XmlResourceParser parser = context.getResources().getXml( + R.xml.data_send_subcategory); + int eventType = 0; + while (eventType != XmlResourceParser.END_DOCUMENT + && eventType != XmlResourceParser.START_TAG) + eventType = parser.next(); + if (eventType != XmlResourceParser.END_DOCUMENT) { + Subcategory subcategory = readSubCategory(parser); + mSubcategories.add(subcategory); + } + } catch (XmlPullParserException ex) { + ex.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } + + // Reading all categories and subcategories from xml + try { + XmlResourceParser parser = context.getResources().getXml( + R.xml.categories); + int eventType = 0; + while (eventType != XmlResourceParser.END_DOCUMENT + && eventType != XmlResourceParser.START_TAG) + eventType = parser.next(); + if (eventType != XmlResourceParser.END_DOCUMENT) { + parser.require(XmlResourceParser.START_TAG, null, "container"); + while (parser.next() != XmlResourceParser.END_TAG) { + if (parser.getEventType() != XmlResourceParser.START_TAG) + continue; + if (!parser.getName().equals("category")) + continue; + Category cat = readCategory(parser); + mCategories.add(cat); + mSubcategories.addAll(cat.getSubCategories()); + } + } + } catch (XmlPullParserException ex) { + ex.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } + + mAllPermissionsHash = new HashMap(); + for (Subcategory subcat : mSubcategories) { + for (String perm : subcat.getPermissions()) { + Integer value = mAllPermissionsHash.get(perm); + if (value == null) { + mAllPermissionsHash.put(perm, Integer.valueOf(subcat.getId())); + } else { + value |= subcat.getId(); + mAllPermissionsHash.put(perm, value); + } + } + } + } + + private Category readCategory(XmlResourceParser parser) + throws XmlPullParserException, IOException { + parser.require(XmlResourceParser.START_TAG, null, "category"); + String title = null, header = null, description = null, shortDescription = null, link = null; + int icon = 0; + boolean dataSend = false; + ArrayList subCategories = new ArrayList(); + + while (parser.next() != XmlResourceParser.END_TAG) { + if (parser.getEventType() != XmlResourceParser.START_TAG) + continue; + String name = parser.getName(); + if (name.equals("title")) { + title = readTextElement(parser, name); + } else if (name.equals("header")) { + header = readTextElement(parser, name); + } else if (name.equals("short_description")) { + shortDescription = readTextElement(parser, name); + } else if (name.equals("description")) { + description = readTextElement(parser, name); + } else if (name.equals("icon")) { + icon = getContext().getResources().getIdentifier( + readTextElement(parser, name), "drawable", + getContext().getPackageName()); + } else if (name.equals("link")) { + link = readTextElement(parser, name); + } else if (name.equals("dataSend")) { + dataSend = Boolean.parseBoolean(readTextElement(parser, name)); + } else if (name.equals("subcategories")) { + while (parser.next() != XmlResourceParser.END_TAG) { + subCategories.add(readSubCategory(parser)); + } + } else + skip(parser); + } + return new Category(getContext(), title, header, shortDescription, + description, icon, link, dataSend, subCategories); + } + + private Subcategory readSubCategory(XmlResourceParser parser) + throws XmlPullParserException, IOException { + parser.require(XmlResourceParser.START_TAG, null, "subcategory"); + String header = null, description = null, icon = null; + ArrayList permissions = new ArrayList(); + + while (parser.next() != XmlResourceParser.END_TAG) { + if (parser.getEventType() != XmlResourceParser.START_TAG) + continue; + String name = parser.getName(); + if (name.equals("header")) { + header = readTextElement(parser, name); + } else if (name.equals("description")) { + description = readTextElement(parser, name); + } else if (name.equals("icon")) { + icon = readTextElement(parser, name); + } else if (name.equals("permissions")) { + while (parser.next() != XmlResourceParser.END_TAG) { + permissions.add(readTextElement(parser, "item")); + } + } else + skip(parser); + } + + return new Subcategory(getContext(), header, description, icon, + permissions); + } + + private String readTextElement(XmlResourceParser parser, String element) + throws XmlPullParserException, IOException { + parser.require(XmlResourceParser.START_TAG, null, element); + String title = readText(parser); + parser.require(XmlResourceParser.END_TAG, null, element); + return title; + } + + private String readText(XmlResourceParser parser) + throws XmlPullParserException, IOException { + String result = ""; + if (parser.next() == XmlResourceParser.TEXT) { + result = parser.getText(); + parser.nextTag(); + } + return result; + } + + private void skip(XmlResourceParser parser) throws XmlPullParserException, + IOException { + if (parser.getEventType() != XmlResourceParser.START_TAG) { + throw new IllegalStateException(); + } + int depth = 1; + while (depth != 0) { + switch (parser.next()) { + case XmlResourceParser.END_TAG: + depth--; + break; + case XmlResourceParser.START_TAG: + depth++; + break; + } + } + } + + /** + * Get Signature keys of given package + * + * @param packageName + * package name to retrieve signature keys + * @return Signature[] containing given package name signature keys + */ + private Signature[] getSignature(String packageName) { + + try { + PackageInfo packageInfo = getPm().getPackageInfo(packageName, + PackageManager.GET_SIGNATURES); + Signature[] sigs = packageInfo.signatures; + return sigs; + } catch (NameNotFoundException e) { + return null; + } + + } + + /** + * Get Signature keys for given PackageInfo + * + * @param packageInfo + * PackageInfo to retrieve signature keys + * @return Signature[] containing given PackageInfo signature keys + */ + @SuppressWarnings("unused") + private Signature[] getSignature(PackageInfo packageInfo) { + + Signature[] sigs = packageInfo.signatures; + return sigs; + + } + + /** + * Get Platform signature key. we check signature of SystemUI process or + * Phone process + * + * @return Signature platform sign key or null if not found + */ + @SuppressWarnings("unused") + private Signature getPlatformSignature() { + Signature sig = getSignature(SYSTEM_UI)[0]; + if (sig == null) { + sig = getSignature(PHONE)[0]; + } + return sig; + } + + /** + * Filter given ApplicationInfo list only to apps that are not platform + * signed + * + * @param appList + * List with a list of apps to filter + * @return List filtred app list + */ + private List filterToNotPlatformKeyAppList(List packageList) { + if (packageList != null) { + + List noPlatformKeyAppList = new ArrayList(); + for (PackageInfo packageInfo : packageList) { + try { + packageInfo = mPm.getPackageInfo(packageInfo.packageName, + PackageManager.GET_ACTIVITIES + | PackageManager.GET_PERMISSIONS + | PackageManager.GET_SIGNATURES); + } catch (NameNotFoundException e) { + continue; + } + // Check signature match with SystemUI + if (((packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0 || (packageInfo.activities != null && packageInfo.activities.length > 0)) + && getPm().checkSignatures(SYSTEM_UI, + packageInfo.packageName) != PackageManager.SIGNATURE_MATCH) { + noPlatformKeyAppList.add(packageInfo); + } + } + return noPlatformKeyAppList; + } else { + return null; + } + } + + private PackageInfo getInstalledAppDetails(String packageName) { + PackageInfo info = null; + try { + info = getPm().getPackageInfo( + packageName, + PackageManager.GET_META_DATA + | PackageManager.GET_PERMISSIONS + | PackageManager.GET_SIGNATURES); + } catch (NameNotFoundException e) { + e.printStackTrace(); + } + return info; + } + + @Override + public List loadInBackground() { + List appList = mPm.getInstalledPackages(0); + + appList = filterToNotPlatformKeyAppList(appList); + + HashMap appDetailsHash = new HashMap( + appList.size()); + if (mSubcategories.size() == 0) { + for (PackageInfo pInfo : appList) { + appDetailsHash.put(pInfo.packageName, new AppDetails(this, + pInfo)); + } + } else { + for (PackageInfo packageInfo : appList) { + String[] requestedPermissions = packageInfo.requestedPermissions; + if (requestedPermissions != null) { + AppDetails appDetails = appDetailsHash.get(packageInfo.packageName); + for (String permissionName : requestedPermissions) { + Integer subcategories = mAllPermissionsHash.get(permissionName); + if (subcategories != null + && (appDetails == null || !appDetails.isInAllSubcategories(subcategories)) + && getPm().checkPermission(permissionName, + packageInfo.packageName) == PackageManager.PERMISSION_GRANTED) { + if (appDetails == null) { + appDetails = new AppDetails(this, packageInfo); + appDetailsHash.put(packageInfo.packageName, + appDetails); + } + appDetails.addSubcategory(subcategories); + } + } + } + } + } + // Sort the list. + List list = new ArrayList( + appDetailsHash.values()); + Collections.sort(list, AppDetails.SMART_COMPARATOR); + + for (Category category : mCategories) + category.assignAppsToCategory(list); + + mWasDataReloaded = true; + return list; + } + + /** + * Called when there is new data to deliver to the client. The super class + * will take care of delivering it; the implementation here just adds a + * little more logic. + */ + @Override + public void deliverResult(List apps) { + if (isReset()) { + apps = null; + } + mAppDetailsList = apps; + + if (isStarted()) { + // If the Loader is currently started, we can immediately + // deliver its results. + super.deliverResult(apps); + } + } + + /** + * Handles a request to start the Loader. + */ + @Override + protected void onStartLoading() { + if (mAppDetailsList != null) { + // If we currently have a result available, deliver it + // immediately. + deliverResult(mAppDetailsList); + } + + // Start watching for changes in the app data. + if (mPackageObserver == null) { + mPackageObserver = new PackageIntentReceiver(this); + } + + if (takeContentChanged() || mAppDetailsList == null) { + // If the data has changed since the last time it was loaded + // or is not currently available, start a load. + forceLoad(); + } + } + + /** + * Handles a request to stop the Loader. + */ + @Override + protected void onStopLoading() { + // Attempt to cancel the current load task if possible. + cancelLoad(); + } + + /** + * Handles a request to completely reset the Loader. + */ + @Override + protected void onReset() { + + // Ensure the loader is stopped + onStopLoading(); + + // Stop monitoring for changes. + if (mPackageObserver != null) { + getContext().unregisterReceiver(mPackageObserver); + mPackageObserver = null; + } + } + + /** + * Gets AppDetails from mAppDetailsList for a given PackageName + * + * @param packageName + * PackageName for which to get AppDetails + * @return AppDetails for given PackageName + */ + public static AppDetails getAppDetails(String packageName) { + if (packageName != null && mAppDetailsList != null) { + for (AppDetails appDetails : mAppDetailsList) { + if (packageName.equals(appDetails.getAppPackageName())) { + return appDetails; + } + } + } + return null; + } + + public static void setOnChangeListener(OnAppRemoveListener listener) { + mChangeListener = listener; + } + + /** + * @return the mAppDetailsList + */ + public static List getAppDetailsList() { + return mAppDetailsList; + } + + /** + * @return the mCategories + */ + static public List getCategories() { + return mCategories; + } + + public static List getSubcategoriesOfMask(int subcategoriesMask) { + ArrayList list = new ArrayList(); + for (Subcategory subcategory : mSubcategories) { + if ((subcategoriesMask & subcategory.getId()) > 0) { + list.add(subcategory); + } + } + return list; + } + + public PackageManager getPm() { + return mPm; + } + + public interface OnAppRemoveListener { + public void onPackageRemoved(String packageName); + } + + /** + * Helper class to look for interesting changes to the installed apps so + * that the loader can be updated. + */ + public static class PackageIntentReceiver extends BroadcastReceiver { + private final AppListLoader mLoader; + + public PackageIntentReceiver(AppListLoader loader) { + mLoader = loader; + IntentFilter filter = new IntentFilter(Intent.ACTION_PACKAGE_ADDED); + filter.addAction(Intent.ACTION_PACKAGE_REMOVED); + filter.addAction(Intent.ACTION_PACKAGE_CHANGED); + filter.addDataScheme("package"); + mLoader.getContext().registerReceiver(this, filter); + // Register for events related to sdcard installation. + IntentFilter sdFilter = new IntentFilter(); + sdFilter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE); + sdFilter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE); + mLoader.getContext().registerReceiver(this, sdFilter); + } + + @Override + public void onReceive(Context context, Intent intent) { + if (intent.getAction().equals( + Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE)) { + mLoader.onPackagesAdded(intent + .getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST)); + } else if (intent.getAction().equals( + Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE)) { + mLoader.onPackagesRemoved(intent + .getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST)); + } else if (intent.getAction().equals(Intent.ACTION_PACKAGE_REMOVED)) + mLoader.onPackageRemoved(intent.getData() + .getSchemeSpecificPart(), true); + else if (intent.getAction().equals(Intent.ACTION_PACKAGE_ADDED)) + mLoader.onPackageAdded( + intent.getData().getSchemeSpecificPart(), true); + else if (intent.getAction().equals(Intent.ACTION_PACKAGE_CHANGED)) + mLoader.onPackageChanged(intent.getData() + .getSchemeSpecificPart()); + } + } + + public void onPackageRemoved(String packageName, boolean deliverResult) { + if (mChangeListener != null) + mChangeListener.onPackageRemoved(packageName); + for (AppDetails details : mAppDetailsList) { + if (details.getAppPackageName().equals(packageName)) { + mAppDetailsList.remove(details); + for (Category category : mCategories) + category.removeAppFromList(details); + if (deliverResult) + deliverResult(new ArrayList(mAppDetailsList)); + break; + } + } + } + + public void onPackagesRemoved(String[] packageNames) { + for (String packageName : packageNames) { + onPackageRemoved(packageName, false); + } + deliverResult(new ArrayList(mAppDetailsList)); + } + + public void onPackageChanged(String packageName) { + for (AppDetails details : mAppDetailsList) { + if (details.getAppPackageName().equals(packageName)) { + PackageInfo packageInfo = getInstalledAppDetails(packageName); + if (packageInfo == null) + return; + details.setEnabled(packageInfo.applicationInfo.enabled); + deliverResult(new ArrayList(mAppDetailsList)); + break; + } + } + } + + public void onPackageAdded(String packageName, boolean deliverResult) { + PackageInfo packageInfo = getInstalledAppDetails(packageName); + if (packageInfo == null) + return; + AppDetails newPackage = new AppDetails(this, packageInfo); + + String[] requestedPermissions = packageInfo.requestedPermissions; + if (requestedPermissions != null && mSubcategories != null) { + for (String permissionName : requestedPermissions) { + Integer subcategories = mAllPermissionsHash.get(permissionName); + if (subcategories != null + && getPm().checkPermission(permissionName, + packageInfo.packageName) == PackageManager.PERMISSION_GRANTED) { + newPackage.addSubcategory(subcategories); + } + } + } + mAppDetailsList.add(newPackage); + + for (Category category : mCategories) + category.addApplicationToCategory(newPackage); + if (deliverResult) + deliverResult(new ArrayList(mAppDetailsList)); + } + + public void onPackagesAdded(String[] packageNames) { + for (String packageStr : packageNames) { + onPackageAdded(packageStr, false); + } + + deliverResult(new ArrayList(mAppDetailsList)); + } + + public boolean wasDataReloaded() { + return mWasDataReloaded; + } + + public void resetWasDataReloaded() { + mWasDataReloaded = false; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/samsung/srpol/parallax/ParallaxListView.java b/app/src/main/java/com/samsung/srpol/parallax/ParallaxListView.java new file mode 100644 index 0000000..5fb5ebd --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/parallax/ParallaxListView.java @@ -0,0 +1,65 @@ +/* + The MIT License (MIT) + + Copyright (c) 2014 Nir Hartmann + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + */ +package com.samsung.srpol.parallax; + +import android.content.Context; +import android.util.AttributeSet; +import android.view.View; +import android.widget.ListView; + +public class ParallaxListView extends ListView { + + private ParallaxListViewHelper helper; + + public ParallaxListView(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + init(context, attrs); + } + + public ParallaxListView(Context context, AttributeSet attrs) { + super(context, attrs); + init(context, attrs); + } + + protected void init(Context context, AttributeSet attrs) { + helper = new ParallaxListViewHelper(context, attrs, this); + super.setOnScrollListener(helper); + } + + @Override + public void setOnScrollListener(OnScrollListener l) { + helper.setOnScrollListener(l); + } + + public void addParallaxedHeaderView(View v) { + super.addHeaderView(v); + helper.addParallaxedHeaderView(v); + } + + public void addParallaxedHeaderView(View v, Object data, + boolean isSelectable) { + super.addHeaderView(v, data, isSelectable); + helper.addParallaxedHeaderView(v, data, isSelectable); + } +} diff --git a/app/src/main/java/com/samsung/srpol/parallax/ParallaxListViewHelper.java b/app/src/main/java/com/samsung/srpol/parallax/ParallaxListViewHelper.java new file mode 100644 index 0000000..9e1a055 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/parallax/ParallaxListViewHelper.java @@ -0,0 +1,169 @@ +/* + The MIT License (MIT) + + Copyright (c) 2014 Nir Hartmann + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + */ +package com.samsung.srpol.parallax; + +import com.samsung.srpol.R; + +import android.content.Context; +import android.content.res.TypedArray; +import android.util.AttributeSet; +import android.view.View; +import android.view.animation.TranslateAnimation; +import android.widget.AbsListView; +import android.widget.AbsListView.OnScrollListener; +import android.widget.ListView; + +public class ParallaxListViewHelper implements OnScrollListener { + + private static final float DEFAULT_ALPHA_FACTOR = -1F; + private static final float DEFAULT_PARALLAX_FACTOR = 1.9F; + private static final boolean DEFAULT_IS_CIRCULAR = false; + private float parallaxFactor = DEFAULT_PARALLAX_FACTOR; + private float alphaFactor = DEFAULT_ALPHA_FACTOR; + private ParallaxedView parallaxedView; + private boolean isCircular; + private OnScrollListener listener = null; + private ListView listView; + + protected ParallaxListViewHelper(Context context, AttributeSet attrs, + ListView listView) { + init(context, attrs, listView); + } + + protected void init(Context context, AttributeSet attrs, ListView listView) { + this.listView = listView; + TypedArray typeArray = context.obtainStyledAttributes(attrs, + R.styleable.ParallaxScroll); + this.parallaxFactor = typeArray.getFloat( + R.styleable.ParallaxScroll_parallax_factor, + DEFAULT_PARALLAX_FACTOR); + this.alphaFactor = typeArray.getFloat( + R.styleable.ParallaxScroll_alpha_factor, DEFAULT_ALPHA_FACTOR); + this.isCircular = typeArray.getBoolean( + R.styleable.ParallaxScroll_circular_parallax, + DEFAULT_IS_CIRCULAR); + typeArray.recycle(); + } + + protected void setOnScrollListener(OnScrollListener l) { + this.listener = l; + } + + protected void addParallaxedHeaderView(View v) { + addParallaxedView(v); + } + + protected void addParallaxedHeaderView(View v, Object data, + boolean isSelectable) { + addParallaxedView(v); + } + + protected void addParallaxedView(View v) { + this.parallaxedView = new ListViewParallaxedItem(v); + } + + protected void parallaxScroll() { + if (isCircular) + circularParallax(); + else + headerParallax(); + } + + private void circularParallax() { + if (listView.getChildCount() > 0) { + int top = -listView.getChildAt(0).getTop(); + if (top >= 0) { + fillParallaxedViews(); + setFilters(top); + } + } + } + + private void headerParallax() { + if (parallaxedView != null) { + if (listView.getChildCount() > 0) { + int top = -listView.getChildAt(0).getTop(); + if (top >= 0) { + setFilters(top); + } + } + } + } + + private void setFilters(int top) { + parallaxedView.setOffset((float) top / parallaxFactor); + if (alphaFactor != DEFAULT_ALPHA_FACTOR) { + float alpha = (top <= 0) ? 1 : (100 / ((float) top * alphaFactor)); + parallaxedView.setAlpha(alpha); + } + parallaxedView.animateNow(); + } + + private void fillParallaxedViews() { + if (parallaxedView == null + || parallaxedView.is(listView.getChildAt(0)) == false) { + if (parallaxedView != null) { + resetFilters(); + parallaxedView.setView(listView.getChildAt(0)); + } else { + parallaxedView = new ListViewParallaxedItem( + listView.getChildAt(0)); + } + } + } + + private void resetFilters() { + parallaxedView.setOffset(0); + if (alphaFactor != DEFAULT_ALPHA_FACTOR) + parallaxedView.setAlpha(1F); + parallaxedView.animateNow(); + } + + @Override + public void onScroll(AbsListView view, int firstVisibleItem, + int visibleItemCount, int totalItemCount) { + parallaxScroll(); + if (this.listener != null) + this.listener.onScroll(view, firstVisibleItem, visibleItemCount, + totalItemCount); + } + + @Override + public void onScrollStateChanged(AbsListView view, int scrollState) { + if (this.listener != null) + this.listener.onScrollStateChanged(view, scrollState); + } + + protected class ListViewParallaxedItem extends ParallaxedView { + + public ListViewParallaxedItem(View view) { + super(view); + } + + @Override + protected void translatePreICS(View view, float offset) { + addAnimation(new TranslateAnimation(0, 0, offset, offset)); + } + } +} diff --git a/app/src/main/java/com/samsung/srpol/parallax/ParallaxedView.java b/app/src/main/java/com/samsung/srpol/parallax/ParallaxedView.java new file mode 100644 index 0000000..e41e3a1 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/parallax/ParallaxedView.java @@ -0,0 +1,107 @@ +/* + The MIT License (MIT) + + Copyright (c) 2014 Nir Hartmann + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + */ +package com.samsung.srpol.parallax; + +import java.lang.ref.WeakReference; +import java.util.ArrayList; +import java.util.List; + +import android.annotation.SuppressLint; +import android.os.Build; +import android.view.View; +import android.view.animation.AlphaAnimation; +import android.view.animation.Animation; +import android.view.animation.AnimationSet; + +public abstract class ParallaxedView { + static public boolean isAPI11 = Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB; + protected WeakReference view; + protected int lastOffset; + protected List animations; + + abstract protected void translatePreICS(View view, float offset); + + public ParallaxedView(View view) { + this.lastOffset = 0; + this.animations = new ArrayList(); + this.view = new WeakReference(view); + } + + public boolean is(View v) { + return (v != null && view != null && view.get() != null && view.get() + .equals(v)); + } + + @SuppressLint("NewApi") + public void setOffset(float offset) { + View view = this.view.get(); + if (view != null) + if (isAPI11) { + view.setTranslationY(offset); + } else { + translatePreICS(view, offset); + } + } + + public void setAlpha(float alpha) { + View view = this.view.get(); + if (view != null) + if (isAPI11) { + view.setAlpha(alpha); + } else { + alphaPreICS(view, alpha); + } + } + + protected synchronized void addAnimation(Animation animation) { + animations.add(animation); + } + + protected void alphaPreICS(View view, float alpha) { + addAnimation(new AlphaAnimation(alpha, alpha)); + } + + protected synchronized void animateNow() { + View view = this.view.get(); + if (view != null) { + AnimationSet set = new AnimationSet(true); + for (Animation animation : animations) + if (animation != null) + set.addAnimation(animation); + set.setDuration(0); + set.setFillAfter(true); + view.setAnimation(set); + set.start(); + animations.clear(); + } + } + + public void setView(View view) { + this.view = new WeakReference(view); + } + + public View getView() { + return this.view.get(); + } +} diff --git a/app/src/main/java/com/samsung/srpol/ui/AppInfoActivity.java b/app/src/main/java/com/samsung/srpol/ui/AppInfoActivity.java new file mode 100644 index 0000000..c29ed30 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/AppInfoActivity.java @@ -0,0 +1,210 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.ui; + +import java.util.List; + +import com.nhaarman.listviewanimations.appearance.AnimationAdapter; +import com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter; +import com.samsung.srpol.R; +import com.samsung.srpol.data.Subcategory; +import com.samsung.srpol.loader.AppDetails; +import com.samsung.srpol.loader.AppListLoader; +import com.samsung.srpol.loader.AppListLoader.OnAppRemoveListener; +import com.samsung.srpol.utils.Utils; + +import android.support.v7.app.ActionBarActivity; +import android.content.Context; +import android.content.Intent; +import android.os.Build; +import android.os.Bundle; +import android.view.Menu; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.ViewGroup; +import android.widget.ArrayAdapter; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.ListView; +import android.widget.TextView; + +public class AppInfoActivity extends ActionBarActivity implements OnAppRemoveListener { + public static final String APP_PACKAGE_NAME = "APP_PACKAGE_NAME"; + + private AppDetails mAppDetails; + private String mPackageName = null; + private ThreatsArrayAdapter mAdapter; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_app_info); + Intent intent = getIntent(); + if (intent != null) { + mPackageName = intent + .getStringExtra(AppInfoActivity.APP_PACKAGE_NAME); + } + mAppDetails = AppListLoader.getAppDetails(mPackageName); + if(mAppDetails == null){ + return; + } + ImageView imageView = (ImageView) findViewById(R.id.app_icon); + imageView.setImageDrawable(mAppDetails.getAppIcon()); + TextView textView = (TextView) findViewById(R.id.app_name); + textView.setText(mAppDetails.getAppName()); + + grayoutText(textView); + + ListView listView = (ListView) findViewById(R.id.threats_list); + mAdapter = new ThreatsArrayAdapter(getApplicationContext(), + AppListLoader.getSubcategoriesOfMask(mAppDetails + .getSubcategoriesMask())); + AnimationAdapter adapter = new AlphaInAnimationAdapter(mAdapter); + adapter.setAbsListView(listView); + listView.setAdapter(adapter); + + ImageButton uninstallButton = (ImageButton) findViewById(R.id.uninstall_button); + ImageButton moreInfoButton = (ImageButton) findViewById(R.id.more_info_button); + TextView systemAppTextView = (TextView) findViewById(R.id.system_app_text); + View activityLayout = findViewById(R.id.container); + if (mAppDetails.isSystemApp()) { + moreInfoButton.setVisibility(View.VISIBLE); + systemAppTextView.setVisibility(View.VISIBLE); + uninstallButton + .setImageResource(R.drawable.app_info_settings_button); + uninstallButton.setContentDescription(getResources().getText(R.string.app_detail_settings_button)); + activityLayout.setBackgroundResource(R.color.grayout_list_item_bg); + } else { + moreInfoButton.setVisibility(View.GONE); + systemAppTextView.setVisibility(View.GONE); + uninstallButton + .setImageResource(R.drawable.app_info_uninstall_button); + uninstallButton.setContentDescription(getResources().getText(R.string.app_detail_uninstall_button)); + activityLayout.setBackgroundResource(R.color.app_detail_bg); + } + + uninstallButton.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + Utils.showInstalledAppDetails(getApplicationContext(), mPackageName); + } + }); + moreInfoButton.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + Utils.startBrowser(getApplicationContext(), getResources().getString(R.string.app_info_more_info)); + } + }); + AppListLoader.setOnChangeListener(this); + } + + @Override + protected void onResume() { + ImageView systemAppIcon = (ImageView) findViewById(R.id.list_system_app_icon); + if (mAppDetails.isSystemApp()) { + systemAppIcon.setVisibility(View.VISIBLE); + if (mAppDetails.isEnabled()) { + systemAppIcon.setImageDrawable(Utils.getmSystemIcon(this)); + } else { + systemAppIcon.setImageDrawable(Utils + .getmSystemIconDisable(this)); + } + } else { + systemAppIcon.setVisibility(View.INVISIBLE); + } + super.onResume(); + } + + @Override + protected void onDestroy() { + AppListLoader.setOnChangeListener(null); + super.onDestroy(); + } + + class ThreatsArrayAdapter extends ArrayAdapter { + + public ThreatsArrayAdapter(Context context, List resources) { + super(context, R.layout.threats_list_item, resources); + } + + class ViewHolder { + public TextView textView; + public ImageView imageView; + } + + @Override + public boolean isEnabled(int position) { + return false; + } + + @Override + public View getView(int position, View convertView, ViewGroup parent) { + ViewHolder holder; + if (convertView == null) { + convertView = getLayoutInflater().inflate(R.layout.threats_list_item, + parent, false); + holder = new ViewHolder(); + holder.imageView = (ImageView) convertView + .findViewById(R.id.threat_icon); + holder.textView = (TextView) convertView + .findViewById(R.id.threat_text); + convertView.setTag(holder); + } else { + holder = (ViewHolder) convertView.getTag(); + } + Subcategory subgroupContainer = getItem(position); + if (subgroupContainer != null) { + holder.imageView + .setImageDrawable(subgroupContainer.getDarkIcon()); + holder.textView.setText(subgroupContainer.getDescription()); + } + return convertView; + } + } + + private void grayoutText(TextView textView){ + // disabling and enabling apps in system application manager is + // available since API 4.0 + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { + if (mAppDetails.isEnabled()) { + textView.setTextColor(getResources().getColor( + android.R.color.black)); + } else { + textView.setTextColor(getResources().getColor( + R.color.disabled_app_name)); + } + } + } + @Override + public boolean onCreateOptionsMenu(Menu menu) { + return true; + } + + @Override + public void onPackageRemoved(String packageName) { + if (mPackageName.equals(packageName)) { + finish(); + } + } + +} diff --git a/app/src/main/java/com/samsung/srpol/ui/LicenseActivity.java b/app/src/main/java/com/samsung/srpol/ui/LicenseActivity.java new file mode 100644 index 0000000..a69f7b2 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/LicenseActivity.java @@ -0,0 +1,62 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.ui; + +import com.samsung.srpol.R; +import com.samsung.srpol.utils.Utils; + +import android.graphics.Paint; +import android.os.Bundle; +import android.support.v7.app.ActionBarActivity; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.ImageButton; +import android.widget.TextView; + +public class LicenseActivity extends ActionBarActivity { + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_license); + + TextView descriptionTextLink = (TextView) findViewById(R.id.license_link); + descriptionTextLink.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG); + descriptionTextLink.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + Utils.startBrowser(LicenseActivity.this, getString(R.string.license_link)); + } + }); + + ImageButton backBtn = (ImageButton) findViewById(R.id.back_button); + backBtn.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View arg0) { + finish(); + } + }); + } + +} diff --git a/app/src/main/java/com/samsung/srpol/ui/MainActivity.java b/app/src/main/java/com/samsung/srpol/ui/MainActivity.java new file mode 100644 index 0000000..1d311c9 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/MainActivity.java @@ -0,0 +1,352 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.ui; + +import java.util.List; + +import com.samsung.srpol.R; +import com.samsung.srpol.loader.AppDetails; +import com.samsung.srpol.loader.AppListLoader; +import com.samsung.srpol.ui.drawer.MenuFragment; +import com.samsung.srpol.ui.drawer.NavigationDrawerItemListener; +import com.samsung.srpol.ui.tabpager.PageAdapter; + +import android.support.v7.app.ActionBarActivity; +import android.support.v7.app.ActionBar; +import android.support.v4.app.ActionBarDrawerToggle; +import android.support.v4.app.LoaderManager; +import android.support.v4.content.Loader; +import android.content.DialogInterface; +import android.content.DialogInterface.OnDismissListener; +import android.content.Intent; +import android.content.SharedPreferences; +import android.os.Bundle; +import android.os.Handler; +import android.preference.PreferenceManager; +import android.util.Log; +import android.view.Gravity; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.support.v4.view.GravityCompat; +import android.support.v4.view.PagerTabStrip; +import android.support.v4.view.ViewPager; +import android.support.v4.widget.DrawerLayout; + +public class MainActivity extends ActionBarActivity implements + LoaderManager.LoaderCallbacks> { + public static final String TAG = "MainActivity"; + + private static final String STATE_WELCOME_DIALOG_IS_OPEN = "welcome_dialog_is_open"; + private static final String STATE_WELCOME_DIALOG_OPENED_FROM_MENU = "welcome_dialog_opened_from_menu"; + private static final String STATE_DRAWER_MENU_IS_OPEN = "state_drawer_menu_is_open"; + + private MenuFragment mMenuFragment; + + private WelcomeDialog mWelcomeDialog; + private ViewPager mViewPager; + private PageAdapter mFramePagerAdapter; + private boolean mDrawerOpenState = false; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + if (savedInstanceState != null) { + boolean isWelcomeDialogOpen = savedInstanceState.getBoolean( + STATE_WELCOME_DIALOG_IS_OPEN, false); + if (isWelcomeDialogOpen) { + boolean isOpenedFromMenu = savedInstanceState.getBoolean( + STATE_WELCOME_DIALOG_OPENED_FROM_MENU, false); + showWelcomeDialog(isOpenedFromMenu); + } + mDrawerOpenState = savedInstanceState.getBoolean(STATE_DRAWER_MENU_IS_OPEN, false); + } else { + showWelcomeDialog(false); + } + + getSupportLoaderManager().initLoader(0, null, this); + + // if Loader was created then we have all data to create + // NavigationDrawer otherwise wait for loader to be created and then + // create NavigationDrawer + if (getSupportLoaderManager().getLoader(0) != null) { + initNavigationDrawer(); + } + + mFramePagerAdapter = new PageAdapter(getSupportFragmentManager(), getApplicationContext()); + mViewPager = (ViewPager) findViewById(R.id.myviewpager); + mViewPager.setAdapter(mFramePagerAdapter); + + PagerTabStrip pagerTabStrip = (PagerTabStrip) findViewById(R.id.titlestrip); + pagerTabStrip.setDrawFullUnderline(true); + pagerTabStrip.setTabIndicatorColor(getResources().getColor(R.color.tab_underline_color)); + } + + @Override + public void onSaveInstanceState(Bundle outState) { + super.onSaveInstanceState(outState); + if (mWelcomeDialog != null) { + outState.putBoolean(STATE_WELCOME_DIALOG_IS_OPEN, + mWelcomeDialog.isShowing()); + outState.putBoolean(STATE_WELCOME_DIALOG_OPENED_FROM_MENU, + mWelcomeDialog.ismOpenedFromMenu()); + } + if (isDrawerOpen() || (mDrawerOpenState && mDrawerLayout == null)) { + outState.putBoolean(STATE_DRAWER_MENU_IS_OPEN, true); + } + } + + protected void onDestroy() { + if (mWelcomeDialog != null) { + if (mWelcomeDialog.isShowing()) { + mWelcomeDialog.dismiss(); + } + } + super.onDestroy(); + } + + public void restoreActionBar() { + ActionBar actionBar = getSupportActionBar(); + actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD); + actionBar.setDisplayShowTitleEnabled(true); + } + + @Override + protected boolean onPrepareOptionsPanel(View view, Menu menu) { + SharedPreferences sp = PreferenceManager + .getDefaultSharedPreferences(this); + boolean showSystemApp = sp.getBoolean( + AppListLoader.PREF_INCLUDE_SYSTEM_APPS, + true); + MenuItem menuItemSystem = menu.findItem(R.id.action_toggle_system_visibility); + if (menuItemSystem != null) { + if (showSystemApp) { + menuItemSystem.setTitle(R.string.hide_system_visibility); + } else { + menuItemSystem.setTitle(R.string.show_system_visibility); + } + } + return super.onPrepareOptionsPanel(view, menu); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + getMenuInflater().inflate(R.menu.main, menu); + restoreActionBar(); + return true; + } + + @Override + public void onBackPressed() { + if (isDrawerOpen()) { + closeDrawer(); + } else { + super.onBackPressed(); + } + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (mActionBarDrawerToggle != null + && mActionBarDrawerToggle.onOptionsItemSelected(item)) + return true; + int id = item.getItemId(); + switch (id) { + case R.id.action_about: + showWelcomeDialog(true); + return true; + case R.id.action_licence: + showLicense(); + return true; + case R.id.action_toggle_system_visibility: + toggleSharedPrefences(AppListLoader.PREF_INCLUDE_SYSTEM_APPS); + refreshAfterChanges(); + return true; + } + return super.onOptionsItemSelected(item); + } + + public void toggleSharedPrefences(String preferenceName) { + SharedPreferences sp = PreferenceManager + .getDefaultSharedPreferences(this); + boolean actualValue = sp.getBoolean(preferenceName, true); + sp.edit().putBoolean(preferenceName, !actualValue).commit(); + } + + public void refreshAfterChanges() { + supportInvalidateOptionsMenu(); + if (mFramePagerAdapter != null) { + mFramePagerAdapter.refreshAdapterNotify(); + mFramePagerAdapter.notifyDataSetChanged(); + } + if (mMenuFragment != null) { + mMenuFragment.notifyDataSetChanged(); + } + } + + @Override + public Loader> onCreateLoader(int id, Bundle args) { + AppListLoader loader = new AppListLoader(this.getApplicationContext()); + initNavigationDrawer(); + + return loader; + } + + @Override + public void onLoadFinished(Loader> loader, + List data) { + Log.d(TAG, "onLoadFinished"); + + AppListLoader appLoader = (AppListLoader) loader; + if (appLoader.wasDataReloaded()) { + appLoader.resetWasDataReloaded(); + mViewPager.setOffscreenPageLimit(AppListLoader.getCategories().size()); + mFramePagerAdapter.refreshPages(); + } else { + mFramePagerAdapter.refreshAdapterNotify(); + } + if (mWelcomeDialog != null && mWelcomeDialog.isShowing()) { + mWelcomeDialog.loadingDone(); + } + if (mMenuFragment != null) { + mMenuFragment.notifyDataSetChanged(); + } + } + + public void onLoaderReset(Loader> arg0) { + mFramePagerAdapter.refreshAdapterNotify(); + } + + private void showWelcomeDialog(boolean fromMenu) { + Log.d(TAG, "showWelcomeActivity flag: " + fromMenu); + if (mWelcomeDialog == null) { + mWelcomeDialog = new WelcomeDialog(this, fromMenu); + } + if (!mWelcomeDialog.isShowing()) { + mWelcomeDialog.show(fromMenu); + } + if (!fromMenu) { + mWelcomeDialog.setOnDismissListener(new OnDismissListener() { + + @Override + public void onDismiss(DialogInterface dialog) { + openDrawerAnimate(); + } + }); + } + } + + private void showLicense() { + Intent intent = new Intent(this, LicenseActivity.class); + startActivity(intent); + } + + private DrawerLayout mDrawerLayout; + private View mFragmentContainerView; + private ActionBarDrawerToggle mActionBarDrawerToggle; + + private void initNavigationDrawer() { + mMenuFragment = (MenuFragment) getSupportFragmentManager() + .findFragmentById(R.id.menu_container); + mMenuFragment.setDrawerItemListener(mDrawerItemListener); + mFragmentContainerView = findViewById(R.id.menu_container); + mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); + setUp(); + mMenuFragment.refresh(); + } + + private NavigationDrawerItemListener mDrawerItemListener = new NavigationDrawerItemListener() { + + public void onNavigationDrawerItemSelected(int position) { + if (mViewPager != null) { + mViewPager.setCurrentItem(position, true); + closeDrawer(); + } + } + }; + + public void closeDrawer() { + if(mDrawerLayout != null){ + mDrawerLayout.closeDrawer(Gravity.LEFT); + mDrawerOpenState=false; + } + } + + public boolean isDrawerOpen() { + return mDrawerLayout != null + && mDrawerLayout.isDrawerOpen(mFragmentContainerView); + } + + public void setUp() { + if (mDrawerLayout == null) + return; + mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, + GravityCompat.START); + ActionBar actionBar = getSupportActionBar(); + actionBar.setDisplayHomeAsUpEnabled(true); + actionBar.setHomeButtonEnabled(true); + + mActionBarDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, + R.drawable.ic_drawer, R.string.navigation_drawer_open, + R.string.navigation_drawer_close) { + @Override + public void onDrawerClosed(View drawerView) { + super.onDrawerClosed(drawerView); + supportInvalidateOptionsMenu(); + } + + @Override + public void onDrawerOpened(View drawerView) { + super.onDrawerOpened(drawerView); + supportInvalidateOptionsMenu(); + } + }; + mDrawerLayout.post(new Runnable() { + @Override + public void run() { + mActionBarDrawerToggle.syncState(); + } + }); + if (mDrawerOpenState && !isDrawerOpen()) { + mDrawerLayout.openDrawer(Gravity.LEFT); + } + mDrawerLayout.setDrawerListener(mActionBarDrawerToggle); + } + + public void openDrawerAnimate() { + new Handler().post(new Runnable() { + + @Override + public void run() { + if (mDrawerLayout != null) { + mDrawerLayout.openDrawer(Gravity.LEFT); + mDrawerOpenState = true; + } + } + }); + + if (mWelcomeDialog != null) { + mWelcomeDialog.setOnDismissListener(null); + } + } +} diff --git a/app/src/main/java/com/samsung/srpol/ui/PopupActivity.java b/app/src/main/java/com/samsung/srpol/ui/PopupActivity.java new file mode 100644 index 0000000..c7e9849 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/PopupActivity.java @@ -0,0 +1,145 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.ui; + +import java.util.List; + +import com.nhaarman.listviewanimations.appearance.AnimationAdapter; +import com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter; +import com.samsung.srpol.R; +import com.samsung.srpol.data.Category; +import com.samsung.srpol.data.Subcategory; +import com.samsung.srpol.loader.AppListLoader; + +import android.content.Context; +import android.content.Intent; +import android.net.Uri; +import android.os.Bundle; +import android.support.v7.app.ActionBarActivity; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.view.View.OnClickListener; +import android.widget.ArrayAdapter; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.ListView; +import android.widget.TextView; + +public class PopupActivity extends ActionBarActivity { + + public static final String POPUP_CATEGORY = "POPUP_CATEGORY"; + + private Category mCategory; + private ThreatsAdapter mAdapter; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_popup); + int categotyId = 0; + Intent intent = getIntent(); + if (intent != null) { + categotyId = intent.getIntExtra(POPUP_CATEGORY, -1); + } + + TextView header = (TextView) findViewById(R.id.header_text); + List containerList = AppListLoader.getCategories(); + if (containerList != null && categotyId >= 0) { + mCategory = containerList.get(categotyId); + header.setText(getString(R.string.apps_that) + + mCategory.getHeader()); + } + + ListView listview = (ListView) findViewById(R.id.threats_list); + mAdapter = new ThreatsAdapter(this); + for (Subcategory subCat : mCategory.getSubCategories()) + mAdapter.add(subCat); + AnimationAdapter adapter = new AlphaInAnimationAdapter(mAdapter); + adapter.setAbsListView(listview); + listview.setAdapter(adapter); + + ImageButton back = (ImageButton) findViewById(R.id.back_button); + back.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View arg0) { + finish(); + } + }); + + ImageButton more = (ImageButton) findViewById(R.id.moreinfo_button); + more.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + Intent intent = new Intent(Intent.ACTION_VIEW, Uri + .parse(mCategory.getLink())); + startActivity(intent); + } + }); + } + + private class ThreatsAdapter extends ArrayAdapter { + + private class ViewHolder { + ImageView icon; + TextView description; + } + + public ThreatsAdapter(Context context) { + super(context, R.layout.threats_list_item); + } + + @Override + public boolean isEnabled(int position) { + return false; + } + + @Override + public View getView(int position, View convertView, ViewGroup parent) { + ViewHolder holder; + if (convertView == null) { + LayoutInflater inflater = getLayoutInflater(); + convertView = inflater.inflate(R.layout.threats_list_item, + parent, false); + holder = new ViewHolder(); + holder.icon = (ImageView) convertView + .findViewById(R.id.threat_icon); + holder.description = (TextView) convertView + .findViewById(R.id.threat_text); + convertView.setTag(holder); + } else { + holder = (ViewHolder) convertView.getTag(); + } + + Subcategory item = getItem(position); + + holder.icon.setImageDrawable(item.getIconDrawable()); + holder.description.setText(item.getDescription()); + holder.description.setTextColor(getResources().getColor( + android.R.color.white)); + + return convertView; + } + } + +} diff --git a/app/src/main/java/com/samsung/srpol/ui/WelcomeDialog.java b/app/src/main/java/com/samsung/srpol/ui/WelcomeDialog.java new file mode 100644 index 0000000..2cd1659 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/WelcomeDialog.java @@ -0,0 +1,174 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.ui; + +import java.util.Timer; +import java.util.TimerTask; +import com.samsung.srpol.R; +import com.samsung.srpol.utils.Utils; + +import android.app.Dialog; +import android.content.Context; +import android.graphics.Paint; +import android.view.View; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.ProgressBar; +import android.widget.TextView; + +public class WelcomeDialog extends Dialog implements android.view.View.OnClickListener{ + private boolean isFirstTime; + private ImageButton mOkButton; + private TextView mDescriptionTextLink; + private ImageView mNpLogo, mSamsungLogo, mGovLogo; + private ProgressBar mProgressBar; + private Context mContext; + private boolean attachedToWindow = false; + private boolean mCanBeClosed; + private boolean mOpenedFromMenu = false; + + public WelcomeDialog(Context context, boolean openedFromMenu) { + super(context, R.style.WelcomeDialog); + mContext = context; + mOpenedFromMenu = openedFromMenu; + setContentView(R.layout.welcome_dialog); + + mOkButton = (ImageButton) this.findViewById(R.id.button); + mDescriptionTextLink = (TextView) this.findViewById(R.id.welcome_description_link); + mDescriptionTextLink.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG); + mProgressBar = (ProgressBar) this.findViewById(R.id.progressBar); + mNpLogo = (ImageView) findViewById(R.id.fondation_logo); + mSamsungLogo = (ImageView) findViewById(R.id.samsung_logo); + mGovLogo = (ImageView) findViewById(R.id.gov_logo); + TextView versionName = (TextView) findViewById(R.id.app_version); + versionName.setText(Utils.getAppVersionCode(context)); + mOkButton.setOnClickListener(this); + mDescriptionTextLink.setOnClickListener(this); + mNpLogo.setOnClickListener(this); + mSamsungLogo.setOnClickListener(this); + mGovLogo.setOnClickListener(this); + + isFirstTime = Utils.isFirstRun(this.getContext()); + + mCanBeClosed = false; + + if (!isFirstTime && !mOpenedFromMenu) { + new Timer().schedule(new TimerTask() { + + @Override + public void run() { + synchronized (WelcomeDialog.this) { + if (mCanBeClosed) + WelcomeDialog.this.dismissDialog(); + else + mCanBeClosed = true; + } + } + }, 2000); + } + } + + /* (non-Javadoc) + * @see android.app.Dialog#onBackPressed() + */ + @Override + public void onBackPressed() { + if(mOkButton.getVisibility() == View.VISIBLE){ + super.onBackPressed(); + } + } + + + @Override + public void onClick(View v) { + if(v == mOkButton){ + this.dismissDialog(); + } else if(v == mDescriptionTextLink){ + Utils.startBrowser(mContext, mContext.getString(R.string.app_info_more_info)); + } else if(v == mNpLogo){ + Utils.startBrowser(mContext, mContext.getString(R.string.fond_site)); + } else if(v == mSamsungLogo){ + Utils.startBrowser(mContext, mContext.getString(R.string.samsung_site)); + } else if(v == mGovLogo){ + Utils.startBrowser(mContext, mContext.getString(R.string.gov_site)); + } + } + /* (non-Javadoc) + * @see android.app.Dialog#onAttachedToWindow() + */ + @Override + public void onAttachedToWindow() { + super.onAttachedToWindow(); + attachedToWindow = true; + } + + + /* (non-Javadoc) + * @see android.app.Dialog#onDetachedFromWindow() + */ + @Override + public void onDetachedFromWindow() { + attachedToWindow = false; + super.onDetachedFromWindow(); + } + + public void loadingDone() { + if (mOpenedFromMenu) { + return; + } + if (isFirstTime) { + mProgressBar.setVisibility(View.GONE); + mOkButton.setVisibility(View.VISIBLE); + } else { + synchronized (this) { + if (mCanBeClosed) { + dismissDialog(); + } + mCanBeClosed = true; + } + } + } + + private void dismissDialog(){ + if(attachedToWindow){ + this.dismiss(); + } + } + + /** + * @return the mOpenedFromMenu + */ + public boolean ismOpenedFromMenu() { + return mOpenedFromMenu; + } + + public void show(boolean openedFromMenu) { + mOpenedFromMenu = openedFromMenu; + if (openedFromMenu) { + mOkButton.setVisibility(View.VISIBLE); + mProgressBar.setVisibility(View.GONE); + } else { + mProgressBar.setVisibility(View.VISIBLE); + mOkButton.setVisibility(View.GONE); + } + this.show(); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/samsung/srpol/ui/drawer/CategoryArrayAdapter.java b/app/src/main/java/com/samsung/srpol/ui/drawer/CategoryArrayAdapter.java new file mode 100644 index 0000000..b95febf --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/drawer/CategoryArrayAdapter.java @@ -0,0 +1,101 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.ui.drawer; + +import java.util.Collection; + +import com.samsung.srpol.R; +import com.samsung.srpol.data.Category; + +import android.content.Context; +import android.text.Spannable; +import android.text.SpannableString; +import android.text.style.ForegroundColorSpan; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ArrayAdapter; +import android.widget.ImageView; +import android.widget.TextView; + +public class CategoryArrayAdapter extends ArrayAdapter { + private final Context mContext; + private String mTextPrefix ; + private String mCountTextPrefix; + private int mSpanTextColor; + + private static class ViewHolder { + TextView textView1; + TextView textView2; + TextView textView3; + ImageView imageView; + } + + public CategoryArrayAdapter(Context context) { + super(context, R.layout.drawer_list_item); + mTextPrefix = context.getResources().getString(R.string.drawer_header_text_prefix); + mCountTextPrefix = context.getResources().getString(R.string.items_string_quantity); + mSpanTextColor = context.getResources().getColor(R.color.text_menu); + mContext = context; + } + + @Override + public void addAll(Collection collection) { + for (Category category : collection) { + super.add(category); + } + } + + @Override + public View getView(int position, View convertView, ViewGroup parent) { + ViewHolder holder = null; + if (convertView == null) { + LayoutInflater inflater = (LayoutInflater) mContext + .getSystemService(Context.LAYOUT_INFLATER_SERVICE); + convertView = inflater.inflate(R.layout.drawer_list_item, parent, + false); + holder = new ViewHolder(); + holder.textView1 = (TextView) convertView.findViewById(R.id.text1); + holder.textView2 = (TextView) convertView.findViewById(R.id.text2); + holder.textView3 = (TextView) convertView.findViewById(R.id.text3); + holder.imageView = (ImageView) convertView.findViewById(R.id.icon); + + convertView.setTag(holder); + } else { + holder = (ViewHolder) convertView.getTag(); + } + + Category category = getItem(position); + if (category.getIconRes() > 0) + holder.imageView.setImageResource(category.getIconRes()); + holder.textView1.setText(mTextPrefix + category.getHeader()); + holder.textView2.setText(category.getShortDescription()); + holder.textView3.setText(createSpannableCountText(category.getCurrentlyVisible())); + return convertView; + } + + private Spannable createSpannableCountText(int count){ + + Spannable spannable = new SpannableString(mCountTextPrefix + count); + spannable.setSpan(new ForegroundColorSpan(mSpanTextColor),mCountTextPrefix.length(), spannable.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); + return spannable; + } +} diff --git a/app/src/main/java/com/samsung/srpol/ui/drawer/MenuFragment.java b/app/src/main/java/com/samsung/srpol/ui/drawer/MenuFragment.java new file mode 100644 index 0000000..42d7c6e --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/drawer/MenuFragment.java @@ -0,0 +1,128 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.ui.drawer; + +import com.samsung.srpol.R; +import com.samsung.srpol.loader.AppListLoader; + +import android.support.v4.app.Fragment; +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.AdapterView; +import android.widget.ListView; + + +public class MenuFragment extends Fragment { + + private static final String SAVED_POSITION = "saved_position"; + + private NavigationDrawerItemListener mDrawerItemListener; + + private ListView mMenuListView; + private CategoryArrayAdapter mAdapter; + + private int mSelectedPosition = 0; + + public MenuFragment() { + } + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + if (savedInstanceState != null) { + mSelectedPosition = savedInstanceState + .getInt(SAVED_POSITION); + selectItem(mSelectedPosition); + } + } + + @Override + public void onActivityCreated(Bundle savedInstanceState) { + super.onActivityCreated(savedInstanceState); + setHasOptionsMenu(true); + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + View mRootView = (View) inflater.inflate( + R.layout.fragment_navigation_drawer, container, false); + mMenuListView = (ListView) mRootView + .findViewById(R.id.fragment_listView); + mMenuListView + .setOnItemClickListener(new AdapterView.OnItemClickListener() { + @Override + public void onItemClick(AdapterView parent, View view, + int position, long id) { + selectItem(position); + } + }); + mAdapter = new CategoryArrayAdapter(getActivity().getApplicationContext()); + mMenuListView.setAdapter(mAdapter); + + mMenuListView.setItemChecked(mSelectedPosition, true); + return mRootView; + } + + public void refresh() { + if (mAdapter != null) { + mAdapter.clear(); + mAdapter.addAll(AppListLoader.getCategories()); + mAdapter.notifyDataSetChanged(); + } + } + + + private void selectItem(int position) { + mSelectedPosition = position; + if (mMenuListView != null) { + mMenuListView.setItemChecked(position, true); + } + + if (mDrawerItemListener != null) { + mDrawerItemListener.onNavigationDrawerItemSelected(position); + } + } + + @Override + public void onDetach() { + super.onDetach(); + mDrawerItemListener = null; + } + + public void setDrawerItemListener(NavigationDrawerItemListener drawerItemListener) { + mDrawerItemListener = drawerItemListener; + } + + @Override + public void onSaveInstanceState(Bundle outState) { + super.onSaveInstanceState(outState); + outState.putInt(SAVED_POSITION, mSelectedPosition); + } + + public void notifyDataSetChanged(){ + if(mAdapter != null){ + mAdapter.notifyDataSetChanged(); + } + } +} diff --git a/app/src/main/java/com/samsung/srpol/ui/drawer/NavigationDrawerItemListener.java b/app/src/main/java/com/samsung/srpol/ui/drawer/NavigationDrawerItemListener.java new file mode 100644 index 0000000..495c51b --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/drawer/NavigationDrawerItemListener.java @@ -0,0 +1,27 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.ui.drawer; + +public interface NavigationDrawerItemListener { + + void onNavigationDrawerItemSelected(int position); + +} diff --git a/app/src/main/java/com/samsung/srpol/ui/tabpager/AppListArrayAdapter.java b/app/src/main/java/com/samsung/srpol/ui/tabpager/AppListArrayAdapter.java new file mode 100644 index 0000000..92ca1c1 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/tabpager/AppListArrayAdapter.java @@ -0,0 +1,195 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.ui.tabpager; + +import java.util.ArrayList; + +import com.samsung.srpol.R; +import com.samsung.srpol.data.Category; +import com.samsung.srpol.data.Subcategory; +import com.samsung.srpol.loader.AppDetails; +import com.samsung.srpol.loader.AppListLoader; +import com.samsung.srpol.utils.Utils; + +import android.annotation.TargetApi; +import android.content.Context; +import android.content.SharedPreferences; +import android.graphics.drawable.Drawable; +import android.os.Build; +import android.preference.PreferenceManager; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ArrayAdapter; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; + +public class AppListArrayAdapter extends ArrayAdapter { + + private static SharedPreferences mSp; + + private final Context mContext; + private final Category mCategory; + private ArrayList mDisplayedList; + + private static class ViewHolder { + public TextView appName; + public TextView appPackageName; + public ImageView appIcon; + public ImageView systemAppIcon; + public LinearLayout groupIcons; + public ImageView[] groupIconsView; + } + + public AppListArrayAdapter(Context context, Category category) { + super(context, R.layout.app_list_item_view); + mContext = context; + mCategory = category; + mDisplayedList = new ArrayList(); + if (mSp == null) + mSp = PreferenceManager.getDefaultSharedPreferences(mContext); + refreshVisibleList(); + } + + private void refreshVisibleList() { + boolean includeSystemApps = mSp.getBoolean( + AppListLoader.PREF_INCLUDE_SYSTEM_APPS, true); + + mDisplayedList.clear(); + for (AppDetails app : mCategory.getRelatedApps()) { + if (isVisible(app, includeSystemApps)) + mDisplayedList.add(app); + } + mCategory.updateVisibleCount(mDisplayedList.size()); + } + + @Override + public void notifyDataSetChanged() { + refreshVisibleList(); + super.notifyDataSetChanged(); + } + + @Override + public AppDetails getItem(int position) { + return mDisplayedList.get(position); + } + + @Override + public int getCount() { + return mDisplayedList.size(); + } + + private boolean isVisible(AppDetails item, boolean includeSystemApps) { + + return !item.isSystemApp() + || (includeSystemApps && item.isSystemApp()); + } + + @SuppressWarnings("deprecation") + @TargetApi(Build.VERSION_CODES.JELLY_BEAN) + @Override + public View getView(int position, View convertView, ViewGroup parent) { + ViewHolder holder; + if (convertView == null) { + LayoutInflater inflater = (LayoutInflater) mContext + .getSystemService(Context.LAYOUT_INFLATER_SERVICE); + convertView = inflater.inflate(R.layout.app_list_item_view, parent, + false); + holder = new ViewHolder(); + holder.appName = (TextView) convertView + .findViewById(R.id.list_app_name); + holder.appPackageName = (TextView) convertView + .findViewById(R.id.list_app_package); + holder.appIcon = (ImageView) convertView + .findViewById(R.id.list_app_icon); + holder.systemAppIcon = (ImageView) convertView + .findViewById(R.id.list_system_app_icon); + holder.groupIcons = (LinearLayout) convertView + .findViewById(R.id.app_list_group_icons); + + int i = 0; + holder.groupIconsView = new ImageView[mCategory.getSubCategories().size()]; + for (Subcategory category : mCategory.getSubCategories()){ + ImageView icon = new ImageView(mContext); + icon.setImageDrawable(category.getDarkIcon()); + holder.groupIconsView[i++] = icon; + holder.groupIcons.addView(icon); + } + convertView.setTag(holder); + } else + holder = (ViewHolder) convertView.getTag(); + + AppDetails details = getItem(position); + holder.appName.setText(details.getAppName()); + holder.appPackageName.setText(details.getAppPackageName()); + holder.appIcon.setImageDrawable(details.getAppIcon()); + + // disabling and enabling apps in system application manager is available since API 4.0 + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { + if (details.isEnabled()) { + holder.appName.setTextColor(mContext.getResources().getColor(android.R.color.black)); + } else { + holder.appName.setTextColor(mContext.getResources().getColor(R.color.disabled_app_name)); + } + } + if(details.isSystemApp()){ + holder.systemAppIcon.setVisibility(View.VISIBLE); + if(details.isEnabled()){ + holder.systemAppIcon.setImageDrawable(Utils.getmSystemIcon(mContext)); + } else { + holder.systemAppIcon.setImageDrawable(Utils.getmSystemIconDisable(mContext)); + } + } else { + holder.systemAppIcon.setVisibility(View.INVISIBLE); + } + + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) + convertView.setBackgroundDrawable(mContext + .getResources() + .getDrawable( + details.isSystemApp() ? R.color.grayout_list_item_bg + : android.R.color.white)); + else { + convertView.setBackground(mContext + .getResources() + .getDrawable( + details.isSystemApp() ? R.color.grayout_list_item_bg + : android.R.color.white)); + } + for (int i = 0; i < mCategory.getSubCategories().size(); ++i) { + if (details.isInSubcategory(mCategory.getSubCategories().get(i).getId())) { + // disabling and enabling apps in system application manager is available since API 4.0 + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { + if (details.isEnabled()) + holder.groupIconsView[i].setImageDrawable(mCategory.getSubCategories().get(i).getDarkIcon()); + else + holder.groupIconsView[i].setImageDrawable(mCategory.getSubCategories().get(i).getDisabledIcon()); + } + holder.groupIconsView[i].setVisibility(View.VISIBLE); + } else { + holder.groupIconsView[i].setVisibility(View.GONE); + } + } + return convertView; + } + +} diff --git a/app/src/main/java/com/samsung/srpol/ui/tabpager/PageAdapter.java b/app/src/main/java/com/samsung/srpol/ui/tabpager/PageAdapter.java new file mode 100644 index 0000000..df90409 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/tabpager/PageAdapter.java @@ -0,0 +1,84 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.ui.tabpager; + +import java.util.List; + +import android.content.Context; +import android.os.Bundle; +import android.support.v4.app.Fragment; +import android.support.v4.app.FragmentManager; +import android.support.v4.app.FragmentPagerAdapter; + +import com.samsung.srpol.data.Category; +import com.samsung.srpol.loader.AppListLoader; + +public class PageAdapter extends FragmentPagerAdapter { + + private static List mCategories; + private static PageFragment[] mCreatedFragments = null; + + public PageAdapter(FragmentManager fm, Context context) { + super(fm); + } + + public void refreshPages() { + if (mCategories == null) { + mCategories = AppListLoader.getCategories(); + notifyDataSetChanged(); + } else { + refreshAdapterNotify(); + } + } + + public void refreshAdapterNotify() { + for (PageFragment fragment : mCreatedFragments) { + if (fragment != null) + fragment.notifyDataSetChanged(); + } + } + @Override + public Fragment getItem(int position) { + if (mCreatedFragments == null) + mCreatedFragments = new PageFragment[mCategories.size()]; + PageFragment f = mCreatedFragments[position]; + if (f == null) { + f = new PageFragment(); + + Bundle args = new Bundle(); + args.putInt("position", position); + f.setArguments(args); + mCreatedFragments[position] = f; + } + return f; + } + + @Override + public CharSequence getPageTitle(int position) { + return mCategories.get(position).getTitle(); + } + + @Override + public int getCount() { + return mCategories == null ? 0 : mCategories.size(); + } + +} diff --git a/app/src/main/java/com/samsung/srpol/ui/tabpager/PageFragment.java b/app/src/main/java/com/samsung/srpol/ui/tabpager/PageFragment.java new file mode 100644 index 0000000..bdb7a22 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/tabpager/PageFragment.java @@ -0,0 +1,133 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.ui.tabpager; + +import com.nhaarman.listviewanimations.appearance.AnimationAdapter; +import com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter; +import com.samsung.srpol.R; +import com.samsung.srpol.data.Category; +import com.samsung.srpol.data.Subcategory; +import com.samsung.srpol.loader.AppListLoader; +import com.samsung.srpol.parallax.ParallaxListView; +import com.samsung.srpol.ui.AppInfoActivity; +import com.samsung.srpol.ui.PopupActivity; + +import android.content.Intent; +import android.os.Bundle; +import android.support.v4.app.Fragment; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.view.View.OnClickListener; +import android.widget.AdapterView; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.ListView; +import android.widget.TextView; +import android.widget.AdapterView.OnItemClickListener; + +public class PageFragment extends Fragment { + + private AppListArrayAdapter mAppListArrayAdapter; + private Category mCategory; + private int mPosition; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + mPosition = getArguments() != null ? getArguments().getInt("position") : 0; + setRetainInstance(true); + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + View rootView = inflater.inflate(R.layout.fragment_main, container, false); + + LinearLayout headerLayout = (LinearLayout) inflater.inflate(R.layout.header_layout, container, false); + headerLayout.setLayoutParams(new ListView.LayoutParams( + ListView.LayoutParams.MATCH_PARENT, ListView.LayoutParams.WRAP_CONTENT)); + if (mCategory == null) { + if (AppListLoader.getCategories() != null) { + mCategory = AppListLoader.getCategories().get(mPosition); + } else { + return rootView; + } + } + TextView header = (TextView) headerLayout.findViewById(R.id.section_label); + if (header != null) { + header.setText(mCategory.getDescription()); + } + + TextView headerLabel = (TextView) rootView.findViewById(R.id.header_label); + if (headerLabel != null) { + String titleSufix = getActivity().getString(R.string.apps_that); + headerLabel.setText(titleSufix.concat(mCategory.getHeader())); + } + + //Header icons Click + LinearLayout groupIcons = (LinearLayout) headerLayout.findViewById(R.id.group_icons); + for (Subcategory subgroup : mCategory.getSubCategories()) { + ImageView icon = new ImageView(getActivity()); + icon.setImageDrawable(subgroup.getIconDrawable()); + groupIcons.addView(icon); + } + + //Header More click + ImageButton moreButton = (ImageButton) headerLayout.findViewById(R.id.legend_btn); + moreButton.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View arg0) { + Intent intent = new Intent(getActivity(), PopupActivity.class); + intent.putExtra(PopupActivity.POPUP_CATEGORY, mPosition); + getActivity().startActivity(intent); + } + }); + + // List with applications + ParallaxListView listview = (ParallaxListView) rootView.findViewById(R.id.listview); + listview.addParallaxedHeaderView(headerLayout); + mAppListArrayAdapter = new AppListArrayAdapter(getActivity(), mCategory); + AnimationAdapter adapter = new AlphaInAnimationAdapter(mAppListArrayAdapter); + adapter.setAbsListView(listview); + listview.setAdapter(adapter); + listview.setOnItemClickListener(new OnItemClickListener() { + + @Override + public void onItemClick(AdapterView parent, View view, + int positionInAdapter, long id) { + Intent intent = new Intent(getActivity(), AppInfoActivity.class); + intent.putExtra(AppInfoActivity.APP_PACKAGE_NAME, + mAppListArrayAdapter.getItem(positionInAdapter - 1).getAppPackageName()); + getActivity().startActivity(intent); + } + }); + + return rootView; + } + + public void notifyDataSetChanged() { + mAppListArrayAdapter.notifyDataSetChanged(); + } + +} diff --git a/app/src/main/java/com/samsung/srpol/utils/Utils.java b/app/src/main/java/com/samsung/srpol/utils/Utils.java new file mode 100644 index 0000000..d938907 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/utils/Utils.java @@ -0,0 +1,154 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + 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 . +*/ + +package com.samsung.srpol.utils; + +import com.samsung.srpol.R; + +import android.content.Context; +import android.content.Intent; +import android.content.SharedPreferences; +import android.content.pm.PackageManager.NameNotFoundException; +import android.graphics.drawable.Drawable; +import android.net.Uri; +import android.os.Build; +import android.provider.Settings; + +public class Utils { + + private static final String SCHEME = "package"; + + private static final String APP_PKG_NAME_21 = "com.android.settings.ApplicationPkgName"; + + private static final String APP_PKG_NAME_22 = "pkg"; + + private static final String APP_DETAILS_PACKAGE_NAME = "com.android.settings"; + + private static final String APP_DETAILS_CLASS_NAME = "com.android.settings.InstalledAppDetails"; + + private static final String MY_PREFERENCES = "my_preferences"; + + private static Drawable mSystemIcon; + private static Drawable mSystemIconDisable; + + /** + * @return the mSystemIcon + */ + public static Drawable getmSystemIcon(Context context) { + if (mSystemIcon == null) { + return mSystemIcon = context.getResources().getDrawable( + R.drawable.ic_system_red_dark); + } else { + return mSystemIcon; + } + } + + /** + * @return the mSystemIcon + */ + public static Drawable getmSystemIconDisable(Context context) { + if (mSystemIconDisable == null) { + return mSystemIconDisable = context.getResources().getDrawable( + R.drawable.ic_system_red_disable); + } else { + return mSystemIconDisable; + } + } + + /** + * Show Platform's Settings app Window with details about given packageName + * app + * + * @param context + * App context + * @param packageName + * Package name of requested app details + */ + public static void showInstalledAppDetails(Context context, + String packageName) { + Intent intent = new Intent(); + final int apiLevel = Build.VERSION.SDK_INT; + if (apiLevel >= 9) { // above 2.3 + intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); + Uri uri = Uri.fromParts(SCHEME, packageName, null); + intent.setData(uri); + } else { // below 2.3 + // TODO not tested + final String appPkgName = (apiLevel == 8 ? APP_PKG_NAME_22 + : APP_PKG_NAME_21); + intent.setAction(Intent.ACTION_VIEW); + intent.setClassName(APP_DETAILS_PACKAGE_NAME, + APP_DETAILS_CLASS_NAME); + intent.putExtra(appPkgName, packageName); + } + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); + context.startActivity(intent); + } + + public static void unistallApp(Context context, String packageName) { + Intent intent = new Intent(); + final int apiLevel = Build.VERSION.SDK_INT; + if (apiLevel >= 14) { // above 4.0 + intent.setAction(Intent.ACTION_DELETE); + Uri uri = Uri.fromParts(SCHEME, packageName, null); + intent.setData(uri); + } else { // below 4.0 + // TODO not tested + final String appPkgName = (apiLevel == 8 ? APP_PKG_NAME_22 + : APP_PKG_NAME_21); + intent.setAction(Intent.ACTION_VIEW); + intent.setClassName(APP_DETAILS_PACKAGE_NAME, + APP_DETAILS_CLASS_NAME); + intent.putExtra(appPkgName, packageName); + } + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + context.startActivity(intent); + } + + public static String getAppVersionCode(Context context) { + String versionName; + try { + versionName = context.getPackageManager().getPackageInfo( + context.getPackageName(), 0).versionName; + } catch (NameNotFoundException e) { + versionName = "not found"; + e.printStackTrace(); + } + return versionName; + } + + public static boolean isFirstRun(Context context) { + final SharedPreferences reader = context.getSharedPreferences( + MY_PREFERENCES, Context.MODE_PRIVATE); + final boolean first = reader.getBoolean("is_first", true); + if (first) { + final SharedPreferences.Editor editor = reader.edit(); + editor.putBoolean("is_first", false); + editor.commit(); + } + return first; + } + + public static void startBrowser(Context context, String url) { + Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + context.startActivity(intent); + } +} diff --git a/app/src/main/res/anim/fadein.xml b/app/src/main/res/anim/fadein.xml new file mode 100644 index 0000000..9846462 --- /dev/null +++ b/app/src/main/res/anim/fadein.xml @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/app/src/main/res/anim/fadeout.xml b/app/src/main/res/anim/fadeout.xml new file mode 100644 index 0000000..827ebee --- /dev/null +++ b/app/src/main/res/anim/fadeout.xml @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/app/src/main/res/anim/slide_right.xml b/app/src/main/res/anim/slide_right.xml new file mode 100644 index 0000000..fda641c --- /dev/null +++ b/app/src/main/res/anim/slide_right.xml @@ -0,0 +1,6 @@ + + diff --git a/app/src/main/res/drawable-hdpi/btn_co_moge_normal.png b/app/src/main/res/drawable-hdpi/btn_co_moge_normal.png new file mode 100644 index 0000000..9f35b97 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_co_moge_normal.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_co_moge_pressed.png b/app/src/main/res/drawable-hdpi/btn_co_moge_pressed.png new file mode 100644 index 0000000..8d7dd31 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_co_moge_pressed.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_legenda_normal.png b/app/src/main/res/drawable-hdpi/btn_legenda_normal.png new file mode 100644 index 0000000..5a0d18f Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_legenda_normal.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_legenda_pressed.png b/app/src/main/res/drawable-hdpi/btn_legenda_pressed.png new file mode 100644 index 0000000..46aa50f Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_legenda_pressed.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_odinstaluj_normal.png b/app/src/main/res/drawable-hdpi/btn_odinstaluj_normal.png new file mode 100644 index 0000000..639d800 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_odinstaluj_normal.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_odinstaluj_pressed.png b/app/src/main/res/drawable-hdpi/btn_odinstaluj_pressed.png new file mode 100644 index 0000000..7bcca20 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_odinstaluj_pressed.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_ok_normal.png b/app/src/main/res/drawable-hdpi/btn_ok_normal.png new file mode 100644 index 0000000..9896289 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_ok_normal.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_ok_pressed.png b/app/src/main/res/drawable-hdpi/btn_ok_pressed.png new file mode 100644 index 0000000..2056355 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_ok_pressed.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_powrot_normal.png b/app/src/main/res/drawable-hdpi/btn_powrot_normal.png new file mode 100644 index 0000000..5bb6b59 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_powrot_normal.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_powrot_pressed.png b/app/src/main/res/drawable-hdpi/btn_powrot_pressed.png new file mode 100644 index 0000000..1b69f86 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_powrot_pressed.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_ustawienia_normal.png b/app/src/main/res/drawable-hdpi/btn_ustawienia_normal.png new file mode 100644 index 0000000..5ca2c8d Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_ustawienia_normal.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_ustawienia_pressed.png b/app/src/main/res/drawable-hdpi/btn_ustawienia_pressed.png new file mode 100644 index 0000000..295e402 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_ustawienia_pressed.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_wiecej_info_normal.png b/app/src/main/res/drawable-hdpi/btn_wiecej_info_normal.png new file mode 100644 index 0000000..12a52a3 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_wiecej_info_normal.png differ diff --git a/app/src/main/res/drawable-hdpi/btn_wiecej_info_pressed.png b/app/src/main/res/drawable-hdpi/btn_wiecej_info_pressed.png new file mode 100644 index 0000000..2551679 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/btn_wiecej_info_pressed.png differ diff --git a/app/src/main/res/drawable-hdpi/drawer_shadow.9.png b/app/src/main/res/drawable-hdpi/drawer_shadow.9.png new file mode 100644 index 0000000..236bff5 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/drawer_shadow.9.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_broke.png b/app/src/main/res/drawable-hdpi/ic_broke.png new file mode 100644 index 0000000..7b74d3a Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_broke.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_broke_dark.png b/app/src/main/res/drawable-hdpi/ic_broke_dark.png new file mode 100644 index 0000000..25ec702 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_broke_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_broke_disable.png b/app/src/main/res/drawable-hdpi/ic_broke_disable.png new file mode 100644 index 0000000..f1ee8a8 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_broke_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_call.png b/app/src/main/res/drawable-hdpi/ic_call.png new file mode 100644 index 0000000..0e6b1d5 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_call.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_call_dark.png b/app/src/main/res/drawable-hdpi/ic_call_dark.png new file mode 100644 index 0000000..99e7015 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_call_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_call_disable.png b/app/src/main/res/drawable-hdpi/ic_call_disable.png new file mode 100644 index 0000000..f22e3c2 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_call_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_call_history.png b/app/src/main/res/drawable-hdpi/ic_call_history.png new file mode 100644 index 0000000..408df30 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_call_history.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_call_history_dark.png b/app/src/main/res/drawable-hdpi/ic_call_history_dark.png new file mode 100644 index 0000000..bb8e041 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_call_history_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_call_history_disable.png b/app/src/main/res/drawable-hdpi/ic_call_history_disable.png new file mode 100644 index 0000000..ea19d2c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_call_history_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_communication.png b/app/src/main/res/drawable-hdpi/ic_communication.png new file mode 100644 index 0000000..c5121da Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_communication.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_communication_dark.png b/app/src/main/res/drawable-hdpi/ic_communication_dark.png new file mode 100644 index 0000000..ed9d32f Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_communication_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_communication_disable.png b/app/src/main/res/drawable-hdpi/ic_communication_disable.png new file mode 100644 index 0000000..6ae7dfb Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_communication_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_cyber_profile.png b/app/src/main/res/drawable-hdpi/ic_cyber_profile.png new file mode 100644 index 0000000..b0fa20b Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_cyber_profile.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_cyber_profile_dark.png b/app/src/main/res/drawable-hdpi/ic_cyber_profile_dark.png new file mode 100644 index 0000000..bf05bec Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_cyber_profile_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_cyber_profile_disable.png b/app/src/main/res/drawable-hdpi/ic_cyber_profile_disable.png new file mode 100644 index 0000000..b2ce2a1 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_cyber_profile_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_data_sending.png b/app/src/main/res/drawable-hdpi/ic_data_sending.png new file mode 100644 index 0000000..4a22e5c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_data_sending.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_data_sending_dark.png b/app/src/main/res/drawable-hdpi/ic_data_sending_dark.png new file mode 100644 index 0000000..8827f43 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_data_sending_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_data_sending_disable.png b/app/src/main/res/drawable-hdpi/ic_data_sending_disable.png new file mode 100644 index 0000000..5635a81 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_data_sending_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_data_transmission.png b/app/src/main/res/drawable-hdpi/ic_data_transmission.png new file mode 100644 index 0000000..26cbd0d Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_data_transmission.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_data_transmission_dark.png b/app/src/main/res/drawable-hdpi/ic_data_transmission_dark.png new file mode 100644 index 0000000..00694e6 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_data_transmission_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_data_transmission_disable.png b/app/src/main/res/drawable-hdpi/ic_data_transmission_disable.png new file mode 100644 index 0000000..e2be66b Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_data_transmission_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_device.png b/app/src/main/res/drawable-hdpi/ic_device.png new file mode 100644 index 0000000..b5f2a16 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_device.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_device_control.png b/app/src/main/res/drawable-hdpi/ic_device_control.png new file mode 100644 index 0000000..53cc270 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_device_control.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_device_control_dark.png b/app/src/main/res/drawable-hdpi/ic_device_control_dark.png new file mode 100644 index 0000000..c4ea76f Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_device_control_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_device_control_disable.png b/app/src/main/res/drawable-hdpi/ic_device_control_disable.png new file mode 100644 index 0000000..f48c5a7 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_device_control_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_device_dark.png b/app/src/main/res/drawable-hdpi/ic_device_dark.png new file mode 100644 index 0000000..de67ca7 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_device_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_device_disable.png b/app/src/main/res/drawable-hdpi/ic_device_disable.png new file mode 100644 index 0000000..bc33971 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_device_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_device_drawer.png b/app/src/main/res/drawable-hdpi/ic_device_drawer.png new file mode 100644 index 0000000..6644296 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_device_drawer.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_disturb.png b/app/src/main/res/drawable-hdpi/ic_disturb.png new file mode 100644 index 0000000..36aaa8c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_disturb.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_disturb_dark.png b/app/src/main/res/drawable-hdpi/ic_disturb_dark.png new file mode 100644 index 0000000..5440d14 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_disturb_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_disturb_disable.png b/app/src/main/res/drawable-hdpi/ic_disturb_disable.png new file mode 100644 index 0000000..591e5c5 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_disturb_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_drawer.png b/app/src/main/res/drawable-hdpi/ic_drawer.png new file mode 100644 index 0000000..4bec999 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_drawer.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_files.png b/app/src/main/res/drawable-hdpi/ic_files.png new file mode 100644 index 0000000..ad281ba Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_files.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_files_dark.png b/app/src/main/res/drawable-hdpi/ic_files_dark.png new file mode 100644 index 0000000..2df9b8a Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_files_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_files_disable.png b/app/src/main/res/drawable-hdpi/ic_files_disable.png new file mode 100644 index 0000000..633e476 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_files_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_files_edit.png b/app/src/main/res/drawable-hdpi/ic_files_edit.png new file mode 100644 index 0000000..6aed10b Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_files_edit.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_files_edit_dark.png b/app/src/main/res/drawable-hdpi/ic_files_edit_dark.png new file mode 100644 index 0000000..378a982 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_files_edit_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_files_edit_disable.png b/app/src/main/res/drawable-hdpi/ic_files_edit_disable.png new file mode 100644 index 0000000..96b1731 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_files_edit_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_launcher.png b/app/src/main/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..49efd5c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_launcher.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_location.png b/app/src/main/res/drawable-hdpi/ic_location.png new file mode 100644 index 0000000..f383c86 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_location.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_location_dark.png b/app/src/main/res/drawable-hdpi/ic_location_dark.png new file mode 100644 index 0000000..931bb45 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_location_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_location_disable.png b/app/src/main/res/drawable-hdpi/ic_location_disable.png new file mode 100644 index 0000000..02c6e79 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_location_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_profile_drawer.png b/app/src/main/res/drawable-hdpi/ic_profile_drawer.png new file mode 100644 index 0000000..a955dea Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_profile_drawer.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_sms.png b/app/src/main/res/drawable-hdpi/ic_sms.png new file mode 100644 index 0000000..081e014 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_sms.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_sms_dark.png b/app/src/main/res/drawable-hdpi/ic_sms_dark.png new file mode 100644 index 0000000..28faea8 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_sms_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_sms_disable.png b/app/src/main/res/drawable-hdpi/ic_sms_disable.png new file mode 100644 index 0000000..0aa5203 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_sms_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_system.png b/app/src/main/res/drawable-hdpi/ic_system.png new file mode 100644 index 0000000..b092202 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_system.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_system_dark.png b/app/src/main/res/drawable-hdpi/ic_system_dark.png new file mode 100644 index 0000000..caa9f0b Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_system_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_system_disable.png b/app/src/main/res/drawable-hdpi/ic_system_disable.png new file mode 100644 index 0000000..37febde Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_system_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_system_red.png b/app/src/main/res/drawable-hdpi/ic_system_red.png new file mode 100644 index 0000000..a85b679 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_system_red.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_system_red_dark.png b/app/src/main/res/drawable-hdpi/ic_system_red_dark.png new file mode 100644 index 0000000..19d42c9 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_system_red_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_system_red_disable.png b/app/src/main/res/drawable-hdpi/ic_system_red_disable.png new file mode 100644 index 0000000..7af6801 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_system_red_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_wallet_drawer.png b/app/src/main/res/drawable-hdpi/ic_wallet_drawer.png new file mode 100644 index 0000000..e81905d Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_wallet_drawer.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_warning_drawer.png b/app/src/main/res/drawable-hdpi/ic_warning_drawer.png new file mode 100644 index 0000000..678b2ef Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_warning_drawer.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_wiretapping.png b/app/src/main/res/drawable-hdpi/ic_wiretapping.png new file mode 100644 index 0000000..589d129 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_wiretapping.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_wiretapping_dark.png b/app/src/main/res/drawable-hdpi/ic_wiretapping_dark.png new file mode 100644 index 0000000..80be5e7 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_wiretapping_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_wiretapping_disable.png b/app/src/main/res/drawable-hdpi/ic_wiretapping_disable.png new file mode 100644 index 0000000..9686fa2 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_wiretapping_disable.png differ diff --git a/app/src/main/res/drawable-hdpi/img_welcome_screen.png b/app/src/main/res/drawable-hdpi/img_welcome_screen.png new file mode 100644 index 0000000..709ccc9 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/img_welcome_screen.png differ diff --git a/app/src/main/res/drawable-hdpi/logo_fnp.png b/app/src/main/res/drawable-hdpi/logo_fnp.png new file mode 100644 index 0000000..6246e55 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/logo_fnp.png differ diff --git a/app/src/main/res/drawable-hdpi/logo_maic.png b/app/src/main/res/drawable-hdpi/logo_maic.png new file mode 100644 index 0000000..cbb69dc Binary files /dev/null and b/app/src/main/res/drawable-hdpi/logo_maic.png differ diff --git a/app/src/main/res/drawable-hdpi/logo_samsung.png b/app/src/main/res/drawable-hdpi/logo_samsung.png new file mode 100644 index 0000000..6466967 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/logo_samsung.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_co_moge_normal.png b/app/src/main/res/drawable-ldpi/btn_co_moge_normal.png new file mode 100644 index 0000000..728a5a9 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_co_moge_normal.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_co_moge_pressed.png b/app/src/main/res/drawable-ldpi/btn_co_moge_pressed.png new file mode 100644 index 0000000..5785e78 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_co_moge_pressed.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_legenda_normal.png b/app/src/main/res/drawable-ldpi/btn_legenda_normal.png new file mode 100644 index 0000000..fa4fb69 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_legenda_normal.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_legenda_pressed.png b/app/src/main/res/drawable-ldpi/btn_legenda_pressed.png new file mode 100644 index 0000000..a56d527 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_legenda_pressed.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_odinstaluj_normal.png b/app/src/main/res/drawable-ldpi/btn_odinstaluj_normal.png new file mode 100644 index 0000000..e571ca3 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_odinstaluj_normal.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_odinstaluj_pressed.png b/app/src/main/res/drawable-ldpi/btn_odinstaluj_pressed.png new file mode 100644 index 0000000..1407f3c Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_odinstaluj_pressed.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_ok_normal.png b/app/src/main/res/drawable-ldpi/btn_ok_normal.png new file mode 100644 index 0000000..4258e33 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_ok_normal.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_ok_pressed.png b/app/src/main/res/drawable-ldpi/btn_ok_pressed.png new file mode 100644 index 0000000..eaaacdf Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_ok_pressed.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_powrot_normal.png b/app/src/main/res/drawable-ldpi/btn_powrot_normal.png new file mode 100644 index 0000000..d908808 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_powrot_normal.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_powrot_pressed.png b/app/src/main/res/drawable-ldpi/btn_powrot_pressed.png new file mode 100644 index 0000000..8257aa1 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_powrot_pressed.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_ustawienia_normal.png b/app/src/main/res/drawable-ldpi/btn_ustawienia_normal.png new file mode 100644 index 0000000..2e5d3e4 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_ustawienia_normal.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_ustawienia_pressed.png b/app/src/main/res/drawable-ldpi/btn_ustawienia_pressed.png new file mode 100644 index 0000000..849038f Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_ustawienia_pressed.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_wiecej_info_normal.png b/app/src/main/res/drawable-ldpi/btn_wiecej_info_normal.png new file mode 100644 index 0000000..1d282ac Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_wiecej_info_normal.png differ diff --git a/app/src/main/res/drawable-ldpi/btn_wiecej_info_pressed.png b/app/src/main/res/drawable-ldpi/btn_wiecej_info_pressed.png new file mode 100644 index 0000000..8916c63 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/btn_wiecej_info_pressed.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_broke.png b/app/src/main/res/drawable-ldpi/ic_broke.png new file mode 100644 index 0000000..4bf50ed Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_broke.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_broke_dark.png b/app/src/main/res/drawable-ldpi/ic_broke_dark.png new file mode 100644 index 0000000..78f0842 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_broke_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_broke_disable.png b/app/src/main/res/drawable-ldpi/ic_broke_disable.png new file mode 100644 index 0000000..2af5823 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_broke_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_call.png b/app/src/main/res/drawable-ldpi/ic_call.png new file mode 100644 index 0000000..927effc Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_call.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_call_dark.png b/app/src/main/res/drawable-ldpi/ic_call_dark.png new file mode 100644 index 0000000..bb54de6 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_call_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_call_disable.png b/app/src/main/res/drawable-ldpi/ic_call_disable.png new file mode 100644 index 0000000..811860e Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_call_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_call_history.png b/app/src/main/res/drawable-ldpi/ic_call_history.png new file mode 100644 index 0000000..0623421 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_call_history.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_call_history_dark.png b/app/src/main/res/drawable-ldpi/ic_call_history_dark.png new file mode 100644 index 0000000..8fd362e Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_call_history_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_call_history_disable.png b/app/src/main/res/drawable-ldpi/ic_call_history_disable.png new file mode 100644 index 0000000..bbde2aa Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_call_history_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_communication.png b/app/src/main/res/drawable-ldpi/ic_communication.png new file mode 100644 index 0000000..b364cd3 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_communication.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_communication_dark.png b/app/src/main/res/drawable-ldpi/ic_communication_dark.png new file mode 100644 index 0000000..cd545ce Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_communication_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_communication_disable.png b/app/src/main/res/drawable-ldpi/ic_communication_disable.png new file mode 100644 index 0000000..c4e6a89 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_communication_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_cyber_profile.png b/app/src/main/res/drawable-ldpi/ic_cyber_profile.png new file mode 100644 index 0000000..18defb1 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_cyber_profile.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_cyber_profile_dark.png b/app/src/main/res/drawable-ldpi/ic_cyber_profile_dark.png new file mode 100644 index 0000000..8fff6b9 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_cyber_profile_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_cyber_profile_disable.png b/app/src/main/res/drawable-ldpi/ic_cyber_profile_disable.png new file mode 100644 index 0000000..261c96f Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_cyber_profile_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_data_sending.png b/app/src/main/res/drawable-ldpi/ic_data_sending.png new file mode 100644 index 0000000..db8debe Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_data_sending.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_data_sending_dark.png b/app/src/main/res/drawable-ldpi/ic_data_sending_dark.png new file mode 100644 index 0000000..17f98de Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_data_sending_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_data_sending_disable.png b/app/src/main/res/drawable-ldpi/ic_data_sending_disable.png new file mode 100644 index 0000000..6b784ef Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_data_sending_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_data_transmission.png b/app/src/main/res/drawable-ldpi/ic_data_transmission.png new file mode 100644 index 0000000..ff6c5eb Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_data_transmission.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_data_transmission_dark.png b/app/src/main/res/drawable-ldpi/ic_data_transmission_dark.png new file mode 100644 index 0000000..df3694d Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_data_transmission_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_data_transmission_disable.png b/app/src/main/res/drawable-ldpi/ic_data_transmission_disable.png new file mode 100644 index 0000000..e5bfdf1 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_data_transmission_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_device.png b/app/src/main/res/drawable-ldpi/ic_device.png new file mode 100644 index 0000000..588489a Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_device.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_device_control.png b/app/src/main/res/drawable-ldpi/ic_device_control.png new file mode 100644 index 0000000..12e64af Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_device_control.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_device_control_dark.png b/app/src/main/res/drawable-ldpi/ic_device_control_dark.png new file mode 100644 index 0000000..28c9bf2 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_device_control_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_device_control_disable.png b/app/src/main/res/drawable-ldpi/ic_device_control_disable.png new file mode 100644 index 0000000..6e32d58 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_device_control_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_device_dark.png b/app/src/main/res/drawable-ldpi/ic_device_dark.png new file mode 100644 index 0000000..daf9131 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_device_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_device_disable.png b/app/src/main/res/drawable-ldpi/ic_device_disable.png new file mode 100644 index 0000000..4b743f2 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_device_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_device_drawer.png b/app/src/main/res/drawable-ldpi/ic_device_drawer.png new file mode 100644 index 0000000..630a5dd Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_device_drawer.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_disturb.png b/app/src/main/res/drawable-ldpi/ic_disturb.png new file mode 100644 index 0000000..1390b80 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_disturb.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_disturb_dark.png b/app/src/main/res/drawable-ldpi/ic_disturb_dark.png new file mode 100644 index 0000000..a2410f2 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_disturb_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_disturb_disable.png b/app/src/main/res/drawable-ldpi/ic_disturb_disable.png new file mode 100644 index 0000000..47921aa Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_disturb_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_files.png b/app/src/main/res/drawable-ldpi/ic_files.png new file mode 100644 index 0000000..bb33e2d Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_files.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_files_dark.png b/app/src/main/res/drawable-ldpi/ic_files_dark.png new file mode 100644 index 0000000..0e03ff8 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_files_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_files_disable.png b/app/src/main/res/drawable-ldpi/ic_files_disable.png new file mode 100644 index 0000000..dc43a37 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_files_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_files_edit.png b/app/src/main/res/drawable-ldpi/ic_files_edit.png new file mode 100644 index 0000000..80ee771 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_files_edit.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_files_edit_dark.png b/app/src/main/res/drawable-ldpi/ic_files_edit_dark.png new file mode 100644 index 0000000..9a040c0 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_files_edit_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_files_edit_disable.png b/app/src/main/res/drawable-ldpi/ic_files_edit_disable.png new file mode 100644 index 0000000..84c102f Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_files_edit_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_launcher.png b/app/src/main/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..0ab00a6 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_launcher.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_location.png b/app/src/main/res/drawable-ldpi/ic_location.png new file mode 100644 index 0000000..8b98b6e Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_location.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_location_dark.png b/app/src/main/res/drawable-ldpi/ic_location_dark.png new file mode 100644 index 0000000..02b5874 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_location_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_location_disable.png b/app/src/main/res/drawable-ldpi/ic_location_disable.png new file mode 100644 index 0000000..4328af5 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_location_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_profile_drawer.png b/app/src/main/res/drawable-ldpi/ic_profile_drawer.png new file mode 100644 index 0000000..0c0303e Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_profile_drawer.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_sms.png b/app/src/main/res/drawable-ldpi/ic_sms.png new file mode 100644 index 0000000..438ff61 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_sms.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_sms_dark.png b/app/src/main/res/drawable-ldpi/ic_sms_dark.png new file mode 100644 index 0000000..cf20ab3 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_sms_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_sms_disable.png b/app/src/main/res/drawable-ldpi/ic_sms_disable.png new file mode 100644 index 0000000..fe80788 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_sms_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_system.png b/app/src/main/res/drawable-ldpi/ic_system.png new file mode 100644 index 0000000..6587fa0 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_system.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_system_dark.png b/app/src/main/res/drawable-ldpi/ic_system_dark.png new file mode 100644 index 0000000..b2f9d80 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_system_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_system_disable.png b/app/src/main/res/drawable-ldpi/ic_system_disable.png new file mode 100644 index 0000000..379f5f1 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_system_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_system_red.png b/app/src/main/res/drawable-ldpi/ic_system_red.png new file mode 100644 index 0000000..ed0a4f4 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_system_red.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_system_red_dark.png b/app/src/main/res/drawable-ldpi/ic_system_red_dark.png new file mode 100644 index 0000000..3626302 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_system_red_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_system_red_disable.png b/app/src/main/res/drawable-ldpi/ic_system_red_disable.png new file mode 100644 index 0000000..85b570a Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_system_red_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_wallet_drawer.png b/app/src/main/res/drawable-ldpi/ic_wallet_drawer.png new file mode 100644 index 0000000..d44453a Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_wallet_drawer.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_warning_drawer.png b/app/src/main/res/drawable-ldpi/ic_warning_drawer.png new file mode 100644 index 0000000..ac6cf35 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_warning_drawer.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_wiretapping.png b/app/src/main/res/drawable-ldpi/ic_wiretapping.png new file mode 100644 index 0000000..16c972b Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_wiretapping.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_wiretapping_dark.png b/app/src/main/res/drawable-ldpi/ic_wiretapping_dark.png new file mode 100644 index 0000000..94c2d57 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_wiretapping_dark.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_wiretapping_disable.png b/app/src/main/res/drawable-ldpi/ic_wiretapping_disable.png new file mode 100644 index 0000000..1679057 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_wiretapping_disable.png differ diff --git a/app/src/main/res/drawable-ldpi/img_welcome_screen.png b/app/src/main/res/drawable-ldpi/img_welcome_screen.png new file mode 100644 index 0000000..3588cba Binary files /dev/null and b/app/src/main/res/drawable-ldpi/img_welcome_screen.png differ diff --git a/app/src/main/res/drawable-ldpi/logo_fnp.png b/app/src/main/res/drawable-ldpi/logo_fnp.png new file mode 100644 index 0000000..76cba31 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/logo_fnp.png differ diff --git a/app/src/main/res/drawable-ldpi/logo_maic.png b/app/src/main/res/drawable-ldpi/logo_maic.png new file mode 100644 index 0000000..943d377 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/logo_maic.png differ diff --git a/app/src/main/res/drawable-ldpi/logo_samsung.png b/app/src/main/res/drawable-ldpi/logo_samsung.png new file mode 100644 index 0000000..8b46cd0 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/logo_samsung.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_co_moge_normal.png b/app/src/main/res/drawable-mdpi/btn_co_moge_normal.png new file mode 100644 index 0000000..53e01a3 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_co_moge_normal.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_co_moge_pressed.png b/app/src/main/res/drawable-mdpi/btn_co_moge_pressed.png new file mode 100644 index 0000000..de229f5 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_co_moge_pressed.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_legenda_normal.png b/app/src/main/res/drawable-mdpi/btn_legenda_normal.png new file mode 100644 index 0000000..65c4325 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_legenda_normal.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_legenda_pressed.png b/app/src/main/res/drawable-mdpi/btn_legenda_pressed.png new file mode 100644 index 0000000..ceff041 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_legenda_pressed.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_odinstaluj_normal.png b/app/src/main/res/drawable-mdpi/btn_odinstaluj_normal.png new file mode 100644 index 0000000..e465020 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_odinstaluj_normal.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_odinstaluj_pressed.png b/app/src/main/res/drawable-mdpi/btn_odinstaluj_pressed.png new file mode 100644 index 0000000..35e5e79 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_odinstaluj_pressed.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_ok_normal.png b/app/src/main/res/drawable-mdpi/btn_ok_normal.png new file mode 100644 index 0000000..0c257bb Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_ok_normal.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_ok_pressed.png b/app/src/main/res/drawable-mdpi/btn_ok_pressed.png new file mode 100644 index 0000000..af417c0 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_ok_pressed.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_powrot_normal.png b/app/src/main/res/drawable-mdpi/btn_powrot_normal.png new file mode 100644 index 0000000..5fa28ad Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_powrot_normal.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_powrot_pressed.png b/app/src/main/res/drawable-mdpi/btn_powrot_pressed.png new file mode 100644 index 0000000..1920f0f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_powrot_pressed.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_ustawienia_normal.png b/app/src/main/res/drawable-mdpi/btn_ustawienia_normal.png new file mode 100644 index 0000000..798fc3d Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_ustawienia_normal.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_ustawienia_pressed.png b/app/src/main/res/drawable-mdpi/btn_ustawienia_pressed.png new file mode 100644 index 0000000..307fdf7 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_ustawienia_pressed.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_wiecej_info_normal.png b/app/src/main/res/drawable-mdpi/btn_wiecej_info_normal.png new file mode 100644 index 0000000..3c9044f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_wiecej_info_normal.png differ diff --git a/app/src/main/res/drawable-mdpi/btn_wiecej_info_pressed.png b/app/src/main/res/drawable-mdpi/btn_wiecej_info_pressed.png new file mode 100644 index 0000000..6ce433f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/btn_wiecej_info_pressed.png differ diff --git a/app/src/main/res/drawable-mdpi/drawer_shadow.9.png b/app/src/main/res/drawable-mdpi/drawer_shadow.9.png new file mode 100644 index 0000000..ffe3a28 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/drawer_shadow.9.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_broke.png b/app/src/main/res/drawable-mdpi/ic_broke.png new file mode 100644 index 0000000..e9a3ade Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_broke.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_broke_dark.png b/app/src/main/res/drawable-mdpi/ic_broke_dark.png new file mode 100644 index 0000000..7fc327a Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_broke_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_broke_disable.png b/app/src/main/res/drawable-mdpi/ic_broke_disable.png new file mode 100644 index 0000000..9b8aabf Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_broke_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_call.png b/app/src/main/res/drawable-mdpi/ic_call.png new file mode 100644 index 0000000..e79dbc0 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_call.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_call_dark.png b/app/src/main/res/drawable-mdpi/ic_call_dark.png new file mode 100644 index 0000000..ea8ff9e Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_call_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_call_disable.png b/app/src/main/res/drawable-mdpi/ic_call_disable.png new file mode 100644 index 0000000..ace654e Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_call_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_call_history.png b/app/src/main/res/drawable-mdpi/ic_call_history.png new file mode 100644 index 0000000..e55e370 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_call_history.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_call_history_dark.png b/app/src/main/res/drawable-mdpi/ic_call_history_dark.png new file mode 100644 index 0000000..1ad1e81 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_call_history_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_call_history_disable.png b/app/src/main/res/drawable-mdpi/ic_call_history_disable.png new file mode 100644 index 0000000..b0ec11f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_call_history_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_communication.png b/app/src/main/res/drawable-mdpi/ic_communication.png new file mode 100644 index 0000000..f2f5441 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_communication.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_communication_dark.png b/app/src/main/res/drawable-mdpi/ic_communication_dark.png new file mode 100644 index 0000000..2b636a7 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_communication_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_communication_disable.png b/app/src/main/res/drawable-mdpi/ic_communication_disable.png new file mode 100644 index 0000000..a6478aa Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_communication_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_cyber_profile.png b/app/src/main/res/drawable-mdpi/ic_cyber_profile.png new file mode 100644 index 0000000..75b13fd Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_cyber_profile.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_cyber_profile_dark.png b/app/src/main/res/drawable-mdpi/ic_cyber_profile_dark.png new file mode 100644 index 0000000..9f338a9 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_cyber_profile_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_cyber_profile_disable.png b/app/src/main/res/drawable-mdpi/ic_cyber_profile_disable.png new file mode 100644 index 0000000..8afb6d8 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_cyber_profile_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_data_sending.png b/app/src/main/res/drawable-mdpi/ic_data_sending.png new file mode 100644 index 0000000..3d96287 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_data_sending.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_data_sending_dark.png b/app/src/main/res/drawable-mdpi/ic_data_sending_dark.png new file mode 100644 index 0000000..a43ba11 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_data_sending_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_data_sending_disable.png b/app/src/main/res/drawable-mdpi/ic_data_sending_disable.png new file mode 100644 index 0000000..7d5858d Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_data_sending_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_data_transmission.png b/app/src/main/res/drawable-mdpi/ic_data_transmission.png new file mode 100644 index 0000000..25e7b80 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_data_transmission.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_data_transmission_dark.png b/app/src/main/res/drawable-mdpi/ic_data_transmission_dark.png new file mode 100644 index 0000000..c889de1 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_data_transmission_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_data_transmission_disable.png b/app/src/main/res/drawable-mdpi/ic_data_transmission_disable.png new file mode 100644 index 0000000..c112a7f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_data_transmission_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_device.png b/app/src/main/res/drawable-mdpi/ic_device.png new file mode 100644 index 0000000..90c5b8d Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_device.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_device_control.png b/app/src/main/res/drawable-mdpi/ic_device_control.png new file mode 100644 index 0000000..80dce48 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_device_control.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_device_control_dark.png b/app/src/main/res/drawable-mdpi/ic_device_control_dark.png new file mode 100644 index 0000000..35b03a7 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_device_control_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_device_control_disable.png b/app/src/main/res/drawable-mdpi/ic_device_control_disable.png new file mode 100644 index 0000000..b945efa Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_device_control_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_device_dark.png b/app/src/main/res/drawable-mdpi/ic_device_dark.png new file mode 100644 index 0000000..3aaced0 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_device_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_device_disable.png b/app/src/main/res/drawable-mdpi/ic_device_disable.png new file mode 100644 index 0000000..e9e6fe6 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_device_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_device_drawer.png b/app/src/main/res/drawable-mdpi/ic_device_drawer.png new file mode 100644 index 0000000..32c5be8 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_device_drawer.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_disturb.png b/app/src/main/res/drawable-mdpi/ic_disturb.png new file mode 100644 index 0000000..9860183 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_disturb.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_disturb_dark.png b/app/src/main/res/drawable-mdpi/ic_disturb_dark.png new file mode 100644 index 0000000..5110a8d Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_disturb_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_disturb_disable.png b/app/src/main/res/drawable-mdpi/ic_disturb_disable.png new file mode 100644 index 0000000..8a3ff91 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_disturb_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_drawer.png b/app/src/main/res/drawable-mdpi/ic_drawer.png new file mode 100644 index 0000000..831f763 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_drawer.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_files.png b/app/src/main/res/drawable-mdpi/ic_files.png new file mode 100644 index 0000000..0a05c91 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_files.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_files_dark.png b/app/src/main/res/drawable-mdpi/ic_files_dark.png new file mode 100644 index 0000000..84cb78e Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_files_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_files_disable.png b/app/src/main/res/drawable-mdpi/ic_files_disable.png new file mode 100644 index 0000000..cd75904 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_files_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_files_edit.png b/app/src/main/res/drawable-mdpi/ic_files_edit.png new file mode 100644 index 0000000..a5e90bc Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_files_edit.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_files_edit_dark.png b/app/src/main/res/drawable-mdpi/ic_files_edit_dark.png new file mode 100644 index 0000000..c383b79 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_files_edit_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_files_edit_disable.png b/app/src/main/res/drawable-mdpi/ic_files_edit_disable.png new file mode 100644 index 0000000..3c96918 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_files_edit_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_launcher.png b/app/src/main/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..a451e1b Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_launcher.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_location.png b/app/src/main/res/drawable-mdpi/ic_location.png new file mode 100644 index 0000000..33b8d89 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_location.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_location_dark.png b/app/src/main/res/drawable-mdpi/ic_location_dark.png new file mode 100644 index 0000000..03006be Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_location_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_location_disable.png b/app/src/main/res/drawable-mdpi/ic_location_disable.png new file mode 100644 index 0000000..147d3cc Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_location_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_profile_drawer.png b/app/src/main/res/drawable-mdpi/ic_profile_drawer.png new file mode 100644 index 0000000..684ea8c Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_profile_drawer.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_sms.png b/app/src/main/res/drawable-mdpi/ic_sms.png new file mode 100644 index 0000000..93a2177 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_sms.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_sms_dark.png b/app/src/main/res/drawable-mdpi/ic_sms_dark.png new file mode 100644 index 0000000..99b4512 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_sms_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_sms_disable.png b/app/src/main/res/drawable-mdpi/ic_sms_disable.png new file mode 100644 index 0000000..bfc2ca5 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_sms_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_system.png b/app/src/main/res/drawable-mdpi/ic_system.png new file mode 100644 index 0000000..5af7ad5 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_system.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_system_dark.png b/app/src/main/res/drawable-mdpi/ic_system_dark.png new file mode 100644 index 0000000..906ab2a Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_system_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_system_disable.png b/app/src/main/res/drawable-mdpi/ic_system_disable.png new file mode 100644 index 0000000..4fdcd52 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_system_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_system_red.png b/app/src/main/res/drawable-mdpi/ic_system_red.png new file mode 100644 index 0000000..c0336a9 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_system_red.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_system_red_dark.png b/app/src/main/res/drawable-mdpi/ic_system_red_dark.png new file mode 100644 index 0000000..8166827 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_system_red_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_system_red_disable.png b/app/src/main/res/drawable-mdpi/ic_system_red_disable.png new file mode 100644 index 0000000..41258d0 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_system_red_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_wallet_drawer.png b/app/src/main/res/drawable-mdpi/ic_wallet_drawer.png new file mode 100644 index 0000000..2cc1802 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_wallet_drawer.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_warning_drawer.png b/app/src/main/res/drawable-mdpi/ic_warning_drawer.png new file mode 100644 index 0000000..980254f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_warning_drawer.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_wiretapping.png b/app/src/main/res/drawable-mdpi/ic_wiretapping.png new file mode 100644 index 0000000..b149489 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_wiretapping.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_wiretapping_dark.png b/app/src/main/res/drawable-mdpi/ic_wiretapping_dark.png new file mode 100644 index 0000000..ff28acf Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_wiretapping_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_wiretapping_disable.png b/app/src/main/res/drawable-mdpi/ic_wiretapping_disable.png new file mode 100644 index 0000000..08800d8 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_wiretapping_disable.png differ diff --git a/app/src/main/res/drawable-mdpi/img_welcome_screen.png b/app/src/main/res/drawable-mdpi/img_welcome_screen.png new file mode 100644 index 0000000..e20f677 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/img_welcome_screen.png differ diff --git a/app/src/main/res/drawable-mdpi/logo_fnp.png b/app/src/main/res/drawable-mdpi/logo_fnp.png new file mode 100644 index 0000000..5828a2c Binary files /dev/null and b/app/src/main/res/drawable-mdpi/logo_fnp.png differ diff --git a/app/src/main/res/drawable-mdpi/logo_maic.png b/app/src/main/res/drawable-mdpi/logo_maic.png new file mode 100644 index 0000000..0f8c67a Binary files /dev/null and b/app/src/main/res/drawable-mdpi/logo_maic.png differ diff --git a/app/src/main/res/drawable-mdpi/logo_samsung.png b/app/src/main/res/drawable-mdpi/logo_samsung.png new file mode 100644 index 0000000..4aa5ff0 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/logo_samsung.png differ diff --git a/app/src/main/res/drawable-nodpi/nav_drawer_separator.9.png b/app/src/main/res/drawable-nodpi/nav_drawer_separator.9.png new file mode 100644 index 0000000..f1466ba Binary files /dev/null and b/app/src/main/res/drawable-nodpi/nav_drawer_separator.9.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_co_moge_normal.png b/app/src/main/res/drawable-xhdpi/btn_co_moge_normal.png new file mode 100644 index 0000000..46deabb Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_co_moge_normal.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_co_moge_pressed.png b/app/src/main/res/drawable-xhdpi/btn_co_moge_pressed.png new file mode 100644 index 0000000..dfbc1f5 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_co_moge_pressed.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_legenda_normal.png b/app/src/main/res/drawable-xhdpi/btn_legenda_normal.png new file mode 100644 index 0000000..9eeae1a Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_legenda_normal.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_legenda_pressed.png b/app/src/main/res/drawable-xhdpi/btn_legenda_pressed.png new file mode 100644 index 0000000..d56f615 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_legenda_pressed.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_odinstaluj_normal.png b/app/src/main/res/drawable-xhdpi/btn_odinstaluj_normal.png new file mode 100644 index 0000000..14098c8 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_odinstaluj_normal.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_odinstaluj_pressed.png b/app/src/main/res/drawable-xhdpi/btn_odinstaluj_pressed.png new file mode 100644 index 0000000..5f4aea1 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_odinstaluj_pressed.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_ok_normal.png b/app/src/main/res/drawable-xhdpi/btn_ok_normal.png new file mode 100644 index 0000000..c4235e6 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_ok_normal.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_ok_pressed.png b/app/src/main/res/drawable-xhdpi/btn_ok_pressed.png new file mode 100644 index 0000000..8d6efb6 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_ok_pressed.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_powrot_normal.png b/app/src/main/res/drawable-xhdpi/btn_powrot_normal.png new file mode 100644 index 0000000..a475fe1 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_powrot_normal.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_powrot_pressed.png b/app/src/main/res/drawable-xhdpi/btn_powrot_pressed.png new file mode 100644 index 0000000..92c6140 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_powrot_pressed.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_ustawienia_normal.png b/app/src/main/res/drawable-xhdpi/btn_ustawienia_normal.png new file mode 100644 index 0000000..59343c2 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_ustawienia_normal.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_ustawienia_pressed.png b/app/src/main/res/drawable-xhdpi/btn_ustawienia_pressed.png new file mode 100644 index 0000000..58c7a6f Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_ustawienia_pressed.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_wiecej_info_normal.png b/app/src/main/res/drawable-xhdpi/btn_wiecej_info_normal.png new file mode 100644 index 0000000..bdbe35f Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_wiecej_info_normal.png differ diff --git a/app/src/main/res/drawable-xhdpi/btn_wiecej_info_pressed.png b/app/src/main/res/drawable-xhdpi/btn_wiecej_info_pressed.png new file mode 100644 index 0000000..be11f9f Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/btn_wiecej_info_pressed.png differ diff --git a/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png b/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png new file mode 100644 index 0000000..fabe9d9 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_broke.png b/app/src/main/res/drawable-xhdpi/ic_broke.png new file mode 100644 index 0000000..741aa04 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_broke.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_broke_dark.png b/app/src/main/res/drawable-xhdpi/ic_broke_dark.png new file mode 100644 index 0000000..14437e9 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_broke_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_broke_disable.png b/app/src/main/res/drawable-xhdpi/ic_broke_disable.png new file mode 100644 index 0000000..4c85b6c Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_broke_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_call.png b/app/src/main/res/drawable-xhdpi/ic_call.png new file mode 100644 index 0000000..70c03a0 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_call.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_call_dark.png b/app/src/main/res/drawable-xhdpi/ic_call_dark.png new file mode 100644 index 0000000..05a6031 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_call_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_call_disable.png b/app/src/main/res/drawable-xhdpi/ic_call_disable.png new file mode 100644 index 0000000..ccf68a9 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_call_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_call_history.png b/app/src/main/res/drawable-xhdpi/ic_call_history.png new file mode 100644 index 0000000..0a0e65a Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_call_history.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_call_history_dark.png b/app/src/main/res/drawable-xhdpi/ic_call_history_dark.png new file mode 100644 index 0000000..5a9b564 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_call_history_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_call_history_disable.png b/app/src/main/res/drawable-xhdpi/ic_call_history_disable.png new file mode 100644 index 0000000..c7d283e Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_call_history_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_communication.png b/app/src/main/res/drawable-xhdpi/ic_communication.png new file mode 100644 index 0000000..85c6e15 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_communication.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_communication_dark.png b/app/src/main/res/drawable-xhdpi/ic_communication_dark.png new file mode 100644 index 0000000..22bbef2 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_communication_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_communication_disable.png b/app/src/main/res/drawable-xhdpi/ic_communication_disable.png new file mode 100644 index 0000000..9e53406 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_communication_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_cyber_profile.png b/app/src/main/res/drawable-xhdpi/ic_cyber_profile.png new file mode 100644 index 0000000..4f16564 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_cyber_profile.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_cyber_profile_dark.png b/app/src/main/res/drawable-xhdpi/ic_cyber_profile_dark.png new file mode 100644 index 0000000..3186d26 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_cyber_profile_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_cyber_profile_disable.png b/app/src/main/res/drawable-xhdpi/ic_cyber_profile_disable.png new file mode 100644 index 0000000..81cc845 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_cyber_profile_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_data_sending.png b/app/src/main/res/drawable-xhdpi/ic_data_sending.png new file mode 100644 index 0000000..1e99bfa Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_data_sending.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_data_sending_dark.png b/app/src/main/res/drawable-xhdpi/ic_data_sending_dark.png new file mode 100644 index 0000000..c957ae8 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_data_sending_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_data_sending_disable.png b/app/src/main/res/drawable-xhdpi/ic_data_sending_disable.png new file mode 100644 index 0000000..8f9ae29 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_data_sending_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_data_transmission.png b/app/src/main/res/drawable-xhdpi/ic_data_transmission.png new file mode 100644 index 0000000..3cedd08 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_data_transmission.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_data_transmission_dark.png b/app/src/main/res/drawable-xhdpi/ic_data_transmission_dark.png new file mode 100644 index 0000000..110a0a0 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_data_transmission_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_data_transmission_disable.png b/app/src/main/res/drawable-xhdpi/ic_data_transmission_disable.png new file mode 100644 index 0000000..ea29e05 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_data_transmission_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_device.png b/app/src/main/res/drawable-xhdpi/ic_device.png new file mode 100644 index 0000000..a9a6708 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_device.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_device_control.png b/app/src/main/res/drawable-xhdpi/ic_device_control.png new file mode 100644 index 0000000..aa29b37 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_device_control.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_device_control_dark.png b/app/src/main/res/drawable-xhdpi/ic_device_control_dark.png new file mode 100644 index 0000000..94beb30 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_device_control_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_device_control_disable.png b/app/src/main/res/drawable-xhdpi/ic_device_control_disable.png new file mode 100644 index 0000000..4972108 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_device_control_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_device_dark.png b/app/src/main/res/drawable-xhdpi/ic_device_dark.png new file mode 100644 index 0000000..5a06457 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_device_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_device_disable.png b/app/src/main/res/drawable-xhdpi/ic_device_disable.png new file mode 100644 index 0000000..473d15d Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_device_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_device_drawer.png b/app/src/main/res/drawable-xhdpi/ic_device_drawer.png new file mode 100644 index 0000000..acc5945 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_device_drawer.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_disturb.png b/app/src/main/res/drawable-xhdpi/ic_disturb.png new file mode 100644 index 0000000..0da3a07 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_disturb.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_disturb_dark.png b/app/src/main/res/drawable-xhdpi/ic_disturb_dark.png new file mode 100644 index 0000000..8504575 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_disturb_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_disturb_disable.png b/app/src/main/res/drawable-xhdpi/ic_disturb_disable.png new file mode 100644 index 0000000..944da48 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_disturb_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_drawer.png b/app/src/main/res/drawable-xhdpi/ic_drawer.png new file mode 100644 index 0000000..ebfbcb1 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_drawer.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_files.png b/app/src/main/res/drawable-xhdpi/ic_files.png new file mode 100644 index 0000000..30a6b64 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_files.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_files_dark.png b/app/src/main/res/drawable-xhdpi/ic_files_dark.png new file mode 100644 index 0000000..acfe4fa Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_files_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_files_disable.png b/app/src/main/res/drawable-xhdpi/ic_files_disable.png new file mode 100644 index 0000000..2dab8bc Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_files_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_files_edit.png b/app/src/main/res/drawable-xhdpi/ic_files_edit.png new file mode 100644 index 0000000..dcb2df7 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_files_edit.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_files_edit_dark.png b/app/src/main/res/drawable-xhdpi/ic_files_edit_dark.png new file mode 100644 index 0000000..1430b7d Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_files_edit_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_files_edit_disable.png b/app/src/main/res/drawable-xhdpi/ic_files_edit_disable.png new file mode 100644 index 0000000..81045c4 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_files_edit_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_launcher.png b/app/src/main/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..2c9e835 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_launcher.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_location.png b/app/src/main/res/drawable-xhdpi/ic_location.png new file mode 100644 index 0000000..96e8c07 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_location.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_location_dark.png b/app/src/main/res/drawable-xhdpi/ic_location_dark.png new file mode 100644 index 0000000..6f7b5d0 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_location_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_location_disable.png b/app/src/main/res/drawable-xhdpi/ic_location_disable.png new file mode 100644 index 0000000..00f56d5 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_location_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_profile_drawer.png b/app/src/main/res/drawable-xhdpi/ic_profile_drawer.png new file mode 100644 index 0000000..d645c0d Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_profile_drawer.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_sms.png b/app/src/main/res/drawable-xhdpi/ic_sms.png new file mode 100644 index 0000000..8fc7c36 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_sms.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_sms_dark.png b/app/src/main/res/drawable-xhdpi/ic_sms_dark.png new file mode 100644 index 0000000..9453062 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_sms_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_sms_disable.png b/app/src/main/res/drawable-xhdpi/ic_sms_disable.png new file mode 100644 index 0000000..1ebb77f Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_sms_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_system.png b/app/src/main/res/drawable-xhdpi/ic_system.png new file mode 100644 index 0000000..c84a670 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_system.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_system_dark.png b/app/src/main/res/drawable-xhdpi/ic_system_dark.png new file mode 100644 index 0000000..a5502e1 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_system_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_system_disable.png b/app/src/main/res/drawable-xhdpi/ic_system_disable.png new file mode 100644 index 0000000..c2911d8 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_system_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_system_red.png b/app/src/main/res/drawable-xhdpi/ic_system_red.png new file mode 100644 index 0000000..f712304 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_system_red.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_system_red_dark.png b/app/src/main/res/drawable-xhdpi/ic_system_red_dark.png new file mode 100644 index 0000000..10bb5ab Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_system_red_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_system_red_disable.png b/app/src/main/res/drawable-xhdpi/ic_system_red_disable.png new file mode 100644 index 0000000..8880eb7 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_system_red_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_wallet_drawer.png b/app/src/main/res/drawable-xhdpi/ic_wallet_drawer.png new file mode 100644 index 0000000..ba09e07 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_wallet_drawer.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_warning_drawer.png b/app/src/main/res/drawable-xhdpi/ic_warning_drawer.png new file mode 100644 index 0000000..5b8e877 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_warning_drawer.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_wiretapping.png b/app/src/main/res/drawable-xhdpi/ic_wiretapping.png new file mode 100644 index 0000000..eb7a925 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_wiretapping.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_wiretapping_dark.png b/app/src/main/res/drawable-xhdpi/ic_wiretapping_dark.png new file mode 100644 index 0000000..88a1897 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_wiretapping_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_wiretapping_disable.png b/app/src/main/res/drawable-xhdpi/ic_wiretapping_disable.png new file mode 100644 index 0000000..c4eb286 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_wiretapping_disable.png differ diff --git a/app/src/main/res/drawable-xhdpi/img_welcome_screen.png b/app/src/main/res/drawable-xhdpi/img_welcome_screen.png new file mode 100644 index 0000000..8dae7f2 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/img_welcome_screen.png differ diff --git a/app/src/main/res/drawable-xhdpi/logo_fnp.png b/app/src/main/res/drawable-xhdpi/logo_fnp.png new file mode 100644 index 0000000..52a31a7 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/logo_fnp.png differ diff --git a/app/src/main/res/drawable-xhdpi/logo_maic.png b/app/src/main/res/drawable-xhdpi/logo_maic.png new file mode 100644 index 0000000..435584f Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/logo_maic.png differ diff --git a/app/src/main/res/drawable-xhdpi/logo_samsung.png b/app/src/main/res/drawable-xhdpi/logo_samsung.png new file mode 100644 index 0000000..bbfe45c Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/logo_samsung.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_co_moge_normal.png b/app/src/main/res/drawable-xxhdpi/btn_co_moge_normal.png new file mode 100644 index 0000000..ef6436d Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_co_moge_normal.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_co_moge_pressed.png b/app/src/main/res/drawable-xxhdpi/btn_co_moge_pressed.png new file mode 100644 index 0000000..d82b5a4 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_co_moge_pressed.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_legenda_normal.png b/app/src/main/res/drawable-xxhdpi/btn_legenda_normal.png new file mode 100644 index 0000000..eec9a8d Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_legenda_normal.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_legenda_pressed.png b/app/src/main/res/drawable-xxhdpi/btn_legenda_pressed.png new file mode 100644 index 0000000..a5615d6 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_legenda_pressed.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_odinstaluj_normal.png b/app/src/main/res/drawable-xxhdpi/btn_odinstaluj_normal.png new file mode 100644 index 0000000..9eb02ee Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_odinstaluj_normal.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_odinstaluj_pressed.png b/app/src/main/res/drawable-xxhdpi/btn_odinstaluj_pressed.png new file mode 100644 index 0000000..50fc6a3 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_odinstaluj_pressed.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_ok_normal.png b/app/src/main/res/drawable-xxhdpi/btn_ok_normal.png new file mode 100644 index 0000000..b686b03 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_ok_normal.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_ok_pressed.png b/app/src/main/res/drawable-xxhdpi/btn_ok_pressed.png new file mode 100644 index 0000000..5a387ab Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_ok_pressed.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_powrot_normal.png b/app/src/main/res/drawable-xxhdpi/btn_powrot_normal.png new file mode 100644 index 0000000..5f2ec68 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_powrot_normal.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_powrot_pressed.png b/app/src/main/res/drawable-xxhdpi/btn_powrot_pressed.png new file mode 100644 index 0000000..dae6208 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_powrot_pressed.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_ustawienia_normal.png b/app/src/main/res/drawable-xxhdpi/btn_ustawienia_normal.png new file mode 100644 index 0000000..1fac989 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_ustawienia_normal.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_ustawienia_pressed.png b/app/src/main/res/drawable-xxhdpi/btn_ustawienia_pressed.png new file mode 100644 index 0000000..caeefec Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_ustawienia_pressed.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_wiecej_info_normal.png b/app/src/main/res/drawable-xxhdpi/btn_wiecej_info_normal.png new file mode 100644 index 0000000..4f447ff Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_wiecej_info_normal.png differ diff --git a/app/src/main/res/drawable-xxhdpi/btn_wiecej_info_pressed.png b/app/src/main/res/drawable-xxhdpi/btn_wiecej_info_pressed.png new file mode 100644 index 0000000..fe85687 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/btn_wiecej_info_pressed.png differ diff --git a/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png b/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png new file mode 100644 index 0000000..b91e9d7 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_broke.png b/app/src/main/res/drawable-xxhdpi/ic_broke.png new file mode 100644 index 0000000..3bb09b9 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_broke.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_broke_dark.png b/app/src/main/res/drawable-xxhdpi/ic_broke_dark.png new file mode 100644 index 0000000..1258664 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_broke_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_broke_disable.png b/app/src/main/res/drawable-xxhdpi/ic_broke_disable.png new file mode 100644 index 0000000..fef0b5a Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_broke_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_call.png b/app/src/main/res/drawable-xxhdpi/ic_call.png new file mode 100644 index 0000000..f1f20ee Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_call.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_call_dark.png b/app/src/main/res/drawable-xxhdpi/ic_call_dark.png new file mode 100644 index 0000000..74697fb Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_call_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_call_disable.png b/app/src/main/res/drawable-xxhdpi/ic_call_disable.png new file mode 100644 index 0000000..4fd4ad2 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_call_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_call_history.png b/app/src/main/res/drawable-xxhdpi/ic_call_history.png new file mode 100644 index 0000000..aa3edd0 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_call_history.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_call_history_dark.png b/app/src/main/res/drawable-xxhdpi/ic_call_history_dark.png new file mode 100644 index 0000000..e8efd5f Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_call_history_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_call_history_disable.png b/app/src/main/res/drawable-xxhdpi/ic_call_history_disable.png new file mode 100644 index 0000000..571514d Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_call_history_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_communication.png b/app/src/main/res/drawable-xxhdpi/ic_communication.png new file mode 100644 index 0000000..0acc2a9 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_communication.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_communication_dark.png b/app/src/main/res/drawable-xxhdpi/ic_communication_dark.png new file mode 100644 index 0000000..55ca29d Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_communication_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_communication_disable.png b/app/src/main/res/drawable-xxhdpi/ic_communication_disable.png new file mode 100644 index 0000000..8c4ec39 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_communication_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_cyber_profile.png b/app/src/main/res/drawable-xxhdpi/ic_cyber_profile.png new file mode 100644 index 0000000..4ed83f8 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_cyber_profile.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_cyber_profile_dark.png b/app/src/main/res/drawable-xxhdpi/ic_cyber_profile_dark.png new file mode 100644 index 0000000..cfe69b2 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_cyber_profile_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_cyber_profile_disable.png b/app/src/main/res/drawable-xxhdpi/ic_cyber_profile_disable.png new file mode 100644 index 0000000..d8a579b Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_cyber_profile_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_data_sending.png b/app/src/main/res/drawable-xxhdpi/ic_data_sending.png new file mode 100644 index 0000000..6cda15b Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_data_sending.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_data_sending_dark.png b/app/src/main/res/drawable-xxhdpi/ic_data_sending_dark.png new file mode 100644 index 0000000..8fa3140 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_data_sending_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_data_sending_disable.png b/app/src/main/res/drawable-xxhdpi/ic_data_sending_disable.png new file mode 100644 index 0000000..117263c Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_data_sending_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_data_transmission.png b/app/src/main/res/drawable-xxhdpi/ic_data_transmission.png new file mode 100644 index 0000000..d8dedb9 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_data_transmission.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_data_transmission_dark.png b/app/src/main/res/drawable-xxhdpi/ic_data_transmission_dark.png new file mode 100644 index 0000000..854bc89 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_data_transmission_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_data_transmission_disable.png b/app/src/main/res/drawable-xxhdpi/ic_data_transmission_disable.png new file mode 100644 index 0000000..e3095cf Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_data_transmission_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_device.png b/app/src/main/res/drawable-xxhdpi/ic_device.png new file mode 100644 index 0000000..b6331e1 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_device.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_device_control.png b/app/src/main/res/drawable-xxhdpi/ic_device_control.png new file mode 100644 index 0000000..1915ca6 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_device_control.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_device_control_dark.png b/app/src/main/res/drawable-xxhdpi/ic_device_control_dark.png new file mode 100644 index 0000000..d8358a1 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_device_control_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_device_control_disable.png b/app/src/main/res/drawable-xxhdpi/ic_device_control_disable.png new file mode 100644 index 0000000..875e3a1 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_device_control_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_device_dark.png b/app/src/main/res/drawable-xxhdpi/ic_device_dark.png new file mode 100644 index 0000000..5c1423e Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_device_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_device_disable.png b/app/src/main/res/drawable-xxhdpi/ic_device_disable.png new file mode 100644 index 0000000..91531cb Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_device_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_device_drawer.png b/app/src/main/res/drawable-xxhdpi/ic_device_drawer.png new file mode 100644 index 0000000..7dc959b Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_device_drawer.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_disturb.png b/app/src/main/res/drawable-xxhdpi/ic_disturb.png new file mode 100644 index 0000000..8db45bd Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_disturb.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_disturb_dark.png b/app/src/main/res/drawable-xxhdpi/ic_disturb_dark.png new file mode 100644 index 0000000..ea0ccca Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_disturb_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_disturb_disable.png b/app/src/main/res/drawable-xxhdpi/ic_disturb_disable.png new file mode 100644 index 0000000..b0987c9 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_disturb_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_drawer.png b/app/src/main/res/drawable-xxhdpi/ic_drawer.png new file mode 100644 index 0000000..0f48a35 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_drawer.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_files.png b/app/src/main/res/drawable-xxhdpi/ic_files.png new file mode 100644 index 0000000..a74faaf Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_files.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_files_dark.png b/app/src/main/res/drawable-xxhdpi/ic_files_dark.png new file mode 100644 index 0000000..bb7bcd2 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_files_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_files_disable.png b/app/src/main/res/drawable-xxhdpi/ic_files_disable.png new file mode 100644 index 0000000..f6abb61 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_files_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_files_edit.png b/app/src/main/res/drawable-xxhdpi/ic_files_edit.png new file mode 100644 index 0000000..d9f4a08 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_files_edit.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_files_edit_dark.png b/app/src/main/res/drawable-xxhdpi/ic_files_edit_dark.png new file mode 100644 index 0000000..477b859 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_files_edit_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_files_edit_disable.png b/app/src/main/res/drawable-xxhdpi/ic_files_edit_disable.png new file mode 100644 index 0000000..4319c1a Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_files_edit_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/app/src/main/res/drawable-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..7bb13f0 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_location.png b/app/src/main/res/drawable-xxhdpi/ic_location.png new file mode 100644 index 0000000..7d8bf69 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_location.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_location_dark.png b/app/src/main/res/drawable-xxhdpi/ic_location_dark.png new file mode 100644 index 0000000..44cfc20 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_location_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_location_disable.png b/app/src/main/res/drawable-xxhdpi/ic_location_disable.png new file mode 100644 index 0000000..8338d13 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_location_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_profile_drawer.png b/app/src/main/res/drawable-xxhdpi/ic_profile_drawer.png new file mode 100644 index 0000000..f36269e Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_profile_drawer.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_sms.png b/app/src/main/res/drawable-xxhdpi/ic_sms.png new file mode 100644 index 0000000..4e6ca73 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_sms.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_sms_dark.png b/app/src/main/res/drawable-xxhdpi/ic_sms_dark.png new file mode 100644 index 0000000..caff018 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_sms_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_sms_disable.png b/app/src/main/res/drawable-xxhdpi/ic_sms_disable.png new file mode 100644 index 0000000..c772d69 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_sms_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_system.png b/app/src/main/res/drawable-xxhdpi/ic_system.png new file mode 100644 index 0000000..ca5f6ce Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_system.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_system_dark.png b/app/src/main/res/drawable-xxhdpi/ic_system_dark.png new file mode 100644 index 0000000..9e1fdb0 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_system_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_system_disable.png b/app/src/main/res/drawable-xxhdpi/ic_system_disable.png new file mode 100644 index 0000000..a5233bf Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_system_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_system_red.png b/app/src/main/res/drawable-xxhdpi/ic_system_red.png new file mode 100644 index 0000000..146e79a Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_system_red.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_system_red_dark.png b/app/src/main/res/drawable-xxhdpi/ic_system_red_dark.png new file mode 100644 index 0000000..512daa5 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_system_red_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_system_red_disable.png b/app/src/main/res/drawable-xxhdpi/ic_system_red_disable.png new file mode 100644 index 0000000..9e5964d Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_system_red_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_wallet_drawer.png b/app/src/main/res/drawable-xxhdpi/ic_wallet_drawer.png new file mode 100644 index 0000000..44746be Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_wallet_drawer.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_warning_drawer.png b/app/src/main/res/drawable-xxhdpi/ic_warning_drawer.png new file mode 100644 index 0000000..31adcc2 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_warning_drawer.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_wiretapping.png b/app/src/main/res/drawable-xxhdpi/ic_wiretapping.png new file mode 100644 index 0000000..1e8a520 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_wiretapping.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_wiretapping_dark.png b/app/src/main/res/drawable-xxhdpi/ic_wiretapping_dark.png new file mode 100644 index 0000000..c84e376 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_wiretapping_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_wiretapping_disable.png b/app/src/main/res/drawable-xxhdpi/ic_wiretapping_disable.png new file mode 100644 index 0000000..ca0bedb Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_wiretapping_disable.png differ diff --git a/app/src/main/res/drawable-xxhdpi/img_welcome_screen.png b/app/src/main/res/drawable-xxhdpi/img_welcome_screen.png new file mode 100644 index 0000000..ce288e2 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/img_welcome_screen.png differ diff --git a/app/src/main/res/drawable-xxhdpi/logo_fnp.png b/app/src/main/res/drawable-xxhdpi/logo_fnp.png new file mode 100644 index 0000000..f245255 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/logo_fnp.png differ diff --git a/app/src/main/res/drawable-xxhdpi/logo_maic.png b/app/src/main/res/drawable-xxhdpi/logo_maic.png new file mode 100644 index 0000000..3dd9ab6 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/logo_maic.png differ diff --git a/app/src/main/res/drawable-xxhdpi/logo_samsung.png b/app/src/main/res/drawable-xxhdpi/logo_samsung.png new file mode 100644 index 0000000..da4bf95 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/logo_samsung.png differ diff --git a/app/src/main/res/drawable-xxhdpi/title_welcome_screen.png b/app/src/main/res/drawable-xxhdpi/title_welcome_screen.png new file mode 100644 index 0000000..1457102 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/title_welcome_screen.png differ diff --git a/app/src/main/res/drawable/actionbar_background.xml b/app/src/main/res/drawable/actionbar_background.xml new file mode 100644 index 0000000..f02d7f9 --- /dev/null +++ b/app/src/main/res/drawable/actionbar_background.xml @@ -0,0 +1,3 @@ + + + diff --git a/app/src/main/res/drawable/app_info_settings_button.xml b/app/src/main/res/drawable/app_info_settings_button.xml new file mode 100644 index 0000000..586d1fb --- /dev/null +++ b/app/src/main/res/drawable/app_info_settings_button.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/app_info_uninstall_button.xml b/app/src/main/res/drawable/app_info_uninstall_button.xml new file mode 100644 index 0000000..4eefcf3 --- /dev/null +++ b/app/src/main/res/drawable/app_info_uninstall_button.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/app_info_what_can_button.xml b/app/src/main/res/drawable/app_info_what_can_button.xml new file mode 100644 index 0000000..dba9a4c --- /dev/null +++ b/app/src/main/res/drawable/app_info_what_can_button.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/back_button.xml b/app/src/main/res/drawable/back_button.xml new file mode 100644 index 0000000..8dd4920 --- /dev/null +++ b/app/src/main/res/drawable/back_button.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/custom_border.xml b/app/src/main/res/drawable/custom_border.xml new file mode 100644 index 0000000..ca4a13a --- /dev/null +++ b/app/src/main/res/drawable/custom_border.xml @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/drawer_background_selector.xml b/app/src/main/res/drawable/drawer_background_selector.xml new file mode 100644 index 0000000..7be5d27 --- /dev/null +++ b/app/src/main/res/drawable/drawer_background_selector.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/app/src/main/res/drawable/legend_btn_selector.xml b/app/src/main/res/drawable/legend_btn_selector.xml new file mode 100644 index 0000000..c166e6a --- /dev/null +++ b/app/src/main/res/drawable/legend_btn_selector.xml @@ -0,0 +1,8 @@ + + + + + + diff --git a/app/src/main/res/drawable/more_info_button.xml b/app/src/main/res/drawable/more_info_button.xml new file mode 100644 index 0000000..d4770f0 --- /dev/null +++ b/app/src/main/res/drawable/more_info_button.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/nav_drawer_separator.9.png b/app/src/main/res/drawable/nav_drawer_separator.9.png new file mode 100644 index 0000000..f1466ba Binary files /dev/null and b/app/src/main/res/drawable/nav_drawer_separator.9.png differ diff --git a/app/src/main/res/drawable/ok_button.xml b/app/src/main/res/drawable/ok_button.xml new file mode 100644 index 0000000..6151480 --- /dev/null +++ b/app/src/main/res/drawable/ok_button.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/layout-land/activity_app_info.xml b/app/src/main/res/layout-land/activity_app_info.xml new file mode 100644 index 0000000..c55bd26 --- /dev/null +++ b/app/src/main/res/layout-land/activity_app_info.xml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout-land/activity_popup.xml b/app/src/main/res/layout-land/activity_popup.xml new file mode 100644 index 0000000..06c4432 --- /dev/null +++ b/app/src/main/res/layout-land/activity_popup.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout-land/welcome_dialog.xml b/app/src/main/res/layout-land/welcome_dialog.xml new file mode 100644 index 0000000..c964754 --- /dev/null +++ b/app/src/main/res/layout-land/welcome_dialog.xml @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout-large-land/activity_main.xml b/app/src/main/res/layout-large-land/activity_main.xml new file mode 100644 index 0000000..f8aced4 --- /dev/null +++ b/app/src/main/res/layout-large-land/activity_main.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_app_info.xml b/app/src/main/res/layout/activity_app_info.xml new file mode 100644 index 0000000..46becbe --- /dev/null +++ b/app/src/main/res/layout/activity_app_info.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_license.xml b/app/src/main/res/layout/activity_license.xml new file mode 100644 index 0000000..478f9aa --- /dev/null +++ b/app/src/main/res/layout/activity_license.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..5cee2f0 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_popup.xml b/app/src/main/res/layout/activity_popup.xml new file mode 100644 index 0000000..3a8edae --- /dev/null +++ b/app/src/main/res/layout/activity_popup.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/app_list_item_view.xml b/app/src/main/res/layout/app_list_item_view.xml new file mode 100644 index 0000000..0cafe97 --- /dev/null +++ b/app/src/main/res/layout/app_list_item_view.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/drawer_list_item.xml b/app/src/main/res/layout/drawer_list_item.xml new file mode 100644 index 0000000..bcfc813 --- /dev/null +++ b/app/src/main/res/layout/drawer_list_item.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_main.xml b/app/src/main/res/layout/fragment_main.xml new file mode 100644 index 0000000..0706944 --- /dev/null +++ b/app/src/main/res/layout/fragment_main.xml @@ -0,0 +1,33 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_navigation_drawer.xml b/app/src/main/res/layout/fragment_navigation_drawer.xml new file mode 100644 index 0000000..1b9c99f --- /dev/null +++ b/app/src/main/res/layout/fragment_navigation_drawer.xml @@ -0,0 +1,29 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/header_layout.xml b/app/src/main/res/layout/header_layout.xml new file mode 100644 index 0000000..d418210 --- /dev/null +++ b/app/src/main/res/layout/header_layout.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/threats_list_item.xml b/app/src/main/res/layout/threats_list_item.xml new file mode 100644 index 0000000..f88ae5d --- /dev/null +++ b/app/src/main/res/layout/threats_list_item.xml @@ -0,0 +1,23 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/welcome_dialog.xml b/app/src/main/res/layout/welcome_dialog.xml new file mode 100644 index 0000000..f37e5a2 --- /dev/null +++ b/app/src/main/res/layout/welcome_dialog.xml @@ -0,0 +1,182 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/main.xml b/app/src/main/res/menu/main.xml new file mode 100644 index 0000000..c5c081d --- /dev/null +++ b/app/src/main/res/menu/main.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/app/src/main/res/values-v11/styles.xml b/app/src/main/res/values-v11/styles.xml new file mode 100644 index 0000000..0c0f30d --- /dev/null +++ b/app/src/main/res/values-v11/styles.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/app/src/main/res/values-v14/styles.xml b/app/src/main/res/values-v14/styles.xml new file mode 100644 index 0000000..5aef34b --- /dev/null +++ b/app/src/main/res/values-v14/styles.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/app/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml new file mode 100644 index 0000000..f9f069f --- /dev/null +++ b/app/src/main/res/values-w820dp/dimens.xml @@ -0,0 +1,10 @@ + + + + 64dp + + diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml new file mode 100644 index 0000000..cf987fe --- /dev/null +++ b/app/src/main/res/values/attrs.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/color.xml b/app/src/main/res/values/color.xml new file mode 100644 index 0000000..d7bee2a --- /dev/null +++ b/app/src/main/res/values/color.xml @@ -0,0 +1,31 @@ + + + + #f18324 + #fe983e + #e87817 + #e16810 + #ee4b35 + #e23f29 + #efa962 + #3a3430 + #eeeeee + #ffffff + #ffffff + #1f1a17 + #c7bfba + #EDEDED + #c3c3c3 + + #ffffff + #ffffff + #ffffff + #000000 + + #1f1a17 + + @color/text_bg + #ffffff + #feca9c + + \ No newline at end of file diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml new file mode 100644 index 0000000..a10764d --- /dev/null +++ b/app/src/main/res/values/dimens.xml @@ -0,0 +1,13 @@ + + + + 16dp + 16dp + + + 280dp + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..b590b6e --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,50 @@ + + + + Mobilne Bezpieczeństwo + Mobilne\nBezpieczeństwo + Kategorie dostępu + Open navigation drawer + Close navigation drawer + Pokaż aplikacje systemowe + Ukryj aplikacje systemowe + O projekcie + Licencja + Aplikacje, które… + \u2193 Czy ufasz im wszystkim? + "Aplikacje, które " + O akcji… + Aplikacje w Twoim urządzeniu mają często szerokie uprawnienia i mogą wiele namieszać. Czy ufasz im wszystkim? + Dowiedz się więcej o aplikacjach + Projekt dofinansowano ze środków\nMinisterstwa Administracji i Cyfryzacji. + Fundacja Nowoczesna Polska + Ministerstwo Administracji i Cyfryzacji + Samsung + + + + Liczba aplikacji tego typu:  + + + Czy wiesz, że ta aplikacja: + Odinstaluj + Ustawienia + Co mogę zrobić + To jest aplikacja systemowa. + + + Więcej Informacji… + Powrót + + + "http://www.nowoczesnapolska.org.pl/" + "http://www.mac.gov.pl/" + "http://www.samsung.com/pl/home" + "http://www.nowoczesnapolska.org.pl/" + "http://edukacjamedialna.edu.pl/lekcje/aplikacje-mobilne/" + + + Aplikacja na licencji AGPL v. 3.0 + http://www.gnu.org/licenses/agpl-3.0.txt + Pomysłodawca i współtwórca aplikacji: Fundacja Nowoczesna Polska\n\nWspółtwórca aplikacji i realizacja: Samsung Electronics Polska Sp. z o.o.\n\nProjekt finansowany ze środków Ministerstwa Administracji i Cyfryzacji. + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..fb7df43 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/xml/categories.xml b/app/src/main/res/xml/categories.xml new file mode 100644 index 0000000..ac9d427 --- /dev/null +++ b/app/src/main/res/xml/categories.xml @@ -0,0 +1,260 @@ + + + + Prywatność +
wiedzą o Tobie wszystko
+ Te aplikacje mają dostęp do Twoich danych i mogą wysłać poza Twoje urządzenie. + Te aplikacje mają dostęp do Twoich danych i mogą wysłać poza Twoje urządzenie. Złośliwa aplikacja mogłaby wykraść Twoje hasła lub prywatne zdjęcia ze spotkań ze znajomymi. + ic_profile_drawer + http://edukacjamedialna.edu.pl/lekcje/prywatnosc-w-sieci/ + true + + + komunikacja +
komunikacja
+ Może śledzić Twoją komunikację przez telefon, sms lub internet + ic_communication + + android.permission.ACCOUNT_MANAGER + android.permission.AUTHENTICATE_ACCOUNTS + android.permission.GET_ACCOUNTS + android.permission.MANAGE_ACCOUNTS + android.permission.READ_CALENDAR + android.permission.READ_CALL_LOG + android.permission.READ_CONTACTS + com.android.browser.permission.READ_HISTORY_BOOKMARKS + android.permission.READ_PHONE_STATE + android.permission.READ_PRIVILEGED_PHONE_STATE + android.permission.READ_PROFILE + android.permission.READ_SMS + android.permission.READ_SOCIAL_STREAM + com.android.voicemail.permission.READ_VOICEMAIL + android.permission.RECEIVE_SMS + android.permission.RECORD_AUDIO + android.permission.SUBSCRIBED_FEEDS_READ + android.permission.USE_CREDENTIALS + android.permission.USE_SIP + android.permission.DIAGNOSTIC + android.permission.DUMP + android.permission.READ_LOGS + +
+ + + lokalizacja +
lokalizacja
+ Może ustalić, gdzie jesteś + ic_location + + android.permission.ACCESS_CHECKIN_PROPERTIES + android.permission.ACCESS_COARSE_LOCATION + android.permission.ACCESS_FINE_LOCATION + android.permission.ACCESS_LOCATION_EXTRA_COMMANDS + android.permission.ACCESS_WIFI_STATE + android.permission.LOCATION_HARDWARE + +
+ + + pliki_prywatnosc +
pliki
+ Ma dostęp do Twoich zdjęć, dokumentów i innych plików + ic_files + + android.permission.MANAGE_DOCUMENTS + android.permission.MEDIA_CONTENT_CONTROL + android.permission.READ_EXTERNAL_STORAGE + +
+ + + podsluch +
podsłuch
+ Może Cię podłuchiwać lub podglądać, korzystając z mikrofonu, kamery bądź innych sensorów obecnych w urządzeniu + ic_wiretapping + + android.permission.BODY_SENSORS + android.permission.CAMERA + android.permission.PROCESS_OUTGOING_CALLS + android.permission.CALL_PHONE + android.permission.CALL_PRIVILEGED + +
+ + + urzadzenie_prywatosc +
Urządzenie
+ Może śledzić Twoją aktywność na urządzeniu, np. zapisując obraz wyświetlany na ekranie + ic_device + + android.permission.CAPTURE_AUDIO_OUTPUT + android.permission.CAPTURE_SECURE_VIDEO_OUTPUT + android.permission.CAPTURE_VIDEO_OUTPUT + android.permission.DIAGNOSTIC + android.permission.DUMP + android.permission.READ_FRAME_BUFFER + android.permission.READ_LOGS + android.permission.READ_USER_DICTIONARY + android.permission.SET_ACTIVITY_WATCHER + +
+
+
+ + + Koszty +
mogą Cię narazić na koszty
+ Te aplikacje mogą nawiązywać płatne połączenia i wysyłać wiadomości, nawet bez Twojego potwierdzenia. + Te aplikacje mogą nawiązywać płatne połączenia i wysyłać wiadomości, nawet bez Twojego potwierdzenia. Złośliwa aplikacja mogłaby narazić Cię na bardzo wysoki rachunek. + ic_wallet_drawer + http://edukacjamedialna.edu.pl/lekcje/mobilne-koszty/ + false + + + telefon_koszty +
telefon
+ Może nawiązać płatne połączenie telefoniczne + ic_call + + android.permission.CALL_PHONE + android.permission.CALL_PRIVILEGED + android.permission.PROCESS_OUTGOING_CALLS + +
+ + + sms_mms +
sms/mms
+ Może wysyłać sms-y i mms-y + ic_sms + + android.permission.SEND_SMS + +
+ + + dane +
Dane
+ Może spowodować płatną transmisję danych + ic_data_transmission + + android.permission.CHANGE_NETWORK_STATE + android.permission.INTERNET + android.permission.WRITE_APN_SETTINGS + +
+
+
+ + + Urządzenie +
mogą uszkodzić Twoje urządzenie
+ Te aplikacje mogą zmieniać ustawienia systemu i mają szeroki dostęp do sprzętu. + Te aplikacje mogą zmieniać ustawienia systemu i mają szeroki dostęp do sprzętu. Złośliwa aplikacja mogłaby uszkodzić Twoje urządzenie, albo bardzo utrudnić Ci korzystanie z niego. + ic_device_drawer + http://edukacjamedialna.edu.pl/lekcje/kontrola-nad-urzadzeniem/ + false + + + psuje +
psuje
+ Może coś zepsuć – np. trwale usunąć Twoje dane + ic_broke + + android.permission.BRICK + android.permission.CLEAR_APP_USER_DATA + android.permission.DELETE_PACKAGES + android.permission.DIAGNOSTIC + android.permission.INSTALL_PACKAGES + android.permission.MASTER_CLEAR + android.permission.MOUNT_FORMAT_FILESYSTEMS + android.permission.WRITE_GSERVICES + android.permission.WRITE_SECURE_SETTINGS + +
+ + + utrudniacze +
utrudniacze
+ Może utrudnić Ci korzystanie z urządzenia, np. przez zmianę ustawień + ic_disturb + + android.permission.CHANGE_COMPONENT_ENABLED_STATE + android.permission.CHANGE_CONFIGURATION + android.permission.CHANGE_WIFI_STATE + android.permission.DEVICE_POWER + android.permission.INJECT_EVENTS + android.permission.KILL_BACKGROUND_PROCESSES + android.permission.REBOOT + +
+
+
+ + + Phishing +
mogą Cię oszukać
+ Te aplikacje mogą modyfikować prywatne dane na Twoim urządzeniu (jak zapisane wiadomości czy historię połączeń) + Te aplikacje mogą modyfikować prywatne dane na Twoim urządzeniu (jak zapisane wiadomości czy historię połączeń). Złośliwa aplikacja mogłaby podszyć się pod Twoją rodzinę, znajomych lub... bank. + ic_warning_drawer + http://edukacjamedialna.edu.pl/lekcje/phishing-i-spam/ + false + + + +
moje cyfrowe życie
+ Może korzystać z Twoich kont, zmieniając np. wpisy w kalendarzu lub kontakty + ic_cyber_profile + + android.permission.MANAGE_ACCOUNTS + android.permission.SUBSCRIBED_FEEDS_WRITE + android.permission.USE_CREDENTIALS + android.permission.WRITE_APN_SETTINGS + android.permission.WRITE_CONTACTS + android.permission.WRITE_CALENDAR + com.android.browser.permission.WRITE_HISTORY_BOOKMARKS + android.permission.WRITE_SOCIAL_STREAM + +
+ + + zapisuje_pliki +
zapisuje pliki
+ Może zmienić treść Twoich plików + ic_files_edit + + android.permission.MANAGE_DOCUMENTS + android.permission.WRITE_EXTERNAL_STORAGE + +
+ + + telefon_phishing +
telefon
+ Może zmodyfikować historię połączeń lub sms-ów albo np. przechwycić połączenie telefoniczne + ic_communication + + com.android.voicemail.permission.ADD_VOICEMAIL + android.permission.MODIFY_PHONE_STATE + android.permission.PROCESS_OUTGOING_CALLS + android.permission.WRITE_CALL_LOG + android.permission.WRITE_SMS + com.android.voicemail.permission.WRITE_VOICEMAIL + +
+ + + urzadzenie_phishing +
Urządzenie
+ Może przejąć kontrolę nad sposobem, w jaki korzystasz z urządzenia + ic_device_control + + android.permission.DISABLE_KEYGUARD + android.permission.INJECT_EVENTS + android.permission.SYSTEM_ALERT_WINDOW + android.permission.WRITE_SETTINGS + +
+
+
+
\ No newline at end of file diff --git a/app/src/main/res/xml/data_send_subcategory.xml b/app/src/main/res/xml/data_send_subcategory.xml new file mode 100644 index 0000000..590d950 --- /dev/null +++ b/app/src/main/res/xml/data_send_subcategory.xml @@ -0,0 +1,19 @@ + + + uprawnienia_do_przesylu_danych +
uprawnienia do przesyłu danych
+ Może wysyłać dane z twojego urządzenia + ic_data_sending + + android.permission.BIND_NFC_SERVICE + android.permission.BLUETOOTH + android.permission.BLUETOOTH_ADMIN + android.permission.BLUETOOTH_PRIVILEGED + android.permission.INTERNET + android.permission.NFC + android.permission.SEND_SMS + android.permission.TRANSMIT_IR + android.permission.CALL_PHONE + android.permission.CALL_PRIVILEGED + +
diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..e26cdee --- /dev/null +++ b/build.gradle @@ -0,0 +1,15 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.android.tools.build:gradle:1.0.0' + } +} + +allprojects { + repositories { + jcenter() + } +} diff --git a/build.xml b/build.xml deleted file mode 100644 index a10a914..0000000 --- a/build.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/gradlew b/gradlew new file mode 100755 index 0000000..91a7e26 --- /dev/null +++ b/gradlew @@ -0,0 +1,164 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched. +if $cygwin ; then + [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >&- +APP_HOME="`pwd -P`" +cd "$SAVED" >&- + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..aec9973 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/ic_launcher-web.png b/ic_launcher-web.png deleted file mode 100644 index b843eee..0000000 Binary files a/ic_launcher-web.png and /dev/null differ diff --git a/libs/android-support-v4.jar b/libs/android-support-v4.jar deleted file mode 100644 index 4ebdaa9..0000000 Binary files a/libs/android-support-v4.jar and /dev/null differ diff --git a/libs/listviewanimations_lib-core_3.1.0.jar b/libs/listviewanimations_lib-core_3.1.0.jar deleted file mode 100644 index 68e3c5a..0000000 Binary files a/libs/listviewanimations_lib-core_3.1.0.jar and /dev/null differ diff --git a/libs/nineoldandroids-2.4.0.jar b/libs/nineoldandroids-2.4.0.jar deleted file mode 100644 index 43ee45f..0000000 Binary files a/libs/nineoldandroids-2.4.0.jar and /dev/null differ diff --git a/license.txt b/license.txt deleted file mode 100644 index dba13ed..0000000 --- a/license.txt +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are 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. - - 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. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - 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 Affero 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. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - 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 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 work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero 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 Affero 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 Affero 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 Affero 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. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero 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 Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - 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 AGPL, see -. diff --git a/lint.xml b/lint.xml deleted file mode 100644 index ee0eead..0000000 --- a/lint.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/proguard-project.txt b/proguard-project.txt deleted file mode 100644 index f2fe155..0000000 --- a/proguard-project.txt +++ /dev/null @@ -1,20 +0,0 @@ -# To enable ProGuard in your project, edit project.properties -# to define the proguard.config property as described in that file. -# -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in ${sdk.dir}/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the ProGuard -# include property in project.properties. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} diff --git a/project.properties b/project.properties deleted file mode 100644 index dfc046c..0000000 --- a/project.properties +++ /dev/null @@ -1,15 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt - -# Project target. -target=Google Inc.:Google APIs:21 -android.library.reference.1=${sdk.dir}/extras/android/support/v7/appcompat/ diff --git a/res/anim/fadein.xml b/res/anim/fadein.xml deleted file mode 100644 index 9846462..0000000 --- a/res/anim/fadein.xml +++ /dev/null @@ -1,4 +0,0 @@ - - \ No newline at end of file diff --git a/res/anim/fadeout.xml b/res/anim/fadeout.xml deleted file mode 100644 index 827ebee..0000000 --- a/res/anim/fadeout.xml +++ /dev/null @@ -1,4 +0,0 @@ - - \ No newline at end of file diff --git a/res/anim/slide_right.xml b/res/anim/slide_right.xml deleted file mode 100644 index fda641c..0000000 --- a/res/anim/slide_right.xml +++ /dev/null @@ -1,6 +0,0 @@ - - diff --git a/res/drawable-hdpi/btn_co_moge_normal.png b/res/drawable-hdpi/btn_co_moge_normal.png deleted file mode 100644 index 9f35b97..0000000 Binary files a/res/drawable-hdpi/btn_co_moge_normal.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_co_moge_pressed.png b/res/drawable-hdpi/btn_co_moge_pressed.png deleted file mode 100644 index 8d7dd31..0000000 Binary files a/res/drawable-hdpi/btn_co_moge_pressed.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_legenda_normal.png b/res/drawable-hdpi/btn_legenda_normal.png deleted file mode 100644 index 5a0d18f..0000000 Binary files a/res/drawable-hdpi/btn_legenda_normal.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_legenda_pressed.png b/res/drawable-hdpi/btn_legenda_pressed.png deleted file mode 100644 index 46aa50f..0000000 Binary files a/res/drawable-hdpi/btn_legenda_pressed.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_odinstaluj_normal.png b/res/drawable-hdpi/btn_odinstaluj_normal.png deleted file mode 100644 index 639d800..0000000 Binary files a/res/drawable-hdpi/btn_odinstaluj_normal.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_odinstaluj_pressed.png b/res/drawable-hdpi/btn_odinstaluj_pressed.png deleted file mode 100644 index 7bcca20..0000000 Binary files a/res/drawable-hdpi/btn_odinstaluj_pressed.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_ok_normal.png b/res/drawable-hdpi/btn_ok_normal.png deleted file mode 100755 index 9896289..0000000 Binary files a/res/drawable-hdpi/btn_ok_normal.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_ok_pressed.png b/res/drawable-hdpi/btn_ok_pressed.png deleted file mode 100755 index 2056355..0000000 Binary files a/res/drawable-hdpi/btn_ok_pressed.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_powrot_normal.png b/res/drawable-hdpi/btn_powrot_normal.png deleted file mode 100644 index 5bb6b59..0000000 Binary files a/res/drawable-hdpi/btn_powrot_normal.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_powrot_pressed.png b/res/drawable-hdpi/btn_powrot_pressed.png deleted file mode 100644 index 1b69f86..0000000 Binary files a/res/drawable-hdpi/btn_powrot_pressed.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_ustawienia_normal.png b/res/drawable-hdpi/btn_ustawienia_normal.png deleted file mode 100644 index 5ca2c8d..0000000 Binary files a/res/drawable-hdpi/btn_ustawienia_normal.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_ustawienia_pressed.png b/res/drawable-hdpi/btn_ustawienia_pressed.png deleted file mode 100644 index 295e402..0000000 Binary files a/res/drawable-hdpi/btn_ustawienia_pressed.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_wiecej_info_normal.png b/res/drawable-hdpi/btn_wiecej_info_normal.png deleted file mode 100644 index 12a52a3..0000000 Binary files a/res/drawable-hdpi/btn_wiecej_info_normal.png and /dev/null differ diff --git a/res/drawable-hdpi/btn_wiecej_info_pressed.png b/res/drawable-hdpi/btn_wiecej_info_pressed.png deleted file mode 100644 index 2551679..0000000 Binary files a/res/drawable-hdpi/btn_wiecej_info_pressed.png and /dev/null differ diff --git a/res/drawable-hdpi/drawer_shadow.9.png b/res/drawable-hdpi/drawer_shadow.9.png deleted file mode 100644 index 236bff5..0000000 Binary files a/res/drawable-hdpi/drawer_shadow.9.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_broke.png b/res/drawable-hdpi/ic_broke.png deleted file mode 100755 index 7b74d3a..0000000 Binary files a/res/drawable-hdpi/ic_broke.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_broke_dark.png b/res/drawable-hdpi/ic_broke_dark.png deleted file mode 100755 index 25ec702..0000000 Binary files a/res/drawable-hdpi/ic_broke_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_broke_disable.png b/res/drawable-hdpi/ic_broke_disable.png deleted file mode 100755 index f1ee8a8..0000000 Binary files a/res/drawable-hdpi/ic_broke_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_call.png b/res/drawable-hdpi/ic_call.png deleted file mode 100755 index 0e6b1d5..0000000 Binary files a/res/drawable-hdpi/ic_call.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_call_dark.png b/res/drawable-hdpi/ic_call_dark.png deleted file mode 100755 index 99e7015..0000000 Binary files a/res/drawable-hdpi/ic_call_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_call_disable.png b/res/drawable-hdpi/ic_call_disable.png deleted file mode 100755 index f22e3c2..0000000 Binary files a/res/drawable-hdpi/ic_call_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_call_history.png b/res/drawable-hdpi/ic_call_history.png deleted file mode 100755 index 408df30..0000000 Binary files a/res/drawable-hdpi/ic_call_history.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_call_history_dark.png b/res/drawable-hdpi/ic_call_history_dark.png deleted file mode 100755 index bb8e041..0000000 Binary files a/res/drawable-hdpi/ic_call_history_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_call_history_disable.png b/res/drawable-hdpi/ic_call_history_disable.png deleted file mode 100755 index ea19d2c..0000000 Binary files a/res/drawable-hdpi/ic_call_history_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_communication.png b/res/drawable-hdpi/ic_communication.png deleted file mode 100755 index c5121da..0000000 Binary files a/res/drawable-hdpi/ic_communication.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_communication_dark.png b/res/drawable-hdpi/ic_communication_dark.png deleted file mode 100755 index ed9d32f..0000000 Binary files a/res/drawable-hdpi/ic_communication_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_communication_disable.png b/res/drawable-hdpi/ic_communication_disable.png deleted file mode 100755 index 6ae7dfb..0000000 Binary files a/res/drawable-hdpi/ic_communication_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_cyber_profile.png b/res/drawable-hdpi/ic_cyber_profile.png deleted file mode 100755 index b0fa20b..0000000 Binary files a/res/drawable-hdpi/ic_cyber_profile.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_cyber_profile_dark.png b/res/drawable-hdpi/ic_cyber_profile_dark.png deleted file mode 100755 index bf05bec..0000000 Binary files a/res/drawable-hdpi/ic_cyber_profile_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_cyber_profile_disable.png b/res/drawable-hdpi/ic_cyber_profile_disable.png deleted file mode 100755 index b2ce2a1..0000000 Binary files a/res/drawable-hdpi/ic_cyber_profile_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_data_sending.png b/res/drawable-hdpi/ic_data_sending.png deleted file mode 100755 index 4a22e5c..0000000 Binary files a/res/drawable-hdpi/ic_data_sending.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_data_sending_dark.png b/res/drawable-hdpi/ic_data_sending_dark.png deleted file mode 100755 index 8827f43..0000000 Binary files a/res/drawable-hdpi/ic_data_sending_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_data_sending_disable.png b/res/drawable-hdpi/ic_data_sending_disable.png deleted file mode 100755 index 5635a81..0000000 Binary files a/res/drawable-hdpi/ic_data_sending_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_data_transmission.png b/res/drawable-hdpi/ic_data_transmission.png deleted file mode 100755 index 26cbd0d..0000000 Binary files a/res/drawable-hdpi/ic_data_transmission.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_data_transmission_dark.png b/res/drawable-hdpi/ic_data_transmission_dark.png deleted file mode 100755 index 00694e6..0000000 Binary files a/res/drawable-hdpi/ic_data_transmission_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_data_transmission_disable.png b/res/drawable-hdpi/ic_data_transmission_disable.png deleted file mode 100755 index e2be66b..0000000 Binary files a/res/drawable-hdpi/ic_data_transmission_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_device.png b/res/drawable-hdpi/ic_device.png deleted file mode 100755 index b5f2a16..0000000 Binary files a/res/drawable-hdpi/ic_device.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_device_control.png b/res/drawable-hdpi/ic_device_control.png deleted file mode 100755 index 53cc270..0000000 Binary files a/res/drawable-hdpi/ic_device_control.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_device_control_dark.png b/res/drawable-hdpi/ic_device_control_dark.png deleted file mode 100755 index c4ea76f..0000000 Binary files a/res/drawable-hdpi/ic_device_control_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_device_control_disable.png b/res/drawable-hdpi/ic_device_control_disable.png deleted file mode 100755 index f48c5a7..0000000 Binary files a/res/drawable-hdpi/ic_device_control_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_device_dark.png b/res/drawable-hdpi/ic_device_dark.png deleted file mode 100755 index de67ca7..0000000 Binary files a/res/drawable-hdpi/ic_device_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_device_disable.png b/res/drawable-hdpi/ic_device_disable.png deleted file mode 100755 index bc33971..0000000 Binary files a/res/drawable-hdpi/ic_device_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_device_drawer.png b/res/drawable-hdpi/ic_device_drawer.png deleted file mode 100755 index 6644296..0000000 Binary files a/res/drawable-hdpi/ic_device_drawer.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_disturb.png b/res/drawable-hdpi/ic_disturb.png deleted file mode 100755 index 36aaa8c..0000000 Binary files a/res/drawable-hdpi/ic_disturb.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_disturb_dark.png b/res/drawable-hdpi/ic_disturb_dark.png deleted file mode 100755 index 5440d14..0000000 Binary files a/res/drawable-hdpi/ic_disturb_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_disturb_disable.png b/res/drawable-hdpi/ic_disturb_disable.png deleted file mode 100755 index 591e5c5..0000000 Binary files a/res/drawable-hdpi/ic_disturb_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_drawer.png b/res/drawable-hdpi/ic_drawer.png deleted file mode 100644 index 4bec999..0000000 Binary files a/res/drawable-hdpi/ic_drawer.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_files.png b/res/drawable-hdpi/ic_files.png deleted file mode 100755 index ad281ba..0000000 Binary files a/res/drawable-hdpi/ic_files.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_files_dark.png b/res/drawable-hdpi/ic_files_dark.png deleted file mode 100755 index 2df9b8a..0000000 Binary files a/res/drawable-hdpi/ic_files_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_files_disable.png b/res/drawable-hdpi/ic_files_disable.png deleted file mode 100755 index 633e476..0000000 Binary files a/res/drawable-hdpi/ic_files_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_files_edit.png b/res/drawable-hdpi/ic_files_edit.png deleted file mode 100755 index 6aed10b..0000000 Binary files a/res/drawable-hdpi/ic_files_edit.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_files_edit_dark.png b/res/drawable-hdpi/ic_files_edit_dark.png deleted file mode 100755 index 378a982..0000000 Binary files a/res/drawable-hdpi/ic_files_edit_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_files_edit_disable.png b/res/drawable-hdpi/ic_files_edit_disable.png deleted file mode 100755 index 96b1731..0000000 Binary files a/res/drawable-hdpi/ic_files_edit_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_launcher.png b/res/drawable-hdpi/ic_launcher.png deleted file mode 100644 index 49efd5c..0000000 Binary files a/res/drawable-hdpi/ic_launcher.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_location.png b/res/drawable-hdpi/ic_location.png deleted file mode 100755 index f383c86..0000000 Binary files a/res/drawable-hdpi/ic_location.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_location_dark.png b/res/drawable-hdpi/ic_location_dark.png deleted file mode 100755 index 931bb45..0000000 Binary files a/res/drawable-hdpi/ic_location_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_location_disable.png b/res/drawable-hdpi/ic_location_disable.png deleted file mode 100755 index 02c6e79..0000000 Binary files a/res/drawable-hdpi/ic_location_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_profile_drawer.png b/res/drawable-hdpi/ic_profile_drawer.png deleted file mode 100755 index a955dea..0000000 Binary files a/res/drawable-hdpi/ic_profile_drawer.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_sms.png b/res/drawable-hdpi/ic_sms.png deleted file mode 100755 index 081e014..0000000 Binary files a/res/drawable-hdpi/ic_sms.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_sms_dark.png b/res/drawable-hdpi/ic_sms_dark.png deleted file mode 100755 index 28faea8..0000000 Binary files a/res/drawable-hdpi/ic_sms_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_sms_disable.png b/res/drawable-hdpi/ic_sms_disable.png deleted file mode 100755 index 0aa5203..0000000 Binary files a/res/drawable-hdpi/ic_sms_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_system.png b/res/drawable-hdpi/ic_system.png deleted file mode 100644 index b092202..0000000 Binary files a/res/drawable-hdpi/ic_system.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_system_dark.png b/res/drawable-hdpi/ic_system_dark.png deleted file mode 100644 index caa9f0b..0000000 Binary files a/res/drawable-hdpi/ic_system_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_system_disable.png b/res/drawable-hdpi/ic_system_disable.png deleted file mode 100644 index 37febde..0000000 Binary files a/res/drawable-hdpi/ic_system_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_system_red.png b/res/drawable-hdpi/ic_system_red.png deleted file mode 100644 index a85b679..0000000 Binary files a/res/drawable-hdpi/ic_system_red.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_system_red_dark.png b/res/drawable-hdpi/ic_system_red_dark.png deleted file mode 100644 index 19d42c9..0000000 Binary files a/res/drawable-hdpi/ic_system_red_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_system_red_disable.png b/res/drawable-hdpi/ic_system_red_disable.png deleted file mode 100644 index 7af6801..0000000 Binary files a/res/drawable-hdpi/ic_system_red_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_wallet_drawer.png b/res/drawable-hdpi/ic_wallet_drawer.png deleted file mode 100755 index e81905d..0000000 Binary files a/res/drawable-hdpi/ic_wallet_drawer.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_warning_drawer.png b/res/drawable-hdpi/ic_warning_drawer.png deleted file mode 100755 index 678b2ef..0000000 Binary files a/res/drawable-hdpi/ic_warning_drawer.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_wiretapping.png b/res/drawable-hdpi/ic_wiretapping.png deleted file mode 100755 index 589d129..0000000 Binary files a/res/drawable-hdpi/ic_wiretapping.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_wiretapping_dark.png b/res/drawable-hdpi/ic_wiretapping_dark.png deleted file mode 100755 index 80be5e7..0000000 Binary files a/res/drawable-hdpi/ic_wiretapping_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_wiretapping_disable.png b/res/drawable-hdpi/ic_wiretapping_disable.png deleted file mode 100755 index 9686fa2..0000000 Binary files a/res/drawable-hdpi/ic_wiretapping_disable.png and /dev/null differ diff --git a/res/drawable-hdpi/img_welcome_screen.png b/res/drawable-hdpi/img_welcome_screen.png deleted file mode 100755 index 709ccc9..0000000 Binary files a/res/drawable-hdpi/img_welcome_screen.png and /dev/null differ diff --git a/res/drawable-hdpi/logo_fnp.png b/res/drawable-hdpi/logo_fnp.png deleted file mode 100755 index 6246e55..0000000 Binary files a/res/drawable-hdpi/logo_fnp.png and /dev/null differ diff --git a/res/drawable-hdpi/logo_maic.png b/res/drawable-hdpi/logo_maic.png deleted file mode 100755 index cbb69dc..0000000 Binary files a/res/drawable-hdpi/logo_maic.png and /dev/null differ diff --git a/res/drawable-hdpi/logo_samsung.png b/res/drawable-hdpi/logo_samsung.png deleted file mode 100755 index 6466967..0000000 Binary files a/res/drawable-hdpi/logo_samsung.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_co_moge_normal.png b/res/drawable-ldpi/btn_co_moge_normal.png deleted file mode 100644 index 728a5a9..0000000 Binary files a/res/drawable-ldpi/btn_co_moge_normal.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_co_moge_pressed.png b/res/drawable-ldpi/btn_co_moge_pressed.png deleted file mode 100644 index 5785e78..0000000 Binary files a/res/drawable-ldpi/btn_co_moge_pressed.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_legenda_normal.png b/res/drawable-ldpi/btn_legenda_normal.png deleted file mode 100644 index fa4fb69..0000000 Binary files a/res/drawable-ldpi/btn_legenda_normal.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_legenda_pressed.png b/res/drawable-ldpi/btn_legenda_pressed.png deleted file mode 100644 index a56d527..0000000 Binary files a/res/drawable-ldpi/btn_legenda_pressed.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_odinstaluj_normal.png b/res/drawable-ldpi/btn_odinstaluj_normal.png deleted file mode 100644 index e571ca3..0000000 Binary files a/res/drawable-ldpi/btn_odinstaluj_normal.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_odinstaluj_pressed.png b/res/drawable-ldpi/btn_odinstaluj_pressed.png deleted file mode 100644 index 1407f3c..0000000 Binary files a/res/drawable-ldpi/btn_odinstaluj_pressed.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_ok_normal.png b/res/drawable-ldpi/btn_ok_normal.png deleted file mode 100755 index 4258e33..0000000 Binary files a/res/drawable-ldpi/btn_ok_normal.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_ok_pressed.png b/res/drawable-ldpi/btn_ok_pressed.png deleted file mode 100755 index eaaacdf..0000000 Binary files a/res/drawable-ldpi/btn_ok_pressed.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_powrot_normal.png b/res/drawable-ldpi/btn_powrot_normal.png deleted file mode 100644 index d908808..0000000 Binary files a/res/drawable-ldpi/btn_powrot_normal.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_powrot_pressed.png b/res/drawable-ldpi/btn_powrot_pressed.png deleted file mode 100644 index 8257aa1..0000000 Binary files a/res/drawable-ldpi/btn_powrot_pressed.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_ustawienia_normal.png b/res/drawable-ldpi/btn_ustawienia_normal.png deleted file mode 100644 index 2e5d3e4..0000000 Binary files a/res/drawable-ldpi/btn_ustawienia_normal.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_ustawienia_pressed.png b/res/drawable-ldpi/btn_ustawienia_pressed.png deleted file mode 100644 index 849038f..0000000 Binary files a/res/drawable-ldpi/btn_ustawienia_pressed.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_wiecej_info_normal.png b/res/drawable-ldpi/btn_wiecej_info_normal.png deleted file mode 100644 index 1d282ac..0000000 Binary files a/res/drawable-ldpi/btn_wiecej_info_normal.png and /dev/null differ diff --git a/res/drawable-ldpi/btn_wiecej_info_pressed.png b/res/drawable-ldpi/btn_wiecej_info_pressed.png deleted file mode 100644 index 8916c63..0000000 Binary files a/res/drawable-ldpi/btn_wiecej_info_pressed.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_broke.png b/res/drawable-ldpi/ic_broke.png deleted file mode 100755 index 4bf50ed..0000000 Binary files a/res/drawable-ldpi/ic_broke.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_broke_dark.png b/res/drawable-ldpi/ic_broke_dark.png deleted file mode 100755 index 78f0842..0000000 Binary files a/res/drawable-ldpi/ic_broke_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_broke_disable.png b/res/drawable-ldpi/ic_broke_disable.png deleted file mode 100755 index 2af5823..0000000 Binary files a/res/drawable-ldpi/ic_broke_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_call.png b/res/drawable-ldpi/ic_call.png deleted file mode 100755 index 927effc..0000000 Binary files a/res/drawable-ldpi/ic_call.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_call_dark.png b/res/drawable-ldpi/ic_call_dark.png deleted file mode 100755 index bb54de6..0000000 Binary files a/res/drawable-ldpi/ic_call_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_call_disable.png b/res/drawable-ldpi/ic_call_disable.png deleted file mode 100755 index 811860e..0000000 Binary files a/res/drawable-ldpi/ic_call_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_call_history.png b/res/drawable-ldpi/ic_call_history.png deleted file mode 100755 index 0623421..0000000 Binary files a/res/drawable-ldpi/ic_call_history.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_call_history_dark.png b/res/drawable-ldpi/ic_call_history_dark.png deleted file mode 100755 index 8fd362e..0000000 Binary files a/res/drawable-ldpi/ic_call_history_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_call_history_disable.png b/res/drawable-ldpi/ic_call_history_disable.png deleted file mode 100755 index bbde2aa..0000000 Binary files a/res/drawable-ldpi/ic_call_history_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_communication.png b/res/drawable-ldpi/ic_communication.png deleted file mode 100755 index b364cd3..0000000 Binary files a/res/drawable-ldpi/ic_communication.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_communication_dark.png b/res/drawable-ldpi/ic_communication_dark.png deleted file mode 100755 index cd545ce..0000000 Binary files a/res/drawable-ldpi/ic_communication_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_communication_disable.png b/res/drawable-ldpi/ic_communication_disable.png deleted file mode 100755 index c4e6a89..0000000 Binary files a/res/drawable-ldpi/ic_communication_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_cyber_profile.png b/res/drawable-ldpi/ic_cyber_profile.png deleted file mode 100755 index 18defb1..0000000 Binary files a/res/drawable-ldpi/ic_cyber_profile.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_cyber_profile_dark.png b/res/drawable-ldpi/ic_cyber_profile_dark.png deleted file mode 100755 index 8fff6b9..0000000 Binary files a/res/drawable-ldpi/ic_cyber_profile_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_cyber_profile_disable.png b/res/drawable-ldpi/ic_cyber_profile_disable.png deleted file mode 100755 index 261c96f..0000000 Binary files a/res/drawable-ldpi/ic_cyber_profile_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_data_sending.png b/res/drawable-ldpi/ic_data_sending.png deleted file mode 100755 index db8debe..0000000 Binary files a/res/drawable-ldpi/ic_data_sending.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_data_sending_dark.png b/res/drawable-ldpi/ic_data_sending_dark.png deleted file mode 100755 index 17f98de..0000000 Binary files a/res/drawable-ldpi/ic_data_sending_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_data_sending_disable.png b/res/drawable-ldpi/ic_data_sending_disable.png deleted file mode 100755 index 6b784ef..0000000 Binary files a/res/drawable-ldpi/ic_data_sending_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_data_transmission.png b/res/drawable-ldpi/ic_data_transmission.png deleted file mode 100755 index ff6c5eb..0000000 Binary files a/res/drawable-ldpi/ic_data_transmission.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_data_transmission_dark.png b/res/drawable-ldpi/ic_data_transmission_dark.png deleted file mode 100755 index df3694d..0000000 Binary files a/res/drawable-ldpi/ic_data_transmission_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_data_transmission_disable.png b/res/drawable-ldpi/ic_data_transmission_disable.png deleted file mode 100755 index e5bfdf1..0000000 Binary files a/res/drawable-ldpi/ic_data_transmission_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_device.png b/res/drawable-ldpi/ic_device.png deleted file mode 100755 index 588489a..0000000 Binary files a/res/drawable-ldpi/ic_device.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_device_control.png b/res/drawable-ldpi/ic_device_control.png deleted file mode 100755 index 12e64af..0000000 Binary files a/res/drawable-ldpi/ic_device_control.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_device_control_dark.png b/res/drawable-ldpi/ic_device_control_dark.png deleted file mode 100755 index 28c9bf2..0000000 Binary files a/res/drawable-ldpi/ic_device_control_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_device_control_disable.png b/res/drawable-ldpi/ic_device_control_disable.png deleted file mode 100755 index 6e32d58..0000000 Binary files a/res/drawable-ldpi/ic_device_control_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_device_dark.png b/res/drawable-ldpi/ic_device_dark.png deleted file mode 100755 index daf9131..0000000 Binary files a/res/drawable-ldpi/ic_device_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_device_disable.png b/res/drawable-ldpi/ic_device_disable.png deleted file mode 100755 index 4b743f2..0000000 Binary files a/res/drawable-ldpi/ic_device_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_device_drawer.png b/res/drawable-ldpi/ic_device_drawer.png deleted file mode 100755 index 630a5dd..0000000 Binary files a/res/drawable-ldpi/ic_device_drawer.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_disturb.png b/res/drawable-ldpi/ic_disturb.png deleted file mode 100755 index 1390b80..0000000 Binary files a/res/drawable-ldpi/ic_disturb.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_disturb_dark.png b/res/drawable-ldpi/ic_disturb_dark.png deleted file mode 100755 index a2410f2..0000000 Binary files a/res/drawable-ldpi/ic_disturb_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_disturb_disable.png b/res/drawable-ldpi/ic_disturb_disable.png deleted file mode 100755 index 47921aa..0000000 Binary files a/res/drawable-ldpi/ic_disturb_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_files.png b/res/drawable-ldpi/ic_files.png deleted file mode 100755 index bb33e2d..0000000 Binary files a/res/drawable-ldpi/ic_files.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_files_dark.png b/res/drawable-ldpi/ic_files_dark.png deleted file mode 100755 index 0e03ff8..0000000 Binary files a/res/drawable-ldpi/ic_files_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_files_disable.png b/res/drawable-ldpi/ic_files_disable.png deleted file mode 100755 index dc43a37..0000000 Binary files a/res/drawable-ldpi/ic_files_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_files_edit.png b/res/drawable-ldpi/ic_files_edit.png deleted file mode 100755 index 80ee771..0000000 Binary files a/res/drawable-ldpi/ic_files_edit.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_files_edit_dark.png b/res/drawable-ldpi/ic_files_edit_dark.png deleted file mode 100755 index 9a040c0..0000000 Binary files a/res/drawable-ldpi/ic_files_edit_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_files_edit_disable.png b/res/drawable-ldpi/ic_files_edit_disable.png deleted file mode 100755 index 84c102f..0000000 Binary files a/res/drawable-ldpi/ic_files_edit_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_launcher.png b/res/drawable-ldpi/ic_launcher.png deleted file mode 100644 index 0ab00a6..0000000 Binary files a/res/drawable-ldpi/ic_launcher.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_location.png b/res/drawable-ldpi/ic_location.png deleted file mode 100755 index 8b98b6e..0000000 Binary files a/res/drawable-ldpi/ic_location.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_location_dark.png b/res/drawable-ldpi/ic_location_dark.png deleted file mode 100755 index 02b5874..0000000 Binary files a/res/drawable-ldpi/ic_location_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_location_disable.png b/res/drawable-ldpi/ic_location_disable.png deleted file mode 100755 index 4328af5..0000000 Binary files a/res/drawable-ldpi/ic_location_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_profile_drawer.png b/res/drawable-ldpi/ic_profile_drawer.png deleted file mode 100755 index 0c0303e..0000000 Binary files a/res/drawable-ldpi/ic_profile_drawer.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_sms.png b/res/drawable-ldpi/ic_sms.png deleted file mode 100755 index 438ff61..0000000 Binary files a/res/drawable-ldpi/ic_sms.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_sms_dark.png b/res/drawable-ldpi/ic_sms_dark.png deleted file mode 100755 index cf20ab3..0000000 Binary files a/res/drawable-ldpi/ic_sms_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_sms_disable.png b/res/drawable-ldpi/ic_sms_disable.png deleted file mode 100755 index fe80788..0000000 Binary files a/res/drawable-ldpi/ic_sms_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_system.png b/res/drawable-ldpi/ic_system.png deleted file mode 100644 index 6587fa0..0000000 Binary files a/res/drawable-ldpi/ic_system.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_system_dark.png b/res/drawable-ldpi/ic_system_dark.png deleted file mode 100644 index b2f9d80..0000000 Binary files a/res/drawable-ldpi/ic_system_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_system_disable.png b/res/drawable-ldpi/ic_system_disable.png deleted file mode 100644 index 379f5f1..0000000 Binary files a/res/drawable-ldpi/ic_system_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_system_red.png b/res/drawable-ldpi/ic_system_red.png deleted file mode 100644 index ed0a4f4..0000000 Binary files a/res/drawable-ldpi/ic_system_red.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_system_red_dark.png b/res/drawable-ldpi/ic_system_red_dark.png deleted file mode 100644 index 3626302..0000000 Binary files a/res/drawable-ldpi/ic_system_red_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_system_red_disable.png b/res/drawable-ldpi/ic_system_red_disable.png deleted file mode 100644 index 85b570a..0000000 Binary files a/res/drawable-ldpi/ic_system_red_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_wallet_drawer.png b/res/drawable-ldpi/ic_wallet_drawer.png deleted file mode 100755 index d44453a..0000000 Binary files a/res/drawable-ldpi/ic_wallet_drawer.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_warning_drawer.png b/res/drawable-ldpi/ic_warning_drawer.png deleted file mode 100755 index ac6cf35..0000000 Binary files a/res/drawable-ldpi/ic_warning_drawer.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_wiretapping.png b/res/drawable-ldpi/ic_wiretapping.png deleted file mode 100755 index 16c972b..0000000 Binary files a/res/drawable-ldpi/ic_wiretapping.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_wiretapping_dark.png b/res/drawable-ldpi/ic_wiretapping_dark.png deleted file mode 100755 index 94c2d57..0000000 Binary files a/res/drawable-ldpi/ic_wiretapping_dark.png and /dev/null differ diff --git a/res/drawable-ldpi/ic_wiretapping_disable.png b/res/drawable-ldpi/ic_wiretapping_disable.png deleted file mode 100755 index 1679057..0000000 Binary files a/res/drawable-ldpi/ic_wiretapping_disable.png and /dev/null differ diff --git a/res/drawable-ldpi/img_welcome_screen.png b/res/drawable-ldpi/img_welcome_screen.png deleted file mode 100755 index 3588cba..0000000 Binary files a/res/drawable-ldpi/img_welcome_screen.png and /dev/null differ diff --git a/res/drawable-ldpi/logo_fnp.png b/res/drawable-ldpi/logo_fnp.png deleted file mode 100755 index 76cba31..0000000 Binary files a/res/drawable-ldpi/logo_fnp.png and /dev/null differ diff --git a/res/drawable-ldpi/logo_maic.png b/res/drawable-ldpi/logo_maic.png deleted file mode 100755 index 943d377..0000000 Binary files a/res/drawable-ldpi/logo_maic.png and /dev/null differ diff --git a/res/drawable-ldpi/logo_samsung.png b/res/drawable-ldpi/logo_samsung.png deleted file mode 100755 index 8b46cd0..0000000 Binary files a/res/drawable-ldpi/logo_samsung.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_co_moge_normal.png b/res/drawable-mdpi/btn_co_moge_normal.png deleted file mode 100644 index 53e01a3..0000000 Binary files a/res/drawable-mdpi/btn_co_moge_normal.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_co_moge_pressed.png b/res/drawable-mdpi/btn_co_moge_pressed.png deleted file mode 100644 index de229f5..0000000 Binary files a/res/drawable-mdpi/btn_co_moge_pressed.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_legenda_normal.png b/res/drawable-mdpi/btn_legenda_normal.png deleted file mode 100644 index 65c4325..0000000 Binary files a/res/drawable-mdpi/btn_legenda_normal.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_legenda_pressed.png b/res/drawable-mdpi/btn_legenda_pressed.png deleted file mode 100644 index ceff041..0000000 Binary files a/res/drawable-mdpi/btn_legenda_pressed.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_odinstaluj_normal.png b/res/drawable-mdpi/btn_odinstaluj_normal.png deleted file mode 100644 index e465020..0000000 Binary files a/res/drawable-mdpi/btn_odinstaluj_normal.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_odinstaluj_pressed.png b/res/drawable-mdpi/btn_odinstaluj_pressed.png deleted file mode 100644 index 35e5e79..0000000 Binary files a/res/drawable-mdpi/btn_odinstaluj_pressed.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_ok_normal.png b/res/drawable-mdpi/btn_ok_normal.png deleted file mode 100755 index 0c257bb..0000000 Binary files a/res/drawable-mdpi/btn_ok_normal.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_ok_pressed.png b/res/drawable-mdpi/btn_ok_pressed.png deleted file mode 100755 index af417c0..0000000 Binary files a/res/drawable-mdpi/btn_ok_pressed.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_powrot_normal.png b/res/drawable-mdpi/btn_powrot_normal.png deleted file mode 100644 index 5fa28ad..0000000 Binary files a/res/drawable-mdpi/btn_powrot_normal.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_powrot_pressed.png b/res/drawable-mdpi/btn_powrot_pressed.png deleted file mode 100644 index 1920f0f..0000000 Binary files a/res/drawable-mdpi/btn_powrot_pressed.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_ustawienia_normal.png b/res/drawable-mdpi/btn_ustawienia_normal.png deleted file mode 100644 index 798fc3d..0000000 Binary files a/res/drawable-mdpi/btn_ustawienia_normal.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_ustawienia_pressed.png b/res/drawable-mdpi/btn_ustawienia_pressed.png deleted file mode 100644 index 307fdf7..0000000 Binary files a/res/drawable-mdpi/btn_ustawienia_pressed.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_wiecej_info_normal.png b/res/drawable-mdpi/btn_wiecej_info_normal.png deleted file mode 100644 index 3c9044f..0000000 Binary files a/res/drawable-mdpi/btn_wiecej_info_normal.png and /dev/null differ diff --git a/res/drawable-mdpi/btn_wiecej_info_pressed.png b/res/drawable-mdpi/btn_wiecej_info_pressed.png deleted file mode 100644 index 6ce433f..0000000 Binary files a/res/drawable-mdpi/btn_wiecej_info_pressed.png and /dev/null differ diff --git a/res/drawable-mdpi/drawer_shadow.9.png b/res/drawable-mdpi/drawer_shadow.9.png deleted file mode 100644 index ffe3a28..0000000 Binary files a/res/drawable-mdpi/drawer_shadow.9.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_broke.png b/res/drawable-mdpi/ic_broke.png deleted file mode 100755 index e9a3ade..0000000 Binary files a/res/drawable-mdpi/ic_broke.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_broke_dark.png b/res/drawable-mdpi/ic_broke_dark.png deleted file mode 100755 index 7fc327a..0000000 Binary files a/res/drawable-mdpi/ic_broke_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_broke_disable.png b/res/drawable-mdpi/ic_broke_disable.png deleted file mode 100755 index 9b8aabf..0000000 Binary files a/res/drawable-mdpi/ic_broke_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_call.png b/res/drawable-mdpi/ic_call.png deleted file mode 100755 index e79dbc0..0000000 Binary files a/res/drawable-mdpi/ic_call.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_call_dark.png b/res/drawable-mdpi/ic_call_dark.png deleted file mode 100755 index ea8ff9e..0000000 Binary files a/res/drawable-mdpi/ic_call_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_call_disable.png b/res/drawable-mdpi/ic_call_disable.png deleted file mode 100755 index ace654e..0000000 Binary files a/res/drawable-mdpi/ic_call_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_call_history.png b/res/drawable-mdpi/ic_call_history.png deleted file mode 100755 index e55e370..0000000 Binary files a/res/drawable-mdpi/ic_call_history.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_call_history_dark.png b/res/drawable-mdpi/ic_call_history_dark.png deleted file mode 100755 index 1ad1e81..0000000 Binary files a/res/drawable-mdpi/ic_call_history_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_call_history_disable.png b/res/drawable-mdpi/ic_call_history_disable.png deleted file mode 100755 index b0ec11f..0000000 Binary files a/res/drawable-mdpi/ic_call_history_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_communication.png b/res/drawable-mdpi/ic_communication.png deleted file mode 100755 index f2f5441..0000000 Binary files a/res/drawable-mdpi/ic_communication.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_communication_dark.png b/res/drawable-mdpi/ic_communication_dark.png deleted file mode 100755 index 2b636a7..0000000 Binary files a/res/drawable-mdpi/ic_communication_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_communication_disable.png b/res/drawable-mdpi/ic_communication_disable.png deleted file mode 100755 index a6478aa..0000000 Binary files a/res/drawable-mdpi/ic_communication_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_cyber_profile.png b/res/drawable-mdpi/ic_cyber_profile.png deleted file mode 100755 index 75b13fd..0000000 Binary files a/res/drawable-mdpi/ic_cyber_profile.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_cyber_profile_dark.png b/res/drawable-mdpi/ic_cyber_profile_dark.png deleted file mode 100755 index 9f338a9..0000000 Binary files a/res/drawable-mdpi/ic_cyber_profile_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_cyber_profile_disable.png b/res/drawable-mdpi/ic_cyber_profile_disable.png deleted file mode 100755 index 8afb6d8..0000000 Binary files a/res/drawable-mdpi/ic_cyber_profile_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_data_sending.png b/res/drawable-mdpi/ic_data_sending.png deleted file mode 100755 index 3d96287..0000000 Binary files a/res/drawable-mdpi/ic_data_sending.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_data_sending_dark.png b/res/drawable-mdpi/ic_data_sending_dark.png deleted file mode 100755 index a43ba11..0000000 Binary files a/res/drawable-mdpi/ic_data_sending_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_data_sending_disable.png b/res/drawable-mdpi/ic_data_sending_disable.png deleted file mode 100755 index 7d5858d..0000000 Binary files a/res/drawable-mdpi/ic_data_sending_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_data_transmission.png b/res/drawable-mdpi/ic_data_transmission.png deleted file mode 100755 index 25e7b80..0000000 Binary files a/res/drawable-mdpi/ic_data_transmission.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_data_transmission_dark.png b/res/drawable-mdpi/ic_data_transmission_dark.png deleted file mode 100755 index c889de1..0000000 Binary files a/res/drawable-mdpi/ic_data_transmission_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_data_transmission_disable.png b/res/drawable-mdpi/ic_data_transmission_disable.png deleted file mode 100755 index c112a7f..0000000 Binary files a/res/drawable-mdpi/ic_data_transmission_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_device.png b/res/drawable-mdpi/ic_device.png deleted file mode 100755 index 90c5b8d..0000000 Binary files a/res/drawable-mdpi/ic_device.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_device_control.png b/res/drawable-mdpi/ic_device_control.png deleted file mode 100755 index 80dce48..0000000 Binary files a/res/drawable-mdpi/ic_device_control.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_device_control_dark.png b/res/drawable-mdpi/ic_device_control_dark.png deleted file mode 100755 index 35b03a7..0000000 Binary files a/res/drawable-mdpi/ic_device_control_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_device_control_disable.png b/res/drawable-mdpi/ic_device_control_disable.png deleted file mode 100755 index b945efa..0000000 Binary files a/res/drawable-mdpi/ic_device_control_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_device_dark.png b/res/drawable-mdpi/ic_device_dark.png deleted file mode 100755 index 3aaced0..0000000 Binary files a/res/drawable-mdpi/ic_device_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_device_disable.png b/res/drawable-mdpi/ic_device_disable.png deleted file mode 100755 index e9e6fe6..0000000 Binary files a/res/drawable-mdpi/ic_device_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_device_drawer.png b/res/drawable-mdpi/ic_device_drawer.png deleted file mode 100755 index 32c5be8..0000000 Binary files a/res/drawable-mdpi/ic_device_drawer.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_disturb.png b/res/drawable-mdpi/ic_disturb.png deleted file mode 100755 index 9860183..0000000 Binary files a/res/drawable-mdpi/ic_disturb.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_disturb_dark.png b/res/drawable-mdpi/ic_disturb_dark.png deleted file mode 100755 index 5110a8d..0000000 Binary files a/res/drawable-mdpi/ic_disturb_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_disturb_disable.png b/res/drawable-mdpi/ic_disturb_disable.png deleted file mode 100755 index 8a3ff91..0000000 Binary files a/res/drawable-mdpi/ic_disturb_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_drawer.png b/res/drawable-mdpi/ic_drawer.png deleted file mode 100644 index 831f763..0000000 Binary files a/res/drawable-mdpi/ic_drawer.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_files.png b/res/drawable-mdpi/ic_files.png deleted file mode 100755 index 0a05c91..0000000 Binary files a/res/drawable-mdpi/ic_files.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_files_dark.png b/res/drawable-mdpi/ic_files_dark.png deleted file mode 100755 index 84cb78e..0000000 Binary files a/res/drawable-mdpi/ic_files_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_files_disable.png b/res/drawable-mdpi/ic_files_disable.png deleted file mode 100755 index cd75904..0000000 Binary files a/res/drawable-mdpi/ic_files_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_files_edit.png b/res/drawable-mdpi/ic_files_edit.png deleted file mode 100755 index a5e90bc..0000000 Binary files a/res/drawable-mdpi/ic_files_edit.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_files_edit_dark.png b/res/drawable-mdpi/ic_files_edit_dark.png deleted file mode 100755 index c383b79..0000000 Binary files a/res/drawable-mdpi/ic_files_edit_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_files_edit_disable.png b/res/drawable-mdpi/ic_files_edit_disable.png deleted file mode 100755 index 3c96918..0000000 Binary files a/res/drawable-mdpi/ic_files_edit_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_launcher.png b/res/drawable-mdpi/ic_launcher.png deleted file mode 100644 index a451e1b..0000000 Binary files a/res/drawable-mdpi/ic_launcher.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_location.png b/res/drawable-mdpi/ic_location.png deleted file mode 100755 index 33b8d89..0000000 Binary files a/res/drawable-mdpi/ic_location.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_location_dark.png b/res/drawable-mdpi/ic_location_dark.png deleted file mode 100755 index 03006be..0000000 Binary files a/res/drawable-mdpi/ic_location_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_location_disable.png b/res/drawable-mdpi/ic_location_disable.png deleted file mode 100755 index 147d3cc..0000000 Binary files a/res/drawable-mdpi/ic_location_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_profile_drawer.png b/res/drawable-mdpi/ic_profile_drawer.png deleted file mode 100755 index 684ea8c..0000000 Binary files a/res/drawable-mdpi/ic_profile_drawer.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_sms.png b/res/drawable-mdpi/ic_sms.png deleted file mode 100755 index 93a2177..0000000 Binary files a/res/drawable-mdpi/ic_sms.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_sms_dark.png b/res/drawable-mdpi/ic_sms_dark.png deleted file mode 100755 index 99b4512..0000000 Binary files a/res/drawable-mdpi/ic_sms_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_sms_disable.png b/res/drawable-mdpi/ic_sms_disable.png deleted file mode 100755 index bfc2ca5..0000000 Binary files a/res/drawable-mdpi/ic_sms_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_system.png b/res/drawable-mdpi/ic_system.png deleted file mode 100644 index 5af7ad5..0000000 Binary files a/res/drawable-mdpi/ic_system.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_system_dark.png b/res/drawable-mdpi/ic_system_dark.png deleted file mode 100644 index 906ab2a..0000000 Binary files a/res/drawable-mdpi/ic_system_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_system_disable.png b/res/drawable-mdpi/ic_system_disable.png deleted file mode 100644 index 4fdcd52..0000000 Binary files a/res/drawable-mdpi/ic_system_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_system_red.png b/res/drawable-mdpi/ic_system_red.png deleted file mode 100644 index c0336a9..0000000 Binary files a/res/drawable-mdpi/ic_system_red.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_system_red_dark.png b/res/drawable-mdpi/ic_system_red_dark.png deleted file mode 100644 index 8166827..0000000 Binary files a/res/drawable-mdpi/ic_system_red_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_system_red_disable.png b/res/drawable-mdpi/ic_system_red_disable.png deleted file mode 100644 index 41258d0..0000000 Binary files a/res/drawable-mdpi/ic_system_red_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_wallet_drawer.png b/res/drawable-mdpi/ic_wallet_drawer.png deleted file mode 100755 index 2cc1802..0000000 Binary files a/res/drawable-mdpi/ic_wallet_drawer.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_warning_drawer.png b/res/drawable-mdpi/ic_warning_drawer.png deleted file mode 100755 index 980254f..0000000 Binary files a/res/drawable-mdpi/ic_warning_drawer.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_wiretapping.png b/res/drawable-mdpi/ic_wiretapping.png deleted file mode 100755 index b149489..0000000 Binary files a/res/drawable-mdpi/ic_wiretapping.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_wiretapping_dark.png b/res/drawable-mdpi/ic_wiretapping_dark.png deleted file mode 100755 index ff28acf..0000000 Binary files a/res/drawable-mdpi/ic_wiretapping_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_wiretapping_disable.png b/res/drawable-mdpi/ic_wiretapping_disable.png deleted file mode 100755 index 08800d8..0000000 Binary files a/res/drawable-mdpi/ic_wiretapping_disable.png and /dev/null differ diff --git a/res/drawable-mdpi/img_welcome_screen.png b/res/drawable-mdpi/img_welcome_screen.png deleted file mode 100755 index e20f677..0000000 Binary files a/res/drawable-mdpi/img_welcome_screen.png and /dev/null differ diff --git a/res/drawable-mdpi/logo_fnp.png b/res/drawable-mdpi/logo_fnp.png deleted file mode 100755 index 5828a2c..0000000 Binary files a/res/drawable-mdpi/logo_fnp.png and /dev/null differ diff --git a/res/drawable-mdpi/logo_maic.png b/res/drawable-mdpi/logo_maic.png deleted file mode 100755 index 0f8c67a..0000000 Binary files a/res/drawable-mdpi/logo_maic.png and /dev/null differ diff --git a/res/drawable-mdpi/logo_samsung.png b/res/drawable-mdpi/logo_samsung.png deleted file mode 100755 index 4aa5ff0..0000000 Binary files a/res/drawable-mdpi/logo_samsung.png and /dev/null differ diff --git a/res/drawable-nodpi/nav_drawer_separator.9.png b/res/drawable-nodpi/nav_drawer_separator.9.png deleted file mode 100644 index f1466ba..0000000 Binary files a/res/drawable-nodpi/nav_drawer_separator.9.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_co_moge_normal.png b/res/drawable-xhdpi/btn_co_moge_normal.png deleted file mode 100644 index 46deabb..0000000 Binary files a/res/drawable-xhdpi/btn_co_moge_normal.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_co_moge_pressed.png b/res/drawable-xhdpi/btn_co_moge_pressed.png deleted file mode 100644 index dfbc1f5..0000000 Binary files a/res/drawable-xhdpi/btn_co_moge_pressed.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_legenda_normal.png b/res/drawable-xhdpi/btn_legenda_normal.png deleted file mode 100644 index 9eeae1a..0000000 Binary files a/res/drawable-xhdpi/btn_legenda_normal.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_legenda_pressed.png b/res/drawable-xhdpi/btn_legenda_pressed.png deleted file mode 100644 index d56f615..0000000 Binary files a/res/drawable-xhdpi/btn_legenda_pressed.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_odinstaluj_normal.png b/res/drawable-xhdpi/btn_odinstaluj_normal.png deleted file mode 100644 index 14098c8..0000000 Binary files a/res/drawable-xhdpi/btn_odinstaluj_normal.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_odinstaluj_pressed.png b/res/drawable-xhdpi/btn_odinstaluj_pressed.png deleted file mode 100644 index 5f4aea1..0000000 Binary files a/res/drawable-xhdpi/btn_odinstaluj_pressed.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_ok_normal.png b/res/drawable-xhdpi/btn_ok_normal.png deleted file mode 100755 index c4235e6..0000000 Binary files a/res/drawable-xhdpi/btn_ok_normal.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_ok_pressed.png b/res/drawable-xhdpi/btn_ok_pressed.png deleted file mode 100755 index 8d6efb6..0000000 Binary files a/res/drawable-xhdpi/btn_ok_pressed.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_powrot_normal.png b/res/drawable-xhdpi/btn_powrot_normal.png deleted file mode 100644 index a475fe1..0000000 Binary files a/res/drawable-xhdpi/btn_powrot_normal.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_powrot_pressed.png b/res/drawable-xhdpi/btn_powrot_pressed.png deleted file mode 100644 index 92c6140..0000000 Binary files a/res/drawable-xhdpi/btn_powrot_pressed.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_ustawienia_normal.png b/res/drawable-xhdpi/btn_ustawienia_normal.png deleted file mode 100644 index 59343c2..0000000 Binary files a/res/drawable-xhdpi/btn_ustawienia_normal.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_ustawienia_pressed.png b/res/drawable-xhdpi/btn_ustawienia_pressed.png deleted file mode 100644 index 58c7a6f..0000000 Binary files a/res/drawable-xhdpi/btn_ustawienia_pressed.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_wiecej_info_normal.png b/res/drawable-xhdpi/btn_wiecej_info_normal.png deleted file mode 100644 index bdbe35f..0000000 Binary files a/res/drawable-xhdpi/btn_wiecej_info_normal.png and /dev/null differ diff --git a/res/drawable-xhdpi/btn_wiecej_info_pressed.png b/res/drawable-xhdpi/btn_wiecej_info_pressed.png deleted file mode 100644 index be11f9f..0000000 Binary files a/res/drawable-xhdpi/btn_wiecej_info_pressed.png and /dev/null differ diff --git a/res/drawable-xhdpi/drawer_shadow.9.png b/res/drawable-xhdpi/drawer_shadow.9.png deleted file mode 100644 index fabe9d9..0000000 Binary files a/res/drawable-xhdpi/drawer_shadow.9.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_broke.png b/res/drawable-xhdpi/ic_broke.png deleted file mode 100755 index 741aa04..0000000 Binary files a/res/drawable-xhdpi/ic_broke.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_broke_dark.png b/res/drawable-xhdpi/ic_broke_dark.png deleted file mode 100755 index 14437e9..0000000 Binary files a/res/drawable-xhdpi/ic_broke_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_broke_disable.png b/res/drawable-xhdpi/ic_broke_disable.png deleted file mode 100755 index 4c85b6c..0000000 Binary files a/res/drawable-xhdpi/ic_broke_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_call.png b/res/drawable-xhdpi/ic_call.png deleted file mode 100755 index 70c03a0..0000000 Binary files a/res/drawable-xhdpi/ic_call.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_call_dark.png b/res/drawable-xhdpi/ic_call_dark.png deleted file mode 100755 index 05a6031..0000000 Binary files a/res/drawable-xhdpi/ic_call_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_call_disable.png b/res/drawable-xhdpi/ic_call_disable.png deleted file mode 100755 index ccf68a9..0000000 Binary files a/res/drawable-xhdpi/ic_call_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_call_history.png b/res/drawable-xhdpi/ic_call_history.png deleted file mode 100755 index 0a0e65a..0000000 Binary files a/res/drawable-xhdpi/ic_call_history.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_call_history_dark.png b/res/drawable-xhdpi/ic_call_history_dark.png deleted file mode 100755 index 5a9b564..0000000 Binary files a/res/drawable-xhdpi/ic_call_history_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_call_history_disable.png b/res/drawable-xhdpi/ic_call_history_disable.png deleted file mode 100755 index c7d283e..0000000 Binary files a/res/drawable-xhdpi/ic_call_history_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_communication.png b/res/drawable-xhdpi/ic_communication.png deleted file mode 100755 index 85c6e15..0000000 Binary files a/res/drawable-xhdpi/ic_communication.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_communication_dark.png b/res/drawable-xhdpi/ic_communication_dark.png deleted file mode 100755 index 22bbef2..0000000 Binary files a/res/drawable-xhdpi/ic_communication_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_communication_disable.png b/res/drawable-xhdpi/ic_communication_disable.png deleted file mode 100755 index 9e53406..0000000 Binary files a/res/drawable-xhdpi/ic_communication_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_cyber_profile.png b/res/drawable-xhdpi/ic_cyber_profile.png deleted file mode 100755 index 4f16564..0000000 Binary files a/res/drawable-xhdpi/ic_cyber_profile.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_cyber_profile_dark.png b/res/drawable-xhdpi/ic_cyber_profile_dark.png deleted file mode 100755 index 3186d26..0000000 Binary files a/res/drawable-xhdpi/ic_cyber_profile_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_cyber_profile_disable.png b/res/drawable-xhdpi/ic_cyber_profile_disable.png deleted file mode 100755 index 81cc845..0000000 Binary files a/res/drawable-xhdpi/ic_cyber_profile_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_data_sending.png b/res/drawable-xhdpi/ic_data_sending.png deleted file mode 100755 index 1e99bfa..0000000 Binary files a/res/drawable-xhdpi/ic_data_sending.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_data_sending_dark.png b/res/drawable-xhdpi/ic_data_sending_dark.png deleted file mode 100755 index c957ae8..0000000 Binary files a/res/drawable-xhdpi/ic_data_sending_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_data_sending_disable.png b/res/drawable-xhdpi/ic_data_sending_disable.png deleted file mode 100755 index 8f9ae29..0000000 Binary files a/res/drawable-xhdpi/ic_data_sending_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_data_transmission.png b/res/drawable-xhdpi/ic_data_transmission.png deleted file mode 100755 index 3cedd08..0000000 Binary files a/res/drawable-xhdpi/ic_data_transmission.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_data_transmission_dark.png b/res/drawable-xhdpi/ic_data_transmission_dark.png deleted file mode 100755 index 110a0a0..0000000 Binary files a/res/drawable-xhdpi/ic_data_transmission_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_data_transmission_disable.png b/res/drawable-xhdpi/ic_data_transmission_disable.png deleted file mode 100755 index ea29e05..0000000 Binary files a/res/drawable-xhdpi/ic_data_transmission_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_device.png b/res/drawable-xhdpi/ic_device.png deleted file mode 100755 index a9a6708..0000000 Binary files a/res/drawable-xhdpi/ic_device.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_device_control.png b/res/drawable-xhdpi/ic_device_control.png deleted file mode 100755 index aa29b37..0000000 Binary files a/res/drawable-xhdpi/ic_device_control.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_device_control_dark.png b/res/drawable-xhdpi/ic_device_control_dark.png deleted file mode 100755 index 94beb30..0000000 Binary files a/res/drawable-xhdpi/ic_device_control_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_device_control_disable.png b/res/drawable-xhdpi/ic_device_control_disable.png deleted file mode 100755 index 4972108..0000000 Binary files a/res/drawable-xhdpi/ic_device_control_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_device_dark.png b/res/drawable-xhdpi/ic_device_dark.png deleted file mode 100755 index 5a06457..0000000 Binary files a/res/drawable-xhdpi/ic_device_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_device_disable.png b/res/drawable-xhdpi/ic_device_disable.png deleted file mode 100755 index 473d15d..0000000 Binary files a/res/drawable-xhdpi/ic_device_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_device_drawer.png b/res/drawable-xhdpi/ic_device_drawer.png deleted file mode 100755 index acc5945..0000000 Binary files a/res/drawable-xhdpi/ic_device_drawer.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_disturb.png b/res/drawable-xhdpi/ic_disturb.png deleted file mode 100755 index 0da3a07..0000000 Binary files a/res/drawable-xhdpi/ic_disturb.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_disturb_dark.png b/res/drawable-xhdpi/ic_disturb_dark.png deleted file mode 100755 index 8504575..0000000 Binary files a/res/drawable-xhdpi/ic_disturb_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_disturb_disable.png b/res/drawable-xhdpi/ic_disturb_disable.png deleted file mode 100755 index 944da48..0000000 Binary files a/res/drawable-xhdpi/ic_disturb_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_drawer.png b/res/drawable-xhdpi/ic_drawer.png deleted file mode 100644 index ebfbcb1..0000000 Binary files a/res/drawable-xhdpi/ic_drawer.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_files.png b/res/drawable-xhdpi/ic_files.png deleted file mode 100755 index 30a6b64..0000000 Binary files a/res/drawable-xhdpi/ic_files.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_files_dark.png b/res/drawable-xhdpi/ic_files_dark.png deleted file mode 100755 index acfe4fa..0000000 Binary files a/res/drawable-xhdpi/ic_files_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_files_disable.png b/res/drawable-xhdpi/ic_files_disable.png deleted file mode 100755 index 2dab8bc..0000000 Binary files a/res/drawable-xhdpi/ic_files_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_files_edit.png b/res/drawable-xhdpi/ic_files_edit.png deleted file mode 100755 index dcb2df7..0000000 Binary files a/res/drawable-xhdpi/ic_files_edit.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_files_edit_dark.png b/res/drawable-xhdpi/ic_files_edit_dark.png deleted file mode 100755 index 1430b7d..0000000 Binary files a/res/drawable-xhdpi/ic_files_edit_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_files_edit_disable.png b/res/drawable-xhdpi/ic_files_edit_disable.png deleted file mode 100755 index 81045c4..0000000 Binary files a/res/drawable-xhdpi/ic_files_edit_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_launcher.png b/res/drawable-xhdpi/ic_launcher.png deleted file mode 100644 index 2c9e835..0000000 Binary files a/res/drawable-xhdpi/ic_launcher.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_location.png b/res/drawable-xhdpi/ic_location.png deleted file mode 100755 index 96e8c07..0000000 Binary files a/res/drawable-xhdpi/ic_location.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_location_dark.png b/res/drawable-xhdpi/ic_location_dark.png deleted file mode 100755 index 6f7b5d0..0000000 Binary files a/res/drawable-xhdpi/ic_location_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_location_disable.png b/res/drawable-xhdpi/ic_location_disable.png deleted file mode 100755 index 00f56d5..0000000 Binary files a/res/drawable-xhdpi/ic_location_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_profile_drawer.png b/res/drawable-xhdpi/ic_profile_drawer.png deleted file mode 100755 index d645c0d..0000000 Binary files a/res/drawable-xhdpi/ic_profile_drawer.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_sms.png b/res/drawable-xhdpi/ic_sms.png deleted file mode 100755 index 8fc7c36..0000000 Binary files a/res/drawable-xhdpi/ic_sms.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_sms_dark.png b/res/drawable-xhdpi/ic_sms_dark.png deleted file mode 100755 index 9453062..0000000 Binary files a/res/drawable-xhdpi/ic_sms_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_sms_disable.png b/res/drawable-xhdpi/ic_sms_disable.png deleted file mode 100755 index 1ebb77f..0000000 Binary files a/res/drawable-xhdpi/ic_sms_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_system.png b/res/drawable-xhdpi/ic_system.png deleted file mode 100644 index c84a670..0000000 Binary files a/res/drawable-xhdpi/ic_system.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_system_dark.png b/res/drawable-xhdpi/ic_system_dark.png deleted file mode 100644 index a5502e1..0000000 Binary files a/res/drawable-xhdpi/ic_system_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_system_disable.png b/res/drawable-xhdpi/ic_system_disable.png deleted file mode 100644 index c2911d8..0000000 Binary files a/res/drawable-xhdpi/ic_system_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_system_red.png b/res/drawable-xhdpi/ic_system_red.png deleted file mode 100644 index f712304..0000000 Binary files a/res/drawable-xhdpi/ic_system_red.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_system_red_dark.png b/res/drawable-xhdpi/ic_system_red_dark.png deleted file mode 100644 index 10bb5ab..0000000 Binary files a/res/drawable-xhdpi/ic_system_red_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_system_red_disable.png b/res/drawable-xhdpi/ic_system_red_disable.png deleted file mode 100644 index 8880eb7..0000000 Binary files a/res/drawable-xhdpi/ic_system_red_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_wallet_drawer.png b/res/drawable-xhdpi/ic_wallet_drawer.png deleted file mode 100755 index ba09e07..0000000 Binary files a/res/drawable-xhdpi/ic_wallet_drawer.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_warning_drawer.png b/res/drawable-xhdpi/ic_warning_drawer.png deleted file mode 100755 index 5b8e877..0000000 Binary files a/res/drawable-xhdpi/ic_warning_drawer.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_wiretapping.png b/res/drawable-xhdpi/ic_wiretapping.png deleted file mode 100755 index eb7a925..0000000 Binary files a/res/drawable-xhdpi/ic_wiretapping.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_wiretapping_dark.png b/res/drawable-xhdpi/ic_wiretapping_dark.png deleted file mode 100755 index 88a1897..0000000 Binary files a/res/drawable-xhdpi/ic_wiretapping_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_wiretapping_disable.png b/res/drawable-xhdpi/ic_wiretapping_disable.png deleted file mode 100755 index c4eb286..0000000 Binary files a/res/drawable-xhdpi/ic_wiretapping_disable.png and /dev/null differ diff --git a/res/drawable-xhdpi/img_welcome_screen.png b/res/drawable-xhdpi/img_welcome_screen.png deleted file mode 100755 index 8dae7f2..0000000 Binary files a/res/drawable-xhdpi/img_welcome_screen.png and /dev/null differ diff --git a/res/drawable-xhdpi/logo_fnp.png b/res/drawable-xhdpi/logo_fnp.png deleted file mode 100755 index 52a31a7..0000000 Binary files a/res/drawable-xhdpi/logo_fnp.png and /dev/null differ diff --git a/res/drawable-xhdpi/logo_maic.png b/res/drawable-xhdpi/logo_maic.png deleted file mode 100755 index 435584f..0000000 Binary files a/res/drawable-xhdpi/logo_maic.png and /dev/null differ diff --git a/res/drawable-xhdpi/logo_samsung.png b/res/drawable-xhdpi/logo_samsung.png deleted file mode 100755 index bbfe45c..0000000 Binary files a/res/drawable-xhdpi/logo_samsung.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_co_moge_normal.png b/res/drawable-xxhdpi/btn_co_moge_normal.png deleted file mode 100644 index ef6436d..0000000 Binary files a/res/drawable-xxhdpi/btn_co_moge_normal.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_co_moge_pressed.png b/res/drawable-xxhdpi/btn_co_moge_pressed.png deleted file mode 100644 index d82b5a4..0000000 Binary files a/res/drawable-xxhdpi/btn_co_moge_pressed.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_legenda_normal.png b/res/drawable-xxhdpi/btn_legenda_normal.png deleted file mode 100644 index eec9a8d..0000000 Binary files a/res/drawable-xxhdpi/btn_legenda_normal.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_legenda_pressed.png b/res/drawable-xxhdpi/btn_legenda_pressed.png deleted file mode 100644 index a5615d6..0000000 Binary files a/res/drawable-xxhdpi/btn_legenda_pressed.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_odinstaluj_normal.png b/res/drawable-xxhdpi/btn_odinstaluj_normal.png deleted file mode 100644 index 9eb02ee..0000000 Binary files a/res/drawable-xxhdpi/btn_odinstaluj_normal.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_odinstaluj_pressed.png b/res/drawable-xxhdpi/btn_odinstaluj_pressed.png deleted file mode 100644 index 50fc6a3..0000000 Binary files a/res/drawable-xxhdpi/btn_odinstaluj_pressed.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_ok_normal.png b/res/drawable-xxhdpi/btn_ok_normal.png deleted file mode 100755 index b686b03..0000000 Binary files a/res/drawable-xxhdpi/btn_ok_normal.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_ok_pressed.png b/res/drawable-xxhdpi/btn_ok_pressed.png deleted file mode 100755 index 5a387ab..0000000 Binary files a/res/drawable-xxhdpi/btn_ok_pressed.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_powrot_normal.png b/res/drawable-xxhdpi/btn_powrot_normal.png deleted file mode 100644 index 5f2ec68..0000000 Binary files a/res/drawable-xxhdpi/btn_powrot_normal.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_powrot_pressed.png b/res/drawable-xxhdpi/btn_powrot_pressed.png deleted file mode 100644 index dae6208..0000000 Binary files a/res/drawable-xxhdpi/btn_powrot_pressed.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_ustawienia_normal.png b/res/drawable-xxhdpi/btn_ustawienia_normal.png deleted file mode 100644 index 1fac989..0000000 Binary files a/res/drawable-xxhdpi/btn_ustawienia_normal.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_ustawienia_pressed.png b/res/drawable-xxhdpi/btn_ustawienia_pressed.png deleted file mode 100644 index caeefec..0000000 Binary files a/res/drawable-xxhdpi/btn_ustawienia_pressed.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_wiecej_info_normal.png b/res/drawable-xxhdpi/btn_wiecej_info_normal.png deleted file mode 100644 index 4f447ff..0000000 Binary files a/res/drawable-xxhdpi/btn_wiecej_info_normal.png and /dev/null differ diff --git a/res/drawable-xxhdpi/btn_wiecej_info_pressed.png b/res/drawable-xxhdpi/btn_wiecej_info_pressed.png deleted file mode 100644 index fe85687..0000000 Binary files a/res/drawable-xxhdpi/btn_wiecej_info_pressed.png and /dev/null differ diff --git a/res/drawable-xxhdpi/drawer_shadow.9.png b/res/drawable-xxhdpi/drawer_shadow.9.png deleted file mode 100644 index b91e9d7..0000000 Binary files a/res/drawable-xxhdpi/drawer_shadow.9.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_broke.png b/res/drawable-xxhdpi/ic_broke.png deleted file mode 100755 index 3bb09b9..0000000 Binary files a/res/drawable-xxhdpi/ic_broke.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_broke_dark.png b/res/drawable-xxhdpi/ic_broke_dark.png deleted file mode 100755 index 1258664..0000000 Binary files a/res/drawable-xxhdpi/ic_broke_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_broke_disable.png b/res/drawable-xxhdpi/ic_broke_disable.png deleted file mode 100755 index fef0b5a..0000000 Binary files a/res/drawable-xxhdpi/ic_broke_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_call.png b/res/drawable-xxhdpi/ic_call.png deleted file mode 100755 index f1f20ee..0000000 Binary files a/res/drawable-xxhdpi/ic_call.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_call_dark.png b/res/drawable-xxhdpi/ic_call_dark.png deleted file mode 100755 index 74697fb..0000000 Binary files a/res/drawable-xxhdpi/ic_call_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_call_disable.png b/res/drawable-xxhdpi/ic_call_disable.png deleted file mode 100755 index 4fd4ad2..0000000 Binary files a/res/drawable-xxhdpi/ic_call_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_call_history.png b/res/drawable-xxhdpi/ic_call_history.png deleted file mode 100755 index aa3edd0..0000000 Binary files a/res/drawable-xxhdpi/ic_call_history.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_call_history_dark.png b/res/drawable-xxhdpi/ic_call_history_dark.png deleted file mode 100755 index e8efd5f..0000000 Binary files a/res/drawable-xxhdpi/ic_call_history_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_call_history_disable.png b/res/drawable-xxhdpi/ic_call_history_disable.png deleted file mode 100755 index 571514d..0000000 Binary files a/res/drawable-xxhdpi/ic_call_history_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_communication.png b/res/drawable-xxhdpi/ic_communication.png deleted file mode 100755 index 0acc2a9..0000000 Binary files a/res/drawable-xxhdpi/ic_communication.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_communication_dark.png b/res/drawable-xxhdpi/ic_communication_dark.png deleted file mode 100755 index 55ca29d..0000000 Binary files a/res/drawable-xxhdpi/ic_communication_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_communication_disable.png b/res/drawable-xxhdpi/ic_communication_disable.png deleted file mode 100755 index 8c4ec39..0000000 Binary files a/res/drawable-xxhdpi/ic_communication_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_cyber_profile.png b/res/drawable-xxhdpi/ic_cyber_profile.png deleted file mode 100755 index 4ed83f8..0000000 Binary files a/res/drawable-xxhdpi/ic_cyber_profile.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_cyber_profile_dark.png b/res/drawable-xxhdpi/ic_cyber_profile_dark.png deleted file mode 100755 index cfe69b2..0000000 Binary files a/res/drawable-xxhdpi/ic_cyber_profile_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_cyber_profile_disable.png b/res/drawable-xxhdpi/ic_cyber_profile_disable.png deleted file mode 100755 index d8a579b..0000000 Binary files a/res/drawable-xxhdpi/ic_cyber_profile_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_data_sending.png b/res/drawable-xxhdpi/ic_data_sending.png deleted file mode 100755 index 6cda15b..0000000 Binary files a/res/drawable-xxhdpi/ic_data_sending.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_data_sending_dark.png b/res/drawable-xxhdpi/ic_data_sending_dark.png deleted file mode 100755 index 8fa3140..0000000 Binary files a/res/drawable-xxhdpi/ic_data_sending_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_data_sending_disable.png b/res/drawable-xxhdpi/ic_data_sending_disable.png deleted file mode 100755 index 117263c..0000000 Binary files a/res/drawable-xxhdpi/ic_data_sending_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_data_transmission.png b/res/drawable-xxhdpi/ic_data_transmission.png deleted file mode 100755 index d8dedb9..0000000 Binary files a/res/drawable-xxhdpi/ic_data_transmission.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_data_transmission_dark.png b/res/drawable-xxhdpi/ic_data_transmission_dark.png deleted file mode 100755 index 854bc89..0000000 Binary files a/res/drawable-xxhdpi/ic_data_transmission_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_data_transmission_disable.png b/res/drawable-xxhdpi/ic_data_transmission_disable.png deleted file mode 100755 index e3095cf..0000000 Binary files a/res/drawable-xxhdpi/ic_data_transmission_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_device.png b/res/drawable-xxhdpi/ic_device.png deleted file mode 100755 index b6331e1..0000000 Binary files a/res/drawable-xxhdpi/ic_device.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_device_control.png b/res/drawable-xxhdpi/ic_device_control.png deleted file mode 100755 index 1915ca6..0000000 Binary files a/res/drawable-xxhdpi/ic_device_control.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_device_control_dark.png b/res/drawable-xxhdpi/ic_device_control_dark.png deleted file mode 100755 index d8358a1..0000000 Binary files a/res/drawable-xxhdpi/ic_device_control_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_device_control_disable.png b/res/drawable-xxhdpi/ic_device_control_disable.png deleted file mode 100755 index 875e3a1..0000000 Binary files a/res/drawable-xxhdpi/ic_device_control_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_device_dark.png b/res/drawable-xxhdpi/ic_device_dark.png deleted file mode 100755 index 5c1423e..0000000 Binary files a/res/drawable-xxhdpi/ic_device_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_device_disable.png b/res/drawable-xxhdpi/ic_device_disable.png deleted file mode 100755 index 91531cb..0000000 Binary files a/res/drawable-xxhdpi/ic_device_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_device_drawer.png b/res/drawable-xxhdpi/ic_device_drawer.png deleted file mode 100755 index 7dc959b..0000000 Binary files a/res/drawable-xxhdpi/ic_device_drawer.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_disturb.png b/res/drawable-xxhdpi/ic_disturb.png deleted file mode 100755 index 8db45bd..0000000 Binary files a/res/drawable-xxhdpi/ic_disturb.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_disturb_dark.png b/res/drawable-xxhdpi/ic_disturb_dark.png deleted file mode 100755 index ea0ccca..0000000 Binary files a/res/drawable-xxhdpi/ic_disturb_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_disturb_disable.png b/res/drawable-xxhdpi/ic_disturb_disable.png deleted file mode 100755 index b0987c9..0000000 Binary files a/res/drawable-xxhdpi/ic_disturb_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_drawer.png b/res/drawable-xxhdpi/ic_drawer.png deleted file mode 100644 index 0f48a35..0000000 Binary files a/res/drawable-xxhdpi/ic_drawer.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_files.png b/res/drawable-xxhdpi/ic_files.png deleted file mode 100755 index a74faaf..0000000 Binary files a/res/drawable-xxhdpi/ic_files.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_files_dark.png b/res/drawable-xxhdpi/ic_files_dark.png deleted file mode 100755 index bb7bcd2..0000000 Binary files a/res/drawable-xxhdpi/ic_files_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_files_disable.png b/res/drawable-xxhdpi/ic_files_disable.png deleted file mode 100755 index f6abb61..0000000 Binary files a/res/drawable-xxhdpi/ic_files_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_files_edit.png b/res/drawable-xxhdpi/ic_files_edit.png deleted file mode 100755 index d9f4a08..0000000 Binary files a/res/drawable-xxhdpi/ic_files_edit.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_files_edit_dark.png b/res/drawable-xxhdpi/ic_files_edit_dark.png deleted file mode 100755 index 477b859..0000000 Binary files a/res/drawable-xxhdpi/ic_files_edit_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_files_edit_disable.png b/res/drawable-xxhdpi/ic_files_edit_disable.png deleted file mode 100755 index 4319c1a..0000000 Binary files a/res/drawable-xxhdpi/ic_files_edit_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_launcher.png b/res/drawable-xxhdpi/ic_launcher.png deleted file mode 100644 index 7bb13f0..0000000 Binary files a/res/drawable-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_location.png b/res/drawable-xxhdpi/ic_location.png deleted file mode 100755 index 7d8bf69..0000000 Binary files a/res/drawable-xxhdpi/ic_location.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_location_dark.png b/res/drawable-xxhdpi/ic_location_dark.png deleted file mode 100755 index 44cfc20..0000000 Binary files a/res/drawable-xxhdpi/ic_location_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_location_disable.png b/res/drawable-xxhdpi/ic_location_disable.png deleted file mode 100755 index 8338d13..0000000 Binary files a/res/drawable-xxhdpi/ic_location_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_profile_drawer.png b/res/drawable-xxhdpi/ic_profile_drawer.png deleted file mode 100755 index f36269e..0000000 Binary files a/res/drawable-xxhdpi/ic_profile_drawer.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_sms.png b/res/drawable-xxhdpi/ic_sms.png deleted file mode 100755 index 4e6ca73..0000000 Binary files a/res/drawable-xxhdpi/ic_sms.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_sms_dark.png b/res/drawable-xxhdpi/ic_sms_dark.png deleted file mode 100755 index caff018..0000000 Binary files a/res/drawable-xxhdpi/ic_sms_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_sms_disable.png b/res/drawable-xxhdpi/ic_sms_disable.png deleted file mode 100755 index c772d69..0000000 Binary files a/res/drawable-xxhdpi/ic_sms_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_system.png b/res/drawable-xxhdpi/ic_system.png deleted file mode 100644 index ca5f6ce..0000000 Binary files a/res/drawable-xxhdpi/ic_system.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_system_dark.png b/res/drawable-xxhdpi/ic_system_dark.png deleted file mode 100644 index 9e1fdb0..0000000 Binary files a/res/drawable-xxhdpi/ic_system_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_system_disable.png b/res/drawable-xxhdpi/ic_system_disable.png deleted file mode 100644 index a5233bf..0000000 Binary files a/res/drawable-xxhdpi/ic_system_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_system_red.png b/res/drawable-xxhdpi/ic_system_red.png deleted file mode 100644 index 146e79a..0000000 Binary files a/res/drawable-xxhdpi/ic_system_red.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_system_red_dark.png b/res/drawable-xxhdpi/ic_system_red_dark.png deleted file mode 100644 index 512daa5..0000000 Binary files a/res/drawable-xxhdpi/ic_system_red_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_system_red_disable.png b/res/drawable-xxhdpi/ic_system_red_disable.png deleted file mode 100644 index 9e5964d..0000000 Binary files a/res/drawable-xxhdpi/ic_system_red_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_wallet_drawer.png b/res/drawable-xxhdpi/ic_wallet_drawer.png deleted file mode 100755 index 44746be..0000000 Binary files a/res/drawable-xxhdpi/ic_wallet_drawer.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_warning_drawer.png b/res/drawable-xxhdpi/ic_warning_drawer.png deleted file mode 100755 index 31adcc2..0000000 Binary files a/res/drawable-xxhdpi/ic_warning_drawer.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_wiretapping.png b/res/drawable-xxhdpi/ic_wiretapping.png deleted file mode 100755 index 1e8a520..0000000 Binary files a/res/drawable-xxhdpi/ic_wiretapping.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_wiretapping_dark.png b/res/drawable-xxhdpi/ic_wiretapping_dark.png deleted file mode 100755 index c84e376..0000000 Binary files a/res/drawable-xxhdpi/ic_wiretapping_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_wiretapping_disable.png b/res/drawable-xxhdpi/ic_wiretapping_disable.png deleted file mode 100755 index ca0bedb..0000000 Binary files a/res/drawable-xxhdpi/ic_wiretapping_disable.png and /dev/null differ diff --git a/res/drawable-xxhdpi/img_welcome_screen.png b/res/drawable-xxhdpi/img_welcome_screen.png deleted file mode 100755 index ce288e2..0000000 Binary files a/res/drawable-xxhdpi/img_welcome_screen.png and /dev/null differ diff --git a/res/drawable-xxhdpi/logo_fnp.png b/res/drawable-xxhdpi/logo_fnp.png deleted file mode 100755 index f245255..0000000 Binary files a/res/drawable-xxhdpi/logo_fnp.png and /dev/null differ diff --git a/res/drawable-xxhdpi/logo_maic.png b/res/drawable-xxhdpi/logo_maic.png deleted file mode 100755 index 3dd9ab6..0000000 Binary files a/res/drawable-xxhdpi/logo_maic.png and /dev/null differ diff --git a/res/drawable-xxhdpi/logo_samsung.png b/res/drawable-xxhdpi/logo_samsung.png deleted file mode 100755 index da4bf95..0000000 Binary files a/res/drawable-xxhdpi/logo_samsung.png and /dev/null differ diff --git a/res/drawable-xxhdpi/title_welcome_screen.png b/res/drawable-xxhdpi/title_welcome_screen.png deleted file mode 100755 index 1457102..0000000 Binary files a/res/drawable-xxhdpi/title_welcome_screen.png and /dev/null differ diff --git a/res/drawable/actionbar_background.xml b/res/drawable/actionbar_background.xml deleted file mode 100644 index f02d7f9..0000000 --- a/res/drawable/actionbar_background.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/res/drawable/app_info_settings_button.xml b/res/drawable/app_info_settings_button.xml deleted file mode 100644 index 586d1fb..0000000 --- a/res/drawable/app_info_settings_button.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/res/drawable/app_info_uninstall_button.xml b/res/drawable/app_info_uninstall_button.xml deleted file mode 100644 index 4eefcf3..0000000 --- a/res/drawable/app_info_uninstall_button.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/res/drawable/app_info_what_can_button.xml b/res/drawable/app_info_what_can_button.xml deleted file mode 100644 index dba9a4c..0000000 --- a/res/drawable/app_info_what_can_button.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/res/drawable/back_button.xml b/res/drawable/back_button.xml deleted file mode 100644 index 8dd4920..0000000 --- a/res/drawable/back_button.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/res/drawable/custom_border.xml b/res/drawable/custom_border.xml deleted file mode 100644 index ca4a13a..0000000 --- a/res/drawable/custom_border.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - \ No newline at end of file diff --git a/res/drawable/drawer_background_selector.xml b/res/drawable/drawer_background_selector.xml deleted file mode 100644 index 7be5d27..0000000 --- a/res/drawable/drawer_background_selector.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/res/drawable/legend_btn_selector.xml b/res/drawable/legend_btn_selector.xml deleted file mode 100644 index c166e6a..0000000 --- a/res/drawable/legend_btn_selector.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/res/drawable/more_info_button.xml b/res/drawable/more_info_button.xml deleted file mode 100644 index d4770f0..0000000 --- a/res/drawable/more_info_button.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/res/drawable/nav_drawer_separator.9.png b/res/drawable/nav_drawer_separator.9.png deleted file mode 100755 index f1466ba..0000000 Binary files a/res/drawable/nav_drawer_separator.9.png and /dev/null differ diff --git a/res/drawable/ok_button.xml b/res/drawable/ok_button.xml deleted file mode 100644 index 6151480..0000000 --- a/res/drawable/ok_button.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/res/layout-land/activity_app_info.xml b/res/layout-land/activity_app_info.xml deleted file mode 100644 index c55bd26..0000000 --- a/res/layout-land/activity_app_info.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout-land/activity_popup.xml b/res/layout-land/activity_popup.xml deleted file mode 100644 index 06c4432..0000000 --- a/res/layout-land/activity_popup.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout-land/welcome_dialog.xml b/res/layout-land/welcome_dialog.xml deleted file mode 100644 index c964754..0000000 --- a/res/layout-land/welcome_dialog.xml +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout-large-land/activity_main.xml b/res/layout-large-land/activity_main.xml deleted file mode 100644 index f8aced4..0000000 --- a/res/layout-large-land/activity_main.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - diff --git a/res/layout/activity_app_info.xml b/res/layout/activity_app_info.xml deleted file mode 100644 index 46becbe..0000000 --- a/res/layout/activity_app_info.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/activity_license.xml b/res/layout/activity_license.xml deleted file mode 100644 index 478f9aa..0000000 --- a/res/layout/activity_license.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml deleted file mode 100644 index 5cee2f0..0000000 --- a/res/layout/activity_main.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - diff --git a/res/layout/activity_popup.xml b/res/layout/activity_popup.xml deleted file mode 100644 index 3a8edae..0000000 --- a/res/layout/activity_popup.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/app_list_item_view.xml b/res/layout/app_list_item_view.xml deleted file mode 100644 index 0cafe97..0000000 --- a/res/layout/app_list_item_view.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/drawer_list_item.xml b/res/layout/drawer_list_item.xml deleted file mode 100644 index bcfc813..0000000 --- a/res/layout/drawer_list_item.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/fragment_main.xml b/res/layout/fragment_main.xml deleted file mode 100644 index 0706944..0000000 --- a/res/layout/fragment_main.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/res/layout/fragment_navigation_drawer.xml b/res/layout/fragment_navigation_drawer.xml deleted file mode 100644 index 1b9c99f..0000000 --- a/res/layout/fragment_navigation_drawer.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/res/layout/header_layout.xml b/res/layout/header_layout.xml deleted file mode 100644 index d418210..0000000 --- a/res/layout/header_layout.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/threats_list_item.xml b/res/layout/threats_list_item.xml deleted file mode 100644 index f88ae5d..0000000 --- a/res/layout/threats_list_item.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/res/layout/welcome_dialog.xml b/res/layout/welcome_dialog.xml deleted file mode 100644 index f37e5a2..0000000 --- a/res/layout/welcome_dialog.xml +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/menu/main.xml b/res/menu/main.xml deleted file mode 100644 index c5c081d..0000000 --- a/res/menu/main.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - diff --git a/res/values-v11/styles.xml b/res/values-v11/styles.xml deleted file mode 100644 index 0c0f30d..0000000 --- a/res/values-v11/styles.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - diff --git a/res/values-v14/styles.xml b/res/values-v14/styles.xml deleted file mode 100644 index 5aef34b..0000000 --- a/res/values-v14/styles.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/res/values-w820dp/dimens.xml b/res/values-w820dp/dimens.xml deleted file mode 100644 index f9f069f..0000000 --- a/res/values-w820dp/dimens.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - 64dp - - diff --git a/res/values/attrs.xml b/res/values/attrs.xml deleted file mode 100644 index cf987fe..0000000 --- a/res/values/attrs.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/res/values/color.xml b/res/values/color.xml deleted file mode 100644 index d7bee2a..0000000 --- a/res/values/color.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - #f18324 - #fe983e - #e87817 - #e16810 - #ee4b35 - #e23f29 - #efa962 - #3a3430 - #eeeeee - #ffffff - #ffffff - #1f1a17 - #c7bfba - #EDEDED - #c3c3c3 - - #ffffff - #ffffff - #ffffff - #000000 - - #1f1a17 - - @color/text_bg - #ffffff - #feca9c - - \ No newline at end of file diff --git a/res/values/dimens.xml b/res/values/dimens.xml deleted file mode 100644 index a10764d..0000000 --- a/res/values/dimens.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - 16dp - 16dp - - - 280dp - - diff --git a/res/values/strings.xml b/res/values/strings.xml deleted file mode 100644 index b590b6e..0000000 --- a/res/values/strings.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - Mobilne Bezpieczeństwo - Mobilne\nBezpieczeństwo - Kategorie dostępu - Open navigation drawer - Close navigation drawer - Pokaż aplikacje systemowe - Ukryj aplikacje systemowe - O projekcie - Licencja - Aplikacje, które… - \u2193 Czy ufasz im wszystkim? - "Aplikacje, które " - O akcji… - Aplikacje w Twoim urządzeniu mają często szerokie uprawnienia i mogą wiele namieszać. Czy ufasz im wszystkim? - Dowiedz się więcej o aplikacjach - Projekt dofinansowano ze środków\nMinisterstwa Administracji i Cyfryzacji. - Fundacja Nowoczesna Polska - Ministerstwo Administracji i Cyfryzacji - Samsung - - - - Liczba aplikacji tego typu:  - - - Czy wiesz, że ta aplikacja: - Odinstaluj - Ustawienia - Co mogę zrobić - To jest aplikacja systemowa. - - - Więcej Informacji… - Powrót - - - "http://www.nowoczesnapolska.org.pl/" - "http://www.mac.gov.pl/" - "http://www.samsung.com/pl/home" - "http://www.nowoczesnapolska.org.pl/" - "http://edukacjamedialna.edu.pl/lekcje/aplikacje-mobilne/" - - - Aplikacja na licencji AGPL v. 3.0 - http://www.gnu.org/licenses/agpl-3.0.txt - Pomysłodawca i współtwórca aplikacji: Fundacja Nowoczesna Polska\n\nWspółtwórca aplikacji i realizacja: Samsung Electronics Polska Sp. z o.o.\n\nProjekt finansowany ze środków Ministerstwa Administracji i Cyfryzacji. - diff --git a/res/values/styles.xml b/res/values/styles.xml deleted file mode 100644 index fb7df43..0000000 --- a/res/values/styles.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/res/xml/categories.xml b/res/xml/categories.xml deleted file mode 100644 index 9ba3890..0000000 --- a/res/xml/categories.xml +++ /dev/null @@ -1,260 +0,0 @@ - - - - Prywatność -
wiedzą o Tobie wszystko
- Te aplikacje mają dostęp do Twoich danych i mogą wysłać poza Twoje urządzenie. - Te aplikacje mają dostęp do Twoich danych i mogą wysłać poza Twoje urządzenie. Złośliwa aplikacja mogłaby wykraść Twoje hasła lub prywatne zdjęcia ze spotkań ze znajomymi. - ic_profile_drawer - http://edukacjamedialna.edu.pl/lekcje/prywatnosc-w-sieci/ - true - - - komunikacja -
komunikacja
- Może śledzić Twoją komunikację przez telefon, sms lub internet - ic_communication - - android.permission.ACCOUNT_MANAGER - android.permission.AUTHENTICATE_ACCOUNTS - android.permission.GET_ACCOUNTS - android.permission.MANAGE_ACCOUNTS - android.permission.READ_CALENDAR - android.permission.READ_CALL_LOG - android.permission.READ_CONTACTS - com.android.browser.permission.READ_HISTORY_BOOKMARKS - android.permission.READ_PHONE_STATE - android.permission.READ_PRIVILEGED_PHONE_STATE - android.permission.READ_PROFILE - android.permission.READ_SMS - android.permission.READ_SOCIAL_STREAM - com.android.voicemail.permission.READ_VOICEMAIL - android.permission.RECEIVE_SMS - android.permission.RECORD_AUDIO - android.permission.SUBSCRIBED_FEEDS_READ - android.permission.USE_CREDENTIALS - android.permission.USE_SIP - android.permission.DIAGNOSTIC - android.permission.DUMP - android.permission.READ_LOGS - -
- - - lokalizacja -
lokalizacja
- Może ustalić, gdzie jesteś - ic_location - - android.permission.ACCESS_CHECKIN_PROPERTIES - android.permission.ACCESS_COARSE_LOCATION - android.permission.ACCESS_FINE_LOCATION - android.permission.ACCESS_LOCATION_EXTRA_COMMANDS - android.permission.ACCESS_WIFI_STATE - android.permission.LOCATION_HARDWARE - -
- - - pliki_prywatnosc -
pliki
- Ma dostęp do Twoich zdjęć, dokumentów i innych plików - ic_files - - android.permission.MANAGE_DOCUMENTS - android.permission.MEDIA_CONTENT_CONTROL - android.permission.READ_EXTERNAL_STORAGE - -
- - - podsluch -
podsłuch
- Może Cię podłuchiwać lub podglądać, korzystając z mikrofonu, kamery bądź innych sensorów obecnych w urządzeniu - ic_wiretapping - - android.permission.BODY_SENSORS - android.permission.CAMERA - android.permission.PROCESS_OUTGOING_CALLS - android.permission.CALL_PHONE - android.permission.CALL_PRIVILEGED - -
- - - urzadzenie_prywatosc -
Urządzenie
- Może śledzić Twoją aktywność na urządzeniu, np. zapisując obraz wyświetlany na ekranie - ic_device - - android.permission.CAPTURE_AUDIO_OUTPUT - android.permission.CAPTURE_SECURE_VIDEO_OUTPUT - android.permission.CAPTURE_VIDEO_OUTPUT - android.permission.DIAGNOSTIC - android.permission.DUMP - android.permission.READ_FRAME_BUFFER - android.permission.READ_LOGS - android.permission.READ_USER_DICTIONARY - android.permission.SET_ACTIVITY_WATCHER - -
-
-
- - - Koszty -
mogą Cię narazić na koszty
- Te aplikacje mogą nawiązywać płatne połączenia i wysyłać wiadomości, nawet bez Twojego potwierdzenia. - Te aplikacje mogą nawiązywać płatne połączenia i wysyłać wiadomości, nawet bez Twojego potwierdzenia. Złośliwa aplikacja mogłaby narazić Cię na bardzo wysoki rachunek. - ic_wallet_drawer - http://edukacjamedialna.edu.pl/lekcje/mobilne-koszty/ - false - - - telefon_koszty -
telefon
- Może nawiązać płatne połączenie telefoniczne - ic_call - - android.permission.CALL_PHONE - android.permission.CALL_PRIVILEGED - android.permission.PROCESS_OUTGOING_CALLS - -
- - - sms_mms -
sms/mms
- Może wysyłać sms-y i mms-y - ic_sms - - android.permission.SEND_SMS - -
- - - dane -
Dane
- Może spowodować płatną transmisję danych - ic_data_transmission - - android.permission.CHANGE_NETWORK_STATE - android.permission.INTERNET - android.permission.WRITE_APN_SETTINGS - -
-
-
- - - Urządzenie -
mogą uszkodzić Twoje urządzenie
- Te aplikacje mogą zmieniać ustawienia systemu i mają szeroki dostęp do sprzętu. - Te aplikacje mogą zmieniać ustawienia systemu i mają szeroki dostęp do sprzętu. Złośliwa aplikacja mogłaby uszkodzić Twoje urządzenie, albo bardzo utrudnić Ci korzystanie z niego. - ic_device_drawer - http://edukacjamedialna.edu.pl/lekcje/kontrola-nad-urzadzeniem/ - false - - - psuje -
psuje
- Może coś zepsuć – np. trwale usunąć Twoje dane - ic_broke - - android.permission.BRICK - android.permission.CLEAR_APP_USER_DATA - android.permission.DELETE_PACKAGES - android.permission.DIAGNOSTIC - android.permission.INSTALL_PACKAGES - android.permission.MASTER_CLEAR - android.permission.MOUNT_FORMAT_FILESYSTEMS - android.permission.WRITE_GSERVICES - android.permission.WRITE_SECURE_SETTINGS - -
- - - utrudniacze -
utrudniacze
- Może utrudnić Ci korzystanie z urządzenia, np. przez zmianę ustawień - ic_disturb - - android.permission.CHANGE_COMPONENT_ENABLED_STATE - android.permission.CHANGE_CONFIGURATION - android.permission.CHANGE_WIFI_STATE - android.permission.DEVICE_POWER - android.permission.INJECT_EVENTS - android.permission.KILL_BACKGROUND_PROCESSES - android.permission.REBOOT - -
-
-
- - - Phishing -
mogą Cię oszukać
- Te aplikacje mogą modyfikować prywatne dane na Twoim urządzeniu (jak zapisane wiadomości czy historię połączeń) - Te aplikacje mogą modyfikować prywatne dane na Twoim urządzeniu (jak zapisane wiadomości czy historię połączeń). Złośliwa aplikacja mogłaby podszyć się pod Twoją rodzinę, znajomych lub... bank. - ic_warning_drawer - http://edukacjamedialna.edu.pl/lekcje/phishing-i-spam/ - false - - - -
moje cyfrowe życie
- Może korzystać z Twoich kont, zmieniając np. wpisy w kalendarzu lub kontakty - ic_cyber_profile - - android.permission.MANAGE_ACCOUNTS - android.permission.SUBSCRIBED_FEEDS_WRITE - android.permission.USE_CREDENTIALS - android.permission.WRITE_APN_SETTINGS - android.permission.WRITE_CONTACTS - android.permission.WRITE_CALENDAR - com.android.browser.permission.WRITE_HISTORY_BOOKMARKS - android.permission.WRITE_SOCIAL_STREAM - -
- - - zapisuje_pliki -
zapisuje pliki
- Może zmienić treść Twoich plików - ic_files_edit - - android.permission.MANAGE_DOCUMENTS - android.permission.WRITE_EXTERNAL_STORAGE - -
- - - telefon_phishing -
telefon
- Może zmodyfikować historię połączeń lub sms-ów albo np. przechwycić połączenie telefoniczne - ic_communication - - com.android.voicemail.permission.ADD_VOICEMAIL - android.permission.MODIFY_PHONE_STATE - android.permission.PROCESS_OUTGOING_CALLS - android.permission.WRITE_CALL_LOG - android.permission.WRITE_SMS - com.android.voicemail.permission.WRITE_VOICEMAIL - -
- - - urzadzenie_phishing -
Urządzenie
- Może przejąć kontrolę nad sposobem, w jaki korzystasz z urządzenia - ic_device_control - - android.permission.DISABLE_KEYGUARD - android.permission.INJECT_EVENTS - android.permission.SYSTEM_ALERT_WINDOW - android.permission.WRITE_SETTINGS - -
-
-
-
\ No newline at end of file diff --git a/res/xml/data_send_subcategory.xml b/res/xml/data_send_subcategory.xml deleted file mode 100644 index d534344..0000000 --- a/res/xml/data_send_subcategory.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - uprawnienia_do_przesylu_danych -
uprawnienia do przesyłu danych
- Może wysyłać dane z twojego urządzenia - ic_data_sending - - android.permission.BIND_NFC_SERVICE - android.permission.BLUETOOTH - android.permission.BLUETOOTH_ADMIN - android.permission.BLUETOOTH_PRIVILEGED - android.permission.INTERNET - android.permission.NFC - android.permission.SEND_SMS - android.permission.TRANSMIT_IR - android.permission.CALL_PHONE - android.permission.CALL_PRIVILEGED - -
diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..e7b4def --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +include ':app' diff --git a/src/com/samsung/srpol/data/Category.java b/src/com/samsung/srpol/data/Category.java deleted file mode 100644 index 8127b82..0000000 --- a/src/com/samsung/srpol/data/Category.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.data; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -import com.samsung.srpol.loader.AppDetails; - -import android.content.Context; -import android.graphics.drawable.Drawable; - -public class Category { - - private String mTitle; - private String mHeader; - private String mDescription; - private String mShortDescription; - private int mSubCategoriesMask; - private int mIconRes; - private String mLink; - private boolean mCanSendData; - private Drawable mIconDrawable; - private ArrayList mSubCategories; - private ArrayList mRelatedApps = new ArrayList(); - private int mCurrentlyVisible; - - public Category(Context ctx, String title, String header, - String shortDescription, String description, int icon, String link, - boolean dataSend, ArrayList subCategories) { - mTitle = title; - mHeader = header; - mShortDescription = shortDescription; - mDescription = description; - mIconRes = icon; - mLink = link; - mIconDrawable = ctx.getResources().getDrawable(mIconRes); - mSubCategories = subCategories; - for (Subcategory subcategory : mSubCategories) - mSubCategoriesMask = mSubCategoriesMask | subcategory.getId(); - mCanSendData = dataSend; - mCurrentlyVisible = mRelatedApps.size(); - } - - public void removeAppFromList(AppDetails removed) { - mRelatedApps.remove(removed); - } - - public int getSubCategoriesMask() { - return mSubCategoriesMask; - } - - public void addApplicationToCategory(AppDetails toBeAdded) { - int size = mRelatedApps.size(); - addAppToList(toBeAdded); - if (size < mRelatedApps.size()) - Collections.sort(mRelatedApps, AppDetails.SMART_COMPARATOR); - } - - private void addAppToList(AppDetails toBeAdded) { - // Checking if any subcategory fits - if (!toBeAdded.isInSubcategory(mSubCategoriesMask) - || (mCanSendData && !toBeAdded - .isInSubcategory(Subcategory.CAN_SEND_DATA_SUB_CATEGORY_ID))) - return; - mRelatedApps.add(toBeAdded); - } - - public List getSubCategories() { - return mSubCategories; - } - - /** - * Create app list - */ - public void assignAppsToCategory(List appDetailsList) { - mRelatedApps.clear(); - - if (appDetailsList != null && mSubCategories != null) { - for (AppDetails appDetails : appDetailsList) { - addAppToList(appDetails); - } - } - } - - /** - * @return the mRelatedApps - */ - public ArrayList getRelatedApps() { - return mRelatedApps; - } - - public int getIconRes() { - return mIconRes; - } - - public Drawable getIconDrawable() { - return mIconDrawable; - } - - public String getTitle() { - return mTitle; - } - - public String getDescription() { - return mDescription; - } - - public String getHeader() { - return mHeader; - } - - public String getShortDescription() { - return mShortDescription; - } - - public void updateVisibleCount(int size) { - mCurrentlyVisible = size; - } - - public int getCurrentlyVisible() { - return mCurrentlyVisible; - } - - public String getLink() { - return mLink; - } -} diff --git a/src/com/samsung/srpol/data/Subcategory.java b/src/com/samsung/srpol/data/Subcategory.java deleted file mode 100644 index 6eb1bc5..0000000 --- a/src/com/samsung/srpol/data/Subcategory.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.data; - -import java.util.ArrayList; - -import android.content.Context; -import android.content.res.Resources.NotFoundException; -import android.graphics.drawable.Drawable; - -public class Subcategory { - - public static final int CAN_SEND_DATA_SUB_CATEGORY_ID = 1; - public static final String CAN_SEND_DATA_SUB_CATEGORY_HEADER = "uprawnienia do przesyłu danych"; - private static final String DARK_SUFIX = "_dark"; - private static final String DISABLE_SUFIX = "_disable"; - private static int mIdGenerator = 2; - - private int mSubcatId; - private String mHeader; - private String mDescription; - private int mIconRes; - private Drawable mIconDrawable; - private Drawable mIconDarkDrawable; - private Drawable mIconDisabledDrawable; - private ArrayList mPermissions; - - public Subcategory(Context context, String header, String description, - String icon, ArrayList permissions) { - mHeader = header; - mDescription = description; - if (mHeader.equals(CAN_SEND_DATA_SUB_CATEGORY_HEADER)) { - mSubcatId = CAN_SEND_DATA_SUB_CATEGORY_ID; - } else { - mSubcatId = mIdGenerator; - mIdGenerator = mIdGenerator << 1; - } - - String packageName = context.getPackageName(); - mIconRes = context.getResources().getIdentifier(icon, "drawable", - packageName); - mIconDrawable = context.getResources().getDrawable(mIconRes); - - int iconDarkRes = context.getResources().getIdentifier( - icon.concat(DARK_SUFIX), "drawable", packageName); - try { - mIconDarkDrawable = context.getResources().getDrawable(iconDarkRes); - } catch (NotFoundException ex) { - mIconDarkDrawable = mIconDrawable; - } - - int iconDisableRes = context.getResources().getIdentifier(icon.concat(DISABLE_SUFIX), "drawable", packageName); - try { - mIconDisabledDrawable = context.getResources().getDrawable(iconDisableRes); - } catch (NotFoundException ex) { - mIconDisabledDrawable = mIconDrawable; - } - - mPermissions = permissions; - } - - public ArrayList getPermissions() { - return mPermissions; - } - - public int getId() { - return mSubcatId; - } - - public String getHeader() { - return mHeader; - } - - public Drawable getIconDrawable() { - return mIconDrawable; - } - - public Drawable getDarkIcon() { - return mIconDarkDrawable; - } - - public Drawable getDisabledIcon() { - return mIconDisabledDrawable; - } - - public String getDescription() { - return mDescription; - } - - public static void resetGenerator() { - mIdGenerator = 2; - } - -} diff --git a/src/com/samsung/srpol/loader/AppDetails.java b/src/com/samsung/srpol/loader/AppDetails.java deleted file mode 100644 index 6fff62b..0000000 --- a/src/com/samsung/srpol/loader/AppDetails.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.loader; - -import java.io.File; -import java.util.Comparator; - -import android.content.pm.ApplicationInfo; -import android.content.pm.PackageInfo; -import android.content.pm.PackageManager.NameNotFoundException; -import android.graphics.ColorMatrix; -import android.graphics.ColorMatrixColorFilter; -import android.graphics.drawable.Drawable; -import android.os.Build; - -/** - * Helper class containing details about given permission - * - * This Class contains : String mPermissionName; String - * mPermissionLabel; String mPermissionDetails; - */ -public class AppDetails { - public static final String TAG = "AppDetails"; - private static final ColorMatrixColorFilter mGrayscaleFilter; - - private String mAppName; - private String mPackageName; - private Drawable mAppIcon; - private boolean mSystemApp; - - private int mSubCategoriesMask; - - private static AppListLoader mLoader; - private boolean mEnabled; - private boolean mMounted; - private final File mApkFile; - - static { - ColorMatrix matrix = new ColorMatrix(); - matrix.setSaturation(0); - mGrayscaleFilter = new ColorMatrixColorFilter(matrix); - } - - public AppDetails(AppListLoader loader, PackageInfo packageinfo) { - mLoader = loader; - mPackageName = packageinfo.applicationInfo.packageName; - mEnabled = packageinfo.applicationInfo.enabled; - mApkFile = new File(packageinfo.applicationInfo.sourceDir); - if (!mApkFile.exists()) { - mMounted = false; - mAppName = packageinfo.applicationInfo.packageName; - } else { - mMounted = true; - CharSequence label = packageinfo.applicationInfo.loadLabel(mLoader.getPm()); - mAppName = label != null ? label.toString() - : packageinfo.applicationInfo.packageName; - } - mSystemApp = (packageinfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) > 0; - } - - /** - * @return the mAppName - */ - public String getAppName() { - return mAppName; - } - - /** - * @return the mAppPackageName - */ - public String getAppPackageName() { - return mPackageName; - } - - /** - * @return the mAppIcon - */ - public Drawable getAppIcon() { - if (mAppIcon == null || !mMounted) { - if (mApkFile.exists()) { - try { - mAppIcon = mLoader.getPm().getApplicationIcon(mPackageName); - } catch (NameNotFoundException e) { - mAppIcon = mLoader.getContext().getResources() - .getDrawable(android.R.drawable.sym_def_app_icon); - } - mMounted = true; - return updateAppIconColor(mAppIcon); - } else { - mMounted = false; - return updateAppIconColor(mLoader.getContext().getResources() - .getDrawable(android.R.drawable.sym_def_app_icon)); - } - } else - return mAppIcon; - } - - public int getSubcategoriesMask() { - return mSubCategoriesMask; - } - - public boolean isInSubcategory(int subcategoryId) { - return (mSubCategoriesMask & subcategoryId) > 0; - } - - public boolean isInAllSubcategories(int subcategoryIds) { - return (mSubCategoriesMask & subcategoryIds) == subcategoryIds; - } - - public boolean isEnabled() { - return mEnabled; - } - - public void setEnabled(boolean state) { - mEnabled = state; - updateAppIconColor(mAppIcon); - } - - private Drawable updateAppIconColor(Drawable icon) { - // disabling and enabling apps in system application manager is - // available since API 4.0 - if (icon != null - && Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { - if (mEnabled) { - icon.setColorFilter(null); - } else { - icon.setColorFilter(mGrayscaleFilter); - } - } - return icon; - } - - /** - * @return the mSystemApp - */ - public boolean isSystemApp() { - return mSystemApp; - } - - public void addSubcategory(int id) { - mSubCategoriesMask |= id; - } - - /** - * @return the mAppPackageName - */ - @Override - public String toString() { - return mPackageName; - } - - @Override - public boolean equals(Object o) { - if (o instanceof AppDetails) { - AppDetails appDetails = (AppDetails) o; - if (appDetails.getAppPackageName().equals(mPackageName)) { - return true; - } - } - return false; - } - - /** - * Perform inteligent comparison of application entry objects. - */ - public static final Comparator SMART_COMPARATOR = new Comparator() { - @Override - public int compare(AppDetails object1, AppDetails object2) { - if (object1.mSystemApp) { - if (object2.mSystemApp) - return object1.mAppName.compareTo(object2.mAppName); - return 1; - } else { - if (object2.mSystemApp) - return -1; - return object1.mAppName.compareTo(object2.mAppName); - } - } - }; -} diff --git a/src/com/samsung/srpol/loader/AppListChangeListener.java b/src/com/samsung/srpol/loader/AppListChangeListener.java deleted file mode 100644 index d176903..0000000 --- a/src/com/samsung/srpol/loader/AppListChangeListener.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.loader; - -public interface AppListChangeListener { - - public void onAppListChanged(); -} diff --git a/src/com/samsung/srpol/loader/AppListLoader.java b/src/com/samsung/srpol/loader/AppListLoader.java deleted file mode 100644 index 3dfdb0f..0000000 --- a/src/com/samsung/srpol/loader/AppListLoader.java +++ /dev/null @@ -1,627 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.loader; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; - -import org.xmlpull.v1.XmlPullParserException; - -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.content.pm.ApplicationInfo; -import android.content.pm.PackageInfo; -import android.content.pm.PackageManager; -import android.content.pm.PackageManager.NameNotFoundException; -import android.content.pm.Signature; -import android.content.res.XmlResourceParser; -import android.support.v4.content.AsyncTaskLoader; - -import com.samsung.srpol.R; -import com.samsung.srpol.data.Category; -import com.samsung.srpol.data.Subcategory; - -/** - * A custom Loader that loads all of the installed applications. - */ -public class AppListLoader extends AsyncTaskLoader> { - private static final String SYSTEM_UI = "com.android.systemui"; - private static final String PHONE = "com.android.phone"; - - public static final String PREF_INCLUDE_SYSTEM_APPS = "include_system_apps"; - - private final PackageManager mPm; - - private static List mAppDetailsList = null; - private static List mCategories; - private static ArrayList mSubcategories; - private static HashMap mAllPermissionsHash; - - private PackageIntentReceiver mPackageObserver; - private boolean mWasDataReloaded = true; - private static OnAppRemoveListener mChangeListener = null; - - public AppListLoader(Context context) { - super(context); - - if (mCategories == null || mSubcategories == null - || mAllPermissionsHash == null) - initCategories(context); - - mPm = getContext().getPackageManager(); - } - - private void initCategories(Context context) { - mCategories = new ArrayList(); - mSubcategories = new ArrayList(); - Subcategory.resetGenerator(); - - // Reading "data send" subcategory as it is common - try { - XmlResourceParser parser = context.getResources().getXml( - R.xml.data_send_subcategory); - int eventType = 0; - while (eventType != XmlResourceParser.END_DOCUMENT - && eventType != XmlResourceParser.START_TAG) - eventType = parser.next(); - if (eventType != XmlResourceParser.END_DOCUMENT) { - Subcategory subcategory = readSubCategory(parser); - mSubcategories.add(subcategory); - } - } catch (XmlPullParserException ex) { - ex.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } - - // Reading all categories and subcategories from xml - try { - XmlResourceParser parser = context.getResources().getXml( - R.xml.categories); - int eventType = 0; - while (eventType != XmlResourceParser.END_DOCUMENT - && eventType != XmlResourceParser.START_TAG) - eventType = parser.next(); - if (eventType != XmlResourceParser.END_DOCUMENT) { - parser.require(XmlResourceParser.START_TAG, null, "container"); - while (parser.next() != XmlResourceParser.END_TAG) { - if (parser.getEventType() != XmlResourceParser.START_TAG) - continue; - if (!parser.getName().equals("category")) - continue; - Category cat = readCategory(parser); - mCategories.add(cat); - mSubcategories.addAll(cat.getSubCategories()); - } - } - } catch (XmlPullParserException ex) { - ex.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } - - mAllPermissionsHash = new HashMap(); - for (Subcategory subcat : mSubcategories) { - for (String perm : subcat.getPermissions()) { - Integer value = mAllPermissionsHash.get(perm); - if (value == null) { - mAllPermissionsHash.put(perm, Integer.valueOf(subcat.getId())); - } else { - value |= subcat.getId(); - mAllPermissionsHash.put(perm, value); - } - } - } - } - - private Category readCategory(XmlResourceParser parser) - throws XmlPullParserException, IOException { - parser.require(XmlResourceParser.START_TAG, null, "category"); - String title = null, header = null, description = null, shortDescription = null, link = null; - int icon = 0; - boolean dataSend = false; - ArrayList subCategories = new ArrayList(); - - while (parser.next() != XmlResourceParser.END_TAG) { - if (parser.getEventType() != XmlResourceParser.START_TAG) - continue; - String name = parser.getName(); - if (name.equals("title")) { - title = readTextElement(parser, name); - } else if (name.equals("header")) { - header = readTextElement(parser, name); - } else if (name.equals("short_description")) { - shortDescription = readTextElement(parser, name); - } else if (name.equals("description")) { - description = readTextElement(parser, name); - } else if (name.equals("icon")) { - icon = getContext().getResources().getIdentifier( - readTextElement(parser, name), "drawable", - getContext().getPackageName()); - } else if (name.equals("link")) { - link = readTextElement(parser, name); - } else if (name.equals("dataSend")) { - dataSend = Boolean.parseBoolean(readTextElement(parser, name)); - } else if (name.equals("subcategories")) { - while (parser.next() != XmlResourceParser.END_TAG) { - subCategories.add(readSubCategory(parser)); - } - } else - skip(parser); - } - return new Category(getContext(), title, header, shortDescription, - description, icon, link, dataSend, subCategories); - } - - private Subcategory readSubCategory(XmlResourceParser parser) - throws XmlPullParserException, IOException { - parser.require(XmlResourceParser.START_TAG, null, "subcategory"); - String header = null, description = null, icon = null; - ArrayList permissions = new ArrayList(); - - while (parser.next() != XmlResourceParser.END_TAG) { - if (parser.getEventType() != XmlResourceParser.START_TAG) - continue; - String name = parser.getName(); - if (name.equals("header")) { - header = readTextElement(parser, name); - } else if (name.equals("description")) { - description = readTextElement(parser, name); - } else if (name.equals("icon")) { - icon = readTextElement(parser, name); - } else if (name.equals("permissions")) { - while (parser.next() != XmlResourceParser.END_TAG) { - permissions.add(readTextElement(parser, "item")); - } - } else - skip(parser); - } - - return new Subcategory(getContext(), header, description, icon, - permissions); - } - - private String readTextElement(XmlResourceParser parser, String element) - throws XmlPullParserException, IOException { - parser.require(XmlResourceParser.START_TAG, null, element); - String title = readText(parser); - parser.require(XmlResourceParser.END_TAG, null, element); - return title; - } - - private String readText(XmlResourceParser parser) - throws XmlPullParserException, IOException { - String result = ""; - if (parser.next() == XmlResourceParser.TEXT) { - result = parser.getText(); - parser.nextTag(); - } - return result; - } - - private void skip(XmlResourceParser parser) throws XmlPullParserException, - IOException { - if (parser.getEventType() != XmlResourceParser.START_TAG) { - throw new IllegalStateException(); - } - int depth = 1; - while (depth != 0) { - switch (parser.next()) { - case XmlResourceParser.END_TAG: - depth--; - break; - case XmlResourceParser.START_TAG: - depth++; - break; - } - } - } - - /** - * Get Signature keys of given package - * - * @param packageName - * package name to retrieve signature keys - * @return Signature[] containing given package name signature keys - */ - private Signature[] getSignature(String packageName) { - - try { - PackageInfo packageInfo = getPm().getPackageInfo(packageName, - PackageManager.GET_SIGNATURES); - Signature[] sigs = packageInfo.signatures; - return sigs; - } catch (NameNotFoundException e) { - return null; - } - - } - - /** - * Get Signature keys for given PackageInfo - * - * @param packageInfo - * PackageInfo to retrieve signature keys - * @return Signature[] containing given PackageInfo signature keys - */ - @SuppressWarnings("unused") - private Signature[] getSignature(PackageInfo packageInfo) { - - Signature[] sigs = packageInfo.signatures; - return sigs; - - } - - /** - * Get Platform signature key. we check signature of SystemUI process or - * Phone process - * - * @return Signature platform sign key or null if not found - */ - @SuppressWarnings("unused") - private Signature getPlatformSignature() { - Signature sig = getSignature(SYSTEM_UI)[0]; - if (sig == null) { - sig = getSignature(PHONE)[0]; - } - return sig; - } - - /** - * Filter given ApplicationInfo list only to apps that are not platform - * signed - * - * @param appList - * List with a list of apps to filter - * @return List filtred app list - */ - private List filterToNotPlatformKeyAppList(List packageList) { - if (packageList != null) { - - List noPlatformKeyAppList = new ArrayList(); - for (PackageInfo packageInfo : packageList) { - try { - packageInfo = mPm.getPackageInfo(packageInfo.packageName, - PackageManager.GET_ACTIVITIES - | PackageManager.GET_PERMISSIONS - | PackageManager.GET_SIGNATURES); - } catch (NameNotFoundException e) { - continue; - } - // Check signature match with SystemUI - if (((packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0 || (packageInfo.activities != null && packageInfo.activities.length > 0)) - && getPm().checkSignatures(SYSTEM_UI, - packageInfo.packageName) != PackageManager.SIGNATURE_MATCH) { - noPlatformKeyAppList.add(packageInfo); - } - } - return noPlatformKeyAppList; - } else { - return null; - } - } - - private PackageInfo getInstalledAppDetails(String packageName) { - PackageInfo info = null; - try { - info = getPm().getPackageInfo( - packageName, - PackageManager.GET_META_DATA - | PackageManager.GET_PERMISSIONS - | PackageManager.GET_SIGNATURES); - } catch (NameNotFoundException e) { - e.printStackTrace(); - } - return info; - } - - @Override - public List loadInBackground() { - List appList = mPm.getInstalledPackages(0); - - appList = filterToNotPlatformKeyAppList(appList); - - HashMap appDetailsHash = new HashMap( - appList.size()); - if (mSubcategories.size() == 0) { - for (PackageInfo pInfo : appList) { - appDetailsHash.put(pInfo.packageName, new AppDetails(this, - pInfo)); - } - } else { - for (PackageInfo packageInfo : appList) { - String[] requestedPermissions = packageInfo.requestedPermissions; - if (requestedPermissions != null) { - AppDetails appDetails = appDetailsHash.get(packageInfo.packageName); - for (String permissionName : requestedPermissions) { - Integer subcategories = mAllPermissionsHash.get(permissionName); - if (subcategories != null - && (appDetails == null || !appDetails.isInAllSubcategories(subcategories)) - && getPm().checkPermission(permissionName, - packageInfo.packageName) == PackageManager.PERMISSION_GRANTED) { - if (appDetails == null) { - appDetails = new AppDetails(this, packageInfo); - appDetailsHash.put(packageInfo.packageName, - appDetails); - } - appDetails.addSubcategory(subcategories); - } - } - } - } - } - // Sort the list. - List list = new ArrayList( - appDetailsHash.values()); - Collections.sort(list, AppDetails.SMART_COMPARATOR); - - for (Category category : mCategories) - category.assignAppsToCategory(list); - - mWasDataReloaded = true; - return list; - } - - /** - * Called when there is new data to deliver to the client. The super class - * will take care of delivering it; the implementation here just adds a - * little more logic. - */ - @Override - public void deliverResult(List apps) { - if (isReset()) { - apps = null; - } - mAppDetailsList = apps; - - if (isStarted()) { - // If the Loader is currently started, we can immediately - // deliver its results. - super.deliverResult(apps); - } - } - - /** - * Handles a request to start the Loader. - */ - @Override - protected void onStartLoading() { - if (mAppDetailsList != null) { - // If we currently have a result available, deliver it - // immediately. - deliverResult(mAppDetailsList); - } - - // Start watching for changes in the app data. - if (mPackageObserver == null) { - mPackageObserver = new PackageIntentReceiver(this); - } - - if (takeContentChanged() || mAppDetailsList == null) { - // If the data has changed since the last time it was loaded - // or is not currently available, start a load. - forceLoad(); - } - } - - /** - * Handles a request to stop the Loader. - */ - @Override - protected void onStopLoading() { - // Attempt to cancel the current load task if possible. - cancelLoad(); - } - - /** - * Handles a request to completely reset the Loader. - */ - @Override - protected void onReset() { - - // Ensure the loader is stopped - onStopLoading(); - - // Stop monitoring for changes. - if (mPackageObserver != null) { - getContext().unregisterReceiver(mPackageObserver); - mPackageObserver = null; - } - } - - /** - * Gets AppDetails from mAppDetailsList for a given PackageName - * - * @param packageName - * PackageName for which to get AppDetails - * @return AppDetails for given PackageName - */ - public static AppDetails getAppDetails(String packageName) { - if (packageName != null && mAppDetailsList != null) { - for (AppDetails appDetails : mAppDetailsList) { - if (packageName.equals(appDetails.getAppPackageName())) { - return appDetails; - } - } - } - return null; - } - - public static void setOnChangeListener(OnAppRemoveListener listener) { - mChangeListener = listener; - } - - /** - * @return the mAppDetailsList - */ - public static List getAppDetailsList() { - return mAppDetailsList; - } - - /** - * @return the mCategories - */ - static public List getCategories() { - return mCategories; - } - - public static List getSubcategoriesOfMask(int subcategoriesMask) { - ArrayList list = new ArrayList(); - for (Subcategory subcategory : mSubcategories) { - if ((subcategoriesMask & subcategory.getId()) > 0) { - list.add(subcategory); - } - } - return list; - } - - public PackageManager getPm() { - return mPm; - } - - public interface OnAppRemoveListener { - public void onPackageRemoved(String packageName); - } - - /** - * Helper class to look for interesting changes to the installed apps so - * that the loader can be updated. - */ - public static class PackageIntentReceiver extends BroadcastReceiver { - private final AppListLoader mLoader; - - public PackageIntentReceiver(AppListLoader loader) { - mLoader = loader; - IntentFilter filter = new IntentFilter(Intent.ACTION_PACKAGE_ADDED); - filter.addAction(Intent.ACTION_PACKAGE_REMOVED); - filter.addAction(Intent.ACTION_PACKAGE_CHANGED); - filter.addDataScheme("package"); - mLoader.getContext().registerReceiver(this, filter); - // Register for events related to sdcard installation. - IntentFilter sdFilter = new IntentFilter(); - sdFilter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE); - sdFilter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE); - mLoader.getContext().registerReceiver(this, sdFilter); - } - - @Override - public void onReceive(Context context, Intent intent) { - if (intent.getAction().equals( - Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE)) { - mLoader.onPackagesAdded(intent - .getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST)); - } else if (intent.getAction().equals( - Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE)) { - mLoader.onPackagesRemoved(intent - .getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST)); - } else if (intent.getAction().equals(Intent.ACTION_PACKAGE_REMOVED)) - mLoader.onPackageRemoved(intent.getData() - .getSchemeSpecificPart(), true); - else if (intent.getAction().equals(Intent.ACTION_PACKAGE_ADDED)) - mLoader.onPackageAdded( - intent.getData().getSchemeSpecificPart(), true); - else if (intent.getAction().equals(Intent.ACTION_PACKAGE_CHANGED)) - mLoader.onPackageChanged(intent.getData() - .getSchemeSpecificPart()); - } - } - - public void onPackageRemoved(String packageName, boolean deliverResult) { - if (mChangeListener != null) - mChangeListener.onPackageRemoved(packageName); - for (AppDetails details : mAppDetailsList) { - if (details.getAppPackageName().equals(packageName)) { - mAppDetailsList.remove(details); - for (Category category : mCategories) - category.removeAppFromList(details); - if (deliverResult) - deliverResult(new ArrayList(mAppDetailsList)); - break; - } - } - } - - public void onPackagesRemoved(String[] packageNames) { - for (String packageName : packageNames) { - onPackageRemoved(packageName, false); - } - deliverResult(new ArrayList(mAppDetailsList)); - } - - public void onPackageChanged(String packageName) { - for (AppDetails details : mAppDetailsList) { - if (details.getAppPackageName().equals(packageName)) { - PackageInfo packageInfo = getInstalledAppDetails(packageName); - if (packageInfo == null) - return; - details.setEnabled(packageInfo.applicationInfo.enabled); - deliverResult(new ArrayList(mAppDetailsList)); - break; - } - } - } - - public void onPackageAdded(String packageName, boolean deliverResult) { - PackageInfo packageInfo = getInstalledAppDetails(packageName); - if (packageInfo == null) - return; - AppDetails newPackage = new AppDetails(this, packageInfo); - - String[] requestedPermissions = packageInfo.requestedPermissions; - if (requestedPermissions != null && mSubcategories != null) { - for (String permissionName : requestedPermissions) { - Integer subcategories = mAllPermissionsHash.get(permissionName); - if (subcategories != null - && getPm().checkPermission(permissionName, - packageInfo.packageName) == PackageManager.PERMISSION_GRANTED) { - newPackage.addSubcategory(subcategories); - } - } - } - mAppDetailsList.add(newPackage); - - for (Category category : mCategories) - category.addApplicationToCategory(newPackage); - if (deliverResult) - deliverResult(new ArrayList(mAppDetailsList)); - } - - public void onPackagesAdded(String[] packageNames) { - for (String packageStr : packageNames) { - onPackageAdded(packageStr, false); - } - - deliverResult(new ArrayList(mAppDetailsList)); - } - - public boolean wasDataReloaded() { - return mWasDataReloaded; - } - - public void resetWasDataReloaded() { - mWasDataReloaded = false; - } -} \ No newline at end of file diff --git a/src/com/samsung/srpol/parallax/ParallaxListView.java b/src/com/samsung/srpol/parallax/ParallaxListView.java deleted file mode 100644 index 5fb5ebd..0000000 --- a/src/com/samsung/srpol/parallax/ParallaxListView.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - The MIT License (MIT) - - Copyright (c) 2014 Nir Hartmann - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - */ -package com.samsung.srpol.parallax; - -import android.content.Context; -import android.util.AttributeSet; -import android.view.View; -import android.widget.ListView; - -public class ParallaxListView extends ListView { - - private ParallaxListViewHelper helper; - - public ParallaxListView(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - init(context, attrs); - } - - public ParallaxListView(Context context, AttributeSet attrs) { - super(context, attrs); - init(context, attrs); - } - - protected void init(Context context, AttributeSet attrs) { - helper = new ParallaxListViewHelper(context, attrs, this); - super.setOnScrollListener(helper); - } - - @Override - public void setOnScrollListener(OnScrollListener l) { - helper.setOnScrollListener(l); - } - - public void addParallaxedHeaderView(View v) { - super.addHeaderView(v); - helper.addParallaxedHeaderView(v); - } - - public void addParallaxedHeaderView(View v, Object data, - boolean isSelectable) { - super.addHeaderView(v, data, isSelectable); - helper.addParallaxedHeaderView(v, data, isSelectable); - } -} diff --git a/src/com/samsung/srpol/parallax/ParallaxListViewHelper.java b/src/com/samsung/srpol/parallax/ParallaxListViewHelper.java deleted file mode 100644 index 9e1a055..0000000 --- a/src/com/samsung/srpol/parallax/ParallaxListViewHelper.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - The MIT License (MIT) - - Copyright (c) 2014 Nir Hartmann - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - */ -package com.samsung.srpol.parallax; - -import com.samsung.srpol.R; - -import android.content.Context; -import android.content.res.TypedArray; -import android.util.AttributeSet; -import android.view.View; -import android.view.animation.TranslateAnimation; -import android.widget.AbsListView; -import android.widget.AbsListView.OnScrollListener; -import android.widget.ListView; - -public class ParallaxListViewHelper implements OnScrollListener { - - private static final float DEFAULT_ALPHA_FACTOR = -1F; - private static final float DEFAULT_PARALLAX_FACTOR = 1.9F; - private static final boolean DEFAULT_IS_CIRCULAR = false; - private float parallaxFactor = DEFAULT_PARALLAX_FACTOR; - private float alphaFactor = DEFAULT_ALPHA_FACTOR; - private ParallaxedView parallaxedView; - private boolean isCircular; - private OnScrollListener listener = null; - private ListView listView; - - protected ParallaxListViewHelper(Context context, AttributeSet attrs, - ListView listView) { - init(context, attrs, listView); - } - - protected void init(Context context, AttributeSet attrs, ListView listView) { - this.listView = listView; - TypedArray typeArray = context.obtainStyledAttributes(attrs, - R.styleable.ParallaxScroll); - this.parallaxFactor = typeArray.getFloat( - R.styleable.ParallaxScroll_parallax_factor, - DEFAULT_PARALLAX_FACTOR); - this.alphaFactor = typeArray.getFloat( - R.styleable.ParallaxScroll_alpha_factor, DEFAULT_ALPHA_FACTOR); - this.isCircular = typeArray.getBoolean( - R.styleable.ParallaxScroll_circular_parallax, - DEFAULT_IS_CIRCULAR); - typeArray.recycle(); - } - - protected void setOnScrollListener(OnScrollListener l) { - this.listener = l; - } - - protected void addParallaxedHeaderView(View v) { - addParallaxedView(v); - } - - protected void addParallaxedHeaderView(View v, Object data, - boolean isSelectable) { - addParallaxedView(v); - } - - protected void addParallaxedView(View v) { - this.parallaxedView = new ListViewParallaxedItem(v); - } - - protected void parallaxScroll() { - if (isCircular) - circularParallax(); - else - headerParallax(); - } - - private void circularParallax() { - if (listView.getChildCount() > 0) { - int top = -listView.getChildAt(0).getTop(); - if (top >= 0) { - fillParallaxedViews(); - setFilters(top); - } - } - } - - private void headerParallax() { - if (parallaxedView != null) { - if (listView.getChildCount() > 0) { - int top = -listView.getChildAt(0).getTop(); - if (top >= 0) { - setFilters(top); - } - } - } - } - - private void setFilters(int top) { - parallaxedView.setOffset((float) top / parallaxFactor); - if (alphaFactor != DEFAULT_ALPHA_FACTOR) { - float alpha = (top <= 0) ? 1 : (100 / ((float) top * alphaFactor)); - parallaxedView.setAlpha(alpha); - } - parallaxedView.animateNow(); - } - - private void fillParallaxedViews() { - if (parallaxedView == null - || parallaxedView.is(listView.getChildAt(0)) == false) { - if (parallaxedView != null) { - resetFilters(); - parallaxedView.setView(listView.getChildAt(0)); - } else { - parallaxedView = new ListViewParallaxedItem( - listView.getChildAt(0)); - } - } - } - - private void resetFilters() { - parallaxedView.setOffset(0); - if (alphaFactor != DEFAULT_ALPHA_FACTOR) - parallaxedView.setAlpha(1F); - parallaxedView.animateNow(); - } - - @Override - public void onScroll(AbsListView view, int firstVisibleItem, - int visibleItemCount, int totalItemCount) { - parallaxScroll(); - if (this.listener != null) - this.listener.onScroll(view, firstVisibleItem, visibleItemCount, - totalItemCount); - } - - @Override - public void onScrollStateChanged(AbsListView view, int scrollState) { - if (this.listener != null) - this.listener.onScrollStateChanged(view, scrollState); - } - - protected class ListViewParallaxedItem extends ParallaxedView { - - public ListViewParallaxedItem(View view) { - super(view); - } - - @Override - protected void translatePreICS(View view, float offset) { - addAnimation(new TranslateAnimation(0, 0, offset, offset)); - } - } -} diff --git a/src/com/samsung/srpol/parallax/ParallaxedView.java b/src/com/samsung/srpol/parallax/ParallaxedView.java deleted file mode 100644 index e41e3a1..0000000 --- a/src/com/samsung/srpol/parallax/ParallaxedView.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - The MIT License (MIT) - - Copyright (c) 2014 Nir Hartmann - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - */ -package com.samsung.srpol.parallax; - -import java.lang.ref.WeakReference; -import java.util.ArrayList; -import java.util.List; - -import android.annotation.SuppressLint; -import android.os.Build; -import android.view.View; -import android.view.animation.AlphaAnimation; -import android.view.animation.Animation; -import android.view.animation.AnimationSet; - -public abstract class ParallaxedView { - static public boolean isAPI11 = Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB; - protected WeakReference view; - protected int lastOffset; - protected List animations; - - abstract protected void translatePreICS(View view, float offset); - - public ParallaxedView(View view) { - this.lastOffset = 0; - this.animations = new ArrayList(); - this.view = new WeakReference(view); - } - - public boolean is(View v) { - return (v != null && view != null && view.get() != null && view.get() - .equals(v)); - } - - @SuppressLint("NewApi") - public void setOffset(float offset) { - View view = this.view.get(); - if (view != null) - if (isAPI11) { - view.setTranslationY(offset); - } else { - translatePreICS(view, offset); - } - } - - public void setAlpha(float alpha) { - View view = this.view.get(); - if (view != null) - if (isAPI11) { - view.setAlpha(alpha); - } else { - alphaPreICS(view, alpha); - } - } - - protected synchronized void addAnimation(Animation animation) { - animations.add(animation); - } - - protected void alphaPreICS(View view, float alpha) { - addAnimation(new AlphaAnimation(alpha, alpha)); - } - - protected synchronized void animateNow() { - View view = this.view.get(); - if (view != null) { - AnimationSet set = new AnimationSet(true); - for (Animation animation : animations) - if (animation != null) - set.addAnimation(animation); - set.setDuration(0); - set.setFillAfter(true); - view.setAnimation(set); - set.start(); - animations.clear(); - } - } - - public void setView(View view) { - this.view = new WeakReference(view); - } - - public View getView() { - return this.view.get(); - } -} diff --git a/src/com/samsung/srpol/ui/AppInfoActivity.java b/src/com/samsung/srpol/ui/AppInfoActivity.java deleted file mode 100644 index c29ed30..0000000 --- a/src/com/samsung/srpol/ui/AppInfoActivity.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.ui; - -import java.util.List; - -import com.nhaarman.listviewanimations.appearance.AnimationAdapter; -import com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter; -import com.samsung.srpol.R; -import com.samsung.srpol.data.Subcategory; -import com.samsung.srpol.loader.AppDetails; -import com.samsung.srpol.loader.AppListLoader; -import com.samsung.srpol.loader.AppListLoader.OnAppRemoveListener; -import com.samsung.srpol.utils.Utils; - -import android.support.v7.app.ActionBarActivity; -import android.content.Context; -import android.content.Intent; -import android.os.Build; -import android.os.Bundle; -import android.view.Menu; -import android.view.View; -import android.view.View.OnClickListener; -import android.view.ViewGroup; -import android.widget.ArrayAdapter; -import android.widget.ImageButton; -import android.widget.ImageView; -import android.widget.ListView; -import android.widget.TextView; - -public class AppInfoActivity extends ActionBarActivity implements OnAppRemoveListener { - public static final String APP_PACKAGE_NAME = "APP_PACKAGE_NAME"; - - private AppDetails mAppDetails; - private String mPackageName = null; - private ThreatsArrayAdapter mAdapter; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_app_info); - Intent intent = getIntent(); - if (intent != null) { - mPackageName = intent - .getStringExtra(AppInfoActivity.APP_PACKAGE_NAME); - } - mAppDetails = AppListLoader.getAppDetails(mPackageName); - if(mAppDetails == null){ - return; - } - ImageView imageView = (ImageView) findViewById(R.id.app_icon); - imageView.setImageDrawable(mAppDetails.getAppIcon()); - TextView textView = (TextView) findViewById(R.id.app_name); - textView.setText(mAppDetails.getAppName()); - - grayoutText(textView); - - ListView listView = (ListView) findViewById(R.id.threats_list); - mAdapter = new ThreatsArrayAdapter(getApplicationContext(), - AppListLoader.getSubcategoriesOfMask(mAppDetails - .getSubcategoriesMask())); - AnimationAdapter adapter = new AlphaInAnimationAdapter(mAdapter); - adapter.setAbsListView(listView); - listView.setAdapter(adapter); - - ImageButton uninstallButton = (ImageButton) findViewById(R.id.uninstall_button); - ImageButton moreInfoButton = (ImageButton) findViewById(R.id.more_info_button); - TextView systemAppTextView = (TextView) findViewById(R.id.system_app_text); - View activityLayout = findViewById(R.id.container); - if (mAppDetails.isSystemApp()) { - moreInfoButton.setVisibility(View.VISIBLE); - systemAppTextView.setVisibility(View.VISIBLE); - uninstallButton - .setImageResource(R.drawable.app_info_settings_button); - uninstallButton.setContentDescription(getResources().getText(R.string.app_detail_settings_button)); - activityLayout.setBackgroundResource(R.color.grayout_list_item_bg); - } else { - moreInfoButton.setVisibility(View.GONE); - systemAppTextView.setVisibility(View.GONE); - uninstallButton - .setImageResource(R.drawable.app_info_uninstall_button); - uninstallButton.setContentDescription(getResources().getText(R.string.app_detail_uninstall_button)); - activityLayout.setBackgroundResource(R.color.app_detail_bg); - } - - uninstallButton.setOnClickListener(new OnClickListener() { - - @Override - public void onClick(View v) { - Utils.showInstalledAppDetails(getApplicationContext(), mPackageName); - } - }); - moreInfoButton.setOnClickListener(new OnClickListener() { - - @Override - public void onClick(View v) { - Utils.startBrowser(getApplicationContext(), getResources().getString(R.string.app_info_more_info)); - } - }); - AppListLoader.setOnChangeListener(this); - } - - @Override - protected void onResume() { - ImageView systemAppIcon = (ImageView) findViewById(R.id.list_system_app_icon); - if (mAppDetails.isSystemApp()) { - systemAppIcon.setVisibility(View.VISIBLE); - if (mAppDetails.isEnabled()) { - systemAppIcon.setImageDrawable(Utils.getmSystemIcon(this)); - } else { - systemAppIcon.setImageDrawable(Utils - .getmSystemIconDisable(this)); - } - } else { - systemAppIcon.setVisibility(View.INVISIBLE); - } - super.onResume(); - } - - @Override - protected void onDestroy() { - AppListLoader.setOnChangeListener(null); - super.onDestroy(); - } - - class ThreatsArrayAdapter extends ArrayAdapter { - - public ThreatsArrayAdapter(Context context, List resources) { - super(context, R.layout.threats_list_item, resources); - } - - class ViewHolder { - public TextView textView; - public ImageView imageView; - } - - @Override - public boolean isEnabled(int position) { - return false; - } - - @Override - public View getView(int position, View convertView, ViewGroup parent) { - ViewHolder holder; - if (convertView == null) { - convertView = getLayoutInflater().inflate(R.layout.threats_list_item, - parent, false); - holder = new ViewHolder(); - holder.imageView = (ImageView) convertView - .findViewById(R.id.threat_icon); - holder.textView = (TextView) convertView - .findViewById(R.id.threat_text); - convertView.setTag(holder); - } else { - holder = (ViewHolder) convertView.getTag(); - } - Subcategory subgroupContainer = getItem(position); - if (subgroupContainer != null) { - holder.imageView - .setImageDrawable(subgroupContainer.getDarkIcon()); - holder.textView.setText(subgroupContainer.getDescription()); - } - return convertView; - } - } - - private void grayoutText(TextView textView){ - // disabling and enabling apps in system application manager is - // available since API 4.0 - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { - if (mAppDetails.isEnabled()) { - textView.setTextColor(getResources().getColor( - android.R.color.black)); - } else { - textView.setTextColor(getResources().getColor( - R.color.disabled_app_name)); - } - } - } - @Override - public boolean onCreateOptionsMenu(Menu menu) { - return true; - } - - @Override - public void onPackageRemoved(String packageName) { - if (mPackageName.equals(packageName)) { - finish(); - } - } - -} diff --git a/src/com/samsung/srpol/ui/LicenseActivity.java b/src/com/samsung/srpol/ui/LicenseActivity.java deleted file mode 100644 index a69f7b2..0000000 --- a/src/com/samsung/srpol/ui/LicenseActivity.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.ui; - -import com.samsung.srpol.R; -import com.samsung.srpol.utils.Utils; - -import android.graphics.Paint; -import android.os.Bundle; -import android.support.v7.app.ActionBarActivity; -import android.view.View; -import android.view.View.OnClickListener; -import android.widget.ImageButton; -import android.widget.TextView; - -public class LicenseActivity extends ActionBarActivity { - - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_license); - - TextView descriptionTextLink = (TextView) findViewById(R.id.license_link); - descriptionTextLink.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG); - descriptionTextLink.setOnClickListener(new OnClickListener() { - - @Override - public void onClick(View v) { - Utils.startBrowser(LicenseActivity.this, getString(R.string.license_link)); - } - }); - - ImageButton backBtn = (ImageButton) findViewById(R.id.back_button); - backBtn.setOnClickListener(new OnClickListener() { - - @Override - public void onClick(View arg0) { - finish(); - } - }); - } - -} diff --git a/src/com/samsung/srpol/ui/MainActivity.java b/src/com/samsung/srpol/ui/MainActivity.java deleted file mode 100644 index 1d311c9..0000000 --- a/src/com/samsung/srpol/ui/MainActivity.java +++ /dev/null @@ -1,352 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.ui; - -import java.util.List; - -import com.samsung.srpol.R; -import com.samsung.srpol.loader.AppDetails; -import com.samsung.srpol.loader.AppListLoader; -import com.samsung.srpol.ui.drawer.MenuFragment; -import com.samsung.srpol.ui.drawer.NavigationDrawerItemListener; -import com.samsung.srpol.ui.tabpager.PageAdapter; - -import android.support.v7.app.ActionBarActivity; -import android.support.v7.app.ActionBar; -import android.support.v4.app.ActionBarDrawerToggle; -import android.support.v4.app.LoaderManager; -import android.support.v4.content.Loader; -import android.content.DialogInterface; -import android.content.DialogInterface.OnDismissListener; -import android.content.Intent; -import android.content.SharedPreferences; -import android.os.Bundle; -import android.os.Handler; -import android.preference.PreferenceManager; -import android.util.Log; -import android.view.Gravity; -import android.view.Menu; -import android.view.MenuItem; -import android.view.View; -import android.support.v4.view.GravityCompat; -import android.support.v4.view.PagerTabStrip; -import android.support.v4.view.ViewPager; -import android.support.v4.widget.DrawerLayout; - -public class MainActivity extends ActionBarActivity implements - LoaderManager.LoaderCallbacks> { - public static final String TAG = "MainActivity"; - - private static final String STATE_WELCOME_DIALOG_IS_OPEN = "welcome_dialog_is_open"; - private static final String STATE_WELCOME_DIALOG_OPENED_FROM_MENU = "welcome_dialog_opened_from_menu"; - private static final String STATE_DRAWER_MENU_IS_OPEN = "state_drawer_menu_is_open"; - - private MenuFragment mMenuFragment; - - private WelcomeDialog mWelcomeDialog; - private ViewPager mViewPager; - private PageAdapter mFramePagerAdapter; - private boolean mDrawerOpenState = false; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - if (savedInstanceState != null) { - boolean isWelcomeDialogOpen = savedInstanceState.getBoolean( - STATE_WELCOME_DIALOG_IS_OPEN, false); - if (isWelcomeDialogOpen) { - boolean isOpenedFromMenu = savedInstanceState.getBoolean( - STATE_WELCOME_DIALOG_OPENED_FROM_MENU, false); - showWelcomeDialog(isOpenedFromMenu); - } - mDrawerOpenState = savedInstanceState.getBoolean(STATE_DRAWER_MENU_IS_OPEN, false); - } else { - showWelcomeDialog(false); - } - - getSupportLoaderManager().initLoader(0, null, this); - - // if Loader was created then we have all data to create - // NavigationDrawer otherwise wait for loader to be created and then - // create NavigationDrawer - if (getSupportLoaderManager().getLoader(0) != null) { - initNavigationDrawer(); - } - - mFramePagerAdapter = new PageAdapter(getSupportFragmentManager(), getApplicationContext()); - mViewPager = (ViewPager) findViewById(R.id.myviewpager); - mViewPager.setAdapter(mFramePagerAdapter); - - PagerTabStrip pagerTabStrip = (PagerTabStrip) findViewById(R.id.titlestrip); - pagerTabStrip.setDrawFullUnderline(true); - pagerTabStrip.setTabIndicatorColor(getResources().getColor(R.color.tab_underline_color)); - } - - @Override - public void onSaveInstanceState(Bundle outState) { - super.onSaveInstanceState(outState); - if (mWelcomeDialog != null) { - outState.putBoolean(STATE_WELCOME_DIALOG_IS_OPEN, - mWelcomeDialog.isShowing()); - outState.putBoolean(STATE_WELCOME_DIALOG_OPENED_FROM_MENU, - mWelcomeDialog.ismOpenedFromMenu()); - } - if (isDrawerOpen() || (mDrawerOpenState && mDrawerLayout == null)) { - outState.putBoolean(STATE_DRAWER_MENU_IS_OPEN, true); - } - } - - protected void onDestroy() { - if (mWelcomeDialog != null) { - if (mWelcomeDialog.isShowing()) { - mWelcomeDialog.dismiss(); - } - } - super.onDestroy(); - } - - public void restoreActionBar() { - ActionBar actionBar = getSupportActionBar(); - actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD); - actionBar.setDisplayShowTitleEnabled(true); - } - - @Override - protected boolean onPrepareOptionsPanel(View view, Menu menu) { - SharedPreferences sp = PreferenceManager - .getDefaultSharedPreferences(this); - boolean showSystemApp = sp.getBoolean( - AppListLoader.PREF_INCLUDE_SYSTEM_APPS, - true); - MenuItem menuItemSystem = menu.findItem(R.id.action_toggle_system_visibility); - if (menuItemSystem != null) { - if (showSystemApp) { - menuItemSystem.setTitle(R.string.hide_system_visibility); - } else { - menuItemSystem.setTitle(R.string.show_system_visibility); - } - } - return super.onPrepareOptionsPanel(view, menu); - } - - @Override - public boolean onCreateOptionsMenu(Menu menu) { - getMenuInflater().inflate(R.menu.main, menu); - restoreActionBar(); - return true; - } - - @Override - public void onBackPressed() { - if (isDrawerOpen()) { - closeDrawer(); - } else { - super.onBackPressed(); - } - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - if (mActionBarDrawerToggle != null - && mActionBarDrawerToggle.onOptionsItemSelected(item)) - return true; - int id = item.getItemId(); - switch (id) { - case R.id.action_about: - showWelcomeDialog(true); - return true; - case R.id.action_licence: - showLicense(); - return true; - case R.id.action_toggle_system_visibility: - toggleSharedPrefences(AppListLoader.PREF_INCLUDE_SYSTEM_APPS); - refreshAfterChanges(); - return true; - } - return super.onOptionsItemSelected(item); - } - - public void toggleSharedPrefences(String preferenceName) { - SharedPreferences sp = PreferenceManager - .getDefaultSharedPreferences(this); - boolean actualValue = sp.getBoolean(preferenceName, true); - sp.edit().putBoolean(preferenceName, !actualValue).commit(); - } - - public void refreshAfterChanges() { - supportInvalidateOptionsMenu(); - if (mFramePagerAdapter != null) { - mFramePagerAdapter.refreshAdapterNotify(); - mFramePagerAdapter.notifyDataSetChanged(); - } - if (mMenuFragment != null) { - mMenuFragment.notifyDataSetChanged(); - } - } - - @Override - public Loader> onCreateLoader(int id, Bundle args) { - AppListLoader loader = new AppListLoader(this.getApplicationContext()); - initNavigationDrawer(); - - return loader; - } - - @Override - public void onLoadFinished(Loader> loader, - List data) { - Log.d(TAG, "onLoadFinished"); - - AppListLoader appLoader = (AppListLoader) loader; - if (appLoader.wasDataReloaded()) { - appLoader.resetWasDataReloaded(); - mViewPager.setOffscreenPageLimit(AppListLoader.getCategories().size()); - mFramePagerAdapter.refreshPages(); - } else { - mFramePagerAdapter.refreshAdapterNotify(); - } - if (mWelcomeDialog != null && mWelcomeDialog.isShowing()) { - mWelcomeDialog.loadingDone(); - } - if (mMenuFragment != null) { - mMenuFragment.notifyDataSetChanged(); - } - } - - public void onLoaderReset(Loader> arg0) { - mFramePagerAdapter.refreshAdapterNotify(); - } - - private void showWelcomeDialog(boolean fromMenu) { - Log.d(TAG, "showWelcomeActivity flag: " + fromMenu); - if (mWelcomeDialog == null) { - mWelcomeDialog = new WelcomeDialog(this, fromMenu); - } - if (!mWelcomeDialog.isShowing()) { - mWelcomeDialog.show(fromMenu); - } - if (!fromMenu) { - mWelcomeDialog.setOnDismissListener(new OnDismissListener() { - - @Override - public void onDismiss(DialogInterface dialog) { - openDrawerAnimate(); - } - }); - } - } - - private void showLicense() { - Intent intent = new Intent(this, LicenseActivity.class); - startActivity(intent); - } - - private DrawerLayout mDrawerLayout; - private View mFragmentContainerView; - private ActionBarDrawerToggle mActionBarDrawerToggle; - - private void initNavigationDrawer() { - mMenuFragment = (MenuFragment) getSupportFragmentManager() - .findFragmentById(R.id.menu_container); - mMenuFragment.setDrawerItemListener(mDrawerItemListener); - mFragmentContainerView = findViewById(R.id.menu_container); - mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); - setUp(); - mMenuFragment.refresh(); - } - - private NavigationDrawerItemListener mDrawerItemListener = new NavigationDrawerItemListener() { - - public void onNavigationDrawerItemSelected(int position) { - if (mViewPager != null) { - mViewPager.setCurrentItem(position, true); - closeDrawer(); - } - } - }; - - public void closeDrawer() { - if(mDrawerLayout != null){ - mDrawerLayout.closeDrawer(Gravity.LEFT); - mDrawerOpenState=false; - } - } - - public boolean isDrawerOpen() { - return mDrawerLayout != null - && mDrawerLayout.isDrawerOpen(mFragmentContainerView); - } - - public void setUp() { - if (mDrawerLayout == null) - return; - mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, - GravityCompat.START); - ActionBar actionBar = getSupportActionBar(); - actionBar.setDisplayHomeAsUpEnabled(true); - actionBar.setHomeButtonEnabled(true); - - mActionBarDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, - R.drawable.ic_drawer, R.string.navigation_drawer_open, - R.string.navigation_drawer_close) { - @Override - public void onDrawerClosed(View drawerView) { - super.onDrawerClosed(drawerView); - supportInvalidateOptionsMenu(); - } - - @Override - public void onDrawerOpened(View drawerView) { - super.onDrawerOpened(drawerView); - supportInvalidateOptionsMenu(); - } - }; - mDrawerLayout.post(new Runnable() { - @Override - public void run() { - mActionBarDrawerToggle.syncState(); - } - }); - if (mDrawerOpenState && !isDrawerOpen()) { - mDrawerLayout.openDrawer(Gravity.LEFT); - } - mDrawerLayout.setDrawerListener(mActionBarDrawerToggle); - } - - public void openDrawerAnimate() { - new Handler().post(new Runnable() { - - @Override - public void run() { - if (mDrawerLayout != null) { - mDrawerLayout.openDrawer(Gravity.LEFT); - mDrawerOpenState = true; - } - } - }); - - if (mWelcomeDialog != null) { - mWelcomeDialog.setOnDismissListener(null); - } - } -} diff --git a/src/com/samsung/srpol/ui/PopupActivity.java b/src/com/samsung/srpol/ui/PopupActivity.java deleted file mode 100644 index c7e9849..0000000 --- a/src/com/samsung/srpol/ui/PopupActivity.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.ui; - -import java.util.List; - -import com.nhaarman.listviewanimations.appearance.AnimationAdapter; -import com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter; -import com.samsung.srpol.R; -import com.samsung.srpol.data.Category; -import com.samsung.srpol.data.Subcategory; -import com.samsung.srpol.loader.AppListLoader; - -import android.content.Context; -import android.content.Intent; -import android.net.Uri; -import android.os.Bundle; -import android.support.v7.app.ActionBarActivity; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.view.View.OnClickListener; -import android.widget.ArrayAdapter; -import android.widget.ImageButton; -import android.widget.ImageView; -import android.widget.ListView; -import android.widget.TextView; - -public class PopupActivity extends ActionBarActivity { - - public static final String POPUP_CATEGORY = "POPUP_CATEGORY"; - - private Category mCategory; - private ThreatsAdapter mAdapter; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_popup); - int categotyId = 0; - Intent intent = getIntent(); - if (intent != null) { - categotyId = intent.getIntExtra(POPUP_CATEGORY, -1); - } - - TextView header = (TextView) findViewById(R.id.header_text); - List containerList = AppListLoader.getCategories(); - if (containerList != null && categotyId >= 0) { - mCategory = containerList.get(categotyId); - header.setText(getString(R.string.apps_that) - + mCategory.getHeader()); - } - - ListView listview = (ListView) findViewById(R.id.threats_list); - mAdapter = new ThreatsAdapter(this); - for (Subcategory subCat : mCategory.getSubCategories()) - mAdapter.add(subCat); - AnimationAdapter adapter = new AlphaInAnimationAdapter(mAdapter); - adapter.setAbsListView(listview); - listview.setAdapter(adapter); - - ImageButton back = (ImageButton) findViewById(R.id.back_button); - back.setOnClickListener(new OnClickListener() { - - @Override - public void onClick(View arg0) { - finish(); - } - }); - - ImageButton more = (ImageButton) findViewById(R.id.moreinfo_button); - more.setOnClickListener(new OnClickListener() { - - @Override - public void onClick(View v) { - Intent intent = new Intent(Intent.ACTION_VIEW, Uri - .parse(mCategory.getLink())); - startActivity(intent); - } - }); - } - - private class ThreatsAdapter extends ArrayAdapter { - - private class ViewHolder { - ImageView icon; - TextView description; - } - - public ThreatsAdapter(Context context) { - super(context, R.layout.threats_list_item); - } - - @Override - public boolean isEnabled(int position) { - return false; - } - - @Override - public View getView(int position, View convertView, ViewGroup parent) { - ViewHolder holder; - if (convertView == null) { - LayoutInflater inflater = getLayoutInflater(); - convertView = inflater.inflate(R.layout.threats_list_item, - parent, false); - holder = new ViewHolder(); - holder.icon = (ImageView) convertView - .findViewById(R.id.threat_icon); - holder.description = (TextView) convertView - .findViewById(R.id.threat_text); - convertView.setTag(holder); - } else { - holder = (ViewHolder) convertView.getTag(); - } - - Subcategory item = getItem(position); - - holder.icon.setImageDrawable(item.getIconDrawable()); - holder.description.setText(item.getDescription()); - holder.description.setTextColor(getResources().getColor( - android.R.color.white)); - - return convertView; - } - } - -} diff --git a/src/com/samsung/srpol/ui/WelcomeDialog.java b/src/com/samsung/srpol/ui/WelcomeDialog.java deleted file mode 100644 index 2cd1659..0000000 --- a/src/com/samsung/srpol/ui/WelcomeDialog.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.ui; - -import java.util.Timer; -import java.util.TimerTask; -import com.samsung.srpol.R; -import com.samsung.srpol.utils.Utils; - -import android.app.Dialog; -import android.content.Context; -import android.graphics.Paint; -import android.view.View; -import android.widget.ImageButton; -import android.widget.ImageView; -import android.widget.ProgressBar; -import android.widget.TextView; - -public class WelcomeDialog extends Dialog implements android.view.View.OnClickListener{ - private boolean isFirstTime; - private ImageButton mOkButton; - private TextView mDescriptionTextLink; - private ImageView mNpLogo, mSamsungLogo, mGovLogo; - private ProgressBar mProgressBar; - private Context mContext; - private boolean attachedToWindow = false; - private boolean mCanBeClosed; - private boolean mOpenedFromMenu = false; - - public WelcomeDialog(Context context, boolean openedFromMenu) { - super(context, R.style.WelcomeDialog); - mContext = context; - mOpenedFromMenu = openedFromMenu; - setContentView(R.layout.welcome_dialog); - - mOkButton = (ImageButton) this.findViewById(R.id.button); - mDescriptionTextLink = (TextView) this.findViewById(R.id.welcome_description_link); - mDescriptionTextLink.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG); - mProgressBar = (ProgressBar) this.findViewById(R.id.progressBar); - mNpLogo = (ImageView) findViewById(R.id.fondation_logo); - mSamsungLogo = (ImageView) findViewById(R.id.samsung_logo); - mGovLogo = (ImageView) findViewById(R.id.gov_logo); - TextView versionName = (TextView) findViewById(R.id.app_version); - versionName.setText(Utils.getAppVersionCode(context)); - mOkButton.setOnClickListener(this); - mDescriptionTextLink.setOnClickListener(this); - mNpLogo.setOnClickListener(this); - mSamsungLogo.setOnClickListener(this); - mGovLogo.setOnClickListener(this); - - isFirstTime = Utils.isFirstRun(this.getContext()); - - mCanBeClosed = false; - - if (!isFirstTime && !mOpenedFromMenu) { - new Timer().schedule(new TimerTask() { - - @Override - public void run() { - synchronized (WelcomeDialog.this) { - if (mCanBeClosed) - WelcomeDialog.this.dismissDialog(); - else - mCanBeClosed = true; - } - } - }, 2000); - } - } - - /* (non-Javadoc) - * @see android.app.Dialog#onBackPressed() - */ - @Override - public void onBackPressed() { - if(mOkButton.getVisibility() == View.VISIBLE){ - super.onBackPressed(); - } - } - - - @Override - public void onClick(View v) { - if(v == mOkButton){ - this.dismissDialog(); - } else if(v == mDescriptionTextLink){ - Utils.startBrowser(mContext, mContext.getString(R.string.app_info_more_info)); - } else if(v == mNpLogo){ - Utils.startBrowser(mContext, mContext.getString(R.string.fond_site)); - } else if(v == mSamsungLogo){ - Utils.startBrowser(mContext, mContext.getString(R.string.samsung_site)); - } else if(v == mGovLogo){ - Utils.startBrowser(mContext, mContext.getString(R.string.gov_site)); - } - } - /* (non-Javadoc) - * @see android.app.Dialog#onAttachedToWindow() - */ - @Override - public void onAttachedToWindow() { - super.onAttachedToWindow(); - attachedToWindow = true; - } - - - /* (non-Javadoc) - * @see android.app.Dialog#onDetachedFromWindow() - */ - @Override - public void onDetachedFromWindow() { - attachedToWindow = false; - super.onDetachedFromWindow(); - } - - public void loadingDone() { - if (mOpenedFromMenu) { - return; - } - if (isFirstTime) { - mProgressBar.setVisibility(View.GONE); - mOkButton.setVisibility(View.VISIBLE); - } else { - synchronized (this) { - if (mCanBeClosed) { - dismissDialog(); - } - mCanBeClosed = true; - } - } - } - - private void dismissDialog(){ - if(attachedToWindow){ - this.dismiss(); - } - } - - /** - * @return the mOpenedFromMenu - */ - public boolean ismOpenedFromMenu() { - return mOpenedFromMenu; - } - - public void show(boolean openedFromMenu) { - mOpenedFromMenu = openedFromMenu; - if (openedFromMenu) { - mOkButton.setVisibility(View.VISIBLE); - mProgressBar.setVisibility(View.GONE); - } else { - mProgressBar.setVisibility(View.VISIBLE); - mOkButton.setVisibility(View.GONE); - } - this.show(); - } -} \ No newline at end of file diff --git a/src/com/samsung/srpol/ui/drawer/CategoryArrayAdapter.java b/src/com/samsung/srpol/ui/drawer/CategoryArrayAdapter.java deleted file mode 100644 index b95febf..0000000 --- a/src/com/samsung/srpol/ui/drawer/CategoryArrayAdapter.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.ui.drawer; - -import java.util.Collection; - -import com.samsung.srpol.R; -import com.samsung.srpol.data.Category; - -import android.content.Context; -import android.text.Spannable; -import android.text.SpannableString; -import android.text.style.ForegroundColorSpan; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.ArrayAdapter; -import android.widget.ImageView; -import android.widget.TextView; - -public class CategoryArrayAdapter extends ArrayAdapter { - private final Context mContext; - private String mTextPrefix ; - private String mCountTextPrefix; - private int mSpanTextColor; - - private static class ViewHolder { - TextView textView1; - TextView textView2; - TextView textView3; - ImageView imageView; - } - - public CategoryArrayAdapter(Context context) { - super(context, R.layout.drawer_list_item); - mTextPrefix = context.getResources().getString(R.string.drawer_header_text_prefix); - mCountTextPrefix = context.getResources().getString(R.string.items_string_quantity); - mSpanTextColor = context.getResources().getColor(R.color.text_menu); - mContext = context; - } - - @Override - public void addAll(Collection collection) { - for (Category category : collection) { - super.add(category); - } - } - - @Override - public View getView(int position, View convertView, ViewGroup parent) { - ViewHolder holder = null; - if (convertView == null) { - LayoutInflater inflater = (LayoutInflater) mContext - .getSystemService(Context.LAYOUT_INFLATER_SERVICE); - convertView = inflater.inflate(R.layout.drawer_list_item, parent, - false); - holder = new ViewHolder(); - holder.textView1 = (TextView) convertView.findViewById(R.id.text1); - holder.textView2 = (TextView) convertView.findViewById(R.id.text2); - holder.textView3 = (TextView) convertView.findViewById(R.id.text3); - holder.imageView = (ImageView) convertView.findViewById(R.id.icon); - - convertView.setTag(holder); - } else { - holder = (ViewHolder) convertView.getTag(); - } - - Category category = getItem(position); - if (category.getIconRes() > 0) - holder.imageView.setImageResource(category.getIconRes()); - holder.textView1.setText(mTextPrefix + category.getHeader()); - holder.textView2.setText(category.getShortDescription()); - holder.textView3.setText(createSpannableCountText(category.getCurrentlyVisible())); - return convertView; - } - - private Spannable createSpannableCountText(int count){ - - Spannable spannable = new SpannableString(mCountTextPrefix + count); - spannable.setSpan(new ForegroundColorSpan(mSpanTextColor),mCountTextPrefix.length(), spannable.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); - return spannable; - } -} diff --git a/src/com/samsung/srpol/ui/drawer/MenuFragment.java b/src/com/samsung/srpol/ui/drawer/MenuFragment.java deleted file mode 100644 index 42d7c6e..0000000 --- a/src/com/samsung/srpol/ui/drawer/MenuFragment.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.ui.drawer; - -import com.samsung.srpol.R; -import com.samsung.srpol.loader.AppListLoader; - -import android.support.v4.app.Fragment; -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.AdapterView; -import android.widget.ListView; - - -public class MenuFragment extends Fragment { - - private static final String SAVED_POSITION = "saved_position"; - - private NavigationDrawerItemListener mDrawerItemListener; - - private ListView mMenuListView; - private CategoryArrayAdapter mAdapter; - - private int mSelectedPosition = 0; - - public MenuFragment() { - } - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - if (savedInstanceState != null) { - mSelectedPosition = savedInstanceState - .getInt(SAVED_POSITION); - selectItem(mSelectedPosition); - } - } - - @Override - public void onActivityCreated(Bundle savedInstanceState) { - super.onActivityCreated(savedInstanceState); - setHasOptionsMenu(true); - } - - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, - Bundle savedInstanceState) { - View mRootView = (View) inflater.inflate( - R.layout.fragment_navigation_drawer, container, false); - mMenuListView = (ListView) mRootView - .findViewById(R.id.fragment_listView); - mMenuListView - .setOnItemClickListener(new AdapterView.OnItemClickListener() { - @Override - public void onItemClick(AdapterView parent, View view, - int position, long id) { - selectItem(position); - } - }); - mAdapter = new CategoryArrayAdapter(getActivity().getApplicationContext()); - mMenuListView.setAdapter(mAdapter); - - mMenuListView.setItemChecked(mSelectedPosition, true); - return mRootView; - } - - public void refresh() { - if (mAdapter != null) { - mAdapter.clear(); - mAdapter.addAll(AppListLoader.getCategories()); - mAdapter.notifyDataSetChanged(); - } - } - - - private void selectItem(int position) { - mSelectedPosition = position; - if (mMenuListView != null) { - mMenuListView.setItemChecked(position, true); - } - - if (mDrawerItemListener != null) { - mDrawerItemListener.onNavigationDrawerItemSelected(position); - } - } - - @Override - public void onDetach() { - super.onDetach(); - mDrawerItemListener = null; - } - - public void setDrawerItemListener(NavigationDrawerItemListener drawerItemListener) { - mDrawerItemListener = drawerItemListener; - } - - @Override - public void onSaveInstanceState(Bundle outState) { - super.onSaveInstanceState(outState); - outState.putInt(SAVED_POSITION, mSelectedPosition); - } - - public void notifyDataSetChanged(){ - if(mAdapter != null){ - mAdapter.notifyDataSetChanged(); - } - } -} diff --git a/src/com/samsung/srpol/ui/drawer/NavigationDrawerItemListener.java b/src/com/samsung/srpol/ui/drawer/NavigationDrawerItemListener.java deleted file mode 100644 index 495c51b..0000000 --- a/src/com/samsung/srpol/ui/drawer/NavigationDrawerItemListener.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.ui.drawer; - -public interface NavigationDrawerItemListener { - - void onNavigationDrawerItemSelected(int position); - -} diff --git a/src/com/samsung/srpol/ui/tabpager/AppListArrayAdapter.java b/src/com/samsung/srpol/ui/tabpager/AppListArrayAdapter.java deleted file mode 100644 index 92ca1c1..0000000 --- a/src/com/samsung/srpol/ui/tabpager/AppListArrayAdapter.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.ui.tabpager; - -import java.util.ArrayList; - -import com.samsung.srpol.R; -import com.samsung.srpol.data.Category; -import com.samsung.srpol.data.Subcategory; -import com.samsung.srpol.loader.AppDetails; -import com.samsung.srpol.loader.AppListLoader; -import com.samsung.srpol.utils.Utils; - -import android.annotation.TargetApi; -import android.content.Context; -import android.content.SharedPreferences; -import android.graphics.drawable.Drawable; -import android.os.Build; -import android.preference.PreferenceManager; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.ArrayAdapter; -import android.widget.ImageView; -import android.widget.LinearLayout; -import android.widget.TextView; - -public class AppListArrayAdapter extends ArrayAdapter { - - private static SharedPreferences mSp; - - private final Context mContext; - private final Category mCategory; - private ArrayList mDisplayedList; - - private static class ViewHolder { - public TextView appName; - public TextView appPackageName; - public ImageView appIcon; - public ImageView systemAppIcon; - public LinearLayout groupIcons; - public ImageView[] groupIconsView; - } - - public AppListArrayAdapter(Context context, Category category) { - super(context, R.layout.app_list_item_view); - mContext = context; - mCategory = category; - mDisplayedList = new ArrayList(); - if (mSp == null) - mSp = PreferenceManager.getDefaultSharedPreferences(mContext); - refreshVisibleList(); - } - - private void refreshVisibleList() { - boolean includeSystemApps = mSp.getBoolean( - AppListLoader.PREF_INCLUDE_SYSTEM_APPS, true); - - mDisplayedList.clear(); - for (AppDetails app : mCategory.getRelatedApps()) { - if (isVisible(app, includeSystemApps)) - mDisplayedList.add(app); - } - mCategory.updateVisibleCount(mDisplayedList.size()); - } - - @Override - public void notifyDataSetChanged() { - refreshVisibleList(); - super.notifyDataSetChanged(); - } - - @Override - public AppDetails getItem(int position) { - return mDisplayedList.get(position); - } - - @Override - public int getCount() { - return mDisplayedList.size(); - } - - private boolean isVisible(AppDetails item, boolean includeSystemApps) { - - return !item.isSystemApp() - || (includeSystemApps && item.isSystemApp()); - } - - @SuppressWarnings("deprecation") - @TargetApi(Build.VERSION_CODES.JELLY_BEAN) - @Override - public View getView(int position, View convertView, ViewGroup parent) { - ViewHolder holder; - if (convertView == null) { - LayoutInflater inflater = (LayoutInflater) mContext - .getSystemService(Context.LAYOUT_INFLATER_SERVICE); - convertView = inflater.inflate(R.layout.app_list_item_view, parent, - false); - holder = new ViewHolder(); - holder.appName = (TextView) convertView - .findViewById(R.id.list_app_name); - holder.appPackageName = (TextView) convertView - .findViewById(R.id.list_app_package); - holder.appIcon = (ImageView) convertView - .findViewById(R.id.list_app_icon); - holder.systemAppIcon = (ImageView) convertView - .findViewById(R.id.list_system_app_icon); - holder.groupIcons = (LinearLayout) convertView - .findViewById(R.id.app_list_group_icons); - - int i = 0; - holder.groupIconsView = new ImageView[mCategory.getSubCategories().size()]; - for (Subcategory category : mCategory.getSubCategories()){ - ImageView icon = new ImageView(mContext); - icon.setImageDrawable(category.getDarkIcon()); - holder.groupIconsView[i++] = icon; - holder.groupIcons.addView(icon); - } - convertView.setTag(holder); - } else - holder = (ViewHolder) convertView.getTag(); - - AppDetails details = getItem(position); - holder.appName.setText(details.getAppName()); - holder.appPackageName.setText(details.getAppPackageName()); - holder.appIcon.setImageDrawable(details.getAppIcon()); - - // disabling and enabling apps in system application manager is available since API 4.0 - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { - if (details.isEnabled()) { - holder.appName.setTextColor(mContext.getResources().getColor(android.R.color.black)); - } else { - holder.appName.setTextColor(mContext.getResources().getColor(R.color.disabled_app_name)); - } - } - if(details.isSystemApp()){ - holder.systemAppIcon.setVisibility(View.VISIBLE); - if(details.isEnabled()){ - holder.systemAppIcon.setImageDrawable(Utils.getmSystemIcon(mContext)); - } else { - holder.systemAppIcon.setImageDrawable(Utils.getmSystemIconDisable(mContext)); - } - } else { - holder.systemAppIcon.setVisibility(View.INVISIBLE); - } - - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) - convertView.setBackgroundDrawable(mContext - .getResources() - .getDrawable( - details.isSystemApp() ? R.color.grayout_list_item_bg - : android.R.color.white)); - else { - convertView.setBackground(mContext - .getResources() - .getDrawable( - details.isSystemApp() ? R.color.grayout_list_item_bg - : android.R.color.white)); - } - for (int i = 0; i < mCategory.getSubCategories().size(); ++i) { - if (details.isInSubcategory(mCategory.getSubCategories().get(i).getId())) { - // disabling and enabling apps in system application manager is available since API 4.0 - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { - if (details.isEnabled()) - holder.groupIconsView[i].setImageDrawable(mCategory.getSubCategories().get(i).getDarkIcon()); - else - holder.groupIconsView[i].setImageDrawable(mCategory.getSubCategories().get(i).getDisabledIcon()); - } - holder.groupIconsView[i].setVisibility(View.VISIBLE); - } else { - holder.groupIconsView[i].setVisibility(View.GONE); - } - } - return convertView; - } - -} diff --git a/src/com/samsung/srpol/ui/tabpager/PageAdapter.java b/src/com/samsung/srpol/ui/tabpager/PageAdapter.java deleted file mode 100644 index df90409..0000000 --- a/src/com/samsung/srpol/ui/tabpager/PageAdapter.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.ui.tabpager; - -import java.util.List; - -import android.content.Context; -import android.os.Bundle; -import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentManager; -import android.support.v4.app.FragmentPagerAdapter; - -import com.samsung.srpol.data.Category; -import com.samsung.srpol.loader.AppListLoader; - -public class PageAdapter extends FragmentPagerAdapter { - - private static List mCategories; - private static PageFragment[] mCreatedFragments = null; - - public PageAdapter(FragmentManager fm, Context context) { - super(fm); - } - - public void refreshPages() { - if (mCategories == null) { - mCategories = AppListLoader.getCategories(); - notifyDataSetChanged(); - } else { - refreshAdapterNotify(); - } - } - - public void refreshAdapterNotify() { - for (PageFragment fragment : mCreatedFragments) { - if (fragment != null) - fragment.notifyDataSetChanged(); - } - } - @Override - public Fragment getItem(int position) { - if (mCreatedFragments == null) - mCreatedFragments = new PageFragment[mCategories.size()]; - PageFragment f = mCreatedFragments[position]; - if (f == null) { - f = new PageFragment(); - - Bundle args = new Bundle(); - args.putInt("position", position); - f.setArguments(args); - mCreatedFragments[position] = f; - } - return f; - } - - @Override - public CharSequence getPageTitle(int position) { - return mCategories.get(position).getTitle(); - } - - @Override - public int getCount() { - return mCategories == null ? 0 : mCategories.size(); - } - -} diff --git a/src/com/samsung/srpol/ui/tabpager/PageFragment.java b/src/com/samsung/srpol/ui/tabpager/PageFragment.java deleted file mode 100644 index bdb7a22..0000000 --- a/src/com/samsung/srpol/ui/tabpager/PageFragment.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.ui.tabpager; - -import com.nhaarman.listviewanimations.appearance.AnimationAdapter; -import com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter; -import com.samsung.srpol.R; -import com.samsung.srpol.data.Category; -import com.samsung.srpol.data.Subcategory; -import com.samsung.srpol.loader.AppListLoader; -import com.samsung.srpol.parallax.ParallaxListView; -import com.samsung.srpol.ui.AppInfoActivity; -import com.samsung.srpol.ui.PopupActivity; - -import android.content.Intent; -import android.os.Bundle; -import android.support.v4.app.Fragment; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.view.View.OnClickListener; -import android.widget.AdapterView; -import android.widget.ImageButton; -import android.widget.ImageView; -import android.widget.LinearLayout; -import android.widget.ListView; -import android.widget.TextView; -import android.widget.AdapterView.OnItemClickListener; - -public class PageFragment extends Fragment { - - private AppListArrayAdapter mAppListArrayAdapter; - private Category mCategory; - private int mPosition; - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - mPosition = getArguments() != null ? getArguments().getInt("position") : 0; - setRetainInstance(true); - } - - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, - Bundle savedInstanceState) { - View rootView = inflater.inflate(R.layout.fragment_main, container, false); - - LinearLayout headerLayout = (LinearLayout) inflater.inflate(R.layout.header_layout, container, false); - headerLayout.setLayoutParams(new ListView.LayoutParams( - ListView.LayoutParams.MATCH_PARENT, ListView.LayoutParams.WRAP_CONTENT)); - if (mCategory == null) { - if (AppListLoader.getCategories() != null) { - mCategory = AppListLoader.getCategories().get(mPosition); - } else { - return rootView; - } - } - TextView header = (TextView) headerLayout.findViewById(R.id.section_label); - if (header != null) { - header.setText(mCategory.getDescription()); - } - - TextView headerLabel = (TextView) rootView.findViewById(R.id.header_label); - if (headerLabel != null) { - String titleSufix = getActivity().getString(R.string.apps_that); - headerLabel.setText(titleSufix.concat(mCategory.getHeader())); - } - - //Header icons Click - LinearLayout groupIcons = (LinearLayout) headerLayout.findViewById(R.id.group_icons); - for (Subcategory subgroup : mCategory.getSubCategories()) { - ImageView icon = new ImageView(getActivity()); - icon.setImageDrawable(subgroup.getIconDrawable()); - groupIcons.addView(icon); - } - - //Header More click - ImageButton moreButton = (ImageButton) headerLayout.findViewById(R.id.legend_btn); - moreButton.setOnClickListener(new OnClickListener() { - - @Override - public void onClick(View arg0) { - Intent intent = new Intent(getActivity(), PopupActivity.class); - intent.putExtra(PopupActivity.POPUP_CATEGORY, mPosition); - getActivity().startActivity(intent); - } - }); - - // List with applications - ParallaxListView listview = (ParallaxListView) rootView.findViewById(R.id.listview); - listview.addParallaxedHeaderView(headerLayout); - mAppListArrayAdapter = new AppListArrayAdapter(getActivity(), mCategory); - AnimationAdapter adapter = new AlphaInAnimationAdapter(mAppListArrayAdapter); - adapter.setAbsListView(listview); - listview.setAdapter(adapter); - listview.setOnItemClickListener(new OnItemClickListener() { - - @Override - public void onItemClick(AdapterView parent, View view, - int positionInAdapter, long id) { - Intent intent = new Intent(getActivity(), AppInfoActivity.class); - intent.putExtra(AppInfoActivity.APP_PACKAGE_NAME, - mAppListArrayAdapter.getItem(positionInAdapter - 1).getAppPackageName()); - getActivity().startActivity(intent); - } - }); - - return rootView; - } - - public void notifyDataSetChanged() { - mAppListArrayAdapter.notifyDataSetChanged(); - } - -} diff --git a/src/com/samsung/srpol/utils/Utils.java b/src/com/samsung/srpol/utils/Utils.java deleted file mode 100644 index d938907..0000000 --- a/src/com/samsung/srpol/utils/Utils.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU AFFERO General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - You may obtain a copy of the License at - - http://www.gnu.org/licenses/agpl-3.0.txt - - 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 . -*/ - -package com.samsung.srpol.utils; - -import com.samsung.srpol.R; - -import android.content.Context; -import android.content.Intent; -import android.content.SharedPreferences; -import android.content.pm.PackageManager.NameNotFoundException; -import android.graphics.drawable.Drawable; -import android.net.Uri; -import android.os.Build; -import android.provider.Settings; - -public class Utils { - - private static final String SCHEME = "package"; - - private static final String APP_PKG_NAME_21 = "com.android.settings.ApplicationPkgName"; - - private static final String APP_PKG_NAME_22 = "pkg"; - - private static final String APP_DETAILS_PACKAGE_NAME = "com.android.settings"; - - private static final String APP_DETAILS_CLASS_NAME = "com.android.settings.InstalledAppDetails"; - - private static final String MY_PREFERENCES = "my_preferences"; - - private static Drawable mSystemIcon; - private static Drawable mSystemIconDisable; - - /** - * @return the mSystemIcon - */ - public static Drawable getmSystemIcon(Context context) { - if (mSystemIcon == null) { - return mSystemIcon = context.getResources().getDrawable( - R.drawable.ic_system_red_dark); - } else { - return mSystemIcon; - } - } - - /** - * @return the mSystemIcon - */ - public static Drawable getmSystemIconDisable(Context context) { - if (mSystemIconDisable == null) { - return mSystemIconDisable = context.getResources().getDrawable( - R.drawable.ic_system_red_disable); - } else { - return mSystemIconDisable; - } - } - - /** - * Show Platform's Settings app Window with details about given packageName - * app - * - * @param context - * App context - * @param packageName - * Package name of requested app details - */ - public static void showInstalledAppDetails(Context context, - String packageName) { - Intent intent = new Intent(); - final int apiLevel = Build.VERSION.SDK_INT; - if (apiLevel >= 9) { // above 2.3 - intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); - Uri uri = Uri.fromParts(SCHEME, packageName, null); - intent.setData(uri); - } else { // below 2.3 - // TODO not tested - final String appPkgName = (apiLevel == 8 ? APP_PKG_NAME_22 - : APP_PKG_NAME_21); - intent.setAction(Intent.ACTION_VIEW); - intent.setClassName(APP_DETAILS_PACKAGE_NAME, - APP_DETAILS_CLASS_NAME); - intent.putExtra(appPkgName, packageName); - } - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); - context.startActivity(intent); - } - - public static void unistallApp(Context context, String packageName) { - Intent intent = new Intent(); - final int apiLevel = Build.VERSION.SDK_INT; - if (apiLevel >= 14) { // above 4.0 - intent.setAction(Intent.ACTION_DELETE); - Uri uri = Uri.fromParts(SCHEME, packageName, null); - intent.setData(uri); - } else { // below 4.0 - // TODO not tested - final String appPkgName = (apiLevel == 8 ? APP_PKG_NAME_22 - : APP_PKG_NAME_21); - intent.setAction(Intent.ACTION_VIEW); - intent.setClassName(APP_DETAILS_PACKAGE_NAME, - APP_DETAILS_CLASS_NAME); - intent.putExtra(appPkgName, packageName); - } - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - context.startActivity(intent); - } - - public static String getAppVersionCode(Context context) { - String versionName; - try { - versionName = context.getPackageManager().getPackageInfo( - context.getPackageName(), 0).versionName; - } catch (NameNotFoundException e) { - versionName = "not found"; - e.printStackTrace(); - } - return versionName; - } - - public static boolean isFirstRun(Context context) { - final SharedPreferences reader = context.getSharedPreferences( - MY_PREFERENCES, Context.MODE_PRIVATE); - final boolean first = reader.getBoolean("is_first", true); - if (first) { - final SharedPreferences.Editor editor = reader.edit(); - editor.putBoolean("is_first", false); - editor.commit(); - } - return first; - } - - public static void startBrowser(Context context, String url) { - Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - context.startActivity(intent); - } -} diff --git a/srpol.iml b/srpol.iml new file mode 100644 index 0000000..2a02201 --- /dev/null +++ b/srpol.iml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + +