yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Questions & Answers] Dhanush-raj:
Regarding this thread https://xdaforums.com/moto-g4-plus/development/kalilinux-nethunter-t3639411

The OP tywinlannister did not patch the kernel source code with Android USB HID PATCH To use the Android device as keyboard or mouse..This should be applied for nethunter ROM, But he didn't..

And I asked resurrection remix ROM maintainer Jleeblanch for Athene to look at this issue he did it , after applying the patch it didn't successfully compile ,there were errors..By seeing the error he said that the official kernel is partially patched already,so it is causing those errors..

If anybody looks into the problem it would be appreciated just in your free time only ...:)

The link to kernel source of Jleeblanch is the "Kali branch" https://github.com/Jleeblanch/android_kernel_motorola_msm8952

Any problem or suggestions regarding to this can be discussed here itself , that others can address the issue..:)
[Moto G4 Plus Questions & Answers] Dougleplex:
I too have been waiting for a working kernel so I am going to attempt to compile a working kernel with hid with my limited kernel development knowledge. I think it probably won't work as two far better devs than me have yet been unable however I will try anyway

Any help from fellow devs would be greatly appreciated :)
[Moto G4 Plus Questions & Answers] Dhanush-raj:
I am also a newbie to kernel development but I manually patched the hid sources to kernel source..

But when we complied it all those errors.

First I think we should delete all those hid patches all applied to the stock kernel source. Then compile it and then apply the patch by pelya...
[Moto G4 Plus Questions & Answers] Dhanush-raj:
My ROM s kernel developer say MM kernel will be easy but it is also partially patch

You may give it a try
[Moto G4 Plus Questions & Answers] Dougleplex:
I'm going to attempt to patch jleeblanch's rr kernel and then work backwards depending on the errors as last time I did something like this (s7 edge nethunter kernel) the error was a corrupted source and could easily have been fixed by finding a different repository rather than starting from scratch (what we did). I'm unsure as to what will happen after that however your idea is just as valid and I will try straight after (if you haven't already)
[Moto G4 Plus Questions & Answers] Silesh.Nair:
Test this kernel

Note that this is the Invicta kernel. You need a revert before the actual patch. Both commits are available on my gitlab.

Merged both into a single commit. Note that Invicta kernel is still 3.10.84. Upstream kernels may need additional changes. Test and let me know.

If you want to apply the patch to your kernel, you can use the attached patch file or use the commands below. ( using lineage kernel as example )

git clone https://github.com/LineageOS/android_kernel_motorola_msm8952.git
cd android_kernel_motorola_msm8952
git checkout cm-14.1
git remote add invicta https://gitlab.com/sileshn/android_kernel_motorola_athene.git
git fetch invicta
git cherry-pick 04aa0b10521b76e57226b2d1633e2b91cfa40263

If you don't get errors, you are good to go. If it errors, it needs more changes.
[Moto G4 Plus Questions & Answers] Jleeblanch:
Kernel version 3.10.105 was initially the kernel I tried patching. I was easily able to merge the patch, but compiling it was a different story. According the errors I got, a lot of thing we're duplicated. I told the guy above that the MM based kernel (3.10.84 - which is the same version for MM thru Nougat on stock) would probably be the best bet. Looks like you had little trouble at all with merging into your Invicta Kernel (which is also kernel version 3.10.84).

Good job and thank you [emoji41]
[Moto G4 Plus Questions & Answers] Dhanush-raj:
Thanks [MENTION=4551757]Silesh.Nair[/MENTION] I have been waiting long time for this patch. Once again thank you sir...

The patch is working perfectly in 3.10.105 i.e jleeblanch kernel source..

Linux version 3.10.107-lineageOS (Dhanush-Raj@dhanush) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #1 SMP PREEMPT Sat Aug 5 04:20:04 PDT 2017

And thank you [MENTION=4481495]Jleeblanch[/MENTION] Also
[Moto G4 Plus Questions & Answers] Marella ram_youtubr:
boot tool

Hey which tool did you used to make boot.img.
[Moto G4 Plus Questions & Answers] Dhanush-raj:
I am using lazyflasher

https://github.com/jcadduono/lazyflasher

Just clone this repo and place the zimage in there and type make, you will get a zip file. Just flash it through twrp recovery. Because only the kernel is changed , so i am just replacing the zimage. No need of unpacking and repacking of boot image.:good:
[Moto G4 Plus Questions & Answers] Marella ram_youtubr:
i have compiled a zimage from kali_defconfig from above source.but when i flased it to phone the phone is not booting.

I NEED A FIX FOR THIS
[Moto G4 Plus Questions & Answers] Dhanush-raj:
Which toolchian did you use, and what kernel source and rom you are using .

Give me as detailed information as possible!
[Moto G4 Plus Questions & Answers] Marella ram_youtubr:
Kernel Source:-https://github.com/Jleeblanch/android_kernel_motorola_msm8952/tree/kali-nougat

toolchain:- https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8 nougat-release

rom:- lineage 14.1 official
[Moto G4 Plus Questions & Answers] Dhanush-raj:
Don't use that source it isn't patched correctly, although i said mr. Jleeblanch to try , so he created it. The hid patch is merged into his resurrected kernel, but for mac injection i dont remember. So you better start from the first.

Use lineage kernel source and apply the patch from this thread #6th post, and see what toolchain is used to build lineage 14 kernel and use it. And additionally you have to make some changes in the defconfig, which is explained in the kali-nethunter github page.
[Moto G4 Plus Questions & Answers] Marella ram_youtubr:
thanks buddy
[Moto G4 Plus Questions & Answers] Marella ram_youtubr:
sileshn has removed his source
[Moto G4 Plus Questions & Answers] Dhanush-raj:
https://xdaforums.com/moto-g4-plus/help/help-custom-kernel-developers-t3641363/post73257121
[Moto G4 Plus Questions & Answers] Marella ram_youtubr:
He had deleted his repo from gitlab
[Moto G4 Plus Questions & Answers] Dhanush-raj:
use this bro...
[Moto G4 Plus Questions & Answers] Marella ram_youtubr:
Actually my orginal phone is honor 6x.I love portable hacking.Like with nethunter.I tried to build nethunter kernel for honor 6x.But i failed at HID.So i took by brothers old phone That is moto g4 plus.later i found that moto g4 plus at android 7 is 32 bit.As there is no nethunter for 32 bit i have decided that atleast i should use linux deploy.But later i suck at wifi drivers.When i enable wifi drivers in kernel then phone doenst boot.

The final thing is can anyone help me in fixing this so that i can build a complete usable kernel with Net Hunter support
[Moto G4 Plus Questions & Answers] Dhanush-raj:
Nethunter can be flashed on a 32 bit device. Its also called as 'arm' or armhf. Use that to build.

Do you know how to build a kernel? Because you have everything the patch file to be applied, kernel source, toolchain and the necessary modification steps ? So what is the problem you are facing tell me.

P.S: the hid patch is already applied to resurrection remix rom for moto g4 plus, use that rom and try everything and there is a magisk module available use that if you are not able to build the kernel . Flash it on resurrection remix.

https://xdaforums.com/android/software-hacking/kali-nethunter-magisk-t3676681/page31
[Moto G4 Plus Questions & Answers] Marella ram_youtubr:
The problem is when i enable rt2X00 drivers then my doesnt boot with that kernel.When i disable that the device is woring fine.I need a solution for that
[Moto G4 Plus Questions & Answers] Dhanush-raj:
So just disable it bro,its ok. I think its related to wifi adapter. Just disable and connect your adapter and that the monitor mode is working or not, and if its not your concern, then its ok.
[Moto G4 Plus Questions & Answers] Marella ram_youtubr:
No need brohh.i have found a solution.just create modules
[Moto G4 Plus Questions & Answers] Dhanush-raj:
If you do it successfully, then share the steps, it would be useful for others.
[Moto G4 Plus Questions & Answers] Marella ram_youtubr:
For sure
[Moto G4 Plus Questions & Answers] nmdn:
Do anyone know how to compile the official kernel just patched with keyboard HID support? (3.10.84)
[Moto G4 Plus Questions & Answers] Dhanush-raj:
Yes the patch file is available in the first page of this thread.Just patch it all the details for compiling is given in github page of nethunter.
[Moto G4 Plus Questions & Answers] nmdn:
Couldn't find the details for compiling, can I just use this patch with a Motorola official kernel?
[Moto G4 Plus Questions & Answers] Dhanush-raj:
Yes its for that only. First try it and mention it here which one did you used..
[MTCB Software Development] thatisandwas:
Mods forgive me if this is the wrong area, please feel free to move thread appropriately. I have a simple question. When i turn my head unit on (when starting truck) it always goes to a phone screen that shows various options. The screen always starts with what phone the unit is connected to. This is very annoying to me. I can also access the dialer and a few other things from here. What i'd like for it to do is just start at the actual home screen. Is this possible? The reason why being i always immediately go to the a2dp app and stream over bluetooth and this annoying screen always pops up. Does anyone follow me? Any advice? I can't find the name of the app in the installed apps list.
[MTCB Software Development] Andromeda_Station:
Do you happen to have the phone connected to the head unit with USB when this happens ?

edit: yeah, might have been better in the 'head units' area
[Your Portfolio] CrucialAndroid:
Stick Runner is an exciting, fast-paced, arcade-style game where you navigate your way through black and white obstacle courses. Being fast won't cut it, you have to be smart and choose the right path.

https://play.google.com/store/apps/details?id=com.aaaDev.StickRunner

This is my first Game published on the Play Store.

Please try and give feedback.

Thanks.
[Your Portfolio] bryanGil0410:
This could be a fun game.
[G4 Q&A, Help & Troubleshooting] AnyAndroidOSWins:
I'm betting this has been asked before, probably a no, but just to be sure.

Is there a way to downgrade a MM H812 to Lollipop, or is that not possible yet?

I saw this https://xdaforums.com/g4/general/canadian-guide-complete-source-lg-g4-t3212449, but didn't know if it would work for me or not, I'm not a newbie to this sort of thing (I've tangled with Amazon Fire HDX's, not hte easiest device to unlock), I just don't want to brick my phone for no good reason, thanks for the help. :)
[G4 Q&A, Help & Troubleshooting] bob11233:
That is the right link, there is also a watered down version on reddit: https://www.reddit.com/r/lgg4/comments/3tcrcv/how_i_rooted_my_canadian_lgg4_without_ubuntu/ After downgrading for my H812 my camera wouldn't focus on LP, despite flashing third party camera apps or flashing other H812 KDZ. As such I was force to revert back to MM to have a workable camera, hope that doesn't happen to you as I really miss root. Happy flashing! :)
[G4 Q&A, Help & Troubleshooting] AnyAndroidOSWins:
Once you downgrade and root, you can get TWRP-ish via FIsH, and get a good ROM, thanks for the help BTW. :)

