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
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 : Jedi XP12 Modem : BMA3 Other : Carrier unlocked, call recording,
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 : Jedi XP12 Modem : BMA3 Other : Carrier unlocked, call recording,
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
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...
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 : Jedi XP12 Modem : BMA3 Other : Carrier unlocked, call recording,
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
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 : Jedi XP12 Modem : BMA3 Other : Carrier unlocked, call recording,
Ever since the introduction of multi-window with things like Cornerstone and … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?