yashsingh1/xdaforums huggingface dataset:
[Nexus One Themes and Apps] Nushio:
I'm currently looking for a Droid user (Or any phone that doesn't have a trackball).

All you'd have to do is flash this zip: http://dl.dropbox.com/u/162062/Phone-froyo-test-signed.zip

And let me know if "Trackball Answer" shows up on the Call Settings or not. It shouldn't (Because you don't have a trackball).

Thanks.

The piece of code I used is:

if(getResources().getConfiguration().navigation != 3){
((PreferenceCategory) prefSet.findPreference(CATEGORY_ADVANCED)).removePreference(mTrackballAnswer);
}

(navigation == 3 when you have trackballs)

Edit: Nevermind. It's been confirmed that it works as expected. Sweet.
[Nexus One Themes and Apps] Docmjldds:
I forgot to mention that on the HD ROM, the apps are not in system. Per the OP:

<<That Phone.apk doesn't work for the HD-ROM. Its not made for it and won't be compatible. Those errors are because the apps for the HD-ROM are in the ext/system-app, not system/app.>>

So, not sure that update script will make a difference. If it doesn't, then not sure this is going to work. I'll get back ASAP. I could try manually pushing but again.....

Edit: No error on installing, but not working. Will look at my file system now to see what's up after running the flash.
[Nexus One Themes and Apps] Nushio:
Oh, sorry but I don't know how the HD-ROM works. Try replacing the Phone.apk with the one on the zip file. Don't go through android's install, because it's not a normal application.
[Nexus One Themes and Apps] Docmjldds:
Doesn't work. In fact, if you replace the apk files, the phone just FC's and is not useable :(

Really liked the idea of a trackball answer. Oh well.....
[Nexus One Themes and Apps] Nushio:
Logcat or it didn't happen! :cool:
[Nexus One Themes and Apps] Skeleton Labs:
Never mind now works thanks :)
[Nexus One Themes and Apps] starfarer:
Gr8 and many thanks. Working perfect on nightly. Been always looking for this function. Don't know why anyone wants to uninstall.
[Nexus One Themes and Apps] Nushio:
Lovin' the warm comments.

Been working on Phone for Gingerbread. Need a couple dozen guinea pigs that enjoy bleeding edge features and/or miss vibrate every 45 secs and all the other goodies that are part of Froyo's Phone with Advanced Settings.

After that's done. I'll start working on Hang up & SMS and other nice features.
[Nexus One Themes and Apps] Nushio:
This is one of those things that happen when you least expect it.

If you're running a Gingerbread-based ROM, I need your feedback:

http://dl.dropbox.com/u/162062/Phone-gb.apk

To flash:

adb remount

adb shell cp /system/app/Phone.apk /sdcard/Phone-backup.apk

adb push /path/to/your/Phone-gb.apk /system/app/Phone.apk

If you get a FC,

adb shell cp /sdcard/Phone-backup.apk /system/app/Phone.apk

v0.1 a.k.a. "Chaotic Neutral" (Might save your life, Might steal your car) for GingerBread

Includes:

* Vibrate on Answer

* Vibrate every 45 secs

* Vibrate on Hangup

* Vibrate on Call Waiting [UNTESTED]

* Keep Screen Awake

* Always use proximity

* Always back to call log

* Missed call LED notify [Doesn't work, afaik, on Nexus One]

* Show nick/organization

* Trackball Answer [DUH!]

* Turn over silence [Doesn't work, afaik, on Nexus One]

* Left-hand mode

* Blacklist

If it FC's: logcat or it didn't happen.

Pass it on.
[Nexus One Themes and Apps] Old MuckenMire:
Will this work with CM 6.1 by any chance? I'm using a theme that had not been updated to work with 6.1.1 yet and don't want to give up that theme by moving to 6.1.1 just yet.

Thanks!
[Nexus One Themes and Apps] Docmjldds:
I will Logcat for you. It did happen. Gotta finish up helping on the HD-ROM thread I devote a fair amount of time. Back ASAP....

Edit: Attaching Logcat. With this ROM, the original Phone.apk file basically allows either HTC style Phone dialer or Stock non HTC or a regular looking phone dialer as in CM Froyo stock etc. Anyways, as soon as I push the apk file, FC's. Shutdown and reboot and all is well till I try to go into either settings:call, or try to use the stock Phone dialer...immediate FC. If I choose the HTC Style dialer, that has the contact windo above the Phone dial key pad, nothing happens. No connection, since the phone actually says no service.

I am also attaching the original apk file for the ROM. The logcat was approx 145kb and the upload max sized file was exceeded. I did my best to chop off either end of the file, to get the file size down to upload. If you need to see more info on the logcat, I can attach to an E-Mail if you PM me and provide that instead. Thanks again for any help.
[Nexus One Themes and Apps] nuumuun:
awesome mod!

would you be willing to add a "end call by trackball" feature?

thanks for the great work :)

edit: oops. just saw your earlier post where you said it's on your feature list ... i'll keep watching this :cool:
[Nexus One Themes and Apps] Nushio:
Ah, you're using HTC Sense. I don't think this Phone mod will ever work on that, as it uses a lot of HTC-Specific propietary things. If you get me the code for HTC Sense's Dialer, I could integrate it into it, but I can't reverse engineer the HTC Sense Dialer to cook my mods into it. Sorry!

End Call by Trackball as in... You're already in a call, and to hang up, press the trackball? That's not on my feature list atm, but I can definitely do it.

What I had on my feature list was "Reject call by trackball", but decided against it as there's already an option to 'reject call by power button'.

Hang up by trackball should be a piece of cake.

Edit: It's done. Need to test it a bit before releasing it to the public though.
[Nexus One Themes and Apps] Docmjldds:
I had a feeling it was going to be complicated. I decided to install a CM nightly just to give this a whirl. Worked like a champ. I have had my N1 since getting it the first day it was available from Google almost a year ago. Always wondered why no one asked why not have the trackball answer the phone. After all, the primary focus should be on PHONE convenience. I love all the Sense stuff, but I think I may just stay on CM nightly for this app. Of course having full 720p capability now isn't bad either, something also missing from Desire-HD Sense ROM. Tried it on MicroMods GingerBread ROM too, but just too plain vanilla for me right now. Anyways...great app and I will pass this on to all I run into.
[Nexus One Themes and Apps] Nushio:
Stay tuned. I'm currently tired of Gingerbread's Phone app (It's complicated, but its not a code-related problem, its a people problem, *Sigh*) so I'm adding all the stuff I was gonna add on Gingerbread, to Froyo.

I'll update the front page with Trackball Hangup. I know there's a part of the world with people freezing and wearing gloves.
[Nexus One Themes and Apps] fattymcdirty:
would this patch be somehow applicable to MIUI?
[Nexus One Themes and Apps] daveid:
What if you could answer with a single or double press and reject with a long press, or vice-versa?
[Nexus One Themes and Apps] Docmjldds:
Really really nice when that happens. Got to use your app yesterday real time life saver situation carrying bags to my car, blustery winds, sunny out so hard to see screen and it was a call from my daughter needing help to locate her asthma medication and the ability to use one hand to push the trackball to answer was really a blessing, so again, my thanks for this....donation on the way too. BTW...I know what you mean about people problem. Really hard to wade thru the GB threads wondering if users even read the FAQ's on a first page of a thread :(

Have a safe and Happy New Year!!!

Edit: Confirmation number: 5GP453734P8712231 enjoy!!!
[Nexus One Themes and Apps] Nushio:
AFAIK, MIUI is built from AOSP. It should probably work, but it'll replace whatever modifications MIUI has on the phone app. If any MIUI dev is reading this, feel free to grab my code and integrate it into yours.

That's sorta the direction I was headed at first, but I can't figure out a way to detect trackball-longpress. (So far, I only detect when you release the trackball, and do the math on how long you held it).

Ideally, this is the behavior that the phone app will have once I figure things out.

Woke up to a donation (Which I figured, had to come from someone from XDA). Thanks a lot! I'm glad you enjoyed the app, I'll keep working on it :D

About the people problem? It's more of a lack of coordination what bothers me. Maybe its because I'm outside (Of Cyanogenmod) looking in, but all I see is a ton of devs tweaking the Phone app with patches that don't merge cleanly and a lot of functionality duplication. I'm waiting until the Phone app's stable before continuing my work on GB.
[Nexus One Themes and Apps] Docmjldds:
<<Thanks a lot! I'm glad you enjoyed the app, I'll keep working on it>>

Thanks again. Just an FYI that the Froyo version is working fine also on a custom CM version by fitsnugly V6.2.0-RC0-N1.
[Nexus One Themes and Apps] Nushio:
Yeah, this is based on the CM6 source so all cm-based roms are automatically compatible.

I've been talking with Fitsnugly over Twitter, I think he's integrating my phone mods into his roms soon :-)
[Nexus One Themes and Apps] pototo100:
Nexus one with original ROM

I just flashed the apk, and after reboot it does not allow me to introduce the SIM code.

What can I do?.

Thanks
[Nexus One Themes and Apps] Nushio:
Uhm. Logcat.

What ROM are you using? What phone? Did it used to work?
[Nexus One Themes and Apps] sino8r:
Works nicely with HTC Vision (you know... one of those weird d pad phones, lol). I know you said development on Froyo is halted but added "press to end" would be nice;)
[Nexus One Themes and Apps] Nushio:
I've said many things. Trackball End and Hang & SMS are staying in froyo as well as gingerbread. And at least Trackball End is coming this year.
[Nexus One Themes and Apps] pototo100:
Nexus one with original ROM

The phone is nexus One, the ROM is Froyo 2.2. FRF91.
[Nexus One Themes and Apps] Nushio:
Alright, this is kinda confusing (As I've never tried the SIM Lock thing) but... does anyone know if the SIM Lock works on CyanogenMod's build? All I did on mine was add a tiny piece of code, I know I didn't add or remove anything sim-lock related.
[Nexus One Themes and Apps] :
I want this for my Desire, could you make it for D-Pad ?
[Nexus One Themes and Apps] sino8r:
It works fine on the dpad. Have you even tried it yet?
[Nexus One Themes and Apps] Nushio:
Wasn't sure if it worked on Dpads or not, if it detects itself as a trackball, it should work.

Just posted to the main page v5, contains trackball hangup for froyo and a lot of features (Except trackball hangup) for gingerbread. I currently can't compile Gingerbread's Phone app. Too many merges left me an uncompilable phone app, sorry.

Happy New Year!
[Nexus One Themes and Apps] baseballfanz:
Just flashed the latest v5 for Froyo.

There's a problem, when I double tap to answer, it actually "reject the call"

also double tap to hangup is not working either

EDIT: Been playing around with the settings and this is what I've found.

If "tap to hang up" is activated, either tap or double tap, than "tap to answer" is rejecting calls.

If "tap to hang up" is disable, than "tap to answer" does not work at all.
[Nexus One Themes and Apps] sino8r:
Lol! I can confirm that too. Its seems that if both "tap to call" and "tap to end" are enabled... then tap to answer just hangs up on caller. Using froyo cm6.1.1
[Nexus One Themes and Apps] pzumk:
Somehow complete new translations.

<string name="language">german</string>

<string name="translator">xpatriick</string>

<string name="trackball_answer">Mit Trackball annehmen</string>

<string name="trackball_answer_sum">Drücke auf den Trackball um den eingehenden Anruf anzunehmen.</string>

<string-array name="trackballLabels">

<item>Ausgeschaltet</item>

<item>Kurz drücken zum annehmen</item>

<item>Doppelt drücken zum annehmen</item>

</string-array>

<string name="trackball_hangup">Mit Trackball auflegen</string>

<string name="trackball_hangup_sum">Trackball drücken um aufzulegen</string>

<string-array name="trackballHangupLabels">

<item>Ausgeschaltet</item>

<item>Kurz drücken zum auflegen</item>

<item>Doppelt drücken zum auflegen</item>

</string-array>

<string name="sms_hangup">Abweisen und SMS senden</string>

<string name="sms_hangup_sum">Weist Anruf ab und verschickt eine SMS</string>

<string name="sms_hangup_message">Ich bin gerade beschäftigt, ich rufe zurück so schnell es geht!</string>
[Nexus One Themes and Apps] jrsoft:
@Nushio, I speak you in Spanish:

La V5 sigue teniendo unos 50 strings sin traducir al castellano, problema, que viene heredado del source de CM.

Te adjunto el archivo strings.xml traducido al 100% (521 lineas en total) por si quieres utilizarlo en futuras actualizaciones.

Saludos.

V5 is still about 50 strings not translated into Spanish, problem

that is inherited from the source of CM.

I am attaching the file strings.xm 100% translated l (521 lines in total)

Greetings.
[Nexus One Themes and Apps] Nushio:
Gracias! Lo usaré en futuras actualizaciones.

(Also, thanks xpatriick for your translations)

I'm embarassed, I'm fixing right now. End-of-the-year party planning left me with no time to test all possible scenarios, but that shouldn't be an excuse to release a buggy program.

I'll update once I have v6 ready, with SMS Hangup. Also, after a heated discussion with a cousin, I'm thinking about adding "Whitelist" calls (As in, only people in the whitelist would be allowed to call/send sms, the rest would be rejected). Anyone else interested in this? I really don't see a need for said feature...
[Nexus One Themes and Apps] MicroMod777:
How about make a feature that only allows calls on your contact list, and blocks all other calls, sending them to Voice Mail? I used Call Blocker for that, but it seems now with your phone.apk, Call Block is unable to block calls not in my contact list, even though the the app says it blocks them.
[Nexus One Themes and Apps] Nushio:
That might work. What Phone app did you have before, that worked with Call Blocker? The Gingerbread one?
[Nexus One Themes and Apps] MicroMod777:
It was the stock GB phone.apk I had before I replaced it with yours.
[Nexus One Themes and Apps] Nushio:
Might be related to the blacklist implementation, I'll check it later.

Froyo Users: Fixed the trackball answer & trackball hangup, no sms sending just yet (Had a FC so I disabled it for now) and updated the translations provided by xpatriick and jrsoft.

It seems to me that trackball hangup is absolutely useless as you can just move the trackball to the end call button and tap it. Having the cursor over a button overrides the trackball hangup, too.

I'm thinking about disabling trackball hangup and adding the following instead:

Trackball Answer:

Disabled

Tap to Answer

Double Tap to Answer

SMS Hangup w/Trackball [X]

Hold the trackball 1 sec to hang up and send an sms.

As for the UI? Below(Or maybe above? I haven't decided) of the slide to reject call, there'll be a yellow "slide to sms" slider that'll hang up and sms.

Should trackball sms also reject the call but prompt before sending the sms, or should it just reject the call and send the sms anyway?

I need opinions. You'll be heard.
[Nexus One Themes and Apps] baseballfanz:
Yeah I agree, trackball hangup not as useful as trackball send sms.

That would be a great feature
[Nexus One Themes and Apps] sino8r:
Revised v5 for froyo works nicely! Tested on HTC Vision & Espresso. About press to sms... I don't see a need for it with sms popup and those apps. I just thought press to answer and hangup together would get folks used to using it for calls. They just seem nice together. Maybe you add a triple tap option lol! I guess we're running out of options here. Not much more room for more features. Its up to the majority though and it seems that most want it...
[Nexus One Themes and Apps] Nushio:
Brainstorming...

I need some brainstorming done so I'm resorting to all who are subscribed to the thread.

If you follow my Twitter acct, you'd know I've been trying to get Hang up and SMS working for these past few days, however I haven't been able to accomplish that due to a SecurityException, the Phone app has a shared user, 1001, which won't get SEND_SMS Permissions regardless of what I've tried.

A crappy workaround I wrote basically calls the stock messaging app after the call ends, and fills in the phone number and the predetermined text message. I'd use this, but the phone 'locks' when the call ends, so the user would have to unlock the phone, then press the send button. It works, but its crappy.

Another workaround I've considered is to create a send_sms.apk that has the SEND_SMS permission. The Phone app would call this send_sms.apk and send it. This would work, but it also creates a security flaw: Any android app would be able to call send_sms and send SMSs without your consent. It works, but its unsecure. Unless you consider security through obscurity

Now, lets pretend i got it working on the actual Phone app....

What's the preferred behavior? Send an SMS without prompting? Prompt "Would you like to send {predetermined text}"? Prompt a textarea with predetermined text for you to edit out then press send?

Based on what I've been trying, I think any prompts would only show up after the user slides-to-unlock, so I'm not sure if they're the best way to get this feature implemented.

Finally, since SendSMS is giving me such a headache, I'm implementing 'turn sliders into buttons' next.
[Nexus One Themes and Apps] MicroMod777:
You add the feature yet to call all blockers not in contacts? :)
[Nexus One Themes and Apps] daveid:
Backwards speak I think you do today.
[Nexus One Themes and Apps] MicroMod777:
huh? Don't understand?
[Nexus One Themes and Apps] daveid:
Did you not mean to say "block all callers", instead of "call all blockers"?
[Nexus One Themes and Apps] MicroMod777:
Opps, yea, u got it right! LOL Been a long day! :D

Yea, a feature to "block" all calls not on the contact list would be great!
[Nexus One Themes and Apps] Nushio:
I love how I asked opinions on SendSMS and the conversation went onto call blockers (Which I have no need for, I take requests vía paypal though ;) ) and grammar führers.

Trackball Answer & Hangup (As well as other advanced settings) are now part of CyanogenMod's Gingerbread Phone (It's on the repo, it'll make it into the thousands of kang'd roms)

I guess this means work on Froyo's officially halted and only GB stuff will be built now.

Sliders to Buttons is next on the line since I can't get anyone's opinion on send-sms anyway.
[Nexus One Themes and Apps] baseballfanz:
I still would love to see double tap to answer, long press to "reject" with sms message.
[Nexus One Themes and Apps] Nushio:
Speaking about Reject with SMS... I've been chatting with a guy named "shad0wf0x" on IRC. He kindly provided me with the following images, (Numbers and pictures blurred out to protect the innocent)

Click here for the picture. It's too big to display inline.

I think this is my newest project. It also solves the 'SEND_SMS' permission problem.

Edit: This is based on the Galaxy S. That's how Samsung implemented it. My version will be "inspired" by that but will probably not look like that.
[Nexus One Themes and Apps] baseballfanz:
That would be very nice:)
[Nexus One Themes and Apps] Nushio:
Right, but having several sms options, one would have to be set as the predetermined trackball-hangup option.
[Nexus One Themes and Apps] cbmm:
will this work on the g2?
[Nexus One Themes and Apps] Nushio:
Someone else said it indeed does work on the G2.
[Nexus One Themes and Apps] cbmm:
awsome, ill try and post back
[Nexus One Themes and Apps] cbmm:
install aborts when flashing via clockworkmod
[Nexus One Themes and Apps] Nushio:
Any particular errors? Rom used?
[Nexus One Themes and Apps] randomelements:
Working great with the Oxygen gingerbread rom on my Desire.

Thanks.
[Nexus One Themes and Apps] chrisvuong:
installation aborted via Amon R.A.Recovery 2.1.1, it said no valid signature for 5 files!im using N1 with MIUI rom with Wildmonk lateest kernel
[Nexus One Themes and Apps] litening:
Dutch translation

Dutch translation if you're intrested.

<string name="trackball_answer">Opnemen met trackball </string>

<string name="trackball_answer_sum">Druk op de Trackball om oproep te beantwoorden.</string>

<string-array name="trackballLabels">

<item>Uitgeschakeld</item>

<item>Druk om te beantwoorden</item>

<item>Druk twee keer om te beantwoorden</item>

</string-array>

<string name="trackball_hangup">Ophangen met Trackball</string>

<string name="trackball_hangup_sum">Druk op de Trackball om actief gesprek te beeindigen.</string>

<string-array name="trackballHangupLabels">

<item>Uitgeschakeld</item>

<item>Druk om te beeindigen</item>

<item>Druk twee keer om op te hangen</item>

</string-array>

<string name="sms_hangup">Hang op en verstuur SMS</string>

<string name="sms_hangup_sum">Beeindigt het gesprek en verstuurt een SMS </string>

<string name="sms_hangup_message">Ik ben momenteel onbeschikbaar, ik bel u terug zodra ik kan.</string>
[Nexus One Themes and Apps] sino8r:
Did you try installing through rom manager as a rom? That fails a lot with zips such as kernels and hacks. Install zip directly through recovery. It works fine on CM6.1 G2 which is what you use.
[Nexus One Themes and Apps] sino8r:
Try toggling signature verification using amon ra or clockwork...
[Nexus One Themes and Apps] KROMO50:
Anyway to package this in a .apk don't have root access after updating to 2.2.1
[Nexus One Themes and Apps] Nushio:
You need root to modify system apps like the Phone.

Thanks litening, I'll update both Phone apps with your translation.

I'm not sure if the Phone app works in MIUI. Chances are it does, chances are it doesn't.
[Nexus One Themes and Apps] KROMO50:
thanks anyway
[Nexus One Themes and Apps] padwan:
Swedish translation:
[Nexus One Themes and Apps] Sp1ne:
Russian tanslation:

<string name="language">russian</string>
<string name="translator">Spine</string>
<string name="trackball_answer">Трекбол для ответа</string>
<string name="trackball_answer_sum">Нажмите трекбол для ответа на входящий звонок.</string>
<string-array name="trackballLabels">
<item>Отключено</item>
<item>Нажатие для ответа</item>
<item>Двойное нажатие для ответа</item>
</string-array>
<string name="trackball_hangup">Трекбол для отбоя</string>
<string name="trackball_hangup_sum">Нажмите трекбол для завершения текущего звонка.</string>
<string-array name="trackballHangupLabels">
<item>Отключено</item>
<item>Нажатие для отбоя</item>
<item>Двойное нажатие для отбоя</item>
</string-array>
<string name="sms_hangup">Отбой с SMS</string>
<string name="sms_hangup_sum">Завершение текущего звонка с отсылкой SMS</string>
<string name="sms_hangup_message">Сейчас я не могу ответить, перезвоню позже.</string>
[Nexus One Themes and Apps] laba82:
Thank you for this, works fine with Desire + Oxygen!
[Nexus One Themes and Apps] embryo10:
Greek Translation

<string name="language">greek</string>

<string name="translator">embryo</string>

<string name="trackball_answer">Απάντηση με το Trackball</string>

<string name="trackball_answer_sum">Απάντηση της εισερχόμενης κλήσης με πίεση του Trackball</string>

<string-array name="trackballLabels">

<item>Ανενεργό</item>

<item>Πατήστε για απάντηση</item>

<item>Διπλό πάτημα για απάντηση</item>

</string-array>

<string name="trackball_hangup">Τερματισμός κλήσης με το Trackball</string>

<string name="trackball_hangup_sum">Πατήστε το Trackball για να τερματίσετε την κλήση</string>

<string-array name="trackballHangupLabels">

<item>Ανενεργό</item>

<item>Πατήστε για να τερματίσετε την κλήση</item>

<item>Διπλό πάτημα για να τερματίσετε την κλήση</item>

</string-array>

<string name="sms_hangup">Τερματισμός κλήσης και SMS</string>

<string name="sms_hangup_sum">Τερματίζει την τρέχουσα κλήση και στέλνει SMS</string>

<string name="sms_hangup_message">Είμαι απασχολημένος τώρα. Θα σου τηλεφωνήσω μόλις τελειώσω.</string>