yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] colapro:
Is there a way to compile the GNU toolchain for Android (making it possible to compile c code directly on the phone using gcc and binutils)?

I tried using the ANDROID-NDK to compile a simple c hello world program (no app) outside of Eclipse, using the prebuilt GCC ARM compiler. But I failed, got different errors spitted at me. I will have to read more about how to use the NDK.

But to the reason of this thread. Is this even possible? Will the toolchain libraries be too big for the phone memory if I compile them statically? And that's what I have to do right? Can Android run dynamically linked binaries?
[Android Software/Hacking General [Developers Only]] colapro:
Does anyone know how to do this?
[Android Software/Hacking General [Developers Only]] eugfc:
Google it: "agcc" or "gcc android"

Probably will help you.
[Android Software/Hacking General [Developers Only]] colapro:
Really bad answer. I'm looking for info on how to make GCC run on the phone.

If you don't know don't post.
[Android Software/Hacking General [Developers Only]] drob311:
Check into side booting linux off of your sdcard... That seems like the only way possible to me... There is a market app that will get you all set up with ubuntu. All you need is a device that has a kernel with loop support in it... http://www.xda-developers.com/android/load-ubuntu-on-your-android-device-with-ease/

Sent from my PG06100
[Android Software/Hacking General [Developers Only]] mesaj:
Also, according to drob311 post, you can use Linux Installer by Geloula that's available from Google Play (Market)
[Android Software/Hacking General [Developers Only]] GazaIan:
If your phone and it's kernel supports booting Ubuntu or another form of Linux (BackTrack is awesome), then that's probably your best bet. You'd probably have more luck running just the terminal part, and not using the GUI (it's quite awful if you don't have enough free RAM). Considering cross compiling is needed on x86 or 64 bit machines and it takes quite long and makes the computer heat up really badly, I'm not sure how much you would really want to try it on ARM, especially since most phones nowadays only have 1GB of RAM. Could be faster and simpler since its ARM on ARM, or maybe your phone/tablet will blow up in your hand. If you really want it though, try it. Eclipse is also available for ARM Linux, if you'd want that.
[Android Software/Hacking General [Developers Only]] colapro:
Thanks for your replies!

I was looking for something more like how to build GCC to make it run on Android and to let it use the Android C lib. I was experimenting with os deving a while ago and to do that I had to build a GCC cross-compiler (tutorial on osdev.org wiki). It's something similar to this that I want, but it should:

* Run on Android.

* Produce code for Android.

Should probably look for build parameters for GCC and binutils.

I can't seem to find a prebuilt binary of GCC that runs on Android.
[Android Software/Hacking General [Developers Only]] codesplice:
AIDE will let you write/compile/run Java code for Android apks on your device. It seems to work well.

I haven't tried it, but C4droid claims to do the same for C, and also has an available GCC Plugin. Might be worth a look.
[Android Software/Hacking General [Developers Only]] rohk:
This could be interesting for you. theGanymedes -> Linux in Android! DesirAPT is at Beta Test! [9 Feb]

I've searched for Cross-compiling Linux Apps to Android to, but got stuck with resolving the dependencies of the Linux App i tried to port to Android. :/
[Android Software/Hacking General [Developers Only]] Kr!shn@:
Download gcc plugin for c4droid.apk

Open apk file,you will find gcc.zip in assets folder

Extract gcc.zip to your internal storage

Add gcc path to path variable

export PATH=$PATH:path-to-extracted gcc/bin

Rename androideabi-gcc to gcc

Run command gcc

This should work even without root in some versions of android
[Android Software/Hacking General [Developers Only]] smb_gaiden:
Q1. Is this even possible?

it is possible, i did it today and compiled pcre library and the silver searcher app which uses it. Used ndk and juice ssh to dev and test. Requires root as far as i know because most areas are mounted as noexec and accessing /data/local needed root. Theres some loop method on sdcard which is foreign to me, but MAYBE doesnt require root.

Q2. Will the toolchain libraries be too big for the phone memory if I compile them statically? And

Didnt try static yet, but will assume no problems. also depends on your phone, the one that i ran has 4GB of RAM and 64GB of flash storage.

Q3. that's what I have to do right?

this q is unclear to me.

Q4. Can Android run dynamically linked binaries?

yes, this was how i linked with libc and libgcc with licpcre and with the ag app.

Plan to write out the steps in the next week or two.
[Samsung Galaxy R i9103] AbShake96:
Has anyone noticed the proximity sensor glowing red, when activated? I haven't noticed it in other phones.

D.I.T.M. Developer In The Making. : )
[Samsung Galaxy R i9103] akshatsourav:
yup...it glows red.....

but its too light to notice...
[Samsung Galaxy R i9103] 'cooleagle':
Yes it does. Maybe something to do with Samsung handsets ?

Can some having a Samsung Galaxy S2/any other device confirm if they too see a visible red light from the proximity sensor ?
[Samsung Galaxy R i9103] akshatsourav:
yes dere iz....
[Motorola Photon 4G] willblake13:
Beats audio libs:

Pulled from ROCKO rom

Link has been removed, many people are not giving RockoDev the props he deserves for his work.
[Motorola Photon 4G] jbuggydroid:
Nice man.thanks
[Motorola Photon 4G] dxl880517:
Thanks, this is cool.
[Motorola Photon 4G] RockoDev:
I already tried this couple months ago
[Motorola Photon 4G] willblake13:
Be sure to thank my post I'm all about a good rep. Especially since I haven't got that many posts. Hope you guys enjoy it as much as I have.
[Motorola Photon 4G] willblake13:
Yeah I did too, I pulled it from rocko
[Motorola Photon 4G] RockoDev:
credits would be nice:) just saying
[Motorola Photon 4G] willblake13:
There all better :-)

Remember it's not really yours until you have voided the warranty.
[Motorola Photon 4G] RockoDev:
true it was just time consuming to download the rom look for them and put in rocko rom make sure the rom boots if doesnt find the file affecting the boot and all that other good stuff
[Motorola Photon 4G] willblake13:
Is there any more changes you want me to make to the post I want to give credit where it is due

Remember its not really yours until you have voided the warranty.
[Motorola Photon 4G] RockoDev:
no sir and thank you
[Motorola Photon 4G] Jonathanlc2005:
is there supposed to be an icon?
[Motorola Photon 4G] RockoDev:
nope its not an app just the files
[Motorola Photon 4G] Jonathanlc2005:
well it definatly sounds amazing. thank you
[Motorola Photon 4G] RockoDev:
I also included the xloud files zip in the op of rocko rom
[Motorola Photon 4G] Jonathanlc2005:
who needs beats audio headphones, when im rocking this:

http://www.generalmanual.com/Headphones/Sony-MDR-XB40EX-Extra-Bass-Earbuds.htm

and it sounds amazing
[Motorola Photon 4G] willblake13:
Reserved

Remember it's not really yours until you have voided the warranty.
[Motorola Photon 4G] willblake13:
You have never had beats have you?

Remember it's not really yours until you have voided the warranty.
[Motorola Photon 4G] Jonathanlc2005:
sounds the same as the sony
[Motorola Photon 4G] demonotaku:
I noticed a improvement with my iFrog Luxes
[Motorola Photon 4G] radrian92:
Beats are cheap iem :D! Senns are way better!
[Motorola Photon 4G] Jonathanlc2005:
beats are made by monster audio, not cheap

however, my roommate has beats audio and holy **** that was insane bass... like my subwoofer
[Motorola Photon 4G] atroph:
Correct. They are not cheap. They are waaaaaaaaaay over priced.

Sent from my MoPho. All typos are the phones fault.
[Motorola Photon 4G] willblake13:
Beats have developed a name for themselves, however they are not the best for the price. I am sure there is some German brand with better headphones probably ranging up to 2000 dollars. However beats look so sexy, just saying.

Remember it's not really yours until you have voided the warranty.
[Motorola Photon 4G] Jonathanlc2005:
yeah i forgot to say i put android bass boost to extreme
[Motorola Photon 4G] Lancerz:
I plug my phone into my car radio and listen to music so I'll assume it should sound better on my car speakers also. I'll give it a go tomorrow.
[Motorola Photon 4G] radrian92:
Edit: plus I meant cheap as in way over price and not as great as you'd expect.

If you want CRAZY BASS then get a pair of TFTA-2100-3V2B! That's literally like having subs in your ear! ~160 shipped!
[Motorola Photon 4G] Mister_RnB:
Will This Work If Im Running Miui?

Also Beats are the best i have the pros and with a quality headphone jack they beat out most of the competition.
[Motorola Photon 4G] RockoDev:
it should
[Motorola Photon 4G] carlz0206:
will this also work with sgs2 running ics?
[Motorola Photon 4G] RockoDev:
Yes it should zip might not but give a try i will open a thread in atrix and sg2 later
[Motorola Photon 4G] carlz0206:
Does the zip mod something in framework-res.apk? Or it just install file in etc and lib.

Update:flashed the zip and it seemed to improve the sound eventhough im not using beats.gonna try to confirm later if theres really improvement when i restore my backup b4 i flashed the mod

Update2:noticed that theres an improvement with the sound after i compared with my back up
[Motorola Photon 4G] atroph:
Is this just a simple equalizer that you have no control over? Similar to the built in DSP? That is if your ROM has the DSP.
[Motorola Photon 4G] RockoDev:
Yup you have no control over it
[Motorola Photon 4G] playingwithfire:
Quick question, what does this do? Does it fix the low hum of the photon when it plays audio? I'd think that would be a hardware shielding issue rather than a software issue...
[Motorola Photon 4G] RockoDev:
What this does is try to give you a better quality sound example more clear music sound cleaner bass etc
[Motorola Photon 4G] playingwithfire:
How? By tweaking the equalizer or cleaning up android's software? I don't really dig Beats' sound signature so I'm not sure I'll get this if it's a simple equalizer tweak. Photon will never be an audiophile phone due to hardware limits, I just want to get rid of the hum.
[Motorola Photon 4G] moonzbabysh:
Ziiiiiiiiiiiiing lol

MoPhoACTV Initiative
[Motorola Photon 4G] jwischka:
It does not get rid of the hum. In listening on my SR225s and SE535's, it appears as though it's primarily some EQ tweaks, though looking at the files in the zip it does look like they may be doing some additional filtering. I can't really be bothered to try to reconstruct it, though.

I personally don't think that it radically alters the sound profile, but I'm sure there are those who will disagree. I usually listen with poweramp and use custom EQs based on the headphone profile, so this basically comes down to a different set of EQs than I had originally to get the sound right. If you were listening on stock music player or something it might be a different game.
[Motorola Photon 4G] playingwithfire:
Hey, thanks for the info! This is helpful. BTW, how's the fit of SE535 on you? I had the 530 and it just did not feel comfortable. Always wanted to try a Grado too but they have a bad reputation for comfort and I'm fine with my Senns.
[Motorola Photon 4G] jwischka:
Grados are not comfortable. Period.

I would give the 535's an "average" rating on comfort for IEMs. They are not as comfortable as the X10's, but are better, I think, than TripleFi 10's. I'm using the Comply tips, which I think are more comfortable than the stock tips. Occasionally they are quite comfortable, but every 3-4 times I put them in, one ear will be less than comfortable. The sound is fantastic, but if you don't have slightly larger than average outer ear, I could see how they would be really uncomfortable. I think with the larger IEMs, it really comes down to where they hit your ear. The TripleFis are smaller than the 535's, but I could never get them to fit well in my ear. To each his own, I suppose.
[Motorola Photon 4G] willblake13:
Just want to say if this turns out to be a placebo, and someone ruins it for us, we will have a problem. Lol, just wanted to make that clear. I'd rather be happy and ignorant than. Unhappy and smart. Lol

Remember it's not really yours until you have voided the warranty.
[Motorola Photon 4G] RockoDev:
lol i have a feeling your trying to take shots at somebody!!
[Motorola Photon 4G] willblake13:
Lol nah I just don't want to hear about it if it's. Placebo cuz if it is I'm going to be upset, especially since I just went out and purchased beats detox headphones to get the most out of this. Personally I see the difference though.

Remember it's not really yours until you have voided the warranty.
[Motorola Photon 4G] theelite:
since HTC just announced that they will release an updated version of Beats audio on the HTC One that will work with 3rd party players doesn't that mean this MOD does nothing since it will currently work only with the HTC stock music player?
[Motorola Photon 4G] jwischka:
It should actually be fairly easy to see whether there is any difference or not - flash original, play a song, record on a computer, FFT, see if there are differences. I suppose I can try this (or not), if you're really interested.
[Motorola Photon 4G] playingwithfire:
Recording method also matters though.
[Motorola Photon 4G] jwischka:
Shouldn't matter much, so long as it's identical between the two. Of course, the recording device (even if it's a line-in to a sound card) will have its own characteristics, but those will be the same between the two playbacks.

In other words, it matters if you're looking for absolute accuracy, but not if you're just trying to tell if there is a difference.
[Motorola Photon 4G] playingwithfire:
Good point, test it out and let us know:D
[Motorola Photon 4G] MobileAllStar:
Anyone test this on CM9 yet? I flashed and it works but my phone seemed to act funny afterwards... I made multiple mods so I'm not sure if my problems were directly related to this but my phone didn't function properly after installing this...
[Motorola Photon 4G] willblake13:
Mine is working fine on cm9

Remember it's not really yours until you have voided the warranty.
[Motorola Photon 4G] jwischka:
I'll do it when joker posts a new update. Don't want to have to reflash unless it's gaining me something... but I'll try to remember to do it then.
[Motorola Photon 4G] raider89:
Yea working fine for me, can tell the difference easily.
[Motorola Photon 4G] willblake13:
God I can't help but love this, especially with my beats detox headphones, bass is so clear!

Remember it's not really yours until you have voided the warranty.
[Motorola Photon 4G] jwischka:
Have you considered that it may be the headphones, and not the mod?
[Motorola Photon 4G] roi14:
is this mod strictly for photon 4g only,.just wondering,.:)
[Motorola Photon 4G] glock20c:
two thumbs up....works really well....just tested it out on a ELS sound system in my Acura ...it sounds beautiful....
[Motorola Photon 4G] jwischka:
Hate to burst everyone's bubble, but....

This is a sweep plot with this mod flashed. Obviously, this is (noisy but) pretty flat.

Procedure:

1) sweep wave file, 10Hz-22kHz, 10s generated @ audiocheck.net

2) file played back via standard music player, recorded @ 24bit, 44kHz

3) plotted in Goldwave, seen above.

Analysis:

There isn't any bass boosting, and doesn't appear to be any noise reduction going on here. There are the obvious wigglies that I would expect in listening to the more or less pink noise that is generated on the audio out, but it doesn't appear that anything intentional is being done with regard to audio processing. Given that the typical "Beats" modus is to crank the bass quite a bit, I suspect this is not actually working on the phone.

I reserve the right to retract these statements following further testing. Also, as per disclosure, there is no "control" here, meaning I haven't flashed back to a "non-Beats" to do the recording again, though I will when Joker releases a new version, hopefully tonight.

Given recent noise that has been made about how the "new" Beats audio works with all music players, not just the HTC one, I think this is a fairly reasonable conclusion.

More to come, possibly.
[Motorola Photon 4G] atroph:
Very nice. I feel that the beats audio mod is just a simple loudness effect. Bump the bass and treble to make up for lower quality headphones.

I would be interested to see a sweep using to built in dsp and crank the bass to ensure that your test controls are correct.

Sent from my MoPho. All typos are the phones fault.
[Motorola Photon 4G] SkzBR:
Can someone explain me the difference of this 'beats audio'?

It's a audio replacement driver to use with high-end beats devices? And if yes, it means that if a broght a beats headphone i need to use with devices with beats audio enabled to use their full performance? Thats sounds strange for me... i think that headphones need to work everywhere.
[Motorola Photon 4G] jwischka:
Why not?

Changes in procedure:

1) Generated a logarithmic sweep, 10-22kHz, 20s, same source. This was done to provide more time at lower frequencies.

2) File analyzed three ways: first, the base file spectrum is shown, which is important due to the rolloff in high frequencies in the base logarithmic file. Second, the "flat" spectrum is shown, where no DSP effects are active. Third, bass and treble are both raised, while the mids are lowered in the EQ.

Base file spectrum:

"Flat" spectrum, no EQ:

Bass boost, treble boost:

Analysis:

This is about what we would expect. There are some alterations between the actual file and the playback with no EQ, but they're pretty close. As with the previous graph, there seems to be a pretty sharp rolloff at 20kHz on the Photon, no matter what you're doing. This isn't too surprising.

There are significant alterations to the frequency profile of the EQ'ed spectrum, which again is expected. One of the key reasons I would suggest that this mod isn't doing anything at the moment is that anytime you start filtering a signal (which is what an EQ basically is), you start to see peaks and valleys in the spectrum - no filters are perfectly flat.

Conclusion:

I am not an audio engineer, but I do know a few things about signal processing and frequency spectra. I do, again, reserve to change my mind based on future testing, or input from an actual expert. That said, my professional opinion based on these tests is that whatever flashing this package does, it does not result in an altered audio profile on the Photon.

---------- Post added at 11:45 AM ---------- Previous post was at 11:39 AM ----------

See above.

HTC phones ship with "Beats Audio" libraries, which are supposed to be improved audio drivers as compared to other phones. General consensus is that, like Beats generally does, it basically serves as a bass boost, which many people generally find to be a more rich sound. This is designed to work regardless of what headphones you are using, though currently, it is supposed to work only in the Beats Audio app which ships on these phones.

This package is supposed to add the Beats functionality to the Photon, but results are ... unclear at the moment. My testing so far does not seem to indicate that flashing this package has any noticeable effect on the frequency spectrum (or noise, I might add) compared to stock. That said, being that audio quality is about the most subjective thing you can imagine, I'm sure certain people will disagree with my conclusions.
[Motorola Photon 4G] theelite:
I believe ya, coincides with the whole Beats Audio only being able to activate through HTC stock player.
[Motorola Photon 4G] barberboy420:
So guys whats the final verdict, does this really improve music quality or is it just a hype?
[Motorola Photon 4G] jwischka:
Until someone is able to measure otherwise (and by that I don't mean "It sounds different to me"), I'm going with a no.
[Motorola Photon 4G] gmplr831@comcast.net:
Beats headphones do make things sound better. I like the noise cancellation above all else. Do we know if this works on a rooted stock?
[Motorola Photon 4G] jwischka:
It is unlikely.

My guess is that flashing this adds the various drivers and frameworks, but that they are not used, even though they are on the system.

Again, I'll try to do a before/after comparison when Joker releases something else, but I'm skeptical this package is actually doing anything.

Using higher-quality-than-stock headphones will always have a benefit, whether they are Beats or not. Personally, I prefer a different sound profile, and hence have different high end headphones. Whatever floats your boat, though.
[Motorola Photon 4G] atroph:
Perfect! Thanks jwischa. That shows that you have the right controls in place. Interesting indeed.

Sent from my MoPho. All typos are the phones fault.
[Motorola Photon 4G] mastermind278:
Seems to work just fine on the Atrix! I believe there is an improvement on audio (hopefully nothing placebo).
[Motorola Photon 4G] jwischka:
Pardon my skepticism.

If you're interested in testing it, let me know and I'll do the analysis.
[Motorola Photon 4G] cougarcougar:
Just by looking at the zip and updater-script. Only the etc folder is copied to the system folder. The lib folder is not copied. So I'd say placebo till it get's corrected.
[Motorola Photon 4G] Another Drunk NPC:
I just installed this to try with my ridiculously efficient (sensitive) AKG K272 HD's and I hear no difference so far. I thought I'd give it a shot even though the phenomenon of Beats headphones bothers me.

How do I uninstall it?
[Motorola Photon 4G] RockoDev:
Not to be rude or hate on anybody on xda but if people tell a difference and enjoy let them be and enjoy there music

And also op i think thats the old zip i made did you just link it to drop box or did you put it together?

Edit:this zip in op doesnt put files in the correct places
[Motorola Photon 4G] RockoDev:
Click on the one on my signature and download "test download"
[Motorola Photon 4G] DesignGrits:
Will this work on any phone? I have the SGSII T-989, just wondering.
[Motorola Photon 4G] glock20c:
I had a hissing and cracking sound before I flashed this....Now it's gone.....that's why I say is works for me.....YMMV....
[Motorola Photon 4G] jwischka:
People are free to enjoy their music. My measurements don't change the sound (just like the zip doesn't change the sound).

If people want to believe otherwise, I certainly can't stop them, just like I can't stop people from believing that the earth is flat, the moon landing was fake, and professional wrestling is real.

However, not to be rude, but there is this really nifty thing we've developed called science which, when we come to a dumbfounding problem (e.g. one side say "I think there's a difference" and the other side doesn't), lets us transition the question from opinion to measurement.

Are the measurements going to convince everyone? No. But they certainly provide a more quantifiable basis for belief than, "Oh... this *totally* works!" The human ear is a really subjective thing - I'm not trying to kill people's enjoyment, but I'm also getting tired of the "You must not have good enough (Beats) headphones if you can't tell a difference" route some people are taking.

I'll repeat the test with your other zip here in a bit.
[Motorola Photon 4G] :
flashed on nexus s.

voodoo sound delivered good sound quality, but I do hear an extra kick in bass and all around sound. I'm a drummer and really like to get the full quality sound.

Or maybe its the beats earphones? lol

either way my sound is perfect. no sure if it worked tho, but it flashed successfully.

EDIT: Ok! flashed the version in rockodevs sig and there's definitely a big difference in sounds. (voodoo sound mod off) .

great stuff.
[Motorola Photon 4G] willblake13:
I'll fix it right now

Remember it's not really yours until you have voided the warranty.