yashsingh1/xdaforums huggingface dataset:
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
Updated kernel

Hello everyone, I've recently been working on updating the Honor 5c kernel to 3.10.105 and so far it seems to be working fine on my P9lite, LineageOS 14.1. It's based purely on stock, with one or two commits borrowed from Meticulus' kernel repo, so it compiles without errors.

Since this is a new account, I can't link my repo directly, you can find it on my github profile, Avsky.

I'll be making my own additions to master branch, while stocklike branch will contain only fixes and kernel updates.

If somebody would like to test them, you can get the boot image from releases tab on github. Stock kernel hasn't been tested, mind you, always keep a backup!

Also depending on how much time I have, I might get started on bringing OmniROM to our device (I'm really missing it). I'm just a college student though, so it might never see the light of day, any help is much appreciated.
[Huawei P9 Lite Guides, News, & Discussion] dady000:
Hello, I tried your kernel on AOSPA MM but I couldn't get the proper unpacked zImage. I got only 9.7 MB gzip which contains the 22 MB Image but I couldn't extract it.

Could you provide the zImage?
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
Strange, I can extract it without problem using abootimg. Anyway, zImage now included on releases page.
[Huawei P9 Lite Guides, News, & Discussion] dady000:
That zImage looks like the same I got from unpack. For some reason it won't boot when I repack it with my ramdisk.
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
I repacked and uploaded my image with ramdisk from your latest AOSPA, could you try it? Sizes varied a bit, I've used my abootimg config with SELinux changed to permissive, as that is the case in your image.

EDIT: I'm uploading extracted zImage as well.
[Huawei P9 Lite Guides, News, & Discussion] dady000:
Yeah of course it works :silly:. Looks like my boot-packing skills are pretty low. Good job :fingers-crossed:
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
Glad to hear it! Your images seem to be using uncompressed zImages, while in stock ROMs they're gzipped, seems like unintentional change somewhere in your build process.
[Huawei P9 Lite Guides, News, & Discussion] dady000:
Yeah you're right. I just checked it and I am copying Image instead of Image.gz. Seems like it's only a 'cosmetic' issue because it runs anyways.
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
Great news guys, my sources now compile with latest Linaro toolchain. The kernel actually barely needed any fixes, but I'm not releasing anything prebuilt yet, since I have no idea what impact on stability my hacks might have.

Screenshot
[Huawei P9 Lite Guides, News, & Discussion] Carlyle_f:
Perhaps reading through GitHub commits, checking the code and see whether or not you're really interested. If you're using a Linux distribution which I strongly advise, learn bash scripts first - it's easy and self explanatory and from there you will get basics of directories and calling up files.

Goodluck
[Huawei P9 Lite Guides, News, & Discussion] pilgrim011:
Do you have any idea what changes in kernel are needed for USB OTG? There are some hacks (OTG app etc.), but it doesn't work properly and with all USB sticks. I think that we need OTG enabled properly in kernel. I have forked open source kernel recently, but don't know what should I do next: Github.

P.S. I'm interested in using the modified kernel with stock ROMs (MM now, N soon).

Ok, I have found this in your Github:

In "arch/arm64/boot/dts/auto-generate/huawei_usb_gpioswitch.dtsi":

/{
otg_gpio_switch:otg_gpio_switch {
compatible = "huawei,gpio_switch_otg";
otg_int_gpio = <&gpio22 6 0>;
status = "disable";
};
};

Would it be enough for me to change the status from "disable" to "enable", or it isn't that easy?
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
Afaik OTG (or actually USB Host Mode) should work out of the box, but in default defconfig almost no usb drivers are included.

And don't change that file, they're generated, as path suggests. OTG driver should be enabled in menuconfig if anything, someone correct me if I'm wrong.
[Huawei P9 Lite Guides, News, & Discussion] dady000:
USB host mode should work if you switch it on in meticulus settings.
[Huawei P9 Lite Guides, News, & Discussion] pilgrim011:
Ok, thanks, I'll try.

I don't want to use Lineage OS - only stock ROM.
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
Then you could use Kernel Adiutor, just crate a custom switch like this:

Status:

#!/system/bin/sh

result=$(cat /sys/devices/ff100000.hisi_usb/plugusb)

if [[ $result == *"OTG_DEV_HOST"* ]]; then
echo 1;
else
echo 0
fi

Switch:

#!/system/bin/sh

status=$1
plugusb=/sys/devices/ff100000.hisi_usb/plugusb

if [[ $status == 1 ]]; then
echo hoston > $plugusb;
else
echo hostoff > $plugusb
fi

Test it by switching, going to another page and back, then see if the switch is in correct position.
[Huawei P9 Lite Guides, News, & Discussion] Carlyle_f:
Im pretty interested in this as well, any help will be appreciated https://xdaforums.com/honor-8/help/stock-apks-emui5-t3572771
[Huawei P9 Lite Guides, News, & Discussion] Carlyle_f:
Has anybody found a way to add CPU Governors? I've tried a couple times, it compiles drivers but is not available in kernel managers and it is selected in defconfig. I found this commit suggests it is possible on the P9 https://github.com/kwoktopus/abyss_kernel_eva/commit/9186f7b58d38471d0106b5afece04a72050d2b2e . Please point me in the right direction
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
The commit you've linked is missing changes to include/linux/cpufreq.h

You can look up full instructions for adding custom governors on XDA University.

I've tried adding a lot of governors and none of them compiled, I'm eager to see your results.
[Huawei P9 Lite Guides, News, & Discussion] Carlyle_f:
I figured the problem out. Got intelliactive working. I haven't had a chance to upload sources yet but by the looks of it, another kernel might not be needed here anyway. Thanks alot man
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
UKSM enabled kernel

Hello again, I just managed to get UKSM working and I'm trying to establish how much of an impact it has on battery life (since it should be less CPU-heavy). So far it seems to be super stable with >40MB (EDIT: >200MB after deep sleep) more free memory on my L21.

If anyone would like to help me testing it out, here's the last build: DEAD

It's AnyKernel2 package, so it should be compatible with all ROMs (except EMUI5.0 of course). Oh, and it uses BFQ scheduler by default.

Note: If you have ANY kernel tuning app installed, make sure it won't try to apply old KSM settings, phone will crash and reboot with total memory cut by ~500MB. Cold booting (power off and pressing power button to start up) fixes it.

EDIT: I found a stupid error in my "hack", I'm attaching a kernel with properly working UKSM.
[Huawei P9 Lite Guides, News, & Discussion] Dorin21:
Would gladly try your Rom, can you make a separate post with install instructions so i wont blow my phone up?
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
It's not a ROM, just a kernel packed into AnyKernel2 install package. You need TWRP recovery to install it, preferably this one. Backup your boot partition and flash it like any other zip. Just be sure to not have any apps like Kernel Adiutor active, as they'll cause endless reboots without settings update.

EDIT: Once I'm sure that the kernel has enough features to be worthy of standalone release, I'll make a seperate thread. For now I'm posting the results of my tinkering here.
[Huawei P9 Lite Guides, News, & Discussion] Carlyle_f:
My kernel thread https://xdaforums.com/showthread.php?t=3574051
[Huawei P9 Lite Guides, News, & Discussion] Carlyle_f:
I need BETA testers for my kernel,

BETA features includes 2 cpu hotplugs
[Huawei P9 Lite Guides, News, & Discussion] Potato997:
I don't know if it's useful but.. https://xdaforums.com/huawei-p9lite/development/huawei-p9-liteopensourcevns-hisiandriod-t3407758
[Huawei P9 Lite Guides, News, & Discussion] millo1978:
With Android 6 your solution is very good!

:)

But have you Idea what must be done in Android 7?

hoston/hostoff make nothing :(

We have always OTG_DEV_OFF

plugusb is in /sys/devices/platform/ff100000.hisi_usb/

Maybe something is missing in kernel?

Maybe some modules are disabled in kernel?

I don't know :(
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
Kernel in EMUI5 is a mess, I'm eager to take a dive into the code and compile it with more reasonable config, but Huawei/Honor is delaying the source code release as usual. Host Mode is probably in a state similar to loop support, kernel claims that such module is present, thus making it impossible to load external one, but it just doesn't work.
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
Both versions set permissions to plugusb property, it's most likely just kernels fault. We won't be able to do anything until Huawei/Honor gives us source code, which will probably take a lot of time.
[Huawei P9 Lite Guides, News, & Discussion] millo1978:
Button on the left to hide navbar

Only for Android 6

(With Nougat the navbar go away)

Firmware Finder has TWEAKER (TEST)

There is "Enable minimize virtual keys"

It works good only in Android 6.

It change value 0 to 1 in settings.system.hide_virtual_key maybe.

When I press "Current Value" I have:

settings get system hide_virtual_key

When I change 0 to 1 is displayed:

settings put system hide_virtual_key 1

How to have in Kernel Adiutor a Toggle?

Have you any Ideas?

Edit 1:

we need SU permission.

(see screenshot)

Edit 2:

First code...

#!/system/bin/sh

result=$(settings get system hide_virtual_key)

if [[ $result == "1" ]]; then
echo 1
else
echo 0
fi

This Code give me correctly 0 or 1.

But I'm not able to write second code correctly.

Edit 3:

Firmware Finder use this in TWEAKER:

http://hwmt.ru/oth/HWFF/android_json/tweaker.json

"func_name" : "Enable minimize virtual keys",
"func_desc" : "Enables the ability to minimize the on-screen navigation bar",
"func_info" : "1 - Enable, 0 - Disable",
"command_put" : "su shell settings put system hide_virtual_key",
"command_get" : "su shell settings get system hide_virtual_key",
"selector_type" : "string_selector"

Edit 4:

With "su shell" Kernel Adiutor freezes.

The second file...

#!/system/bin/sh

status=$1

if [[ $status == 1 ]]; then

settings put system hide_virtual_key 1
else
settings put system hide_virtual_key 0
fi

Now it works!

:)

