yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] justinisyoung:
actually, the libs for opengl are at /system/lib/egl

there's three files. egl.cfg, libGLES_android.so, and libGLES_qcom.so

if i'm correct(and if im not, please correct me), egl.cfg just specifies how the other 2 libs are used, libGLES_android.so seems like it's how android handles software graphics acceleration, and libGLES_qcom.so is kind of like the 'driver' for the GPU of our phones. so yes, it's possible to replace them. i've done it with libs from other ROMs and the phone works fine, but the openGL bug still exists.

awhile back, there was mentions of an 'openGL fix' that enabled all live wallpapers to work right, but what that did was replace libGLES_qcom.so with libGLES_adreno200.so. the adreno200 is the nexus one's GPU, which is obviously faster and better than ours.

so it's definitely something with the libGLES_android.so and libGLES_qcom.so files that's causing the openGL bug.
[Hero CDMA Android Development] sandboxlove:
i just thought of that, and while i was gone i replaced the .libs from flipz undo patch with darchs.

rebooted, no bumps yet. going in for testing

wish me luck, i hope i found the bug!!!
[Hero CDMA Android Development] sandboxlove:
ok so i replaced the opengl with the standard one, multitouch is working great(browser)...is there another gallery app that is capable of multitouch?

will report on battery tomaro.

edit: i also replaced gallery.apk with b&b multitouch gallery. im going to take a look at cynys gallery.
[Hero CDMA Android Development] justinisyoung:
sorry, but multitouch doesn't really have anything to do with openGL. what you want to test is the 3D gallery app.

basically, turn on your phone and open gallery3d, but don't let your phone go to sleep. it should work.

then unplug your phone if it is already, and let your phone sleep for 30 seconds(press power button). turn it on again, and go to the 3d gallery app. if it loads fast and you can see everything, then you fixed it. most likely, it'll load extremely slow and you won't really be able to see any of your photos.
[Hero CDMA Android Development] sandboxlove:
idontcareaboutthe3dgallery

i want better battery life, thats what im testing this for lol

the opengl is only for lwp and 3d gallery, which is might compromising battery in some way. i know its had ill effects in other regards.
[Hero CDMA Android Development] boredmug:
You're funny.
[Hero CDMA Android Development] sandboxlove:
i try 5678910
[Hero CDMA Android Development] sandboxlove:
dude i have been all up and down cynys system/app and cannot for the LIFE of me figure out what he's using to view pictures lol
[Hero CDMA Android Development] boredmug:
I think it has something to do with the flux capacitor not disengaging correctly when the cpu goes above 488 mhz.. :D
[Hero CDMA Android Development] Decad3nce:
Possible find?

What steps will reproduce the problem?

1. Run any 3D intensive program while OC'd(with or without OC app)

------------------------------------------------------------------

How do I explain this(I'm not really fluent in much of this) but anyways.

I might have found a possible memory leak, which could lead to the bad battery problems AND the problem with openGL(since the leak is in databases/permissions, i'll get to that later)

Anyways, it seems like the memory leak is due a problem with SQLite:

When dalvikvm tries to go back to retrieve some of the resources it notices that SQLiteDatabases has not been deactivated or closed which then leads to the "E/Database(1273): Leak" being found.(just my theory?)

I/dalvikvm( 1273): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 1273): Ljava/lang/IllegalStateException;: Finalizing cursor android.
database.sqlite.SQLiteCursor@43df3ed8 on permissions that has not been deactivat
ed or closed
I/dalvikvm( 1273): at android.database.sqlite.SQLiteCursor.finalize(SQLiteC
ursor.java:599)
I/dalvikvm( 1273): at dalvik.system.NativeStart.run(Native Method)
E/Database( 1273): Leak found
E/Database( 1273): java.lang.IllegalStateException: /data/data/com.noshufou.andr
oid.su/databases/permissions.sqlite SQLiteDatabase created and never closed

Pastebin of logcat

Going on, after the phone has been "asleep" for a while(sometimes even hours), I try to run a GPU intensive program again.

Seemingly, after a while of being asleep, the phone somehow "loses" its set permissions for openGL and hw3dc:

D/libEGL ( 3108): loaded /system/lib/egl/libGLES_android.so
D/libEGL ( 3108): loaded /system/lib/egl/libGLES_qcom.so
E/EGL.oem ( 3108): could not open hw3dc (Operation not permitted)
E/libEGL ( 3108): No EGLDisplay for hardware EGL!
D/libEGL ( 3108): Setting TLS: 0x4682ff00 to 0xac70a2ec
E/copybit ( 3108): Error opening frame buffer errno=13 (Permission denied)
E/copybit ( 3108): Error opening frame buffer errno=13 (Permission denied)

Pastebin of logcat

Which then in turn cause openGL to falter.

Being as I'm not really that fluent, I was hoping for more insight.

Could these two things be correlated?
[Hero CDMA Android Development] Stramondroid:
Ok, Im sure this has all been reported before, Im just giving a +1 on all.

This rom is awesome, and I cant wait for it to be polished enough to use::

1) 100% uptime. (Its making my phone hot)

2) Youtube or Camcorder not working at all.

3) I think something is up with mine, as Im getting 3.9fps on neocore, w/ a fresh install

4) Gallery is sluggish at best, not usable, and I cant find another app to view pics

5) No Voice on KB, even after Google ****s flashed, immediately.

I wanna use this daily, but these certain things are holding me back. My linpack scores were low as well.

Thanks for all your hard work, and Im not *****ing, I promise.. :)
[Hero CDMA Android Development] Sporkman:
Re: [Rom] Darchdroid v2.6.2 "Wait, This isn't a Nexus One?" | OC'd,Camera,Lights

I guess people can't ready darch knows about a battery - 3d gallery bugs. And asked that people stop posting about them. But yet people continue to do it .

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] rgildoss:
i think people understand that but are trying to help possibly find the problem.

we should never discurage people from trying diffrent things , that helps everyone....
[Hero CDMA Android Development] realmrealm:
When I originally flashed this ROM I had horrible battery life (when charging via pc-usb the charging could hardly keep up with the drain)

I had wiped the battery stats though. (don't know if this had any part in it)

Now it's 2 days later, the battery has fully discharged and charged. Also I did the end button thingy that Darch mentioned (Spare Parts - End Button Behavior - Go to sleep) and although batter life is not awesome, it is a ton better than what I was originally seeing.

Thought I would share what seems to have 80% corrected my battery issues.

Thanks again Darch, this ROM has everything I have been looking for with none of the extra bloat. Your hard work and perseverance show through in it.

-AndyS-
[Hero CDMA Android Development] bikcmp:
Nice job darchstar! Heh, been thinking about making a aosp pancake version, but this rom is fast enough already!

Found a few bugs, take a look at them if you get a chance. I don't remember the other bug ATM, I will remember eventually...

In the camera app, I can't record video (FC), I can't get a logcat ATM because I'm on my hero. I'm sending a bug report, if it helps.

Thanks for the wonderful AOSP-ness!

Jason
[Hero CDMA Android Development] sandboxlove:
unplugged phone a 9am-100%

10am-95%. few texts, phone call, alarms, and a quick google.
[Hero CDMA Android Development] sandboxlove:
dude we're all here for a common goal. we're trying to help, not badger. im offering an option to not include the GL for better battery performance, and the guy a few pages back is offering full logs in regards to the activity of the current GL and its effects.

i think darch appreciates this, hes a good guy
[Hero CDMA Android Development] david279:
hey darch ever thought about adding dropbear to your roms?
[Hero CDMA Android Development] sandboxlove:
1130am-86%

lotsa texts, 3 or 4 phone calls, no web

also, mms send is not working for ME
[Hero CDMA Android Development] sandboxlove:
download logcat from the market lol

it does the same thing as adb
[Hero CDMA Android Development] mrinehart93:
Darch, I'm not sure if this would work nor not, but here goes:

For the messed up 3D gallery couldn't you just put in the fix to revert back to the non-sticking livewallpapers? That fixed all the 3D gallery issues I had when I was doing my ROM.
[Hero CDMA Android Development] feld:
FACEBOOK SYNC FIX

Edit build.prop --

ro.product.name=opal

ro.product.device=sapphire

Uninstall Facebook, reboot, install Facebook. You can now setup sync.
[Hero CDMA Android Development] Jus10o:
Try to just change the line to.

ro.product.name=htc_heroc

Leave device name the same. Then see if it works.
[Hero CDMA Android Development] rgildoss:
anyone try this yet?

If it works can we get a zip file for this or no?
[Hero CDMA Android Development] Jus10o:
Download this

View attachment build.zip

Open in up and put the file thats inside in c:/android-sdk/tools or whatever yours is named and do this

adb remount

adb push build.prop /system/

This should work, without having to make it say our phone is a completely different one
[Hero CDMA Android Development] DevinXtreme:
Doesn't work... My system rebooted after reinstalling Facebook, too. It was a weird reboot, though... All the apps I had open before it crashed were still open.
[Hero CDMA Android Development] Jus10o:
The facebook sync didnt work? Or your phone just doenst work?

Try this one

View attachment build.zip
[Hero CDMA Android Development] DevinXtreme:
Sorry, that wasn't very clear. The Facebook Sync doesn't work.
[Hero CDMA Android Development] Jus10o:
Try the one i just posted above.. If it doesnt work ill just throw up the one that the guy said he had working.
[Hero CDMA Android Development] Sporkman:
hope the update is released today :D need my AOSP
[Hero CDMA Android Development] booyakasha:
Not sure if this has been addressed by anyone yet, but my battery life isn't great......

just kidding :p

but seriously I have noticed a couple more [possible] bugs.

1) i am having a hard time sending texts that are over 160 characters (meaning single messages broken up into two). I can send a single text (<160 characters) without issue but once it goes over 160 it fails to send and I must use Google Voice.

2) I performed a soft reset this morning and lost a lot of my data. My SMS inbox reverted to a couple days back, my home screens were riddled with the "problem loading widget" placeholders and ADWLauncher reverted back to the default (but slowly loaded my dock and little side icons). This could've just been a fluke, haven't done a reset since.

neither of these are major issues or deal breakers, just trying to contribute to the bug extermination efforts.
[Hero CDMA Android Development] DevinXtreme:
The one that you posted. I'd edit it all myself, but I tried with Notepad and it just gave me a headache, so I imagine I need something I don't have :p
[Hero CDMA Android Development] jakejm79:
Try wordpad instead.
[Hero CDMA Android Development] PRGUY85:
Well after two test days I can say my battery life is still not up to par. Yes it has improved a bit but I need to carry my charger everywhere I go for pitstops. I have the Spare Parts Sleep fix and no OC apps.
[Hero CDMA Android Development] duffkitty:
[Rom] Darchdroid v2.6.2 "Wait, This isn't a Nexus One?" | OC'd,Camera,Lights,EXT4,VVM

I was looking at making my own Rom but this has 99% of what I want. I'll definitely use this as my daily when the battery drain is fixed.

I noticed when charging it stopped at 94% and the led turned green. That was weird.

Also is it a pipedream to get Spring apps to work on this? I actually use Sprint tv and Nascar but isn't a deal breaker.

Stellar work I'm amazed with what you've done!

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] jakejm79:
Sprint Apps work fine, they should work on any sprint Android device fine (just make sure your PRI is a sprint one). I have confirmed sprint nav, nascar and TV to work.
[Hero CDMA Android Development] DevinXtreme:
:D

Thank you.

Adding the correct lines to the build.prop file worked perfectly. Facebook Sync is working as it should now. Having Facebook (and whatever else) see my phone as something it is not is (currently) a small, but worth it, price to pay to get this working.

I've attached the working build.prop file in a zip. Just extract the build.prop file to the tools directory of your SDK and do the following from a command line:

adb remount
adb push build.prop /system/

Then uninstall Facebook and then reinstall it. I also restarted my phone, but I'm pretty sure this is unnecessary.
[Hero CDMA Android Development] rgildoss:
great news and thanls for the file ..hope darch can add to next release ...

this is a BIG plus for this ROM
[Hero CDMA Android Development] daryelv:
How did your battery life test turn out?
[Hero CDMA Android Development] kelsonelso:
hmm... google ****s doesn't appear to be loading (i'm missing gmail, market, etc.) since i was coming from a previous version, i didn't flash the gshits per your instructions. should i just go back and do so?
[Hero CDMA Android Development] shippbe:
Great work. But +1 on these issues, and also my Gallery and Nexus live wallpaper are acting up. They're working really slowly and Gallery, it's like it notices I have pictures in a folder, but it won't show the thumbnails like it used to.
[Hero CDMA Android Development] MILH0U5E:
Didn't even notice that the Market was missing... I'm with everyone else on that... no market.
[Hero CDMA Android Development] andyjbmiller:
When you guys flashed, Did you flash the rom then immediatly flash google ****s before booting? This is what has to be done.
[Hero CDMA Android Development] darchstar:
There is a market. It should be in the google ****s

Hmm, thats strange. Gallery should be working perfect

no
[Hero CDMA Android Development] andyriot:
holy **** this rom is fast. my new favorite hands down. thanks so much for your work darch this is amazing. so many awesome features who needs sense?
[Hero CDMA Android Development] dec3ption:
darch...I've been sitting on the android bootscreen for a while (with the skating android)..probably 15 mins now

im watching logcat and every 30-45 seconds this line appears

D/WifiService( 151): ACTION_BATTERY_CHANGED pluggedType: 2

there's nothing in between it..and it have that line about 12 times in a row now
[Hero CDMA Android Development] shippbe:
It worked perfectly on 2.5.1.2, but just to be thorough I did a full wipe this time for 2.6. Could it be something with the OpenGL?

Edit: Nevermind. This is really odd. After I changed my font to Zune in Metamorph and rebooted, my Gallery is working fine. Still having problems with the Nexus live wallpaper, but that's no big deal.
[Hero CDMA Android Development] MILH0U5E:
I came from the previous version... thought flashing ****s wasn't needed if upgrading.
[Hero CDMA Android Development] darchstar:
the backuptool.sh is syntax specific, maybe my last rom had a different modversion than what this one has (i changed it so that the DSupdater can work for future updates)
[Hero CDMA Android Development] phenicks:
Please excuse my noob, does this mean you are recommending we flash the gshits even if upgrading from 2.5?
[Hero CDMA Android Development] marcusva79:
Gallery I get the same thing. It wants to notice the pictures for a split second but then decides to go slow.
[Hero CDMA Android Development] darchstar:
I guess so. I didnt aniticpate the modversions being different.

ok, maybe its a remnant of what i was doing earlier in which al lwps would work, but there was a slight decrease in openGL productivity (35 fps >19 fps). But i highly doubt it cuz its working perfect for me after a fresh flash
[Hero CDMA Android Development] kelsonelso:
gallery fail here as well. :(
[Hero CDMA Android Development] oak25:
would it make any difference if i installed the rom... reboot the rom... then install google ****s? the boot again... ?
[Hero CDMA Android Development] dec3ption:
Okay so I'm up and running, and in addition to the GPS, Youtube, and Facebook issues..I'm having a camera issue :eek:

The camera works and takes pictures, but the zoom doesn't work :(
[Hero CDMA Android Development] alexthearmo:
super fast...but I'm getting a force close on Calendar and Calendar Storage. Really annoying. Other than that....this is a super fast, smooth rom. Hope to see this issue fixed.
[Hero CDMA Android Development] Brutus2TheMax:
I would also like this
[Hero CDMA Android Development] MILH0U5E:
Ok, did a Nandroid back to 2.5 (just to be safe) then reflashed 2.6 and then ****s... Everything is there now...

YouTube still only plays audio, no video; GPS still isn't a lock; live wallpaper setting mode doesn't appear to work.
[Hero CDMA Android Development] fixxxer2OO8:
milhouse quit complaining about everything be happy with what youve got
[Hero CDMA Android Development] daryelv:
Cool, I'll try out the changes you did tonight (unless there's a new release) and give it a try to see if it wasn't a fluke.

-Daryel
[Hero CDMA Android Development] Jus10o:
Try to type this into command prompt

adb remount

adb shell

rm /dev/mtd/mtd1.img

Then try to reflash your recovery image

cd /sdcard/

flash_image recovery NameOfRecovery.img
[Hero CDMA Android Development] feld:
Facebook Sync, revisited

I can confirm that facebook sync does not work with

ro.product.name=htc_heroc

ro.product.device=heroc

I'm not sure why. It does work with my opal/sapphire ones.

My theory is that it won't work because we're blacklisted -- we're supposed to be running SenseUI which has its own facebook sync and they don't want it doubled up.

Because we're simply aiming to be AOSP it shouldn't matter what we use as long as the phone we mask as is also AOSP.

Make sense?
[Hero CDMA Android Development] rgildoss:
care to explain abit?

someone a couple post back said i was working , did i miss what that person was running as a ROM ...i was under the impression that he was running this ROM ...
[Hero CDMA Android Development] darchstar:
can someone get me the facebook apk. i can try to see what i can do to get it to work if thats all thats making it not work
[Hero CDMA Android Development] DJAscendance:
had this problem as well last night... I had to RUU, I tried everything.
[Hero CDMA Android Development] rgildoss:
can we confirm that this is working for this ROM ( DARCH AOSP ) ?

there is even a zip file attached
[Hero CDMA Android Development] DevinXtreme:
The one I posted DOES work, but it makes the Facebook app think that the phone ISN'T and HTC Hero...
[Hero CDMA Android Development] DevinXtreme:
Yeah, this DOES work. I am on Darchdroid 2.6.2. This does work, but it makes the Facebook App think that the phone is something it isn't.
[Hero CDMA Android Development] rgildoss:
oh ic ..

is that a big issue?

or something we can live with ?
[Hero CDMA Android Development] darchstar:
anyone???? all you guys are doing is complaining, and not supplying :)
[Hero CDMA Android Development] rgildoss:
lol ....

looking for it now
[Hero CDMA Android Development] DevinXtreme:
This is the only file I can find...
[Hero CDMA Android Development] boredmug:
here ya go.
[Hero CDMA Android Development] DR.mobbfigga:
Am i the only person who's hero has balls of steel, I mean I've never had problems with flASHing roms, recovery images, no wifi, no bt, no audio no issues of any kind with it, My hero loves being over OC'd, It runs the best when its OC'd especially with darch's latest, :D
[Hero CDMA Android Development] rgildoss:
only one i have is

but im still looking
[Hero CDMA Android Development] DevinXtreme:
I haven't ran into any issues, but it is only a temporary fix.
[Hero CDMA Android Development] dec3ption:
here's the facebook.apk from FreshToast 2.1
[Hero CDMA Android Development] DJAscendance:
http://www.filefront.com/16547897/com.facebook.katana.apk
[Hero CDMA Android Development] darchstar:
oh thank you. this is a very easy fix. someone mind going into the build.prop and telling me what the ro.propduct.name and ro.product.device is on this rom?
[Hero CDMA Android Development] Jus10o:
name= cyanogen_heroc

device= heroc
[Hero CDMA Android Development] darchstar:
nah, i need the versions someone would install from the market. but anyways, i have it working, if someone could give me the info i saked for in my last post
[Hero CDMA Android Development] DJAscendance:
I gave you a link...

com.facebook.katana.apk
[Hero CDMA Android Development] duffkitty:
[Rom] Darchdroid v2.6.2 "Wait, This isn't a Nexus One?" | OC'd,Camera,Lights,EXT4,VVM

Strange... Though mine still says Flipz PRI but I guess I should just try to get my msl to reset it. It wasn't connecting on either. Maybe I'll try when I flash this after it gets an update.

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] darchstar:
ok, here you guys go, sync should work with this
[Hero CDMA Android Development] darchstar:
I know, i was replying to him that the one from an htc sensui rom wont work for me, and that i'd need the one from the market, i didn't say no one gave it to me. check my last post and test it to see if it fixed it. my next release wont need this hack to get it to work, but for the time being, use that
[Hero CDMA Android Development] DevinXtreme:
C:\android\tools>adb install com.facebook.katana.apk
951 KB/s (1500884 bytes in 1.541s)
pkg: /data/local/tmp/com.facebook.katana.apk
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

That's new to me :/
[Hero CDMA Android Development] rgildoss:
Darch ..un-install first then install this one or dont matter?
[Hero CDMA Android Development] DJAscendance:
open the apk with estrongs or any other file explorer
[Hero CDMA Android Development] Jus10o:
If the files are the same then it wont matter.. If they arent then youll have 2 facebook apps..

And for the other guy, try to push it to /system/app

adb push facebook.apk /system/app
[Hero CDMA Android Development] DevinXtreme:
Tried it, still failed. I'm gonna try one more thing. I might not have it totally uninstalled. Something similar to this happened to me before.
[Hero CDMA Android Development] darchstar:
try wiping data, and removing the old apk
[Hero CDMA Android Development] feld:
doesnt work with estrongs either.

Better off just waiting for Darchs next release since the regular one will work anyway.
[Hero CDMA Android Development] DevinXtreme:
Something that just got me a little worried... that apk I gave you was from my phone. It doesn't have my Facebook info in it, does it?

You see, I uninstalled the app then pushed it to my /system/app and it still had me logged in. Kind of concerning D:
[Hero CDMA Android Development] Jus10o:
Has anyone tried pushing the file instead of installing it?
[Hero CDMA Android Development] darchstar:
all data is stored in /data/data, not in the apk. the data that your phone isn't compatible may still be lingering in the cache, which is the reason you may need to wipe
[Hero CDMA Android Development] Decad3nce:
The actual .apk doesn't hold your data, your data is saved in your cache on your phone.

Like every other internet device, ever.
[Hero CDMA Android Development] DevinXtreme:
Hahaha :)

I realize this now. I just had a panic moment and didn't think straight. Thanks :p

EDIT: Alright, got it completely reinstalled, working with the default build.prop from this ROM, and the .apk that Darch just posted fixes the sync issue. I abd pushed it to /system/app and it ran just fine. Thanks, darch.
[Hero CDMA Android Development] darchstar:
EDIT: nvm, thank u DevinXtreme
[Hero CDMA Android Development] thematrixkid17:
Hey, I know darch has been bombarded with bug reports, but I'm just going to throw one more (very minor) one out here:

When choosing to use Google Voice as voicemail in the settings menu, it doesn't change what happens when I dial (1) in the dialer. I end up calling Virgin Mobile..