├── LICENSE ├── Lang ├── en │ ├── en10.txt │ ├── en11.txt │ ├── en12.txt │ ├── en2.txt │ ├── en3.txt │ ├── en4.txt │ ├── en5.txt │ ├── en6.txt │ ├── en7.txt │ ├── en8.txt │ └── en9.txt ├── es │ ├── es10.txt │ ├── es11.txt │ ├── es12.txt │ ├── es2.txt │ ├── es3.txt │ ├── es4.txt │ ├── es5.txt │ ├── es6.txt │ ├── es7.txt │ ├── es8.txt │ └── es9.txt ├── fr │ ├── fr10.txt │ ├── fr11.txt │ ├── fr12.txt │ ├── fr2.txt │ ├── fr3.txt │ ├── fr4.txt │ ├── fr5.txt │ ├── fr6.txt │ ├── fr7.txt │ ├── fr8.txt │ └── fr9.txt ├── id │ ├── id10.txt │ ├── id11.txt │ ├── id12.txt │ ├── id2.txt │ ├── id3.txt │ ├── id4.txt │ ├── id5.txt │ ├── id6.txt │ ├── id7.txt │ ├── id8.txt │ └── id9.txt ├── it │ ├── it10.txt │ ├── it11.txt │ ├── it12.txt │ ├── it2.txt │ ├── it3.txt │ ├── it4.txt │ ├── it5.txt │ ├── it6.txt │ ├── it7.txt │ ├── it8.txt │ └── it9.txt ├── pt │ ├── pt10.txt │ ├── pt11.txt │ ├── pt12.txt │ ├── pt2.txt │ ├── pt3.txt │ ├── pt4.txt │ ├── pt5.txt │ ├── pt6.txt │ ├── pt7.txt │ ├── pt8.txt │ └── pt9.txt ├── ru │ ├── ru10.txt │ ├── ru11.txt │ ├── ru12.txt │ ├── ru2.txt │ ├── ru3.txt │ ├── ru4.txt │ ├── ru5.txt │ ├── ru6.txt │ ├── ru7.txt │ ├── ru8.txt │ └── ru9.txt ├── tr │ ├── tr10.txt │ ├── tr11.txt │ ├── tr12.txt │ ├── tr2.txt │ ├── tr3.txt │ ├── tr4.txt │ ├── tr5.txt │ ├── tr6.txt │ ├── tr7.txt │ ├── tr8.txt │ └── tr9.txt └── zh │ ├── zh10.txt │ ├── zh11.txt │ ├── zh12.txt │ ├── zh2.txt │ ├── zh3.txt │ ├── zh4.txt │ ├── zh5.txt │ ├── zh6.txt │ ├── zh7.txt │ ├── zh8.txt │ └── zh9.txt ├── META-INF └── com │ └── google │ └── android │ ├── update-binary │ └── updater-script ├── Mods ├── DBGQ │ └── system.prop ├── HKB │ └── HKB.apk ├── HKBT │ ├── AndroidManifest.xml │ └── res │ │ └── values │ │ └── bools.xml ├── HL │ └── HL.apk ├── HP │ └── pillhide.apk ├── HPS1 │ ├── AndroidManifest.xml │ └── res │ │ └── values │ │ └── dimens.xml ├── HPS2 │ ├── AndroidManifest.xml │ └── res │ │ └── values │ │ └── dimens.xml ├── MIUI │ └── AndroidManifest.xml ├── PH │ └── PH.apk ├── Q │ └── dummy ├── QS │ ├── AndroidManifest.xml │ └── res │ │ └── values │ │ ├── bools.xml │ │ ├── dimens.xml │ │ ├── integers.xml │ │ └── strings.xml └── Qtmp │ └── dummy ├── OC.md ├── README.md ├── common ├── addon │ └── Volume-Key-Selector │ │ ├── README.md │ │ ├── install.sh │ │ └── tools │ │ ├── arm │ │ └── keycheck │ │ └── x86 │ │ └── keycheck ├── functions.sh └── install.sh ├── customize.sh ├── module.prop └── tools ├── META-INF └── com │ └── google │ └── android │ ├── update-binary │ └── updater-script ├── aapt2 ├── aapt264 ├── customize.sh ├── fabricated └── service.sh ├── hn ├── hnr ├── service.sh ├── zip ├── zipsigner ├── zipsigner-3.0-dexed.jar └── zipsignero /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Lang/en/en10.txt: -------------------------------------------------------------------------------- 1 | 2 | Hide the navigation bar? 3 | 4 | Vol+ = Yes , Vol- = No 5 | -------------------------------------------------------------------------------- /Lang/en/en11.txt: -------------------------------------------------------------------------------- 1 | 2 | Hide the extra space under the keyboard? 3 | 4 | Vol+ = Yes , Vol- = No 5 | -------------------------------------------------------------------------------- /Lang/en/en12.txt: -------------------------------------------------------------------------------- 1 | 2 | Disable home/recent gestures? (to use gesture apps) 3 | 4 | Vol+ = Yes , Vol- = No 5 | -------------------------------------------------------------------------------- /Lang/en/en2.txt: -------------------------------------------------------------------------------- 1 | 2 | Hide gesture hint/pill but keep space under the keyboard? 3 | 4 | Vol+ = Yes , Vol- = No (default) 5 | -------------------------------------------------------------------------------- /Lang/en/en3.txt: -------------------------------------------------------------------------------- 1 | 2 | Reduce the space under the keyboard? 3 | 4 | Vol+ = Yes , Vol- = No (default) 5 | -------------------------------------------------------------------------------- /Lang/en/en4.txt: -------------------------------------------------------------------------------- 1 | 2 | How sensitive the home/recents gestures should be? 3 | 4 | (High sensitivity may cause the gestures 5 | to be triggered by accident when typing) 6 | 7 | Vol+ = Low (Module Default) , Vol- = High (Android's Default) 8 | 9 | -------------------------------------------------------------------------------- /Lang/en/en5.txt: -------------------------------------------------------------------------------- 1 | 2 | Disable the going back gestures? 3 | 4 | Vol+ = Yes , Vol- = No 5 | 6 | -------------------------------------------------------------------------------- /Lang/en/en6.txt: -------------------------------------------------------------------------------- 1 | 2 | How should the going back gesture be disabled? 3 | 4 | Vol+ = Only on the left, Vol- = Completely (for gesture apps) 5 | 6 | -------------------------------------------------------------------------------- /Lang/en/en7.txt: -------------------------------------------------------------------------------- 1 | 2 | If you wish to reenable the back gestures 3 | reinstall the module with that option disabled. 4 | -------------------------------------------------------------------------------- /Lang/en/en8.txt: -------------------------------------------------------------------------------- 1 | 2 | Hide the buttons under the keyboard? 3 | (Back button/Switch keyboard button) 4 | 5 | Vol+ = Yes , Vol- = No 6 | -------------------------------------------------------------------------------- /Lang/en/en9.txt: -------------------------------------------------------------------------------- 1 | 2 | Enable workaround for the gesture bar/pill 3 | not changing to dark/light theme? 4 | 5 | (The option isn't guaranteed to work 6 | and will result in a small white line 7 | at the bottom of the screen) 8 | 9 | Vol+ = Yes , Vol- = No 10 | -------------------------------------------------------------------------------- /Lang/es/es10.txt: -------------------------------------------------------------------------------- 1 | 2 | ¿Ocultar la barra de navegación? 3 | 4 | Vol+ = Sí , Vol- = No 5 | -------------------------------------------------------------------------------- /Lang/es/es11.txt: -------------------------------------------------------------------------------- 1 | 2 | ¿Ocultar el espacio extra debajo del teclado? 3 | 4 | Vol+ = Sí , Vol- = No 5 | -------------------------------------------------------------------------------- /Lang/es/es12.txt: -------------------------------------------------------------------------------- 1 | 2 | ¿Deshabilitar gestos para ir a la 3 | pantalla principal/aplicaciones recientes? 4 | (para usar aplicaciones de gestos) 5 | 6 | Vol+ = Sí , Vol- = No 7 | -------------------------------------------------------------------------------- /Lang/es/es2.txt: -------------------------------------------------------------------------------- 1 | Ocultar la "pildora" de navegacion y mantener la altura / el espacio del teclado? 2 | 3 | Vol + = Si, Vol - = No (predeterminado) 4 | -------------------------------------------------------------------------------- /Lang/es/es3.txt: -------------------------------------------------------------------------------- 1 | Reducir la altura de la barra del teclado? 2 | 3 | Vol + = Si, Vol - = No (predeterminado) 4 | -------------------------------------------------------------------------------- /Lang/es/es4.txt: -------------------------------------------------------------------------------- 1 | Elija la sensibilidad del gesto 2 | 3 | Vol + = Bajo (Predeterminado), Vol - = Alto 4 | -------------------------------------------------------------------------------- /Lang/es/es5.txt: -------------------------------------------------------------------------------- 1 | Desea desactivar el gesto de retroceso? 2 | 3 | Vol + = Si, Vol - = No 4 | -------------------------------------------------------------------------------- /Lang/es/es6.txt: -------------------------------------------------------------------------------- 1 | De que lado deshabilitar el gesto de retroceso? 2 | 3 | Vol + = Solo izquierda (para menus laterales), Vol - = Izquierda y derecha 4 | -------------------------------------------------------------------------------- /Lang/es/es7.txt: -------------------------------------------------------------------------------- 1 | 2 | Para volver a habilitar los gestos de retroceso 3 | elige no deshabilitarlos -------------------------------------------------------------------------------- /Lang/es/es8.txt: -------------------------------------------------------------------------------- 1 | Ocultar los botones del teclado (Atrás/Cambiar teclado)? 2 | 3 | Vol + = Si, Vol- = No 4 | -------------------------------------------------------------------------------- /Lang/es/es9.txt: -------------------------------------------------------------------------------- 1 | 2 | Enable Gcam fix? 3 | May cause navbar to be visible 4 | On certain devices 5 | 6 | Vol+ = Yes , Vol- = No 7 | -------------------------------------------------------------------------------- /Lang/fr/fr10.txt: -------------------------------------------------------------------------------- 1 | 2 | Masquer la barre de navigation ? 3 | 4 | Vol+ = Oui, Vol- = Non 5 | -------------------------------------------------------------------------------- /Lang/fr/fr11.txt: -------------------------------------------------------------------------------- 1 | 2 | Cacher l'espace supplémentaire sous le clavier ? 3 | 4 | Vol+ = Oui, Vol- = Non 5 | -------------------------------------------------------------------------------- /Lang/fr/fr12.txt: -------------------------------------------------------------------------------- 1 | 2 | Désactiver la page d'accueil/les gestes récents ? (pour utiliser les applications gestuelles) 3 | 4 | Vol+ = Oui, Vol- = Non 5 | -------------------------------------------------------------------------------- /Lang/fr/fr2.txt: -------------------------------------------------------------------------------- 1 | 2 | Masquer l'indice de geste/la pilule mais garder de l'espace sous le clavier ? 3 | 4 | Vol+ = Oui, Vol- = Non (par défaut) 5 | -------------------------------------------------------------------------------- /Lang/fr/fr3.txt: -------------------------------------------------------------------------------- 1 | 2 | Réduire l'espace sous le clavier ? 3 | 4 | Vol+ = Oui, Vol- = Non (par défaut) 5 | -------------------------------------------------------------------------------- /Lang/fr/fr4.txt: -------------------------------------------------------------------------------- 1 | 2 | Dans quelle mesure les gestes de la maison/récents doivent-ils être sensibles ? 3 | 4 | (Une sensibilité élevée peut provoquer des gestes accidentels et être déclenché par accident lors de la frappe) 5 | 6 | Vol+ = Faible (valeur par défaut du module), Vol- = Élevé (valeur par défaut d'Android) 7 | 8 | -------------------------------------------------------------------------------- /Lang/fr/fr5.txt: -------------------------------------------------------------------------------- 1 | 2 | Désactiver les gestes de retour ? 3 | 4 | Vol+ = Oui, Vol- = Non 5 | 6 | -------------------------------------------------------------------------------- /Lang/fr/fr6.txt: -------------------------------------------------------------------------------- 1 | 2 | Comment désactiver le geste de retour ? 3 | 4 | Vol+ = Uniquement à gauche, Vol- = Complètement (pour les applications gestuelles) 5 | 6 | -------------------------------------------------------------------------------- /Lang/fr/fr7.txt: -------------------------------------------------------------------------------- 1 | 2 | Si vous souhaitez réactiver les gestes de retour 3 | réinstallez le module avec cette option désactivée. 4 | -------------------------------------------------------------------------------- /Lang/fr/fr8.txt: -------------------------------------------------------------------------------- 1 | 2 | Cacher les boutons sous le clavier ? 3 | (Bouton Retour/Changer le bouton du clavier) 4 | 5 | Vol+ = Oui, Vol- = Non 6 | -------------------------------------------------------------------------------- /Lang/fr/fr9.txt: -------------------------------------------------------------------------------- 1 | 2 | Enable workaround for the gesture bar/pill 3 | not changing to dark/light theme? 4 | 5 | (The option isn't guaranteed to work 6 | and will result in a small white line 7 | at the bottom of the screen) 8 | 9 | Vol+ = Yes , Vol- = No 10 | -------------------------------------------------------------------------------- /Lang/id/id10.txt: -------------------------------------------------------------------------------- 1 | 2 | Sembunyikan Bilah Navigasi? 3 | 4 | Vol+ = Iya , Vol- = Tidak 5 | -------------------------------------------------------------------------------- /Lang/id/id11.txt: -------------------------------------------------------------------------------- 1 | 2 | Menyembunyikan Ruang Ektra Di Bawah Keyboard Mu? 3 | 4 | Vol+ = Iya , Vol- = Tidak 5 | -------------------------------------------------------------------------------- /Lang/id/id12.txt: -------------------------------------------------------------------------------- 1 | 2 | Mau Nonaktifkan Gesture Ke HomeScreen/Resent Apps? (Untuk Menggunakan Aplikasi Gestur) 3 | 4 | Vol+ = Iya , Vol- = Tidak 5 | -------------------------------------------------------------------------------- /Lang/id/id2.txt: -------------------------------------------------------------------------------- 1 | 2 | Mau Sembunyikan Pill Gesture?,Tapi Keyboard Tidak Akan Menyentuh Pill Gesture Alias Membuat Ruang Kosong 3 | 4 | Vol+ = Iya , Vol- = Tidak (Mengunakan Bawaan Rom) 5 | -------------------------------------------------------------------------------- /Lang/id/id3.txt: -------------------------------------------------------------------------------- 1 | 2 | Mau Menghilangkan Ruang Kosong Di Bawah Keyboard Mu? 3 | 4 | Vol+ = Iya , Vol- = Tidak (Mengunakan Bawaan Module) 5 | -------------------------------------------------------------------------------- /Lang/id/id4.txt: -------------------------------------------------------------------------------- 1 | 2 | Mau Menambahkan Sensitivitas Sensitif Gerakan Ke Resent Apps? 3 | 4 | (Perlu Di Ingat Sensitivitas Terlalu Tinggi Bisa Saja Membuat Anda Salah Menekan Saat Mengetik) 5 | 6 | Vol+ = Rendah (Mengunakan Bawaan Module) , Vol- = Tinggi (Mengunakan Bawaan Rom) 7 | 8 | -------------------------------------------------------------------------------- /Lang/id/id5.txt: -------------------------------------------------------------------------------- 1 | 2 | Mau Menyembunyikan Tombol Kembali? 3 | 4 | Vol+ = Iya , Vol- = Tidak 5 | 6 | -------------------------------------------------------------------------------- /Lang/id/id6.txt: -------------------------------------------------------------------------------- 1 | 2 | Mau Gunakan Cara Apa Untuk Menonaktifkan Isyarat Kembali? 3 | 4 | Vol+ = Hanya Di Sebelah Kiri, Vol- = Sepenuhnya (Untuk Aplikasi Isyarat) 5 | 6 | -------------------------------------------------------------------------------- /Lang/id/id7.txt: -------------------------------------------------------------------------------- 1 | 2 | Jika Kamu Mau Mengembalikan Tombol Gestur Kembali 3 | Instal Ulang Modul Saat Di Opsi Itu Pilih Dinonaktifkan. 4 | -------------------------------------------------------------------------------- /Lang/id/id8.txt: -------------------------------------------------------------------------------- 1 | 2 | Mau Sembunyikan Tombol Di Bawah Keyboard? 3 | (Ini Akan Menyembunyikan Tombol Panah Di Bawah Kiri Dan Tombol Ganti Keyboard) 4 | 5 | Vol+ = Iya , Vol- = Tidak 6 | -------------------------------------------------------------------------------- /Lang/id/id9.txt: -------------------------------------------------------------------------------- 1 | 2 | Pill Gestur Akan Mengikuti Tema Terang Dan Gelap? 3 | 4 | (Fitur Ini Tidak Menjamin Keberhasilannya 5 | Dan Jikapun Berhasil Akan Menghasilkan Garis Putih Kecil 6 | Di Bagian Bawah Layar) 7 | 8 | Vol+ = Iya , Vol- = Tidak 9 | -------------------------------------------------------------------------------- /Lang/it/it10.txt: -------------------------------------------------------------------------------- 1 | 2 | Nascondere la barra di navigazione? 3 | 4 | Vol+ = Sì , Vol- = No 5 | -------------------------------------------------------------------------------- /Lang/it/it11.txt: -------------------------------------------------------------------------------- 1 | 2 | Nascondere lo spazio extra sotto la tastiera? 3 | 4 | Vol+ = Sì , Vol- = No 5 | -------------------------------------------------------------------------------- /Lang/it/it12.txt: -------------------------------------------------------------------------------- 1 | 2 | Disattivare la navigazione tramite gesti? (per usare alternative di terze parti) 3 | 4 | Vol+ = Sì , Vol- = No 5 | -------------------------------------------------------------------------------- /Lang/it/it2.txt: -------------------------------------------------------------------------------- 1 | 2 | Nascondere la pillola e mantenere altezza/spazio della tastiera? 3 | 4 | Vol+ = Si , Vol- = No (predefinito) 5 | -------------------------------------------------------------------------------- /Lang/it/it3.txt: -------------------------------------------------------------------------------- 1 | 2 | Ridurre le dimensioni della barra della tastiera? 3 | 4 | Vol+ = Si , Vol- = No (predefinito) 5 | -------------------------------------------------------------------------------- /Lang/it/it4.txt: -------------------------------------------------------------------------------- 1 | 2 | Imposta la sensibilità del gesto. 3 | 4 | Vol+ = Bassa (Predefinita del modulo) , Vol- = Alta (Predefinita Android) 5 | -------------------------------------------------------------------------------- /Lang/it/it5.txt: -------------------------------------------------------------------------------- 1 | 2 | Desideri disattivare il gesto indietro? 3 | 4 | Vol+ = Si , Vol- = No 5 | -------------------------------------------------------------------------------- /Lang/it/it6.txt: -------------------------------------------------------------------------------- 1 | 2 | Da quale lato disabilitare il gesto indietro? 3 | 4 | Vol+ = Solo a sinistra (per menù laterali) , Vol- = Sinistra e Destra (per le app gestuali) 5 | -------------------------------------------------------------------------------- /Lang/it/it7.txt: -------------------------------------------------------------------------------- 1 | 2 | Per riabilitare i gesti indietro 3 | scegli no per disabilitarli -------------------------------------------------------------------------------- /Lang/it/it8.txt: -------------------------------------------------------------------------------- 1 | 2 | Nascondere i pulsanti della tastiera (Indietro/Cambia tastiera)? 3 | 4 | Vol+ = Si , Vol- = No 5 | -------------------------------------------------------------------------------- /Lang/it/it9.txt: -------------------------------------------------------------------------------- 1 | 2 | Enable Gcam fix? 3 | May cause navbar to be visible 4 | On certain devices 5 | 6 | Vol+ = Yes , Vol- = No 7 | -------------------------------------------------------------------------------- /Lang/pt/pt10.txt: -------------------------------------------------------------------------------- 1 | 2 | Esconder a barra de navegacao? 3 | 4 | Vol+ = Sim , Vol- = Nao 5 | -------------------------------------------------------------------------------- /Lang/pt/pt11.txt: -------------------------------------------------------------------------------- 1 | 2 | Esconder espaço abaixo do teclado? 3 | 4 | Vol+ = Sim , Vol- = Nao 5 | -------------------------------------------------------------------------------- /Lang/pt/pt12.txt: -------------------------------------------------------------------------------- 1 | 2 | Desativar gestos? 3 | (para uso de apps alternativos de gestos) 4 | 5 | Vol+ = Sim , Vol- = Nao 6 | 7 | 8 | -------------------------------------------------------------------------------- /Lang/pt/pt2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/Lang/pt/pt2.txt -------------------------------------------------------------------------------- /Lang/pt/pt3.txt: -------------------------------------------------------------------------------- 1 | 2 | Reduzir o tamanho da barra do teclado? 3 | 4 | Vol + = Sim, Vol- = Nao (padrao) 5 | -------------------------------------------------------------------------------- /Lang/pt/pt4.txt: -------------------------------------------------------------------------------- 1 | 2 | Escolha a sensitividade do gesto. 3 | 4 | Vol + = Baixo (padrao do modulo), Vol- = alto (padrao do Android) 5 | -------------------------------------------------------------------------------- /Lang/pt/pt5.txt: -------------------------------------------------------------------------------- 1 | 2 | Desativar o gesto de voltar? 3 | 4 | Vol + = Sim, Vol- = Nao 5 | -------------------------------------------------------------------------------- /Lang/pt/pt6.txt: -------------------------------------------------------------------------------- 1 | 2 | De que lado desativar o gesto de voltar? 3 | 4 | Vol + = Esquerda apenas (para menus laterais), Vol- = Esquerda e Direita (para aplicativos de gestos) 5 | -------------------------------------------------------------------------------- /Lang/pt/pt7.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/Lang/pt/pt7.txt -------------------------------------------------------------------------------- /Lang/pt/pt8.txt: -------------------------------------------------------------------------------- 1 | 2 | Esconder botoes do teclado (Voltar/Trocar teclado) ? 3 | 4 | Vol+ = Sim , Vol- = Nao 5 | -------------------------------------------------------------------------------- /Lang/pt/pt9.txt: -------------------------------------------------------------------------------- 1 | 2 | Ativar correção de cor da barra de navegacao? 3 | (Nao é garantido funcionar) 4 | Pode causar a barra de navegação 5 | a ficar levemente visivel 6 | 7 | Vol+ = Sim , Vol- = Nao 8 | -------------------------------------------------------------------------------- /Lang/ru/ru10.txt: -------------------------------------------------------------------------------- 1 | 2 | Скрыть навигационную панель? 3 | 4 | Vol+ = Да , Vol- = Нет 5 | -------------------------------------------------------------------------------- /Lang/ru/ru11.txt: -------------------------------------------------------------------------------- 1 | 2 | Скрыть доп. отступ под клавиатурой? 3 | 4 | Vol+ = Да , Vol- = Нет 5 | -------------------------------------------------------------------------------- /Lang/ru/ru12.txt: -------------------------------------------------------------------------------- 1 | 2 | Отключить жесты домой/недавние? 3 | (чтобы использовать жесты от др. приложений) 4 | 5 | Vol+ = Да , Vol- = Нет 6 | -------------------------------------------------------------------------------- /Lang/ru/ru2.txt: -------------------------------------------------------------------------------- 1 | Скрыть панель жестов и сохранить высоту/пространство клавиатуры? 2 | 3 | Vol+ = Да , Vol- = Нет (по умолчанию) -------------------------------------------------------------------------------- /Lang/ru/ru3.txt: -------------------------------------------------------------------------------- 1 | Уменьшить размер панели клавиатуры? 2 | 3 | Vol+ = Да , Vol- = Нет (по умолчанию) -------------------------------------------------------------------------------- /Lang/ru/ru4.txt: -------------------------------------------------------------------------------- 1 | Выберите чувствительность жестов. 2 | 3 | Vol+ = Низкая (по умолчанию в модуле) , Vol- = Высокая (по умолчанию в Android) 4 | -------------------------------------------------------------------------------- /Lang/ru/ru5.txt: -------------------------------------------------------------------------------- 1 | Хотите отключить жест "Назад"? 2 | 3 | Vol+ = Да , Vol- = Нет 4 | -------------------------------------------------------------------------------- /Lang/ru/ru6.txt: -------------------------------------------------------------------------------- 1 | С какой стороны отключить жест "Назад"? 2 | 3 | Vol+ = Только слева (для боковых меню) , Vol- = Влево и вправо (для приложений, использующих жесты) 4 | -------------------------------------------------------------------------------- /Lang/ru/ru7.txt: -------------------------------------------------------------------------------- 1 | 2 | Если Вы хотите снова включить жест "Назад", 3 | пожалуйста, выберите "Нет" -------------------------------------------------------------------------------- /Lang/ru/ru8.txt: -------------------------------------------------------------------------------- 1 | Скрыть кнопки клавиатуры (Назад/Переключение клавиатуры)? 2 | 3 | Vol+ = Да , Vol- = Нет -------------------------------------------------------------------------------- /Lang/ru/ru9.txt: -------------------------------------------------------------------------------- 1 | 2 | Включить исправление Gcam? 3 | Может привести к отображению панели навигации 4 | 5 | Vol+ = Да , Vol- = Нет 6 | -------------------------------------------------------------------------------- /Lang/tr/tr10.txt: -------------------------------------------------------------------------------- 1 | 2 | Navbar gizlensinmi? 3 | 4 | Vol+ = Evet , Vol- = Hayır 5 | -------------------------------------------------------------------------------- /Lang/tr/tr11.txt: -------------------------------------------------------------------------------- 1 | 2 | Klavyenin altındaki fazladan boşluk gizlensin mi? 3 | 4 | Vol+ = Evet , Vol- = Hayır 5 | -------------------------------------------------------------------------------- /Lang/tr/tr12.txt: -------------------------------------------------------------------------------- 1 | 2 | Anasayfa ve son uygulamalar hareketleri devre 3 | dışı bırakılsın mı? 4 | (hareket uygulamalarını kullanmak için) 5 | 6 | Vol+ = Evet , Vol- = Hayır 7 | -------------------------------------------------------------------------------- /Lang/tr/tr2.txt: -------------------------------------------------------------------------------- 1 | 2 | Hareket çubuğu kapatılsın ancak klavye 3 | altındaki boşluk kapatılmasın. 4 | 5 | Vol+ = Evet , Vol- = Hayır (Varsayılan) 6 | -------------------------------------------------------------------------------- /Lang/tr/tr3.txt: -------------------------------------------------------------------------------- 1 | 2 | Klavye altındaki boşluk kapatılsınmı? 3 | 4 | Vol+ = Evet , Vol- = Hayır (Varsayılan) 5 | -------------------------------------------------------------------------------- /Lang/tr/tr4.txt: -------------------------------------------------------------------------------- 1 | 2 | Ana sayfa ve son uygulamalar hareketleri ne 3 | kadar hassas olmalı? 4 | 5 | (Yüksek hassasiyet, yazarken hareketlerin 6 | kazara tetiklenmesine neden olabilir) 7 | 8 | Vol+ = Düşük (Modül Varsayılanı) 9 | Vol- = Yüksek (Android Varsayılanı) 10 | 11 | -------------------------------------------------------------------------------- /Lang/tr/tr5.txt: -------------------------------------------------------------------------------- 1 | 2 | Geri hareketi devre dışı bırakılsın mı? 3 | 4 | Vol+ = Evet , Vol- = Hayır 5 | 6 | -------------------------------------------------------------------------------- /Lang/tr/tr6.txt: -------------------------------------------------------------------------------- 1 | 2 | Geri hareketinin devre dışı bırakılacağı 3 | kenarları belirleyin. 4 | 5 | Vol+ = Yanlızca sol kenar , 6 | Vol- = Tamamen (hareket uygulamalarını 7 | kullanmak için) 8 | 9 | -------------------------------------------------------------------------------- /Lang/tr/tr7.txt: -------------------------------------------------------------------------------- 1 | 2 | Geri hareketlerini yeniden etkinleştirmek 3 | istiyorsanız, bu seçenek devre dışı olacak 4 | şekilde modülü yeniden yükleyin. -------------------------------------------------------------------------------- /Lang/tr/tr8.txt: -------------------------------------------------------------------------------- 1 | 2 | Klavye altındaki butonlar gizlensinmi? 3 | (Geri butonu veya klavye değiştirme butonu) 4 | 5 | Vol+ = Evet , Vol- = Hayır 6 | -------------------------------------------------------------------------------- /Lang/tr/tr9.txt: -------------------------------------------------------------------------------- 1 | 2 | Hareket çubuğunun karanlık ve aydınlık 3 | temaya dönüşmemesi için geçici çözüm 4 | uygulansınmı? 5 | 6 | (Seçeneğin çalışması garanti edilmez 7 | ve ekranın alt kısmında küçük bir beyaz 8 | çizgiyle sonuçlanır) 9 | 10 | Vol+ = Evet , Vol- = Hayır -------------------------------------------------------------------------------- /Lang/zh/zh10.txt: -------------------------------------------------------------------------------- 1 | 2 | 隐藏导航栏? 3 | 4 | Vol+ = 是 , Vol- = 否 5 | -------------------------------------------------------------------------------- /Lang/zh/zh11.txt: -------------------------------------------------------------------------------- 1 | 2 | 隐藏键盘下的空间? 3 | 4 | Vol+ = 是 , Vol- = 否 5 | -------------------------------------------------------------------------------- /Lang/zh/zh12.txt: -------------------------------------------------------------------------------- 1 | 2 | 禁用底部手势?(适用于手势应用程序) 3 | 4 | Vol+ = 是 , Vol- = 否 5 | -------------------------------------------------------------------------------- /Lang/zh/zh2.txt: -------------------------------------------------------------------------------- 1 | 隐藏手势提示线的同时保持键盘高度(底部间距)? 2 | 3 | 音量+ = 是 , 音量- = 否 (默认) 4 | -------------------------------------------------------------------------------- /Lang/zh/zh3.txt: -------------------------------------------------------------------------------- 1 | 减小键盘栏的大小? 2 | 3 | 音量+ = 是 , 音量- = 否 (默认) 4 | -------------------------------------------------------------------------------- /Lang/zh/zh4.txt: -------------------------------------------------------------------------------- 1 | 选择手势灵敏度. 2 | 3 | 音量+ = 低 (模块默认) , 音量- = 高 (安卓系统默认) 4 | 5 | -------------------------------------------------------------------------------- /Lang/zh/zh5.txt: -------------------------------------------------------------------------------- 1 | 是否需要禁用返回手势? 2 | 3 | 音量+ = 是 , 音量- = 否 4 | 5 | -------------------------------------------------------------------------------- /Lang/zh/zh6.txt: -------------------------------------------------------------------------------- 1 | 需要禁用哪一侧的返回手势? 2 | 3 | 音量+ = 仅左侧 (用于侧边菜单) , 音量- = 左侧和右侧 (用于手势应用) 4 | 5 | -------------------------------------------------------------------------------- /Lang/zh/zh7.txt: -------------------------------------------------------------------------------- 1 | 2 | 如果要重新启用返回手势 3 | 请选择“否”以禁用它们 4 | -------------------------------------------------------------------------------- /Lang/zh/zh8.txt: -------------------------------------------------------------------------------- 1 | 隐藏键盘按钮(收起或切换键盘按键)? 2 | 3 | 音量+ = 是 , 音量- = 否 4 | -------------------------------------------------------------------------------- /Lang/zh/zh9.txt: -------------------------------------------------------------------------------- 1 | 2 | 启用 Gcam 修复? 3 | 可能会导致导航栏 4 | 在某些设备上可见 5 | 6 | 音量+ = 是 , 音量- = 否 7 | -------------------------------------------------------------------------------- /META-INF/com/google/android/update-binary: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | ################# 4 | # Initialization 5 | ################# 6 | 7 | umask 022 8 | 9 | # echo before loading util_functions 10 | ui_print() { echo "$1"; } 11 | 12 | require_new_magisk() { 13 | ui_print "*******************************" 14 | ui_print " Please install Magisk v20.4+! " 15 | ui_print "*******************************" 16 | exit 1 17 | } 18 | 19 | ######################### 20 | # Load util_functions.sh 21 | ######################### 22 | 23 | OUTFD=$2 24 | ZIPFILE=$3 25 | 26 | mount /data 2>/dev/null 27 | 28 | [ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk 29 | . /data/adb/magisk/util_functions.sh 30 | [ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk 31 | 32 | install_module 33 | exit 0 -------------------------------------------------------------------------------- /META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | #MAGISK 2 | -------------------------------------------------------------------------------- /Mods/DBGQ/system.prop: -------------------------------------------------------------------------------- 1 | qemu.hw.mainkeys=1 2 | -------------------------------------------------------------------------------- /Mods/HKB/HKB.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/Mods/HKB/HKB.apk -------------------------------------------------------------------------------- /Mods/HKBT/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Mods/HKBT/res/values/bools.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | false 4 | 5 | -------------------------------------------------------------------------------- /Mods/HL/HL.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/Mods/HL/HL.apk -------------------------------------------------------------------------------- /Mods/HP/pillhide.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/Mods/HP/pillhide.apk -------------------------------------------------------------------------------- /Mods/HPS1/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Mods/HPS1/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0.2dip 4 | 10dp 5 | 0.2dp 6 | 0.1dp 7 | 8 | -------------------------------------------------------------------------------- /Mods/HPS2/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Mods/HPS2/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0.2dip 4 | 10dp 5 | 0.2dp 6 | 0.1dp 7 | 8 | -------------------------------------------------------------------------------- /Mods/MIUI/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Mods/PH/PH.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/Mods/PH/PH.apk -------------------------------------------------------------------------------- /Mods/Q/dummy: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Mods/QS/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Mods/QS/res/values/bools.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | true 4 | true 5 | false 6 | true 7 | 8 | -------------------------------------------------------------------------------- /Mods/QS/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 24.0dp 4 | 0.1dp 5 | 0.2dp 6 | 0.3dip 7 | 0.3dip 8 | 0.3dp 9 | 0.0dp 10 | 0.1dp 11 | 12 | -------------------------------------------------------------------------------- /Mods/QS/res/values/integers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 2 4 | 2 5 | 6 | -------------------------------------------------------------------------------- /Mods/QS/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Gestural Navigation Bar 4 | 5 | -------------------------------------------------------------------------------- /Mods/Qtmp/dummy: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OC.md: -------------------------------------------------------------------------------- 1 | ### v8.4 2 | - Fixed an issue that was causing hide pill to be installed regardless of user preference 3 | - Cleaner install code (again) 4 | ### v8.3 5 | - Remove Android 11 specific overlays (no longer necessary as the standard ones work just fine on 11) 6 | - Clean up install code even more 7 | ### v8.2 8 | - Fix immersive sensitivity options 9 | - Clean up installer code significantly 10 | ### v8.1 11 | - Fix for Immersive+default sensitivity not getting properly installed 12 | ### v8.0 13 | - Allow changing gesture sensitivity (for users who may prefer Android's default gesture sensitivity) 14 | ### v7.2 15 | - Fix fullscreen gestures installation (apologies for the inconvenience) 16 | ### v7.1 17 | - Added new options during install 18 | - Small keyboard bar (for immersive mode): Allows you to have less spacing underneath the keyboard 19 | - Hide Pill (for immersive mode): Allows you to have a near fullscreen experience while still keeping the spacing underneath the keyboard 20 | ### v7.0 21 | - Switch to the MMT-EX template and added immersive gestures by [samchugit](https://github.com/samchugit/Immersive_Gestural_Nav_Bar) as an option 22 | ### v6.7 23 | - Fix gesture option disappearing on later Android 11 builds 24 | ### v6.6 25 | - Hotfix for Android 11 beta 26 | ### v6.5 27 | - Lowered gesture area to 18dp to reduce conflicts with apps 28 | ### v6.4 29 | - Fix Android 11 support 30 | ### v6.2 31 | - Add support for Android 11/R (untested as Magisk isn't avaliable for Android R yet) 32 | ### v6.1 33 | - Block installation on MIUI as it's incompatible with the module 34 | ### v6.0 35 | - Added support for ROMs that use /vendor/overlays for their gesture overlays 36 | ### v5.0 37 | - Update to the latest Magisk module template and some minor clean ups in the code 38 | ### v4.0 39 | - Hopefully fixed the issue that made so uninstalling the module made gestures completely unavailable on some ROMs 40 | ### v3.0 41 | - Reduced conflict with some apps (like Gboard) by slightly lowering the gesture trigger area 42 | ### v2.0 43 | - Hide gesture bar correctly in landscape 44 | ### v1.0 45 | - Initial release 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NavTweaks (former Fullscreen/Immersive gestures) 10-15 2 | 3 | ![](https://i.imgur.com/vcXAreJ.png) 4 | 5 | This Magisk Module lets you tweak the appearence of Android 10-15's navigation bar. 6 | 7 | ## Requirements 8 | - Android 10-15 9 | - Magisk 20+ or KernelSU (likely Apatch as well) 10 | 11 | ## Installation 12 | 1. Flash the module 13 | 2. Select the desired options on the volume selector 14 | 3. Reboot 15 | 4. Enjoy! 16 | 17 | ## Disclaimer 18 | - GSI compabitility isn't guaranteed due to Magisk's inconsistent GSI support 19 | - Navbar coloring (getting light/dark) doesn't work on Android 11+ (using the Coloring fix/workaround option may fix it but it's not guaranteed) 20 | - KernelSU users need to add the SystemUI app to the root list (no need to grant root access, just make sure unmount modules is disabled to it) 21 | 22 | ## Links 23 | - [GitHub](https://github.com/Magisk-Modules-Repo/HideNavBar) 24 | - [Telegram Channel](https://t.me/danmgk) 25 | - [PayPal](https://www.paypal.com/donate/?hosted_button_id=BJAJW4755BXFY) 26 | - Revolut Tag @danielem47 27 | - Litecoin/LTC (ltc1qlens88rlj8vpjt9r4kt2mqrma6nq3v3aylgef6) 28 | - Etherium/ETH (0x2c8d02EA7202eaf9DAC14af6ABc178Cb34Cd3f00) 29 | 30 | ### Translation 31 | If you wish to have the installer translated to your language send me a text file containing all lines (inside ui_print in common/install.sh) either on Github or my Email 32 | 33 | Be sure to omit special symbols such as á,ã as Magisk/KSU's terminal window won't render them properly 34 | 35 | ## Special Thanks 36 | - [skittles9823](https://github.com/skittles9823) for his help with the initial install script 37 | 38 | - [Nebulart](https://t.me/nebulart) for the banner 39 | 40 | - [Samchugit](https://github.com/samchugit) for making the original immersive gestures module 41 | 42 | - [Zackptg5](https://github.com/Zackptg5) for the MMT-Ex template 43 | 44 | - [Topjohnwu](https://github.com/topjohnwu) for making Magisk 45 | 46 | - [RKBDI](https://t.me/RKBDI) for the Rboard module 47 | 48 | - [Gnonymous7](https://github.com/Gnonymous7) for some general inspiration 49 | 50 | - [AAGaming00](https://github.com/AAGaming00/aapt2) for his AAPT2 binary 51 | 52 | - All Custom ROMs who made my module an official feature in their ROM (AOSIP, Havoc & etc) 53 | -------------------------------------------------------------------------------- /common/addon/Volume-Key-Selector/README.md: -------------------------------------------------------------------------------- 1 | # Volume Key Selector - Addon that allows the use of the volume keys to select option in the installer 2 | 3 | ## Instructions: 4 | * Call chooseport whenever you want to call to use volume key check. The function returns true if user selected vol up and false if vol down. It'll wait 3 seconds for input by default 5 | Ex: 6 | ``` 7 | if chooseport; then 8 | echo "true" 9 | else 10 | echo "false" 11 | fi 12 | ``` 13 | * You can customize how many settings you want to wait for input. For example: 14 | * ``` 15 | if chooseport 5; then 16 | echo "true" 17 | fi 18 | ``` 19 | Will wait 5 seconds rather than the default of 3 20 | * If you want to use the bixby button on samsung galaxy devices, [check out this post here](https://forum.xda-developers.com/showpost.php?p=77908805&postcount=16) and modify the install.sh functions accordingly 21 | 22 | ## Notes: 23 | * Each volume key selector method will timeout after 3 seconds in the event of incompatibility or error 24 | 25 | ## Included Binaries/Credits: 26 | * [keycheck binary](https://github.com/sonyxperiadev/device-sony-common-init/tree/master/keycheck) compiled by me [here](https://github.com/Zackptg5/Keycheck) 27 | -------------------------------------------------------------------------------- /common/addon/Volume-Key-Selector/install.sh: -------------------------------------------------------------------------------- 1 | # External Tools 2 | chmod -R 0755 $MODPATH/common/addon/Volume-Key-Selector/tools 3 | 4 | chooseport_legacy() { 5 | # Keycheck binary by someone755 @Github, idea for code below by Zappo @xda-developers 6 | # Calling it first time detects previous input. Calling it second time will do what we want 7 | [ "$1" ] && local delay=$1 || local delay=100 8 | local error=false 9 | while true; do 10 | timeout 0 $MODPATH/common/addon/Volume-Key-Selector/tools/$ARCH32/keycheck 11 | timeout $delay $MODPATH/common/addon/Volume-Key-Selector/tools/$ARCH32/keycheck 12 | local sel=$? 13 | if [ $sel -eq 42 ]; then 14 | return 0 15 | elif [ $sel -eq 41 ]; then 16 | return 1 17 | elif $error; then 18 | abort "Volume key not detected!" 19 | else 20 | error=true 21 | echo "Volume key not detected. Try again" 22 | fi 23 | done 24 | } 25 | 26 | chooseport() { 27 | # Original idea by chainfire and ianmacd @xda-developers 28 | [ "$1" ] && local delay=$1 || local delay=1000 29 | local error=false 30 | while true; do 31 | local count=0 32 | while true; do 33 | timeout $delay /system/bin/getevent -lqc 1 2>&1 > $TMPDIR/events & 34 | sleep 1.5; count=$((count + 1)) 35 | if (`grep -q 'KEY_VOLUMEUP *DOWN' $TMPDIR/events`); then 36 | return 0 37 | elif (`grep -q 'KEY_VOLUMEDOWN *DOWN' $TMPDIR/events`); then 38 | return 1 39 | fi 40 | [ $count -gt 6 ] && break 41 | done 42 | if $error; then 43 | # abort "Volume key not detected!" 44 | echo "Volume key not detected. Trying keycheck method" 45 | export chooseport=chooseport_legacy VKSEL=chooseport_legacy 46 | chooseport_legacy $delay 47 | return $? 48 | else 49 | error=true 50 | echo "Volume key not detected. Try again" 51 | fi 52 | done 53 | } 54 | 55 | # Keep old variable from previous versions of this 56 | VKSEL=chooseport 57 | -------------------------------------------------------------------------------- /common/addon/Volume-Key-Selector/tools/arm/keycheck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/common/addon/Volume-Key-Selector/tools/arm/keycheck -------------------------------------------------------------------------------- /common/addon/Volume-Key-Selector/tools/x86/keycheck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/common/addon/Volume-Key-Selector/tools/x86/keycheck -------------------------------------------------------------------------------- /common/functions.sh: -------------------------------------------------------------------------------- 1 | ########################################################################################## 2 | # 3 | # MMT Extended Utility Functions 4 | # 5 | ########################################################################################## 6 | 7 | require_new_ksu() { 8 | ui_print "**********************************" 9 | ui_print " Please install KernelSU v0.6.6+! " 10 | ui_print "**********************************" 11 | } 12 | 13 | umount_mirrors() { 14 | [ -d $ORIGDIR ] || return 0 15 | for i in $ORIGDIR/*; do 16 | umount -l $i 2>/dev/null 17 | done 18 | rm -rf $ORIGDIR 2>/dev/null 19 | mount -o ro,remount $MAGISKTMP 20 | } 21 | 22 | cleanup() { 23 | $KSU && umount_mirrors 24 | rm -rf $MODPATH/common $MODPATH/install.zip 2>/dev/null 25 | } 26 | 27 | abort() { 28 | ui_print "$1" 29 | rm -rf $MODPATH 2>/dev/null 30 | cleanup 31 | rm -rf $TMPDIR 2>/dev/null 32 | exit 1 33 | } 34 | 35 | device_check() { 36 | local opt=`getopt -o dm -- "$@"` type=device 37 | eval set -- "$opt" 38 | while true; do 39 | case "$1" in 40 | -d) local type=device; shift;; 41 | -m) local type=manufacturer; shift;; 42 | --) shift; break;; 43 | *) abort "Invalid device_check argument $1! Aborting!";; 44 | esac 45 | done 46 | local prop=$(echo "$1" | tr '[:upper:]' '[:lower:]') 47 | for i in /system /vendor /odm /product; do 48 | if [ -f $i/build.prop ]; then 49 | for j in "ro.product.$type" "ro.build.$type" "ro.product.vendor.$type" "ro.vendor.product.$type"; do 50 | [ "$(sed -n "s/^$j=//p" $i/build.prop 2>/dev/null | head -n 1 | tr '[:upper:]' '[:lower:]')" == "$prop" ] && return 0 51 | done 52 | [ "$type" == "device" ] && [ "$(sed -n "s/^"ro.build.product"=//p" $i/build.prop 2>/dev/null | head -n 1 | tr '[:upper:]' '[:lower:]')" == "$prop" ] && return 0 53 | fi 54 | done 55 | return 1 56 | } 57 | 58 | cp_ch() { 59 | local opt=`getopt -o nr -- "$@"` BAK=true UBAK=true FOL=false 60 | eval set -- "$opt" 61 | while true; do 62 | case "$1" in 63 | -n) UBAK=false; shift;; 64 | -r) FOL=true; shift;; 65 | --) shift; break;; 66 | *) abort "Invalid cp_ch argument $1! Aborting!";; 67 | esac 68 | done 69 | local SRC="$1" DEST="$2" OFILES="$1" 70 | $FOL && local OFILES=$(find $SRC -type f 2>/dev/null) 71 | [ -z $3 ] && PERM=0644 || PERM=$3 72 | case "$DEST" in 73 | $TMPDIR/*|$MODULEROOT/*|$NVBASE/modules/$MODID/*) BAK=false;; 74 | esac 75 | for OFILE in ${OFILES}; do 76 | if $FOL; then 77 | if [ "$(basename $SRC)" == "$(basename $DEST)" ]; then 78 | local FILE=$(echo $OFILE | sed "s|$SRC|$DEST|") 79 | else 80 | local FILE=$(echo $OFILE | sed "s|$SRC|$DEST/$(basename $SRC)|") 81 | fi 82 | else 83 | [ -d "$DEST" ] && local FILE="$DEST/$(basename $SRC)" || local FILE="$DEST" 84 | fi 85 | if $BAK && $UBAK; then 86 | [ ! "$(grep "$FILE$" $INFO 2>/dev/null)" ] && echo "$FILE" >> $INFO 87 | [ -f "$FILE" -a ! -f "$FILE~" ] && { mv -f $FILE $FILE~; echo "$FILE~" >> $INFO; } 88 | elif $BAK; then 89 | [ ! "$(grep "$FILE$" $INFO 2>/dev/null)" ] && echo "$FILE" >> $INFO 90 | fi 91 | install -D -m $PERM "$OFILE" "$FILE" 92 | done 93 | } 94 | 95 | install_script() { 96 | case "$1" in 97 | -b) shift; 98 | if $KSU; then 99 | local INPATH=$NVBASE/boot-completed.d 100 | else 101 | local INPATH=$SERVICED 102 | sed -i -e '1i (\nwhile [ "$(getprop sys.boot_completed)" != "1" ]; do\n sleep 1\ndone\nsleep 3\n' -e '$a)&' $1 103 | fi;; 104 | -l) shift; local INPATH=$SERVICED;; 105 | -p) shift; local INPATH=$POSTFSDATAD;; 106 | *) local INPATH=$SERVICED;; 107 | esac 108 | [ "$(grep "#!/system/bin/sh" $1)" ] || sed -i "1i #!/system/bin/sh" $1 109 | local i; for i in "MODPATH" "LIBDIR" "MODID" "INFO" "MODDIR"; do 110 | case $i in 111 | "MODPATH") sed -i "1a $i=$NVBASE/modules/$MODID" $1;; 112 | "MODDIR") sed -i "1a $i=\${0%/*}" $1;; 113 | *) sed -i "1a $i=$(eval echo \$$i)" $1;; 114 | esac 115 | done 116 | case $1 in 117 | "$MODPATH/post-fs-data.sh"|"$MODPATH/service.sh"|"$MODPATH/uninstall.sh") sed -i "s|^MODPATH=.*|MODPATH=\$MODDIR|" $1;; # MODPATH=MODDIR for these scripts (located in module directory) 118 | "$MODPATH/boot-completed.sh") $KSU && sed -i "s|^MODPATH=.*|MODPATH=\$MODDIR|" $1 || { cp_ch -n $1 $INPATH/$MODID-$(basename $1) 0755; rm -f $MODPATH/boot-completed.sh; };; 119 | *) cp_ch -n $1 $INPATH/$(basename $1) 0755;; 120 | esac 121 | } 122 | 123 | prop_process() { 124 | sed -i -e "/^#/d" -e "/^ *$/d" $1 125 | [ -f $MODPATH/system.prop ] || mktouch $MODPATH/system.prop 126 | while read LINE; do 127 | echo "$LINE" >> $MODPATH/system.prop 128 | done < $1 129 | } 130 | 131 | mount_mirrors() { 132 | mount -o rw,remount $MAGISKTMP 133 | mkdir -p $ORIGDIR/system 134 | if $SYSTEM_ROOT; then 135 | mkdir -p $ORIGDIR/system_root 136 | mount -o ro / $ORIGDIR/system_root 137 | mount -o bind $ORIGDIR/system_root/system $ORIGDIR/system 138 | else 139 | mount -o ro /system $ORIGDIR/system 140 | fi 141 | for i in /vendor $PARTITIONS; do 142 | [ ! -d $i -o -d $ORIGDIR$i ] && continue 143 | mkdir -p $ORIGDIR$i 144 | mount -o ro $i $ORIGDIR$i 145 | done 146 | } 147 | 148 | # Credits 149 | ui_print "**************************************" 150 | ui_print "* MMT Extended by Zackptg5 @ XDA *" 151 | ui_print "**************************************" 152 | ui_print " " 153 | 154 | # Check for min/max api version 155 | [ -z $MINAPI ] || { [ $API -lt $MINAPI ] && abort "! Your system API of $API is less than the minimum api of $MINAPI! Aborting!"; } 156 | [ -z $MAXAPI ] || { [ $API -gt $MAXAPI ] && abort "! Your system API of $API is greater than the maximum api of $MAXAPI! Aborting!"; } 157 | 158 | # Min KSU v0.6.6 159 | [ -z $KSU ] && KSU=false 160 | $KSU && { [ $KSU_VER_CODE -lt 11184 ] && require_new_ksu; } 161 | # APatch is fork of KSU, treat same 162 | [ -z $APATCH ] && APATCH=false 163 | [ "$APATCH" == "true" ] && KSU=true 164 | 165 | # Start debug 166 | set -x 167 | 168 | # Set variables 169 | [ -z $ARCH32 ] && ARCH32="$(echo $ABI32 | cut -c-3)" 170 | [ $API -lt 26 ] && DYNLIB=false 171 | [ -z $DYNLIB ] && DYNLIB=false 172 | [ -z $PARTOVER ] && PARTOVER=false 173 | [ -z $SYSTEM_ROOT ] && SYSTEM_ROOT=$SYSTEM_AS_ROOT # renamed in magisk v26.3 174 | [ -z $SERVICED ] && SERVICED=$NVBASE/service.d # removed in magisk v26.2 175 | [ -z $POSTFSDATAD ] && POSTFSDATAD=$NVBASE/post-fs-data.d # removed in magisk v26.2 176 | INFO=$NVBASE/modules/.$MODID-files 177 | if $KSU; then 178 | MAGISKTMP="/mnt" 179 | ORIGDIR="$MAGISKTMP/mirror" 180 | mount_mirrors 181 | elif [ "$(magisk --path 2>/dev/null)" ]; then 182 | ORIGDIR="$(magisk --path 2>/dev/null)/.magisk/mirror" 183 | elif [ "$(echo $MAGISKTMP | awk -F/ '{ print $NF}')" == ".magisk" ]; then 184 | ORIGDIR="$MAGISKTMP/mirror" 185 | else 186 | ORIGDIR="$MAGISKTMP/.magisk/mirror" 187 | fi 188 | if $DYNLIB; then 189 | LIBPATCH="\/vendor" 190 | LIBDIR=/system/vendor 191 | else 192 | LIBPATCH="\/system" 193 | LIBDIR=/system 194 | fi 195 | # Detect extra partition compatibility (KernelSU or Magisk Delta) 196 | EXTRAPART=false 197 | if $KSU || [ "$(echo $MAGISK_VER | awk -F- '{ print $NF}')" == "delta" ]; then 198 | EXTRAPART=true 199 | elif ! $PARTOVER; then 200 | unset PARTITIONS 201 | fi 202 | 203 | if ! $BOOTMODE; then 204 | ui_print "- Only uninstall is supported in recovery" 205 | ui_print " Uninstalling!" 206 | touch $MODPATH/remove 207 | [ -s $INFO ] && install_script $MODPATH/uninstall.sh || rm -f $INFO $MODPATH/uninstall.sh 208 | recovery_cleanup 209 | cleanup 210 | rm -rf $NVBASE/modules_update/$MODID $TMPDIR 2>/dev/null 211 | exit 0 212 | fi 213 | 214 | # Extract files 215 | ui_print "- Extracting module files" 216 | unzip -o "$ZIPFILE" -x 'META-INF/*' 'common/functions.sh' -d $MODPATH >&2 217 | [ -f "$MODPATH/common/addon.tar.xz" ] && tar -xf $MODPATH/common/addon.tar.xz -C $MODPATH/common 2>/dev/null 218 | 219 | # Run addons 220 | if [ "$(ls -A $MODPATH/common/addon/*/install.sh 2>/dev/null)" ]; then 221 | ui_print " "; ui_print "- Running Addons -" 222 | for i in $MODPATH/common/addon/*/install.sh; do 223 | ui_print " Running $(echo $i | sed -r "s|$MODPATH/common/addon/(.*)/install.sh|\1|")..." 224 | . $i 225 | done 226 | fi 227 | 228 | # Remove files outside of module directory 229 | ui_print "- Removing old files" 230 | 231 | if [ -f $INFO ]; then 232 | while read LINE; do 233 | if [ "$(echo -n $LINE | tail -c 1)" == "~" ]; then 234 | continue 235 | elif [ -f "$LINE~" ]; then 236 | mv -f $LINE~ $LINE 237 | else 238 | rm -f $LINE 239 | while true; do 240 | LINE=$(dirname $LINE) 241 | [ "$(ls -A $LINE 2>/dev/null)" ] && break 1 || rm -rf $LINE 242 | done 243 | fi 244 | done < $INFO 245 | rm -f $INFO 246 | fi 247 | 248 | ### Install 249 | ui_print "- Installing" 250 | 251 | [ -f "$MODPATH/common/install.sh" ] && . $MODPATH/common/install.sh 252 | 253 | ui_print " Installing for $ARCH SDK $API device..." 254 | # Remove comments from files and place them, add blank line to end if not already present 255 | for i in $(find $MODPATH -type f -name "*.sh" -o -name "*.prop" -o -name "*.rule"); do 256 | [ -f $i ] && { sed -i -e "/^#/d" -e "/^ *$/d" $i; [ "$(tail -1 $i)" ] && echo "" >> $i; } || continue 257 | case $i in 258 | "$MODPATH/boot-completed.sh") install_script -b $i;; 259 | "$MODPATH/service.sh") install_script -l $i;; 260 | "$MODPATH/post-fs-data.sh") install_script -p $i;; 261 | "$MODPATH/uninstall.sh") if [ -s $INFO ] || [ "$(head -n1 $MODPATH/uninstall.sh)" != "# Don't modify anything after this" ]; then 262 | cp -f $MODPATH/uninstall.sh $MODPATH/$MODID-uninstall.sh # Fallback script in case module manually deleted 263 | sed -i "1i[ -d \"\$MODPATH\" ] && exit 0" $MODPATH/$MODID-uninstall.sh 264 | echo 'rm -f $0' >> $MODPATH/$MODID-uninstall.sh 265 | install_script -l $MODPATH/$MODID-uninstall.sh 266 | rm -f $MODPATH/$MODID-uninstall.sh 267 | install_script $MODPATH/uninstall.sh 268 | else 269 | rm -f $INFO $MODPATH/uninstall.sh 270 | fi;; 271 | esac 272 | done 273 | 274 | $IS64BIT || for i in $(find $MODPATH/system -type d -name "lib64"); do rm -rf $i 2>/dev/null; done 275 | [ -d "/system/priv-app" ] || mv -f $MODPATH/system/priv-app $MODPATH/system/app 2>/dev/null 276 | [ -d "/system/xbin" ] || mv -f $MODPATH/system/xbin $MODPATH/system/bin 2>/dev/null 277 | if $DYNLIB; then 278 | for FILE in $(find $MODPATH/system/lib* -type f 2>/dev/null | sed "s|$MODPATH/system/||"); do 279 | [ -s $MODPATH/system/$FILE ] || continue 280 | case $FILE in 281 | lib*/modules/*) continue;; 282 | esac 283 | mkdir -p $(dirname $MODPATH/system/vendor/$FILE) 284 | mv -f $MODPATH/system/$FILE $MODPATH/system/vendor/$FILE 285 | [ "$(ls -A `dirname $MODPATH/system/$FILE`)" ] || rm -rf `dirname $MODPATH/system/$FILE` 286 | done 287 | # Delete empty lib folders (busybox find doesn't have this capability) 288 | toybox find $MODPATH/system/lib* -type d -empty -delete >/dev/null 2>&1 289 | fi 290 | 291 | # Set permissions 292 | ui_print " " 293 | ui_print "- Setting Permissions" 294 | set_perm_recursive $MODPATH 0 0 0755 0644 295 | for i in /system/vendor /vendor /system/vendor/app /vendor/app /system/vendor/etc /vendor/etc /system/odm/etc /odm/etc /system/vendor/odm/etc /vendor/odm/etc /system/vendor/overlay /vendor/overlay; do 296 | if [ -d "$MODPATH$i" ] && [ ! -L "$MODPATH$i" ]; then 297 | case $i in 298 | *"/vendor") set_perm_recursive $MODPATH$i 0 0 0755 0644 u:object_r:vendor_file:s0;; 299 | *"/app") set_perm_recursive $MODPATH$i 0 0 0755 0644 u:object_r:vendor_app_file:s0;; 300 | *"/overlay") set_perm_recursive $MODPATH$i 0 0 0755 0644 u:object_r:vendor_overlay_file:s0;; 301 | *"/etc") set_perm_recursive $MODPATH$i 0 2000 0755 0644 u:object_r:vendor_configs_file:s0;; 302 | esac 303 | fi 304 | done 305 | for i in $(find $MODPATH/system/vendor $MODPATH/vendor -type f -name *".apk" 2>/dev/null); do 306 | chcon u:object_r:vendor_app_file:s0 $i 307 | done 308 | set_permissions 309 | 310 | # Complete install 311 | cleanup 312 | -------------------------------------------------------------------------------- /common/install.sh: -------------------------------------------------------------------------------- 1 | ########################################################################################## 2 | # Custom Logic 3 | ######################################################### ########################################################################################## 4 | # Custom Logic 5 | ########################################################################################## 6 | 7 | #Detect and use compatible AAPT 8 | chmod +x "$MODPATH"/tools/* 9 | if $($MODPATH/tools/aapt2 version >/dev/null 2>&1); then 10 | AAPT=aapt2 11 | elif $($MODPATH/tools/aapt264 version >/dev/null 2>&1); then 12 | AAPT=aapt264 13 | fi 14 | cp -af "$MODPATH"/tools/$AAPT "$MODPATH"/aapt2 15 | mkdir -p "$MODPATH"/Mods/Q/NavigationBarModeGestura/ 16 | mkdir -p "$MODPATH"/Mods/Qtmp/ 17 | mkdir -p "$MODPATH"/system/app/ 18 | cp -rf "$MODPATH"/Mods/QS/* "$MODPATH"/Mods/Qtmp/ 19 | cp -rf "$MODPATH"/tools/service.sh "$MODPATH" 20 | 21 | #if [ -d /system/xbin/ ] && [ ! -f /system/xbin/empty ] ; then 22 | # mkdir -p "$MODPATH"/system/xbin/ 23 | # cp -rf "$MODPATH"/tools/hn "$MODPATH"/system/xbin/ 24 | # cp -rf "$MODPATH"/tools/hnr "$MODPATH"/system/xbin/ 25 | #else 26 | # mkdir -p "$MODPATH"/system/bin/ 27 | # cp -rf "$MODPATH"/tools/hn "$MODPATH"/system/bin/ 28 | # cp -rf "$MODPATH"/tools/hnr "$MODPATH"/system/bin/ 29 | #fi 30 | 31 | #Find and delete conflicting overlays/package-cache/resource-cache 32 | find /data/adb/modules -type d -not -path "*HideNavBar/system*" -iname "*navigationbarmodegestural*" -exec rm -rf {} \; 2>/dev/null 33 | find /data/system/package_cache -type f -iname "*NavigationBarMode*" -exec rm -rf {} \; 2>/dev/null 34 | find /data/resource-cache -type f -iname "*NavigationBarMode*" -exec rm -rf {} \; 2>/dev/null 35 | find /data/resource-cache -type f -iname "*P" -exec rm -rf {} \; 2>/dev/null 36 | find /data/resource-cache -type f -iname "*HL" -exec rm -rf {} \; 2>/dev/null 37 | find /data/resource-cache -type f -iname "*L" -exec rm -rf {} \; 2>/dev/null 38 | find /data/resource-cache -type f -iname "*PH" -exec rm -rf {} \; 2>/dev/null 39 | 40 | #Detect system language for translation 41 | LANG=$(settings get system system_locales) 42 | LANGS=$(echo "${LANG:0:2}" ) 43 | if [ -f "$MODPATH"/Lang/"$LANGS"/"$LANGS"10.txt ]; then 44 | : 45 | else 46 | LANGS=en 47 | fi 48 | 49 | LNG="$MODPATH"/Lang/"$LANGS"/"$LANGS" 50 | 51 | #Standard volume selector stuff but with translations 52 | #Hiding navbar or not 53 | cat "$LNG"10.txt 54 | if $VKSEL; then 55 | BH=0.0 56 | SS=true 57 | HIDE=true 58 | VAR3=a 59 | else 60 | FH=48.0 61 | BH=18.0 62 | SS=true 63 | fi 64 | 65 | #Hiding keyboard bar 66 | if [ "$HIDE" = true ] ; then 67 | cat "$LNG"11.txt 68 | if $VKSEL; then 69 | FH=0.0 70 | SS=true 71 | HKB=true 72 | VAR5=HL 73 | VAR4=PH 74 | VAR3=a 75 | else 76 | FH=48.0 77 | SS=true 78 | fi 79 | fi 80 | 81 | #Hide pill 82 | if [ "$HIDE" = true ] ; then 83 | if [ "$FH" = 48.0 ] ; then 84 | cat "$LNG"2.txt 85 | if $VKSEL; then 86 | VAR3=HP 87 | VAR4=PH 88 | VAR5=HL 89 | HD=true 90 | else 91 | VAR3=a 92 | VAR4=a 93 | VAR5=a 94 | fi 95 | fi 96 | fi 97 | 98 | #Hide Keyboard buttons 99 | if [ "$API" -ge 29 ]; then 100 | if [ "$FH" = 48.0 ] ; then 101 | cat "$LNG"8.txt 102 | if $VKSEL; then 103 | HKB=true 104 | else 105 | HKB=false 106 | fi 107 | fi 108 | else 109 | : 110 | fi 111 | 112 | #Small keyboard bar 113 | if [ "$FH" = 48.0 ] ; then 114 | cat "$LNG"3.txt 115 | if $VKSEL; then 116 | FH=16.0 117 | else 118 | : 119 | fi 120 | fi 121 | 122 | #Disabling bottom gestures 123 | if [ "$HIDE" = true ] ; then 124 | cat "$LNG"12.txt 125 | if $VKSEL; then 126 | GS=0.0 127 | SS=false 128 | else 129 | GS=32.0 130 | fi 131 | fi 132 | 133 | #Gesture sensitivity 134 | if [ "$SS" = true ] ; then 135 | cat "$LNG"4.txt 136 | if $VKSEL; then 137 | GS=18.0 138 | else 139 | GS=32.0 140 | fi 141 | fi 142 | 143 | #Gcam fix 144 | if [ "$SS" = true ] ; then 145 | cat "$LNG"9.txt 146 | if $VKSEL; then 147 | if [ "$FH" = 0 ] ; then 148 | BH=1.0 149 | FH=1.0 150 | else 151 | BH=1.0 152 | fi 153 | else 154 | : 155 | fi 156 | fi 157 | 158 | #Disable back gesture on Q 159 | if [ "$API" -eq 29 ] && [ "$FH" = 0.0 ] ; then 160 | cat "$LNG"5.txt 161 | if $VKSEL; then 162 | cp -rf "$MODPATH"/Mods/DBGQ/* "$MODPATH" 163 | else 164 | : 165 | fi 166 | fi 167 | 168 | #Disable back gesture on R+ 169 | #Reenable back gesture if no is selected 170 | if [ "$API" -ge 30 ] ; then 171 | cat "$LNG"5.txt 172 | if $VKSEL; then 173 | DBG=true 174 | else 175 | DBG=false 176 | settings delete secure back_gesture_inset_scale_left &>/dev/null 177 | settings delete secure back_gesture_inset_scale_right &>/dev/null 178 | fi 179 | fi 180 | 181 | #Left or both sides 182 | if [ "$DBG" = true ] ; then 183 | cat "$LNG"6.txt 184 | if $VKSEL; then 185 | settings put secure back_gesture_inset_scale_left -1 &>/dev/null 186 | else 187 | settings put secure back_gesture_inset_scale_left -1 &>/dev/null 188 | settings put secure back_gesture_inset_scale_right -1 &>/dev/null 189 | fi 190 | fi 191 | 192 | #Back gesture warning 193 | if [ "$DBG" = true ] ; then 194 | cat "$LNG"7.txt 195 | fi 196 | 197 | #Write to overlay resources 198 | RES="$MODPATH"/Mods/Qtmp/res/values/dimens.xml 199 | LRES="$MODPATH"/Mods/HPS1/res/values/dimens.xml 200 | LRESS="$MODPATH"/Mods/HPS2/res/values/dimens.xml 201 | 202 | #Folder creation and etc 203 | if [ "$API" -ge 29 ]; then 204 | sed -i s/0.3/"$BH"/g "$RES" 205 | sed -i s/0.2/"$BH"/g "$LRES" 206 | sed -i s/0.2/"$BH"/g "$LRESS" 207 | sed -i s/0.1/"$FH"/g "$LRES" 208 | sed -i s/0.1/"$FH"/g "$LRESS" 209 | sed -i s/0.1/"$FH"/g "$RES" 210 | sed -i s/0.2/"$GS"/g "$RES" 211 | mkdir -p "$MODPATH"/Mods/Qtmp/res/values-sw900dp/ 212 | mkdir -p "$MODPATH"/Mods/Qtmp/res/values-sw600dp/ 213 | mkdir -p "$MODPATH"/Mods/HPS1/res/values-sw600dp-land/ 214 | mkdir -p "$MODPATH"/Mods/HPS2/res/values-sw600dp-land/ 215 | mkdir -p "$MODPATH"/Mods/Qtmp/res/values-440dpi/ 216 | mkdir -p "$MODPATH"/Mods/Qtmp/res/values-xhdpi/ 217 | mkdir -p "$MODPATH"/Mods/Qtmp/res/values-xxhdpi/ 218 | mkdir -p "$MODPATH"/Mods/Qtmp/res/values-xxxhdpi/ 219 | mkdir -p "$MODPATH"/Mods/P/ 220 | mkdir -p "$MODPATH"/Mods/L/ 221 | mkdir -p "$MODPATH"/Mods/HTK/ 222 | mkdir "$MODPATH"/compiled 223 | mkdir "$MODPATH"/compiled2 224 | mkdir "$MODPATH"/compiled3 225 | mkdir "$MODPATH"/compiled6 226 | cp -rf "$MODPATH"/Mods/Qtmp/res/values/dimens.xml "$MODPATH"/Mods/Qtmp/res/values-sw900dp/ 227 | cp -rf "$MODPATH"/Mods/HPS1/res/values/dimens.xml "$MODPATH"/Mods/HPS1/res/values-sw600dp-land/ 228 | cp -rf "$MODPATH"/Mods/HPS2/res/values/dimens.xml "$MODPATH"/Mods/HPS2/res/values-sw600dp-land/ 229 | cp -rf "$MODPATH"/Mods/Qtmp/res/values/dimens.xml "$MODPATH"/Mods/Qtmp/res/values-sw600dp/ 230 | cp -rf "$MODPATH"/Mods/Qtmp/res/values/dimens.xml "$MODPATH"/Mods/Qtmp/res/values-440dpi/ 231 | cp -rf "$MODPATH"/Mods/Qtmp/res/values/dimens.xml "$MODPATH"/Mods/Qtmp/res/values-xhdpi/ 232 | cp -rf "$MODPATH"/Mods/Qtmp/res/values/dimens.xml "$MODPATH"/Mods/Qtmp/res/values-xxhdpi/ 233 | cp -rf "$MODPATH"/Mods/Qtmp/res/values/dimens.xml "$MODPATH"/Mods/Qtmp/res/values-xxxhdpi/ 234 | fi 235 | 236 | #Detect original overlay location 237 | #OP=$(find /system/overlay /product/overlay /vendor/overlay /system_ext/overlay -type d -iname "navigationbarmodegestural" | cut -d 'N' -f1) 238 | 239 | #Building overlays 240 | if [ "$API" -ge 29 ]; then 241 | "$MODPATH"/aapt2 compile -v --dir "$MODPATH"/Mods/Qtmp/res -o "$MODPATH"/compiled && \ 242 | "$MODPATH"/aapt2 link -v --no-resource-deduping -o "$MODPATH"/unsigned.apk -I /system/framework/framework-res.apk \ 243 | --manifest "$MODPATH"/Mods/Qtmp/AndroidManifest.xml "$MODPATH"/compiled/* 244 | 245 | "$MODPATH"/aapt2 compile -v --dir "$MODPATH"/Mods/HPS1/res -o "$MODPATH"/compiled2 && \ 246 | "$MODPATH"/aapt2 link -v --no-resource-deduping -o "$MODPATH"/unsigned2.apk -I /system/framework/framework-res.apk \ 247 | --manifest "$MODPATH"/Mods/HPS1/AndroidManifest.xml "$MODPATH"/compiled2/* 248 | 249 | "$MODPATH"/aapt2 compile -v --dir "$MODPATH"/Mods/HPS2/res -o "$MODPATH"/compiled3 && \ 250 | "$MODPATH"/aapt2 link -v --no-resource-deduping -o "$MODPATH"/unsigned3.apk -I /system/framework/framework-res.apk \ 251 | --manifest "$MODPATH"/Mods/HPS2/AndroidManifest.xml "$MODPATH"/compiled3/* 252 | fi 253 | 254 | if [ "$HKB" = true ]; then 255 | "$MODPATH"/aapt2 compile -v --dir "$MODPATH"/Mods/HKBT/res -o "$MODPATH"/compiled6 && \ 256 | "$MODPATH"/aapt2 link -v --no-resource-deduping -o "$MODPATH"/unsigned6.apk -I /system/framework/framework-res.apk \ 257 | --manifest "$MODPATH"/Mods/HKBT/AndroidManifest.xml "$MODPATH"/compiled6/* 258 | 259 | "$MODPATH"/tools/zipsigner "$MODPATH"/unsigned6.apk "$MODPATH"/Mods/HTK/HTK.apk 260 | 261 | cp -rf "$MODPATH"/Mods/HTK/ "$MODPATH"/system/app/ 262 | fi 263 | 264 | #Signing 265 | if [ "$API" -ge 30 ]; then 266 | "$MODPATH"/tools/zipsigner "$MODPATH"/unsigned.apk "$MODPATH"/Mods/Q/NavigationBarModeGestura/NavigationBarModeGesturalOverlay.apk 267 | "$MODPATH"/tools/zipsigner "$MODPATH"/unsigned2.apk "$MODPATH"/Mods/P/Pixel.apk 268 | "$MODPATH"/tools/zipsigner "$MODPATH"/unsigned3.apk "$MODPATH"/Mods/L/L3.apk 269 | elif [ "$API" -eq 29 ] ; then 270 | "$MODPATH"/tools/zipsignero "$MODPATH"/unsigned.apk "$MODPATH"/Mods/Q/NavigationBarModeGestura/NavigationBarModeGesturalOverlay.apk 271 | fi 272 | 273 | #Install overlays 274 | if [ "$API" -ge 29 ]; then 275 | mkdir -p "$MODPATH"/system"$OP" 276 | cp -rf "$MODPATH"/Mods/Q/* "$MODPATH"/Mods/P/ "$MODPATH"/Mods/L/ "$MODPATH"/Mods/"$VAR3"/ "$MODPATH"/Mods/"$VAR4"/ "$MODPATH"/Mods/"$VAR5"/ "$MODPATH"/system/app/ 277 | if [ "$HKB" = true ]; then 278 | cp -rf "$MODPATH"/Mods/HKB/ "$MODPATH"/system/app/ 279 | fi 280 | fi 281 | 282 | #Cleanup 283 | rm -rf "$MODPATH"/system/app/Mods/ 284 | rm -rf "$MODPATH"/system/app/dummy 285 | rm -rf "$MODPATH"/compiled/ 286 | rm -rf "$MODPATH"/compiled2/ 287 | rm -rf "$MODPATH"/compiled3/ 288 | rm -rf "$MODPATH"/compiled6/ 289 | rm -rf "$MODPATH"/unsigned.apk 290 | rm -rf "$MODPATH"/unsigned2.apk 291 | rm -rf "$MODPATH"/unsigned3.apk 292 | rm -rf "$MODPATH"/unsigned6.apk 293 | 294 | if [ -d "/data/adb/ksud" ]; then 295 | ui_print "" 296 | ui_print " For KernelSU make sure to give SystemUI superuser access" 297 | ui_print " or make sure unmount modules is disabled to SystemUI in the superuser menu" 298 | fi 299 | 300 | 301 | ui_print " Complete" 302 | 303 | chmod 755 /data/adb/modules/HideNavBar/ 304 | 305 | -------------------------------------------------------------------------------- /customize.sh: -------------------------------------------------------------------------------- 1 | ########################################################################################## 2 | # 3 | # MMT Extended Config Script 4 | # 5 | ########################################################################################## 6 | 7 | ########################################################################################## 8 | # Config Flags 9 | ########################################################################################## 10 | 11 | # Uncomment and change 'MINAPI' and 'MAXAPI' to the minimum and maximum android version for your mod 12 | # Uncomment DYNLIB if you want libs installed to vendor for oreo+ and system for anything older 13 | # Uncomment PARTOVER if you have a workaround in place for extra partitions in regular magisk install (can mount them yourself - you will need to do this each boot as well). If unsure, keep commented 14 | # Uncomment PARTITIONS and list additional partitions you will be modifying (other than system and vendor), for example: PARTITIONS="/odm /product /system_ext" 15 | MINAPI=29 16 | MAXAPI=99 17 | #DYNLIB=true 18 | #PARTOVER=true 19 | #PARTITIONS="" 20 | 21 | ########################################################################################## 22 | # Replace list 23 | ########################################################################################## 24 | 25 | # List all directories you want to directly replace in the system 26 | # Check the documentations for more info why you would need this 27 | 28 | # Construct your list in the following format 29 | # This is an example 30 | REPLACE_EXAMPLE=" 31 | /system/app/Youtube 32 | /system/priv-app/SystemUI 33 | /system/priv-app/Settings 34 | /system/framework 35 | " 36 | 37 | # Construct your own list here 38 | REPLACE=" 39 | " 40 | 41 | ########################################################################################## 42 | # Permissions 43 | ########################################################################################## 44 | 45 | set_permissions() { 46 | set_perm_recursive $MODPATH/tools 0 0 0755 0755 47 | set_perm_recursive $MODPATH/system/bin 0 0 0755 0755 48 | set_perm_recursive $MODPATH/system/xbin 0 0 0755 0755 49 | } 50 | 51 | ########################################################################################## 52 | # MMT Extended Logic - Don't modify anything after this 53 | ########################################################################################## 54 | 55 | SKIPUNZIP=1 56 | unzip -qjo "$ZIPFILE" 'common/functions.sh' -d $TMPDIR >&2 57 | . $TMPDIR/functions.sh 58 | -------------------------------------------------------------------------------- /module.prop: -------------------------------------------------------------------------------- 1 | id=HideNavBar 2 | name=NavTweaks (former Fullscren/Immersive gestures) (Q-U) 3 | version=v27.8 4 | versionCode=69 5 | author=DanGLES3 6 | description=Customize Android 10-14's navigation gestures 7 | support=https://t.me/dnmgsk 8 | donate=https://www.paypal.com/donate/?hosted_button_id=BJAJW4755BXFY 9 | -------------------------------------------------------------------------------- /tools/META-INF/com/google/android/update-binary: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | ################# 4 | # Initialization 5 | ################# 6 | 7 | umask 022 8 | 9 | # echo before loading util_functions 10 | ui_print() { echo "$1"; } 11 | 12 | require_new_magisk() { 13 | ui_print "*******************************" 14 | ui_print " Please install Magisk v20.0+! " 15 | ui_print "*******************************" 16 | exit 1 17 | } 18 | 19 | ######################### 20 | # Load util_functions.sh 21 | ######################### 22 | 23 | OUTFD=$2 24 | ZIPFILE=$3 25 | 26 | mount /data 2>/dev/null 27 | 28 | [ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk 29 | . /data/adb/magisk/util_functions.sh 30 | [ $MAGISK_VER_CODE -lt 20000 ] && require_new_magisk 31 | 32 | if [ $MAGISK_VER_CODE -ge 20400 ]; then 33 | # New Magisk have complete installation logic within util_functions.sh 34 | install_module 35 | exit 0 36 | fi 37 | 38 | ################# 39 | # Legacy Support 40 | ################# 41 | 42 | TMPDIR=/dev/tmp 43 | PERSISTDIR=/sbin/.magisk/mirror/persist 44 | 45 | is_legacy_script() { 46 | unzip -l "$ZIPFILE" install.sh | grep -q install.sh 47 | return $? 48 | } 49 | 50 | print_modname() { 51 | local len 52 | len=`echo -n $MODNAME | wc -c` 53 | len=$((len + 2)) 54 | local pounds=`printf "%${len}s" | tr ' ' '*'` 55 | ui_print "$pounds" 56 | ui_print " $MODNAME " 57 | ui_print "$pounds" 58 | ui_print "*******************" 59 | ui_print " Powered by Magisk " 60 | ui_print "*******************" 61 | } 62 | 63 | # Override abort as old scripts have some issues 64 | abort() { 65 | ui_print "$1" 66 | $BOOTMODE || recovery_cleanup 67 | [ -n $MODPATH ] && rm -rf $MODPATH 68 | rm -rf $TMPDIR 69 | exit 1 70 | } 71 | 72 | rm -rf $TMPDIR 2>/dev/null 73 | mkdir -p $TMPDIR 74 | 75 | # Preperation for flashable zips 76 | setup_flashable 77 | 78 | # Mount partitions 79 | mount_partitions 80 | 81 | # Detect version and architecture 82 | api_level_arch_detect 83 | 84 | # Setup busybox and binaries 85 | $BOOTMODE && boot_actions || recovery_actions 86 | 87 | ############## 88 | # Preparation 89 | ############## 90 | 91 | # Extract prop file 92 | unzip -o "$ZIPFILE" module.prop -d $TMPDIR >&2 93 | [ ! -f $TMPDIR/module.prop ] && abort "! Unable to extract zip file!" 94 | 95 | $BOOTMODE && MODDIRNAME=modules_update || MODDIRNAME=modules 96 | MODULEROOT=$NVBASE/$MODDIRNAME 97 | MODID=`grep_prop id $TMPDIR/module.prop` 98 | MODPATH=$MODULEROOT/$MODID 99 | MODNAME=`grep_prop name $TMPDIR/module.prop` 100 | 101 | # Create mod paths 102 | rm -rf $MODPATH 2>/dev/null 103 | mkdir -p $MODPATH 104 | 105 | ########## 106 | # Install 107 | ########## 108 | 109 | if is_legacy_script; then 110 | unzip -oj "$ZIPFILE" module.prop install.sh uninstall.sh 'common/*' -d $TMPDIR >&2 111 | 112 | # Load install script 113 | . $TMPDIR/install.sh 114 | 115 | # Callbacks 116 | print_modname 117 | on_install 118 | 119 | # Custom uninstaller 120 | [ -f $TMPDIR/uninstall.sh ] && cp -af $TMPDIR/uninstall.sh $MODPATH/uninstall.sh 121 | 122 | # Skip mount 123 | $SKIPMOUNT && touch $MODPATH/skip_mount 124 | 125 | # prop file 126 | $PROPFILE && cp -af $TMPDIR/system.prop $MODPATH/system.prop 127 | 128 | # Module info 129 | cp -af $TMPDIR/module.prop $MODPATH/module.prop 130 | 131 | # post-fs-data scripts 132 | $POSTFSDATA && cp -af $TMPDIR/post-fs-data.sh $MODPATH/post-fs-data.sh 133 | 134 | # service scripts 135 | $LATESTARTSERVICE && cp -af $TMPDIR/service.sh $MODPATH/service.sh 136 | 137 | ui_print "- Setting permissions" 138 | set_permissions 139 | else 140 | print_modname 141 | 142 | unzip -o "$ZIPFILE" customize.sh -d $MODPATH >&2 143 | 144 | if ! grep -q '^SKIPUNZIP=1$' $MODPATH/customize.sh 2>/dev/null; then 145 | ui_print "- Extracting module files" 146 | unzip -o "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2 147 | 148 | # Default permissions 149 | set_perm_recursive $MODPATH 0 0 0755 0644 150 | fi 151 | 152 | # Load customization script 153 | [ -f $MODPATH/customize.sh ] && . $MODPATH/customize.sh 154 | fi 155 | 156 | # Handle replace folders 157 | for TARGET in $REPLACE; do 158 | ui_print "- Replace target: $TARGET" 159 | mktouch $MODPATH$TARGET/.replace 160 | done 161 | 162 | if $BOOTMODE; then 163 | # Update info for Magisk Manager 164 | mktouch $NVBASE/modules/$MODID/update 165 | cp -af $MODPATH/module.prop $NVBASE/modules/$MODID/module.prop 166 | fi 167 | 168 | # Copy over custom sepolicy rules 169 | if [ -f $MODPATH/sepolicy.rule -a -e $PERSISTDIR ]; then 170 | ui_print "- Installing custom sepolicy patch" 171 | PERSISTMOD=$PERSISTDIR/magisk/$MODID 172 | mkdir -p $PERSISTMOD 173 | cp -af $MODPATH/sepolicy.rule $PERSISTMOD/sepolicy.rule 174 | fi 175 | 176 | # Remove stuffs that don't belong to modules 177 | rm -rf \ 178 | $MODPATH/system/placeholder $MODPATH/customize.sh \ 179 | $MODPATH/README.md $MODPATH/.git* 2>/dev/null 180 | 181 | ############# 182 | # Finalizing 183 | ############# 184 | 185 | cd / 186 | $BOOTMODE || recovery_cleanup 187 | rm -rf $TMPDIR 188 | 189 | ui_print "- Done" 190 | exit 0 191 | -------------------------------------------------------------------------------- /tools/META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | #MAGISK 2 | -------------------------------------------------------------------------------- /tools/aapt2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/tools/aapt2 -------------------------------------------------------------------------------- /tools/aapt264: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/tools/aapt264 -------------------------------------------------------------------------------- /tools/customize.sh: -------------------------------------------------------------------------------- 1 | chmod +x "$MODPATH"/tools/* 2 | [ "$($MODPATH/tools/aapt v)" ] && AAPT=aapt 3 | [ "$($MODPATH/tools/aapt64 v)" ] && AAPT=aapt64 4 | cp -af "$MODPATH"/tools/$AAPT "$MODPATH"/aapt 5 | 6 | if [ -d /system/xbin/ ] && [ ! -f /system/xbin/empty ] ; then 7 | mkdir -p "$MODPATH"/system/xbin/ 8 | cp -rf "$MODPATH"/tools/hn "$MODPATH"/system/xbin/ 9 | else 10 | mkdir -p "$MODPATH"/system/bin/ 11 | cp -rf "$MODPATH"/tools/hn "$MODPATH"/system/bin/ 12 | fi 13 | 14 | #Detect original overlay location 15 | OP=$(find /system/overlay /product/overlay /vendor/overlay /system_ext/overlay -type d -iname "navigationbarmodegestural" | cut -d 'N' -f1) 16 | mkdir -p "$MODPATH"/system"$OP" 17 | 18 | #Build and sign overlays 19 | "$MODPATH"/aapt p -f -v -M "$MODPATH/Mods/Qtmp/AndroidManifest.xml" -I "$MODPATH"/tools/framework-res.apk -S "$MODPATH/Mods/Qtmp/res" -F "$MODPATH"/unsigned.apk >/dev/null 20 | "$MODPATH"/aapt p -f -v -M "$MODPATH/Mods/MIUI/AndroidManifest.xml" -I "$MODPATH"/tools/framework-res.apk -S "$MODPATH/Mods/MIUI/res" -F "$MODPATH"/miui.apk >/dev/null 21 | "$MODPATH"/tools/zipsigner "$MODPATH"/unsigned.apk "$MODPATH"/Mods/Q/NavigationBarModeGestural/NavigationBarModeGesturalOverlay.apk 22 | "$MODPATH"/tools/zipsigner "$MODPATH"/miui.apk "$MODPATH"/Mods/MIUIc/GestureLineOverlay.apk 23 | 24 | 25 | #Install overlays 26 | cp -rf "$MODPATH"/Mods/Q/* "$MODPATH"/opt/* "$MODPATH"/system"$OP" 27 | 28 | if [ -f /product/overlay/GestureLineOverlay.apk ] ; then 29 | cp -rf "$MODPATH"/Mods/MIUIc/GestureLineOverlay.apk "$MODPATH"/system/product/overlay/ 30 | elif [ -f /vendor/overlay/GestureLineOverlay.apk ] ; then 31 | cp -rf "$MODPATH"/Mods/MIUIc/GestureLineOverlay.apk "$MODPATH"/system/vendor/overlay/ 32 | else 33 | : 34 | fi 35 | 36 | echo "To apply changes make sure to reboot" 37 | -------------------------------------------------------------------------------- /tools/fabricated/service.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | APIE=$(cat /system/build.prop | grep ro.build.version.sdk | cut -d '='-f2) 3 | if [ -f /data/adb/modules/rboard-themes_addon/system.prop ] || [ -f /data/adb/modules/gboardnavbar/system.prop ] || [ -f /data/adb/modules/rboard-themes/system.prop ]; then 4 | printf 'do nothing' 5 | else 6 | resetprop ro.com.google.ime.kb_pad_port_b 1.0 7 | fi 8 | 9 | while [ "$(getprop sys.boot_completed | tr -d '\r')" != "1" ]; do sleep 1; done 10 | sleep 1 11 | cmd overlay fabricate --target android --name test2 android:dimen/navigation_bar_height 0x05 0x03 12 | cmd overlay enable com.android.shell:test2 13 | cmd overlay fabricate --target android --name test android:dimen/navigation_bar_frame_height 0x05 0x01 14 | cmd overlay enable com.android.shell:test 15 | cmd overlay fabricate --target android --name test3 android:dimen/navigation_bar_gesture_height 0x05 0x9000 16 | cmd overlay enable com.android.shell:test3 17 | cmd overlay fabricate --target com.android.systemui --name test4 com.android.systemui:dimen/navigation_handle_radius 0x05 0x0 18 | cmd overlay fabricate --target com.android.systemui --name test5 com.android.systemui:dimen/navigation_home_handle_width 0x05 0x0 19 | cmd overlay enable com.android.shell:test4 20 | cmd overlay enable com.android.shell:test5 21 | killall com.android.systemui 22 | -------------------------------------------------------------------------------- /tools/hn: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | HNV=/data/adb/modules/HideNavBar 4 | chmod +x "$HNV"/tools/* 5 | RES="$HNV"/Mods/Qtmp/res/values/dimens.xml 6 | FOL="$HNV"/service.sh 7 | cp -rf "$HNV"/tools/service.sh "$HNV" 8 | cp -rf "$HNV"/Mods/QS/* "$HNV"/Mods/Qtmp/ 9 | rm -rf "$HNV"/Mods/Q/* 10 | mkdir -p "$HNV"/Mods/Q/NavigationBarModeGestural/ 11 | mkdir -p "$HNV"/opt/ 12 | 13 | # Grep prop 14 | grep_prop() { 15 | local REGEX="s/^$1=//p" 16 | shift 17 | local FILES=$@ 18 | [ -z "$FILES" ] && FILES='/system/build.prop' 19 | sed -n "$REGEX" $FILES 2>/dev/null | head -n 1 20 | } 21 | 22 | 23 | API=$(grep_prop ro.build.version.sdk) 24 | echo $API 25 | 26 | echo "Fullscreen/Immersive module setup" 27 | 28 | echo "Enter Gesture Sensitivity" 29 | if [ "$API" -ge 31 ] ; then 30 | echo "(Min 3000, Default 9000, Module default 4000)" 31 | else 32 | echo "(Min 10.0, default 32.0, Module default 18.0)" 33 | fi 34 | read -r GS 35 | if [ "$GS" = "" ]; then 36 | # $var is empty 37 | echo " " 38 | else 39 | if [ "$API" -ge 31 ] ; then 40 | sed -i s/9000/"$GS"/g "$FOL" 41 | else 42 | sed -i s/0.2/"$GS"/g "$RES" 43 | fi 44 | fi 45 | 46 | echo "What Navbar height?" 47 | if [ "$API" -ge 31 ] ; then 48 | echo "(0 Module default, 4000 Android default)" 49 | else 50 | echo "(0.0 Module default, 18.0 Android default)" 51 | fi 52 | read -r BH 53 | if [ "$BH" = "" ]; then 54 | # $var is empty 55 | echo " " 56 | else 57 | if [ "$API" -ge 31 ] ; then 58 | sed -i s/03/"$BH"/g "$FOL" 59 | else 60 | sed -i s/0.3/"$BH"/g "$RES" 61 | fi 62 | fi 63 | 64 | echo "What Keyboard bar height?" 65 | if [ "$API" -ge 31 ] ; then 66 | echo "(0 Fullscreen, 9500 immersive)" 67 | echo "(4000 Immersive+Small keyboard bar)" 68 | else 69 | echo "(0.0 Fullscreen, 48.0 immersive)" 70 | echo "(18.0 Immersive+Small keyboard bar)" 71 | fi 72 | read -r FH 73 | if [ "$FH" = "" ]; then 74 | # $var is empty 75 | echo " " 76 | else 77 | if [ "$API" -ge 31 ] ; then 78 | sed -i s/01/"$FH"/g "$FOL" 79 | else 80 | sed -i s/0.1/"$FH"/g "$RES" 81 | fi 82 | fi 83 | 84 | if [ "$FH" = 0.0 ] ; then 85 | : 86 | else 87 | echo "Hide pill? (yes or no, in lowercase)" 88 | read -r HB 89 | if [ "$HB" = yes ] ; then 90 | if [ "$API" -ge 31 ] ; then 91 | : 92 | else 93 | cp -rf "$HNV"/Mods/HP/. "$HNV"/opt 94 | fi 95 | else 96 | if [ "$API" -ge 31 ] ; then 97 | cat "$HNV"/service.sh | head -16 > "$HNV"/services.sh && mv "$HNV"/services.sh "$HNV"/service.sh 98 | else 99 | rm -rf "$HNV"/opt/pillhide.apk 100 | fi 101 | fi 102 | fi 103 | 104 | 105 | if [ "$API" -ge 31 ] ; then 106 | : 107 | else 108 | if [ "$FH" = 0.0 ] ; then 109 | : 110 | else 111 | echo "Hide keyboard buttons? (yes or no, in lowercase)" 112 | read -r HKB 113 | if [ "$HKB" = yes ] ; then 114 | cp -rf "$HNV"/Mods/HKB/. "$HNV"/opt/ 115 | else 116 | rm -rf "$HNV"/opt/HKN.apk 117 | fi 118 | fi 119 | fi 120 | 121 | echo "Disable the back gesture? (yes or no, in lowercase)" 122 | read -r DB 123 | if [ "$DB" = yes ] ; then 124 | : 125 | else 126 | settings delete secure back_gesture_inset_scale_left 127 | settings delete secure back_gesture_inset_scale_right 128 | fi 129 | 130 | if [ "$DB" = yes ] ; then 131 | echo "Left only (type l) Both sides (type b)" 132 | read -r SD 133 | if [ "$SD" = l ] ; then 134 | settings put secure back_gesture_inset_scale_left -1 135 | else 136 | settings put secure back_gesture_inset_scale_left -1 137 | settings put secure back_gesture_inset_scale_right -1 138 | fi 139 | else 140 | : 141 | fi 142 | 143 | if [ "$API" -le 30 ] ; then 144 | cp -rf "$HNV"/Mods/Qtmp/res/values/dimens.xml "$HNV"/Mods/Qtmp/res/values-sw900dp/ 145 | cp -rf "$HNV"/Mods/Qtmp/res/values/dimens.xml "$HNV"/Mods/Qtmp/res/values-sw600dp/ 146 | cp -rf "$HNV"/Mods/Qtmp/res/values/dimens.xml "$HNV"/Mods/Qtmp/res/values-440dpi/ 147 | cp -rf "$HNV"/Mods/Qtmp/res/values/dimens.xml "$HNV"/Mods/Qtmp/res/values-xhdpi/ 148 | cp -rf "$HNV"/Mods/Qtmp/res/values/dimens.xml "$HNV"/Mods/Qtmp/res/values-xxhdpi/ 149 | cp -rf "$HNV"/Mods/Qtmp/res/values/dimens.xml "$HNV"/Mods/Qtmp/res/values-xxxhdpi/ 150 | cp -rf "$HNV"/Mods/Qtmp/res/values/* "$HNV"/Mods/MIUI/res/values-xxhdpi/ 151 | cp -rf "$HNV"/Mods/Qtmp/res/values/* "$HNV"/Mods/MIUI/res/values-440dpi/ 152 | cp -rf "$HNV"/Mods/Qtmp/res/values/* "$HNV"/Mods/MIUI/res/values/ 153 | 154 | 155 | mkdir "$HNV"/ti 156 | cp -rf "$HNV"/tools "$HNV"/Mods "$HNV"/module.prop "$HNV"/tools/customize.sh "$HNV"/tools/META-INF/ "$HNV"/service.sh "$HNV"/ti 157 | cd "$HNV"/ti 158 | rm -rf "$HNV"/ti/test.zip 159 | "$HNV"/tools/zip -r test.zip . 160 | 161 | magisk --install-module "$HNV"/ti/test.zip 162 | 163 | else 164 | : 165 | fi 166 | 167 | echo "reboot for changes to apply" 168 | 169 | 170 | -------------------------------------------------------------------------------- /tools/hnr: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | rm -rf /data/adb/service.d/ol2.sh 4 | rm -rf /data/adb/modules/HideNavBar/ 5 | cmd overlay disable com.android.shell:test 6 | cmd overlay disable com.android.shell:test2 7 | cmd overlay disable com.android.shell:test3 8 | cmd overlay disable com.android.shell:test4 9 | cmd overlay disable com.android.shell:test5 10 | echo "Module Removed" 11 | -------------------------------------------------------------------------------- /tools/service.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | APIE=$(cat /system/build.prop | grep ro.build.version.sdk | cut -d '='-f2) 3 | if [ -f /data/adb/modules/rboard-themes_addon/system.prop ] || [ -f /data/adb/modules/gboardnavbar/system.prop ] || [ -f /data/adb/modules/rboard-themes/system.prop ]; then 4 | printf 'do nothing' 5 | else 6 | resetprop ro.com.google.ime.kb_pad_port_b 1.0 7 | fi 8 | 9 | while [ "$(getprop sys.boot_completed | tr -d '\r')" != "1" ]; do sleep 1; done 10 | sleep 4 11 | cmd overlay enable com.android.internal.systemui.navobar.gestural 12 | sleep 1 13 | cmd overlay enable dan.overlaya 14 | sleep 1 15 | cmd overlay enable dan.overlayb 16 | sleep 1 17 | cmd overlay enable dan.overlayd 18 | sleep 1 19 | cmd overlay enable dan.overlaye 20 | sleep 1 21 | cmd overlay enable dan.overlayf 22 | sleep 1 23 | cmd overlay enable dan.overlayg 24 | sleep 1 25 | cmd overlay enable com.dan.overlayi 26 | -------------------------------------------------------------------------------- /tools/zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/tools/zip -------------------------------------------------------------------------------- /tools/zipsigner: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # zipsigner: wrapper to run zipsigner.jar from terminal 3 | # osm0sis @ xda-developers 4 | 5 | dir="$(cd "$(dirname "$0")"; pwd)"; 6 | 7 | /apex/com.android.art/bin/dalvikvm -Djava.io.tmpdir=. -Xnodex2oat -Xnoimage-dex2oat -cp $dir/zipsigner-*.jar com.topjohnwu.utils.ZipSigner "$@" 2>/dev/null \ 8 | || /apex/com.android.art/bin/dalvikvm -Djava.io.tmpdir=. -Xnoimage-dex2oat -cp $dir/zipsigner-*.jar com.topjohnwu.utils.ZipSigner "$@"; 9 | -------------------------------------------------------------------------------- /tools/zipsigner-3.0-dexed.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DanGLES3/Hide-Navbar/3aad8dec132d5541811cf70cb92372421bf785a2/tools/zipsigner-3.0-dexed.jar -------------------------------------------------------------------------------- /tools/zipsignero: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # zipsigner: wrapper to run zipsigner.jar from terminal 3 | # osm0sis @ xda-developers 4 | 5 | dir="$(cd "$(dirname "$0")"; pwd)"; 6 | 7 | dalvikvm -Djava.io.tmpdir=. -Xnodex2oat -Xnoimage-dex2oat -cp $dir/zipsigner-*.jar com.topjohnwu.utils.ZipSigner "$@" 2>/dev/null \ 8 | || dalvikvm -Djava.io.tmpdir=. -Xnoimage-dex2oat -cp $dir/zipsigner-*.jar com.topjohnwu.utils.ZipSigner "$@"; --------------------------------------------------------------------------------