EDIT! OK, not true at this point in time, do not try to use TWRP-in-FiSH to install a custom ROM.
[G4 Q&A, Help & Troubleshooting] sdembiske:
TWRP-in-FiSH (https://xdaforums.com/g4/development/locked-twrpinfish-locked-g4-devices-t3573048) is an excellent custom recovery by steadfasterX for the LG G4 with locked bootloaders

BUT

you cannot flash any custom ROM with it, period. Read the TWRP-in-FiSH OP

fully

before you go off half-cocked and hard brick your phone. Your bootloader will still be locked and that prevents flashing a ROM with it.
[G4 Q&A, Help & Troubleshooting] AnyAndroidOSWins:
Oh dear, so sorry about that mis-information, must've not noticed that it said that when I first read it, thanks for that correction, and I will edit my post to avoid an incedants.
[G4 Q&A, Help & Troubleshooting] BIG_BADASS:
I don't think you can even format the whole hard drive and reinstall the operating system using TWRP FISH, because without unlocked bootloader, you cannot touch the root partition.

Correct me if I'm wrong.
[G4 Q&A, Help & Troubleshooting] BIG_BADASS:
Forget about custom roms, that is still lightyears away.... you cannot even clean-install the existing rom yet.
[G4 Q&A, Help & Troubleshooting] sdembiske:
Member BAD-ASS , to my knowledge (I provided more information and help to him than anyone on the H812), has never downgraded to stock on the H812 or flashed a pre-rooted image on one (he had the H812 for a very short period of time and had no clue about what he was doing, finding it all too complicated). He has continued to come on as if he has done it all, when in fact he has done very little other than denigrate the phone and trade it off for an H815 by lying to a dealer in Qatar that his H812 was in fact a US model.

He has provided misleading, ill-informed and potentially harmful advice to many junior members on XDA. He has had his threads cleaned more than once by the moderators and had his account disabled twice by moderators.

As with most of his posts, they are off topic and generally a waste of space.

With that said, once again he shows a singular lack of knowledge about TWRP or TWRP-in-FiSH and android internal storage on the LG G4. For those members who actually wish to know more info regarding TWRP, senior member steadfasterX has written the Q&A on the official TWRP site. Please refer to the following links (the second one references internal storage as it is operational in and pertains to the LG G4 setup. Member BAD-ASS has been trying of late to denigrate TWRP (the premier custom recovery and most used one for Android), TWRP-in-FiSH and steadfasterX's work in particular. He himself has not contributed and never will contribute or have as much knowledge as steadfasterX.

Link: https://twrp.me/faq/backupexclusions.html

Link: https://twrp.me/faq/datamedia.html

If one has a clean system image backup done with TWRP or TWRP-in-FiSH, one always has the ability to restore a clean system image.
[G4 Q&A, Help & Troubleshooting] sdembiske:
Hmm ... light years? Since when does light years = 1 day ...?

Breaking News !!

steadfasterX has announced today (July 28 '17) that he has successfully flashed a custom rom on two different model LG G4's with locked bootloaders.

Refer to his thread [H810,H812,H815,H818,ANY BL locked G4]Need testers for a new unlock method by steadfasterX at https://xdaforums.com/g4/...ed-g4-t3633152 and in particular post #23

Keep in mind this is still a work in progress .... and ... give him your Thanks, (using the Thanks button). With his TWRP-in-FiSH custom recovery and this news he has done more than anyone to help LG owners overcome the limitations of their locked bootloader devices.

Addendum:

Refer as well to his latest thread which outlines the process and current issues/limitations:

[BL UNLOCK][H81x/any G4] *Unlock your bootloader Proof of Concept* (ADVANCED | WIP)

https://xdaforums.com/g4/...proof-t3648288
[G4 Q&A, Help & Troubleshooting] BIG_BADASS:
Ok Sir:

So you're telling me that a flash with TWRP-IN-FISH will restore ALL the partitions?

---------- Post added at 06:25 AM ---------- Previous post was at 06:22 AM ----------

Ok, Impressive.

But last time I asked for a status update on EFIDROID, I was told there's no testers, hence there is no progress.

So did he find an alternative to EFIDROID?
[G4 Q&A, Help & Troubleshooting] BIG_BADASS:
I know this is completely unrelated, but lightyear is a measurement of distance, not time my friend.

Just FYI
[G4 Q&A, Help & Troubleshooting] autumnoctavia:
Root my LG G4 H81220x

Please correct me if I am wrong (I'm extremely new to rooting) but the only way for me to root my G4 is currently to downgrade my software version first and then follow the step by step guide I saw on another Canadian G4 forum?
[G4 Q&A, Help & Troubleshooting] sdembiske:
That is essentially correct. You must downgrade to 5.1 first. Follow the instructions in: Root ANY LG G4 Variant 100% Success Directives | Root Injection | Less Bricks : https://xdaforums.com/g4/general/lg-g4-100-root-success-directives-root-t3180586 (if you use a pre-rooted system image you can skip down to Step 3).

Use the command for the H812 under the Command to Flash System.img (All Variants): at: https://xdaforums.com/showpost.php?p=62028523&postcount=2

You can also check out steadasterX's thread [Bootloader UNLOCK][LS991|H81x|VS986|F500] Unofficial unlock -> PoC (**STOPPED**) at: https://xdaforums.com/g4/...proof-t3648288 and in particular, post # 66 and post # 122.

Read the OP fully and carefully and be aware of the risks and limitations.
[G4 Q&A, Help & Troubleshooting] Mick23:
Did you manage to downgrade to LP, and if so, what was your exact procedure?
[G4 Q&A, Help & Troubleshooting] sdembiske:
See the post above yours.

Refer to post # 1433 in the H812 guide - it's all there just run a search in the thread.
[G4 Q&A, Help & Troubleshooting] Mick23:
So, my phone is working again. I connected it to the LGUP to see if it was recognized. I disconnected and reconnected to be sure as I wasn't familiar with that software. I was then interrupted, and didn't have a chance to do anything else. My phone then started working properly. No more lag on the touchscreen, and the playstore started working again. I really don't know why, but I am grateful. It has been a week now, and I have installed several apps with no issues.

Thanks to all who gave me guidance. It is greatly appreciated.
[ZTE Zmax Pro Questions & Answers] PassatSport15:
Looking for the screen resolution to be smaller.

The font is set to small, actually looking for a tiny font.

In other words the screen fonts are to big, I guess.

Do I need to load a custom rom?

Thanks

Sent from my Portable
[ZTE Zmax Pro Questions & Answers] ig88b1:
you don't need a custom rom, you can update the displayDPI in your build.prop as long as you have root. You should be able to update the number to update the size of the elements on your screen, give it a quick google!
[ZTE Zmax Pro Questions & Answers] WeedBking DroidBqueen:
Use a custom launcher like nove you can force override font size there the Nova desktop settings for you Droid and gives you some pretty nice customization options for docks apps even allows you to build custom icons from gallery pics

https://drive.google.com/file/d/0Bw_drx3o3plaZVptWWNxWUdfSmM/view?usp=sharing u should be able to modify fonts using this give it a shot n lmk if your successful
[Android Q&A, Help & Troubleshooting] NeverBePeace:
Hey,

I have a note 4 from a company I no longer work for. It was in my drawer for almost a year. I played around with it and tried to wipe it but it wouldn't wipe because of Air Watch. I guess I made it worse when I disabled something I shouldn't which I think was the account for it. Now it stays stuck on the screen of Air Watch and do not know how to remove the company guarded info and just put the normal nougat or older os on there. Any help?
[Android Q&A, Help & Troubleshooting] pr1jker:
Are you rooted?

Sent from this galaxy
[Android Q&A, Help & Troubleshooting] NeverBePeace:
Hey

Duplicate..
[Android Q&A, Help & Troubleshooting] NeverBePeace:
I am not rooted at all. It's a Verizon Note 4.
[Android Q&A, Help & Troubleshooting] pr1jker:
No root, no go...

Sent from this galaxy
[Android Q&A, Help & Troubleshooting] NeverBePeace:
Dup
[Android Q&A, Help & Troubleshooting] NeverBePeace:
Dam. I'm assuming you can't root in the state that it's in as well right?
[Android Q&A, Help & Troubleshooting] NeverBePeace:
Hey, I was able to bypass the air watch screen and into the device. Is it possible to perform root at this point to delete the company info and install a fresh OS?
[Android Q&A, Help & Troubleshooting] NeverBePeace:
Anybody else can lend a hand?
[Android Q&A, Help & Troubleshooting] NeverBePeace:
Anybody?
[Android Q&A, Help & Troubleshooting] ShapesBlue:
I don't think the Note 4 VZW version ever did gain root. Did a quick search and it looks like there was a bounty thread for it. Not 100% sure it ever got root though

Sent from my OnePlus 3T
[Android Q&A, Help & Troubleshooting] NeverBePeace:
Thanks for that info :good:
[Nexus 6P Q&A, Help & Troubleshooting] jorgen.bumajnikov:
I'm trying to unlock phone’s bootloader using

fastboot flashing unlock

, but getting error message:

FAILED (remote: oem unlock is not allowed)
finished. total time: 0.021s

Checked fastboot devices command and it found my device connected.

I do not remember exactly, but think that USB debugging is off.

It's a phone with bootloop issue, so cannot get into recovery menu also.

Apologize is if it was already discussed.
[Nexus 6P Q&A, Help & Troubleshooting] Minh Dao:
Try this https://www.xda-developers.com/nexus-6p-bootloop-fix/
[Nexus 6P Q&A, Help & Troubleshooting] jorgen.bumajnikov:
Thanks, I saw this post and was trying to follow steps described there, but 9 steps is about unlocking bootloader and I cannot pass it...
[Nexus 6P Q&A, Help & Troubleshooting] redduc900:
Both OEM unlocking and USB debugging need to be enabled in Settings/Developer options before the bootloader can be unlocked.
[Nexus 6P Q&A, Help & Troubleshooting] jorgen.bumajnikov:
in post I mention that it's phone with bootloop issue
[Nexus 6P Q&A, Help & Troubleshooting] redduc900:
And I told you why you can't unlock the bootloader.
[Nexus 6P Q&A, Help & Troubleshooting] jorgen.bumajnikov:
so that's it - no way to make it work again at all? :((
[Nexus 6P Q&A, Help & Troubleshooting] bcurran3:
I tried this but I couldn't make it work.

rootmygalaxy.net/unlock-bootloader-on-huawei-devices/

which leads to

emui.huawei.com/en/plugin/unlock/detail

but no matter how hard I try, I keep getting:

"Please make sure the verification code and model number are correct. If your device has multiple IMEIs or MEIDs, please try another IMEI or MEID."
[Nexus 6P Q&A, Help & Troubleshooting] puddin007:
Try enabling OEM unlocking in developer options
[Nexus 6P Q&A, Help & Troubleshooting] bcurran3:
Unfortunately can't when it's stuck bootlooping.
[Nexus 6P Q&A, Help & Troubleshooting] SlimSnoopOS:
Follow the thread below, same one as before. You need to stick with this until it works.

https://xdaforums.com/showthread.php?t=3640279
[Nexus 6P Q&A, Help & Troubleshooting] bcurran3:
Thanks. Yeah, I tried the freezer trick. In fact I put it in there and forgot about it for a week! HA! Didn't work. I'll need to try the hairdryer trick.

I'm REALLY hoping Google responds to the boot.img signature files request....that would make life so much simpler. I'm probably going to shelve this project for the 4th or 5th time and wait a few weeks. (I've been dealing with this since Feb or March.)

I did put in another call to Huawei today. The next available representative was nice but told me that Huawei global unlocks the bootloader for people in China but not the US. I had him open a case to get the bootloader unlock code and pass it up the chain. I doubt it will result in anything...but at least the request is officially in.
[Nexus 6P Q&A, Help & Troubleshooting] draxz:
OP did you fix the boot looping issue? I am in the exact same spot - my phone is stuck in boot loop and my OEM is locked too