yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] mdanh2002:
Hi.

I am using RIL API, particularly RIL_SetAudioDevices to route audio to earpiece for a VoIP application. My code snippet is as follows:

adi.dwParams = RIL_PARAM_ADI_TXDEVICE;

adi.dwTxDevice = RIL_AUDIO_HANDSET;

RIL_SetAudioDevices(hRil, out adi);

RIL_SetAudioMuting(hRil, false);

On some phones it works fine, on some other phones it doesn't work at all (either RIL_SetAudioDevices returns a failure code, or returns a success code but audio still remains in speaker). On some other phones (e.g. HTC Touch Pro 2), audio is routed successfully to earpiece but the microphone is muted. However, commercial tools to do the same (e.g. http://www.earpiece-routing.com/) work fine on these phones and do not mute the microphone. I believe these tools are using RIL as well.

Does anyone know what's the trick to fix the muted microphone? Any special API to call after RIL_SetAudioDevices?

Thanks a lot
[General Questions and Answers] mdanh2002:
does anyone have any ideas why the microphone is muted? thanks a lot
[General Questions and Answers] mdanh2002:
anyone has any ideas?
[General Questions and Answers] mnet:
did you try looking at the sourcecode of audioroute?
[General Questions and Answers] 6Fg8:
is it available? Would be interested in that too.
[General Questions and Answers] mdanh2002:
I *think* it is using DynRIL and the source code for DynRIL is not available. I may be able to do a disassembly of DynRIL when I have the time to.
[General Questions and Answers] 6Fg8:
Why not simply use dynril in your app? Its well documented and free to use, provided your app is free as well.
[General Questions and Answers] radhoo:
RIL itself handles the telephony part, however for the Audio issues it relies on the Audio Driver. You can check the various RIL source code variants to see this.

So to do the Audio routing , you can use only the audio driver. Some time ago I've written an audio driver sniffer (search for Gemini Driver). You can use it to see what parameters are sent to the audio driver by the various applications inclding the commercial one you've mentioned above.
[General Questions and Answers] mdanh2002:
Thanks for the reply.

I tried hard to disassemble DynRIL, found a few DeviceIOControls calls after RIL_SetAudioDevices which I believe is used to solve the mute problem. Unfortunately I could not replicate the calls to DeviceIOControls as done by DynRIL and earpiece-routing, and the mute problem remained. I ended simply using DynRIL in my app.

I tried to use your Gemini driver on one of my phone (LG KS20) and successfully route the audio to earpiece by passing the control codes sniffed by Gemini to DeviceIOControl. However, on many other phones, Gemini driver fails to initialize even when the required certificates have been installed. I believe it assumes a hard-coded name for the default driver (wavedev.dll) and try to overwrite the file, but these file names are different on phones where the OEM has done extensive customization to the underlying system (for example Acer F900). I tried to modify the registry to change the audio driver file name to the value expected by gemini (wavedev.dll) and re-installed gemini, but that does not work. Also, uninstalling gemini does not restore system settings (registry, driver files) to original values so most of the times I have to resort to a hard-reset after experimenting with gemini.

In a last attempt I wrote a null audio driver which outputs all DeviceIOControl calls to a text file. hopefully to locate the control codes to route audio to earpiece. For some phones, the control codes are simple; for some other phones, there seems to be a series of control codes, and I was never able to identify the correct values to route audio to earpiece this way.
[General Questions and Answers] avinashmalipatil:
URL to Gemini driver please
[G1 Q&A, Help & Troubleshooting] cmsweet21:
i forgot the name of the site wer i get some paid apps, Edit ...............OH YEAH IT's CALLED THE MARKET!!!!
[G1 Q&A, Help & Troubleshooting] vixsandlee:
Http://code.google.com
[G1 Q&A, Help & Troubleshooting] supremeteam256:
Go to the market cause no one is gonna list torrents or warez.
[G1 Q&A, Help & Troubleshooting] Jonno12345:
This forum isn't for warez. Can't imagine this topic will be open much longer...
[Touch Diamond2, Pure Themes and Apps] HikenEsu:
ok im kind of a newb still when it comes to HTC/wm and i've search around and cant find the answer.... anyways i've been tryin to find out how to install these for my HTC TD2

the link to it is - http://www.nuerom.com/BlogEngine/page/nuePowernueBattery.aspx

any help would be appreciated tyvm XD
[Touch Diamond2, Pure Themes and Apps] EgorLev:
It seems to me that file inside archive should be renamed to battdrvr.dll and placed into Windows folder replacing original one. But I don’t want to experiment with my device.
[Touch Diamond2, Pure Themes and Apps] HikenEsu:
that cant be the only thing i have to do right? o_O

It’s pretty weird to make something then have no installation instructions because I have no idea how to install it correctly >.<

It says on the site that there are 2 one for CDMA and one for GSM phones so I downloaded the GSM one since my provider is rogers = GSM/3G which came with a dll but is that all I need for the 1% increment and the FastCharge mode? Do I need to install the nuePowerCPL? And I tried installing the cab but nothing appeared so I downloaded the OEM package and dragged it into program files but that didn’t do anything either so I’m very confused.
[Touch Diamond2, Pure Themes and Apps] HikenEsu:
anyone? :(
[Touch Diamond2, Pure Themes and Apps] ztracenyDen:
You have to put .dll in windows directory (and to be sure in app's directory) and install CPL (cab version, OEM is for ROM cooks).
[Touch Diamond2, Pure Themes and Apps] HikenEsu:
theres also a batt dll in that folder i forgot the name but its not the same as the nuebattery one do i replace that one with the nuebattery dll or just copy it in?
[Touch HD Themes and Apps] DMAlex:
Hello,

There is something weird happening with my Touch HD :confused:

1. I enable in Today the Touch Flo3D

2. I also have installed SPB MS 3.5

3. I deleted from startup folder the MS3.5 since I want the phone to have as "default" Touch Flo3D.

Now, sometimes, don't ask why :), I might need MS 3.5 so I need a solution to run/enable SPB Mobile Shell 3.5 WHILE Touch Flo is still running.

If I lauch SPB Mobile Shell 3.5 from File Explorer it works fine but if I add the shortcut to Start Menu or even to Touch Flo 3D Programs tab, nothing happens (although I could see the the phone tries to lauch MS3.5 it never appears).

I should mention that prior to SPB Mobile Shell 3.5 my approach (launch MS from Start Menu) used to work excellent.

I am experiencing the new behavior only after upgrading to SPB Mobile Shell 3.5 (I used the .cab version when upgrading - if this info helps).

I have the original ROM, nothing changed to Manila as well.

Any help, please?

Thanks
[Touch HD Themes and Apps] Kike24:
Hello friend... I am also running SPB MS 3.5, but everytime I reset my device, I have MS 3.5 loading..I simply exit the app and start using Manila TF3D.. I know that everytime you open SPB, the Manila stops until you exit it... so I am not sure you can be running both at the same time...

br.:o
[Touch HD Themes and Apps] DMAlex:
Hello ****24,

I believe you missunderstood. I solved the issue of SPB Ms 3.5 starting after every reset by deleting the shortcut from the Startup menu so, after each reset, Manila comes up. But this is not my issue!

My issue is that having Manila up and running I cannot start SPB MS 3.5! With the previous version, I used to add a shortcut to SPB MS in the Start Menu so everytime I needed Manila I just run it from the Start Menu (Click Start and then SPB MS). When I wanted to revert to Manila, I simply navigated away from SPB MS by clicking on "Show Today").

This "procedure" does not work anymore! Meaning I cannot manage to lauch SPB MS 3.5 when Manila is running.

Can you please share with me what are you doing in order to run SPB MS3.5 WHILE Manila is running?

Thanks!
[Touch HD Themes and Apps] travis:
Can only suggest you wait for this.

As I am doing!

http://xdaforums.com/showthread.php?t=512455&page=4
[Touch HD Themes and Apps] dajhoony:
Spb ms 3.5 video tut [german]

For all german fans is here a german video test and tutorial fos SPB Mobile Shell 3.5:

http://fingerfriendlyappz.wordpress.com/2009/10/02/spb-mobile-shell-3-5-new/

Have fun and leave some comments.

greetz daJhoony
[Touch HD Themes and Apps] DMAlex:
Thanks for sharing but what is the connection with my post?!?:confused:
[Touch HD Themes and Apps] m3dusa:
Simply exit? By G. I can't figure out how to do that. Will you please enlighten me?
[Tilt, TyTN II, MDA Vario III General] ukmouse:
I have a Stellar and have broken the screen. I remote controlled it using mymobiler and the touch screen is working just a white display though. Would like to know the best place to buy a new screen and how hard they are to fit. I am near Birmingham so if there is a place that does it cheap I will take it in. Any help would be appreciated.

Thanks:confused:
[Tilt, TyTN II, MDA Vario III General] u2pop:
Checked ebay already? If im not mistaken, can get the screen for like $30-ish
[G1 Android Development] vixsandlee:
Cheers, i tried one of the earlier patches and seemed to suffer from the display dieing.

This (flashed from recovery comsole) so far seems far more stable.
[G1 Android Development] dwang:
Its 107.5 megs right? Not 110 megs?
[G1 Android Development] david1171:
I, also, get 107.5 instead of 110. either way it has been running nicely for me.
[G1 Android Development] andonnguyen:
actually if you do the conversion from kilobytes, its roughly 105MB, but who's counting anyways? lol.

thanks daproy for the boost ;)
[G1 Android Development] david1171:
more=better, i have more then before; therefore, i am happy. :)

john has 2 apples; jill has 3 oranges; and bill has 4 stamps of acid, so the real question is, which 1 is your friend?

numbers are fun.
[G1 Android Development] Booker-T:
Great! I've been finding the patch for cm4.0.4 for a long time.

The performance improved is great but I just have 104mb ram......
[G1 Android Development] skrki:
Just reporting:

total used free
Mem: 107292 105836 1456
Swap: 30864 4356 26508
Total: 138156 110192 27964

Nice :D

Haven't flashed it yet, I'm just gonna monitor the behaviour for a while...

Thanks!!!!!
[G1 Android Development] jokersax11:
some of the winmo mods had camera hacks and programs to set the ram to different settings without flashing all the time. how hard would it be to create a program that flashes the files necessary with the simple clicking of no extra gpu or default. also can we look into pulling from other sources this way like wifi and camera.
[G1 Android Development] ps2zhuantou:
I, also, get 107.5 instead of 110
[G1 Android Development] yukkio:
Hi, did it fixed the problem with 3D games?
[G1 Android Development] pickerr:
unfortunately no :<
[G1 Android Development] Chahk:
Thanks daproy. Is this boot.img the same as in the original thread, or has the 4.1.11.1 version been modified further?
[G1 Android Development] ultma75:
seems to work well :)
[G1 Android Development] andonnguyen:
I don't think we'd be able to modify and recompile the kernel through an app on the phone.
[G1 Android Development] xile6:
will this work on the adp1 1.6? or only on the roms listed?
[G1 Android Development] Binary100100:
Wow. What an increase. I'm a pretty heavy user so I'll update if I have any issues on 4.1.11.1.

BEFORE:

C:\Users\Greg\Desktop>adb shell free

total used free shared buffers

Mem: 97900 8860 89040 0 64

Swap: 0 0 0

Total: 97900 8860 89040

C:\Users\Greg\Desktop>adb shell reboot bootloader

C:\Users\Greg\Desktop>fastboot flash boot bootmem.img

sending 'boot' (2002 KB)... OKAY

writing 'boot'... OKAY

C:\Users\Greg\Desktop>fastboot reboot

rebooting...

AFTER:

C:\Users\Greg\Desktop>adb shell

# free

free

total used free shared buffers

Mem: 107292 11876 95416 0 952

Swap: 0 0 0

Total: 107292 11876 95416

#
[G1 Android Development] IConrad01:
Well, there's discussion in the include-in-Cyanogen area (instigated mostly by me) that's pushing for the idea of inclusion.

There seems to be a few options that could be taken to make this work.

1) We could, rather than simply allocating the GPU1 to 0 RAM, allocate its RAM to shared memory rather than none at all. This would make its RAM-"space" available when 3D games are /not/ in use. I don't know how easy that would be; conceivably it could be as simple as mounting the GPU1 as /dev/shm. No idea there. (We'd need some way to unmount as /dev/shm whenever the GPU1 is called for 3d games, in order to prevent errors.)

2) We could reduce the original filespace sizes for both GPU0 and GPU1, and give them both dedicated /dev/shm devices; or, to even go a step further, somehow "nest" /dev/shm within /dev/block/ramzswap0, for those who have it. If we could do that while keeping the compress/decompress on the CPU rather than GPU side, this would probably greatly extend the available memory and even increase graphical performance of the device -- at, of course, the cost of battery life in the form of processor load. Frankly, I don't think using traditional swap would be a good idea at all here; while a GPU could withstand nanosecond delays in data, I suspect the latency of millisecond delays would be above the threshold for human observation.

3) We could simply keep the patch as is, and do an active mount/unmount call whenever the GPU0 gets overburdened. This would be the "cleanest" of the three solutions, but would also limit the total available memory whenever the 3D graphics load gets heavy. It might also require game/app programmers to be aware of this so they establish the proper calls, unless it can be done on the device-side of things.

It is worth noting, once again, that I am /not/ a programmer -- I have no idea how difficult what I'm suggesting here is.
[G1 Android Development] xile6:
CM 4.1.11.1 kernel boot.img

works on stock 1.6 just to let people know.

It also helps out with the browser not reloading so much
[G1 Android Development] j8dailo:
im not sure if i am doing this wrong but when i patched it and restart my phone...it just goes to a blank screen and stays there...
[G1 Q&A, Help & Troubleshooting] Bzerk1:
so drizzy says just put these files in there. well i downloaded the root explorer, and the problem now is... theres 2 different

system/framework/framework-res.apk/res folders and 2 anim folders for each res. so which one do i replace? the right one? only the right ones? or all of them? OR do i just add an extra folder?
[G1 Q&A, Help & Troubleshooting] brian_v3ntura:
well i have the files. and i use the root explorer app to push the blur effects to hero2 1.5.1.

i will upload and send once i get back home,right now i am in class

i suggest downoad root explorer from the market tho.
[G1 Q&A, Help & Troubleshooting] Bzerk1:
im trying to push it into JACxHeroSki 2.2 but i dunno where to push it to really. it also says i cant paste my items there because its a read only file.

i did download root explorer aswell.
[XPERIA X1 Themes and Apps] jasonmadruga84:
...........
[XPERIA X1 Themes and Apps] jasonmadruga84:
Here it is... ATT Wifi App For Windows Mobile v1020.cab

..........
[MDA, XDA, 1010 General] Krischu:
This morning my Wallaby MDA1 T-Mobile dropped down to the floor from my jacket pocket. About 1 m. The screen stayed black when trying to switch it on. No led lit.

Put it in the cradle. No led.

Took it with me in my car and laid it beside me on the co-driver's seat.

After 5 min. of driving it suddenly blipped and the screen got lit with the

T-Mobile banner like after a soft reset. It started and stayed on. After a couple of seconds

the red alert box popped up saying the power was low etc.

I switched it off. So, I thought, is it alive again? Having arrived in the office, I immediately put it in the cradle there. No sign of live. Like dead again.

What could that be?

--
[MDA, XDA, 1010 General] Rudegar:
maybe damaged batt or batt connector in the phone
[MDA, XDA, 1010 General] Krischu:
Thanks for answering.

I found that there is a flakey contact somewhere near the Sim-card slot.

What is actually this half-cylinder shaped little bolt that can turn having this red dot on the flat face?

Edit: Found the answer: that is the vibro alarm (motor).

--

Christoph
[MDA, XDA, 1010 General] Krischu:
Found it. The Sim-in-place switch (the one that is actuated when the soft cover is closed) has gone loose from the PCB. I'm glueing it to the PCB surface and will solder the interrupted copper trace.

--

Christoph
[MDA, XDA, 1010 General] Krischu:
Actually, though I found a broken contact (switch peeled off the PCB), after repair and othe switch being obviously functional again, the screen stays black and the charge led also doesn't get lit.

I bought another XDA-1.
[Hero, G2 Touch Android Development] Lox_Dev:
Hello,

I would like to build a 2.6.29 kernel for Hero for us to run properly Donut roms.

Here is my progress so far:

- I have sync the android kernel msm from git.

# git clone git://android.git.kernel.org/kernel/msm.git

# cd msm

# git checkout --track -b android-msm-2.6.29 origin/android-msm-2.6.27

- then:

# adb pull config.gz ./

# gunzip config.gz && mv config .config

# make PATH=$PATH:android-1.6_r1/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin ARCH=arm SUBARCH=arm CROSS_COMPILE=arm-eabi-

But no luck: it asks me questions to configure the kernel (error in .config?)

I have attached some useful files.
[Hero, G2 Touch Android Development] erikwt:
Try running make menuconfig and manually load the .config file. What happens?
[Hero, G2 Touch Android Development] Z!L0G80:
kernel sources for hero is not available on http://developer.htc.com/ then no hero support in android.git.kernel.org/kernel/msm.git
[Hero, G2 Touch Android Development] Lox_Dev:
Well this guy did it here for sapphire before Htc released kernel sources.... So I think we can.

I copied the hero .config file to kernel root, then "make menuconfig" and loaded .config, then exit and yes to "write .config" question.

Make failed, output attached (make1.txt)

I then applied TigerTael sapphire patch as he "tends to think the memory locations may be correct". Tried to manually load hero's .config and got attached error (error.txt)

I then "make msm_defconfig" and could compile a kernel witch I added to ADP-1.6 boot.img. But no luck it does not work and adb logcat waits for device.... while I am waiting for advices ;)

Regards
[Hero, G2 Touch Android Development] phel21:
Was the downloaded config copied from a build of the same kernel version? If not do "make oldconfig" before commencing with "make menuconfig" or other build.
[Hero, G2 Touch Android Development] Lox_Dev:
'make oldconfig' asks me the questions to configure the kernel.....

Edit:

If that could help:

cat /proc/iomem

00700000-0079afff : msm_panel.1

007a0000-007bffff : ram_console

19200000-257fffff : System RAM

19223000-19513fff : Kernel text

19514000-195ebf7f : Kernel data

a0200000-a0200fff : msm_serial_hs.0

a0400000-a0400fff : msm_sdcc.1

a0500000-a0500fff : msm_sdcc.2

a0800000-a0800fff : msm_hsusb

a9900000-a9900fff : msm_i2c.0

a9900000-a9900fff : msm_i2c

a9c00000-a9c00fff : msm_serial.2

a9c00000-a9c00fff : msm_serial

aa200000-aa2effff : mdp

aa600000-aa600fff : msm_mddi.0
[Hero, G2 Touch Android Development] BlueHawk:
Yes. It will ask you questions as the kernel has added new capabilities - which you will need to configure. Use the help for the new options to guide your choices, although usually the default is the best way to go. Not doing "oldconfig" step will leave you with a busted build configuration.
[Hero, G2 Touch Android Development] CombinedEffort:
I assume you're using the config options from /proc/config.gz on the phone?
[Hero, G2 Touch Android Development] Lox_Dev:
of course I do
[Hero, G2 Touch Android Development] E2K:
Godspeed! (sorry, i cannot contribute anything as I am a total noob, but I'll read your progress regardless!)

(edit: i could beta test though..^_^)
[Hero, G2 Touch Android Development] E2K:
http://xdaforums.com/showpost.php?p=4737995&postcount=37

maybe this could be of any help?
[Hero, G2 Touch Android Development] Lox_Dev:
please read first post
[Hero, G2 Touch Android Development] Lox_Dev:
Now that kernel sources are out, it is time to port changes to 2.6.29.
[Hero, G2 Touch Android Development] Lox_Dev:
Hey guys what would be the best? Apply HTC Hero kernel changes to 2.6.29 or apply 2.6.29 changes from 2.6.27 to hero kernel ?

I have applied HTC changes (3.4Mo patch!) to android2.6.29msm and I can compile it. When I run it it says it is a 2.6.27-dirty kernel... Why dirty ?
[Hero, G2 Touch Android Development] stripealipe:
Lox, it probably means that some of your kernel changes from 2.6.27? or coded for 2.6.27 are not valid in the newer build, hence the 'dirty' reference.

Dirty here meaning spoilt or wrong.

I don't code, and i don't know exactly how much experience you have yourself, but do you reckon Cyanogen or maybe Drizzy could help some of you Hero ROM chefs out with some tips? I'm sure they'd love to give some pointers as to how they've gone about cooking on the Sapphire and Magic.
[Hero, G2 Touch Android Development] marazi:
maybe you did a dirty trick ;)
[Hero, G2 Touch Android Development] packetlss:
You can get dirty tagged when you change owner of the files compared to the user who pulled them from git.
[Hero, G2 Touch Android Development] Lox_Dev:
Well I understand that but I don't understand why it is not 2.6.29 ?

I have done:

git checkout --track -b android-msm-2.6.29 origin/android-msm-2.6.27
[Hero, G2 Touch Android Development] phel21:
Why start with 2.6.29 and not the latest stable kernel (2.6.31.x) now that HTC-patches just have been released. According to the changelogs there's quite a few interesting android-specific improvements in those later revisions.

Is the intention to match kernel version for android 1.6 source? I'd expect generic android kernel-enhancements to be integrated into the kernel.org kernel. In that case it should be fairly easy to use a more recent kernel than that included in an official android release.
[Hero, G2 Touch Android Development] sibbor:
Lox, is this a dead project? Are you focusing on your optimized .27 kernel for our devices?
[Hero, G2 Touch Android Development] dying4004:
looks like Lox_Dev is going with .27 kernel to make it perfect rather than trying for .29.
[Hero, G2 Touch Android Development] Lox_Dev:
That is it. In fact there is a lot of work to port HTC modifications to 2.6.29. I don't have the time nor the kill for it. This thread intends to be a space for development sharing around 2.6.29 kernel for hero. But no help came here....
[Hero, G2 Touch Android Development] E2K:
that is expected, most skilled developers have a G1, and they don't give a **** about the hero
[Hero, G2 Touch Android Development] adwinp:
if you take a look at arch/arm/mach-msm, you'll find board-hero* specifics.

;]

These (and others) are absent from the cloned repo from android.
[Hero, G2 Touch Android Development] Lox_Dev:
So?

If you want a diff between htc's 2.6.27 and msm-2.6.27, here it is:

- new files added

- patch for modified files

Patching an msm2.6.27 kernel with those works.

Then what? Just add new files and apply the patch to 2.6.29, you'll see many rejects. Now what? Go through each rejected modification file by file and manually apply the chnage, if it is needed of course and have fun.

It is a long and boring work, which I have no time for.
[Hero, G2 Touch Android Development] Lox_Dev:
Okay guy, to help us a bit patching 2.6.29 kernel, have a look to that exploded patch tree

Fell free to try each one and report here (for now) the status: "applies well", "applies with errors", "not needed as already in 2.6.29". If a patch does not apply and is needed, please create a corrected patch file and submit it here.