Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,880 Members 51,051 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] Data on HD2 (ril tweaks)

Tip us?
 
jan-willem3
Old
(Last edited by jan-willem3; 10th August 2011 at 11:18 AM.)
#1  
Recognized Developer - OP
Thanks Meter 816
Posts: 1,499
Join Date: Mar 2010
Location: ┌┐(●_●)┌┐
Default [DEV] Data on HD2 (ril tweaks)

Since I was not happy with my current battery life I decided to invest time in finding ril build.prop tweaks for our hd2. Wich will be readed by lib_htcril.so and will acutally work. Android htc ril interface supports over 60 commands.

All tough it looks our phone has a working data connection it works far from optimal. There is no rill officialy developed for our radio and singal is very sensitive in my experience.

RMNET is currently providing us stable data by loading desire rmnet radio code into the radio when start up. Altough we should know wich radio from the desire is included so we can use the right wrapper

Anyway I will here clearify some commands.

ro.ril.fast.dormancy.rule= 0 - 1 disable enable.

Save a lot of battery by letting the phone request for fast dormancy. Phone will stay in UMTS until data is requested and will then switch to hdspa. This is not supported by all providers.

ro.ril.fd.scron.timeout= 0- to infinity in theory
The timeout in seconds after a data request before switching back.When screen is on

ro.ril.fd.scroff.timeout=0 to infinity in theory
The timeout in seconds after a data request before switching back.When screen is off.

ro.ril.a52.%s
(gprs encryption algorithm)
ro.ril.a53.%s
(gprs encryption algorithm)

ro.ril.enable.a52=0-1
disable enable encryption a52

ro.ril.enable.a53=0-1
disable enable encryption a53


ro.ril.enable.dcm.feature= 0- 1

Database Correlation Method to get phone location I was getting faster an data connection when on however phone was finding this value by it self was my experience.

ro.ril.radio.svn= 0-99
to identify phones more easily currently displayed as 01 on our hd2.

ro.ril.qos.traffic.priority= 0-3
(lowest priority =0 highest =3) request QOS priority in your network might not be supported by your provider.

ro.ril.enable.dtm=1
Dual transfer mode for networks that support calling and data connection at the same time.

ro.telephony.default_network=3 (0-8)
Not really new this will make the phone prefere a strong gsm singal over a really weak hdspa can save a bit of battery. This can also be set by typing *#*#4636#*#* in dialer

This are the ones I exactly know what they mean however after some testing I am using the following commands in build.prop by researching htc build.props
Altough I don't know the meaning of all it definately helps because I dont get a weird logcat out put when turning data on or off and it goes almost instant on and off with b4 wrapper in CLK.

Quote:
# RIL Tweaks by jan-willem3@xda for HD2
rild.libpath=/system/lib/libhtc_ril.so
ro.ril.ecc.HTC-ELL=92,93,94
ro.ril.ecc.HTC-WWE=999
ro.ril.enable.a52.HTC-ITA=0
ro.ril.enable.a53.HTC-ITA=1
ro.ril.enable.a52=0
ro.ril.enable.a53=1
ro.ril.enable.dtm=1
ro.ril.gprsclass=12
ro.ril.hsdpa.category=8
ro.ril.hsupa.category=5
ro.ril.hsxpa=2
ro.ril.enable.3g.prefix=0
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hep=1
ro.ril.avoid.pdp.overlap=1
ro.ril.enable.prl.recognition=0
ro.ril.def.agps.mode=2
ro.ril.enable.managed.roaming=1
ro.ril.enable.enhance.search=0
ro.ril.fast.dormancy.rule=1
ro.ril.fd.scron.timeout=30
ro.ril.fd.scroff.timeout=10
ro.ril.oem.nosim.ecclist=911,112,999,08,118,120,12 2,110,119,995
ro.ril.emc.mode=2
ro.ril.att.feature=0
ro.ril.disable.power.collapse=0
ro.telephony.default_network=3
# END RIL Tweaks by jan-willem3@xda for HD2
Just some more clearyfing why we have high standby usage.
Because phone is searching a lot for singal in my case it can swtich from 1 bar to 5 bars in the same room.

The power usage in 3G can be reduced by using fast dormancy because the phone doesnt switch from 3g to hdspa when there is no data request but phone will still search for optimal singal but it wont constantly switch between 3g and hdspa and waste battery. (lost 4 % in 8 hour with constantly bumping singal)

What is the goal of this thread:
Giving everybody the chance for an optimal data experience and maybe useful for devs who wanna update radio code or update ril wrappers.
The Following 28 Users Say Thank You to jan-willem3 For This Useful Post: [ Click to Expand ]
 
Dunc001
Old
#2  
Dunc001's Avatar
Recognized Developer
Thanks Meter 1,334
Posts: 2,610
Join Date: Apr 2010
Location: Hiding out south of the border...
Thanks for this Jan. So can we simply copy/paste this into our build props and reap the fruits of your labour?
HTC One
ViperOne 6.2.1+ Beta Sense 6.0 with Kangaroo Kernel

HTC One Mini
Completely stock and staying that way...

Google Nexus 7 Gen 2
MIUI 5-09

First HTC HD2
Tytung 4.4.2 DataOnExt

Second HTC HD2
MIUI JB DataOnExt
The Following User Says Thank You to Dunc001 For This Useful Post: [ Click to Expand ]
 
jan-willem3
Old
#3  
Recognized Developer - OP
Thanks Meter 816
Posts: 1,499
Join Date: Mar 2010
Location: ┌┐(●_●)┌┐
Yeah it should work especially that fast dormancy really hepls if your network support it. I tested this in combination with clk b4 wrapper in theory when we initialize ril on boot using tytung r10 instead of lib_htcrilwrapper.so it should work for sure.
The Following 2 Users Say Thank You to jan-willem3 For This Useful Post: [ Click to Expand ]
 
tdizzle404
Old
#4  
tdizzle404's Avatar
Senior Member
Thanks Meter 1,088
Posts: 4,466
Join Date: Nov 2010
Location: North Georgia

 
DONATE TO ME
So is this for close or maglder it both?
Either way thank you this whole battery drain issue has got me very angry lol

Sent from my HTC HD2 using XDA App
Htc Droid DNA
Grouper
A Must Read for Noob to Dev!
^^^^A good read while you let your phone sit for 10
If Ive helped you please hit THANKS
 
jan-willem3
Old
#5  
Recognized Developer - OP
Thanks Meter 816
Posts: 1,499
Join Date: Mar 2010
Location: ┌┐(●_●)┌┐
Yeah well you just need to test I they will work for both. It depends the most on your provider. I Think because lack of missing code system has trouble by setting some parameters by it self. That is why It might be needed to apply the ril tweaks in build.prop.
 
michie
Old
#6  
michie's Avatar
Recognized Contributor
Thanks Meter 1,837
Posts: 1,181
Join Date: Apr 2007
Location: Hasselt
Agree with the signal strength... my connection shows H, perfect reception when its laying on my desk, but as soon as i pick it up data drops to 1 or 0 bars. VERY sensitive.

Switching to GSM auto (PRL) seemed to do the trick for switching from H to E faster so i wont lose my reception and fixes the battery drain but this is still far from optimal use of our data connection as the data drops still occur as frequent as before.
 
maddoc1007
Old
#7  
maddoc1007's Avatar
Senior Member
Thanks Meter 54
Posts: 265
Join Date: Aug 2008
Location: cork
Question help

Hi will this work on rafdroid 4.2 rom am a newb to changing code where to start and which folder etc and how to insert this code can u do it in zip form so we can flash it by mgldr?? or if not a step by step explanation of how to do it my kernal is rafdroid 1.9 thanking u in advance for any help on this
 
dorimanx
Old
#8  
dorimanx's Avatar
Recognized Developer
Thanks Meter 60,811
Posts: 8,826
Join Date: Feb 2010
Location: Some Where North!

 
DONATE TO ME
Quote:
Originally Posted by jan-willem3 View Post
Since I was not happy with my current battery life I decided to invest time in finding ril build.prop tweaks for our hd2. Wich will be readed by lib_htcril.so and will acutally work. Android htc ril interface supports over 60 commands.

All tough it looks our phone has a working data connection it works far from optimal. There is no rill officialy developed for our radio and singal is very sensitive in my experience.

RMNET is currently providing us stable data by loading desire rmnet radio code into the radio when start up. Altough we should know wich radio from the desire is included so we can use the right wrapper

Anyway I will here clearify some commands.

ro.ril.fast.dormancy.rule= 0 - 1 enable disable.

Save a lot of battery by letting the phone request for fast dormancy. Phone will stay in UMTS until data is requested and will then switch to hdspa. This is not supported by all providers.

ro.ril.fd.scron.timeout= 0- to infinity in theory
The timeout in seconds after a data request before switching back.When screen is on

ro.ril.fd.scroff.timeout=0 to infinity in theory
The timeout in seconds after a data request before switching back.When screen is off.

ro.ril.a52.%s
(gprs encryption algorithm)
ro.ril.a53.%s
(gprs encryption algorithm)

ro.ril.enable.a52=0-1
enable disable encryption a52

ro.ril.enable.a53=0-1
enable disable encryption a53


ro.ril.enable.dcm.feature= 0- 1

Database Correlation Method to get phone location I was getting faster an data connection when on however phone was finding this value by it self was my experience.

ro.ril.radio.svn= 0-99
to identify phones more easily currently displayed as 01 on our hd2.

ro.ril.qos.traffic.priority= 0-3
(lowest priority =0 highest =3) request QOS priority in your network might not be supported by your provider.

ro.ril.enable.dtm=1
Dual transfer mode for networks that support calling and data connection at the same time.

ro.telephony.default_network=3 (0-8)
Not really new this will make the phone prefere a strong gsm singal over a really weak hdspa can save a bit of battery. This can also be set by typing *#*#4636#*#* in dialer

This are the ones I exactly know what they mean however after some testing I am using the following commands in build.prop by researching htc build.props
Altough I don't know the meaning of all it definately helps because I dont get a weird logcat out put when turning data on or off and it goes almost instant on and off with b4 wrapper in CLK.



Just some more clearyfing why we have high standby usage.
Because phone is searching a lot for singal in my case it can swtich from 1 bar to 5 bars in the same room.

The power usage in 3G can be reduced by using fast dormancy because the phone doesnt switch from 3g to hdspa when there is no data request but phone will still search for optimal singal but it wont constantly switch between 3g and hdspa and waste battery. (lost 4 % in 8 hour with constantly bumping singal)

What is the goal of this thread:
Giving everybody the chance for an optimal data experience and maybe useful for devs who wanna update radio code or update ril wrappers.

Hi,

This is very cool set!

i will use it in my ROM,

Your name will be in my build prop.

but first i will check that all ok, dont want my users to lose data / wifi / signal.

better test on my self!

Very cool keep it UP!

Thanks!
Phone: ★ LG Optimus G2 D802
ROM: ★ Pardus Stock Latest






KERNEL: Dorimanx-LG-G2-PWR-CORE-VX.X

>LG G2 KK KERNEL OP<
>LG G2 JB KERNEL OP<
>LG G2 BETA KERNEL STORAGE<

KERNEL: Dorimanx-SGII-PWR-CORE-V10.XX
>SG2 KERNEL OP<
>SG2 BETA THREAD<
>SG2 BETA STORAGE<
>SG2 Q&A THREAD<


>HTC HD2 KERNEL
>HTC HD2 DORIMANX MAG + CLK NAND ROM!

>JOIN FACEBOOK PAGE!

>ABOUT ME!
>MY BELOVED MUSIC CHANNEL<


You can Buy me a BEER! if you like my work.

>DONATE AND SUPPORT
 
tdizzle404
Old
#9  
tdizzle404's Avatar
Senior Member
Thanks Meter 1,088
Posts: 4,466
Join Date: Nov 2010
Location: North Georgia

 
DONATE TO ME
Can you please make this a flash able zip through CWM.

Ive had a a few problems in the past editing build props
Htc Droid DNA
Grouper
A Must Read for Noob to Dev!
^^^^A good read while you let your phone sit for 10
If Ive helped you please hit THANKS
 
jan-willem3
Old
#10  
Recognized Developer - OP
Thanks Meter 816
Posts: 1,499
Join Date: Mar 2010
Location: ┌┐(●_●)┌┐
CWM is not possible because each build is using a different build.prop

@dorimanx only issue is that some networks dont support fast dormancy. And then it will use extra battery instead of saving. Then you need to set fast dormancy rule = 0
For the rest I don't see any disadvantage of using this tweaks.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes