[unofficcial] F-Droid Privileged Extension installer - Magisk

I created a small F-Droid Privileged Extension Installer. All it does, is put this[1] App into /system/priv-app.
That way the F-Droid store can install, update and remove applications on its own.
Since I can't seem to add files to this post, you can find the download below. Mirrors welcome, if they vanish or a new version of the extension comes along, just get the source from my github[2], replace the file in system/priv-app/Fdroid with the latest version and create a zip file from it.
Maybe I'll also apply to have it integrated into Magisk Manager or ask someone from Fdroid to take it over.
The zip contains fdroid-priv Version 0.1, the zip should have those checksums:
MD5: bd7c4d30323052c36bce53e051d786a8
SHA1: 1d258848bd73c18be2a0fcca02865941cb391cba
[1] h**ps://f-droid(dot)org/repository/browse/?fdfilter=Privileged&fdid=org.fdroid.fdroid.privileged
[2] h**ps://github(dot)com/PunchyStick/org.fdroid.fdroid-priv
Downloads:
h**p://ge(dot)tt/5WKJ2Lf2
h**ps://mega(dot)nz/#fm/TJIRzabD
h**ps://www(dot)sendspace(dot)com/file/j1r9oy
*edit* I'm sorry for mangling those link so bad, I'm not allowed yet to post links. If someone please can please reply with the correct links...
And sorry for the english, especially in the title...

here we go
[1] https://f-droid.org/repository/browse/?fdfilter=Privileged&fdid=org.fdroid.fdroid.privileged
[2] https://github.com/PunchyStick/org.fdroid.fdroid-priv
Downloads:
http://ge.tt/5WKJ2Lf2
https://mega.nz/#fm/TJIRzabD
https://www.sendspace.com/file/j1r9oy

I updated the extension and the template to the magisk v9 one and asked for inclusion in the repo. In the meantime, get the zip from github:
github(dot)com/PunchyStick/org.fdroid.fdroid-priv/archive/master.zip

Related

[APP] Ad-Free YouTube APK

Do you want a completely ad-free YouTube app? This patched APK works perfectly like a charm! I have been using this one since its initial release and haven't encountered a single ad since then. The developer has ported or made some tweak to the YouTube adAway xposed module for him to convert it into an APK file. Works on rooted device only.
/* Downloads */
APK : bit.ly/2kBwwvB
Installer : bit.ly/2l9Cu5q
^ Direct download links are provided above. I shortened the URL to save space and Im a bit OC with formatting. Don't worry, it doesn't contain any ads.
/* INTSRUCTIONS */
1. Download the APK. (Note: Please save the file on the default 'Download' directory.
2. Download the installer. (Note: This installer is not a complete flashable zip file! You still need the APK file above to make this work.)
3. Flash the installer in your custom recovery.
/* OP */
Developer: arter97
Main Thread: goo.gl/QfkK8v
Mod Edit
Please use the original thread:
https://forum.xda-developers.com/android/apps-games/app-patched-ad-free-youtube-apks-t3449312
Thread closed
malybru
Senior Moderator

[CLOSED][COLLECTION] shadowstep's Android Essentials [APKS][DRIVERS][RECOVERIES][TOOLS][ZIPS]

General Information
Hi all! So basically, I just wanted to have a single thread with links to my personal collection of Android stuff, which includes both, stuff I've created and stuff other developers have created (that I use). The only reason behind creating this thread is to make it easier for others to find some things which they might also use with their OnePlus 5s. Obviously, some of the stuff here was developed with the OnePlus 5 in mind, so it might/might not work out-of-the-box with other devices. Therefore, I'll also try and mention if something here can be used universally across different devices or just the OnePlus 5. If you see something here that inspires you, go ahead and mod it, just let me know and give me some credit somewhere if it belongs to me or credit the original creator(s) of the mod, if it doesn't belongs to me. Let's get right to it then!
Links to Individual Posts
APKs
Flashable Zips
Recoveries
Tools
USB Drivers
Download Information
The final post contains the file name, version number as well as the MD5 hash of all the downloads provided.
APKs
AdAway (many devices) - XDA Thread, Download Mirror
AdAway is a utility for rooted and non-rooted users used to help manage host file entries. AdAway doesn't directly block ads; it limits unwanted ads by redirecting servers that distribute those ads to an 127.0.0.1, which returns nothing.
BetterBatteryStats (many devices) - XDA Thread, Download Mirror
BetterBatteryStats is an app that can find applications causing the phone to drain battery while it is supposed to be asleep. It provides detailed, useful information regarding kernel wakelocks, partial wakelocks, alarms, wakeups, etc.
EdXposed Manager (many devices) - XDA Thread, Download Mirror
EdXposed Manager is the companion app for EdXposed that is needed to perform various EdXposed related tasks, such as displaying EdXposed framework status, enabling/disabling EdXposed modules, etc.
Magisk (many devices) - XDA Thread, Download Mirror
Created by topjohnwu, Magisk is the currently the most popular root solution. In addition to that, it also offers a universal systemless interface to alter the system partition systemless-ly so that SafetyNet passes. Installation instructions are here.
Magisk Alpha (many devices) - GitHub, Download Mirror
Maintained by vvb2060, Magisk Alpha is a fork of the original Magisk solution. It aims to fix bugs and resolve other issues that are present in the original solution and also restores the hide functionality that has been removed from the original Magisk app. Installation instructions are the same as the original solution, linked above.
OOS Firmware Extractor (OnePlus 5/5T) - GitHub, Download Mirror
OOS Firmware Extractor can be used to extract firmware from an OxygenOS ROM zip to create a TWRP flashable firmwareupdater.zip. You can also check the MD5 hash of the ROM, extract it and check the updater-script before the flashable firmware zip is created in the root of your internal storage.
Scoop (many devices) - XDA Thread, Download Mirror
Scoop saves the stack trace of a crashing app and displays all crashes in a list so you don't have to look through a long logcat. Additionally, you get a notification on every crash which already displays the most important information.
Vanced Manager (many devices) - XDA Thread, Download Mirror
Vanced Manager can easily install and uninstall YouTube Vanced and MicroG, and has various settings for customizing installation. The app comes with an easy-to-use interface, support for background download and installation.
ViPER4Android FX (many devices) - XDA Thread, Download Mirror
ViPER's Audio is an audio enhancing software that provides a better audio experience in various platforms, such as smartphones and PCs. ViPER4Android FX is the main control app for the Android driver of ViPER’s Audio.
Warden (many devices) - XDA Thread, Download Mirror
Using root access, this open source app allows a user to disable all detected trackers and loggers contained within apps. It uses a static list of trackers and loggers compiled by French non-profit Exodus Privacy. It also features a profile-based “debloater” that supports scripting.
Wireless ADB (many devices) - GitHub, Download Mirror
In words of the author of the app, MSF Jarvis, this is a dead simple app for enabling wireless ADB on rooted devices. Add the Wireless ADB tile to your Quick Settings panel, connect to Wi-Fi, enable Wireless ADB, profit.
Flashable Zips and Magisk Modules
Adreno Team Graphics Drivers (many devices) - XDA Thread, Download Mirror
A Magisk module which contains updated GPU drivers backported from Android 11 for Snapdragon 835 devices. These drivers contain various OpenGL and Vulkan optimizations, which may improve experience/performance of GPU related tasks (gaming, etc.)
BusyBox Installer (many devices) - XDA Thread, Download Mirror
Created by osm0sis, this installer detects what architecture your device uses and installs the correct busybox binary accordingly. Detects and supports "systemless" root via SuperSU/Magisk installation as well.
EdXposed (many devices) - XDA Thread, Download Mirror
EdXposed is a Magisk module which provides a hooking framework for ART to deliver consistent APIs with the OG Xposed, leveraging YAHFA/SandHook (core java) hooking framework. It needs Riru Framework to be installed to function.
Enable VR Compatibility (OnePlus 5/5T) - XDA Thread Unavailable, Download Mirror
A simple flashable zip that enables the Virtual Reality (VR) service so that you can install and use VR compatible apps from the Play Store. This is done by enabling the feature in the required permissions xml file (/system/system/etc/permissions/handheld_core_hardware.xml).
Fingerprint Store Eraser (OnePlus 5/5T) - XDA Thread Unavailable, Download Mirror
Originally created by idoybh, this simple flashable zip removes the saved fingerprint data from your device. This can be useful in cases when your device can't recognize your fingerprint and you want to start clean, or if a ROM upgrade corrupted your fingerprint store.
LSPosed (many devices) - XDA Thread, Download Mirror
LSPosed is a Magisk module which provides a hooking framework for ART to deliver consistent APIs with the OG Xposed, leveraging YAHFA (core java) hooking framework. It needs Riru Framework to be installed to function.
MomoHider (IsolatedMagiskHider) (many devices) - GitHub, Download Mirror
Some apps have started detecting Magisk even with Magisk Hide enabled. MomoHider, also known as IsolatedMagiskHider, is a Magisk module that tries to make Magisk more hidden to avoid that. It needs Riru Framework to be installed to function. Setup instructions are here.
MSM8998 Stereo Speaker Mod (many devices) - XDA Thread Unavailable, Download Mirror
Originally created by acervenky, this module enables your phone's earpiece to act as a secondary speaker for stereo effect. I've re-created his module from scratch to make sure it works with the latest Magisk versions.
MSM8998 Undervolt Tool (many devices) - XDA Thread, Download Mirror
Created by lyq1996, this is an AROMA Installer based TWRP flashable zip that can be used to offset voltage values for the little cluster, big cluster and GPU. The existing boot image is unpacked, selections made are applied, and then the boot image is repacked and flashed to the boot partition.
Oh My Font (many devices) - XDA Thread, Download Mirror
Created by nongthaihoang, this Magisk module is a collection of typefaces which are believed to improve the overall Android Typography experience. The module works by modifing system xml files (fontxml) to replace font families and add more fallback fonts. Setup instructions are here.
Old Bootloader Unlocked Warning (OnePlus 5) - XDA Thread Unavailable, Download Mirror
A simple flashable zip that replaces the new bootloader that OnePlus is shipping with the latest OxygenOS updates for the OnePlus 5 with an older version of the bootloader, which restores option to use volume key buttons for advanced boot options when the bootloader unlocked warning is displayed.
OnePlus Boot Animation (many devices) - XDA Thread Unavailable, Download Mirror
A simple flashable zip that replaces the your system's boot animation with a fancy OnePlus boot animation, which looks like this. This is done by replacing the built-in boot animation zip (/system/system/media/bootanimation.zip) with the modified boot animation zip.
Optimized GPS Configuration (many devices) - XDA Thread Unavailable, Download Mirror
A simple flashable zip that replaces the your system's exiting GPS configuration with a newer, more optimized and more secure version of the same. This is done by replacing the stock GPS configuration file (/vendor/etc/gps.conf) with the modified GPS configuration file.
OxygenOS TWRP Retainer (OnePlus 5/5T) - XDA Thread Unavailable, Download Mirror
OxygenOS restores the stock recovery on every boot, which overwrites TWRP. Flashing Magisk prevents this from happening, but there are those who don't want to flash Magisk but still retain TWRP. This zip is for them. Just flash this zip before booting and TWRP will no longer be overwritten. Do remember to flash it every time you dirty flash OxygenOS.
Pixel 2 Wi-Fi Mod (OnePlus 5/5T) - XDA Thread, Download Mirror
Originally created as a Magisk module by RogerF81, this is a TWRP flashable version of the Pixel 2 Wi-Fi Mod. It replaces the existing Wi-Fi configuration file with a modified version of the same that removes issues like notification delay while using custom kernels, etc.
Remove Lockscreen Security (many devices) - XDA Thread Unavailable, Download Mirror
A simple flashable zip that removes lockscreen security (pattern, pin or password) without deleting fingerprint data, when flashed in TWRP. It does so by deleting the necessary gatekeeper key files as well as lockscreen security databases from /data/system, which resets lockscreen security.
Riru Core Framework (many devices) - GitHub, Download Mirror
Riru Core Framework is a Magisk module that replaces a shared library which is loaded by the zygote process. This provides the ability to Riru modules to run their code in apps' or system server's process. This is the base framework that is utilized by EdXposed as well as LSPosed.
SELinux Switch (many devices) - XDA Thread Unavailable, Download Mirror
This module changes the SELinux state to either permissive or enforcing depending on the selection made by you while flashing the zip in Magisk. It detects the volume key pressed and sets the corresponding state for the next boot. To change the selection, simply re-flash the module with the desired state.
Substratum Rescue Zip (many devices) - XDA Thread Unavailable, Download Mirror
Originally created by nicholaschum, this flashable zip disables all Substratum overlays that you have installed and enabled, in case one or more of them are causing issues for you/making your device bootloop.
SUmount (many devices) - XDA Thread, Download Mirror
Created by osm0sis, this flashable zip script toggles the mounting of the su.img, magisk.img and magisk_merge.img while in recovery to allow easier access to the /su, /magisk and /magisk_merge filesystems, simplifying manipulating it via ADB shell, AROMA Filemanager or TWRP's terminal/file manager.
Universal DM-Verity and ForceEncrypt Disabler (many devices) - XDA Thread, Download Mirror
Created by Zackptg5, this zip can be used to disable DM-Verity and ForceEncrypt on any device that is compatible with Magisk. It works for both Treble as well as Non-Treble ROMs. Just flash the zip in TWRP before flashing Magisk/SuperSU (mandatory requirement or else the zip won't work) and DM-Verity and ForceEncrypt will be removed.
UnSu (many devices) - XDA Thread, Download Mirror
Created by osm0sis, this flashable zip uninstalls all traces of SuperSU, Koush's SuperUser, ROM su binaries, phh's Superuser, Magisk and LineageOS addonsu from your system. It properly restores all the original files your root installer/app backed up and removes any files added by it.
Recoveries - Custom
TWRP by mauronofrio (OnePlus 5/5T) - XDA Thread, Download Mirror
This version of TWRP has been compiled by mauronofrio using eng.stk's source as base, with support for decryption and Android 10. This version is unthemed (stock themed) and supports mounting the /vendor partition, i.e. Treble compatible.
TWRP by poad42 (OnePlus 5/5T) - XDA Thread Unavailable, Download Mirror
This version of TWRP has been compiled by poad42 from official source, with added decryption support and an updated kernel image based on an Android 10 kernel. This version is unthemed (stock themed) and supports mounting the /vendor partition, i.e. Treble compatible.
Official TWRP by Dees_Troy (OnePlus 5/5T) - XDA Thread, Download Mirror
This is the official version of TWRP released by the TWRP team. Decrypting FBE (File Based Encryption) is supported in v3.3.0+. This version is unthemed (stock themed) and supports mounting the /vendor partition, i.e. Treble compatible.
OrangeFox Recovery by Maitreya29 (OnePlus 5/5T) - XDA Thread, Download Mirror
This recovery uses TWRP as the base and adheres to the Material Design 2 guidelines for its GUI. It has additional features like a theme engine and in-built support for Magisk patching and password reset patch, and plenty more.
SHRP by Surya Nivas (OnePlus 5/5T) - XDA Thread Unavailable, Download Mirror
This is the official version of SHRP (SkyHawk Recovery Project). SHRP uses TWRP as the base and provides a fresh, new UI. This one uses eng.stk's blu_spark TWRP as the base, and hence everything that is supported by that TWRP version is supported by this recovery as well.
TWRP by mauronofrio (OnePlus 5/5T) - XDA Thread, Download Mirror
This version of TWRP has been compiled by mauronofrio using eng.stk's source as base, with support for decryption and Android 10. This version is AMOLED black themed and supports mounting the /vendor partition, i.e. Treble compatible.
TWRP by poad42 (OnePlus 5/5T) - XDA Thread Unavailable, Download Mirror
This version of TWRP has been compiled by poad42 from official source, with added decryption support and an updated kernel image based on an Android 10 kernel. This version is AMOLED black themed and supports mounting the /vendor partition, i.e. Treble compatible.
Official TWRP by Dees_Troy (OnePlus 5/5T) - XDA Thread, Download Mirror
This is the official version of TWRP released by the TWRP team. Decrypting FBE (File Based Encryption) is supported in v3.3.0+. This version is AMOLED black themed and supports mounting the /vendor partition, i.e. Treble compatible.
TWRP by mauronofrio (OnePlus 5/5T) - XDA Thread, Download Mirror
This version of TWRP has been compiled by mauronofrio using eng.stk's source as base, with support for decryption and Android 10. This version is grey-black themed and supports mounting the /vendor partition, i.e. Treble compatible.
TWRP by poad42 (OnePlus 5/5T) - XDA Thread Unavailable, Download Mirror
This version of TWRP has been compiled by poad42 from official source, with added decryption support and an updated kernel image based on an Android 10 kernel. This version is grey-black themed and supports mounting the /vendor partition, i.e. Treble compatible.
Official TWRP by Dees_Troy (OnePlus 5/5T) - XDA Thread, Download Mirror
This is the official version of TWRP released by the TWRP team. Decrypting FBE (File Based Encryption) is supported in v3.3.0+. This version is grey-black themed and supports mounting the /vendor partition, i.e. Treble compatible.
TWRP by mauronofrio (OnePlus 5/5T) - XDA Thread, Download Mirror
This version of TWRP has been compiled by mauronofrio using eng.stk's source as base, with support for decryption and Android 10. This version is red-black themed and supports mounting the /vendor partition, i.e. Treble compatible.
TWRP by poad42 (OnePlus 5/5T) - XDA Thread Unavailable, Download Mirror
This version of TWRP has been compiled by poad42 from official source, with added decryption support and an updated kernel image based on an Android 10 kernel. This version is red-black themed and supports mounting the /vendor partition, i.e. Treble compatible.
Official TWRP by Dees_Troy (OnePlus 5/5T) - XDA Thread, Download Mirror
This is the official version of TWRP released by the TWRP team. Decrypting FBE (File Based Encryption) is supported in v3.3.0+. This version is red-black themed and supports mounting the /vendor partition, i.e. Treble compatible.
Recovery - Stock
Stock OnePlus Recovery (OnePlus 5) - XDA Thread Unavailable, Download Mirror
This is the official stock recovery that is shipped by OnePlus with OnePlus 5. In case you ever wish to completely return to stock or for some reason wish to use the stock recovery, you can flash this image via fastboot and your existing recovery will be overwritten with the stock recovery that is shipped with the phone.
Tools
Android Image Kitchen (Windows) - XDA Thread, Download Mirror
Android Image Kitchen (AIK) contains Windows ports of the necessary Linux utils for Android image (kernel/recovery) mod work. It can be used to unpack, modify, and repack kernel/recovery image files on Windows.
APK Easy Tool Portable (Windows) - XDA Thread, Download Mirror
APK Easy Tool is a lightweight application that enables you to manage, sign, compile and decompile APK files. Some of the main operations you can perform via this tool include compiling, decompiling, signing, extracting and installing an APK.
CRB Kitchen (Windows) - XDA Thread, Download Mirror
Created by MrWaehere, CRB (Custom ROM Builder) Kitchen is a Windows application that can be used to extract, modify, create, de-odex, etc. ROMs as well as make changes to APKs using the in-built apktool. It has a wide variety of features and supports the latest version of Android.
Get Logs Script (Windows) - XDA Thread, Download Mirror
Originally created by djsubterrain, I updated this useful batch script (and also updated the included dependencies in the zip) that can be run to capture useful logs which can then be sent to a developer in case of an issue. Simply extract the zip and double-click on getlogs.bat. The result will be a zip file of the required logs.
SDK Platform-Tools (ADB & Fastboot) (Windows) - XDA Thread Unavailable, Download Mirror
Android SDK Platform-Tools is a component for the Android SDK. It includes tools that interface with the Android platform, such as adb, fastboot, and systrace. Although some new features in these tools are available only for recent versions of Android, the tools are backward compatible.
Split APKs Packer (Windows) - XDA Thread Unavailable, Download Mirror
Created by Kirlif', Split APKs Packer a.k.a. SAP is a Java based tool to transform Android App Bundles/split APKs (*.apks, *.xapk, *.zip) into single Android packages (*.apk). SAP uses Apktool to decode the resources of the files included in the bundle to be processed after which it merges all these files into the base package folder before adjusting and correcting them.
Uber APK Signer (Windows) - GitHub, Download Mirror
Uber APK Signer is a tool that helps in signing, zip aligning and verifying multiple APKs with either debug or provided release certificates (or multiple). It supports v1, v2 and v3 Android signing scheme. It automatically verifies signature and zipaligns APKs after signing.
USB Drivers
Google USB Drivers (Windows) - XDA Thread Unavailable, Download Mirror
Google USB Drivers are required for Windows if you want to perform adb debugging with any of the Android devices. Although originally made for Google devices, these drivers work with multiple non-Google Android devices as well without any issues.
OnePlus USB Drivers (Windows) - XDA Thread Unavailable, Download Mirror
These are the drivers that are made by OnePlus, to be used with their devices only, if you want to perform adb debugging. These drivers work for all OnePlus devices and are shipped in their smartphones itself (as a part of the /system partition), from which these have been extracted.
Download Information
Spoiler: APKs
Rich (BB code):
AdAway
• File Name: AdAway v5.9.0 (2021-11-05).apk
• MD5 Hash: 759c557a12bbf8b57eb6a97084fcf1fa
BetterBatteryStats
• File Name: BetterBatteryStats XDA Edition v2.6-382.apk
• MD5 Hash: 7be21f178359e32c07b385288b7c1548
EdXposed Manager
• File Name: EdXposed Manager v4.6.2.apk
• MD5 Hash: a712f351af88497bc2fb6fae009e49bf
Magisk
• File Name: Magisk v23.0.apk
• MD5 Hash: ea450d98c25b4e09bb353e5bef8ca8a0
Magisk Alpha
• File Name: Magisk Alpha v1e05f8c6.apk
• MD5 Hash: 7787b10b5db8a285cc169032e28e4688
OOS Firmware Extractor
• File Name: OOS Firmware Extractor v0.3.0.apk
• MD5 Hash: 51fd80ef0bcd2e25796002210c0d9dc2
Scoop
• File Name: Scoop v2.0.3.apk
• MD5 Hash: 07eced8d9bd02ab56d33b592f716589a
Vanced Manager
• File Name: Vanced Manager v2.6.2.apk
• MD5 Hash: 02a2ff9e69d85de4dad105213f620382
ViPER4Android FX
• File Name: ViPER4Android FX v2.7.2.1 (2020-10-27).apk
• MD5 Hash: f6a47c9a9f1af335f2f567c070255d53
Warden
• File Name: Warden v1.0.3.apk
• MD5 Hash: 9a3d12e0e4db940488d3f93c5a7b5010
Wireless ADB
• File Name: Wireless ADB v5.3 (2020-06-15).apk
• MD5 Hash: 573e153eb3c6a85804bf9376c08f3569
Spoiler: Flashable Zips
Rich (BB code):
BusyBox Installer
• File Name: Busybox Installer v1.34.1-13410 (Signed).zip
• MD5 Hash: 795f4f099eadc2606495cc23dd41bc20
Disable Direct Share
• File Name: Disable Direct Share v1.1 (Signed).zip
• MD5 Hash: 567bb4fa631d38a4524281709cc61018
EdXposed
• File Name: EdXposed v0.5.2.2-4683.zip
• MD5 Hash: 71382a57c7e7861b4695d2089e5422a9
Enable VR Compatibility
• File Name: Enable VR Compatibility v1.2 (Signed).zip
• MD5 Hash: 71f14ecd0d27bc460049478546754ba6
Fingerprint Store Eraser
• File Name: Fingerprint Store Eraser v1.0 (Signed).zip
• MD5 Hash: dfbab6aeab83fe3e9470b3dd70de1562
LSPosed
• File Name: LSPosed v1.6.3-6212.zip
• MD5 Hash: 3eaa2f61e0de5bc4a93b6db9fbda3f60
MomoHider (IsolatedMagiskHider)
• File Name: MomoHider (IsolatedMagiskHider) v0.0.7.zip
• MD5 Hash: d988044cb850f7d849b3c68d959b8acb
MSM8998 Stereo Speaker Mod
• File Name: MSM8998 Stereo Speaker Mod v1.0.zip
• MD5 Hash: d34b16bf4a06f1f97d557514fe7bff37
MSM8998 Undervolt Tool
• File Name: MSM8998 Undervolt Tool v1.1.zip
• MD5 Hash: 82d51707679d67f098953c39d6110063
Oh My Font
• File Name: Oh My Font v2021111401.zip
• MD5 Hash: ed5dce45ba35db61eeba1fd354d11bb3
Old Bootloader Unlocked Warning
• File Name: Old Bootloader Unlocked Warning for OnePlus 5 (BL from OOS 4.5.15) (Signed).zip
• MD5 Hash: bce430f8d8ec3fef6e9f91d145505373
OnePlus Boot Animation
• File Name: OnePlus Boot Animation v1.1 (Signed).zip
• MD5 Hash: 4174da7b13a4590518ef438b052fc64e
Optimized GPS Configuration
• File Name: Optimized GPS Configuration v1.1 (Signed).zip
• MD5 Hash: edcd8fd159b2aca9678e5bff47048255
OxygenOS TWRP Retainer
• File Name: OxygenOS TWRP Retainer v1.2 (Signed).zip
• MD5 Hash: 079cc492382fac0e89bf51174208068b
Pixel 2 Wi-Fi Mod
• File Name: Pixel 2 Wi-Fi Mod v15.1 (Signed).zip
• MD5 Hash: 5caaf4a14a289ea59febe83cd4f73fd2
Remove Lockscreen Security
• File Name: Remove Lockscreen Security v1.1 (Signed).zip
• MD5 Hash: 5c11dfa5f55b479f7d5bef8674cac7f9
Riru Core Framework
• File Name: Riru Core Framework v26.1.3.zip
• MD5 Hash: 39e9016e3042088439689c259c8dcfa5
SELinux Switch
• File Name: SELinux Switch v1.0.zip
• MD5 Hash: f92f4a141582825373edd6ff2e39fdf2
Substratum Rescue Zip
• File Name: Substratum Rescue Zip (2020-05-17) (Signed).zip
• MD5 Hash: f712e556e204c5791dc74ebfbc0d4248
SUmount
• File Name: SUmount (Signed).zip
• MD5 Hash: 38caa0617e665cefdea876faf94e1bda
Universal DM-Verity and ForceEncrypt Disabler
• File Name: Universal DM-Verity and ForceEncrypt Disabler (2021-07-04).zip
• MD5 Hash: 808d3bb2f906c2e88c96029e0b064076
UnSu
• File Name: unSU (2019-03-10) (Signed).zip
• MD5 Hash: 4ec28cb9648f2381ca8741bfc40265ad
Spoiler: Recoveries
Rich (BB code):
TWRP by mauronofrio (Unthemed)
• File Name: twrp-v3.4.0-10-mauronofrio-cheeseburgerdumpling.img
• MD5 Hash: 78b750f350584138cb0dd5b7559df805
TWRP by poad42 (Unthemed)
• File Name: twrp-v3.4.0-0-1.4-poad42-cheeseburgerdumpling.img
• MD5 Hash: 8bdc8f7d87c2dbd603aa1b39d770c9a3
Official TWRP by Dees_Troy (Unthemed)
• File Name: twrp-v3.5.2_9-0-official-cheeseburgerdumpling.img
• MD5 Hash: c0f6f156be8b83ef2d99bf1647a19a49
OrangeFox Recovery by Maitreya29 (Unthemed)
• File Name: orangefox-r11.1-cheeseburgerdumpling.zip
• MD5 Hash: 5640377d7318758b41b276aa354b44a2
SHRP by Surya Nivas (Unthemed)
• File Name: shrp-v2.1-cheeseburgerdumpling.zip
• MD5 Hash: dca00066c6da391713391db1dd43ddc0
TWRP by mauronofrio (AMOLED-Black Themed)
• File Name: twrp-v3.4.0-10-mauronofrio-amoledblack-cheeseburgerdumpling.img
• MD5 Hash: 73cc45eec392a08cdf3023609ef31452
TWRP by poad42 (AMOLED-Black Themed)
• File Name: twrp-v3.4.0-0-1.4-poad42-amoledblack-cheeseburgerdumpling.img
• MD5 Hash: ca43764f48488e4916c1ad6daa9a0471
Official TWRP by Dees_Troy (AMOLED-Black Themed)
• File Name: twrp-v3.5.2_9-0-official-amoledblack-cheeseburgerdumpling.img
• MD5 Hash: 86c06cb71171316bad596835930e0ac5
TWRP by mauronofrio (Grey-Black Themed)
• File Name: twrp-v3.4.0-10-mauronofrio-greyblack-cheeseburgerdumpling.img
• MD5 Hash: 595055c268e966a55cc46a10b5c716ff
TWRP by poad42 (Grey-Black Themed)
• File Name: twrp-v3.4.0-0-1.4-poad42-greyblack-cheeseburgerdumpling.img
• MD5 Hash: bd198f4bce2658e64de92872efeea377
Official TWRP by Dees_Troy (Grey-Black Themed)
• File Name: twrp-v3.5.2_9-0-official-greyblack-cheeseburgerdumpling.img
• MD5 Hash: 41dcb1e4535885fe64363a0b99415f50
TWRP by mauronofrio (Red-Black Themed)
• File Name: twrp-v3.4.0-10-mauronofrio-redblack-cheeseburgerdumpling.img
• MD5 Hash: 562ed7c0e4157bb889c5439409ec053a
TWRP by poad42 (Red-Black Themed)
• File Name: twrp-v3.4.0-0-1.4-poad42-redblack-cheeseburgerdumpling.img
• MD5 Hash: 5cd97a030b7df2d685a40c3c7d54d51c
Official TWRP by Dees_Troy (Red-Black Themed)
• File Name: twrp-v3.5.2_9-0-official-redblack-cheeseburgerdumpling.img
• MD5 Hash: e3b3f64eeadc99c6932332a29de75295
Stock Recovery by OnePlus (Unthemed)
• File Name: stock_oneplus_recovery_pie_cheeseburger.img
• MD5 Hash: 6033f42776125374572031b5d7be63aa
Spoiler: Tools
Rich (BB code):
Android Image Kitchen
• File Name: Android Image Kitchen v3.8.zip
• MD5 Hash: 89a1e808a897cc7ba7808c9cdfecc226
APK Easy Tool Portable
• File Name: APK Easy Tool Portable v1.59.2.zip
• MD5 Hash: c6712f4f2d50ff23373209c79c066999
CRB Kitchen
• File Name: CRB Kitchen v3.0.0 (Beta 12).7z
• MD5 Hash: 32bfe683118edb5e3cc87289a2fc9548
Get Logs Script
• File Name: Get Logs Script v2.0.zip
• MD5 Hash: 613e774695b1de85f440257483922f34
SDK Platform-Tools (ADB & Fastboot)
• File Name: SDK Platform-Tools (ADB & Fastboot) r31.0.3.zip
• MD5 Hash: 80337ea6f21fd3753b911ad37ede6d3b
Split APKs Packer
• File Name: Split APKs Packer v6.9.0.zip
• MD5 Hash: 7664ec1eb4878a90d4a0a2ac032ca7b2
Uber APK Signer
• File Name: Uber APK Signer v1.2.1.zip
• MD5 Hash: 02c2a435377c5f47af00c173705c26ab
Spoiler: USB Drivers
Rich (BB code):
Google USB Drivers
• File Name: Google USB Drivers r13.zip
• MD5 Hash: 1264c572565b136c4a5b5ef75a7a1f47
OnePlus USB Drivers
• File Name: OnePlus USB Drivers Setup.exe
• MD5 Hash: 7168f5e5015d44392901d05124defda4
Wow man. Great Great work. And hats off for your dedication.
Really well done bro.
This is going to be quite helpful to people who are just starting out with modding this device. Great work, shadowstep!
Good job
piratedpanda said:
This is going to be quite helpful to people who are just starting out with modding this device. Great work, shadowstep!
Click to expand...
Click to collapse
Pretty sure at least a few of these will come in useful to more advanced users as well, but yeah.
Kudos to you, shadowstep. Definitely a well put together guide.
This is a really, really good useful thread.
Nice one for putting it together, i'm sure this will help a lot of people when looking for certains things. As they all can now be found in 1 single thread.
Hats off to you.
Great thread!!
You can also add magisk modules created by you for op5 gcam.
Sent from my OnePlus5 using XDA Labs
@shadowstep You might want to add this thread to the list, I created a batch script when I had my OP2 which will capture all the logs a developer might need to debug an issue, should work with any Android phone including the OP5:
https://forum.xda-developers.com/oneplus-2/general/logs-t3533826
I did make an executable (.exe) version too but some AVs might flag it due to the tool I used, it's just an exe which contains all the files required inside it, which it extracts temporarily when it's run, they then disappear again once it's done :
https://androidfilehost.com/?fid=529152257862698787
Good job man, thanks :good:
Bewildered Wolf said:
Wow man. Great Great work. And hats off for your dedication.
Really well done bro.
Click to expand...
Click to collapse
piratedpanda said:
This is going to be quite helpful to people who are just starting out with modding this device. Great work, shadowstep!
Click to expand...
Click to collapse
S4turno said:
Good job
Click to expand...
Click to collapse
dragynbane222 said:
Pretty sure at least a few of these will come in useful to more advanced users as well, but yeah.
Kudos to you, shadowstep. Definitely a well put together guide.
Click to expand...
Click to collapse
L22EEW said:
This is a really, really good useful thread.
Nice one for putting it together, i'm sure this will help a lot of people when looking for certains things. As they all can now be found in 1 single thread.
Hats off to you.
Click to expand...
Click to collapse
rui_xino said:
Good job man, thanks :good:
Click to expand...
Click to collapse
Thanks a lot guys! Happy to help. And yes, my aim was to make it helpful for both beginners and advanced users alike. I anyway used to keep this stuff updated locally for my personal use, so I thought why not make an XDA thread for the collection, and this is how the thread was born.
anujyadava said:
Great thread!!
You can also add magisk modules created by you for op5 gcam.
Click to expand...
Click to collapse
To be honest, this thought did cross my mind, but since there already exists an exclusive post for them, I decided against it. Thank you for the suggestion though!
djsubterrain said:
@shadowstep You might want to add this thread to the list, I created a batch script when I had my OP2 which will capture all the logs a developer might need to debug an issue, should work with any Android phone including the OP5:
https://forum.xda-developers.com/oneplus-2/general/logs-t3533826
I did make an executable (.exe) version too but some AVs might flag it due to the tool I used, it's just an exe which contains all the files required inside it, which it extracts temporarily when it's run, they then disappear again once it's done :
https://androidfilehost.com/?fid=529152257862698787
Click to expand...
Click to collapse
This indeed seems useful! I just tested this and it grabbed logs alright. If you don't mind, let me find some time later on in the week and I'll try and clean up the batch script a little along with updating the ADB and 7-Zip libraries that you are shipping in your zip file (since there are newer ones available). Once that is done, I'll add it to the collection. Thanks for your work!
August 23, 2018
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Pixel 2 Pie Wi-Fi Mods (v8.0 -> v9.0)
shadowstep said:
August 23, 2018
Pixel 2 Pie Wi-Fi Mods (v8.0 -> v9.0)
Click to expand...
Click to collapse
shadowstep is the MacGyver of XDA
Thanks for all your great work :fingers-crossed:
@shadowstep, this thread is simply amazing! I can't thank you enough for everything you have done. Especially, the time and attention to detail on all of your posts. Your latest dark red version of the codeworkx recovery is awesome. Thank you very much!!
I hope this is okay to ask here. I figured you of all people would know if this is possible to do. I had posted this in the OxygenOS stable build thread in regard to the latest stable build 5.1.5 for the OnePlus 5:
a63548 said:
The new 5.1.5 stable build has been running great, but I miss the updated OnePlus Dialer introduced on the latest Open Betas with rectangles for contact pictures instead of circles. Tried installing the the last apk, com.android.dialer_19.0.0.180505154345.5f45edf-250000_minAPI23(nodpi).apk, uploaded from apkmirror.com over the current dialer, however then it immediately crashes when trying to open.
Thought about trying to remove the older dialer from the system app directory, and replacing it, but was worried that might not work. Anyone happen to do this successfully, or have any suggestions?
Click to expand...
Click to collapse
shadowstep said:
This indeed seems useful! I just tested this and it grabbed logs alright. If you don't mind, let me find some time later on in the week and I'll try and clean up the batch script a little along with updating the ADB and 7-Zip libraries that you are shipping in your zip file (since there are newer ones available). Once that is done, I'll add it to the collection. Thanks for your work!
Click to expand...
Click to collapse
Yeah no problem, I just got it to dump out the logs devs would normally need, I used to do testing for Shreesha in the OnePlus 2 forums so it's the logs he recommended getting.

[MOD][MAGISK REQUIRED] 60fps Video recording

The original thread is here: 4PDA Thread
The files required on the original thread are here: || 4PDA Magisk module || 4PDA Camera, from the telegram group ||
I have uploaded them to Mega because otherwise you must register on 4PDA: MEGA
Instructions:
Download the file from Mega on the device
Unpack the file(you should now have two files, an apk and a zip file)
Open Magisk--Modules and add the zip file
Now install the camera apk, don't open it yet
Reboot
[OPTIONAL] I'm not sure if this passage is always required so if the new camera app doesn't open you need to switch the selinux to Permissive with this app Selinux Mode Changer. Open the app, tap on Permissive. Now try to open the camera app.
Enjoy
Tested on:
LOS16, RR7. Both built by @AndyYan (Thank you!)
LOS 17
I'm not the author of the mod. The intention of this thread is to share it on XDA.
If you are the author or a contributor send me a PM and I will add credits to the thread.
Nice, works perfect.
Tested on MIUI 10.5 by xiaomi.eu 9.8.1

[GUIDE][INDEX]How to modify an apk

How to modify an apk​
Intro:
I’ve done several threads about how to theme and other similar topics but the info is sparse, so this ultimate guide/index will seat proudly in the theme section of XDA and will be updated when new things come, and as I learn more. This isn’t a beginners guide, I’m here trying to be as complete as possible, with links, references, ...
This initial version of the thread isn't here to stay, if you could contribute to this thread, it would mean the world to me, and would clearly help the community (of course I'll mention you for your contribution )
And keep at mind that I’m just an enthusiast, nothing more, and that this thread has been made only by me, so it's far from perfect. If I made any mistakes or if you want to add something please let me know.
Legal aspect:
Using this knowledge to infringe copyright is not only illegal, it’s detrimental to the community. The only legal case, and the only usage of this info condoned, is using it to theme OPEN SOURCE apps (because most of the time, commercial apps forbid reverse engineering in their policies). So don’t worry, theming AOSP is legal. You can always ask the permission of the devs for an authorization to customize their apps, make sure to ask before modding, and distributing the result.
Now I’m not a lawyer, but you can learn more on the legal aspect of reverse engineering on this Stackexchange post.
Summary of this thread:
I-Requirements
II-Download APKs
III-Decompile
IV-What and how to modify
V-Recompile
VI-Sign and Zipalign
VII-Installing the apk
VIII-Other ways to theme your device
IX-Theming related topics
X-Not covered topics
XI-Mods Center
XII-Reserved​
I-Requirements​
A)Java:
It's essential, almost mandatory, the Java Development Kit (JDK) and Java Runtime Environment (JRE) must be installed to use java based tools.
How to install the JDK and JRE
(download and follow the instructions, it’s pretty simple)​
Then, set the path to "java home", you need to do that in order to use java properly within your terminal:
Here’s a tutorial I found​
To check if everything is okay, open a terminal anywhere and enter java --version. If it returns the version of the JDK and JRE you’re good.
B)Android SDK:
Unfortunately we aren’t able to download the Android SDK alone anymore, I used to consider it as a requirement, but now I don’t because some people don’t have the space to install the whole Android Studio IDE just to use the Android SDK.
C)Others:
I suppose that list is going to expand, those two above are the main ones, but if there's something else you need, I'll make sure to put it here
II-Download APKs​
This sounds stupid to take one whole post for that, but sometimes it’s a drag, so here are some ways you can grab the apk you want to modify.
A)APKs form your phone:​Every app you installed from the playstore is under /data/app. With a root explorer like the excellent MiXplorer, you can browse to it and see the icons representing the apps on your phone.
There is an apk called base.apk, that’s the one you want.
Sometime there might be parts called split_....apk along with base.apk, for the excraction of those you’ll need tools like the amazing app called SAI (Split APK Installer), it’s a graphical interface so I’ll assume you’ll figure out how to use it yourself
SAI on the Play Store​
B)From internet:​My two trusted sources I use: APK Mirror, XDA Labs (gone for now)
I also use this chrome module, it has simplified my life sooooo much, it’s provided by the APKmirror team: Toolbox for Google Play Store™
C)Your Sources:​If I missed any good and trusted website, let me know
III-Decompile​This is getting serious now.
If you want to modify the apk, you need to have what’s inside: the code.
A)Resources: Decompile Binary XMLs to Human-Readable XMLs:​We use APKtool for that, it decompiles the resources.arsc file to the res folder, and decodes binary XMLs to human-readable XMLs.
1-How to install APKtool:​How to install APKtool​
2-How to use APKtool:​There are 3 main commands you need to know about:
apktool d [nameoftheapk].apk​Used to decompile the apk. There are several options you can use with that command, they're specified in APKtool's documentation (in the credits).
apktool if [nameoftheframework].apk​Used to set the framework files to decompile properly APKs. Usually some OEMs add framework APKs into Android for their apps to work, so we need to find and copy them, then “install” them with the apktool if command to APKtool. You can learn more about that on APKtool's website (in the credits).
apktoool b [nameoftheapk].apk​Used to recompile the apk. The final apk can be found inside the decompiled apk’s folder, in a subfolder named dist. You can also use various options with that command (listed in the documentation, link in the credits).
B) Decompile Classes.dex to smali:​APKtool also convert classes.dex files to .smali files, but keep at mind that you won’t be able to see the java source code in those files.
The .dex extention is for Dalvik Executable, which is very self-explanatory, and is also a binary format. APKtool turn them into .smali files, which are Human-readable files, not in java, but still! And if you want to modify the code, you’ll have to learn smali. (covered in the next part, good luck with that lol)
C)Read java source code :​There’s actually a way to see the java source code of an Android app, using some tools:
JD-GUI (or any other java decompiler)
Dex2jar
First turn the classes.dex files into .jar files with this command using Dex2jar:
./d2j-dex2jar.sh -f -o output_jar.jar apk_to_decompile.apk​
(Execute the .bat if you’re on windows)
Quick explanation:
./d2j-dex2jar.sh: execute the dex2jar script
-f: replace the previous jar file named the same as output_jar.jar
-o output_jar.jar : set a name to the output jar file
apk_to_decompile.apk: name of the apk file you’re taking care of
Then read the jar file using JD-GUI (or any other java decompiler). It’s a quite simple software, lite weight, and you can download and run the java version without installing anything else.
Dex2jar isn’t updated anymore (since 2015), so there are errors when decompiling. You’ll be able to get a .jar file but it’ll be incomplete or not identical to the original one, that’s why this tool doesn’t allow one to modify java source directly. But you can get a great understanding of how this app works.
C) Nice tools from the XDA community:​• Tickle My Android (TMA) by @Ticklefish
A tool that ease the work with APKtool, amazing one!
• APK Easy Tool by @evildog1
Also works with APKtool, I don’t use it often, but it is great!
• Other tools:
Let me know
Credits, links for this part:
Stack Overflow Post
Documentation for APKtool
Another SO Post
@Rizal Lovins ’
" [Share Latest Apktool 4.2.2/Guide/Tutorial/] How to Decompile/Compile/Sign Apk/Jar "
@A_U ’s
" [GUIDE][HOW-TO] Decompile and Compile apps using Apktool in 5 Simple Steps "
IV-What and how to modify​This part is gigantic, I'll try to include as much link as I can, this part isn't supposed to stay like that very long, as it contains very few of the hundreds of guide about theming in XDA. Help me out by suggesting some links.
​A)Resources (XML):​​1-Tools​To edit XMLs you can use whatever text editor you want, but I’d recommend Visual Studio Code. It has solid plug-ins that may come handy to avoid mistakes when editing.
You can also sort of visualize XMLs with Android Studio's Layout Inspector.
You have to open the apk’s folder in Android Studio and browse to the desired xml. Opening the resource manager will aslo allow you to visualize the XML files to a certain extent, but it's not cristal clear (see the screenshot) so I don’t use that very often, but it’s good to know.
Spoiler: Screenshot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2-What’s xml​This subject is very long, you can learn a lot of things. Here are some links (increasingly detailed) to learn about XML:
A Post in [GUIDE] Want to learn how to theme? by @theimpaler747
Google’s "Guide" (very complete): that google link is about resources in general, so it explains XMLs but not only XMLs
A Reference for Codenames in XMLs
3-Modifications:​You can modify deeply the UI by editing XMLs, here are some guides to make you familiar with some techniques. Again this is a very vast field, it deserve a thread itself, and this list clearly isn"t finished. Here are my favourites ones:
XML 101 by @Ticklefish
[GUIDE][RES] Android Animation XML resources for Activity Transition by @niranjan94
Find the code you want to modify by @Raiz (Me lol)
[TUTORIAL] Where to find the colors for making a theme by @KBanause
[TUT][JB] HOW TO THEME SystemUI.apk for TOTALLY newbie! by @joehanh88
[Reference] Interactive Phone Modification [GUIDE] by @pstevep , this is AN ABSOLUTE UNIT OF INDEX!
[Tutorial][APP] PinP Shortcuts | How to Implement Picture in Picture Mode [API 26+] by @Geeks Empire
[Overlay] Enable Night Light, Auto-Brightness, Ambient Display & more on Treble ROM by @MishaalRahman
Let me know
4-Precaution:​When modifying apks, some errors can be very frustrating, yet very easy to fix. Here are some usual cause of struggle:
Not properly set JAVA_HOME
The tools used (like apktool.jar) aren’t chmod +x (aren’t allowed to be executed)
You have to add java -jar [command] before every .jar tools commands for it to run
Tell me, don't be shy
For every tool related bug, please refer to their GitHubs, sometimes you’ll find a solution by searching. And XDA threads are also plenty of answers! (and if you’re really not lucky maybe stack overflow can help).
B)Smali:​That’s a tough one. First, if you want my advice, editing them with Visual Studio Code and the smali plugin is way easier to find mistakes. There’s also a smali plugin for Android studio (and IntelliJ based IDE) made by Jesus-Freke, it is called smalidea.
Now I found one reaaallllyy awesome thread here on XDA about smali:
[GUIDE][SMALI]Understanding and Creating Smali Mods & General Smali Questions by @Goldie
Something else maybe? Tell me
This is my reference, I’m still learning smali tho, this list may be updated, but this thread is pure gold, go check it out!
Credit for this part:
Resources:
@Ticklefish , for XML 101 (but also for TMA), this is really one of my favourite thread on XDA
All the other members mentioned in the above list
Smali:
@Jesus-Freke , for his work on smali, baksmali (integrated in APKtool) and smalidea
@Goldie , for the amazing thread explaining smali
V-Recompile​You've done the hardest part, now what's left is repacking that thing together.
A)How to recompile:​It’s pretty simple, do it with apktool with this command:
apktool b [nameoftheapk].apk​You can add several options, here’s the full list.
The -c option to me is the most useful, because it allows to leave the signature unchanged for system apks. It’ll be deprecated soon (APKtool v2.6.0), so you’ll have to do the trick manually.
What -c (--copy-orginal) does: “Copies original AndroidManifest.xml and META-INF folder into built apk. Scheduled for deprecation.”
A bit of details, good to know:
“META-INF contains apk signatures. After modifying the apk it is no longer signed. You can use -c / --copy-original to retain these signatures. However, using -c uses the original AndroidManifest.xml file, so changes to it will be lost.”
And
“After [d]ecode, there will be new folders (original / unknown) in the decoded apk folder
original = META-INF folder / AndroidManifest.xml, which are needed to retain the signature of apks to prevent needing to resign. Used with -c / --copy-original on build
unknown = Files / folders that are not part of the standard AOSP build procedure. These files will be injected back into the rebuilt APK.”
Apktool uses aapt2, the tool used in Android Studio to compile your app. You can learn more on what it is here.
B)Troubleshooting:​First, remember that you can use aapt1 (used by default) and aapt2 when recompiling, try both if you run into some issues with the first.
If you have an issue with APKtool's dummy values, go on the Github Issue I opened, the problem is now solved.
Most common error, and simple to solve are the following:
-Name of the file not written correctly:​
Code:
brut.directory.DirectoryException: java.nio.file.NoSuchFileException: Firefoxr
Solution: The correct name is Firefox not Firefoxr, how dumb can I be?
​-Aapt errors: (here a folder isn’t recognized):​
Code:
W:invalid resource directory name: /Users/Raiz/Desktop/apktool/Firefox/res navigation
Solution: Use aapt2, the folders not recognized are because aapt1 (used by default) is older than aapt2, so if you see an error like this, use the option “—use-aapt2”
​-Xml Errors:​
Code:
W: /Users/Raiz/Desktop/apktool/framework-res/res/values/styles.xml:1185: error: Resource entry Theme.Holo already has bag item textEditSuggestionItemLayout.
Solution: These errors are quite easy to fix, just go to the file at the line mentioned then fix the error. Usually it a doubled line, a synthax error, …
Unfortunately APKtool isn’t able to correct string typos, it’s up to you to write in correct English (definitely struggling with that on my side lol).
For other more specific errors, copy/pasting the error message in the google search bar will most certainly redirect you to a Github error, or a post in The Official APKtool XDA Thread. You can find answers by searching, so search thoroughly before asking, it’ll save you some time.
And what is troubleshooting without
[UNIVERSAL][LOGCAT]How to get & read a logcat/ Troubleshoot your own issues!
by @Stryke_the_Orc​
Credit for this part:
APKtool issues on Github
The APKtool documentation
@iBotPeaches for this amazing tool
VI-Sign and Zipalign​
We must sign an app after having modified it, so it can be installed properly on our devices. System Apps MUST keep the same signature they had before modifying, or else the app will continuously force close, and it may even result in bootloops and other bad things.
To keep the signature take the META-INF folder from the not decompiled apk (browse it as a zip file) and put it in the newly recompiled apk (browse it as a zip file too, if there is already a META-INF folder, just replace it)
Links to build and platform tool:
Platform-tools: https://developer.android.com/studio/releases/platform-tools​Build-tools: Have to be downloaded from sdk manager in android studio​
A)Official way:​Tool used in the correct order:
1)keytool (included inside java)
2)zipalign from build tools (29.0.2 here, but use the latest )
3)apksigner from build tools (29.0.2 here, but use the latest) (+the lib folder containing apksigner.jar)
Where are build tools?
Mac: ~/Library/Android/sdk/build-tools/[your buld-tool version]/
Linux: ~/Android/sdk/build-tools/[your buld-tool version]/
Windows: C:/User/yourusername/AppData/Local/Android/sdk/build-tools/[your buld-tool version]/
Disclaimer: Using jarsigner is also possible (tool natively included in java jdk), if you use it, make sure you zipalign AFTER signing.
Make sure that apksigner (and lib) as well as zipalign are in the folder you’re apk is in.
Make sure they’re all executable (check that using chmod) and on mac os, make sure your terminal has full disk access (I had a hard time figuring this out lol).
​1-Generate keystore:​This is pretty simple, we’ll use keytool, at tool antively included in java jdk. We’ll need only one thing before using apksigner : the keystore.jks file (or a separate certificate and private key, but that’s more complicated)
keytool -genkey -v -keystore ~/Desktop/apktool/keystore.jks -alias Raiz -keyalg RSA -keysize 2048 -validity 10000​
Just replace the alias (here Raiz) by a familiar name, you have to remember it! (here’s why)
Also replace the name of the jks file (but not it’s extension, even though it can be .keystore, I had less issues with .jks)
Quick explanation of what does what in the command:
keytool : the command to use keytool obviously
-genkey : generate the keystore
-v : display verbose
-keystore : set the path to the future file
~/Desktop/apktool/keystore.jks : Path and name of the future file, you can call the keystore whatever you want to.
-alias Raiz : specify the alias used, it can be whatever you want, but remember it, it’s like a publisher name
-keyalg RSA : specify the algorithm used for the key, here it’s RSA (here’s a bit of history)
-keysize 2048: the size of the key in bits
-validity 10000: validity in days, here 10000 days
1*- Generate key.pk8 and cert.pem:​This is a quote from another thread (by @wilskywalker), this isn't necessary, but can come handy when signing zip, so I'll leave that here anyway.
You will need the following download:
OpenSSL [LINK]
[...]
Code:
openssl genrsa -out key.pem 1024
openssl req -new -key key.pem -out request.pem
openssl x509 -req -days 9999 -in request.pem -signkey key.pem -out certificate.pem
openssl pkcs8 -topk8 -outform DER -in key.pem -inform PEM -out key.pk8
Click to expand...
Click to collapse
2- Zipalign:​​./zipalign -v 4 firfox-mod.apk firefox-aligned.apk​Quick explanation:
-v : verbose
4 : align on 4 bits, putting another value will align the wrong way, just keep 4
firefox-mod.apk: name of the input apk, can be anything
firefox-mod-aligned.apk: name of the output apk, can be anything too
3-Sign the apk with apksigner:​
./apksigner sign --ks keystore.jks firefox-mod-aligned.apk​
Quick explanation:
sign: the command use to sign
--ks keystore.jks : specify the keystore file (the same one we generated seconds ago)
firefox-mod-aligned: the input apk (the one we just aligned), note that the apk will be signed and there won’t be any output apk this time
And you’re done, you can check that it has been properly signed with this command:
./apksigner verify firefox-mod-aligned​
Where firefox-mod-aligned is the apk signed we want to check
​3*-Sign the apk with apksigner using .pk8 and .pem files:​
./apksigner sign ---key key.pk8 --cert certificate.pem firefox-mod-aligned.apk​
Credits, links for this part:
How to sign an app (by Google)
apksigner documentation
keytool documentation
zipalign documentation
Stack Overflow post
@Rizal Lovins ’ Guide
B) Unofficial ways:​Some amazing devs and contributors at xda provided us with tools to sign with ease APKs (without having to think about all of that),I didn’t fully tested every one fo them, but you can try them as an alternative if the “official way” didn’t worked out well.
Here they are:
APK easy tool by @evildog1
APK Sign/Zipalign/Install by @aureljared
Uber APK signer (Github)
VII-Installing the apk​Your theme should be ready by now, but how do you want to install it?
There are several ways to get an apk inside your phone, I’ll go over the ones I think are the most common.
A)Regular apk install:​Just install it duh… (here you go if you need a little help).
B)Flashable zip:​I do recommend making flashable zips, because they’re pretty useful when installing modded system apps. So what is it?
1-Folders:​A flashable zip contains 2 folders: META-INF and a folder which will mimic the path to the apk we want to install. Inside that succession of folders, we’ll put our modified apk, and when flashing, the modded apk (inside the zip) will replace the original one inside your phone.
E.g: create system/priv-app/systemUI/systemUI.apk to install a modified systemUI.apk file by replacing the original one
Click to expand...
Click to collapse
E.g: create data/data/com.mixplorer/databases/data.db to replace the original data.db file inside this folder
Click to expand...
Click to collapse
Once you get those folders done (and the apk inside of it), it’s time to write the edify script that’ll flash the zip file.
2-Edify Script:​Edify is the language the script will be written in.
The file containing the script is located in /META-INF/com/google/android/updater-script (the name of the file is updater-script, naming it something else would make it ignored by your custom recovery)
Open this document with a text editor, and start coding!
We want to copy/paste the content of our zips onto the system (and replace files), so here’s the precise things we’ll do:
a-(OPTIONAL)Your “intro”:
Using the ui_print(" "); command, we can make some really cool looking ASCII art. You can write comments at whatever steps you want with this command, it’s pretty handy!
ui_print("Your Message here");​b-Mount the system partition:
​run_program("/sbin/busybox", "mount", "/system");​
c-Extract the content of the zip to /system:
package_extract_dir("system", "/system");​d-Unmount the system partition:
unmount("/system");​This is very basic, you can do so much more with edify script! Set the progress bar progress, set permissions to certain files, delete folders and/or files,...
3-Sign your zip:​You need to sign your zip after compressing it! The process looks like the one with key.pk8 and certificate.pem files, so I'll refere again to the same thread for that. (In the Credits)
I've covered the basics, now it's index time, you can go further with the links in the credits, and you can suggest me more!
Credits:
[WIP] How to Write an Updater-Script with Edify Code by @Karadorde
That one covers how to sign your zip:
[TUTORIAL] Making Flashable ZIPs, EDIFY Script, ZIP Signing & Key Creation [19.01.13] by @wilskywalker
My Very Own Script by Me
More Links:
[GUIDE] Create your own Flashable ZIP with custom updater-script and addon.d script by @Primokorn
[TUTORIAL] The updater-script completely explained by @KINGbabasula
Spoiler: Bonus
4-How to make a working progress bar​First “create” the progress bar that can go up to 100%
show_progress(1.000000, 0);​Then set the progress after each steps: (here I set it at 10%)
Code: set_progress(0.100000)​
C)ADB sideload:​Adb allows one to flash zips through command line using a custom recovery.
How to install adb​Now how to sideload an apk using adb:
Make sure your phone is plugged, and your PC allowed to use adb on your device. (the last steps of the guide I linked on how to install adb on your pc)
Reboot to recovery
For TWRP : Advanced → ADB Sideload For CWM : Install → Install Zip from Sideload
Code: adb sideload path/to/flashable.zip
And that’s it, congrats
D)Aroma Installer:​They’re very cool, yet I’m not really familiar with those.
This concept origins from XDA Inactive Recognized Developer @amarullz , and is used by the OpenGApps team for their Aroma package. Needless to say its work eased the task for many others, feel free to leave a thank on the threads:
Q’n’A about Aroma Installers: [Q&A] AROMA Installer - [Dev Move To DevDB]
Q’n’A about Edify and Aroma: (by @Dblfstr) Aroma, Edify, updater script Question and Answer thread
A tool to create them: [TOOL][3-10-13] Aroma App Package Creator v1.3.2 (by @commandersafi)
VIII-Other ways to theme your device​Making the whole apk is often long, and doesn’t leave much control over the theme to the user, alternative ways of theming let users control how they want the theme to be applied. Those 2 ways won’t be covered by me (as I don’t know enough about them yet), that's why, for this part, every input in welcomed
A)Magisk Modules:​This is now a pretty common and convenient way to distribute APKs and mods, so I had to cover it. Here’s a link to an official developer guide, it covers a good part of it, if you have an input, it is welcome!
https://topjohnwu.github.io/Magisk/guides.html​
B)Substratum Themes:​I don’t even need to tell you what is substratum, as it is pretty famous (along with Magisk), but let’s say you’re totally new.
Substratum is a theme engine that allows you to control what element of your system you want to be themed, and apply themes with the possibility of disabling theme at some point in time. So how to make a substratum theme ?
Links:
Video from the XDA chanel on YT
Another one from XDA on YT
Theme template form the official Substratum Github
IX-Theming related topics​All of the things I couldn't fit in the previous sections are here, make an input, I'll make sure to add it if it's relevant
A)Design Basics:​Now I don’t have especially fine taste in terms of designing, but I’m trying to learn!
Here are some links:
The Android Design Resources Forum in XDA
XDA Article about icon design
Material.io
Matrial.io YT channel
B)Boot Animations:​Here are some helpful threads and links:
[TUTORIAL]How to make your own boot animations (with sound if you want) by @despotovski01
[GUIDE] How To Make Bootanimation by @jackeagle
[GUIDE][TUT]make/Port any bootanimation|||USING VIDEO/FRAMES by @deathviper
C)Icon Packs:​[GUIDE]How to create icon packs for Go/Nova/Apex/Holo/ADW/LauncherPro/XperiaHome by @iamareebjamal
D)Port OEM Apps:​[GUIDE/TIPS] How to Port OEM Apps / Vendor Apps to Your Current ROM by @Rizal Lovins , this one is a wealth of information! really good and unique
D)Build.prop:​[Tweaks][Guide]Build.prop Tweaks by @bravonova
X-Not covered topics​Why don’t you talk about … ? That’s theming tho! And what about … and …? What is this thread!
I understand, these are legit claims, but I can’t cover everything. That’s where YOU come in play, you certainly know things that I don’t, so please, if you have any knowledge about something I didn’t mentioned above, please let me know!
I’m trying to make this thread as complete as possible, so I’d be very grateful if you could share a little about your knowledge .
Thank a bunch!
I know I already said that 10000000 times, but really, it would be awesome to have inputs!
XI-Mods and Wallpapers:​Let me take a tangent from the original purpose of this thread. This was supposed to be all about guides, but I thought about that twice and I think that's a good idea.
Basically, this here will list some of the amazing mods and themes around xda.
The goal here is to crack open those and see how they work, this would represent an immense work that I'm not able to take on right now, so I may leave links here, and you'll do the jobs of understanding how they work. Maybe at some point I'll write some here (with the credits of the OP of course!), but certainly not now.
Links:
Offline Google LLC App Wallpapers by @[email protected]
XII-Changelog:
For each update I'll bump this thread, so that you can enjoy latest links​04-01-2021 Update:
Happy new year! I went through my long list of watched threads, and found the gems I kept selfishly, they're yours now !
Added:
[GUIDE] Create your own Flashable ZIP with custom updater-script and addon.d script
[UNIVERSAL][LOGCAT]How to get & read a logcat/ Troubleshoot your own issues!
[GUIDE/TIPS] How to Port OEM Apps / Vendor Apps to Your Current ROM
[Tweaks][Guide]Build.prop Tweaks
[GUIDE]How to create icon packs for Go/Nova/Apex/Holo/ADW/LauncherPro/XperiaHome
[TUTORIAL] The updater-script completely explained
[TUT][JB] HOW TO THEME SystemUI.apk for TOTALLY newbie
[Reference] Interactive Phone Modification [GUIDE]
[Tutorial][APP] PinP Shortcuts | How to Implement Picture in Picture Mode [API 26+]
Offline Google LLC App Wallpapers
[Overlay] Enable Night Light, Auto-Brightness, Ambient Display & more on Treble ROM
Thanks for this, useful for sure. This is mostly on Windows. There's a way to do this directly on the phone ( most of it anyway).
I use an app called: Apkeditorpro.
I use version 1.9.10 cause i don't like the ui in the newer version.
In it you can :
-edit xmls directly.
-decode the smali and edit them, and view the java code and edit it with no extra tools.
-extract or replace files
-and rebuild the apk when finished. It'll show you a list of compile errors if any when building to review. If the build works it signs it and offers to remove old app and reinstall the new apk.
I found it very useful in editing theme overlays or add fonts in fonts tab in settings.
I am like you an enthusiast in all things modding. Still learning smali/ java editing. Hope we can learn together and from each other
Merry Christmas
Hi is it also valid for Xiaomi apk?
Braain said:
Hi is it also valid for Xiaomi apk?
Click to expand...
Click to collapse
Yep, it's valid for almost anything (any apk at least), feel free to ask here if you encounter problem, I'll do my best to help
Hi I started working with Riru-Enhanced mode for Storage Isolation and some mistakes I made now it's oky now I want to try to modify the handset apk because Xiaomi Redmi 7 is andro system android carefully
Raiz said:
04-01-2021 Update​
Click to expand...
Click to collapse
The First Update of this thread is out!, check out the post I quoted to see the list of threads I added, I also integrated them to the main guide (with proper credits), but I think making a list for each update more convenient for you readers.
I recommend to bookmark those thread or to watch them, because some are really amazing!
[QUOTE = "Raiz, post: 84227321, membro: 8020437"]
Il primo aggiornamento di questo thread è uscito !, controlla il post che ho citato per vedere l'elenco dei thread che ho aggiunto, li ho anche integrati nella guida principale (con i crediti appropriati), ma penso che fare un elenco per ogni aggiornamento più conveniente per voi lettori.
Consiglio di aggiungere quei thread ai preferiti o di guardarli, perché alcuni sono davvero fantastici!
[/CITAZIONE]
Great gems, indeed. Let me add this to the collection:
[Samsung only]How to modify stock font app (SamsungOne.apk, SamsungSans.apk, or Fondation.apk)
This post describes it using ApkEditorPro directly on the phone. It could work on other devices if you know what your stock font app is. It's a simple drag and drop your custom files in the right place.

[MODULE TEMPLATE] MMT-Extended-Next

Hello everyone. I've modified the MMT-Extended Magisk Module template that Zackptg5 hasn't updated for a long time, adding a few nice features.
Now you can create and release Module Zip file with existing github files in just 1-2 minutes using Github Actions. For this, after making the necessary changes in your module files in the repo, it is enough to run the create&release workflow in the Actions section. You don't need to do anything else.
To start using the template, simply proceed from the "Use this template" option from the link below. I hope it will be of use to you.
GitHub - symbuzzer/MMT-Extended-Next: Magisk Module Template Extended with Create & Release feature
Magisk Module Template Extended with Create & Release feature - GitHub - symbuzzer/MMT-Extended-Next: Magisk Module Template Extended with Create & Release feature
github.com

Categories

Resources