yashsingh1/xdaforums huggingface dataset:
[HD Mini Android Development] wismar:
Developers, can you make android run from the folder? It would be very convenient. Sorry that I used this thread.
[HD Mini Android Development] fatslim:
cardsharing, Does this "update for version 29.04.2011, our android is faster" also includes the video fix that you added earlier ?

sry to bother :P
[HD Mini Android Development] zalaros:
Does it include the mic fix? Thank you for your hard work :D
[HD Mini Android Development] codiak:
If you read the post, you would know the answer...
[HD Mini Android Development] warkim:
In new fix video works.
[HD Mini Android Development] Smudoooo:
the video works, but in my mini is the video upside down.
[HD Mini Android Development] -r0bin-:
ok, i got the mic fix working perfectly.

at the end, it's only a stupid RPC call to enable mic and nothing more :rolleyes:

Special thanks to schlund that showed me the winmo dll where to get RPC values

Here is the func:

static struct msm_rpc_endpoint *endpoint = NULL;
void photon_pm_mic_en()
{
int ret;
int mprog=0x30000061;
int mvers=0x10001;

struct {
struct rpc_request_hdr hdr;
uint32_t data;
} req;

if (!endpoint)
endpoint = msm_rpc_connect(mprog, mvers, 0);
if (!endpoint) {
printk("Couldn't open rpc endpoint 0x%x vers 0x%x\n",mprog,mvers);
mvers=0x0;
endpoint = msm_rpc_connect(mprog, mvers, 0);
if (!endpoint) {
printk("Couldn't open rpc endpoint 0x%x vers 0x%x\n",mprog,mvers);
return;
}
}
req.data=cpu_to_be32(0x1);
ret = msm_rpc_call(endpoint, 0x1c, &req, sizeof(req), 5 * HZ);
if (ret < 0)
printk(KERN_ERR "%s: rpc call failed! (%d)\n", __func__, ret);
}

You must call it here:

file=mach-msm/qdsp5_comp/snd.c

func=snd_ioctl(...)

pr_info("snd_set_device %d %d %d\n", dev.device,
dev.ear_mute, dev.mic_mute);
+
+ //r0bin: enable mic for photon
+ photon_pm_mic_en();
+

msm_rpc_setup_req(&dmsg.hdr, RPC_SND_PROG, RPC_SND_VERS,
SND_SET_DEVICE_PROC);

rc = msm_rpc_write(snd->ept, &dmsg, sizeof(dmsg));

You can add the photon_pm_mic_en() function in the same file (snd.c)

Cardsharing, tell me if it's ok for you or if you need a patch or whatever else ;)

Guys, enjoy and please tell me if mic is working for you, and if there is no other bugs regarding audio :)

I will check now the 3G, and if you can explain to me the G-sensor issue, how to trigger it and how to test it because i dont know about this. thanks ;)
[HD Mini Android Development] lucaogame:
Emh, i don't know if you have this problem, but in my phone when i'm in android, the time goes.. crazy. It's 22:21 now, in my phone is 23:48. I don't speak english very good so i can't explain the problem very well :(
[HD Mini Android Development] silb:
same problem here too. I set the time to the actual one...about an hour later the time is completely different.
[HD Mini Android Development] fernando2610:
You're the best guys, I know that you can solve this fixes. Thanks, waiting for the file....:-)

Enviado desde mi HTC Mini usando XDA Premium App
[HD Mini Android Development] silb:
may someone compile the code with the new mic fix and upload it? I have no linux machine atm, im at work.

Thanks
[HD Mini Android Development] tzacapaca:
here it is ;)
[HD Mini Android Development] codiak:
Search for it. Its here in the forum!

Awww tzacapaca, dont make it too easy!! ;)
[HD Mini Android Development] tzacapaca:
he didn't know cardsharing compiled it already...it was hard for me too to find it lol

@cardsharing keep the fixes a bit more organized pls,I suggest you to open a thread to upload all the fixes :)
[HD Mini Android Development] silb:
awww sorry. I always search for the latest posts which were made but i didn't see it. Thanks mate!:)
[HD Mini Android Development] ttcome:
mic is very very ok .i use it call about twenty minutes ,no problem. you are great! thanks all devs. the man of HD mini appreciated to you~

hi,rObin, mic of Headphones is work,but I cannot hear the other, Whether it was because Headphones driver was not Loaded,can you add it when Start the machine ?? and GPRS!
[HD Mini Android Development] schlund:
hey robin, great job you have done :) i did a quick test on it:

-headset speaker is not working, yet

-do you have an idea how we could manage to get changing the call-volume ? seems to be an android problem...

-time is running to fast, however, if you switch back to windows and to android again, time is ok. Seems sync via rpc timeremote is ok, what does the clock-speed manage ? I have no idea..

Do you have any idea where to start to get GPRS working ? logs seem to be ok, but it can not connect to internet.. could this also be a android problem ?

i wish i could spend more time on this.. :(
[HD Mini Android Development] -r0bin-:
yes, i didnt tested this, i didnt know so many people use it :-)

maybe need a special fix again :) i didnt tested this either.

there is something related to volume in raph/topaz qdsp snd.c

this might be because some RPC for time management is not working, thus Linux tries to compute the time but not really accurate.

another fix again :)

I fear this is related to android. i figured out the data connectivity was managed by RIL (radio interface layer, see ril.dll and rilphone.dll)

In kernel src, there is a little layer in the kernel: smd_qmi.c

HTC Leo uses a different one for WinCE: snd_qmi_wince.c (i tried to use it but similar problem)

But then we'll probably have to fine tune and replace the android RIL library.

look at Topaz,Raphael etc, they use a specific ril library fine-tuned for them, the AT commands differs.

see ril library from Xandroid project:

https://gitorious.org/xdandroid/hardware_xdandroid-ril

see also original ril library:

http://android.git.kernel.org/?p=pl...ads/froyo-release;hb=refs/heads/froyo-release

yes great idea, come back to dev ;)
[HD Mini Android Development] -r0bin-:
htc_acoustic.c is not used here

it's for bluetooth headset, nothing more
[HD Mini Android Development] _Madmatt:
Hi,

Guys, I have a quite fast connection ;) If you can tell me how I can add the modules (via PM or here in the forums), I can upload the edited .ext2 file for you ;) I now still use the Froyo image that robin uploaded somewhere.

I have Ubuntu and Win7. For Ubuntu, please be detailed in your explanations, because thats new to me.

EDIT: I managed to mount the EXT2 file. I only wonder now, where should I place the new things Cardsharing made? :)
[HD Mini Android Development] tzacapaca:
hi,

in lib/modules
[HD Mini Android Development] SHAYDER:
Sorry for question, but i have some problem with dmesg.

What i do wrong?

arthur@HP-ProBook-4510s:~/androidSDK/platform-tools$ sudo ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
????????????	device

arthur@HP-ProBook-4510s:~/androidSDK/platform-tools$ sudo ./adb shell
# dmesg
dmesg: not found
#
[HD Mini Android Development] _Madmatt:
Indeed Cardsharing, I have ran a new system.EXT2 with your modules and it starts but fails after a while. I hope you can find the right config for it. I will upload the system.ext2 maybe later today, but I'd like to make it a Gingerbeard instead of Froyo :)
[HD Mini Android Development] _Madmatt:
Okay share the new modules when they are done :) I'll implement and share.
[HD Mini Android Development] SHAYDER:
I use Cotulla kernel.

I solve this problem.

Problem not with kernel, problem with system.ext2 (Froyo)

It work in Cotulla system.ext2
[HD Mini Android Development] SHAYDER:
When I checked your kernel, I have not tested adb.
[HD Mini Android Development] -r0bin-:
my 2 cents:

based on the logs:

1- there is a seg fault in "at fs/fs-writeback.c" line277 func "__writeback_single_inode()" that we need to fix

2- when activating the wifi, probe seems to fail because the sdcard cannot be activated (mm0). maybe the driver is trying to load the firmware that is located on sdcard (firmware path provided in kernel or driver src)? we need to put debug message here in the driver (printk)

same for me, not enough time to play with the linux right now, next week might be better
[HD Mini Android Development] rasoooli:
Hi !

Please Increase "Internal Phone Storage" In Rom , ( For Install More Game & App )

tnk
[HD Mini Android Development] fatslim:
dude, what the hell are you talkin 'bout. They are working to get the new kernel working and things that didnt work before. Who cares about internal phone storage right now. First we have to get it working 100%
[HD Mini Android Development] _Madmatt:
Indeed and when we succeed, the SD card should work as well, so then you choose how much memory you want. 8GB, 16GB or 32 maybe if you want to install the whole Android Market...
[HD Mini Android Development] ssamth2003:
Cheer Up!!!

Hi,

I'm not a developer, even the programmer. just a normal user, but i want to cheer up for all your guys here to successful, then me and others can follow it. thks my great developers.
[HD Mini Android Development] schlund:
Hey guys,

i will give a quick status-report!

cardsharing is absolutely right, it is a very hard and time consuming job for none-developers.

Last week i did serveral trys on .32 kernel but i didn't succeed because changes were so confusing.

This week i decided to do "reverse-engineering" on cotullas port and use this knowledge to build a CLEAN and easy to understand port for .32.

And seems like fortuna likes me, htc decided to publish their aria .32 kernel :D

http://developer.htc.com/
[HD Mini Android Development] _Madmatt:
NICE! When (do you think) will it be ready? :)
[HD Mini Android Development] schlund:
at first, i will take a look at htc liberty kernel source. maybe you know, .29 from htc was a mess :D (tons of warnings)

after that i will complete minimizing cotullas kernel and start porting a .32 kernel. (either cyanogenmod- or htc kernel). this kernel will have less functionality, but it makes it much easier for us to debug and work on it:)

i will do that till the weekend
[HD Mini Android Development] asorcinelli:
Fast feedback on mic.

The mic works fine. I did some test calls. I can hear well and the other phone can hear my voice.

The only strange thing is that the other phone have an "echo" and so the pearson that speak hear his voice.

I don't know if it's only my problem. When I use Windows Mobile I don't have this problem.

That's all.

Thanks a lot for all your work and sorry for my poor english.
[HD Mini Android Development] 15131331231:
Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
[HD Mini Android Development] schlund:
that is because it needs internetconnection :)
[HD Mini Android Development] -r0bin-:
thanks for your feedback. i noticed this too, another thing to add to the "to be fixed" list :(
[HD Mini Android Development] reza_az:
thanks for your -r0bin-..

The mic works fine. I did some test calls

r0bin time I'll get over it s problem can not install some programs will

I am sorry for bad English
[HD Mini Android Development] pierpaolo789:
Sorry I did everything as from post 294 of cardsharing but not their stays fixed in the text
[HD Mini Android Development] schlund:
hey guys,

i faced the GPRS/3G problem. Android gets all information about network perfectly...

but i found out one thing: it cannot read Phonenumber from SIM card.

My Question is now: could THAT be the problem with connecting? does anyone have an idea how to debug that ?
[HD Mini Android Development] hrustile:
Hi developers. I tryd to port cyanogenmod from aria to us devices, but... ITS NOT BOOT! This is link for modifyed system.ext2 file. Please help with porting

http://www.mediafire.com/?9kp0vun3c2b6m5u
[HD Mini Android Development] tzacapaca:
hey schlund,

i found the solution,but it only works on rooted phones,i tried and it didnt work for me :( ...for others worked

check it out http://community.giffgaff.com/t5/He...ck/Android-Phone-Number-is-Unknown/td-p/21425
[HD Mini Android Development] schlund:
our android is rooted.. but as i understand this is issue "normal" and not important. SIM is identified by IMSI number .. and this feature is ok on our android.. i will have to continue searching..

a look on "ConnectivityManager" Class sounds interesting..
[HD Mini Android Development] tzacapaca:
seems is android version fault regarding to this ---> http://xdaforums.com/showpost.php?p=7869197&postcount=10

cyanogen himself posted about this issue too http://xdaforums.com/showpost.php?p=7884300&postcount=16

edit:http://forum.vodafone.co.uk/t5/Network/Android-My-phone-number-does-not-show/td-p/514518 here someone said it's phone fault not displaying phone number..hmmm
[HD Mini Android Development] schlund:
my fellow citizens:)

i want to share a log of a attempt to connect.
[HD Mini Android Development] popy234:
Still facing problem with screen after booting android. Also problem with video & Audio play back
[HD Mini Android Development] schlund:
i compared radiolog to an other device that has quite similar system. the only difference is here:
[HD Mini Android Development] derefas:
i test cynogenmod 6 with the latest kernel i have reboot when data.ext2 making

upd - about g-sensor , i think problem in bma150_usr in /system/bin

i'll test fix from hd2... this is don't help

upd - i'll make boot dir android in sdcard , because i dont like when sdcard ****ty
[HD Mini Android Development] ttcome:
some translation about gprs and FM !!

hi.devs,i look at in hd2 ,it use rmnet for gprs. so perhaps ppp in hdmini is not can be used, here .i have driver for rmnet.. i think we can try rmnet in hd mini!

who can add it ??? here is msm_rmnet.ko

other，who can give a log for Headphones when FM radio broadcast？
[HD Mini Android Development] -r0bin-:
this value is given by windows

i extracted value using haret directly with vdump, and written down the windows value at the same time.
[HD Mini Android Development] schlund:
This is a good idea, but at first, we try to fix existing code, we had some progress here :)
[HD Mini Android Development] schlund:
Battery Formulas can be found in htc_battery_smem.c:

check the comments, they are very good:

Formula for Voltage:

buffer->batt_vol = ( ( buffer->batt_vol * 5200 ) / htc_adc_range );

Formula for Current (if charger is not present):

buffer->batt_current = ( photon_discharge * 2600 ) / htc_adc_range;

htc_adc_range is done by this Formula:

htc_adc_range = ( batt_vref * 0x1000 ) / 1250;

with batt_vref :=

#define GET_ADC_VREF readl(MSM_SHARED_RAM_BASE + 0xFC0E0)

Battery ID is used to find out which capacity should be used. Photon does only have one. So this is a useless value for us.

If you want to clean out some parts of the code look at comments
[HD Mini Android Development] -r0bin-:
All the values above are not completely accurate, they have been copied from the other battery values in the same file.

they are all part of the complex algorithm that computes the percentage value.

i dont know how you extracted those values i have no clue sorry.

Maybe you should try to focus on other photon bugs.

I will have a look later on battery, today it is not critical to me.
[HD Mini Android Development] -r0bin-:
guys, i created a post to list all the bugs we need to fix on android photon:

http://xdaforums.com/showthread.php?t=1073817

Feel free to comment ;)
[HD Mini Android Development] 15131331231:
hey.I come from China,we have got the battery working!with the kernel 2.2!and now he is porting 2.3kernel,it boot,but battery is very warm.I will post them here. remember his name:云安全服务。and please remember ours forum:bbs.xda.cn!
[HD Mini Android Development] cardsharing:
Good news and good luck with porting
[HD Mini Android Development] zalaros:
Thank you for all your hard work :) I wish you the best ;)
[HD Mini Android Development] schlund:
I love your forum, seems to be a great fanpage *thumbs up* :P
[HD Mini Android Development] -r0bin-:
actually we already have rmnet included in any photon kernel release.

it is compiled by default.

do you know how to use it?
[HD Mini Android Development] Gipsy_Mickey:
Guys? any progress, any news, pls?
[HD Mini Android Development] bruce2728:
All new builds are now posted on the google code page

http://code.google.com/p/photon-android/
[HD Mini Android Development] -r0bin-:
guys, good news: 3G is almost working

finally we dropped rmnet, and used PPP from HTC Leo.

it is not 100% stable at the moment (disconnect/reconnect), but you can get google and other internet pages to load on photon

(special thanks to Letama for his help)

will post the changes in photon website later, and I'll work with Schlund to build a release (thanks to Schlund kitchen 2.0 ^^)
[HD Mini Android Development] spithash:
thats very good news! Thank you Robin & Developers!

:)
[HD Mini Android Development] pietje63:
For those who want to know the difference between rmnet and ppp:

http://xdaforums.com/showthread.php?t=776249&page=2

In short:

Android uses rmnet, linux uses PPP. There have been more projects switching from rmnet to ppp due to problems with WinMo phones support rmnet.
[HD Mini Android Development] -r0bin-:
yeah, we spent too much time on rmnet and it wasnt worth it.

RMnet works well if you have an android radio (android-based phone)

Our photon has a WinMo radio, somehow there are incompatibilities that are really difficult to solve, so we had to use PPP instead, which is as good solution as RMNet, however seems to drop the connection sometimes...
[HD Mini Android Development] -r0bin-:
good news, 3G is now working great (good speed, very little disconnections)

many files needs to be modified, but schlund the chief is working on a clean full release: be patient... :-)
[HD Mini Android Development] Ahmad.elhajjar:
Good Job guys...

Big thanks to all guys who are working in this thread...

A big smile is shown now to all people who have photon...

togother to the 100% working android...
[HD Mini Android Development] popy234:
Thanks schlund & r0bin.............

Waiting for new release.
[HD Mini Android Development] 15131331231:
thanks,it is really a good news.but how about GPRS?how it going?
[HD Mini Android Development] MobileMini:
I think when they say 3G, it actually consists of all mobile (internet) data connections (GSM, EDGE, GPRS, HSPA..), or am I wrong?
[HD Mini Android Development] schlund:
you are right :)

it will take me some time to build a fully working release, i will also have to include a fix for a small bug with dns lookup.

i hope i can finish it this evening...
[HD Mini Android Development] superzuan:
good job guys. a lot of respect from me 2 you guys
[HD Mini Android Development] stanley57:
:D

good job guys and thank you so much!! you're the best! Can't wait any more :rolleyes::D:D
[HD Mini Android Development] -r0bin-:
guys, see here:

http://xdaforums.com/showpost.php?p=14272464&postcount=559
[HD Mini Android Development] popy234:
Thanks............r0bin.............................................
[HD Mini Android Development] pietje63:
In the latest release (30-05) GPRS (including 3G and HSDPA) workst nicely (not as stable as using winmo, but very useable).

I do however have a new 'issue'. Adding a MS Exchange/Activesync account (Hotmail in my case) does not work. It goes pretty well (it does validate the login details) but after that, once I selected the thing to synchronize (mail, calendar, contacts), it gives an error and requests to retry later.

Anyone else with the same problem?

p.s. while in previous releases I did manage to boot with the SIM card inside - also the first boot -, that did not work for this release. I did have to boot and complete the setup withour the SIM card.
[HD Mini Android Development] Adrien95120:
yes it's me like this before with previous versions I could leave my SIM card but the screen stays black 30/05/2011 :S!
[HD Mini Android Development] Adrien95120:
30/05/2011 with the screen stays black why?
[HD Mini Android Development] -r0bin-:
Thanks for your feedback.

If you still have this error, feel free to create a new bug report here:

http://code.google.com/p/photon-android/issues/list

it will help to have debug traces.

you can use adb, download it here:

http://code.google.com/p/photon-android/downloads/list

Try to synchronize your exchange account.

Then, connect your phone to PC with USB cable and type in a command shell:

# adb devices list (check if your phone is recognized)

# adb logcat -d > logcat-sync.txt

# adb dmesg > dmesg-sync.txt

Create the issue report, and attach the two logs (or use pastbin.com)

Thanks!
[HD Mini Android Development] -r0bin-:
guys, please rtfm here:

http://code.google.com/p/photon-android/wiki/Android_Installation_Tutorial

it is said "remove SIM card before first boot"

if you still have black screen even after removing SIM card, delete all and try again without SIM card.
[HD Mini Android Development] bruce2728:
I never have problems leaving sim card in on first boot, is it certain networks that have problems, im on orange uk
[HD Mini Android Development] schlund:
this problem happens because the load on first boot is increased now (with searching for internet network and updates). this can be solved with removing sim card, OR if you are doing first boot WITH sim card, give it a few minutes, and do not try to run setup immediately :) maybe i find another way to solve it, be patient!
[HD Mini Android Development] pietje63:
Thank you for posting this guideline! Unfortunately I couldn't get my device listed with adb devices list (appears to be a driver problem on my Windows machine, it does show in Device manager, but with a nice yellow !).

Will further investigate Thursday and report.

[edit]

Damn, the problem is probably an incorrect username. I added @hotmail.com and it worked. Well in that case the error of Android is not user friendly, but I guess this is not something the dev's can help us with.
[HD Mini Android Development] fernando2610:
Hi, i try to install the game GUERRILLA BOB, and doesn´t work, its says "the package cannot be instaled", that also happend with "Sacred Odasy", "Real football 2011" and other games, why happen this? any solution??

thanks
[HD Mini Android Development] Gipsy_Mickey:
ohhhhfff... how many times will it repeate... rtfm man...

just unmount sd card, install the game, mount sd card, enjoy...
[HD Mini Android Development] pwel:
Guys, this is a development thread. Don't polute it with these kind of questions! Move them to another thread (the tutorial one), or start a new one. Or indeed, do a better search!
[HD Mini Android Development] fernando2610:
hey you're so useless, of course I already tried to do that but doesn't work. any one with a good solution?
[HD Mini Android Development] _Madmatt:
Maybe it's a good idea to share the work you two, instead oof doing twice the same? :)
[HD Mini Android Development] -r0bin-:
otherwise, you can try out easily with a symbolic link:

ln -s aaaa bbbb

then try to detect again card presence
[HD Mini Android Development] iPlasm:
I wish if I could install this Andoid 2.6,

should I put this zImage & the Kernel folder to the Cottulla's files? (I mean replace)

the zImage is known, but the kernel folder what should I do?

Thanks
[HD Mini Android Development] tzacapaca:
no you can't put or replace,everything must match(zImage,kernel,android)afaik...

anyway,why would you replace?there is still no ported drivers for Mini :( ..so it won't change anything.btw 2.6 it's kernel version not Android :p
[HD Mini Android Development] codiak:
Oh Damn.. he discoverd this thread...
[HD Mini Android Development] tzacapaca:
:))))))))))))))))))
[HD Mini Android Development] codiak:
Sorry for getting offtopic...

iPlasm, this is a development thread. If you cant help here, go away!

Sorry for beeing rude, but you are somewhat annoying!

Now I have to change my thread subscription...