https://vimeo.com/217325941

Only if there are issues...

from Terminal Emulator:

su
settings put system hide_virtual_key 1

or

su shell settings put system hide_virtual_key 1

and 0 to disable it
[Huawei P9 Lite Guides, News, & Discussion] millo1978:
What can we make with apks?

Nothing?

I don't find tool for decompile/compile...

All apktools don't work! :(
[Huawei P9 Lite Guides, News, & Discussion] millo1978:
Enable Button to hide navigation bar

Another way to have it...

with Rom control.

res/xml/ui_prefs.xml

add this code:

<SwitchPreference
android:defaultValue="1"
android:key="hide_virtual_key"
android:summaryOff="Button is hidden"
android:summaryOn="Button is visible"
android:title="Enable Button Hide Navbar" />

It works good! :)
[Huawei P9 Lite Guides, News, & Discussion] tw1st3d83:
From meticulus group and i post this here with his permision and in hope that someone will start a new project/rom for our device...

All Source code is now open! I know that most of you wanted to keep things the way they were but, I feel like I'm holding back progress and I don't want to do that. There isn't much more that I can do. I've reached my limit for now so I want to let the community in to see what they can do. I'll come back to this device if the community doesn't fill the gap.

If someone is going to build/AND RELEASE one of the ROMs that I've already build, please put some work into it. Please don't just release what I have already done with just minor changes.

Have Fun

https://github.com/Meticulus/android_device_huawei_hi6250/commits/master﻿
[Huawei P9 Lite Guides, News, & Discussion] Avsky0:
That's nice of him. I've been trying to create a device tree based on B370 blobs and I'm sure I'll find some useful stuff in his repo. Unfortunately Huawei is still holding onto kernel source and I'm not sure if old kernel will work with new blobs/bootloader/whatever.
[Huawei P9 Lite Guides, News, & Discussion] Emma22288:
Would be nice if someone could make a new LOS Ron with this. I'm starting to really hate emui.
[Huawei P9 Lite Guides, News, & Discussion] millo1978:
What bugs has LOS at the moment?

