yashsingh1/xdaforums huggingface dataset:
[HTC One X] n3ocort3x:
thats up to u. :) just where its easier to track for u but htc has release kernel source soon so it might be less work to fix it in userland. another question : does rfkill work correct for u and rogro on 2.6 bt drivers. i always run into troubles on 2.6 (tbalden also) so he updated to 3.1 driver and since this moment at least my problems with rfkill are gone
[HTC One X] pabx:
I would also prefer to fix it in the kernel, but the bug only shows up due to a combination of bugs in the kernel driver AND the new bt-stack:

#1: The kernel driver returns -ENOMEM if the write buffer is not big enough to store all data

https://github.com/adrian-bl/hox_ke...8fae383b/drivers/misc/ti-st/hci_if_drv.c#L315

This is a silly and stupid thing to do for a driver

..but:

#2 The userial.c code of bluedroid doesn't really handle partial reads:

https://github.com/adrian-bl-hox-jb...th_bluedroid/blob/jb42/hci/src/userial.c#L184

It assumes that all data was read in one go - this is also wrong.

So we can either fix both the kernel + userland (kernel: return partial data / userland: handle partial data) or just increase the buffer size of the userland from 1kb to 2kb (this is far enough to store the returned data).

Btw: What 3.1 kernel are you used? Is it based on the X+ sources?

Does the RXFILTER feature of the wlan driver work? I tried to use the latest X source + wifi drivers but enabling rxfilters made things pretty unstable. (It was fine without rx-filters)

What kind of issues did you notice? At least turning off bluetooth really turns it off ;) (the paired device notices the state change and also goes offline)
[HTC One X] LorD ClockaN:
@pbax:

does your current repo have working BT.. beacuse I added those 2 patches to 2.6 BT drivers and the phone reboots it self and stays in bootloop on enabling BT..

Maybe the fix for BT tether is needed or something elese?

all in all hox_tools update broke BT for me
[HTC One X] pabx:
Yes, bt should work: Did you must also update the hci driver:

https://github.com/adrian-bl/hox_ke...73c4c8fae383b/drivers/misc/ti-st/hci_if_drv.c
[HTC One X] LorD ClockaN:
I did that... Will wait for your final fix than chase ghosts

Flowed from my OneX...
[HTC One X] n3ocort3x:
@pabx the issue was that with some devices rfkill hadnt worked correctly. i push new drivers with bt fixes out of tegra reference when im @ home so u can have a look :)but maybe this issue is gone. was on early ics days
[HTC One X] drziddo:
HBOOT update?

@pabx

Hello man, excuse me, I have a question.

I got a new one x, and I unlocked bootloader and flashed your rom before it update sense and original rom to jb.

As a result, I have hboot 0.94.0000.

Everything is working fine, but, do I need to update hboot?

If so, can you please tell me how?

Thanks in advance.

Loving RC8!

Still want more black and blue.
[HTC One X] pabx:
No: There is absolutely no reason to update hboot: hboot is a simple bootloader - it doesn't do anything after the operating system has booted up.
[HTC One X] drziddo:
So, is not necessary at all?

Not better to be updated?

Can this give me issues when flashing stuff?
[HTC One X] pabx:
Yes, it's not necessary at all: HBOOT reads the 'boot' partition and boots the kernel. That's it.

HBOOT is not running or doing anything after linux booted up.
[HTC One X] pabx:
You can change the scaling frequency on-the-fly, but you should patch (or disable) the power-hal: otherwise it will reset your settings. (power.c)

I suppose ADHD is based on a sense rom? In this case the reason why this rom seems to be slower is easy:

HTC is full of ****.

There is a funky library called `libhtc-opt2.so' used in sense roms (this rom also includes a copy of it, but it's not used and just there because nobody bothered to remove it) - running strings on the library gives some interesting results:

$ strings ./target/product/endeavoru/obj/PACKAGING/target_files_intermediates/tg_endeavoru-target_files-eng.adrian/SYSTEM/lib/libhtc-opt2.so | grep ^[a-z]

com.android.browser

persist.sys.ui.hw

com.htc.launcher

com.android.camera

com.htc.android.mail.MultipleActivitiesMain

com.htc.android.mail

com.google.android.apps.maps

com.htc.laputa

com.mactiontech.M

com.kingwaytek

com.google.android.videos

com.sdgtl.watch

com.htc.video

com.htc.streamplayer

com.google.android.youtube

com.aurorasoftworks.quadrant

gr.androiddev.BenchmarkPi

com.smartbench

com.quicinc.vellamo

com.android.cm3

com.glbenchmark.

se.nena.nenamark

com.southend.electopi

com.tactel.electopia

com.antutu.tester/com.antutu.tester.Battery

com.antutu

com.greenecomputing.linpack

eu.chainfire.cfbench

com.georgie.pi

com.htc

com.android

com.netflix.mediaclient

So what does the library do? It checks if any of the above applications is running (note that there are quite a few benchmark apps in the list!) and bumps the CPU to max speed.

Again: As soon as you start a benchmark APP, a sense based ROM will go into full-speed mode.

That's cheating and stupid. I hope the guy at HTC responsible for the 'optimization' got fired.
[HTC One X] witteswa:
Oh my... that's really bad.. One more reason to not pay any attention to all this benchmarking buzz.
[HTC One X] pabx:
RC9 is now up with working BT-Audio support!

Don't forget to flash boot.img!
[HTC One X] fahad123:
Do I have to perform full wipe or a dirty flash would do? Running rc8 atm
[HTC One X] pabx:
You only have to do a full wipe if you are coming from some other ROM:

If you are running RC8 you can just flash RC9 + GAPPS without a wipe.
[HTC One X] drziddo:
No need to flash boot.img on this one?
[HTC One X] aymansanliturk:
You have to flash it on every new release.
[HTC One X] FCDHBubbles:
Just did dirty flash RC8 ==> RC9 all well ;):good::good:
[HTC One X] n3ocort3x:
@ pabx

thanks for ur efforts, now audio 2 bt works for us also :) I really would like to have that knowledge you 2 guys have. I pushed 3.x bt driver so u can look into it ! I really would appreciate if u could describe me how u found the fix... just reading logs ?
[HTC One X] drziddo:
Flashed boot.img, flashed rc9 and now is not booting.

Just the htc screen, nothing more, I can use some help here.

Thanks in advance.

EDIT: While in the htc white screen, red light is always on.

Edit2: Solved, went through Ruu and all.

Thanks anyway.
[HTC One X] cheongpl:
have you "fastboot erase cache" ?
[HTC One X] boe323:
Im a nuub when it comes to flashing romsso be patient with me, why cant i use the 25gb storage that i have?, i mean why cant i have apps to sd functionality, theres no option, and apps from the market say its emulated space. My phone storage is full. All i have is 2gb for apps?. Also why is there an out of date music.apk?, that version is so old?
[HTC One X] eefo:
Only one thing i need to know is, that how to use that command to move the data from sdcard/0 to sdcard :/

because i have tried it while in CWM but it said not found :/ then i had to move every thing manually and it took really long :/
[HTC One X] cYbOrG5:
Its in the OP how to move the data, I think
[HTC One X] mattman83:
Because that is how android works. 2gb is still a lot for apps but if you need to free up some space you can go to the apps menu and use the "move to sd" function.

M.
[HTC One X] boe323:
there is no apss to sd function.
[HTC One X] cYbOrG5:
Settings-->Storage does not give values but are stock in Calculating... Not that it matters but I thought you might want to know.

Flashed via full wipe and fastboot erase cache from a sense-based ROM.
[HTC One X] backfromthestorm:
Working with the lib/apk I posted.
[HTC One X] camit34:
I have it saved to a log file. How do you want me to send it to you?
[HTC One X] fahad123:
Thanks for your reply.. What about the boot image?
[HTC One X] RedSkyRoad:
I've always wondered about this hboot updating thing : What actually changes when an hboot gets updated? Is it linked to kernel changes or what?

PS: Does this ROM use the 102 & 204 frequencies when in use? I find that other 421 roms mainly use the 340 MHz when in use and the battery drain is insane...

---------- Post added at 09:49 AM ---------- Previous post was at 09:22 AM ----------

Another question : When I moved to 4.2.1 (Trip's build) the sdcard structure is not at all as described in the OP. My sdcard is as follow:

/storage/sdcard0/

as opposed to:

/sdcard/0/

in the OP...

Is this correct?
[HTC One X] pabx:
Does it include a kernel panic? If yes: Please post it on pastebin.com and post the link here

Upgrading hboot via RUU will just upgrade hboot and (probably) the radio firmware.

The HBOOT version doesn't really matter - hboot basically does 3 things:

- check the hardware

- initialize the hardware (turn display on, init ssd storage)

- boot the kernel (just like grub/lilo)

The kernel-version <-> hboot-version doesn't really matter. People started to get confusing when newer hboot versions stopped working with custom ROMs: The reason for this is that people used an ancient init binary that crashed with newer hboot releases.

About /sdcard/0 and /storage/sdcard0 : These are two different things: /storage/sdcard0 is the mountpoint of the FIRST sdcard.

/sdcard is the mountpoint of the CURRENTLY VISIBLE sdcard and /sdcard/0 is just a folder called '0' in /sdcard

Works for me, but it takes some time if you have many files.
[HTC One X] RedSkyRoad:
Thanx for the great informative reply :)

Why would I not have the '0' folder in sdcard? Should I?
[HTC One X] pabx:
Did you check whether playing a flac file via BT works while unplugged + screen off without any drops?

If it doesn't you'll also have to add this two patches:

https://github.com/adrian-bl-hox-jb...mmit/7b321193760d5433ccc4480e1aae916eefbbca6f

https://github.com/adrian-bl-hox-jb...mmit/64cc97e42b0e3cd6542e08db9c4311bc59b62704

also make sure to apply

https://github.com/adrian-bl-hox-jb...mmit/d11eed986c6b99e17c90491c06a13d74ae91fa7f

otherwise bt-tethering will be broken with the new tty_hci driver.

About the fix: Mostly reading the logs: The A2DP HAL module failed to load which was natural as our audio hal expects 4.0 ABIs but the A2DP module was designed for 4.2.
[HTC One X] fahad123:
Can we have the crt animation to this awesome rom? :D
[HTC One X] camit34:
No panic.

BTW, I upgraded to rc9 and am not able to get any location service to work at all.
[HTC One X] mattman83:
Trip's 4.2.1 probably doesn't use the "0" folder as it's a part of the multi user support. If you don't have multi user stuff active in the rom then it won't use "0" folders.

M.
[HTC One X] camit34:
Not sure what the deal is but I cannot get GPS to work on any of the three 4.2.1 ROMs I have tried. I'm on HBOOT 1.36 and have noticed several threads about it not working. Going to try and go back to 4.1.2 and see what happens.
[HTC One X] pabx:
You probably forgot to flash boot.img: Post the output of 'adb shell cat /proc/version'.

GPS does work just fine on RC9
[HTC One X] drziddo:
Nope. I just did as stated in OP.

When is required to do that?

Thanks for your advice.
[HTC One X] camit34:
you have done some fine work on this ROM and many people are very happy with it. I am too.
[HTC One X] drziddo:
Not available move 2 sdcard.

With sense 4+ that 2Gb are 6Gb.

Any chance to modify that partition to have more space to install apps?

2Gb aint definitely a lot, not for me.

Thanks.
[HTC One X] ferreinf:
To modify partition table s-off is needed...
[HTC One X] ametarasu:
everything works

I just now flashed rc9 and I am coming from one of the latest Sense based ROMS. Everything works so far. I have not tried any tethering but wifi and GPS works flawlessly.

One annoying thing is keypad does not auto complete contact numbers, I have to use search always otherwise a perfect ROM :)
[HTC One X] rogro82:
You dont have to modify the partition table, but P14 will have to be partitioned as ext instead of vfat and then you will be able to mount that as /data. Basically like how all newer devices are.

Only real issue is that you cant go back to any other ROM as they will all try to mount P14 as vfat and besides that you will also have 2GB of free space that really has no use anymore ( you can of course mount that for anything you like )...

So its not undoable ( I have P14 as ext4 ) but it will never get mainstream...
[HTC One X] harsaad:
sorry noob question ...

some directory from sdcard can't found anywhere ... i putted a lot or .apk's files in it (where those application and games). I named it new folder. how to make it appear?
[HTC One X] and313:
I had the exact same problem and it didnt go away so i had to return it to warranty. I get a new one now it is hardware related. The early stock kernels had incorect voltage settings and killed some chip. If you spotted it early you could fix it with an official update but if not it may be fried. So if you experience it still it will not go away and you will have to return the device
[HTC One X] chalmizzle:
Do we even need a user switcher?

Chances are people own their own phones and do not share. Granted its a nice feature but to me it seems useless.

I've been tearing my hair out with AOSP/CM10 builds with camera FC'ing when face recognition detects, managed to find ICJ 3.4 works and im sticking with that for the time being. I'm following though and keeping a VERY close eye on this thread!

Keep up the good work guys.
[HTC One X] rogro82:
If you dont want it just dont add a second user... it will only show when there are two users so no real issue

As for the need of multiple accounts on a phone I guess thats everyones own decision... I share a family gmail account and rather have a second user so i have only that calendar, contacts, gmail etc then having it merged with my own account
[HTC One X] LorD ClockaN:
or don't use PIN
[HTC One X] chronicbint:
Just installed, all good so far. :good:

Hoping the camera gets sorted soon. :cool:
[HTC One X] aymansanliturk:
I guess I have to wait for HTC to release something about JB so that you guys have the chance to dig in for hboot 1.31
[HTC One X] JDAapps:
I second that. Having a Guest account is useful as well, so wife/kid is not deleting contacts,mail,apps,buying apps,etc. when they want to play a game. If you use slide or even pattern unlock, layout is perfect as well.
[HTC One X] huxleypig:
I admire your'e skills but after installing 4.2 on my Nexus 7 32gb I couldn't wait to go back to 4.1.2 . multi user is rubbish and the mess it makes of your file system with its 0 drive duplicating folders drove me mad.
[HTC One X] chronicbint:
If you go to settings->display->daydream and click the configuration button next to "Clock" you get "Unfortunately, Settings has stopped".
[HTC One X] rogro82:
Thanks this was an issue in the original AOSP source.

diff:

http://pastebin.com/u4zxHYXT

I have attached a new DeskClock.apk in case you want to replace it before it will be fixed in a newer build.
[HTC One X] mattman83:
I'm sure pabx and rogro already know, but 4.2.1 is on AOSP now with calendar fixed :)

Just did a full clean reinstall of mine (previously dirty install over CM10) and fixed up my last couple of niggles. Really recommend the clean install to anyone now... try restoring stuff as little as possible.

M.
[HTC One X] rogro82:
its not even worth calling it a minor update :)

http://www.funkyandroid.com/aosp-JOP40C-JOP40D.html
[HTC One X] mattman83:
Yeah I know ;) Something that could easily be fixed in a custom build anyway.

Just as a general awareness thing... getting quite alot of wake time/battery drain from location services.

SignalCollector.ScannerThread

SignalCollector.Scanner

NetworkLocationLocator

all from com.google.android.apps.maps.Maps

It's only anecdotal, but i normally leave GPS on at all times and have never experienced drain like this... currently my largest usage item. Not sure if there's any particular logs etc that may help, but let me know if there is.

M.
[HTC One X] dengseng:
not to rush things for the devs

but I really hope that the camera can work as soon as possible

I'm sure many of us would like to try out photosphere

:)
[HTC One X] ViktorN:
You can try it out by installing the camera apk and gallery from 4.2 onto a Sense rom. It has to be a Sense rom, it doesn't work with CM10 or AOKP or AOSP for some reason...
[HTC One X] pabx:
Google Maps has been a major Battery Hog for me (keeping the phone awake for more than 40 minutes) - but i guess that's just the 'initial location bootstrap': Google Now & Co needs to re-learn my home + work adress.
[HTC One X] theDroidfanatic:
Install without changing SDCARD Formatting ;) http://xdaforums.com/showthread.php?t=1999214
[HTC One X] dengseng:
I don't really get what it means

i dont have sdcard/0

:confused:
[HTC One X] pabx:
The rom does not change/format the sdcard. It just creates a folder and this is REQUIRED for multiuser support.

Following random 'guides' will just break stuff.
[HTC One X] dengseng:
what should I do if I have tried your 4.2

now I'm going back to jb/sense and that thing you posted on op, but I deleted /sdcard/0 and lost some of the .xx files and it's still MTP
[HTC One X] pabx:
What are .xx files? 4.1.2 supports MTP and MassStorage, but you have to enable MassStorage (-> notification dropdown -> select notification)
[HTC One X] boe323:
Is there any way I can get my apps to install directly to the SD card?, as there's no option to move them over. Also, was having a play with simulating second screen and my phone got stuck on the nexus x logo even after reboot , there's no option to revert once you tick a resolution your pretty much stuffed. I had to reflash the software and install all my apps. Wouldn't it be a good idea to add an option to turn off once its on.Is the status bar supposed to show on lock screen? Is this natural behaviour for stock 4.2.1?, how can I remove the stupid search bar and use the whole screen for home screen? It looks daft only having tiny home screens with all that space wasted.

Is there supposed to be quick settings in pull down notification draw?Sorry for all questions, its my first time using stock android software without sense, and so far I'm not liking.
[HTC One X] n3ocort3x:
@pabx

thanks for ur reply. hqve u guys tested something to get usb otg working? i will try something tonight but im not sure if it will work. on onex+ source it seems to work out of the box. so probably taking usb (and all usb related stuff like i2c) might work. yeah and defconfig update too... or have u tried that allready?
[HTC One X] grahamkdt:
Mmmm

Any more questions you'd like answering? If you don't like it, don't use it - flashing is free! :p
[HTC One X] ic3cub3:
Any ideas on how to stop having Gallery Crashing randomly while filing fullhd?

Regards.
[HTC One X] boe323:
Well being as though these question havent been answered yet, why ask more. There isnt a manual, so im asking people who have been using it. Theres always one person with a dumb ass comment no matter what you write or where. Also i never said i dint like the guys rom, i said im not liking the stock software without sense ui, this only because im not use to it, never had it before, always had sense.
[HTC One X] tatsit:
is it always a must to flash gapps every time when flashing from a older version to a newer version?
[HTC One X] ic3cub3:
I would recommend it.

You can use the old ones,but if they crash.. :)
[HTC One X] pabx:
Again: Please post a logcat of the crash - i can not reproduce it on my phone and without a crashlog i have no idea WHAT actually causes the problem.

Not really: I can activate it and the phone does something on the usb bus but i never tried it as i do not have usb-net.ko on my workstation kernel - and i didn't bother to compile it :)

Yes, you must always re-flash gapps. Flashing a new AOSP image will remove any existing gapps packages (this is not the case in CM, but we are not CM).
[HTC One X] zpon:
I get the following error when checking out the git repo

$ repo sync
[..]
Syncing work tree: 33% (107/323) error: revision refs/tags/android-4.2.1_r1 in platform/external/libnfc-nci not found

Any idea what's wrong?
[HTC One X] JDAapps:
Search this thread. There are a few projects that need different revision tags.
[HTC One X] zpon:
Thanks. The relevant post is here, if anybody needs it: http://xdaforums.com/showpost.php?p=35555506&postcount=402
[HTC One X] ametarasu:
Hi,

@pabx. Great ROM. Enjoying jelly bean 4.2 in the purest form.

I have one question though, is there a way to enable searching contacts while typing on the phone dialler? This feature was there in sense based roms and CM 10. I thought it was a base android feature. Was this feature removed with 4.2 ?
[HTC One X] TheBrilliantMistake:
You need to use 'stock' ROM for a couple of weeks, then you'll learn to enjoy it fully, and appreciate why Sense is actually quite bad.

Sense USED to be an improvement over stock ROMs but that was many years ago, but it's been overtaken with Google's UI improvements.

At first, it will feel like many 'features' are missing, but the simple UI eventually proves to be more effective and takes up far less memory, and (in theory) offers more speed. Sadly, you miss out on a small number of Sense 'nice' things - like the FM Radio, and some of the camera features, but you will gain in more customisation, and improved UI.

Stick with it for a while... it's like changing phones.
[HTC One X] boe323:
I will. Starting to get used to it. I have a hox+ anyway so I'm keeping this phone completely sense free.About the radio, I thought cm team offered there own version. I seem a radio app on the HTC legend with the 4.1 preview for it.
[HTC One X] pabx:
No, sorry: Thats a Cyanogenmod feature - AOSP does not include this function.
[HTC One X] RedSkyRoad:
How's the battery life on this ROM?

I never imagined the day that I'd ask this question but only when you are caught by surprise by a battery black hole, do you start to wonder...
[HTC One X] FCDHBubbles:
23 hours 15 min 100 to 34% screen on 3 hour 10 min wifi on 13 hours 23 min..
[HTC One X] boe323:
Yep, no problem, so this roms just going to be totaly stock?, like very similar to whats on the nexus 4?, any plans on getting photosphere working?, and optimizing the simcard load time?.
[HTC One X] noolis:
about battery...

screen time only 1hour and 15 minutes and GPS 33 minutes

first full charge of battery...now i am to the second i think that in the third it will be much better!!

---------- Post added at 11:05 PM ---------- Previous post was at 11:00 PM ----------

HOW???

my posts are with open data all the time and wi-fi about 4 hours,gps 33 minutes and screen time as you can see 1 hour and 15 minutes...
[HTC One X] boe323:
My screen time seems to be fantastic at the moment, not tried gaming though.Im really looking foward to the finished product, it is indeed faster thane sense and smoother.
[HTC One X] pabx:
This looks more like a wakelock-leak: Your phone probably never entered deepsleep as an application never released its wakelock.
[HTC One X] boe323:
Can you add the google boot animation logo instead of htc?, also could you add the on off screen affect like you get on the nexus phones, looks like an old tv being turned off, instead of the screen just fading,would be much better. Not really come across any bugs, apart from the simulate second screen issue where you cant back out of it once commited, just get stuck on nexus logo even after turning phone off etc, oh, and voice dialer just hangs on starting up.
[HTC One X] cYbOrG5:
tried to use setcpu and no frills to set max CPU at 1Ghz, both failed even if set on boot. any advise how to do it? at 1.5Ghz this baby is literally too hot yo handle
[HTC One X] drziddo:
rc9

Hello paxb and other genius!

Updated to RC9, so far:

1. Flashing boot.img previously dont work. It only boots if I dont flash the boot.img before. Weird?

2. My phone is overheating as never.

3. The battery is draining real fast, like 40% in two hours of casual use.

Am I the only one with this issues?

Any fix?

Any way to find what is draining?

Sorry if this have been asked before.

Thanks in advance.
[HTC One X] cYbOrG5:
#1 probably you need to fast boot erase cache after flashing IMG at fast boot .

everything else we are on same situation :)