yashsingh1/xdaforums huggingface dataset:
[HTC Desire 510] pattyboi:):
HEY GUYS

SOME OF YOU MAY KNOW ME

BUT IN CASE YOU DONT

hi der​

ive changed the thread title and stuff because im gonna be posting more than just my kernels here from now on,including test dtb's,test hboots and other things,also making it into sorta a "diary" when i work on things,including post code snippets for when i work with some of the other devs on projects.

working on using kexec to load a custom dtb. i have modified tasssadars kexec tools to support a11. need someone with the know-how to compile it. https://github.com/pattyboi/kexec-tools

working on porting caf 3.10. those interested can find my repo here: https://github.com/pattyboi/3.10-a11/

gonna need help with it. if you know what your doing,hit me up.

Rhinstone features: ​

new thermal (franciscofranco's)

new hotplug (decimalmans autohotplug)

soundcard control,aka boosting and such (zeroblade1984s tamod sound control driver)

bfq io scheduler optimized for emmc/nand storage (khaon)

optimized interactive governor thanks to many people

optimized simpleondemand gpu governor thanks to blechdose

most motorola kernel optimizations

most DKP kernel optimzations (including overlocking the i2c driver subsystem) ((decimal mans gs3 kernel,highly suggested if you have the device))

compiled with the latest sabermod arm 5.1 toolchain with graphite gcc options and tuned for cortex a7

memcpy combined from motorola and hglm's patches (https://github.com/hglm/test-arm-kernel-memcpy/)

removed A LOT of debug,including most htc debug and sensor self tests or useless functions

adreno idler (arter97)

uksm with all of the dkp optimizations

some upstream linux kernel updates to misc parts of the kernel

cache & neon updates (xboxfanj)

built in fast charge (alim.p)

con kalivas linux tweaks

many other misc code optimizations that would clutter the op,the kernel is fast in my opinion,and battery life is much better than standard kernel,i will be reimplementing f2fs and exfat soon..kernel was rebased and forget to pull them in

BIG THANKS TO: everyone. especially those inside my thread who have kept people from getting confused while using the kernel and also [MENTION=5964841]protectivedad[/MENTION] who created the flashable wifi zip. also a huge shout to the android community and all the devs i havent thank in the other part of this post

IVE ONLY TESTED ON MY CRICKET MODEL.

DO NOT FLASH IMMEDIATLY,"fastboot boot "release-date".img",if all goes well and you have no issues then run "fastboot flash boot "release-date"img" to permanetly flash it,THEN YOU NEED TO FLASH THE WIFI ZIP,just flash it through twrp,thx to @

XDA:DevDB Information

Rhinstone-kernel & device mods, Kernel for the HTC Desire 510

Contributors

pattyboi:), pattyboi:), rbheromax

Source Code: https://github.com/pattyboi/Rhinstone-a11/commits/rebase

Kernel Special Features: EVERYTHING ;)

Version Information

Status: Beta

Created 2015-01-27

Last Updated 2015-07-07
[HTC Desire 510] rbheromax:
Both camera's work?
[HTC Desire 510] Skilleg:
I'm Curious About The Cameras Working As Well And Also If Any Has Tried It On Virgin?
[HTC Desire 510] pattyboi:):
They work for me,mileage may very of course but everything works fine on nosense for me :D
[HTC Desire 510] LarryBoyG:
Is write protection removed?
[HTC Desire 510] dragonhart6505:
Good to go for Boost users, so Virgin should have no problems either. Flashed on my Boost with no issues. Both cameras work. Write protection is removed. Only problem is that the default camera app will not save pictures, so use a third party app like Camera Zoom FX or something. Videos still do not save, so dont bother with those. Its a strange issue with the other kernels and nobody knows why.

Explanation: because HTC...

When can we expect governors? And if I here one more thing about DBT I swear I'll punch a kitten
[HTC Desire 510] dragonhart6505:
Ummm...now when you say "more efficient"...

I don't think you know what that word means

I'm not trying to insult your intelligence or anything, the intelliplug certainly seems to be doing its job while watching the CPUs with 3c Toolbox. And I know Quadrant scores only tell PART of the story. But you said this kernel should "drastically increase performance". Taking a look at the CPU score alone compared to stock (even CM!) is unconvincing
[HTC Desire 510] LarryBoyG:
I got 2971.
[HTC Desire 510] dragonhart6505:
OK...found the koolness, Quadrant scores forgiven (for now)

In 3c Toolbox there are now GAMMA and SPEAKER settings. Yus plx!

BTW, probably should mention that in the OP

---------- Post added at 10:32 AM ---------- Previous post was at 10:25 AM ----------

Google Camera works for taking Photos and Videos

Edit: Google Camera DOES have settings. Slide from the left edge and you'll notice at the bottom right a gear symbol. People in the app comments on the Play Store are dense
[HTC Desire 510] LarryBoyG:
I think the coolness is the fact that both cameras are working WITH WRITE PROTECT REMOVED! W00T!
[HTC Desire 510] Kolma:
does this also allow for app to SD?
[HTC Desire 510] dragonhart6505:
If you mean will it allow you to use foldermount to mimic obb files on internal SD card...simple answer:

F**K YES!
[HTC Desire 510] Kolma:
WELP

Cameras work, system protection is gone, and overall very happy! (Just switched back to stock from CM11)

Installed Link2SD with an EXT3 partition on my SD card not that it's being used.

Mainly using Link2SD just to install apps as system apps which clears up a TON of space :D (why does this phone have almost 2 gigs free in system partition!!??

Also integrating updates into system apps.

Thanks for the kernel!
[HTC Desire 510] LarryBoyG:
I see possibilities here. Before, we couldn't use a custom kernel without borking our cameras. Is there a way to get pattyboi on with rbheromaxx, shinru and yourself in getting a fully working cm kernel with working cameras. I have a github account but i haven't the foggiest on how to build from scratch. I will try to help as much i can and together maybe we can submit it cyanogen and have them take over and start getting nightlies!

Just a thought lol
[HTC Desire 510] dragonhart6505:
Im talking with him now and hes already on the case
[HTC Desire 510] LarryBoyG:
Good to hear! I'm sure things will start kicking off now!
[HTC Desire 510] pattyboi:):
i dont run benchmarks tbh :cowboy: so idk what the deal is with the scores,not to sound rude but "i dont care" i just judge off how my device feels to me personally obviously ;P and to me it feels snappier and all those other buzz words :silly: but i will download quadrant and do some runs for the next couple of things im gonna try :D

oh and btw,shoutout to shinru and rbhero,they are the ones that got write protection off,i just cherry-picked the commits :d

and for governors,i really dunno,what would you guys like me to add? :D

oh,for next release im probably gonna try a new saber toolchain,long as it dont break anything

and finally,for anyone wondering im in a skype chat with rbhero shinru and kalisto,im not a magician so the big stuff tbh has kinda been on shinru,kalisto and rbhero,but i will be trying to help out with anything they do :D
[HTC Desire 510] dragonhart6505:
No problem dude, not rude. I completely understand. Like I said Quadrants don't tell the whole story. It IS smooth. How much smoother than stock? Can't really tell from the surface honestly. Otherwise it performs just as well as stock.

Its main feature that's excited me is finally being able to emulate files from my external to internal storage with foldermount. I'm a hardcore 1337pr0 gamer junkie and was disappointed I wasn't able to before, so props bro! I'll definitely be running the paces on this thing finally. rbheromax can atest that I know how to beat a phone into submission

The basics. Intellidemand, Lionheart, smartassv2...others if you feel so inclined.
[HTC Desire 510] pattyboi:):
sounds good,ill get right on it ;) ill try to have something for you to push hard very soon :cowboy:

BTW: for everyone,after installing this,go to system/bin and delete mpdesicision.dont want any conflicts with intelliplug
[HTC Desire 510] rbheromax:
I have already forked the source and started using it as a base. Progress can be tracked under branch cm-12.0

https://github.com/rbheromax/Rhinstone-a11/commits/cm-12.0

[MENTION=582226]patti[/MENTION]boi:) I added prima to my kernel tree fork. i think you may need that later down the road

config options being:

#
# Qualcomm Atheros Prima WLAN module
#
# CONFIG_PRIMA_WLAN is not set
CONFIG_PRONTO_WLAN=y
# CONFIG_PRIMA_WLAN_BTAMP is not set
CONFIG_HTC_WIFI_NVS=y
CONFIG_PRIMA_WLAN_LFR=y
# CONFIG_PRIMA_WLAN_OKC is not set
# CONFIG_PRIMA_WLAN_11AC_HIGH_TP is not set
# CONFIG_WLAN_FEATURE_11W is not set
# CONFIG_QCOM_VOWIFI_11R is not set

stray from that (specifically LFR), it'll fail to build
[HTC Desire 510] pattyboi:):
what roms are you guys on & have you tried clean flashing
[HTC Desire 510] gillim74:
Tried to download the 3-9:kernel and it comes up error server not found
[HTC Desire 510] Teet1:
Just stock rom. And yes I even tried clean flashing. Every kernel is fine up till the last two updates where the battery drain started happening. The last update is when overheating started to occur
[HTC Desire 510] koobie777:
I've used the 3/9 kernel with RR sense, RR gpe, and stock with boot loops overheating and bad battery life. I'm currently on gpe with 2/9 kernel and have no issues. I've used 2/9 with RR sense and stock with no issues was well.

---------- Post added at 03:48 PM ---------- Previous post was at 03:43 PM ----------

Yes I've tried clean flashing. I have to wipe dalvik to temp fix boot loops with with all 3 but after restart boot loops happen again so gotta wipe dalvik every time. Only when using busybox or xposed . busybox and xposed work fine on all Roms with 2/9.
[HTC Desire 510] pattyboi:):
anyone tried s-off?
[HTC Desire 510] gillim74:
Not yet debating if i wanna spend the 25 i did my m7 and 3 days later something happened to it so it was useless
[HTC Desire 510] koobie777:
No use. Tried every s-off method.
[HTC Desire 510] LarryBoyG:
Got s-off on mine.
[HTC Desire 510] smiley45:
did you pay for it
[HTC Desire 510] LarryBoyG:
I did, 25 bucks.
[HTC Desire 510] qwerty6532:
Wow so now this device is completely unlocked. Woohoo!
[HTC Desire 510] koobie777:
Nice. Figure out how they did it?
[HTC Desire 510] H0L1D4Y:
How do i remove the bloatware

Also which apps do i need to uninstall in my storage it says i have 2.79gb of

"Other" space. Does anyone even have more than 1 gb after uninstalling the bloatware anyway?
[HTC Desire 510] CSP III:
You're not going to get much better within that "other" area. Thats basically HTC built in ROM stuff.
[HTC Desire 510] H0L1D4Y:
U guys think that when they release lollipop it will free up ANY storage?
[HTC Desire 510] pattyboi:):
if we got lolipop you mean,which isnt a very big chance,no,lollipop will use more space as ART requires larger dalvik cache and the new designs are added,using more space in system, and data.
[HTC Desire 510] CSP III:
+1.....no way Lollipop comes to this device.

It's possible, though highly unlikely.
[HTC Desire 510] pattyboi:):
sad as the board has perfect lolipop support (clearly proven by motorola) its just htc dosent care enough to support it :/
[HTC Desire 510] smiley45:
omg you got to check your source before you go posting about lollipop. this phone is getting the update. it has been confirm on htc sites and by the htc reps. they just don't give a date.
[HTC Desire 510] CSP III:
Take it easy buddy....

Its tentative. Of course they are going say that. Helps sell more phones to reduce inventory. I'd be shocked if they did really. I just don't see it because if they do then they are going to have to address the lack of storage in these phones, which we all know is severely lacking, and that will cost them money. That's going to be their biggest issue if they attempt to roll out LP on this device. Whatever, LP is overrated IMO
[HTC Desire 510] dragonhart6505:
Lp IS overrated. I too have seen the supposed update everywhere, leaked and proposed to be available sometime next month. The update could be pushed to the SDcard and require one to be downloaded (solves the issue of where to put it) and it could be posted on the site and require a manual flash (not unheard of...eg Acer 500 series tablets). If you want it you'll likely have to return your device to stock til it can be picked apart and loaded to modded devices. Then there's the issue of when/if we'll get root. Big turn off for me if/when on it's immediate release.

Would be great to have, sure. But what problems will it incur? What bugs will be present? Will it destroy our chances of rooting again? Who knows...
[HTC Desire 510] qwerty6532:
Crappy internal storage

Just puts your apps on an SD card with link2SD... It can be a pain but once you've got it all set up you're fine

Then have all your downloads, pictures,videos and music store on SD card.
[HTC Desire 510] smiley45:
yes you are right lollipop is over rated... but i really don't see a htc making a new phone and not supporting it. i think this phone would have problems handing it anyways. the htc desire is a cheap but good testing and learning phone for dev. i am on broad to a do something cool with these phone or intel i brick while learning something. only time will tell oh and every source cant be account for so it all depend where you get it form. HAPPY HUNTINGS
[HTC Desire 510] CSP III:
+1.....Well said friend, well said.
[HTC Desire 510] pattyboi:):
im glad theres some mature people with explanations for what they say:good:
[HTC Desire 510] pattyboi:):
there would be no problems handling it,in fact,it would reduce the stress on the board. look at the moto g,it has AMAZING results with lolipop,same board and chipset.
[HTC Desire 510] dragonhart6505:
Lollipop actually requires 1gb of ram as a minimum requirement. Plenty of it here. Lp is smoother, ART is faster and more efficient than dalvik and most apps (rooted and non) have already begun updates to support it. I imagine it will happen and when it does people are gonna jump on it. The Moto G has done very well for itself with LP and it isn't far off from our hardware. My only fear is how long will it take to get us here with modded devices back to where we are now. Will it update the bootloader? That could spell more trouble, though I'm sure htcdev will still sort it out. Even still, we have no clue what LP will bring to the table aside from "improvements" that may or not be visually apparent to the daily user. We will just have to see.

Can we finally get back to the thread topic and talk about LP predictions elsewhere?

---------- Post added at 04:30 PM ---------- Previous post was at 04:29 PM ----------

Thanks :D if we only had more of that around here...
[HTC Desire 510] pattyboi:):
Someone on stock cricket please link me the build prop
[HTC Desire 510] Teet1:
PM'd you the link
[HTC Desire 510] pattyboi:):
gonna have a new build up probably today :P then gonna be working wtih rbheromax to try and get f2fs stable

anyone part of the s-off party with me and larryboy? ;)

and one more thing,anyone know/have the possibility to mod hboot?
[HTC Desire 510] qwerty6532:
What is f2fs?
[HTC Desire 510] LarryBoyG:
Here's my thinking about the hboot. If we could trick official cricket ruu to see Sprint/vm hboot as ul instead of chl we may be able to load radio img's and update firmware to that of GSM. I may be completely wrong tho.
[HTC Desire 510] pattyboi:):
flash friendly filesystem,a much better filesystem for mmc cards/flash cards/ssds then ext4 is and has ALOT more performance potential
[HTC Desire 510] pattyboi:):
we would need a custom hboot for the sprint/vm variants tho,just with it wrote to identify as ul.but even if we did,im not sure it would work because i thought those devices have cdma radios?
[HTC Desire 510] LarryBoyG:
I have both the Sprint and cricket version. And I have had them both torn apart with a magnifying glass, and I swear they look exactly the same down to the number on the solder points. And I was inquiring about changing the hboot build because maybe we could get the cricket ruu to flash the radios to the Sprint version. We can get Sprint service on the cricket version. So why not the other way around.

I don't want start a conspiracy theory. Just a thought.
[HTC Desire 510] rbheromax:
I'll say this. They are the SAME. Only difference is branding. It's like GPe vs Sense devices. Some went this way, some went that way. That's why the software is interchangeable. Hell if we want conversion I'm sure we could flash RUUs to get to the other "side" but it wouldn't matter. We already have the same exact hardware
[HTC Desire 510] pattyboi:):
if they really are exactly the same we for sure could change hboot around for them to flash,its just modifiying hboot thats the issue right now
[HTC Desire 510] pattyboi:):
[MENTION=3028691]LarryBoyG[/MENTION]supercid works for us i just did it (sudo fastboot oem writecid 11111111) once you do that anyone with the device can use any ruu they please AFAIK,im not responisbale for any damaga blah blah :p

WRITE DOWN YOUR PREVIOUS CID INCASE ANYTHING GOES WRONG YOU CAN WRITE IT BACK

AND YOU MUST BE S-OFF WITH SUNSHINE
[HTC Desire 510] qwerty6532:
Wow we are getting into deep development for a phone of this popularity, I love it. Hopefully someone with hboot editing comes by or something. Anyone know anybody
[HTC Desire 510] blaqueknight:
I see that the Moto E LTE (2015) supports f2fs natively. I was going to get that phone but their order hadn't come in yet, then I got the Desire. That may be the next phone that I get.
[HTC Desire 510] pattyboi:):
i for sure recomend it or the g,both were GREAT for the money until i bricked them :/
[HTC Desire 510] pattyboi:):
i may attempt a hboot edit tonight if i can get my hands on one,all tho its hex and im basrely good with c coding,im gonna try getting someone from another htc device to help
[HTC Desire 510] qwerty6532:
That's awesome good luck I hope it works I hate the red lettering on boot up and tampered on bootloader lol
[HTC Desire 510] rbheromax:
If we're lucky, this may come today
[HTC Desire 510] qwerty6532:
I got my $25 ready haha. No rush
[HTC Desire 510] rbheromax:
I'm not gonna s off because I see no real gain. But pattyboi and myself are working on this right now
[HTC Desire 510] CSP III:
+1....I mean for me, there's really no upside to it. However, I could be wrong. It happens. A lot?
[HTC Desire 510] pattyboi:):
For anyone wanting SIM unlock I'm 90% sure your gonna need s-off and supercid
[HTC Desire 510] rickin:
no need s off and super cid.

http://xdaforums.com/showpost.php?p=58470635&postcount=123

i just do it india for cdma ruim cards works gr8.(using dfs just changing from nv to rium)

dont know how to on gsm may be you are a developer you know much better then me.
[HTC Desire 510] LarryBoyG:
You can find your CID in your build prop. It should be a line that looks like this. ro.aa.maincid=SPCS_002

ro.aa.cidlist=SPCS_002

Also it is displayed on h-boot when you s-off.
[HTC Desire 510] pattyboi:):
Your cid changes when your super cid that's the only reason I wanted people to wrtite the original down :p
[HTC Desire 510] pattyboi:):
new build is up! bunch of arm specific algorithem improvements,UKSM with arm specific optimizations,full rebased memcpy+etc with motos optimized ones with all my previous patches for the best performance,removed alot more logging,updated slub,add ktoonsez's gpu governor,added flar2's version of HD audio which forces the codec's/recording devices to perform in HD,updated the ubtertc toolchain to the latest,couple other misc things for better performance :)
[HTC Desire 510] s3llz:
What In The Ying Bing??

I don't mean to sound like a super duper noober, but how in the world do you flash a kernel? I downloaded the file and all I got was a file with an .img at the end. I put it onto my sd card and rebooted into recovery. I have twrp by the way. I then proceeded to look for the file, and presto....couldn't find it. The I tried changing the extension to .zip, I found it in recovery, but It said file was corrupt when I tried to flash it. I know, I know, I know.......i'm totally doing it wrong. And i will probably get green eggs and hammed by every person who comes across this reply, but if it get's me help asap, I don't mind the sarcasm. Help me flash this kernel and make me a happy camper.:D:good::highfive:
[HTC Desire 510] CSP III:
Or.....use Flashify from Playstore so that you have the ability to backup your current kernel just in case something gets wonky on you.
[HTC Desire 510] pattyboi:):
adb works just fine for me?
[HTC Desire 510] pattyboi:):
someone who is s-off do me a favor and post the results of the command " su cat /proc/emmc"
[HTC Desire 510] LarryBoyG:
one sec..

Edit: silly question. What am i Doing wrong? I'm in Adb Shell.

su cat /proc/emmc

tmp-mksh: /proc/emmc: can't execute: Permission denied
[HTC Desire 510] pattyboi:):
can you try from mobile term?
[HTC Desire 510] LarryBoyG:
Tried it..
[HTC Desire 510] pattyboi:):
Ohhhh I didn't prwas enter after su lmao my bad it's su then cat /proc/emmc my bad I got what I need tho
[HTC Desire 510] LarryBoyG:
did it anyway lol, now i know what partition all the memblocks are in.
[HTC Desire 510] pattyboi:):
yeah its good to have the parition layout,im gonna check if anything changed s-on vs s-off
[HTC Desire 510] LarryBoyG:
Sounds good. Right now i have RR v1.2. Just waiting for some free time where i can update changelog and my banner. You Should be able to use it with Cricket. It's Completely Deodexed and zipaligned. Just push your ACC default.xml from your Cricket.
[HTC Desire 510] pattyboi:):
awesome!!!!! :)
[HTC Desire 510] blaqueknight:
That could be it. I had a problem using adb when I had Bluestacks running on my computer. Clicked HDQuit.exe and the problem went away.
[HTC Desire 510] pattyboi:):
overlooking the kernel,gonna try and fix up these mystical battery drain complaints
[HTC Desire 510] rbheromax:
*whispers*

"HTC_PNPMGR"
[HTC Desire 510] pattyboi:):
i hate that thing thoooooooo :(
[HTC Desire 510] qwerty6532:
What is it?
[HTC Desire 510] pattyboi:):
basically,its a process manager made by htc,which allows the stock roms "powersaving mode" to work as it digs into that driver and a couple others and helps alter performance more towards battery,but as far as i understood it only worked if you had the "maximum performance" option ticked in dev settings or powersave mode on,i may be wrong
[HTC Desire 510] rbheromax:
It's always running and held us back in terms of performance. But so much stuff was tied into it, it drains bettery like crazy. I'm sure it was the only way HTC could get decent battery life for us before release (they rushed it).

I could be wrong but that's my theory on it
[HTC Desire 510] pattyboi:):
ill start doing relases with it on and off,see which does better in terms of battery,all tho intelliplug wasnt the most battery friedly thing,liking msm_hotplug right now
[HTC Desire 510] pattyboi:):
anyoboy good with hex editing/has a decent hex editer on hand?
[HTC Desire 510] rbheromax:
When Windows 10 finishes its weekly update I will. Although it seems to take FOREVER. Need help on the hboot stuff?

Edit: done now
[HTC Desire 510] pattyboi:):
your a life saver,linux hex editors are terrible and i cant get a good enough look at the file on mobile,but i coulnt find the warning inside the hboot dump on gdrive which somewhat scares me :/
[HTC Desire 510] rbheromax:
That's what I'm using. But it's not in hboot. Check pg1fs and pg2fs

Hboot references those partitions to get it's info.
[HTC Desire 510] pattyboi:):
tried them lastnight,didnt see anything in them either,ill try again tho in a couple mins,doing a build :fingers-crossed:
[HTC Desire 510] rbheromax:
I'll download them and play around. I'll report back if I find anything