Dual sim?

Audio?

Video?

Otg?

I had read that only single sim was supported.

But maybe now all is working.

Inviato dal mio HUAWEI VNS-L21 utilizzando Tapatalk
[Huawei P9 Lite Guides, News, & Discussion] Potato997:
Dual SIM, video recording in app like Snapchat and Instagram, fingerprint not fully working.
[Huawei P9 Lite Guides, News, & Discussion] millo1978:
[MENTION=8134750]Avsky0[/MENTION]

OTG issue on Nougat...

Maybe the problem is Permission of folder platform (sys/devices)?

We can't manually edit files in platform folder...

In Marshmallow also.

I'm with Marshmallow and I tried yesterday.

But we can edit files in "devices" folder... And in Marshmallow plugusb was in devices folder.

Could you check it?
[Huawei P9 Lite Guides, News, & Discussion] millo1978:
OTG ... Nougat

take a look hier:

https://github.com/HassanMirza01/an...27be43c#diff-cbcbf16983b9502c4da473b3e0cb3573

maybe

this is a solution to have OTG.

And

maybe

this is for automatic OTG:

https://github.com/codeofhonor-dev/android_device_huawei_hi6250/tree/master/otg_daemon

by Meticulus.

(Thanks to devs)

What do you think about?
[G3 Q&A, Help & Troubleshooting] bbiillaallhh:
Hi,

I have a G3 D855. It was rooted on 4.4.2, i was trying to unroot it and mistakenly erased the 'aboot' through fastboot (Totally My bad). after seeing hundred of videos and reading threads i de-assembled the phone for short pin because my phone was dead but when i plug the usb cable device manager shows 'LGE Android net'. after short pinning while the battery is out phone screen turns on displaying battery icon but i receive the error of USB NOT RECOGNIZE. changed the cables installed every version of drivers + qualcomm drivers, disabled the driver signing on the windows but still same message.

Help please. its getting on my nerves now.
[Sprint Samsung Galaxy S7 Edge Questions & Answers] smiley45:
Has any one got the update for an s7 SM-G930R4.
[OnePlus 3T Questions & Answers] cheshyre:
I've got a rooted 3T, not decrypted and running stock Nougat 7.01something.

Been stable for months.

Went to bed last night w/battery slightly under 50%, woke up to find the screen off.

I thought the battery might've died overnight, but it's been plugged into the dash charge for 45 minutes and is still entirely nonresponsive: screen off, no notification/charge light, power button does nothing...

I'm currently travelling, so don't have my normal computer w/adb and all the drivers & utilities.

I only have a chromebook on me, though I may be able to borrow someone's PC later.

PLEASE ADVISE!

Thanks in advance, for any troubleshooting or repair help you can provide.
[OnePlus 3T Questions & Answers] kunal1540:
https://xdaforums.com/oneplus-3t/how-to/unbrick-unbrick-tutorial-oneplus-3t-t3515306/post69989929

https://xdaforums.com/oneplus-3t/how-to/guide-return-youre-op3t-to-stock-lock-t3569383/post71330878
[OnePlus 3T Questions & Answers] Navi44:
Sorry if I was late, but just press power button for about 40 seconds. It should power up. And you are good to go.
[OnePlus 3T Questions & Answers] cheshyre:
For future reference, folks on forums.oneplus.net helped me resolve the problem.

People suggested

and

The phone vibrated with both combinations.

Not sure what that did, but later, when I plugged it into a power source, the red light came on to indicate the battery was totally drained.

After it charged up, it seemed to work fine.
[Shield Tablet Q&A, Help & Troubleshooting] mick.li:
My Shield K1 just doesn't want to connect to my Zyxel LTE4506 router. It does authenticate but it does not get an ip address. It does connect if I run the router with no password. I have no idea if Nougat is to blame as I did not have the router before upgrading to Nougat. I installed the latest release 5.1 and it still does not connect. I don't have any problem connecting to other devices. The router is also on the latest firmware. I have no problem connecting with my 5X, my 6P and my notebook. Any help is greatly appreciated.

