yashsingh1/xdaforums huggingface dataset:
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
I have read about this problem and the suggestion is to do a battery reset.

power the phone off.

Let it charge for 10 min.

Press volume down + volume up + power for 2 minutes, it reboots several times.

Release the keys while the phone is booting.
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
I just got a bit further.

The USB ID pin is low, even with nothing connected.

[CABLE] [2nd] accessory adc = 7

[CABLE] cable_detect_get_type prev_type 16, type 16, stable_count 3

[BATT][CHG] qpnp_fix_reverse_boost_check_work: usb_sts=0x7, usbin=5085520(uV), vchg=3440772(uV), set_type=0x7, ply_high=0x7, chg_gone_int=0x0

[CABLE] [MHL] Enter D3 mode

[CABLE] USB Host inserted

So it seems to be stuck in USB host mode.
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
I habe build a kernel witch fakes that the accessory ADC value is high.

Edited kernel_m8ul-3.4.0-g6af28ec/drivers/usb/dwc3\dwc3-msm.c

Function htc_qpnp_adc_get_usbid_adc(void)

adc = result.physical;

adc /= 1000;

adc = 5000; // added to check if accessory adc is stuck at low.

Now the phone charges as normal and is recognized by the PC.

So it is a hardware problem. Either there is a short on the board or GPIO 102 is defective.
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
Here the testing kernel, it has wireless adb debugging enabled on port 5555 and forcefully accessory adc set to report a value of 5000 mV

It is build for ARHD 43.0
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
Hi is the issue resolved? I have the issue as yours too. Is it a hardware problem?
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
It seems that it is a hardware problem.

I traced it down to the ADC reference (VREG_BMS) in the PM8941 power management chip.

Also the battery current value, which you can read with a battery app or "Ampere" stays very low.

I could use the phone with my patched kernel, only it does not switch to car dock or USB host mode.

I ended up replacing the main board from a 2nd hand phone I bought with a broken screen.
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
Hi thanks for the response. I think I'm having the same issue with you. I am able to charge via Fastboot AC. But turning off and charge it seems weird. When I turn it off and charge it there is this battery icon with lightning that keeps appearing and disappearing, like a connect-disconnect . Here's the video:

https://www.youtube.com/watch?v=a9c-luz-m34

I have there the description. My PC can detect my phone and I can flash things. Can I use you're kernel?

I'm currenlt running the latest ARHD Rom with the latest firmware. Is my phone broken too?
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
This is exactly the problem.

HBOOT does not check the ID input, but the offmode charger does.

The cause is that the accessory detect pin 4 on the usb port stays low.

Pullup is controlled by GPIO 102 and the voltage is measured by the PM8941 BAT_ID input.

There can be a short between pin 4 (ID in) en pin 5 (Ground) inside the USB port, but in my case the chip input on the main board was defective.

The USB port board can be replaced which I did as first thing.

The 2nd defect is that the reported battery current is never higher as 40mA. This indicaded that the power chip is defective.

The posted kernel has code added to always report that the pin is 5V, high so it thinks nothing is connected.

Of course CAR, MHL, DOCK detection does not work.
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
I see. So might be there's a problem in my USB Charging port in my HTC One? Thanks for the information, so you suggest to replaced my USB port first and see if the problem will persist?

Also, as you said, your kernel is for ARHD 33.0 , can I use it to the current version? I dowloaded it and saw that it was a boot.img. Can I flash that in fastboot like

fastboot flash boot boot.img

If that will work it's ok for me coz I don't need to use CAR, MHL, DOCK. I just need my phone to charge correctly.

Thanks!
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
Yes, you can just flash the boot.img
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
Even if my version is higher? I'll try and let you know what happened. Will Nandroid backup first. Thank you so much for the help.

---------- Post added at 07:36 PM ---------- Previous post was at 07:03 PM ----------

OMG. It's working now. I tried charging both on pc and a power outlet and works fine. That does mean that my motherboard is still ok? Can I use your kernel on a daily basis or I need my USB Port to be repaired asap, lastly your kernel won't have a negative effect like heating etc. ? aside from what you mentioned that will not work like Car, MHL etc.

I also noticed that when I charge it when turned off, I won't charge, still the same battery icon with lightning flashing like connect and disconnect, but when turned on, it's fine. If I understand it correcly, when turned off, issue will still persist coz the device is off and your kernel is not in play?
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
Shoot, typo. it is version ARHD 43.0 (base 4.16.401.10)

The kernel is only active when booted, offmode and recovery are different.

The source is straight from HTC and I only changed the function which reads the accessory ADC to report a fake value and build on my development system.

So it should be stock with this only addition.

To check if the main board or the USB board is defective you need to diagnose the hardware.

You need an USB test lead and look at debug output if the ADC value reacts to the applied voltage on the ID pin.

You may have to open up the phone and replace the USB board.

This is not easy, but replacing the USB board is not an expensive repair so I suggest to go to a good repair shop.

Can you install the "Ampere" app from play store and check if it shows the correct amperage?

Good luck!
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
Thank you for your kernel. This helped me a lot. That being said, I can use your kernel to any custom rom regardless of the version and also in stock roms? I would love to test it but i don't know how. I'm a dev too but not a hardware dev. Would there any other indication that my motherboard is broken? I'll try next week to go in a repair shop to fix my usb charging. But it's far from the battery being defective right?

I installed the Ampere app as you suggested and got this:

Seems low? I connected the charger to a PC AVR coz I'm in the office right now and there's no vacant power outlet. What should be the result? While using it, battery drain seems to be normal and ok even with modile data turned on.

UPDATE Plugged it in a PC I'm getting 300 plus ma

Again, thank you so much. Really helped me a lot.
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
On USB you should get around 300-500mA and on the charger it should go up to 1500mA and 2500mA on a quick charger.

But my phone shows 30-50mA on a charge lead while I see that it draws 900mA on the power supply.

The zImage in the boot.img is the kernel I build, the ramdisk is from ARHD with the addition to enable wireless debugging.

I enabled this because USB was not working and then you cannot use ADB over USB.

So just repack for another ROM.
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
That what I was thinking too, on a PC Charging, I saw it climb to 300mA plus, I'll try when I got home to connect it to a power outlet and see what happens.

Thanks. I don't know how will I repack your kernel but I'll just google to test hehe. So your kernel will work on ARHD only coz of the ramdisk? Anyway, I won't flash other rom for now until my usb got repaired. :)

UPDATE With the help of this link: http://androidforums.com/threads/how-to-build-kernel-zimage-into-boot-img.824521/

I think I get it now how to repack your kernel. So what I need to do is to extract the custom rom I want, get it's boot img, then replace their boot.img-zImage with your boot.img-zImage in the custom rom's kernel, repack the kernel and repack the custom rom. It will be simple as that provided that the kernel used by the custom rom is stock, correct?
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
Yes that is how you do that, Image kitchen is what I use with an extra script that directly pushes the modules and flashes the boot.img
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
Thank you so much. I'm using the same tool and managed to extract your Kernel.

I'll just try to repack few days later I guess coz I love ARHD anyways.. I'll just have my phone repaired in the coming weeks. Thank you so much for your help :)
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
Hi. Sorry to bother you again. I have question regarding repacking of your kernel. Some Custom Roms have their own custom kernel buit in right? Is it possible to add your kernel mods on their custom kernel withour replacing their entire boot.img-zImage if ever I don't want to lose their kernel tweaks? thanks
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
This is only possible if either the source is available, like on github, and you can compile a kernel with the change.

Or the kernel dev is willing to build a patched kernel for you.

The zImage is the compiled kernel from source, so not interchangeable.
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
I see. That's what I thought too. Coz their kernel is already compiled. Anyways. Thanks for the advice. :)
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
Hi Sir, sorry again but this is my last question, when I looked on custom roms info, I see this

ROM OS Version: 5.0.x Lollipop
ROM Kernel: Linux 3.4.x
Based On: HTC Sense 7.0

The Rom Kernel, when it says Linux 3.4.x, does it means the kernel is stock? I found it on Viper Rom. Thanks
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
If it tells you under Kernel-version: 3.4.0-g6af28ec and@ABM101 #1 then it is stock kernel
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
Hello Sir, just an update. I don't what happened but my phone suddenly starts to charge normal even when turned off

I am currently using Viper Rom with your Kernel. I repacked their kernel and integrated yours. I haven't tried flashing other roms as of now coz I am not able to download one yet. Is my phone ok now?
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
It looks like your USB port had a short between pin 4 and 5 and it is gone now.

If it goes into CAR or DOCK mode (after going back to stock kernel) then you still need to clean the inside of the USB port.

