Wrong MNC in apns-conf.xml - Nexus S General

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" />

Related

Manilla 2D XML - Trouble Adding a New Tab!

Does anyone know where ive gone wrong and why it doesnt work?
Ive done the follwoing
Under Tabs i have added the following
<HomeWidget enable="1" tab_bg_icon="7,8" tab_icon="69,70" big_icon="29,30" />
<CalenderWidget enable="1" tab_bg_icon="23,24" tab_icon="172,173" big_icon="63,64" />
<OperatorWidget enable="0" tab_bg_icon="120,129" tab_icon="145,147" big_icon="200,218" />
This shows up as an option under the manilla 2d customizer by Mpenguin14
And also i have added this in teh main body of the xml as coding for the tab itself
<CalenderWidget>
<Property name="IDHMWG_CALENDARBTN1_RECT" id="40" value="12,177,228,207" />
<Property name="IDHMWG_CALENDARBTN1_IMG" id="41" value="46" />
<Property name="IDHMWG_CALENDARBTN1_IMGPOS" id="42" value="29,184" />
<Property name="IDHMWG_CALENDARBTN1_TEXT_RECT" id="43" value="55,178,213,206" />
<Property name="IDHMWG_CALENDARBTN1_TEXT_TIME_RECT" id="44" value="29,178,213,192" />
<Property name="IDHMWG_CALENDARBTN1_TEXT_SUBJECT_RECT" id="45" value="29,192,213,206" />
<Property name="IDHMWG_CALENDARBTN1_IMG_FOCUS" id="46" value="181" />
<Property name="IDHMWG_CALENDARBTN1_IMG_FOCUS_DN" id="47" value="182" />
<Property name="IDHMWG_LINE_IMG" id="100" value="180" />
<Property name="IDHMWG_LINE1_IMGPOS" id="101" value="28,148" />
<Property name="IDHMWG_LINE2_IMGPOS" id="102" value="28,177" />
<Property name="IDHMWG_LINE3_IMGPOS" id="103" value="28,206" />
<Property name="IDHMWG_DATE_RECT" id="104" value="28,127,212,148" />
</CalenderWidget>
However when i try and reload m2d it wont load so i think there is an error somewhere but i dont know if i have missed a bit out!!
Any Ideas?????
Please ask questions in the right forum, or under the correct thread relating to your developed program.

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..

APN Generator

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>

[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.

[GUID] Light Color SystemUI for Xperia Oreo FW

Hi
Sony released Oreo firmware for same xperia devices. But the Quick Settings panel not changed (old N and M style)
with this easy tutrial you can make your systemui like official oreo (AOSP, Nexus, Pixel)
lets start...
All you need:
- knowlage about decompile and compile APK (apktool)
- Stock framework-res.apk
- Stock SystemUI.apk
- xml editor (notepad++ or Atom or emmac. etc)
Step 1: play with SystemUI.apk
decompile your apk file.
inside /res/layout find "qs_footer.xml" and open that. change:
Code:
<com.android.systemui.qs.QSFooter android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/header" android:paddingTop="0.0dip" android:clickable="false" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="48.0dip" android:baselineAligned="false"
TO:
Code:
<com.android.systemui.qs.QSFooter android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/header" [COLOR="Blue"]android:background="#00000000"[/COLOR] android:paddingTop="0.0dip" android:clickable="false" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="48.0dip" android:baselineAligned="false"
inside /res/layout find "qs_panel.xml" and open that. change:
Code:
<com.android.systemui.qs.QSContainerImpl android:id="@id/quick_settings_container" android:background=[COLOR="Red"]"@drawable/qs_background_primary"[/COLOR] android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:elevation="4.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.qs.QSPanel android:id="@id/quick_settings_panel" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="28.0dip" android:layout_marginBottom="48.0dip" />
TO:
Code:
<com.android.systemui.qs.QSContainerImpl android:id="@id/quick_settings_container" android:background=[COLOR="Blue"]"?android:colorPrimaryDark"[/COLOR] android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:elevation="4.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.qs.QSPanel android:id="@id/quick_settings_panel" [COLOR="Blue"]android:background="#00000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="28.0dip" android:layout_marginBottom="48.0dip" />
inside /res/layout find "quick_status_bar_expanded_header.xml" and open that. change:
Code:
<com.android.systemui.qs.QuickStatusBarHeader android:layout_gravity="@integer/notification_panel_layout_gravity" android:id="@id/header" android:paddingTop="0.0dip" android:clickable="false" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height" android:baselineAligned="false" android:paddingStart="0.0dip" android:paddingEnd="0.0dip"
TO:
Code:
<com.android.systemui.qs.QuickStatusBarHeader android:layout_gravity="@integer/notification_panel_layout_gravity" android:id="@id/header" [COLOR="Blue"]android:background="#00000000"[/COLOR] android:paddingTop="0.0dip" android:clickable="false" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height" android:baselineAligned="false" android:paddingStart="0.0dip" android:paddingEnd="0.0dip"
Okey... re-compile your SystemUI.apk
Step 2: play with framework-res.apk
decompile your apk file.
All you need are inside this path /res/values/styles.xml. Open that xml file.
Search for: "Theme.DeviceDefault.QuickSettings"
Code:
[COLOR="Red"]<style name="Theme.DeviceDefault.QuickSettings" parent="@style/Theme.DeviceDefault">[/COLOR]
[COLOR="red"]<item name="dialogTheme">@style/Theme.DeviceDefault.QuickSettings.Dialog</item>[/COLOR]
<item name="colorControlNormal">?textColorPrimary</item>
<item name="colorPrimary">@color/primary_device_default_settings_light</item>
<item name="colorPrimaryDark">@color/primary_dark_device_default_settings_light</item>
<item name="colorAccent">@color/accent_device_default_settings_light</item>
<item name="colorSecondary">@color/secondary_device_default_settings_light</item>
</style>
TO:
Code:
[COLOR="Blue"]<style name="Theme.DeviceDefault.QuickSettings" parent="@style/Theme.DeviceDefault.Light">[/COLOR]
<item name="colorControlNormal">?textColorPrimary</item>
<item name="colorPrimary">@color/primary_device_default_settings_light</item>
<item name="colorPrimaryDark">@color/primary_dark_device_default_settings_light</item>
<item name="colorAccent">@color/accent_device_default_settings_light</item>
<item name="colorSecondary">@color/secondary_device_default_settings_light</item>
</style>
Search for: "Theme.DeviceDefault.QuickSettings.Dialog"
Code:
<style name="Theme.DeviceDefault.QuickSettings.Dialog" parent="@style/Theme.DeviceDefault.Dialog">
<item name="colorPrimary">@color/primary_device_default_settings</item>
<item name="colorPrimaryDark">@color/primary_dark_device_default_settings</item>
<item name="colorAccent">@color/accent_device_default_settings[COLOR="Red"]_dark[/COLOR]</item>
<item name="colorSecondary">@color/secondary_device_default_settings</item>
</style>
TO:
Code:
<style name="Theme.DeviceDefault.QuickSettings.Dialog" parent="@style/Theme.DeviceDefault[COLOR="blue"].Light[/COLOR].Dialog">
<item name="colorPrimary">@color/primary_device_default_settings[COLOR="blue"]_light[/COLOR]</item>
<item name="colorPrimaryDark">@color/primary_dark_device_default_settings[COLOR="blue"]_light[/COLOR]</item>
<item name="colorAccent">@color/accent_device_default_settings[COLOR="blue"]_light[/COLOR]</item>
<item name="colorSecondary">@color/secondary_device_default_settings[COLOR="Blue"]_light[/COLOR]</item>
</style>
Search for: "Theme.DeviceDefault.Settings.Dialog"
Code:
<style name="Theme.DeviceDefault.Settings.Dialog" parent="@style/Theme.Material.Settings.Dialog">
<item name="colorPrimary">@color/primary_device_default_settings</item>
<item name="colorPrimaryDark">@color/primary_dark_device_default_settings</item>
[COLOR="Red"]<item name="colorAccent">@color/accent_device_default_settings_light</item>[/COLOR]
<item name="colorSecondary">@color/secondary_device_default_settings</item>
</style>
TO:
Code:
<style name="Theme.DeviceDefault.Settings.Dialog" parent="@style/Theme.Material.Settings.Dialog">
<item name="colorPrimary">@color/primary_device_default_settings</item>
<item name="colorPrimaryDark">@color/primary_dark_device_default_settings</item>
[COLOR="Blue"] <item name="colorAccent">@color/accent_device_default_light</item>[/COLOR]
<item name="colorSecondary">@color/secondary_device_default_settings</item>
</style>
find: "Theme.DeviceDefault.Settings.Dialog.Alert"
Code:
<style name="Theme.DeviceDefault.Settings.Dialog.Alert" parent="@style/Theme.Material.Settings.Dialog.Alert">
<item name="colorPrimary">@color/primary_device_default_settings</item>
<item name="colorPrimaryDark">@color/primary_dark_device_default_settings</item>
[COLOR="Red"]<item name="colorAccent">@color/accent_device_default_settings_light</item>[/COLOR]
<item name="colorSecondary">@color/secondary_device_default_settings</item>
</style>
TO:
Code:
<style name="Theme.DeviceDefault.Settings.Dialog.Alert" parent="@style/Theme.Material.Settings.Dialog.Alert">
<item name="colorPrimary">@color/primary_device_default_settings</item>
<item name="colorPrimaryDark">@color/primary_dark_device_default_settings</item>
[COLOR="Blue"]<item name="colorAccent">@color/accent_device_default_light</item>[/COLOR]
<item name="colorSecondary">@color/secondary_device_default_settings</item>
</style>
find: "Theme.DeviceDefault.Settings.Dialog.NoActionBar"
Code:
<style name="Theme.DeviceDefault.Settings.Dialog.NoActionBar" parent="@style/Theme.DeviceDefault.Light.Dialog.NoActionBar"[COLOR="Red"]>[/COLOR]
[COLOR="Red"]<item name="colorPrimary">@color/primary_device_default_settings</item>[/COLOR]
[COLOR="Red"]<item name="colorPrimaryDark">@color/primary_dark_device_default_settings</item>[/COLOR]
[COLOR="Red"]<item name="colorAccent">@color/accent_device_default_settings_light</item>[/COLOR]
[COLOR="Red"]<item name="colorSecondary">@color/secondary_device_default_settings</item>[/COLOR]
</style>
TO:
Code:
<style name="Theme.DeviceDefault.Settings.Dialog.NoActionBar" parent="@style/Theme.DeviceDefault.Light.Dialog.NoActionBar"[COLOR="blue"] />[/COLOR]
NOTE: every thing change in lates code is meaning close the style method in first line and remove there items. change > to /> and remember input space befor the slash!
Okey... re-compile your framework-res.apk
NOW, PUSH YOUR FILES TO SYSTEM, SET PERMISSIONS AND REBOOT​
...end of the post!
For awsome look, replace Noto fonts with google pixel Official Noto fonts....
Update 1: So sorry for forgot add this two style to my tutrial
Guid updated with add that stylies
1- "Theme.DeviceDefault.QuickSettings"
2- "Theme.DeviceDefault.QuickSettings.Dialog"
Update 2: For users problem with re-compile SystemUI.apk:
a bad patched file inside /res/drawable-xxhdpi called "pip_dismiss_scrim.9.png"
This is Sony problem... but don't cry!!!
I edited 9.png true patch side file fix your problem!
place attached file inside /res/drawable-xxhdpi and try again. after apktool ask you do you want to keep untoched file say yes
Inside keep folder don't touch orginal "pip_dismiss_scrim.9.png"... after compile finished, the sony orginal 9.png back to your apk.
(do this every time you re-compile your SystemUI)
I found also soke interesting lines in the SystemUI, Settings and Framework, by all the 3 apk files in strings.xml stand Reboot_Change_Theme or similar, but dunno howto activate it or add in bools.xml, it have sure todo with white and black changing for Systemui...
Nice guide btw and plese post some screenshots
Verstuurd vanaf mijn G8231 met Tapatalk
Pandemic said:
I found also soke interesting lines in the SystemUI, Settings and Framework, by all the 3 apk files in strings.xml stand Reboot_Change_Theme or similar, but dunno howto activate it or add in bools.xml, it have sure todo with white and black changing for Systemui...
Nice guide btw and plese post some screenshots
Verstuurd vanaf mijn G8231 met Tapatalk
Click to expand...
Click to collapse
Here you are... I themed my settings too and use pixel fonts too.
I try to add accent colors option to appearance settings (Like OnePlus OOS)
Can you change it on Nougat , sir ?
Can someone upload the modified files for xz as I am unable to recompile anything after modifying them
Thanks in advance
Hoang.hpump said:
Can you change it on Nougat , sir ?
Click to expand...
Click to collapse
I am on Oreo but try that in Nougat
@GenomeX Will this work on odex ?
korom42 said:
@GenomeX Will this work on odex ?
Click to expand...
Click to collapse
Yes
You don't need touch any smali files... Means you don't need have a deodex ROM.
is pushing modified systemui and framework breaks OTA updates ?
also can someone with XZ1 compact share its modified files (FW 47.1.A.5.51) ?
sheraro said:
is pushing modified systemui and framework breaks OTA updates ?
also can someone with XZ1 compact share its modified files (FW 47.1.A.5.51) ?
Click to expand...
Click to collapse
If you have unlocked bl then yes but how you wanna push it if you dont have root ?
Verstuurd vanaf mijn G8231 met Tapatalk
@GenomeX Unfortunately I'd no success trying to recompile the apk :crying:
I uploaded framework-res.apk and SystemUI.apk for xz oreo odex
If you or someone can help please edit and share the modifed apk :fingers-crossed:
https://mega.nz/#!LdxRSDrB!Ex6OZoi8y1JJHEC2ykxa_bhYwvLTfujOxOx-ciRYKX0
korom42 said:
@GenomeX Unfortunately I'd no success trying to recompile the apk :crying:
I uploaded framework-res.apk and SystemUI.apk for xz oreo odex
If you or someone can help please edit and share the modifed apk :fingers-crossed:
Click to expand...
Click to collapse
@korom42
Try this (not flashable zip/ push to system manual)
And for notic: sony system ui and settings and some other apks is deodexed (odex folder only for faster boot! you can keep odex file for some apps or deleting!)
2nd POST updated...
Update 1) for my mistake
Update 2) for guys problem with recompile SystemUI.apk with sony bad patched NINE.PNG
My next try for add adaptive icons to some sony apps like Album,Contacts, Dialer, Massage, Camera, Music and ... (must be re-engining some apps and add forground icon and background mask and some method to java codes)
@GenomeX
about update 2... you can remove that png and also the line in public.xml without issue, i struggled earlier with that and when i deleted it, succesfully compiled
Pandemic said:
@GenomeX
about update 2... you can remove that png and also the line in public.xml without issue, i struggled earlier with that and when i deleted it, succesfully compiled
Click to expand...
Click to collapse
That Png work with picture-in-picture mode, do you test pip work without that?
For safe compileing i patched that file with draw9patcher inside android studio, now is true patched
For better UI i change some classic png with vector graphics (xml format)
For example see my screen recorder! Now more harmony to other UI elements.
I do this with settings, and want do for systemui signal and wifi (aosp style) too
GenomeX said:
That Png work with picture-in-picture mode, do you test pip work without that?
For safe compileing i patched that file with draw9patcher inside android studio, now is true patched
Click to expand...
Click to collapse
What is that abd how you do picture in picture ? Sorry still investigate Oreo ^^
Verstuurd vanaf mijn G8231 met Tapatalk
Pandemic said:
What is that abd how you do picture in picture ? Sorry still investigate Oreo ^^
Verstuurd vanaf mijn G8231 met Tapatalk
Click to expand...
Click to collapse
You must be a YouTube Red user, then can use it in youtube.
But work nice in chrome when play online video
Play video (switch video to full screen mode), then hold home button and back to home screen and video playing inside a mini floating window!
GenomeX said:
@korom42
Try this (not flashable zip/ push to system manual)
And for notic: sony system ui and settings and some other apks is deodexed (odex folder only for faster boot! you can keep odex file for some apps or deleting!)
Click to expand...
Click to collapse
wow thanks works perfectly :good:
Pandemic said:
If you have unlocked bl then yes but how you wanna push it if you dont have root ?
Verstuurd vanaf mijn G8231 met Tapatalk
Click to expand...
Click to collapse
I'm trying to stay away from root/ub on oreo, I installed substratum and Andromeda so themes can apply without root, but until now I didn't find any theme that gives white systemui on xperia's oreo, if someone find it plz share

Categories

Resources