Best regards

Mick
[Samsung Galaxy S7 Edge Questions and Answers] MakinaCore:
So rooted my s7 installed superman rom but desided that i no longer wanted to be rooted ..

Reflashed stock firmware

Device says official .. but knox wont open says device has unauthorised sofware

So downloaded ( system repair ) from play store

Device is called - hero2lte

Product is called hero2ltexx

After searching on the net its saying hero2lte is " TWRP "

But when i used odin it factory reset the phone ect

But knox keeps saying unauthorised software .?

Anyone know whats going on ?

S7 edge

7.0

Uk- BTU
[Samsung Galaxy S7 Edge Questions and Answers] djclark25:
By rooting the phone you have tripped the Knox counter which is an e-fuse. There is no way to reset the fuse so Knox will no longer work no matter what ROM you put on the phone, custom or stock. Sorry!!
[Samsung Galaxy S7 Edge Questions and Answers] andiling:
Not tried by myself but have a look here:

[Guide]Use Samsung Pay and Knox on your Rooted device

[GUIDE] Use Secure Folder, Samsung Knox and S-Health on a Rooted S7E
[Honor 6X Questions & Answers] sweetjuice:
does anyone have bln-l22c636 oeminfo?
[Honor 6X Questions & Answers] danino2200:
If you need debrand go to the posted guide.
[Honor 6X Questions & Answers] yyao828@gmail.com:
BLL-L22C636.bin

have a backup file but do not know how to resume writing in

The file type is: BLL-L22C636.bin
[Honor 6X Questions & Answers] venugopalu007:
Link?
[8525, TyTN, MDA Vario II, JasJam ROM Development] jamal1782:
i have a few disks that i recieved from microsoft. they were sent to me but i really don't know how to use them. it is software to help build 6.1 roms and software. can any of the rom makers on here use it? let me know.

nevermind i ment

ce 6.0 r2

mods feel free to delete this post or change the title.
[8525, TyTN, MDA Vario II, JasJam ROM Development] papamopps:
of course - if you can share it here? or send by msn...

thanks...
[8525, TyTN, MDA Vario II, JasJam ROM Development] twist:
Did u apply for the CE beta on connect or ?
[8525, TyTN, MDA Vario II, JasJam ROM Development] ibanyard:
CE R2

It will most likely be the base for WM7, however at this stage most of the phone functionality wont be in PB (platform builder). I also have the disk, its a 180 day timebomb version.

Got it by signing up to a prev beta on connect...

I'll hopefully be getting sometime to take a look, but I dont believe that we'll be able to build a useful working phone image at this stage - also the memory layout is completely different so its not as straight forward as WM5->WM6...
[8525, TyTN, MDA Vario II, JasJam ROM Development] twist:
Any1 that wants to download there you go!

http://www.microsoft.com/downloads/...C1-F0F4-4FD6-9366-B61E0AB59565&displaylang=en
[8525, TyTN, MDA Vario II, JasJam ROM Development] jamal1782:
yeah thats the same thing i got in disc form. so download it if you want it. if you want my copy just let me know.
[Android General] jossyjazz:
FOR SALE:

Canon EOS 5D Mark III DSLR Camera with 24 - 105mm Lens

Samsung Galaxy S7 Edge, Samsung Galaxy S7, Note 5, S6, ETC.

Apple Iphone 7, 7 Plus, 6s, 6s Plus, 6, 6 Plus, ETC.

Xiaomi Mi 5

Xiaomi Redmi Note 3

Sony Xperia Z5 Premium

Sony Xperia Z3+

Asus Zenfone 2 ZE551ML

OnePlus 2

Lenovo Vibe K4 Note

For purchase of the product, please do contact me to the details below:

mod edit: contact infos removed