Else your phone looks just fine and you should go back to use the stock or supplied kernel.

If it then charges also then the problem is gone.
[One (M8) Q&A, Help & Troubleshooting] joenefloresca:
Hi I tried observing it in the past few days but seems my usb port is not completely ok. What happened is sometimes the problem goes back again. When the problem is gone I tried to flash stock rom and stock kernel and it's working and charging fine but after a day a guess the problem comes back so I will again use your kernel. Then after sometime it will work fine again like charging fine even when turned off so i will flash again stock kernel then will go fine then after sometime problem goes back again. Seems it's not consistent. Should I replace the charging port for good? I haven't clean the port coz I dunno how I clean asside of blowing it with air to get off some possible dirt.
[One (M8) Q&A, Help & Troubleshooting] cmsullivan:
Okay so I don't know how to do any of that kernal tricks...sooo what rom was this made for so I can download that rom then flash this kernal on to it? Seems to be the simplest method to go with
[One (M8) Q&A, Help & Troubleshooting] XtheOne:
ARHD 43.0 but it should work with stock firmware.
[One (M8) Q&A, Help & Troubleshooting] Scramjet:
XTheOne, sorry to dig up this thread, but I have this very same problem, and I'm running stock Marshmallow firmware. Would your kernel still work? Or do I need to edit the Marshmallow kernel? And how do I go about doing that?
[Xperia Z1 General] Konan-:
as you all know the new update 5.1.1 was just yesterday so ive tried all posible ways to root my device but was all ending by a fail does any one have an idea of how i can root my device cause honestly i like the new update, thx :)
[Xperia Z1 General] demon148:
At the moment I think the only way is downgrade to I think its 108 then root and install recovery and then flash a pre-root 386.
[Xperia Z1 General] yngwie_m:
I personally did it with flashing a prerooted firmware from TWRP recovery, since I was on rooted 5.0.2.

Didn't do it quite well, but the only oddity is an app icon that remained in my drawer. Must be the first attempt of installing the supersu with the prerooted zip. After installing the supersu as standalone it shows a different icon.

Device is rooted and has dual recovery, because root explorer and cerberus asked for permission. Installed 4K and 120fps mod. Also installed intelligent gestures (smart call handling, smart rotation and smart backlight) and face in camera.apk. Those are the extras I needed.

Forgot to say that I created a prerooted zip from customized GR from Xperifirm, since I live in Greece.

I am not sharing the zip though, because of the stupid icon remaining in the app drawer. Maybe I will revert to kitkat again, root it and try once again.
[Xperia Z1 General] Konan-:
thx 4 fast answer

thanks alot guys i was able 2 make a pre rooted flashble fie and i flash'd it and works fine but the thing i wanana do right now is getting xposed some how to work on 5.1.1
[P3600 ROM Development] bennec83:
FOREWORD:

I would like to keep this thread EXPLICITLY for people who want to learn how to MANUALLY cook and the questions surrounding the topic.

If you are a "GOD MODE" and you are more interested in insulting people for trying to learn DONT read this thread

n00bs DO YOUR RESEARCH!! - See links in my Signature and at the bottom of my second post

If you are answering a question PLEASE answer it fully and as simply as possible.

WELCOME TO ROMDonalds!!!!!!!!!

This kitchen is designed for those users, like me, who have been using their devices for a while and want to learn the methodologies behind hand cooking a ROM. By hand cooking I mean manually adding OEM software, adding CAB’s so they don’t have to be installed after flashing, hand editing registry hives and such like.

Don’t get me wrong GUI kitchens are excellent but, to fully understand the processes that go on behind cooking your own ROM,I feel that it should be done manually so you can see and hopefully understand what happens at each stage, so you could say that this is more of an educational kitchen.

.

.

How It Works

There are various stages to cooking a ROM, so when you run “ROMDonalds.exe” you will find a group of files, ordered by number, logically, you start at number 1, and follow the process through to completion.

After running “ROMDonalds.exe” you will find a new folder on your desktop called “ROM Donalds” this is your kitchen.

Inside each of these files are all the various pieces of software you will need to complete that particular stage of the process in addition to this there is an instruction manual that walks you through each step, with background information on what is happening not just the required steps.

.

.

The Kitchen Software

All of the software in this kitchen is available in other kitchens in various forms, some of the software has been slightly edited from original form but not by much, so I do not profess to having produced some revolutionary cooking software as it all currently exists.

