yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] dallas.maverick:
I have done this countless times, and here is my suggestion not just to you but to every member on this great forum, anytime you get into a boot loop running any update (lets say for example you got into a boot loop with Stericson's music update), before you wipe, go ahead and apply the update.zip from your build you were originally on before the problem. The reason you get into loops is because some files are missing from the location they are expected to be in, so applying the ROM update.zip will most likely fix it up for you. This way, you will save a hell lot of time that you will have to do to get your customizations/settings back.

Also, I recommend folks to get familiar with adb (still lots of people don't use it). It will save a lot of headache and make things easier for you in future. Get the latest recovery that cyanogen has posted, using that, you can do a backup as well as restore from the recovery menu which is great. Always perform backup before you plan on flashing something, that way, you can just quickly go back to where you started.
[G1 Android Development] Stericson:
I need just a little bit more...you cut off some at the top...I need to know what caused the error....

Stericson
[G1 Android Development] dallas.maverick:
Apologize, hit the character limit on the earlier post, here is the complete errors before that:

07-05 21:10:47.369: ERROR/SystemServer(139): Failure starting Audio Service

07-05 21:10:47.369: ERROR/SystemServer(139): java.lang.ClassCastException: android.widget.ImageView

07-05 21:10:47.369: ERROR/SystemServer(139): at android.view.VolumePanel.<init>(VolumePanel.java:112)

07-05 21:10:47.369: ERROR/SystemServer(139): at android.media.AudioService.<init>(AudioService.java:182)

07-05 21:10:47.369: ERROR/SystemServer(139): at com.android.server.ServerThread.run(SystemServer.java:295)

07-05 21:10:47.369: ERROR/AndroidRuntime(139): Crash logging skipped, no checkin service

07-05 21:10:47.389: ERROR/SystemServer(139): Failure starting HeadsetObserver

07-05 21:10:47.389: ERROR/SystemServer(139): java.lang.NullPointerException

07-05 21:10:47.389: ERROR/SystemServer(139): at android.media.AudioManager.setRouting(AudioManager.java:867)

07-05 21:10:47.389: ERROR/SystemServer(139): at android.media.AudioManager.setWiredHeadsetOn(AudioManager.java:719)

07-05 21:10:47.389: ERROR/SystemServer(139): at com.android.server.HeadsetObserver.updateAudioRoute(HeadsetObserver.java:132)

07-05 21:10:47.389: ERROR/SystemServer(139): at com.android.server.HeadsetObserver.update(HeadsetObserver.java:108)

07-05 21:10:47.389: ERROR/SystemServer(139): at com.android.server.HeadsetObserver.init(HeadsetObserver.java:88)

07-05 21:10:47.389: ERROR/SystemServer(139): at com.android.server.HeadsetObserver.<init>(HeadsetObserver.java:53)

07-05 21:10:47.389: ERROR/SystemServer(139): at com.android.server.ServerThread.run(SystemServer.java:303)

07-05 21:10:47.389: ERROR/AndroidRuntime(139): Crash logging skipped, no checkin service

07-05 21:10:47.759: ERROR/SystemServer(139): Failure installing status bar icons

07-05 21:10:47.759: ERROR/SystemServer(139): java.lang.IllegalArgumentException: Unknown pattern character - 'i'

07-05 21:10:47.759: ERROR/SystemServer(139): at java.text.SimpleDateFormat.validateFormat(SimpleDateFormat.java:790)

07-05 21:10:47.759: ERROR/SystemServer(139): at java.text.SimpleDateFormat.validatePattern(SimpleDateFormat.java:832)

07-05 21:10:47.759: ERROR/SystemServer(139): at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:410)

07-05 21:10:47.759: ERROR/SystemServer(139): at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:372)

07-05 21:10:47.759: ERROR/SystemServer(139): at android.text.format.DateFormat.getTimeFormat(DateFormat.java:259)

07-05 21:10:47.759: ERROR/SystemServer(139): at com.android.server.status.StatusBarPolicy.updateClock(StatusBarPolicy.java:374)

07-05 21:10:47.759: ERROR/SystemServer(139): at com.android.server.status.StatusBarPolicy.<init>(StatusBarPolicy.java:265)

07-05 21:10:47.759: ERROR/SystemServer(139): at com.android.server.status.StatusBarPolicy.installIcons(StatusBarPolicy.java:369)

07-05 21:10:47.759: ERROR/SystemServer(139): at com.android.server.ServerThread.run(SystemServer.java:317)

07-05 21:10:47.779: ERROR/AndroidRuntime(139): Crash logging skipped, no checkin service
[G1 Android Development] Stericson:
Lol, I need farther before that...I need what occured BEFORE errors started occuring...That will show what caused the errors....Also, btw, I can tell you this has to do with much more then my music mod...

Just a bit more please :)

Stericson
[G1 Android Development] marshallladd:
Works perfect for me. You are the man.
[G1 Android Development] ACTPOHABT:
Uninstalling

Works perfectly on CM 3.6.2. Just out of curiosity: how do I uninstall it?
[G1 Android Development] Stericson:
in a cmd prompt with phone plugged in:

adb remount

adb shell

cd /system/app

rm -r HtcMusic.apk

exit
[G1 Android Development] xidominicanoix:
Was looking through the logcat while running HTC Music app and saw that I kept getting this while flipping through songs:

E/MusicUtils( 6326): getArtworkQuickWithWrite FileNotFoundException
D/MusicUtils( 6326): regenerateArtwork

Will the Exception cause any problems?
[G1 Android Development] kockroach:
The app is playing my files just fine, but when I select "properties" from the menu, the program force closes and restarts. Anyone else seeing this? This is the CM 3.6.2 version.
[G1 Android Development] Stericson:
Ahh yep I can confirm this bug, must have broke it just recently, I'll fix it and post the update...

Thanks,

Stericson
[G1 Android Development] kockroach:
Good to know...glad it wasn't just me on that bug.

Thanks!

Oh, by the way, what format do album art images need to be? Will "folder.jpg" or "cover.jpg" work? I don't want to add the art into the tag...rather have just one copy of the image for all songs in an album.
[G1 Android Development] beagz:
Cyanogen broke framework.jar with 3.6.3 update. Possible for you to fix?

Thanks.
[G1 Android Development] Stericson:
I'll fix it..... Give me a day.....

Stericson
[G1 Android Development] marshallladd:
He seems to be doing that a lot with these new builds and I keep forgetting to check here first. Thank god for nandroid backups.
[G1 Android Development] ACTPOHABT:
Do I do that in Windows? Or in Terminal on the phone?
[G1 Android Development] B-man007:
Any time you see abd = in the code, it requires an adb binary (adb.exe) which means it will be on your computer. Read the "Noobs Guide to abd" to learn how to use it if you haven't gotten ADB set up
[G1 Android Development] marshallladd:
That command line is for windows. Anytime you see "adb" it will be in windows. To translate that to the terminal try this

$ SU

# rm -r /system/app/HtcMusic.apk

# reboot

Final reboot is just something I do after making any changes through terminal or adb. If you are getting a message saying you can't delete HtcMusic.apk or access denied, try typing

# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

# rm -r /system/app/HtcMusic.apk

# reboot
[G1 Android Development] kockroach:
Is it safe to assume, that the current version for Cyanogen's 3.6.2 will not work with the new 3.6.5? Just asking since there were warnings in the past about using a CM version on ROM updates after that point.
[G1 Android Development] beagz:
Correct. Does not.work YET.
[G1 Android Development] kockroach:
Thanks beagz! I figured that might have been the case....but it never hurts to ask.
[G1 Android Development] bbuchacher:
For the 6.5 probelem with cyanogens rom

what if you push all of the files yourself and not flash? has anyone tried this yet?

/edit 10:03pm gunna goahead and try an see what happens

sighh.... booooot looooop
[G1 Android Development] Stericson:
Just bear with me guys I will get an update out, couple things slowing me down....Lost my job recently and have been looking for a replacement, understand I do this on my free time and this doesnt pay the bills :)

Stericson
[G1 Android Development] beagz:
I have the utmost confidence that you will get this done. I really appreciate your work on this. I know it can be frustrating with so many updates that change things.

Thanks again.

Congrats!
[G1 Android Development] Stericson:
Update for Cyanogens 3.6.5 has been released.....

Same link....

3.6.5

Thanks for the patience guys...

Stericson
[G1 Android Development] bloopblah:
nice. gonna flash it now.
[G1 Android Development] th4r:
Nice work!

But its FC's on settings..
[G1 Android Development] MrADeveci:
Yep, can confirm flash went well ........... but it Force Closes when you click 'Properties' :)
[G1 Android Development] innerspace:
HTC app works w/ HERO 1.4.5, think I'll hold off...

HTC app works w/ HERO 1.4.5, think I'll hold off on fiddling around, happy where I'm at. Guess its a trade-off situation, get your HTC music app or get your reboot option/dragging notification bar on lock-screen.

I choose music! :D
[G1 Android Development] giantcrazy:
I updated to Cyanogen's 3.6.5 yesterday without a hitch, including the Hero 1.4.5 theme. Just tried updating the HTC music player; phone will start up, but the phone process (com.android.phone) keeps crashing, rendering the phone unusable.

Did I miss anything?
[G1 Android Development] Rinja:
very nice i'll put this on my sisters phone she likes it
[G1 Android Development] xcallibur:
It's working for me on Cayan 3.4.6...

I pushed through abd though, kinda scurred of the update... no hard feelings...:D

Rebooted itself when I raised the volume as well...:eek: looking forward to update.

OH and can the actual HTC Music widget be ported? this one is the copy of the original music widget...
[G1 Android Development] Stericson:
This isnt HTC's framework.jar, I incorporated what I needed to get this to work into googles framework.
[G1 Android Development] Stericson:
I am working on the music widget and I am working to resolve the volume issue as well.

Stericson
[G1 Android Development] xcallibur:
Shweeet... you the man bro!

Let me know if you want testers for it... I'm down:cool::cool::cool:
[G1 Android Development] cyanogen:
Oh, awesome. I am gonna hit you up tomorrow when I'm sober then :eek:
[G1 Android Development] Stericson:
I always release beta to followers on Twitter.....

@Cyanogen Cool, look forward to it....

@All: Volume bug is fixed update in just a few moments...

Stericson
[G1 Android Development] ninoedgar:
HTC Music is working the dudes build... i put the files in one his build and did a wipe and install and is working... the only problem is the volume issue.. but you are already working on it... =D
[G1 Android Development] Stericson:
Volume issue resolved.

Heres the link: http://www.mediafire.com/?4mdixjzd2gt

Also, very happy to here that this is working on so many builds, thats awesome.

Stericson
[G1 Android Development] cidica:
ok just took the files needed and added them to my cyan 3.5 build and resigned it. Just installed it and so far it's working without any force closes at all. still playing with it but so far so good. I loved htc music player it's what should of been in android to begin with.
[G1 Android Development] mmafighter077:
Do you have a theme installed?
[G1 Android Development] Stericson:
If you push the files by themselves it will not interfere with any theme...

Stericson
[G1 Android Development] mmafighter077:
OKay I know how to use adb but I dont know the commands to push these files and where to?

Do I need to extract them b4 pushing them?

Thanks a lot.
[G1 Android Development] cidica:
No theme right this minute I just did a clean install after I added the files to cyan's new 3.5 rom. I do have hero I'm removing the music file from that right now and I'm gonna resign it and install it and it should be ok.
[G1 Android Development] Stericson:
adb push file Whereto

I gave where you need to push each file on the first page...you will need to extract them as well.

Stericson
[G1 Android Development] cidica:
Quick question. same files to move over as before? or did you change something else to fix the bootloop issue? Just asking cause if not I'm gonna readd the files and resign my cyan rom
[G1 Android Development] Stericson:
Just push over framework.jar Thats where the problem was.

Stericson
[G1 Android Development] cidica:
sweetness thank you :)
[G1 Android Development] AGunz82:
We're gonna have a new Hero by the time your done buddy. You are a genius.
[G1 Android Development] Stericson:
JF's a genius, I am just an Aspiring Genius.

Remember this would not be possible without his work. He worked hard on this tool for well over a month.

Stericson
[G1 Android Development] ultra spikey:
FC on Properties for me as well.

I know you said this was made specifically for CM3.6.5, but I just want to make sure...this update.zip doesnt replace any of Cyanogens files right? So we don't lose any of his tweaks/features???
[G1 Android Development] cl2eep:
Will the update for Cyanogen's need a wipe? Is the framework.jar still being changed with this update? Last time I tried to install this on my Cyanogen build it caused way too many issues in other areas to be worth keeping. I've finally got 3.6.5 right where I want it and don't want to rock the boat if I can help it, but would love the Hero music app, if it didn't mean sacrificing the stablity of my current set-up. Is this too much to hope for, or will this update.zip accomplish this?
[G1 Android Development] bbuchacher:
Trying on 3.6.5 now
[G1 Android Development] bbuchacher:
CONFIRMED CYAN 3.6.5

You dont lose anything when you flash. Notification works fine. No FC yet.
[G1 Android Development] marshallladd:
Works on cyan 3.6.5 for me as well with custom beagz widget. No problems.

If you have a custom Widget from beagz, push all of his files except framework.jar. Extract framework.jar from stericson's newest update and push that version. 3.6.5 with custom widget should work then. Worked for me.
[G1 Android Development] RamZ19:
hey, i have a question cause i been fiddlein around with the zip. download you provided us with. i have the official ota update and unfortunately i dont have root, ive noticed that all widgets and apk's can be installed to G1 through appmanager.. once downloaded, widgets force close automatically when you try to open and for the apps such as the music player, icon shows and everything, but it says music cant be installed to this phone.

is there any way sumone can probably convert these to apps that can be downloaded to a non rooted g1?

might be a little to much to ask for lol, but might not be such a bad idea,

plus it will def, cheer up sum of us less fortunate non root users.

any answer would be highly appreciated.
[G1 Android Development] ultra spikey:
Anyone know the answer to this?
[G1 Android Development] beagz:
As far as I can tell it doesn't. But then I just pushed framework.jar since cyanogen already has the other files in his build except for the easopen one.
[G1 Android Development] cl2eep:
What about those of us running a theme on Cyanogen's? Will we lose our custom music widget? Which files from the theme should we repush to get it back.

Edit: Confirmed to be working like a charm on Cyanogen 3.6.5 with Prodigal Sun 2.8.3. It leaves the music widget alone since the update does not remove the old music app. I personally like having both, since if I'm listening to shuffle on my headphones, I don't care what the app playing them looks like, I just want it to work with no errors. Having both gives you the best of both worlds.

Great update, thanks!
[G1 Android Development] beagz:
If you mean the one with the theme it is music.all if you mean the HTC music player them widget is included in HtcMusic.apk
[G1 Android Development] cjkholt:
audio gone

Whenever i get a call, text, or email while listening to music while head phones are in, my audio completely goes away, on everything, i have to reboot to get audio working again, any ideas?
[G1 Android Development] Stericson:
I will look into this audio problem.

Also, For those having FC issues, I am aware of the properties menu item causing force closes.

This has never been quite compatible with the hero theme, The creator of the hero theme would need to verify compatibility...and would be the one to make it compatible...

Stericson
[G1 Android Development] IOmega666:
It'd be possible to have SMS Widget ?
[G1 Android Development] dav1boy:
??

double post
[G1 Android Development] dav1boy:
woohoo

FYI everyone. this does not work with the oreo shorty theme. i reflashed back to the original 3.6.5 rom and flashed the music app and its working fine. does fc in properties but oh well. the touchflo type scolling on the bottom is awesome and the curtains pop up like it would on my old fuze. good stuff stericson!
[G1 Android Development] daveid:
Not sure if it is intentional, but this version of the music player does not respond to double pressing the headset button to skip tracks, kind of makes it hard to use with the phone in my pocket. Not sure if this was reported, of if it is simply not a feature that is supported within the HTC Music player.
[G1 Android Development] drpfenderson:
So - maybe I'm totally overlooking something, or else the option just doesn't exist in HTCMusic...but:

How in the heck do you add a single artist or album to an already-playing playlist? You have that option in the default music client with the longpress menu. But I can't seem to find that in HTCMusic. Seems like basic functionality...so that I can add multiple artists to one playlist on the fly.

Is this just me?
[G1 Android Development] ravens0ng:
Thanks so much for this info. The residual stuff was keeping my wired headset button from working. A dozen folk have posted how to remove the app, but this is the first one that actually gets it done.

Also thanks to Stericson and JF for making this awesomeness possible.
[G1 Android Development] sputnik99:
I can confirm the force close on properties, running on cyanogen 3.6.5 without any themes. The rest of the app works flawlessly.
[G1 Android Development] johnphamiliar:
not working

i tried this and after i install the HtcMusic (update.zip)

the damn phone turned on with the android start up keep restarting it self

im running

1.5

62.50S.20.17H_2.22.19.26I

2.6.29-cm

shade@toxygene )

cyanogenMod-3.6.5

dream_devphone-userdebug 1.5 CRB43 1148830 test-keys

recovery is cyanogen 1.3.1

help me??
[G1 Android Development] poe11371:
Bug report:

Running cm365 with palm pre theme getting force close (processcomhtcmusic) when going into any menu or list just about anything besides play music.

Anyone else having this issue?
[G1 Android Development] beagz:
which one is giving you problems. I had the same issue and was able to fix it. I can repack as an update and it will work. (except for the known properties bug)
[G1 Android Development] beagz:
Go to playlists. Press Tap to add a playlist. Press New Playlist. Press Menu. Press Add songs. Pick your selections!!
[G1 Android Development] beagz:
I can fix it for you. Please let me know which version you want (widget skin type) and I will post as an update.zip type file.
[G1 Android Development] B-man007:
Do you think you can get it to work with the Android (+) theme ported to 3.6.5? If so, I'd love to have it along with a black and light blue widget
[G1 Android Development] beagz:
do you want it to replace the default Music player?
[G1 Android Development] B-man007:
Yes, I really wouldn't use the default one after having tried this one lol. If you can't incorporate it into the update.zip, I can remove it myself through ADB/Terminal
[G1 Android Development] beagz:
Like that?

http://www.4shared.com/file/117929706/67874d1/htcaplus.html

rename update.zip and flash for full function (sans properties) in cyan3.6.5. otherwise extract Music.apk and push.
[G1 Android Development] B-man007:
wow thanks a whole lot man

EDIT:

I/ActivityManager( 131): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x10200000 comp={com.htc.music/com.htc.music.HtcMusic} }
I/ActivityManager( 131): Start proc com.htc.music for activity com.htc.music/.HtcMusic: pid=592 uid=10125 gids={3003}
W/dalvikvm( 592): Refusing to reopen boot DEX '/system/framework/com.htc.framework.jar'
D/dalvikvm( 592): GC freed 2174 objects / 156504 bytes in 112ms
E/dalvikvm( 592): Could not find method android.provider.DrmStore.getDrmConstraint, referenced from method com.htc.music.MusicUtils.getDrmStatus
W/dalvikvm( 592): VFY: unable to resolve static method 404: Landroid/provider/DrmStore;.getDrmConstraint (Landroid/content/ContentResolver;Landroid/net/Uri;I)Landroid/provider/DrmStore$DrmConstraint;
W/dalvikvm( 592): VFY: rejecting opcode 0x71 at 0x00aa
W/dalvikvm( 592): VFY: rejected Lcom/htc/music/MusicUtils;.getDrmStatus (Landroid/content/Context;Landroid/net/Uri;)I
W/dalvikvm( 592): Verifier rejected class Lcom/htc/music/MusicUtils;
D/AndroidRuntime( 592): Shutting down VM
W/dalvikvm( 592): threadid=3: thread exiting with uncaught exception (group=0x4000fe70)
E/AndroidRuntime( 592): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 592): java.lang.VerifyError: com.htc.music.MusicUtils
E/AndroidRuntime( 592):	at com.htc.music.HtcMusic.onStart(HtcMusic.java:338)
E/AndroidRuntime( 592):	at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1205)
E/AndroidRuntime( 592):	at android.app.Activity.performStart(Activity.java:3490)
E/AndroidRuntime( 592):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2240)
E/AndroidRuntime( 592):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
E/AndroidRuntime( 592):	at android.app.ActivityThread.access$1800(ActivityThread.java:112)
E/AndroidRuntime( 592):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
E/AndroidRuntime( 592):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 592):	at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 592):	at android.app.ActivityThread.main(ActivityThread.java:3948)
E/AndroidRuntime( 592):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 592):	at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 592):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime( 592):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime( 592):	at dalvik.system.NativeStart.main(Native Method)
I/Process ( 131): Sending signal. PID: 592 SIG: 3
I/dalvikvm( 592): threadid=7: reacting to signal 3
I/dalvikvm( 592): Wrote stack trace to '/data/anr/traces.txt'

It still crashes on the Android + theme. Is it possible to fix or will it be to much work? (P.S i love how the widget looks, its simply amazing)
[G1 Android Development] DAKIDD236:
did anyone try the 3.6.5 update on 3.6.6??
[G1 Android Development] JeffGale:
flashing as we speak, i'll report back.

UPDATE: I doubt it should take this long, I believe im looping.

I took one for the team update will not work on the new cyanogen. :(
[G1 Android Development] beagz:
Ok, should work on standard 3.6.5 unless you click on properties. Must be something in the theme. I will look at it.
[G1 Android Development] B-man007:
Thanks man i really appreciate it. You had me hooked from the moment you posted this app as the standard update.zip

:P
[G1 Android Development] vihil:
is it me or is it no longer possible to Delete a track from the Menu (or anywhere else from within the app)? i really liked that feature from the standard g1 music app...
[G1 Android Development] metallicant:
Does NOT work on Cyan's newest build. After flashing the music.zip (update.zip), I rebooted the phone and it stayed on the G1 splash screen and wouldn't go any further. I had to do a complete wipe and re-flash of the newest build to get my phone up and running again.
[G1 Android Development] TailsNeon556:
works awesome on Dude's 1.3RC2 :cool: