yashsingh1/xdaforums huggingface dataset:
[G4 Q&A, Help & Troubleshooting] Kris the wizz 15:
So I recently got an LG G4 from a friend, he wants me to fix it.

No, you needn't laugh at me behind my back. Feel free to to do it to my face.

[Edit]

Sorry is took so long to get these screens guys. Life happened.

We have two videos and an image. Will get more if necessary.

[/Edit]

TL, DR:

Phone problems:

Not booting, appears to be boot-looping. No SODS.

Cause of phone problems:

Unclear, was not in possession of the phone when they began.

Flashing problems:

LG Flash tool reaches 9% then fails. Consistently. Persists across multiple KDZ files, USB cables and ports.

So the basic jist is I haven't the slightest idea why the phone stopped working in the first place, so can't tell if it is hardware or software related, but I've taken it upon myself to try and fix it.

The problem with the phone is your basic boot-looping, though I am not sure as to the severity of the brick.

I haven't encountered any Screens of Death in my interactions with the phone

Anyway, I have the KDZ files and everything else I need to restore the phone.

When I put the phone into download mode and begin the flashing process, it does begin the flashing process, the little terminal place in the download mode screen (on the phone) starts showing more text, like it should, and the arrows start spinning.

Then when the flashing process hits 9%, it will stop working.

[IMG="imgur.com/IJ33oFi"]9% Computer Screenshot[/IMG]

Computer side of things:

[YOUTUBE]https://youtu.be/A4xNln7wHOU[/YOUTUBE]

Phone side of things:

[YOUTUBE]https://youtu.be/q_kUVOx7hpA[/YOUTUBE]

[EDIT]

For some reason adding the files to the post is not working, so here are the links instead:

9% Screenshot

Computer Recording

Phone Recording

[/EDIT]

I've restored LGs in the past using the KDZ method, even LG G4s, so I know what to expect.

Never once have I run into this problem though. It's an entirely new problem for me.

I should also mention that the result persists even after I downloaded a fresh copy of LG Flash tool, the LG drivers as well as the KDZ files themselves.

Another interesting, though probably unrelated quirk I've seen is that any time I put it to charge, it won't stay in that battery charging screen it normally should while it's off, but instead try to boot itself almost immediately after it gets to that screen.

I'll try to grab some screens, maybe a video to show exactly what's going on, but in the meantime, any and all help would be appreciated.

-Kris
[G4 Q&A, Help & Troubleshooting] TheMadScientist:
Sounds like ilapo bootloop.
[G4 Q&A, Help & Troubleshooting] starpandi2004:
attach some screen shots...surely we will help
[G4 Q&A, Help & Troubleshooting] raptorddd:
you need LGUP to flash KDZ files..
[Magisk] yochananmarqos:
This guide hasn't been updated in about 5 years.

Please see the XDA article Best Magisk modules instead.​

Original thread by LarappsOfDongle

See also Magisk Modules for OnePlus 3T.

I decided to create a new thread as the old one has been obsolete ever since the release of Magisk v9. Since then, cache modules are no longer supported and some features have been integrated like busybox (removed in v13) and systemless hosts.

NOTE: This is not a place to get help with Magisk. Please see @Didgeridoohan's Magisk and MagiskHide Installation and Troubleshooting Guide. If you cannot find the answer to your question there, please post in the Magisk Support / Discussion thread.

This is also not a place to request Magisk modules. Please create your own topic starting with [REQUEST] in the title.

MAGISK IS NOT XPOSED. Xposed modules cannot be "ported" to Magisk.

If you need help with creating a Magisk module, please see the Assistance for Magisk Module Developers thread.​

Unchanged modules

Mount Magisk (attached below)

This simple script mounts the magisk.img in recovery to /magisk to allow it to be edited in case a module or script is causing a bootloop. Or you can use Magisk Module Uninstaller or Magisk Manager for Recovery Mode.

Now available in Magisk repo

ViPER4Android Installer

Updated modules

Busybox Installer: As of Magisk 13, Busybox is no longer integrated.

Repo | XDA

Obsolete modules

Ad-Block Installer: Systemless hosts are now integrated into Magisk Manager. DNS-based ad blockers like AdAway are supported.

Better Battery Stats Installer, Action Launcher, Nexus Launcher: Use Terminal App Systemizer

Modules, modules and more modules!

Modules with a Repo link can be installed via Magisk Manager in the Downloads section. Modules without a Repo link may not be compatible with Magisk 14 +. For help with modules, please contact the developer via their XDA support thread or GitHub page.

Modules A - H (Post #2)

Modules I - P (Post #3)

Modules Q - Z (Post #4)

Magisk Module Templates

These are modified versions of the original Magisk Module Template that allow you to accomplish different things. Most will require extra work before they are ready to use.

Templates (Post #5)

If you know of any other modules, please let me know and I'll add them.
[Magisk] yochananmarqos:
Modules Q - Z

Rootless Pixel Launcher: Version for Pixel users

Repo

Secure I/F: Designed to disable data delivery through USB. It can protect your data when you are charging in public area.

Repo

Sony Framework: This for non Sony-Users contains Sony's Framework.

Repo

Sudo4Droid: Adds the sudo command to Android

Repo

Swap Torpedo: Universal compressed-memory swap (zram, etc etc) destroyer - run faster and more reliably!

Repo | XDA

Sysconfig Patcher: Systemlessly patches "/system/etc/sysconfig/*" for data and battery savings & auto-re-patches after ROM/GApps updates.

Repo | XDA

Systemless Substratum Legacy: Allows installation of Substratum themes in legacy/root mode systemlessly.

Repo | XDA

Systemless TZData: Update your ROM's TZData systemlessly.

Repo

Systemless Xposed: This is a port of rovo89's Xposed framework to work systemless-ly through Magisk

SDK 21 (Andoid 5.0)

SDK 22 (Android 5.1)

SDK 23 (Android 6.0)

SDK 24 (Android 7.0)

SDK 25 (Android 7.1)

SDK 26 (Android 8.0)

SDK 27 (Android 8.1)

XDA

Tasker Tethering Control: Systemless install of matejdro's Nougat+ Tasker Tethering Control

Repo

Terminal App Systemizer: Systemize your app systemlessly! Using terminal emulator.

Repo | XDA

Terminal Debloater: Debloat your phone systemlessly! With your own choices in terminal emulator menu.

Repo | XDA

Terminal Modifications: Edits the files /system/etc/mkshrc and /system/etc/bash/bashrc.

Repo

TheSoundMod: Sound mod for Samsung Galaxy S7 / S7 Edge

Repo | XDA

ts-binds: Binds two different folders on your device so that both folders share the same contents.

Repo

UKM REBORN: This is an adaption of the original Universal Kernel Manager Reborn.

XDA

Unified Thermal Mod (UTM): Thermal mod for the Nexus 6P.

XDA

ViPER4Android FX: Utilizes the Audio Modification Library that allows installation of multiple audio mods without having compatibility issues.

Repo | XDA

ViPER4Android FX v2.3.4.0: ViPER4Android FX 2.3.4.0, including super quality driver.

Repo

ViPER4Android XHiFi: Enables ViPER4Android XHiFi

Repo | XDA

VR Compatibility for OnePlus 3 Oreo: Enables VR service on OnePlus 3 devices.

Repo

Wireless Firmware for Nethunter: Adds the required firmware for external wireless adapters to be used with Nethunter.

Repo

Xbox One S controller: Adds the necessary layout file to use Xbox One S controller for gaming on your Android device.

Repo

xmlpak: Install vendor apps directly from the Play Store!

Repo | XDA

Xposed Framework: Unified systemless Xposed Framework for Android Lollipop - Oreo

Repo

YouTube Vanced: A well known modded version of YouTube with many features such as adblocking and background playback

Repo: non-themed | black theme | XDA
[Magisk] yochananmarqos:
Magisk Module Templates

These are modified versions of the original Magisk Module Template that allow you to accomplish different things. Most will require extra work before they are ready to use.

Adfree YouTube Template: Systemlessly replace the YouTube app with any modified version without tripping SafetyNet.

XDA

APK-Patcher Lite: A modified version of APK-Patcher that will delete / inject files into System APK files instead of using a baksmali / apktool method.

XDA

Easy Font Installer: Replaces the default font in system/font/ roboto-regular to whatever font you place in the module ZIP. There's also a version that uses the Ubuntu font here.

XDA

EvilTheme Patcher: A mod to the Magisk Module Template that allows you to patch APK files on-the-fly and have them created as a Magisk Module.

XDA

Smali Patcher: Not a template exactly, but it requires some work before you can install it. Patches your services.jar to hide mock location status, allow screenshots/screen sharing in secure apps and disables signature verification allowing modification to signed system apps.

XDA

System/Less Magisk Module Template: Allows you to choose whether modules install in either Magisk (as a module) or directly in /system.

XDA

Terminal Emulator Magisk Module Template: This template is for Making a script with visual elements which can be executed in a Terminal app in Android, as a Magisk Module.

GitHub

Unity (Un)Installer Template: Allows one zip to work for multiple devices and root solutions

GitHub | XDA
[Magisk] yochananmarqos:
Reserved 6
[Magisk] ahrion:
I have a plethora of magisk mods currently awaiting magisk repo approval.

https://github.com/therealahrion
[Magisk] leolawliet:
They're audio mods! Awesome :D

Would you like to have some of them posted on this thread while they wait for approval?
[Magisk] ahrion:
I have my Dolby Atmos thread in my sig.
[Magisk] origitat:
I've just recently started using Magisk again and I am very happy with how great it works but can someone clarify something... I have systemless hosts turned on so I can now download adaway from xda and have no issues with systemless right? I remember previous versions causing SafetyNet issues which I want to avoid.

I can just install adaway and enable with no worries?
[Magisk] leolawliet:
No worries man, it's built-in to Magisk now. Once you enable the Systemless host the ones you install with Adaway only write to the Systemless host file in Magisk.

---------- Post added at 06:10 AM ---------- Previous post was at 06:07 AM ----------

Hey [MENTION=5124760]yochananmarqos[/MENTION] you can add this module to your thread if you like. I'm still merging it with GitHub but it's not giving me much options on mobile.

https://xdaforums.com/apps/magisk/module-ps-remote-play-enabler-t3575876
[Magisk] origitat:
Thank you for confirming my friend.
[Magisk] leolawliet:
De nada ?
[Magisk] yochananmarqos:
All attached modules are updated with the new template changes.

Both are added to the OP.
[Magisk] LazerL0rd:
Doesn't the remote play exist already called "Sony Framework" in the Magisk repo?
[Magisk] yochananmarqos:
No, they're two different things. Remote Play requires the Sony Framework to run on non-Sony devices.
[Magisk] iaTa:
5X/6P Camera 60fps Recording Module

Tested with Camera NX but should work with other apps as I have included the media profiles xml.

No need to delete any files from the vendor partition as the latest version of Magisk (11.5/11.6) has fixed the previous vendor issues.

Just install and reboot!
[Magisk] leolawliet:
Damn you beat me to it lol great job :)
[Magisk] iaTa:
Pixel Launcher Transparent Dock Module

I edited the stock NexusLauncherPrebuilt.apk using the hotseat pointers from this thread: https://xdaforums.com/nexus-6p/themes-apps/mod-tutorial-pixel-launcher-smaller-t3499371

The app drawer correctly transitions from transparent to white when opened.
[Magisk] LazerL0rd:
It's the media_profiles.xml thing. [MENTION=5467580]iaTa[/MENTION] could you remove the media_profiles.xml please, it's causing a FC on CameraNX.
[Magisk] yochananmarqos:
Hey. Wrong thread. I see you already cross-posted in the correct thread.
[Magisk] VR25:
Use this app: https://play.google.com/store/apps/details?id=rikka.appops
[Magisk] culiacanazo:
Not a module, but (excuse me Mr [MENTION=5124760]yochananmarqos[/MENTION])...
[Magisk] yochananmarqos:
That's not what he was talking about and the question was already answered.

You're excused. :confused:
[Magisk] ZeRoZeRoRaZ:
Can't install latest (1.0) CrossBreeder Lite.

First I thought that it might be problem with upgrade from 0.9 but after installing 0.9 problem still persists.

Magisk just says process error.

Any ideas?
[Magisk] teddy0209:
Try flashing in recovery
[Magisk] ZeRoZeRoRaZ:
It says wrong zip format and it's right so I repacked it and I still can't install it from Magisk UI. It installs from recovery but it's not showing in Magisk modules list.

Any idea?
[Magisk] teddy0209:
What version of magisk are you using?
[Magisk] ZeRoZeRoRaZ:
Latest 12
[Magisk] yochananmarqos:
This isn't the proper place to troubleshoot issues with modules. Please use the module support thread.
[Magisk] ZeRoZeRoRaZ:
Thx for info I found proper thread.
[Magisk] teddy0209:
Lol... Didn't realize that this is not the general discussion thread... ?
[Magisk] culiacanazo:
Lol im having a deja vu
[Magisk] The5heep:
Is there currently a way to patch icons system wide? Substratum currently doesn't have this functionality and I would like to use the Pixel Launcher
[Magisk] rignfool:
If you are super crafty... With the EvilTheme thingy... I bet you could set each icon individually and rebuild the apk...

But a one touch theme all the icons button does not exist...
[Magisk] The5heep:
Damn. I used to use th CM Theme Engine, then used Unicon, but now substratum doesn't support icons :(
[Magisk] culiacanazo:
*Cough, cough* Evie *cough* is all around better *cough, cough!*
[Magisk] The5heep:
But does it have Google now when you swipe right?
[Magisk] culiacanazo:
Well, see it for yourself. Plus most roms allow you to map whatchamacallits and whatnots

EDIT I'm reading my own reply and i believe you may wrongly infer from it that you can't use Google now when swiping when, in fact, YOU CAN (explore the settings, very complete, yet not overwhelming - i don't think you will be disappointed - let me know)

To the others, sorry for off topic, this is the reason why i didn't wanna originally include all this info)
[Magisk] The5heep:
Were you referring to the two finger swipe up? That's cool but not quite the same as Google Now being a dedicated page :/
[Magisk] culiacanazo:
Ok.

Different tastes,i guess.

I tried.
[Magisk] Kir3:
I just recently got interest in Magisk and want to clarify something: is the Magisk the "new Xposed" with all these modules?

Is there a module that can auto change network like when screen is off - switch to 2G only and when it's on, enable LTE? (I can't find one in the list in OP)

Can I request someone make/create one if there isn't one?
[Magisk] rignfool:
I'm sure it could be done... I just don't know how...

Hypothetically... If your kernel supported a screen off max... And you knew how to hook that... Recompiled the files that needed the hook... Then replaced them with Magisk... Sure...

But again... A one click toggle ala Xposed... No

Edit: but Tasker can do it
[Magisk] culiacanazo:
Try tasker
[Magisk] Didgeridoohan:
Clarification: No.

Think of Xposed as a code injector that can change the system and apps on the fly.

In the same way, think of Magisk as a file injector that can replace files and folders at boot to make modifications, like Xposed, systemless. It can also change prop values on the fly (build.prop).

"Module" is not a word exclusive to Xposed... :p
[Magisk] nthacks:
I'm pretty sure there are apps that can do that with root. Try to look for those.

EDIT: The app I thought of apparently requires xposed sorry.

But like the others said, it's most likely possible to do this with tasker.
[Magisk] edoardotavecchio:
There's an app called LeanDroid which is supposed to do that. I use it and it works fine.
[Magisk] Kir3:
Tried LeanDroid, requires SuperSU but I use LOS build in root. I made it work with Automate which is similar to Tasker.

Thanks all.
[Magisk] badai:
where in sdmaid? can't find it.
[Magisk] culiacanazo:
In app control

Make sure you go to settings first and enable system apps (since those are the most problematic ones).

I think you do need pro, tho, i can't remember
[Magisk] badai:
I see that the brown box Boot. but how to stop the app from running at boot?

nm. figured it out. in receiver manager.
[Magisk] me7tarfeek:
Good day all

Is it possible to see a module for Magisk that could mod status bar like centering clock or modding battery?

Thanks
[Magisk] rignfool:
Yes and no...

If you find a framework-res.apk that has the clock centered... You can create a magisk module to load your framework on boot and BAM... center clock...

A universal one click Xposed style code injection mod... No
[Magisk] me7tarfeek:
Thanks a lot for the clarification
[Magisk] tool666schism:
OGYouTube doesn't show up for me after installing via magisk.. anyone have any idea what I did wrong?
[Magisk] kavee.gauravjoshi:
Try this: open YouTube app. Go to settings. If you have done everything right, you will find OG Settings there. Inside the setting there is an option 'App Icon' under 'OGYouTube' section. The default selection is hide. Change it and see if you can see the app.

Also, as far as i know you have to disable auto updates for YouTube app in the playstore to avoid any future issues arising due to updates to YouTube app.

Hope this helps.
[Magisk] kiki059:
Hey it's new module for greenify :)

https://xdaforums.com/apps/magisk/module-greenify4magisk-t3606277
[Magisk] tool666schism:
Deleting installed updates and readding it in magisk did the trick, thanks.
[Magisk] Bhujji:
Hey all, the modules Terminal App Systemizer and AppSystemizer both have the same function, right? The only difference being one is controlled from terminal and the other has an app to do it?
[Magisk] veez21:
[MENTION=5124760]yochananmarqos[/MENTION]

Here's a new Magisk Mount flashable zip. The one in the OP doesn't mount /data, which is pretty annoying and creates magisk.img in /cache. I removed the part that creates the img and added /data and /cache mounting

Current version: v2
[Magisk] fiver5:
Shell Environment enhancements for root

Not quite worthy of being put in the repo due to it's simplicity.

The module is called 'local' because when I started putting it together my intention was for it to house customized things that I created and installed myself and might not be interesting enough or portable enough for distribution.

This will set your shell when running as root to use busybox ash. It will set some niceties for the prompt and colorization, and if you have created /sdcard/.ashrc you can put whatever else you want in there without having to update the module itself. History will be logged to /sdcard/.history

What it does: When connecting in by adb, the shell will always be mksh. The android version of mksh will not read /etc/profile or ~.profile so customization options are limited, it will ONLY read /etc/mkshrc. These things are all hard coded in and cannot be changed.

If I'm in the shell I'm going to be root anyway, and I slightly prefer busybox over the android mksh.

This will put directives in /etc/mkshrc that if the session is interactive, calls to su will use ash -l as the shell. It creates an /etc/profile with some defaults that will also read in anything in /sdcard/.ashrc for further customization.

Since mksh will never read in /etc/profile, and we only use ash for su in an interactive shell, these changes in theory shouldn't have any impact on other parts of the system that call scripts or attain su.

If you don't have a terminal that supports color or don't spend much time shelled in from adb, none of this is probably worth any of the trouble. If you don't have busybox installed or enabled in magisk, it will do absolutely nothing. It assumes ash is /system/xbin/ash. This also works great in TE for Android.
[Magisk] VR25:
I got these 3 new modules submitted to the official Magisk repo, waiting for approval:

MagicGApps [7.1.x]

https://xdaforums.com/apps/magisk/module-systemless-beansgapps-mini-7-1-x-t3611362

Miracast + Tethering Enabler

https://xdaforums.com/apps/magisk/module-miracast-tethering-enabler-adb-t3611335

Magisk-Essentials-All-in-One Installer

https://xdaforums.com/apps/magisk/magisk-xmod-1-0-3-one-massive-t3610313

About the First One

You may be asking yourself, "But... why?"

Well, this systemless implementation of GApps makes it very easy to customize and update the included Google setup.

For instance, ever seen that feature in Titanium Backup, "Integrate system app updates into /system?" Exactly. Now you can do that without writing to the system partition and then repack the module with the updated changes. If you are into doing this sort of thing, (more info in the thread).

Moving on, you can add/replace/remove things from the package to suit your needs the easiest and fastest way possible (you'll see some of these cool tweaks if you follow the link). One more advantage: your ROM updates will be slightly faster, since GApps don't have to be backed up and restored afterwards every time you flash a new version of your ROM (i.e., LineageOS adon.d backup feature). AND my favorite, you can make regular backups of your magisk.img file to simplify future ROM setups even further!
[Magisk] Blue305:
hello everyone. ive just flashed the adblocker module from the first thread, not the v2, and im stuck in bootloop. anyone can help? im running latest pure nexus rom and magisk 12 for pixel. thanks in advance :(
[Magisk] yochananmarqos:
Flash the Mount Magisk module found in the OP of this thread, then delete the adbock module folder.
[Magisk] Blue305:
thanks a lot pal!
[Magisk] Mark5:
This is such a good thread...full of people wanting to help, writing modules and so on. Really supports people like me who struggle to write software...so thank you all.

BTW...if anyone can write a module a bit like the old "tablet metrics" (only available for CM13 with xposed) then that would be lovely, but hey! what do I know about writing software - or if it is even possible :)

https://xdaforums.com/xposed/modules/27-tabletmetrics-report-screen-7-v2-2-t2596603
[Magisk] leolawliet:
This helps enable a tablet-like layout

https://play.google.com/store/apps/details?id=xyz.paphonb.systemuituner
[Magisk] Mark5:
Thanks, but that's not what the metrics module does...but very much appreciate your suggesting though...
[Magisk] leolawliet:
I do understand what you were asking for but Magisk has limitations. Xposed does tweaks on a framework level, while this just runs systemless mods through a .img file that mounts over system and runs said files as they would run.
[Magisk] Mark5:
Oh, ok. The link you posted sent me to "Custom Nav Bar" which has nothing to do with tablet metrics, but instead allows me to add more buttons to my nav bar. That's probably why I got confused.
[Magisk] leolawliet:
Sorry for the confusion.
[Magisk] Didgeridoohan:
Like already stated, Magisk and Xposed do very different things... But:

If I'm understanding you correctly, you might be able to create a per app tablet mode by using a combination of Tasker, the resetprop tool in Magisk and wm density. IIRC a screen density of 320 or lower makes it kick in.
[Magisk] beardymarrow:
Possibly because you've misspelt netstat in the alias?
[Magisk] aeroxy:
Thanks for catching the mispelling, but no, still `applet not found`...:crying:
[Magisk] yochananmarqos:
Please see the big red text in the OP. ;)
[Magisk] Legitsu:
attempting to use the viper/atmos package on my s5 running cosmic os 7.1.1 results in a no-boot with the device hanging at the splash screen
[Magisk] yochananmarqos:
The developer can't help you unless you post in a place where he can see it. ;)
[Magisk] Legitsu:
I figured it was a module problem, other modules work fine\

and since this is the module repo thread ....
[Magisk] yochananmarqos:
This is an independent list of modules curated by me for reference, not a support thread. I have included XDA support links for every single module that has one.