Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,588 Members 46,975 Now Online
XDA Developers Android and Mobile Development Forum

[Request Mod] no reject on incomming call

Tip us?
 
rotule
Old
(Last edited by rotule; 31st January 2013 at 10:59 PM.) Reason: news update
#1  
rotule's Avatar
Senior Member - OP
Thanks Meter 46
Posts: 194
Join Date: Dec 2012
Location: Montreal
Sign [Request Mod] no reject on incomming call

Hi all, i am currently trying to learn how to develop myself but its a long shot so if any dev can help me to get this working it would be great!

My problem is when i take my phone out of my pocket fast, i often touch the screen and almost always over the damn reject call button and this causes me to reject a lot of calls accidently.

I would like to have a modified SecPhone.apk (4.1.2) without this reject button

so stock we have this :


Uploaded with ImageShack.us

and i would like this :


Uploaded with ImageShack.us

i already found some code in Callanimation but i still don't know how to recompile everything to get this working completely so.. i understand java well but not smali, working on it, if i can get it working i'll post my work, if someone can help, please fell free

Thanks for the help

Edit: i have been able to recompile the SecPhone.apk but once flashed it won't work i keep getting notifications that phone stopped working, once i have some time, i'll post what i have done so someone can give me a hint on what i don't do correctly
Device : SGH-I317M a.k.a. Samsung Galaxy Note II (Canadian)
ROM : Always the lates Jedi X (Obviously the best :P )
 
rotule
Old
#2  
rotule's Avatar
Senior Member - OP
Thanks Meter 46
Posts: 194
Join Date: Dec 2012
Location: Montreal
so i managed to modify the callanimation.smali to get this :

Code:
  private void incomingCallAnimation()
  {
    TranslateAnimation localTranslateAnimation1 = new TranslateAnimation(1, 0.0F, 1, 0.0F, 1, 0.2F, 1, 0.0F);
    TranslateAnimation localTranslateAnimation2 = new TranslateAnimation(1, 0.0F, 1, 0.0F, 1, 0.2F, 1, 0.0F);
    TranslateAnimation localTranslateAnimation3 = new TranslateAnimation(1, -0.2F, 1, 0.0F, 1, 0.0F, 1, 0.0F);
    localTranslateAnimation1.setInterpolator(AnimationUtils.loadInterpolator(PhoneApp.getInstance(), 17432582));
    localTranslateAnimation1.setDuration(200L);
    if (this.mPrimaryPhoto != null)
      this.mPrimaryPhoto.startAnimation(localTranslateAnimation1);
    if (this.mSecondaryPhoto != null)
      this.mSecondaryPhoto.startAnimation(localTranslateAnimation1);
    if ((this.mInsetPhoto != null) && (this.mInsetPhoto.getVisibility() == 0))
      this.mInsetPhoto.startAnimation(localTranslateAnimation1);
    localTranslateAnimation2.setInterpolator(AnimationUtils.loadInterpolator(PhoneApp.getInstance(), 17432582));
    localTranslateAnimation2.setDuration(200L);
    if (this.mRejectMsgSlidingDrawer != null)
      this.mRejectMsgSlidingDrawer.startAnimation(localTranslateAnimation2);
    localTranslateAnimation3.setInterpolator(AnimationUtils.loadInterpolator(PhoneApp.getInstance(), 17432582));
    localTranslateAnimation3.setDuration(400L);
    if (this.mIncomingCallLeftWidget != null)
      this.mIncomingCallLeftWidget.startAnimation(localTranslateAnimation3);
    dialpadBannerAnimation(false);
  }
into java decompiler

however when i flash this to the phone, everything works normally and even if i removed the animation 4 (right widget) it seems like i still see the reject button and it still works.

maybe its not the right widget that i need to remove?

well i continue my investigation
Device : SGH-I317M a.k.a. Samsung Galaxy Note II (Canadian)
ROM : Always the lates Jedi X (Obviously the best :P )
 
spycedtx
Old
#3  
Senior Member
Thanks Meter 173
Posts: 723
Join Date: Oct 2009
Default Re: [Request Mod] no reject on incomming call

Perhaps it's as simple as modifying a layout, maybe from systemui.apk



-----
I would love to help you, but help yourself first: ask a better question
http://www.catb.org/~esr/faqs/smart-questions.html
 
wish777
Old
(Last edited by wish777; 1st February 2013 at 10:10 AM.)
#4  
wish777's Avatar
Recognized Contributor
Thanks Meter 1,142
Posts: 1,735
Join Date: Jan 2012
Location: Ohio

 
DONATE TO ME
Default Re: [Request Mod] no reject on incomming call

When your recompiling your sec.phone.apk are you taking out your resource.arsc folder? Then compilie it...it will regenerate another one..if you leave it behind it will have phone app force close or any other app or system app for that matter.. I use multi-apktool ..And I think your way ahead of yourself...The problem isnt in smali but through xml in the apk you can delete to remove the rehect list or call end swipe...messing with smali will break many things especially if you dont know how to or understand how it works...start off with simple xml edits try value folder...

