yashsingh1/xdaforums huggingface dataset:
[MDA III, XDA III, PDA2k, 9090 ROM Development] xuandung11a2:
I'm learning rom building.

I used Rommaster.exe to extract XIP.BIN from nk.nba.But nothing (had not xip.bin-no thing).I made Bat file with code:

RomMaster.exe -w 5 -b 0x001C0080 nk.nba -x -o xip.bin >nul
mkdir XIP
dumprom xip.bin -5 -d XIP >nul

But only XIP Folder was made.In XIP folder- no thing.:(:(:(

=>>>Please help me how to extract XIP.BIN From nk.nba???:(

Thanks a lot.
[MDA III, XDA III, PDA2k, 9090 ROM Development] xuandung11a2:
Please help me how to extract XIP.BIN From nk.nba???
[MDA III, XDA III, PDA2k, 9090 ROM Development] xuandung11a2:
I made XIP.BIN successfully.:D:D:D:D:D:D
[Touch HD General] veehexx:
having had far to many issues with 'cooked' roms (laggy, loss of features from running the latest and greatest), are there any ROMs out there that are 'release' spec ready?

what i mean by 'release' spec is:

- proved reliable drivers (data connections works 100%, without workarounds)

- reliable software builds (eg, no software thats buggy or loss of features)

- slick and fast (Duttys' Leo R6 (buggy) and Orange 1.59 (old versions) ROMs are both very fast)

wm 6.1 or 6.5 isnt an issue, i'd *like* manila 2.5/2.6 but i dont beleive there is a reliable released build of it yet.

the OrangeUK 1.59 rom i've found to be the best at the moment - quick and no laggyness, 100% functional, and 'full fat' with AS, office, and all the usual apps.

i'd cook my own rom, but i wouldnt have a clue where to get resources from, or even how to cook them into a rom.
[Touch HD General] maniatico:
well there r many guies that u can follow to cook ur own rom
[Hero, G2 Touch Android Development] avs333:
I am not an application programmer but sound is very important for me.

I didn't find any flac players for Android, so I wrote a simple program myself.

The interface is rather ascetic because I'm not a java programmer.

The program plays any FLAC, APE or uncompressed WAV file, or all such files in a directory.

Hope somebody will contact me and write a really good flac player for Android.

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

[Updated on November 24]

Here's the completely rewritten version.

It's much more stable and smooth, and has a better interface.

No need to use command line to set the required permissions, it'll call for the root access if it fails to open the sound device in read-write mode.

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

[Updated on December 31]

(1) At last, found a way how to make the interface indeed responsive!

(2) Added WavPack (*.wv) and MusePack (*.mpc) support.

(3) Added a simple Settings menu to change font size and overall appearance.

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

[Updated on January 30]

(1) CUE files support

(2) Playlists support

See post http://xdaforums.com/showthread.php?p=5499903#post5499903 for details.

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

[Updated on February 12]

(1) ROOT ACCESS IS NOT REQUIRED ANYMORE

(2) On request, playback of lossy files supported in Android

See post http://xdaforums.com/showthread.php?p=5603599#post5603599 for details.

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

[Updated on February 25]

(1) Added support of non-rooted Android 2.0 & 2.1 devices

(2) Improved interface (now shows track time/progress)

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

[Updated on March 11]

(1) Added support of Apple Lossless Audio Codec (aka ALAC)

(2) Added auto-bookmarks so that you can exit and then restart exactly where you were playing before

(3) New icon and buttons (thanks to the people from 4pda.ru!)

(Minor update on March 12) Fixed a bug not flushing the buffer at the start of each track; auto-bookmarks as a user option.

(Minor update on March 14) Fixed sdcard write permissions in manifest

Please backup and uninstall the previous version before installing this one, it uses different SDK/NDK setup!!!

The sources are now available via SVN at http://code.google.com/p/andless.
[Hero, G2 Touch Android Development] avs333:
It plays either FLAC or APE, both lossless and lossy.

Unless you're deaf, you'll hear the difference if you get proper headphones.
[Hero, G2 Touch Android Development] Indiana Jones:
Awesome

awesome stuff ive been looking all over the place for something like this. now i have to figure out how to root my hero . these commands give me the chills. you should have this on the marketplace :)

before we get into flac/lossy wars. what's important is that you don't have to convert any flacs to mp3 in order to put em on your phone. just drop and go. very helpful. that being said i dont think you can hear a diff. id have to own some grado headphones to test it out. i imagine the people who are getting headphone jack problems will cringe when they see this . good work ! thanks !
[Hero, G2 Touch Android Development] spamianspoon:
Fantastic! Thank you so much for this!

:):):):):):):):):):):):):)
[Hero, G2 Touch Android Development] naTTan:
Can this made indefinitely part of the rom?
[Hero, G2 Touch Android Development] avs333:
Kruton has written some patches which are currently included in cyanogen ROMs for G1. I tried to compile them for Hero, no success so far: the library he uses (libFLAC) seems to have certain bugs and won't reconstruct original encoded sound. On the other hand, this program uses the decoder from Rockbox project which I'd recognise as the greatest code ever written for mobile devices (including their ROMs for ipod etc). It's halfway in assembly language, and decodes flac/ape files EXACTLY as they were encoded.
[Hero, G2 Touch Android Development] naTTan:
Ok sorry is there a possibility that we should ask modaco to implement this into his roms from now on? There won't be much loss is speed right? And it's a good gain to play some other format of sounds.
[Hero, G2 Touch Android Development] avs333:
Personnaly I'd be delighted if Modaco inserts the flac code in his ROMs! However given that the hero sources just appeared on the scene, he might have more important things right now (e.g. to port 2.6.29 kernel, etc).
[Hero, G2 Touch Android Development] billybobjoejr:
Thank you very much for this!!

I would also love to see this make it in to modaco ROMS
[Hero, G2 Touch Android Development] kRutOn:
I think the only reason I used libFLAC is because of the licensing. There's not much chance of getting the LGPL-licensed ffmpeg library included in Android. However, they are already using the Xiph License which is what libFLAC uses.

Who knows. Maybe they're actually going to include ffmpeg in the future and we'll have FLAC at that point!
[Hero, G2 Touch Android Development] komteks:
Once installed the following are the commands I had to type so I could get this program to work on my Sprint CDMA HTC Hero. Do not copy the parenthesis.

1. "cd C:\android-sdk-windows\tools"

2. "adb shell"

3. $ "su"

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

# "chmod 7777 /dev/msm_pcm_out"
[Hero, G2 Touch Android Development] kendong2:
there is no need to remount /system rw. also you should not do a "chmod 7777" unless you know what you are doing. the correct command here is "chmod o+rw /dev/msm_pcm_out". last but not least, if you remount /system rw you should remount it ro after you are done...
[Hero, G2 Touch Android Development] komteks:
C:\android-sdk-windows\tools>adb shell chmod o+rw /dev/msm_pcm_out

Bad mode

C:\android-sdk-windows\tools>adb shell

$ su

su

# chmod o+rw /dev/msm_pcm_out

chmod o+rw /dev/msm_pcm_out

Bad mode

#

What am I missing?
[Hero, G2 Touch Android Development] kendong2:
sorry, can't help you there:
[Hero, G2 Touch Android Development] avs333:
This is the point I truly don't understand.

The best people like you have done quite a work to improve Android, but NOBODY seems to care because of the licenses of some obscure kind!

The code you wrote isn't even included in the latest sources. I wish I knew why the developers are so blatantly ignored...

Anyway I thank you for your greatest efforts, and hope that one day we'll have a working platform which plays all formats imaginable.
[Hero, G2 Touch Android Development] avs333:
Kinda strange. Bad mode, hmmm. Sounds like you have chmod that doesn't understand normal linux language, try "chmod 0666 /dev/msm_pcm_out" then.

As the matter of fact, what ROM do you use? Is it really routed?
[Hero, G2 Touch Android Development] secretfile:
avs333 this is brilliant i am interested in making more features for this program like playlist, genre sorting etc, i would help you in developing it :)
[Hero, G2 Touch Android Development] avs333:
Thank you, secretfile!

Alas, right now I have little time to develop it, but it'd be very nice if you make such improvements! Also it'd be great to have a support of CUE files, because many flac/ape files in the Internet are encoded as a single large file with the tracks defined in CUEs.

Please PM me your e-mail, I'll send you the sources if you decide to use them!
[Hero, G2 Touch Android Development] komteks:
I am using the stock Sprint CDMA HTC Hero ROM build number 1.56.651.2 CL85027 release-keys.

It is rooted as I can successfully use the wireless tether for root users app.

After trying the new chmod command I get the following:

Unable to chmod /dev/msm_pcm_out: Operation not permitted
[Hero, G2 Touch Android Development] avs333:
Please check that you're indeed root by running "id" before doing "chmod". It should say something like "uid=0 gid=0".

Anyway, have you tried the last version I uploaded a week ago? It doesn't need any commands to be entered manually, and executes them itself if it cannot open the device.
[Hero, G2 Touch Android Development] komteks:
After running "id" mine says:

uid=0(root) gid=0(root) groups=1003(graphics),1004(input),1007(log),1011(adb),30

01(net_bt_admin),3002(net_bt),3003(inet)

I rooted my phone following the first post from this LINK.

After uninstalling the old program then installing the new one it open fine but then I get the following Force close error message when I try to open any flac music file:

Sorry! This application andLess (process net.avs234) has stopped unexpectedly. Please try again.

What now?
[Hero, G2 Touch Android Development] tbaker077:
This looks very promising, but is there anyway you can also add OGG, and mp3? Is it also possible to bring out another interface color or maybe icon pack? Keep up the good work!
[Hero, G2 Touch Android Development] avs333:
Frankly, I don't know, sorry. Seems to be either some catch in Hero Sprint kernel, or (more likely) a bug in certain files (e.g., busybox) installed with your ROM.

Cannot fathom any sensible reason why the root user is not allowed to change the permissions of this device.

Thank you!

I have not included ogg/mp3 support just because such files can be played in other players.

This program was not meant to be a serious multimedia application (I lack the skills to do that), but rather a simple tool to play the files not currently supported in Android.

As for the interface, I'm planning to add some code to make it customizable. I wish I had more spare time...
[Hero, G2 Touch Android Development] tbaker077:
Still, it be cool if you could get it to do OGG at least. Maybe, you can get/ask for another developer to help you? Well either way thank you and keep up the good work.
[Hero, G2 Touch Android Development] kosmiq:
Installed yesterday and works great. Thanks for this app! :)
[Hero, G2 Touch Android Development] komteks:
After I updatde to the latest Fresh Rom for CDMA HTC Hero (Sprint) 0.7 I opened the app and this time I was asked that the app needs Root access. I selected "Always Allow".

Not it works! Thanks!
[Hero, G2 Touch Android Development] komteks:
Most of my flac files play but some don't.

How can I check what the difference is between the files that play and the ones that don't?
[Hero, G2 Touch Android Development] Ezzy77:
Bigger buttons, slightly larger font, more responsive ui (lags like hell on my Hero) and make the volume rocker work and this'll be just fine. Check out FolderPlay from Symbian which has the same basic principle as your player. To make playing music simple, fast and of the best possible quality.

There aren't any other FLAC-players out there, are there?

Note: This is for Symbian s60v5 http://sourceforge.net/projects/folderplay/
[Hero, G2 Touch Android Development] tbaker077:
There are a few on xda for WM and then there is the TCPMP and the The Core Player.
[Hero, G2 Touch Android Development] komteks:
shuffle play
[Hero, G2 Touch Android Development] :
brilliant job, thanks!
[Hero, G2 Touch Android Development] avs333:
High resolution files may fail because of hardware/driver restrictions.

I never tried anything other than 16-bit @ 44100 Hz.

This is exactly what I'm going to do first. The UI gets very sluggish sometimes for no apparent reason. Trying to find this bug. Also, the theme support is also in prospect.

The latter two are also for WM only.

I'd be delighted if the CorePlayer team release their player in near future (I'll close this project immediately when their Android player appears :) ).

Unfortunately, not too much hope so far because of current SDK/NDK state, even in 2.0 (and probably in 2.1), see http://forum.corecodec.com/viewtopic.php?f=22&t=2885.
[Hero, G2 Touch Android Development] tbaker077:
Doesn't TCPMP offer a SDK/source code so people can build upon it?

There is a WM app made by an XDA user called Nitrogen. It has the ability to be skinned and also supports ogg if I am not mistaken and last I heard there was plans to add flac. You could always check out that project and see if you can work together on a Android port, which also add flac support? http://xdaforums.com/showthread.php?t=523505
[Hero, G2 Touch Android Development] Ezzy77:
naah, just meant for android. Had the nokia 5800xm previously with FolderPlay as my main player, but swapped it for Hero so need this to work desperately :D

Noticed that the developer is on the case so i'll be patient :)
[Hero, G2 Touch Android Development] cyberden:
Thanks! It's working great!

Is there a way to implement a last.fm scrobbling functionality using scrobbledroid (for instance)?

Or maybe to release the source so that someone can do it?
[Hero, G2 Touch Android Development] :
what a shame android devices doesnt support flac and losless formats. thanks for developing this app! im using andless on g1 i have to run gscript script before running andless, but important is that andless works. thanks

maybe WAVPACK support might be nice.
[Hero, G2 Touch Android Development] avs333:
If the script is not specific to your setup (and is simple enough), please post it. I might try to implement it inside the code for G1 users...

Added WAVPACK support yesterday (just before you wrote this message :) ).

Also, slight interface improvements (the selection of font size and theme from menu).

I had no time to test the version attached, so I put it here rather than on the first page.

Still very little progress with interface lags: I seem to have found the way how to eliminate them, but it'll require some work to be done.

Will try it when I have spare time again.

Sorry, I don't even know what the scrobbling is ... :)

The sources are open, of course! I'll be pleased to send them to anybody who will decide to improve the program.
[Hero, G2 Touch Android Development] :
ouuu i havent been here long time and there are such a news as WAVPACK.

yes no problem script uploaded.

and big thanks i highly appreciate your work! im going to test your mod now.

thanks man
[Hero, G2 Touch Android Development] avs333:
Thanks for the script: I'm not too sober right now as to make out the idea, but I'll see to it!
[Hero, G2 Touch Android Development] :
good job!

good job! i love this update. thanks for makin buttons bigger!

i have one question, when i rip my cds im ripping to CUE + APE/FLAC files.

so it is ONE big full cd flac/ape/monkey file and CUE file. cuesheet is cdimage file which contains tracks info from flac file. its small around 4,00 KB. is possible to implement this feature? andless to read cue files and play/show individual tracks?

thanks once again!
[Hero, G2 Touch Android Development] alorayou:
Eclair

Just for reference.

I installed the latest JAC firmware based on 2.0.

Unfortunately I cannot get the app to open there, the principle is still OK, if I change the msm_pcm_out attribute to rw (0666) I can force to play an FLAC file as audio from the music player...

it would be great to be able to use the application though...

Another thing as a feature request would be to allow for playlists, I mean, I have not found how to play two songs without having to go back to the player.
[Hero, G2 Touch Android Development] avs333:
That's what I'm going to do: to make the CUE files look like directories so you could enter into them and play the tracks you like.

It requires quite a work though, but be patient, I'll do it sooner or later!

Do you mean that it plays from the music player built into this ROM after you change the permissions?? If so, it's just cool!!! I think it's time to add this feature in all ROMs, including the official ones.

As for my program, I have to upgrade to 2.0 first to answer your question...

Ehh... That'd be most painful for me to implement because (a) I never use playlists myself and (b) my java skills are still too scarce...

Anyway, I'll probably try to devise a simple way of how to make something like that (the first thing that comes to my mind is using temp dirs with symbolic links to real files).
[Hero, G2 Touch Android Development] LTourist:
woohoo!!

You added the mpc and wavepack support, really nice!!! I didn't have the time to check your work right now, I'm on another project (which I hope would help me learn basics of android programming...).

But I think I will use your player as soon as I can :D

It would be nice to have gapless support too, if it is not done already :cool:
[Hero, G2 Touch Android Development] _phlynhi:
Thanks!!!!!!

This is what has been missing for me on the Droid... It's been a pain to torrent fine FLACs from btTree then convert (doubling the space needed on the PC) to.mp3/ogg to play on my phone.

I must now become educated and confident enough to root (I've been reading up, and now I have a valid reason to execute) my phone.

I cannot thank you enough!!!!!!1

:D:D:D:D:D:D:D:D:D:D:D:D
[Hero, G2 Touch Android Development] Indiana Jones:
:(

it wouldnt work for me (samsung moment) i also have the "bad" reply

what are the original permissions for the /dev/ dir?
[Hero, G2 Touch Android Development] keet:
I'm using an unlocked, rooted Nexus one. I went to the terminal and ran su, then chmod o+rw /dev/msm_pcm_out, then installed andLess.apk. However, when I try to play a file, it says 'Write error'. I double checked the permissions on /dev/msm_pcm_out, and they are crw-rw-rw. Do you have any suggestions?
[Hero, G2 Touch Android Development] :
Indiana Jones

keet

The problem is most probably caused by new kernel drivers on your devices.

pilnik11 has wrote a script "FLAC.sh" (it's on the previous page of this thread) which is essential for his 2.0-based kernel. Can you give it a try??
[Hero, G2 Touch Android Development] Indiana Jones:
i tried the script ultimately it said "no such directory" when i try launching it just fails.

my hardware is sprint moment rooted zefie kernel 8.2 cupcake 1.5 is it possible i dont have pcm out?

i got a response from Zefie the creator of the custom kernel and this is the response

"msm_pcm_out is a msm specific feature. MSM is a Qualcomm CPU line. No way that is gonna work here. s3c_pcm_out may work. not sure."
[Hero, G2 Touch Android Development] keet:
I ran the commands in the script as root:

#su
#mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
#cd /dev
#chmod 7777 msm_pcm_out

But the same error message appears, 'Write error', then 'Audio buffer error'. Thanks for the try, anyway. It's probably something to do with the fact that I'm using Android 2.1 with a different kernel from the other devices.

Well, at least the code/S.D.K. for 2.1 seems to have been released just today; since the F.L.A.C. developers seem to have released some code and revisions for Android, maybe we'll have native support soon.
[Hero, G2 Touch Android Development] avs333:
Sorry I didn't notice your hardware wasn't MSM-based. Well, the chances are almost zero, but why not try "s3c_pcm_out" if the developer of your ROM says it may work :) -- I've just recompiled everything with that name, please try andLess_samsung attached.

Yes, exactly. The reason here is quite similar to the above. My code is written for *Hero cupcake drivers*, and somehow runs on some other systems even though it's not SDK-compliant. It *may* be ported to different devices, but you need the kernel driver's code to be sure (SDK code is not sufficient).

Just as a last resort, I've made some corrections to eliminate the errors you've got, please try andLess_bigbuffer below. If it won't work, I'm afraid I couldn't help you further...
[Hero, G2 Touch Android Development] keet:
It still didn't work, returning the same error messages. Oh, well, thanks for trying anyway; at least there are some Cupcake users who are probably quite happy right now. I wonder how difficult it would be to integrate the F.L.A.C. code into the new kernel and source...
[Hero, G2 Touch Android Development] Ezzy77:
Excellent progress, works perfectly now :)

oh and Scrobbling is a term used by users of Last.fm. A scrobbler sends info about tunes you listen to and creates lists etc. On android a good scrobbler is ScrobbleDroid and among others Meridian, MixZing and Astro Player can scrobble.
[Hero, G2 Touch Android Development] zefie:
Can you explain what "wrong CL" means in the adb log, as well as what the device is trying to do when it says "Set audio config error"? Thanks.
[Hero, G2 Touch Android Development] zact:
Unable to run AndLess in Nexus One

I am unable to run Andless in Nexus One with error saying process net.avs234 stopped unexpectedly. Can any one help? I love to have FLAC supported in gphone too. Thanks.
[Hero, G2 Touch Android Development] avs333:
"wrong CL" is a Dalvik's debug feature probably to remind the programmers that they haven't implemented OnInit function in the native library. It has no effect if everything other is done correctly (it is :) ).

"Set audio config error" is a kernel driver error which may happen only if you are trying to play a file which cannot be played on this hardware (e.g., number of channels > 2).

I just downloaded what allegedly was Nexus kernel sources. Amazingly, there are *two* audio drivers (qdsp5 and qdsp6), in contrast to all other Qualcomm based devices.

I couldn't find Snapdragon datasheets anywhere, but my guess is that the regular qdsp5 (msm_pcm_out) might be used for some other purpose on Nexus.

Can you confirm that you have "/dev/pcm_out" (in addition to "/dev/msm_pcm_out") on your device? If so, we could try using this new qdsp6 driver.