APN Generator - Android Software Development

If there is one thing I hate about changing rom all the time is the need to think about saving and restoring my APN setting, depending on the carrier I use.
To solve this issue I developed a webtool that will allow you (and I) to automatically export the setting for the carrier I need and re-inject them into your phone using APN Backup and Restore, the app is developed by riteshsahu, all credit goes to him.
First, a word of caution, APN Backup and Restore works without any issue with GB or HC but need to be installed as SYSTEM APP on ICS.
The tool is available here: http://www.osimood.com/2012/05/news-apn-database/ just choose your country and operator to see the details and if you want the XML to be imported with APN Backup and Restore just use the "Generate XML" button
The file downloaded has to be place in the folder /sdcard/ApnBackupRestore to be used.
I hope it helps, feel free to leave your comments and ideas!

Your operator information is not included, feel free to send me an XML document formatted as below and I'll update the data ASAP
Code:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apnData>
<country>[URL="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3"][B][I]ISO 3166-1 alpha-3 Country code[/I][/B][/URL]</country>
<operator>
<name>[I][B]Operator_Name[/B][/I]</name>
<url>[I][B]URL_Operator[/B][/I]</url>
</operator>
<apnInfo>
<name>APN_Name</name>
<apn></apn>
<proxy></proxy>
<port></port>
<username></username>
<password></password>
<server></server>
<mmsc></mmsc>
<mmsproxy></mmsproxy>
<mmsport></mmsport>
<mmsprotocol></mmsprotocol>
<mcc></mcc>
<mnc></mnc>
<authentycationType></authentycationType>
<type></type>
</apnInfo>
</apnData>
Feel as much data as you have and if your operator use several APNs (for example, one for data and one for MMS), send me different files for each of the APNs.

Reserved for future use 2

Here is mine I took from APN Backup
Code:
<apn
name="Rogers Internet"
numeric="302720"
mcc="302"
mnc="720"
apn="rogers-core-appl1.apn"
user=""
server=""
password=""
proxy=""
port=""
mmsproxy="10.128.1.69"
mmsport="80"
mmsprotocol="null"
mmsc="http://mms.gprs.rogers.com"
type="default,supl,mms"
/>
<apn
name="Rogers Tethering"
numeric="302720"
mcc="302"
mnc="720"
apn="isp.apn"
user=""
server=""
password=""
proxy=""
port=""
mmsproxy=""
mmsport=""
mmsprotocol="null"
mmsc=""
type="dun"
/>

dudejb said:
Here is mine I took from APN Backup
Code:
<apn
name="Rogers Internet"
numeric="302720"
mcc="302"
mnc="720"
apn="rogers-core-appl1.apn"
user=""
server=""
password=""
proxy=""
port=""
mmsproxy="10.128.1.69"
mmsport="80"
mmsprotocol="null"
mmsc="http://mms.gprs.rogers.com"
type="default,supl,mms"
/>
<apn
name="Rogers Tethering"
numeric="302720"
mcc="302"
mnc="720"
apn="isp.apn"
user=""
server=""
password=""
proxy=""
port=""
mmsproxy=""
mmsport=""
mmsprotocol="null"
mmsc=""
type="dun"
/>
Click to expand...
Click to collapse
Thanks but not the good format

will this be applicable for CDMA devices as well?

I take it you have the AT&T settings right? Standard wap.cingular & the 4G phone/wap.cingular dual gateway right?

bedwa said:
I take it you have the AT&T settings right? Standard wap.cingular & the 4G phone/wap.cingular dual gateway right?
Click to expand...
Click to collapse
I did already input some APN but the more you have the more all benefit of it, feel free to check the site and tell me if any error or missing element

Hi guys just a thought for you why don't u use cm9 apns.conf file as this has absolutely loads in it
Let me know if you want the file containing them or just download cm9

Here is a file for Dhiraagu, Maldives
Thanks for your initiative, I too hate plotting in the information over and over ... XDA will not let me upload a an xml file, so here is a zip ..

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apnData>
<country>TUR</country>
<operator>
<name>AVEA</name>
<url>www.avea.com.tr</url>
</operator>
<apnInfo>
<name>internet</name>
<apn>internet</apn>
<proxy></proxy>
<port></port>
<username></username>
<password></password>
<server></server>
<mmsc></mmsc>
<mmsproxy></mmsproxy>
<mmsport></mmsport>
<mmsprotocol></mmsprotocol>
<mcc>286</mcc>
<mnc>04</mnc>
<authentycationType></authentycationType>
<type>default</type>
</apnInfo>
</apnData>

Thought you might want to add Giffgaff APN to your app if you haven't already, so to help you out
- APN: giffgaff.com
- Username: giffgaff
- Password: password
- MMSC: http://mmsc.mediamessaging.co.uk:8002
- MMS proxy: 193.113.200.195
- MMS port: 8080 then tap OK
- MCC: 234 then tap OK
- MNC: 10

Zorigo said:
Thought you might want to add Giffgaff APN to your app if you haven't already, so to help you out
- APN: giffgaff.com
- Username: giffgaff
- Password: password
- MMSC: http://mmsc.mediamessaging.co.uk:8002
- MMS proxy: 193.113.200.195
- MMS port: 8080 then tap OK
- MCC: 234 then tap OK
- MNC: 10
Click to expand...
Click to collapse
Thanks a lot but I need the info in XML formet as posted in the second post

festa20 said:
Hi guys just a thought for you why don't u use cm9 apns.conf file as this has absolutely loads in it
Let me know if you want the file containing them or just download cm9
Click to expand...
Click to collapse
Yes and that was my first attempt but it is just raw data no country classification or real capacity to filter or sort, or I missed something
bandur said:
Thanks for your initiative, I too hate plotting in the information over and over ... XDA will not let me upload a an xml file, so here is a zip ..
Click to expand...
Click to collapse
Happy you like the initiative, for the XML just copy it here in plain text and I'll import it
check the second post to see the format

Hi, thanks for your work. I have needed this more than once. Here are the details for my provider for you to add to your web.
Code:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apnData>
<country>CUB</country>
<operator>
<name>Cubacel</name>
<url>http://www.cubacel.com</url>
</operator>
<apnInfo>
<name>Cubacel MMS</name>
<apn>mms</apn>
<proxy></proxy>
<port></port>
<username></username>
<password></password>
<server></server>
<mmsc>http://mms.cubacel.cu/</mmsc>
<mmsproxy>200.13.145.52</mmsproxy>
<mmsport>8080</mmsport>
<mmsprotocol>WAP 2.0</mmsprotocol>
<mcc>368</mcc>
<mnc>01</mnc>
<authentycationType></authentycationType>
<type>mms</type>
</apnInfo>
</apnData>
This settings are for MMS only.
Regards!

Code:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apnData>
<country>USA</country>
<operator>
<name>Straight_Talk_ATT</name>
<url>www.straighttalk.com</url>
</operator>
<apnInfo>
<name>StraightTalk_ATT</name>
<apn>att.mvno</apn>
<proxy>proxy.mvno.tracfone.com</proxy>
<port>80</port>
<username></username>
<password></password>
<server></server>
<mmsc>http://mmsc.cingular.com</mmsc>
<mmsproxy>66.209.11.33</mmsproxy>
<mmsport>80</mmsport>
<mmsprotocol></mmsprotocol>
<mcc>310</mcc>
<mnc>410</mnc>
<authentycationType></authentycationType>
<type>default,supl,mms</type>
</apnInfo>
</apnData>
Code:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apnData>
<country>USA</country>
<operator>
<name>Straight_Talk_T-Mobile</name>
<url>www.straighttalk.com</url>
</operator>
<apnInfo>
<name>StraightTalk_T-Mobile</name>
<apn>wap.tracfone</apn>
<proxy>216.155.165.40</proxy>
<port>8080</port>
<username></username>
<password></password>
<server></server>
<mmsc>http://mms.tracfone.com</mmsc>
<mmsproxy>216.155.165.40</mmsproxy>
<mmsport>8080</mmsport>
<mmsprotocol></mmsprotocol>
<mcc>310</mcc>
<mnc>260</mnc>
<authentycationType></authentycationType>
<type>default,supl,mms</type>
</apnInfo>
</apnData>

Awesome
Good idea.
Here's the info for my network:
Code:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apnData>
<country>KEN</country>
<operator>
<name>Safaricom</name>
<url>http://www.safaricom.co.ke</url>
</operator>
<apnInfo>
<name>Safaricom_GPRS</name>
<apn>safaricom</apn>
<proxy></proxy>
<port></port>
<username>saf</username>
<password>data</password>
<server></server>
<mmsc></mmsc>
<mmsproxy></mmsproxy>
<mmsport></mmsport>
<mmsprotocol></mmsprotocol>
<mcc>639</mcc>
<mnc>02</mnc>
<authentycationType></authentycationType>
<type>default,supl</type>
</apnInfo>
</apnData>
Hope I formatted it right. Cheers!

think u could add one for sprint ?

robo4130 said:
think u could add one for sprint ?
Click to expand...
Click to collapse
if you provide me with the XML it will be added ASAP

Here I provide info for Claro Ecuador
Code:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apnData>
<country>ECU</country>
<operator>
<name>Claro Ecuador</name>
<url>http://www.claro.com.ec</url>
</operator>
<apnInfo>
<name>Claro Internet</name>
<apn>internet.porta.com.ec</apn>
<proxy></proxy>
<port></port>
<username></username>
<password></password>
<server></server>
<mmsc></mmsc>
<mmsproxy></mmsproxy>
<mmsport></mmsport>
<mmsprotocol></mmsprotocol>
<mcc></mcc>
<mnc></mnc>
<authentycationType></authentycationType>
<type></type>
</apnInfo>
</apnData>

Related

For Impulse/u8800-51 users: an experiment

Well, here I am again, trying to make 3g work on our u8800-51 with u8800pro roms.
I did a little experiment and I have some results.. But I need some help.
First, I extracted Froyo 2.2.2 stock rom files from u8800pro.
Then, I extracted Froyo 2.2.2 stock rom files from u8800-51 (Impulse 4g)
What I did next is interesting. I knew that the only differences between this models are the CPU and the bands / frequencies for 3g (1900 on Impulse and 2100 on u8800pro). So, I downloaded a "duplicate file finder", to delete only 100% equal files between both rom files (more specific, in system folder), so I would know where is the band information located.
Here are my results:
Files that are different (and have a different version of same file in u8800pro gingerbread):
Code:
system/bin/debuggerd
system/bin/netd
system/bin/wpa_supplicant
------------------------
system/etc/security/otacerts.zip
-----------------------------
system/framework/ <---- *many in this folder.. anything to do with 3g?
-----------------------------
system/lib/libaudioflinger.so
system/lib/libjni_latinime.so
system/lib/libmedia.so
system/lib/liboemcamera.so
system/lib/libril-qc-1.so <--- *Now we know this is the important in ril libs
system/lib/libskia.so
------------------------
system/xbin/busybox <---- this is a file
system/xbin/su <---- this is a file
These are the files that changed in system folder.
Please, If anyone knows about these files, please let me know. I need to discard files that are not related to 3g.. but please only if you are sure.
I wasnt able to exctract amss.mbn and EMMCBOOT.MBN from stock roms (update.app file), so I dont know if they changed too. Anyone knows how to?
Help is appreciated.
It was just title comparison or content comparison too?
Can you post the full file tree?
Now, how do we proceed? I mean, if we try to use libril from u8800pro, the phone won't boot... and we *know* there's something going on there.
I'm not sure what the framework folder holds... maybe someone could tell us?
It checked if the file content were 100% equal. I replaced my libril-qc-1 with the one from the u8800-51 froyo, and it booted, but still no 3g..
I think for best results and more accurate results, best option should be do a mass md5 checksum on all files (might take a while) and remove all the files with same md5. This is more accurate because even if ONE BIT is different in a file (which might make a difference in drivers) md5 will be different.
I don't know if you got it to work, but I did. I installed "APN Backup & Restore", then I backed up the APNs, deleted all of the Chile (Entel) APNs, did a search for USA APNs, edited the file (mine was 'apns-20110624003803.xml') with the correct info (for USA it happened to be):
Code:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apns count="4">
<apn name="att us" numeric="310410" mcc="310" mnc="410" apn="wap.cingular" user="" server="" password="" proxy="wireless.cingular.com" port="80" mmsproxy="" mmsport="" mmsprotocol="null" mmsc="" type="default, supl, agps, fota, us, dun" />
<apn name="att us hsdpa" numeric="310410" mcc="310" mnc="410" apn="phone" user="" server="" password="" proxy="" port="" mmsproxy="" mmsport="" mmsprotocol="null" mmsc="" type="default, supl, agps, fota, dun" />
<apn name="att us theather" numeric="310410" mcc="310" mnc="410" apn="broadband" user="" server="" password="" proxy="wireless.cingular.com" port="80" mmsproxy="" mmsport="" mmsprotocol="null" mmsc="" type="theather" />
<apn name="att us mms" numeric="310410" mcc="310" mnc="410" apn="wap.cungular" user="" server="" password="" proxy="wireless.cingular.com" port="" mmsproxy="wireless.cingular.com" mmsport="80" mmsprotocol="null" mmsc="http://mmsc.cingular.com" type="mms" />
</apns>
Then Rebooted my phone. Data worked after that. (I might have missed a step. My phone is bricked now because I played with it too much, so I can't go back and look.
Hopefully this tells someone something
Tcm9669 said:
I think for best results and more accurate results, best option should be do a mass md5 checksum on all files (might take a while) and remove all the files with same md5. This is more accurate because even if ONE BIT is different in a file (which might make a difference in drivers) md5 will be different.
Click to expand...
Click to collapse
I did a md5 check on all files, eliminating duplicated ones, and I got no differences from the previous check, but was a good idea man, thank you.
deofavente said:
I don't know if you got it to work, but I did. I installed "APN Backup & Restore", then I backed up the APNs, deleted all of the Chile (Entel) APNs, did a search for USA APNs, edited the file (mine was 'apns-20110624003803.xml') with the correct info (for USA it happened to be):
Code:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apns count="4">
<apn name="att us" numeric="310410" mcc="310" mnc="410" apn="wap.cingular" user="" server="" password="" proxy="wireless.cingular.com" port="80" mmsproxy="" mmsport="" mmsprotocol="null" mmsc="" type="default, supl, agps, fota, us, dun" />
<apn name="att us hsdpa" numeric="310410" mcc="310" mnc="410" apn="phone" user="" server="" password="" proxy="" port="" mmsproxy="" mmsport="" mmsprotocol="null" mmsc="" type="default, supl, agps, fota, dun" />
<apn name="att us theather" numeric="310410" mcc="310" mnc="410" apn="broadband" user="" server="" password="" proxy="wireless.cingular.com" port="80" mmsproxy="" mmsport="" mmsprotocol="null" mmsc="" type="theather" />
<apn name="att us mms" numeric="310410" mcc="310" mnc="410" apn="wap.cungular" user="" server="" password="" proxy="wireless.cingular.com" port="" mmsproxy="wireless.cingular.com" mmsport="80" mmsprotocol="null" mmsc="http://mmsc.cingular.com" type="mms" />
</apns>
Then Rebooted my phone. Data worked after that. (I might have missed a step. My phone is bricked now because I played with it too much, so I can't go back and look.
Hopefully this tells someone something
Click to expand...
Click to collapse
I will try to do this. I had read about leaving just the apn you need, so i will try that. thanks.
Any other ideas??
I have a rooted Impulse on stock froyo. I use a Samsung Infuse as my daily driver so I haven't done much with the Impulse. Is there anything I can help out with?
Data works, the issue here is 2g vs 3g HSPA+
DangKid said:
I have a rooted Impulse on stock froyo. I use a Samsung Infuse as my daily driver so I haven't done much with the Impulse. Is there anything I can help out with?
Click to expand...
Click to collapse
Yes please!
two things:
Can you replace your libril-qc-1.so file for the one attached (its from u8800pro froyo) and check if your 3g still works? (remember to backup yours).
In another test, can you replace the image file (volume + - power) amss.mbn and tell me if your mobile phone boots and if it has any changes in 3G or 2G?
I cant upload more than 8mb here, so I uploaded the amss.mbn file here:
Code:
http://www.mediafire.com/file/1zsezr2dustp1us/amss.mbn
Thank you very much!
skipped said:
Yes please!
two things:
Can you replace your libril-qc-1.so file for the one attached (its from u8800pro froyo) and check if your 3g still works? (remember to backup yours).
In another test, can you replace the image file (volume + - power) amss.mbn and tell me if your mobile phone boots and if it has any changes in 3G or 2G?
I cant upload more than 8mb here, so I uploaded the amss.mbn file here:
Code:
http://www.mediafire.com/file/1zsezr2dustp1us/amss.mbn
Thank you very much!
Click to expand...
Click to collapse
Not sure about 2g or 3g but HSPA+ is still working. I'm not sure where i can get only 3G in my area but I'll keep checking.
And your media fire link went down so I couldn't test that.
Sent from my SAMSUNG-SGH-I997 using Tapatalk
Stock 2.2.2 from u8800-51
skipped said:
Well, here I am again, trying to make 3g work on our u8800-51 with u8800pro roms.
I did a little experiment and I have some results.. But I need some help.
First, I extracted Froyo 2.2.2 stock rom files from u8800pro.
Then, I extracted Froyo 2.2.2 stock rom files from u8800-51 (Impulse 4g)
Click to expand...
Click to collapse
Could you upload the u8800-51 rom? Lots of us experimented with gingerbread, no At&T network wifi or bluetooth. So we all need to revert to the stock rom. it would be awsome.
It didnt fixed the problem as it was only a CWM recovery.. i am sorry..

Wrong MNC in apns-conf.xml

Hi,
I would have posted this in the development forum, but due to silly forum rules I cannot.
I found that the MNC for Telenet in Belgium (MCC=206) in apns-conf.xml is incorrect. They used to use MNC=10 which is the code for Mobistar, as Telenet was a MVNO.
But they got a license for building out there own network, and as the first step last year everyone got a new SIM which instead uses MNC=05
Can one of the developers update this?
https://github.com/CyanogenMod/android_vendor_cm/blob/ics/prebuilt/common/etc/apns-conf.xml
Here you can find the WAP and MMS settings, unfortunately the page is in Dutch, but the settings should be pretty straight forward. Or alternatively just use google translate..
http://klantenservice.telenet.be/content/hoe-stel-ik-mijn-gsm-manueel-voor-wap-en-mms-0
To add some more information, I think this line in apns-conf.xml
Code:
<apn carrier="Telenet" mcc="206" mnc="10" apn="telenetwap.be" type="default,supl" />
Should be changed to;
Code:
<apn carrier="Telenet" mcc="206" mnc="05" apn="telenetwap.be" type="default,supl" />
In addition, adding a line for MMS may not be a bad idea either;
Code:
<apn carrier="Telenet MMS" mcc="206" mnc="05" apn="mms.be" mmsc="http://mmsc.telenet.be" mmsproxy="195.130.149.100" mmsport="80" type="mms" />

[08.09.12] Credo Mobile APN for enabling MMS for Sprint Mobile ROMS (universal v1.0)

Here is a little something back to the community in my thanks for all the work I see throughout these forums. It is not much, but it is something.
I have not found a detailed thread regarding the APN's for Credo Mobile yet so I figured I would post one up.
Special thanks to w4ffl3 and shokod at Androidcentral posting up their original APNs and configs. I tweaked the APN myself to make it work properly with my device. I hope it works for you too!
This should work for any Credo Mobile Android phone, however it has not been tested on all of their devices. If you have a device and found this useful (or not), please reply your experiences. And of course, any and all feedback welcomed.
Note to ICS/JB users: I am sorry to say but the APN switch only works with Gingerbread based operating systems and lower. There is no way in changing the APN unless a community member figures out how to make an app to change the APNs in ICS/JellyBean.
As with any alteration you make: I host no responsibility if you need to reinstall your ROM or brick your phone or lose any other capability. Use at you rown risk.
Now:::
1) Install APN Backup & Restore from the Google Play Market
2) Download and unzip the Credo-apn.xml from the download link below from this post.
3) Mount your Android mobile device to your computer; at the root of the sdcard, create a folder called "ApnBackupRestore".
4) put the Credo-APN.xml file in the newly created folder and unmount the device.
5) Run APN Backup & Restore,
6) Backup your current APN settings
7) Delete APNs
8) Restore APN and select "Credo-apn.xml"
MMS Now works for Credo mobile!! Enjoy
Code:
Here is the nitty gritty for those tech savvy:
Three APNs total:
apn name="Production"
numeric="00000"
mcc="310"
mnc="120"
apn="Sprint" (note: this is simply the Name, I am sure you can change it to Credo if you really wanted to, but I stuck with what worked)
user="null"
server="null"
password="null"
proxy="null"
port="null"
mmsproxy="null"
mmsport="null"
mmsprotocol="2.0"
mmsc="http://mms.plspictures.com"
type="mms"
apn name="Android"
numeric="310995"
mcc="310"
mnc="995"
apn="internet"
user="*"
server="*"
password="*"
proxy="null"
port="null"
mmsproxy="null"
mmsport="null"
mmsprotocol="null"
mmsc="null"
type="null"
apn name="TelKila"
numeric="310260"
mcc="310"
mnc="260"
apn="internet"
user="*"
server="*"
password="*"
proxy="null"
port="null"
mmsproxy="null"
mmsport="null"
mmsprotocol="null"
mmsc="null"
type="null"
Nice write up. Thanks .
konichwa said:
...
[/CODE]
Click to expand...
Click to collapse
Thanks for providing this for us. They are now out of date. I am working on getting it updated for everyone out there.
Ok, many ROMs do not come with the correct APNs for 3rd party Sprint Network users. You have to remove the default APNs and then add the latest Preferred Roaming List. Also known as the Access Point Name (APN).
Here is the file with the new Credo Mobile APNs for any ROM that can't connect to LTE or to Sprint's servers to get MMS messages.
https://www.dropbox.com/s/7es3vh5c67jdqwh/apns-credo.xml
This xml file is structured to be used with the app "APN Backup & Restore" .
Make sure the APN app is moved to the system folder. I used "/system/app mover" to do this.
Below is the code to the XML file.
Code:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apns count="4">
<apn name="APN0 LTE ota" numeric="310000" mcc="310" mnc="000" apn="otasn" user="" server="" password="" proxy="" port="" mmsproxy="" mmsport="" mmsprotocol="null" mmsc="" type="fota" />
<apn name="APN0 EHRPD ota" numeric="310000" mcc="310" mnc="000" apn="otasn" user="" server="" password="" proxy="" port="" mmsproxy="" mmsport="" mmsprotocol="null" mmsc="" type="fota" />
<apn name="APN2 LTE internet" numeric="310000" mcc="310" mnc="000" apn="n.w1.ispsn" user="" server="" password="" proxy="" port="" mmsproxy="68.28.31.7" mmsport="80" mmsprotocol="null" mmsc="http://mms.plspictures.com" type="default,mms" />
<apn name="APN2 EHRPD internet" numeric="310000" mcc="310" mnc="000" apn="n.w1.ispsn" user="" server="" password="" proxy="" port="" mmsproxy="68.28.31.7" mmsport="80" mmsprotocol="null" mmsc="http://mms.plspictures.com" type="default,mms" />
</apns>
UPDATE: This list of APNs provide 3G, 4G LTE EVDO, and 2G CDMA but NOT MMS support. I don't know why. I am looking into updating my code.
skystander said:
Ok, many ROMs do not come with the correct APNs for 3rd party Sprint Network users. You have to remove the default APNs and then add the latest Preferred Roaming List. Also known as the Access Point Name (APN).
Here is the file with the new Credo Mobile APNs for any ROM that can't connect to LTE or to Sprint's servers to get MMS messages.
https://www.dropbox.com/s/7es3vh5c67jdqwh/apns-credo.xml
This xml file is structured to be used with the app "APN Backup & Restore" .
Make sure the APN app is moved to the system folder. I used "/system/app mover" to do this.
Below is the code to the XML file.
Code:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apns count="4">
<apn name="APN0 LTE ota" numeric="310000" mcc="310" mnc="000" apn="otasn" user="" server="" password="" proxy="" port="" mmsproxy="" mmsport="" mmsprotocol="null" mmsc="" type="fota" />
<apn name="APN0 EHRPD ota" numeric="310000" mcc="310" mnc="000" apn="otasn" user="" server="" password="" proxy="" port="" mmsproxy="" mmsport="" mmsprotocol="null" mmsc="" type="fota" />
<apn name="APN2 LTE internet" numeric="310000" mcc="310" mnc="000" apn="n.w1.ispsn" user="" server="" password="" proxy="" port="" mmsproxy="68.28.31.7" mmsport="80" mmsprotocol="null" mmsc="http://mms.plspictures.com" type="default,mms" />
<apn name="APN2 EHRPD internet" numeric="310000" mcc="310" mnc="000" apn="n.w1.ispsn" user="" server="" password="" proxy="" port="" mmsproxy="68.28.31.7" mmsport="80" mmsprotocol="null" mmsc="http://mms.plspictures.com" type="default,mms" />
</apns>
UPDATE: This list of APNs provide 3G, 4G LTE EVDO, and 2G CDMA but NOT MMS support. I don't know why. I am looking into updating my code.
Click to expand...
Click to collapse
I'm on Credo Mobile too, and I have MMS working on mine. In addition to the above APNs, I have a fifth one. APN Backup & Restore does not work on 4.4 though (EDIT: I didn't try making it a system app, so actually it probably would work then... but in any case, I suppose that isn't the most pertinent info here), so I will just enumerate the values I have in the regular APN config menu:
Name: Sprint
APN: Sprint
Proxy: Not Set
Port: Not Set
Username: Sprint
Password: *
Server: *
MMSC: http://mms.plspictures.com
MMS Proxy: 68.28.31.7
MMS Port: 80
MCC: 310
MNC: 120
Authentication Type: PAP or CHAP
APN type: mms
APN protocol: IPv4
APN roaming protocol: IPv4
Bearer: Unspecified
MVNO type: None
MVNO Value: Not Set
As an interesting side note, I didn't change the MMSC address in the LTE or EHRPD APNs to http://mms.plspictures.com so they still say http://mms.sprintpcs.com, however my MMS still works fine so far.
Ok, managed to get APN Backup & Restore working on mine... I'm kinda new to 4.4, so I didn't know about privileged apps ( put the apk in /system/priv-app/ instead of /system/app/, it'll work just fine despite the warning saying it won't )... Anyway, here is the xml from my current APN config (minus the extra 1608 catch-all APNs from cyanogenmod's config file, of course):
Code:
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<apns count="5">
<apn name="Sprint" numeric="310120" mcc="310" mnc="120" apn="Sprint" user="Sprint" server="*" password="*" proxy="" port="" mmsproxy="68.28.31.7" mmsport="80" mmsprotocol="null" mmsc="http://mms.plspictures.com" type="mms" />
<apn name="Sprint LTE ota" numeric="310120" mcc="310" mnc="120" apn="otasn" user="null" server="null" password="null" proxy="null" port="null" mmsproxy="null" mmsport="null" mmsprotocol="null" mmsc="null" type="fota" />
<apn name="Sprint EHRPD ota" numeric="310120" mcc="310" mnc="120" apn="otasn" user="null" server="null" password="null" proxy="null" port="null" mmsproxy="null" mmsport="null" mmsprotocol="null" mmsc="null" type="fota" />
<apn name="Sprint LTE internet" numeric="310120" mcc="310" mnc="120" apn="n.w1.ispsn" user="" server="" password="" proxy="" port="" mmsproxy="68.28.31.7" mmsport="80" mmsprotocol="null" mmsc="http://mms.sprintpcs.com" type="default,mms,supl,hipri" />
<apn name="Sprint EHRPD internet" numeric="310120" mcc="310" mnc="120" apn="n.w1.ispsn" user="" server="" password="" proxy="" port="" mmsproxy="68.28.31.7" mmsport="80" mmsprotocol="null" mmsc="http://mms.sprintpcs.com" type="default,mms,supl,hipri" />
</apns>
I make no guarantees that this will work as I've not had any chance to test it while on 3G or LTE networks yet. It works when I'm connected to WiFi so far though. If I figure anything more out about this, I will certainly post anything I discover. Also, I'm sure it couldn't hurt to change the mmsc in all of them to say http://mms.plspictures.com just to cover your bases. I'm going to leave mine this way for now, for testing on 3G and LTE.

[Q]Help for simple digital clock widget

Hi,
I am triying to build a simple numeric clock widget but i have some issues :
-The widget isn't appearing in widget section of 4.0+ launchers
-The time is not refresh (but i set up refresh value to 1000ms)
-Widget dosn't respect the size i set in the xml
Code:
android:minWidth="294dp"
android:minHeight="72dp"
android:updatePeriodMillis="1000"
If someone can help me, would be awesome
See app sources here
I'm sorry if i am in the wrong place
you should add this in the manifest:
Code:
<receiver android:name=".WidgetProvider" android:label="yourAppName">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/widget_info" />
</receiver>
then create the meta-data file (widget_info):
Code:
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="294dp"
android:minHeight="72dp"
android:updatePeriodMillis="1000"
android:initialLayout="@layout/widget">
</appwidget-provider>
ok, you did it... i didn't view the source
Thanks but done
Envoyé depuis mon CINK SLIM avec Tapatalk
I think that the update intervall needs to be 30 minutes or more.
You could create a service and refresh the widget from that.
---------- Post added at 12:06 PM ---------- Previous post was at 12:03 PM ----------
And you need to start your app at least once on Android 4+. Then it will be shown in the app drawer.
So create a launcher activity.
(http://stackoverflow.com/questions/8794952/android-4-0-widgets-not-appearing)

[GUIDE][CAM] How To Hack SONY Xperia Camera (Bring Higher Bitrate & More Options)

Hello Xperia friends....
I just want to show you how to hack All Xperia Camera :laugh:
Requirement :
Knowladge in decompile/recompile apps
Hacking Audio Bitrate Video Recording
INFO for smali code
Value 0
Name: LowRate
Type: REG_DWORD
Data: 0x1f400 (SONY use this low bitrate so find this code to replace in the next step)
Value 1
Name: MediumRate
Type: REG_DWORD
Data: 0x2ee00
Value 2
Name: MediumHighRate
Type: REG_DWORD
Data: 0x3e800 (i'm use this code)
Value 3
Name: HighRate
Type: REG_DWORD
Data: 0x4e200​
1. Decompile SemcCameraUI.apk
2. Go to smali/com/sonyericsson/android/camera
open Constants.smali using text editor/notepad++ then find this line
Code:
.field public static final VIDEO_AUDIO_BIT_RATE:I = [COLOR="Red"]0x1f400[/COLOR]
change RED Color code to code from INFO CODE, example :
Code:
.field public static final VIDEO_AUDIO_BIT_RATE:I = [COLOR="Red"]0x3e800[/COLOR]
save it!!!!
3. Go to smali/com/sonyericsson/android/camera/configuration/parameters
open VideoSize$VideoProfile$Builder.smali ( if there smali available, i mean different Xperia have diffierent parameters like older Xperia 2011)
search this code
Code:
[COLOR="Red"]0x1f400[/COLOR]
then change to
Code:
[COLOR="Red"]0x3e800[/COLOR]
save it!!!
4. Go to smali/com/sonyericsson/android/camera/configuration/parameters
open VideoSize.smali
search all this code
Code:
[COLOR="Red"]0x1f400[/COLOR]
then change all code to
Code:
[COLOR="Red"]0x3e800[/COLOR]
save it!!! Done
LAG ON VIDEO RECORDING ON XPERIA 2011 & XPERIA 2012 (Snapdragon S3/Novathor)???
Here is solution change FORMAT H264 to MPEG4!!!
INFO H264 VS MPEG4​http://www.y-cam.com/blog/mpeg4-vs-h-264-45/
Smali code
H263 is
Code:
0x1
H264 is
Code:
0x2
MPEG4 is
Code:
0x3
1. Go to smali/com/sonyericsson/android/camera/configuration/parameters
open VideoSize.smali using text editor/notepad++ then find this line
(Note the Local maybe different)
Code:
.local v7, "videoFrameRate":I
const/4 v6, [COLOR="Red"]0x2[/COLOR]
change to
Code:
.local v7, "videoFrameRate":I
const/4 v6, [COLOR="Red"]0x3[/COLOR]
Save it!!! Done
Hacking Video Recording Bitrate
INFO for smali code
Value 1
Name: MediumRate
Data: 0xb71b00
Value 2
Name: MediumHighRate
Data: 0x10b0760
Value 3
Name: HighRate
Data: 0x1312d00
Value 4
Name: UltraHighRate
Data: 0x1c9c380​
1. Go to smali/com/sonyericsson/android/camera
open Constants.smali using text editor/notepad++ then find this line
For HD 720p
Code:
.field public static final VIDEO_BIT_RATE_EX_HIGH_12M:I = [COLOR="Red"]0xb71b00[/COLOR]
change to
Code:
.field public static final VIDEO_BIT_RATE_EX_HIGH_12M:I = [COLOR="Red"]0x10b0760[/COLOR]
For FULL HD 1080p
Code:
.field public static final VIDEO_BIT_RATE_EX_HIGH_17_5M:I = [COLOR="Red"]0x10b0760[/COLOR]
change to
Code:
.field public static final VIDEO_BIT_RATE_EX_HIGH_17_5M:I = [COLOR="Red"]0x1312d00[/COLOR]
save it!!!
2. Go to smali/com/sonyericsson/android/camera/configuration/parameters
open VideoSize.smali the find this line
For HD 720p
Code:
[COLOR="Red"]0xb71b00[/COLOR]
change to
Code:
[COLOR="Red"]0x10b0760[/COLOR]
For FULL HD 1080p
Code:
[COLOR="Red"]0x10b0760[/COLOR]
change that all code to
Code:
[COLOR="Red"]0x1312d00[/COLOR]
save it!!! Done
NOW AFTER EDITING VIDEO AUDIO BITRATE & VIDEO BITRATE YOU NEED TO EDIT media_profile.xml
open media_profile.xml using text editor/notepad++ then find this line
FIX 100% Image Quality
Code:
<!ATTLIST ImageEncoding quality [COLOR="Red"](90|80|70|60|50|40)[/COLOR] #REQUIRED>
change to
Code:
<!ATTLIST ImageEncoding quality [COLOR="Red"](100|90|80|70|60|50)[/COLOR] #REQUIRED>
There is 2 lines code for back camera & front camera
Code:
<ImageEncoding quality="[COLOR="Red"]95[/COLOR]" />
<ImageEncoding quality="[COLOR="Red"]80[/COLOR]" />
<ImageEncoding quality="[COLOR="Red"]70[/COLOR]" />
change all code to
Code:
<ImageEncoding quality="[COLOR="Red"]100[/COLOR]" />
<ImageEncoding quality="[COLOR="Red"]90[/COLOR]" />
<ImageEncoding quality="[COLOR="Red"]80[/COLOR]" />
Adjust the value of smali Video & Audio Video bitrate with media-profile.xml (as you modified it)
There is many lines code for Video you need to change them all, example
Code:
<EncoderProfile quality="1080p" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="17500000"
width="1920"
height="1080"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="720p" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="12000000"
width="1280"
height="720"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
change to
Code:
<EncoderProfile quality="1080p" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="20000000"
width="1920"
height="1080"
frameRate="30" />
<Audio codec="aac"
bitRate="256000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="720p" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="1750000"
width="1280"
height="720"
frameRate="30" />
<Audio codec="aac"
bitRate="256000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
Code:
<VideoEncoderCap name="h264" enabled="true"
minBitRate="64000" maxBitRate="[COLOR="Red"]20000000[/COLOR]"
minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="1080"
minFrameRate="15" maxFrameRate="30" />
Code:
<AudioEncoderCap name="aac" enabled="true"
minBitRate="8000" maxBitRate="[COLOR="Red"]256000[/COLOR]"
minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="[COLOR="Red"]2[/COLOR]" />
Note maxChannels Number in RED Color, can be 6 or 2
EXperimental hacking, Change format RGB_565 to ARGB8888
I use ONLY on Xperia 2011
1. Go to smali/com/sonyericsson/android/camera
open CameraActivity.smali using text editor/notepad++ then find this line
Code:
sget-object v12, Landroid/graphics/Bitmap$Config;->[COLOR="Red"]RGB_565[/COLOR]:Landroid/graphics/Bitmap$Config;
Code:
sget-object v0, Landroid/graphics/Bitmap$Config;->[COLOR="Red"]RGB_565[/COLOR]:Landroid/graphics/Bitmap$Config;
Change RED Color code to
Code:
[COLOR="Red"]ARGB_8888[/COLOR]
2. Go to smali/com/sonyericsson/android/camera
open ImageManager.smali then search for RGB example :
Code:
sget-object v0, Landroid/graphics/Bitmap$Config;->[COLOR="Red"]RGB_565[/COLOR]:Landroid/graphics/Bitmap$Config;
change all code to
Code:
sget-object v0, Landroid/graphics/Bitmap$Config;->[COLOR="Red"]ARGB_8888[/COLOR]:Landroid/graphics/Bitmap$Config;
3. Go to smali/com/sonyericsson/android/camera/device
open CameraExtensionValues.smali then search for RGB example :
Code:
.field public static final POSTVIEW_FORMAT_RGB565:Ljava/lang/String; = [COLOR="Red"]"rgb565"[/COLOR]
change to
Code:
.field public static final POSTVIEW_FORMAT_RGB565:Ljava/lang/String; = [COLOR="Red"]"argb8888"[/COLOR]
save it!!!
Enable inPreferQualityOverSpeed (I Use ONLY on Xperia 2011)
1. Go to smali/com/sonyericsson/android/camera
open CameraActivity.smali
Code:
[COLOR="Red"].local v11, opt:Landroid/graphics/BitmapFactory$Options;[/COLOR]
[COLOR="Red"]sget-object v15, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;[/COLOR]
[COLOR="Red"]iput-boolean v6, v11, Landroid/graphics/BitmapFactory$Options;->inPreferQualityOverSpeed:Z[/COLOR]
iput-object v15, v11, Landroid/graphics/BitmapFactory$Options;->inPreferredConfig:Landroid/graphics/Bitmap$Config;
Look for RED Color it's should be like this
Code:
[COLOR="Red"]
.local v11, opt:Landroid/graphics/BitmapFactory$Options;
const/4 v6, 0x1[/COLOR]
[COLOR="Red"]iput-boolean v6, v11, Landroid/graphics/BitmapFactory$Options;->inPreferQualityOverSpeed:Z
iput-boolean v6, v11, Landroid/graphics/BitmapFactory$Options;->inDither:Z[/COLOR]
[COLOR="Red"]sget-object v15, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;[/COLOR]
iput-object v15, v11, Landroid/graphics/BitmapFactory$Options;->inPreferredConfig:Landroid/graphics/Bitmap$Config;
Hacking Camera Resolution/MP (More Options)
More Options for Photo (Only work for Xperia 2011 & 2012 Snapdragon S3/Novathor)
For Xperia 2012 Snapdragon S4 and 2013/2014 doesn't work, need to be removing some code in smali, i'm still looking for it
1. Go to res/value
open arrays.xml using text editor/notepad++ then find this line
For 12MP Camera
Code:
<string-array name="ux_recommended_resolution_array_main_12m">
<item>TWELVE_MP</item>
<item>NINE_MP</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>
add others line
Code:
<string-array name="ux_recommended_resolution_array_main_12m">
<item>TWELVE_MP</item>
<item>NINE_MP</item>
<item>EIGHT_MP</item>
<item>FIVE_MP</item>
<item>THREE_MP_WIDE</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>
For 8MP Camera
Code:
<string-array name="ux_recommended_resolution_array_main_8m">
<item>EIGHT_MP</item>
<item>SIX_MP</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>
add others line
Code:
<string-array name="ux_recommended_resolution_array_main_8m">
<item>EIGHT_MP</item>
<item>SIX_MP</item>
<item>FIVE_MP</item>
<item>THREE_MP</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>
More Options for Video (Work for all Xperia)
1. Go to res/value
open arrays.xml using text editor/notepad++ then find this line
For 20MP Camera
Code:
<string-array name="ux_recommended_video_size_array_main_20m">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_20m">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
For 13MP Camera
Code:
<string-array name="ux_recommended_video_size_array_main_13m">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_13m">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
For 12MP Camera
Code:
<string-array name="ux_recommended_video_size_array_main_12m">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_12m">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
For 8MP Camera FULL HD 1080p
Code:
<string-array name="ux_recommended_video_size_array_main_8m_full_hd">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_8m_full_hd">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
For 8MP Camera HD 720p
Code:
<string-array name="ux_recommended_video_size_array_main_8m_hd">
<item>HD</item>
<item>FWVGA</item>
<item>QVGA</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_8m_hd">
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
For 5MP Camera HD 720p
Code:
<string-array name="ux_recommended_video_size_array_main_5m_fwvga">
<item>HD</item>
<item>FWVGA</item>
<item>QVGA</item>
<item>MMS</item>
add others line
Code:
<string-array name="ux_recommended_video_size_array_main_5m_fwvga">
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>
Save it!!!
Enable 12MP Superior Auto on Jelly Bean 4.3
How to Install :
- Download the file in attachment
- Copy to system with root explorer etc
- Set permissions to 644 (rw-r--r--)
- Move the file to system>vendor>overlay
- Reboot
- After boot go to settings>apps>all
- Clear data Camera & try open camera app
Enjoy :laugh:
Credits :
Thanks to SONY Mobile that made all this possible
Thanks to my old friend @Xperia-Ray for helping me from beginning
Nice guide man!
Will try it
Sent from my LT18i using Tapatalk 2
Thanks,this guide change audio bitrate only,how about video bitrate?
Nuhun kang, I'll try ur guide, anyway how to change the photo quality? Is it same method?
Sent from my C1905 using XDA Premium 4 mobile app
wow
awesome guide bro very nice :good:
It WOKS.....
thank you it does work for decompile and recompile of the apk iused this tool
http://forum.xda-developers.com/showthread.php?t=2326604
awesome....
Any mode to add manual shutter controll?
Jpeg image quality can be change in build.prop? Righ?
great job !!!!!!!!!!!!!!
one request..., tell us how to enable scene recognition...
hi @Rizal Lovins
i didn't see media_profile.xml in xml folder
devilmaycry2020 said:
hi @Rizal Lovins
i didn't see media_profile.xml in xml folder
Click to expand...
Click to collapse
it's located on ur rom,, system/etc/ media_profile.xml
Grt
Will try it :good:
raajplays said:
it's located on ur rom,, system/etc/ media_profile.xml
Click to expand...
Click to collapse
thanks. i've tried and got Error : Camera not available when recording video. any helps.
devilmaycry2020 said:
thanks. i've tried and got Error : Camera not available when recording video. any helps.
Click to expand...
Click to collapse
don't say thanks, hit thanks
double check ur videoSize.smali,
raajplays said:
don't say thanks, hit thanks
double check ur videoSize.smali,
Click to expand...
Click to collapse
did you make it work ? i'm using TX 4.3.
Report: No sound when using video to record,
Sent from my C1905 using XDA Premium 4 mobile app

Categories

Resources