And p.s
Am glad your attempting to mod this on your own then see other people always asking for handouts...Learning especially hands on like your doing will teach alot...Basicalky any themer will tell you they learned ON there own...lol.. if you don't fix it by tommorow pm me ..ill look at it for ya
The Following 2 Users Say Thank You to wish777 For This Useful Post: [ Click to Expand ]
 
rotule
Old
(Last edited by rotule; 1st February 2013 at 11:42 AM.)
#5  
rotule's Avatar
Senior Member - OP
Thanks Meter 46
Posts: 194
Join Date: Dec 2012
Location: Montreal
Default Re: [Request Mod] no reject on incomming call

Wish777 thank you, maybe I was to far with the code edits :P

I'll have a look at the xml like you said today and keep updated!

I gave a quick look at the xml and when i delete any row, i can't recompile, i'll be able to investigate more at lunch time (east time)

Sent from my SGH-I317 using xda app-developers app
Device : SGH-I317M a.k.a. Samsung Galaxy Note II (Canadian)
ROM : Always the lates Jedi X (Obviously the best :P )
The Following User Says Thank You to rotule For This Useful Post: [ Click to Expand ]
 
wish777
Old
(Last edited by wish777; 1st February 2013 at 04:38 PM.)
#6  
wish777's Avatar
Recognized Contributor
Thanks Meter 1,142
Posts: 1,735
Join Date: Jan 2012
Location: Ohio

 
DONATE TO ME
Default Re: [Request Mod] no reject on incomming call

Quote:
Originally Posted by rotule View Post
Wish777 thank you, maybe I was to far with the code edits :P

I'll have a look at the xml like you said today and keep updated!

I gave a quick look at the xml and when i delete any row, i can't recompile, i'll be able to investigate more at lunch time (east time)

Sent from my SGH-I317 using xda app-developers app
First what program are you using? ...download and find multi apktool on xda...once u get that gtalk me ill walk you through hiw to decompile and recompile your first apk...ok

---------- Post added at 11:30 AM ---------- Previous post was at 11:25 AM ----------

Here ya go found IT..GET THESE TWO FILES AND GTALK ME... ..GET EXACT VERSION Apk-Multi-Tool v 1.0.10 and program called NOTEPAD++ for pc remember to put the apktool zip folder in c:drive similar to root of sd card in other terms...
Also copy your framework-res.apk/systemui.apk/ twframework-res.apk to your desktop

Put all that on pc and get with me...youll be theming in no time...

http://forum.xda-developers.com/show....php?t=1310151
The Following 2 Users Say Thank You to wish777 For This Useful Post: [ Click to Expand ]
 
rotule
Old
#7  
rotule's Avatar
Senior Member - OP
Thanks Meter 46
Posts: 194
Join Date: Dec 2012
Location: Montreal
Quote:
Originally Posted by wish777 View Post
First what program are you using? ...download and find multi apktool on xda...once u get that gtalk me ill walk you through hiw to decompile and recompile your first apk...ok
I'm able to recompile everyting (using apk tool) but i'm searching the good lines to remove in the xmls, when i change public.xml, i can't recompile

Anyway i'l get on gtalk around noon.
Device : SGH-I317M a.k.a. Samsung Galaxy Note II (Canadian)
ROM : Always the lates Jedi X (Obviously the best :P )
The Following 2 Users Say Thank You to rotule For This Useful Post: [ Click to Expand ]
 
wish777
Old
#8  
wish777's Avatar
Recognized Contributor
Thanks Meter 1,142
Posts: 1,735
Join Date: Jan 2012
Location: Ohio

 
DONATE TO ME
Default Re: [Request Mod] no reject on incomming call

Its becuase when u compile theres a file called resoure.arsc.....u have to delete it out the apk your working on....then compile or should ask to copy everyrhing over...read the text exactly in the cmd box...I skipped it so many times...but when my friend shiwed me I was missing that step...everything goes smooth and flawless
The Following 2 Users Say Thank You to wish777 For This Useful Post: [ Click to Expand ]
 
rotule
Old
#9  
rotule's Avatar
Senior Member - OP
Thanks Meter 46
Posts: 194
Join Date: Dec 2012
Location: Montreal
Alright, i'll go trough the process with APKtool multi

thanks a lot for all the advises, i'm pumped to get this working by myself :P

i'll update here is i run into problems, i also added you to gtalk
Device : SGH-I317M a.k.a. Samsung Galaxy Note II (Canadian)
ROM : Always the lates Jedi X (Obviously the best :P )
The Following 3 Users Say Thank You to rotule For This Useful Post: [ Click to Expand ]
 
rotule
Old
#10  
rotule's Avatar
Senior Member - OP
Thanks Meter 46
Posts: 194
Join Date: Dec 2012
Location: Montreal
Default Re: [Request Mod] no reject on incomming call

Well i can't find the xml with the reject call widget (looks like tgey are both in the same widget accept/reject) I think I wont have choice but to modifi the smali

Sent from my SGH-I317 using xda app-developers app
Device : SGH-I317M a.k.a. Samsung Galaxy Note II (Canadian)
ROM : Always the lates Jedi X (Obviously the best :P )

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes