An Android Enthusiast’s Apple iPhone 6 Challenge – XDA TV

The media has gone batty again over Apple “revolutionizing” … more

Sony to Extend its AOSP Program to Other Devices

Sony will be offering its users the possibility to use AOSP ROMs as an alternative to the … more

Project Ara Smartphone Will Run Modified Android L with Hot Swapping

Project Ara is a very exciting topic–both for hardware and … more

Streamline Android Theming with Graphic Porter

I dont have a custom theme on my Android phone, and the reason for this is because I am too … more
Post Reply

[DEV][20.11.2011] Android Gingerbread SIP over 3g for (probably) every GB based rom

20th November 2011, 08:47 AM   |  #1  
OP Member
Thanks Meter: 17
 
71 posts
Join Date:Joined: Dec 2006
More
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.
Last edited by sevet; 24th November 2011 at 09:35 AM.
The Following 12 Users Say Thank You to sevet For This Useful Post: [ View ]
22nd November 2011, 06:49 PM   |  #2  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Mar 2006
You are Awesome! Thank you for posting this. I just setup my phone with this and it works great.
26th January 2012, 03:29 AM   |  #3  
Junior Member
Thanks Meter: 1
 
1 posts
Join Date:Joined: 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: [ View ]
26th January 2012, 05:46 PM   |  #4  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Jan 2009
HI
tryed not working stoped at temp file cretion is showing an eror cant go further plz help
28th January 2012, 11:04 PM   |  #5  
disconnecktie's Avatar
Senior Member
Thanks Meter: 1,178
 
5,022 posts
Join Date:Joined: 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.
30th January 2012, 03:44 AM   |  #6  
whisky_x's Avatar
Member
Thanks Meter: 50
 
42 posts
Join Date:Joined: Oct 2011
More
Thanks, but why don't we use SIP third-party such as Sipdroid, 3CXPhone...? I think they are easy to use.
30th January 2012, 10:12 AM   |  #7  
mundy725's Avatar
Senior Member
Flag Baku
Thanks Meter: 51
 
186 posts
Join Date:Joined: Mar 2011
More
Nice work , What about Xperia Lines, will there appear 3G video calling button ?
30th January 2012, 01:30 PM   |  #8  
nelsonw's Avatar
Senior Member
Thanks Meter: 424
 
2,185 posts
Join Date:Joined: Jun 2009
More
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!
31st January 2012, 02:36 AM   |  #9  
lotherius's Avatar
Recognized Developer
Flag Houston, TX
Thanks Meter: 590
 
2,057 posts
Join Date:Joined: Jan 2009
Donate to Me
More
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, 191 views)
4th February 2012, 02:44 AM   |  #10  
dre89's Avatar
Senior Member
Flag DFW, TX
Thanks Meter: 19
 
184 posts
Join Date:Joined: Feb 2010
More
Nice, surprisingly easy, almost to much so lol

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Software Development by ThreadRank