Only Serious Buyers.
[Android General] Flippy498:
The thread got closed since it breaches the forum rules.
[Xperia Z1 Q&A, Help & Troubleshooting] Prototype18:
I have an xperia z1. had it for like 3 months and yesterday all of a sudden the battery started showing like 50 % 4% 90% random numbers. Then it got stuck on 50% and i couldnt charge it. I left it all night the battery was dead. I meassured it and it was 2.78 Volt. I tried to charge it from the dock port of the Z1 . I meassured the voltave coming to the battery when the charger was connected and it is 1.7V . Tried with many charges the voltage doesnt change. What is the faulty part here ? I tried volume up + power button, it vibrates 3 times but still black screen. My status LED is dead so i cant say if it is chargin or not. Also if i press the power button it vibrates 1 time but doesnt power up. What could it be ?

Thank you all
[Xperia Z1 Q&A, Help & Troubleshooting] Prototype18:
I charged the battery outside of the phone and its working perfectly. Now i know the phone aint charging the battery. Why is it so low on voltage ? Neither usb or dock do charge it normally ? What is it ?
[Xperia Z1 Q&A, Help & Troubleshooting] Aaskereija:
i think charging electronic is broken. maybe it got wet inside somehow or someone has connected the magnet charge cable wrong and damaged it
[Xperia Z1 Q&A, Help & Troubleshooting] X-Tsubasa:
Battery level change randomly because the batteri cable is loose.. Or u need to change the battery as if u let it be like that it may cause other hardware problem
[Xperia Z1 Q&A, Help & Troubleshooting] Prototype18:
It is sealed and im very carefull with it. Both charging ports do not work. ITs 0.62V and its too low to charge it. Charging electronic u mean the IC chip ?

I cant find a battery to test it if its the battery fault. But i dont think its the battery cuz if i charge it the phone boots up normally. The problem is that the % is stuck at 50 and does not show charging when i plug it in.
[Xperia Z1 Q&A, Help & Troubleshooting] X-Tsubasa:
Im saying this because mine and one of our TeamDevElite already experience this issue a few months ago... When we moving the cable the battery level change.. Until spot to one place that it become normal..
[Xperia Z1 Q&A, Help & Troubleshooting] Aaskereija:
could be just the "cabel" (in german its flexband) from charger slot to battery. this is sensitiv to liquids.

but it could be the battery itself. got the same problem while ago with my own Z1, on restard it dropped from 80% to 14% and charging doesnt rly helped.
[Xperia Z1 Q&A, Help & Troubleshooting] Prototype18:
Im searching for a new battery . Kinda hard to find here in Albania. i will reply here with the solution in case i find any. Thank you guys
[Android Apps and Games] Ricardo Calmon:
Bom dia , o jogo the walking dead road to survival não esta mais abrindo no Memu , alguém já tem uma solução para isso?
[Android Apps and Games] Allhunt:
Please, english only.

Jovem, não é querendo ser mal educado ou grosseiro, mas o fórum é em inglês. E os caras por aqui costumam ser bastante linha dura nessa questão. Sugiro que você refaça a pergunta em inglês, usando o google tradutor por exemplo. E com certeza sua pergunta será respondida rapidamente. :)
[Android Apps and Games] 1212123213:
I downloaded nox through him also hacked across cheat engine :D
[Galaxy S6 Edge General] elkinguerrabarreto:
https://www.sammobile.com/firmwares/database/SM-G925F/

Android 7.0 for S6 Edge
[Galaxy S6 Edge General] Sreevenk rk:
Can we flash this rom for 925i?

Can I flash it on 925i?
[Galaxy S6 Edge General] Indranuj Kar:
If we flash it on g925i can we root by chainfire's cf autoroot?
[Galaxy S6 Edge General] Dirrtydog:
Can i flash it directly over the existing 6.0.1 fw? Will the knoxx flag trigger in this case?
[Galaxy S6 Edge General] lynxblaine:
No guarantees it will flash properly. It depends on the size of the hidden partition. I would wait for a debranded firmware like BTU or XEU.
[Galaxy S6 Edge General] elkinguerrabarreto:
Rom S6 Edge deodexed nougat 7.0

https://xdaforums.com/galaxy-s6-edge/development/rom-s6-edge-nougat-7-0-t3570218