Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
sevet
Old
(Last edited by sevet; 24th November 2011 at 09:35 AM.)
#1  
Member - OP
Thanks Meter 17
Posts: 71
Join Date: Dec 2006
Default [DEV][20.11.2011] Android Gingerbread SIP over 3g for (probably) every GB based rom

Here is a bit of why I wrote this manual:

Back at December 2010 Paul from modaco found how to enable sip over 3g for the gingerbread native client, his original thread is here:

http://android.modaco.com/topic/3277...-without-wifi/

For chefs it is probably straight forward how to use this tip, but for me I always begged for cookers to include this in their roms usually they didn't even replay to my request, so I investigated this, and here is very easy way to enable this feature.

This guide assumes you are a little familiar with changing files on your ROM.

*I take no responsibility for this guide, use it at your own risk

So, what we are doing is modifying the framework-res.apk from from our framework directory.

We need:

apktools from here: http://code.google.com/p/android-apktool/

Two files are needed, this: http://code.google.com/p/android-apk...r.bz2&can=2&q=
And this: http://code.google.com/p/android-apk...r.bz2&can=2&q=

(You can also do this for Linux and Mac, this guide will use windows)

Take the framework-res.apk from your ROMS zip file inside /system/framework directory.

How its done:

Extract both files that you downloaded to c:\apktools (can be any dir...)
You should have 3 files.
Copy the framework-res.apk to the same directory: c:\apktools
start --> run --> cmd
c:
cd \apktools
apktools d framework-res.apk temp

Now a folder named temp will appear named temp
inside temp, edit the file: C:\apktools\temp\res\values\bools.xml
I use notepad++, search for a line:
<bool name="config_sip_wifi_only">true</bool>th
change in the line the "true" into "false"
save the file.
go back to cmd
c:
cd \apktools
apktools b temp temp.apk

Now rename your original framework-res.apk to framework-res.apk.zip
open it with winrar/winzip/7zip it will open like regular archive.

take the file that was created by the build process:
C:\apktools\temp\build\apk\resources.arsc

Use this file to replace the file inside the archive of framerwork-res.apk.zip (overwriting the original, inside the zip)
rename the file back to framework-res.apk

And now you have a sip over 3g enabled framework-res.apk.

There are few options to push this file, easiest is just replace it in your ROM zip and flush the ROM, you need to wipe cache and dalvik cache.

There are other ways to push this to your rom but I won't discuss them here.

I used this on stock roms, AOSP roms, MIUI roms and Sense roms, worked for me on all, if you find a roms it doesn't work on please report.

Thats it, its actually quite easy.
The Following 12 Users Say Thank You to sevet For This Useful Post: [ Click to Expand ]
 
davinj
Old
#2  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Mar 2006
You are Awesome! Thank you for posting this. I just setup my phone with this and it works great.
 
easyb
Old
#3  
Junior Member
Thanks Meter 1
Posts: 1
Join Date: Dec 2009
Smile Great Process, a few little remarks

Shalom,
This is a great process tutorial and within 15 minutes I flashed my HTC Sensation to support Internet calls on 3G/4G, while before it was WiFi ONLY.
So now, no need to have any cellular minutes purchased, have DATA have LIFE.

Remarks:
1. Have only 2 files. You mentioned 1 download and then 2 more. The 1st is duplicated withing the 2.
2. The BAT file is apktool.bat and not apktools.bat.

Other then that, SWEEET.

Toda Raba.

Easy

---------- Post added at 04:29 AM ---------- Previous post was at 04:11 AM ----------

HTC Sensation T-Mobile.
Forgot to mention earlier.
Thanks.
The Following User Says Thank You to easyb For This Useful Post: [ Click to Expand ]
 
azeneg
Old
#4  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jan 2009
Default HI

tryed not working stoped at temp file cretion is showing an eror cant go further plz help
 
disconnecktie
Old
#5  
disconnecktie's Avatar
Senior Member
Thanks Meter 679
Posts: 3,454
Join Date: Oct 2011
Does this change your phone to use 3g to make calls? If so that is excellent.

Sent from my Sabotaged Droid Incredible 2.
 
whisky_x
Old
#6  
whisky_x's Avatar
Member
Thanks Meter 45
Posts: 42
Join Date: Oct 2011
Thanks, but why don't we use SIP third-party such as Sipdroid, 3CXPhone...? I think they are easy to use.
 
mundy725
Old
#7  
mundy725's Avatar
Senior Member
Thanks Meter 50
Posts: 185
Join Date: Mar 2011
Location: Baku
Nice work , What about Xperia Lines, will there appear 3G video calling button ?


When you try to help someone you 'drop a happy pebble into the sea of life!' The ripples spread out and touch all of us.
 
nelsonw
Old
#8  
nelsonw's Avatar
Senior Member
Thanks Meter 216
Posts: 1,539
Join Date: Jun 2009
I tried on Wet Dreams 1.3.0 for Atrig 4G and didn't works (Didn't show SIP Calling option)... maybe my mistake or isn't working with Moto's 2.3.6 build. But I asked to be added by the chef! Thanks for this tip!
If I was helpful please give Thanks!

Current Phone Samsung i9300

FORMER Devices:

HTC One X 32GB White
Atrix 4G
Samsung Captivate i897
HTC Fuze
HP iPaq 910c
Treo 650
 
lotherius
Old
#9  
lotherius's Avatar
Recognized Developer
Thanks Meter 510
Posts: 1,767
Join Date: Jan 2009
Location: Beaumont, TX

 
DONATE TO ME
If SIP options are not present in your Settings.APK it may have been disabled by the carrier.

The solution is to place the proper permissions file into /system/etc/permissions/ which will enable SIP overall on your device, then of course to this fix as well.

Solution found in various other places, just thought I'd add it to this thread since the thread is linked from the homepage.
Attached Files
File Type: zip android.software.sip.voip.zip - [Click for QR Code] (659 Bytes, 161 views)
PHONE: ·T··Mobile· G2X (LG) - I used to be a developer like you, then I bought an LG.
PREVIOUS PHONES: Vibrant 3G / MyTouch 3G / LG Xenon / G1 / Touch Vogue / Sanyo KATANA / Moto V220 / Nokia 5160
TABLET: HP TouchPad - JCSullins CM10 - Best Android Device Yet
PAPERWEIGHT: Acer A100 - Nothing, it be bricked! Thanks Acer!
COMPUTER: Self-Built - AMD Athlon II 440, Unlocked to 4 cores, Overclocked to 3.45 Ghz, 8GB DDR3, OMFG Terabytes (6 TB last count), stuffed in a 2008 Dell XPS 730 case.

Google Plus | - i tend to be a bit retired from rom developing currently -
 
dre89
Old
#10  
dre89's Avatar
Senior Member
Thanks Meter 19
Posts: 179
Join Date: Feb 2010
Location: DFW, TX
Nice, surprisingly easy, almost to much so lol

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more