yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] gadget421:
ok figured it out...

use terminal

put phone.apk on sdcard

su

mount -o rw,remount /dev/block/mtdblock

cat /sdcard/phone.apk > /system/app/phone.apk

reboot

done:)

mytouch
[G1 Android Development] doc_pt:
force UI

Cytown,

V 29 is included in Cyangoen now I believe. Problem is I can't uncheck the Force Touch UI on my Moto Droid (I've tried it on Cyanogenmod 5.0.7 and Steam 4.0.6.1. What's the easiest fix for this? I am trying to get the in phone screen to have only the dialpad drawer to stop hanging up on people:)

Thanks
[G1 Android Development] reddevil00:
Hi cytown,

I am learning how to extend your Phone app. I downloaded cyanogen source code (5.0.7) which includes your source code. I could compile and flash built ROM. Then I decided to create a new project in Eclipse for the whole source code as instructed in AOSD site. However, there were errors with build path, which is:

The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Enum.

I would like to know what is the correct way to modify the source code. Do I need to you Eclipse or just use some text editor, e.g. vi, to modify the source code and compile it again? In case of Eclipse, do you know how to fix above error? And how can I compile the source after modifying something in Eclipse?
[G1 Android Development] zonbal33:
Whenever I push the (hdpi) Phone.apk, everything goes OK. Whenever I go into Settings -> Call Settings, I get FC's right away? Anyone know what I'm doing wrong?

BTW, I'm on a Moto Droid ESE81.
[G1 Android Development] cytown:
Maybe you can take a try on my uploaded v.29.
[G1 Android Development] cytown:
Yes, you can edit with Eclipse, but that should have some trick for that.

You need a special user library for contain you personal compiled jar(they can be found in out/xxx/xxx_intermediates/ folder with named classes-full-debug.jar), and you can use this library in you build environments, and remove the library in sdk.

Then you can compile.

BTW, if your app need a JNI, you need compile them separately, for Eclipse can not compile JNI.
[G1 Android Development] cytown:
I have no idea about this, ESE81 was not in AOSP tree, so I can not sure the compatibility.
[G1 Android Development] doc_pt:
Worked like a charm - thanks!
[G1 Android Development] 2girls1cup:
im looking for a phone.apk with an on screen end call button for eclair. does one of these versions have that?
[G1 Android Development] Janis:
Yes. If I'm not mistaken, all of the ecliar versions do. I'm not sure about the other versions.

One thing that bugs me is that it turns your red key into purely a screen off key, so that you have to use the on-screen button to hang up, at least on my G1 with CM 5.0.7t7. If I mis-dial, I have to wait for the UI to pop up in order to cancel the call., which means sometimes it rings on the other end before I get a chance to hang up.
[G1 Android Development] Janis:
Can anyone tell me why:

1. I don't get a choice to use Google Voice as my voicemail handler

2. When I click on the pic in the call log, all I get is the open contact icon, and then when I click on that, I get a pop up that says "this contact does not exist (but everything works fine from th contacts tab)?

It's te one from CM 5.0.7t7. I'm going to try pushing the one from this thread to see if that solves. I"m still curious as to why, tho.
[G1 Android Development] haozheng91:
the latest CM5.0.8-test series is using v30.. where did that come from?
[G1 Android Development] cytown:
That's part of Contacts, not Phone app.
[G1 Android Development] cytown:
Yes, that's from me too, just not been released.
[G1 Android Development] haozheng91:
if you don't mind.. changelog for v30?
[G1 Android Development] cytown:
Hangup from wired headset + pulldown bar by krazykrivda@github.

Update some language pack.

BTW: still some bug on hangup function, so just use it at your own risk.
[G1 Android Development] chillbeast:
Any chance we could get an option to remove the Hold/Unhold toggle from the top-left of the screen?

I tend to hit it accidentally with my ear quite often. I'd much rather have to hit Menu -> Hold to put someone on hold.

Forgive me if someone has already requested this, we wer just discussing this issue on Reddit so I figured I'd ask :D
[G1 Android Development] doc_pt:
Froyo

I have tried with BB Froyo and Onix Froyo but v29 is a no go. Any plans for a port to Froyo? No cytown makes it hard to stick with Foyo - even with Flash.

Moto Droid
[G1 Android Development] celoxocis:
where do i disable or re-allocate the hold button?

i installed the eclair v29 using android sdk everything went smooth but im unable to find that option :(

edit: nevermind i found it! for those that might be looking for its the "Force Touch Keyboard" :)
[G1 Android Development] Ramdanih:
Thx... I will try.. :)
[G1 Android Development] cytown:
Try left hand mode, that will move the button to top right.
[G1 Android Development] cytown:
Froyo was not open sourced, so noway for this right now. But sure will support Froyo later.
[G1 Android Development] flip3547:
I know it's been said before, but can we somehow group call logs again?:o
[G1 Android Development] cytown:
update to v.30.1
[G1 Android Development] yjagota:
Awesome man. Thanks a ton for adding nickname support.
[G1 Android Development] Bigt2003:
Is there any way we can get a 'force use touch ui' option for donut?
[G1 Android Development] haozheng91:
v30.1 causes FC after hanging up on CM5.0.8 final.
[G1 Android Development] jon6206:
anybody able to confirm this?
[G1 Android Development] Roofus8658:
Yeah I got it too.
[G1 Android Development] Wysie:
cytown: I have a HTC Magic, and was wondering if it's possible for you to include the ability to set the colour of the LED when I have a missed call (something like chompSMS). Also, the trackball will light up white usually (when I've a missed call), but since using this Phone.apk it's not happening. I'm assuming that's because Dream does not have such functions, sorry if it's too much to ask.

Thanks for the hard work!
[G1 Android Development] cytown:
This modified phone app will blink led, but can not set color, I think it's enough.

Also trackball light up? I have no idea about how to do that....
[G1 Android Development] kevev:
The way the iPhone work is super easy. It uses the light sensor in the screen. There is a tiny hole in the front glass near the ear piece. When the phone is near your face the light is blocked from the sensor and the screen turns off.

Back to the G1. I just realized what the issue would be. If you are rolling around, or lay down then sit up the gyro would give false positives and the display would unlock. What about using the multitouch feature and reading your cheek pressed against the screen? Most ppl do this I think. May be an issue for others.

Or we could try the gyro thing for kicks and you could get a gyro reading of the motion of the phone moving from the ear to in front of you. It would have to be for right as well as left(like me) handed. I am wondering if rolling around would be close enough to the same motion. If not then we are in luck.
[G1 Android Development] xenio2000:
Woowww pushed phone.apk V6 and now we have a cool light blue notify led flashing when we miss a call on G1...

fantastic, thanks a lot for your work.
[G1 Android Development] MetalMessiah78:
Cytown,

The "Missed Call" app in the Marketplace lets you choose the color you want the LED to flash as well as the ringtone and custom vibrate alert you would like to use to notify you. You might want to take a look at that if you think about implementing such features.

Personally, I am very satisfied with what you have done, and already use Missed Call for that notification as well as notification that my Bluetooth is on and calendar reminders, so I do not need it. I just bring it up if you want to implement it for those who have requested it.

Again, thank you so much for such a much needed feature. It's developers like you that make me enjoy my phone more and more each day and make me glad I chose the G1 over the iPhone or other comparable phones.
[G1 Android Development] xenio2000:
I used a lot Missed Call and Missed Reminder, but now thanks to Cytown I can uninstall it and have a service/application less running in background :)
[G1 Android Development] dlorenzod:
If I wanted to revert to the original phone.apk, how would I do so? Where would I download it? I pushed your phone.apk with adb and rebooted, and now my phone gets no signal. I get force closes on com.google.process.gaps and on the phone process, whatever it is. Now what?
[G1 Android Development] cytown:
light sensor..... that's the basis of this function.

as for check motion, i think it's too complex for this such small function.
[G1 Android Development] cytown:
Trust me, it's not so hard to add choose color function, I just think it's useless for most ppl, anyway, did Mms app has the feature for choose notification led color? Definately NO! That will just make app too complex and not so useful for most ppl.

I am very glad you like my patch, for me, I choose G1 is just because it's open for developers like me, we can almost do anything on it, it's hard to even thought in all other phone system.

Any good ideas, just let me know, let's make it better and better:)
[G1 Android Development] cytown:
Extract Phone.app from the ROM you original installed, it's in /system/app dir of update.zip.

Then install as the #1 post said.
[G1 Android Development] Wysie:
cytown: Ok, I personally use the color LED function as the colour would then help me determine the notification directly. For example, a red LED could mean a missed call (which I think is more important than an SMS), and so on. That said, it's your Phone.apk and it's already awesome! Thank you :D.
[G1 Android Development] derfolo:
dlorenzod, I have a suggestion: if you added a signature to your user profile with your phone specifications, people on these boards might be able to offer more help to get things working for you. Plus, your configuration information could alert developers to certain things that need to be corrected.

Just a thought.
[G1 Android Development] cytown:
RED is already been used in many apps, so I just choose 00FFFF as it's rare used.
[G1 Android Development] cytown:
So what.....
[G1 Android Development] MetalMessiah78:
Cytown, exactly what type of ideas are you looking for? A few people have already suggested choosing the LED color, but you believe that wouldn't be useful, so I'm trying to get an idea of what you consider a good idea or a useful feature.

While other apps might not allow us to change the led colors, many do. I use SMS Popup to change my LED to purple. Missed Call to change my missed call LED to red, calendar notifications to orange, and Bluetooth to blue. It's great to know visually, like Wysie mentioned, what is awaiting you without having to turn on the screen.

Ultimately it's your app and you can do whatever you want to it, but we are trying to give you good ideas that while they might not be useful to you, would be useful to other and would make this app better and better.
[G1 Android Development] pistol4413:
commands

the commands used to install in the 1st post are for terminal correct?
[G1 Android Development] cytown:
That's definately not MY app, that's part of android, I just make few modification, nothing more.

For the modification, I will try to make it easier to use, not make it more complex. If it's really useful for anyone can change any notification led color, I do think all the developers will do that, but I found most apps were not provide this feature, include google themselves. Also for me think so.

That's the only reason I did not provide the feature.

Besides, more options do not always mean better, they will become more complex in most case, just as put 10+ key in a mouse.
[G1 Android Development] pistol4413:
how to install?

do i run the commands in terminal? can omeone provide some insit as to how to install beyond what in the 1st post.

thanx!
[G1 Android Development] xenio2000:
I don't know if it is related to the Phone.apk, but when I place a call the picture of who I am calling does not show, there is only a generic Android Logo image.

It is only happening to me? (I am on Cyanogen 3.9.6 mod) or it could be a nice improvement showing the picture of who I am calling.
[G1 Android Development] cytown:
Yes, I got the bug, I'll check it. I do think it's not because of my modification, that the bug of the source.
[G1 Android Development] USHERROB:
yup, same here...just extract cm508 update, find the Phone.apk in /system/app & refollow the steps posted in OP to go back to previous version for now w/ no fc
[G1 Android Development] yjagota:
Same here.
[G1 Android Development] cytown:
Sure it is. Just because CM5.0.8 was a little late to AOSP, and there was a new internal api was not updated, which will be called after hangup.

Maybe I can just comment them out for CM5.0.8 or earlier, or just wait for a new update for cmmod( I am sure it won't take long time)?
[G1 Android Development] Arkain2K:
Hmmm...I ponder if I should push back the old Phone.apk, or wait for the update :)
[G1 Android Development] foxct2005:
Can I use your file phone.apk in a Vanilj Build (Eclar) on HTC Polaris with Haret ?

Best regards.
[G1 Android Development] renmet:
Wrong Thread, sorry- transferred to Contacts.apk
[G1 Android Development] cosmique:
thanks so much :o

// hm i have the problem with cm as well
[G1 Android Development] sunzoje:
having fc after hang up in cm 5.0.8.
[G1 Android Development] cytown:
see post above.
[G1 Android Development] cytown:
It's up to the compatibility with newest AOSP Eclair build.
[G1 Android Development] minde_hu:
hi , i install the phone.apk to my samsung i5700 (jc4 + LK2.06 + LK 2.07 without base package)

i install from root explorer and recover mode , but every time is error

1. the phone is no signel

2. call settings can't open,show error message;

my english is no good ,please help me,thanks
[G1 Android Development] yjagota:
You need to set the permissions. Open Root Explorer, go to /system/apps, mount r/w and set phone.apk's permissions to:

User: Read/Write

Group: Read

Others: Read
[G1 Android Development] minde_hu:
permissions no problem
[G1 Android Development] cytown:
The point is which version of the rom did you used and which version of Phone app you installed.

Mostly it's the compatibility problem.
[G1 Android Development] minde_hu:
Phone: samsung i5700 JC4 + LK2.06 + LK2.07

Phone.v30.1.eclair.zip

Phone.v29.eclair.drd79.zip

(SamdroidMod Kitchen v1.x.x All in One ) XDA Phone.apk v.29

XDA Phone.apk@315x315 + Contacts.apk

I think the problem is JC4

use SamdroidMod V 1.2.x.twm Light (58MB) [ Chinese, English (TWMJD3)] is OK , but i don't like JD3 ,Because sometimes JD3 restart when i open soft , maybe the JIT problem ,whatever , i like JC4.

i think i'm give up Phone.apk
[G1 Android Development] cytown:
I don't know anything about JC4, LK2.06/07, as well as JD3, are they codename of ROMs?

All I know is if you ROM was based on AOSP or compatible to it, you can use the modified Phone app, if not, you must be very lucky for using it without errors.
[G1 Android Development] cytown:
Froyo version ok.
[G1 Android Development] f1n4rf1n:
I/ActivityManager( 412): Process android.process.acore (pid 597) has died.

I/WindowManager( 412): WIN DEATH: Window{4639b960 com.android.contacts/com.android.contacts.DialtactsActivity paused=false}

I/WindowManager( 412): WIN DEATH: Window{463d6708 com.android.contacts/com.android.contacts.ContactsListActivity paused=false}

W/WindowManager( 412): Unable to find ITelephony interface

On SetROM 3.3 (Froyo for HTC Desire)
[G1 Android Development] cytown:
Can you sure it's Phone app's problem?

I can not find any info about this from the log.
[G1 Android Development] f1n4rf1n:
Well, your latest release crashes (Phone doesn't show signal, ...) - pushing back the original phone.apk (in recovery because off S-ON) everything is working again.

Do you have any other requirements? Where e.g. is ITelephony implemented?
[G1 Android Development] cytown:
Can you put your log here?
[G1 Android Development] Chahk:
Here's the crash log of the HDPI version from my N1 running MCR r21 (FRF91-based) ROM:
[G1 Android Development] lh00752998:
Support Chinese language?
[G1 Android Development] kannyhsu:
loved this app ever since i started using CM rom

anyone successfully put this app in Kang-o-rama 0.9 final sp2 rom? i have tried what i know of, but still cant get a signal.
[G1 Android Development] cytown:
Looks like some kind of permission problem, how did you install this app?
[G1 Android Development] cytown:
Sure, I am Chinese.
[G1 Android Development] cytown:
You can ask the rom builder for the rom based on which aosp version, then you can download and install the right one. If not based on aosp, you can not get it running.
[G1 Android Development] mjones73:
Not sure if it's been posted but I tried the newest version with Sapphire .7.0 which is Froyo based, it worked fine, the only minor issue is the slider for answering an incoming call was off center. This is with a Moto Droid.

Thanks,
[G1 Android Development] Chahk:
adb remount
adb shell rm /system/app/Phone.apk
adb push c:\Phone.apk /system/app/

Is this incorrect?
[G1 Android Development] kannyhsu:
thanks for the answer!

it's based on Froyo FRF91, and i downloaded v30.1 @ 0708: support Froyo. but it still doesnt work.
[G1 Android Development] Kurt Cobain:
Can I choose to display contacts by Nickname? I am looking for that feature the whole time. Thanks
[G1 Android Development] bluedragon1982:
Feature Request:

it would be nice to have an option to export and import the blacklist, so we dont have to setup the blacklist again and again after full wipe e.g. after flashing new roms

Thanks
[G1 Android Development] arefin:
SMART DIALLING - isn't it obvious?!!!

I was wondering this MOD is full of functionalities and features BUT still missing the essential SMART DIALLING feature! This really makes the whole Android thing Lame in compare to the Windows Platform!!

It's a shame really that even the devs dont look at it seriously (not flamming, plz dont misunderstand), I really respect all the devs who put their best in developing for the community - for FREE! But this feature is not even in the To-Do-List!!!!!!!!

Is it already discussed why it is not implemented yet?! or nobody feels that is important as I do?!

There are options to pick apps from the market, I know, so please dont direct me to that direction, I am asking for a feature for smart dialling to be built in the standard Phone application on our G1s.

I dont find it comfortable to allow two apps for a single purpose simply because of a single feature. Anything that could replace the built-in Phone will also do me some favour - to my knowledge, nothing such exists.

Thanks to you all who are involved. Nice work here!
[G1 Android Development] liamstears:
Tried on Desire DJ Droid rom, get error: This feature does not support current system version

Any possibility of a port??
[G1 Android Development] cytown:
Advanced settings.
[G1 Android Development] cytown:
That will in my todo list.
[G1 Android Development] cytown:
That's part of Contacts, you can request this there.
[G1 Android Development] cytown:
Dunno the details about that rom, also, how did you install?
[G1 Android Development] cytown:
You can post the screen shot here.
[G1 Android Development] cytown:
What's the error message?
[G1 Android Development] cytown:
Yes. That's it.
[G1 Android Development] kendling:
Function request

Hi, cytown

Thanks for your hard work at first.

Sometime we need save numeric on call(like phone number, ICQ account etc). But the original phone.apk not provide this function. All numeric will discard when input from keypad on call.

So, Can you add this function in this mod version?
[G1 Android Development] liamstears:
I pushed via adb but maybe its just an incompatibility with sense?
[G1 Android Development] cytown:
You can press home and then what ever you want to do during call.
[G1 Android Development] cytown:
Sure, sense ui won't compatible to all mods.
[G1 Android Development] adrake400:
im using Cm_6 and im having problems answering a call the slider wont show to answer ive installed this Phone.apk via instructions in OP and still a no go, any suggestions?

thanks
[G1 Android Development] ttuw33:
Ring Tones not looping on incoming call

Could this possibly be a Modified Phone.apk bug?

Ring Tones are not looping if I'm receiving a call. This is especially noticeable if I choose a short ring tone like Digital Phone or New Player. The only way not to miss calls is to choose a really long ring tone.

I used the original Phone.apk before and ring tones always looped if somebody called me and they would only stop if the caller hung up. This is what I also expected for Modified Phone.apk.

I'm using v29 on a Samsung Spica I5700 (because newer Versions won't start) and besides this problem it's running fine.

Sorry if I'm wrong and this has nothing to do with Phone.apk :(

Thanks for this awesome mod :)
[G1 Android Development] Kurt Cobain:
Did not work in Milestone :(, so sad
[G1 Android Development] saturnine_sweet:
Fails with Acer Liquid, as well. :( Just get a FC and no signal.
[G1 Android Development] cytown:
It's odd, can you sure you install the right one?
[G1 Android Development] cytown:
You all need download the right version.
[G1 Android Development] cytown:
Can you tell me how did you test it?
[G1 Android Development] SunJOE:
the lastest version doesn't work on my N1, the phone seems no phone service. so strange.
[G1 Android Development] hawksnake:
Doesn't work on N1, stock froyo FRF91, rooted as well (v30.1 @ 0708)
[G1 Android Development] cytown:
You can just wait for cm's newest release.
[G1 Android Development] SunJOE:
be same with you, as paul's R21 (FRF91) on N1, no service, and the original Phone.apk at the 1st post doesn't work too... fortunately it was backuped before adb push..
[G1 Android Development] vincentchan:
no work for my phone raph800 with xdandroid froyo rc2(v30.1 @ 0708)
[G1 Android Development] cytown:
All you guys who find can not use, please post the logcat here.
[G1 Android Development] tienha:
sorry,i want to ask that doesn't support HTC sense???,it doesn't work on my Desire:((
[G1 Android Development] juangil:
you can try this one from SuperFroyo v2.6 by Super@tmel

the "hold" button was removed for obvious reason;)

hope that works for you
[G1 Android Development] cytown:
short answer is no, only if you can install aosp rom on it.
[G1 Android Development] tienha:
thanks for reply.i'm amauter user;">. did U mean that any rom-aosp(htc sense or not) all can support your app? if i'll flash [NIGHTLY] Cyanogenmod 6 (Froyo) for vendor Bravo (HTC DESIRE) by gatsu_1981 will cant use your app too?
[G1 Android Development] prof343:
Where Phone.apk. v29 AutoReply option to work with the headset bluetooth? I did not find this option.
[G1 Android Development] tienha:
i flashed defrost2.5(AOSP FR9.1) for desire,but still cant use your phone app.i used root explorer for replace phone.apk /system/app/...there is nothing happen,i used terminal had a note:writeno space left on device,please guide me:how to install this app,i'm amauter:((
[G1 Android Development] cytown:
Just because HTC Sense don't compatible to AOSP.
[G1 Android Development] cytown:
Yes. CM mod has included this Phone app.
[G1 Android Development] cytown:
AutoReply? V.29 don't have that.
[G1 Android Development] cytown:
Maybe you can contact with rom builder to fetch the correct version.

Also, he or she can compile it with the code from github.
[G1 Android Development] ilostchild:
dont want to sound Nooby here or anything like that, but wonder will this work with Nexus 1 everything is stock on it Froyo, jus has root permission

Also the stock one has a Phone.odex, If it do use this, should i remove the odex file too? i pulled them out incase i need to put them back in..
[G1 Android Development] tienha:
thanks man! i'm trying my best :D