The difference is that instead of having a folder full of tools with strange looking names, which would be intimidating and confusing to a new user, everything is sectioned out with instructions.

.

.

Thanks:

Special Thanks to Midget_1990 for helping with the software

Thanks to all those who originally designed the softwares used in this kitchen, namely:

Tadzio - for his tools

bepe - for his tools

the-equinoxe - Splash Screen Tools

dutty - NBH Tool

also thanks to anyone I forgot (sorry about that!)

.

.

Disclaimer

I accept no responsibility for devices getting screwed!!

.

.

Download Links :

In the second post of this thread you will find all the required download links, patches and Instruction Manuals, detailed as follows:

ROMDonalds Kitchen : This is your base kitchen

Animated Startup Screens : A pack of various animated startup screens

Selection Of OEM Apps: A large selection of pre-created OEM packages ready for cooking

.

.
[P3600 ROM Development] bennec83:
Download Links

Release Notes :

1)

If you find any errors with the instructions please detail them in the thread, but also PM me with the error and necessary changes so I can update the "How To Cook.pdf"

2) This has been tested as much as possible on Vista and XP and fully works on both (for me!!)

3) Section in "How To Cook.pdf" on converting CAB to OEM needs refining, if you are new to this ignore the section and just use the OEM apps i have included until i make this section better

4) There is a folder in ROMDonalds called "09-AdvancedTools" . . some may asy why... the answer is that these "Advanced Tools" are the most useful ones i have found in my travels while creating this kitchen, I have not written about each one in the "How To Cook.pdf" but i may in the future. If you need help with these ask in the thread and i will update my first 2 posts accordingly.

.

.

Instructions

1) Download at least the following: Instructions, ROMDonalds Kitchen, Selection Of OEM Apps (Animated Startup Screens are just an extra if you want them!!)

2) Extract "ROMDonalds.rar" then RUN "ROMDonalds.exe"

3) Extract "Selection Of OEM Apps"

4) READ INSTRUCTIONS SLOWLY AND CAREFULLY

5) Enjoy

.

.

Download Links

​

Instruction Manual:

Sendspace - Last Updated : 29/07/07

Megaupload - Last Updated : 29/07/07

Rapidshare - Last Updated : 29/07/07

ROMDonalds Kitchen :

Whats Been Updated? - Advanced Tools Section Updated, initFlashFile Generator FIXED

Sendspace - Last Updated : 01/08/07

Megaupload - Last Updated : 01/08/07

Rapidshare - Last Updated : 01/08/07

Animated Startup Screens :

Sendspace - Last Updated : 28/07/07

Megaupload - Last Updated : 28/07/07

Rapidshare - Last Updated : 28/07/07

Selection Of OEM Apps :

Sendspace - Last Updated : 28/07/07

Megaupload - Last Updated : 28/07/07

Rapidshare - Last Updated : 28/07/07

Other Useful Links :

Available Radio ROM : Click Here

1.30 Olipro Hard-SPL : Click Here

Trinity Upgrade Guide (racerx_): Click Here

Trinity Wiki : Click Here

Google Search Forums : Click Here

.

.

Attached Files

1) Themes.zip - This zip contains the 2 latest "Black" themes from HTC (Htc New Default.tsk (newest) is light grey and Htc_default.tsk is the Original HTC Touch Colour Scheme (my fav)

.

.

​
[P3600 ROM Development] abinan:
thankssss

thank u bennec83..i will try this tomorrowww..

thanksss
[P3600 ROM Development] vdias:
Sound great...
[P3600 ROM Development] bennec83:
No problem, remember that there are TWO Threads about this Kitchen:

CLICK HERE

Please check both if you have questions!

Enjoy
[P3600 ROM Development] ervius:
Hi, my opinion:

I think this kichen will be not really usefull for me, is not based on bepe kichen, not good for my use!!

yes, there are a lot of usefull utils, but not the queen of them (bepe kichen).

bye!
[P3600 ROM Development] bennec83:
Did you read the title of the thread?

It is called an EDUCATIONAL KITCHEN, and to be brutally honest, what you are talkin about is building an OS not cooking a ROM!! There is a massive difference!!

Building an OS is the next thing i plan to work on. You should read what the thread is about before you come here and put my hard work down.

Can i have a look at the kitchen and instructions you have released to better this? can i have a look at how you have been helping n00b's learn about their devices without flaming them for asking a question?

READ THIS:
[P3600 ROM Development] ervius:
to kook a rom with theese utility I spend a lot of time, with bepe kichen, minor time, it's all, and if you don'a accept a good suggestion, sorry, I wrote my opinions about.

and if you know bepe kichen, you know also that is the best to kook and build rom!!!

no initflashes.dat to modify, no default.hv and user.hv to edit: few work to obtain great results.
[P3600 ROM Development] racerx_:
thanks for the work bennec!
[P3600 ROM Development] ervius:
... but I want thank you for the oem apps, they are really many many many many many....

don't be ungry with me, I really think that bepe kichen is the only way to make good rom.
[P3600 ROM Development] bennec83:
I realise that true cooking requires to build an OS to your Specification, then add packages etc etc

we need to chat!! check you PM, we can get this sorted!!!;)
[P3600 ROM Development] talmiller99:
can anyone one of you cooking gods, post the bepe kitchen that was discussed here?
[P3600 ROM Development] cicciocant:
The link to radio rom in 2°nd post is to Hermes radio rom.
[P3600 ROM Development] vdias:
ervius, does the bepe one work with trinity?
[P3600 ROM Development] Guybrush:
yes bepe kitchen can work with trinity
[P3600 ROM Development] morf3o:
And where it is possible to find information and tutorial for the bepe's method?

Hi.......morf3o.
[P3600 ROM Development] bennec83:
Can i just ask why this is in my thread? get rid of this ****!!!

this thread aint about bepe kitchen
[P3600 ROM Development] bennec83:
ill fix that as soon as i get home!! sorry

Edit, Link fixed!!! 01:08am 01/08/2007
[P3600 ROM Development] meschle:
On topic

Hey guys try to keep the posts on topic about THIS kitchen you can discuss about other kitchens elsewhere or pm each other.
[P3600 ROM Development] racerx_:
oh bennec, you might want to edit the first post so it reflects links for Trinity, instead of hermes.. especially the hard spl, etc...
[P3600 ROM Development] bennec83:
All links are fixed, appologies to all, i overlooked that as i was in a rush to get it posted!!

I CANT FIND THE TRINITY RADIO ROMS, CAN ANYONE PM ME THE LINK PLEASE!! I found the FTP site but if i create a link to it i get permissions errors
[P3600 ROM Development] racerx_:
sent you a few pm's
[P3600 ROM Development] ww2250:
@bennec83: good work, keep it up! :)
[P3600 ROM Development] jackie06:
Hi,

Do you have some screen shot ?

Thanks for yrs works

:)
[P3600 ROM Development] bennec83:
This is not a GUI kitchen so i cannot give you a screenshot!!!

this is Command Line Based cooking, it is designed to teach you what all the automatic kitchens are doing/trying to do.

this is not for quick use, it is a learning process. I suggest you download the Manual and have a read. It is in a step by step format, so when/if you get stuch you can post the section number you are stuck with so i can help you fix the problem.

I hope you try it out, too many people are getting used to "Point & Click" Kitchens, people are not learning how to cook, soon once all the people who can cook update their devices, they will no longer be releasing in these forums, we need to train a new breed of COOKS not CLICKERS!!!:D
[P3600 ROM Development] racerx_:
man.. you're like yoda to newbie rom cookers! haha
[P3600 ROM Development] bennec83:
MMM

Fear of learning is the path to the dark side.

Fear leads to BUTTON CLICKING.

BUTTON CLICKING leads to Stupid Padawan.

Stupid Padawan leads to suffering FOR ALL!!!

May The Force Be With You!!!
[P3600 ROM Development] engelolli:
Hello,

first .. sorry for my bad english ...

i've converted the default.hv to boot.rgu and changed two entries in it and saved it with unicode, and the first and the last line blank in this file.

after that i tried to reconvert ist and get this error:

importing registry file ".\boot.rgu"...

InitRegistry FAILED in file ".\boot.rgu" within a few lines of line 1.

BuildBootHive: (RGUComp) !ERROR failed importing ".\boot.rgu"

wmain: (RGUComp) !ERROR failed building BOOT hive

Success

DEFAULT.HV succesfully created

Drücken Sie eine beliebige Taste . . .

i also tried to reconvert the original boot.rgu, but i get the same error.

thanks for help,

oliver