Hi all,
I'm creating a custom ROM series (for Android devices with 850/1900/2100mHz network frequencies, i.e, AT&T, Telus, Rogers and Telstra phones) and I need to know how to change the default APNs to the correct Telstra ones. Does anyone know how to do this?
Most devices have the option to add multiple apns for each device. Im not sure how to add default apns in the rom so the end user doesnt have to change them.
Sent from my HTC Glacier using XDA App
the most reliable way would be to pull the apns.xml file out of framework and replace/repack for each.
the apns.xml file is located in the framework-res.apk file, in the xml folder.
some will say that the apns-conf.xml file is needed to be replaced (think that's even how CM does it)... but i find that to not always work well.
replacing the actual file within framework, i've had 100% success on all ROMs, ports, etc... with MMS working perfectly
i can't speak for the Telstra in certainty... but if someone has a "stock" Telstra ROM, kang that framework and have at it!
hope this helps!
tenzomonk said:
the most reliable way would be to pull the apns.xml file out of framework and replace/repack for each.
the apns.xml file is located in the framework-res.apk file, in the xml folder.
some will say that the apns-conf.xml file is needed to be replaced (think that's even how CM does it)... but i find that to not always work well.
replacing the actual file within framework, i've had 100% success on all ROMs, ports, etc... with MMS working perfectly
i can't speak for the Telstra in certainty... but if someone has a "stock" Telstra ROM, kang that framework and have at it!
hope this helps!
Click to expand...
Click to collapse
Thanks for your help! This method works great!
Sent from my HTC Desire with Tapatalk.
Related
Hello!
I'm trying to make my own Rom right now. With dsixda's Kitchen it isn't very hard to do so I thought I'd just give it a try. I'm taking a rooted official Update (Version: 2.10.405.2) as my base. Adding busybox runparts, the /data/app functionality, a2sd+, the custom bootanimation functionality etc. isn't a problem. Removing some apps like Maps, Facebook, Teeter (and so on) and adding some like Rom Manager, Neocore or Quadrant isn't a problem, too. But if I want to implement a theme like the Carbon Espresso Mod or a theme I made with the UOT Kitchen I'm getting bootloops at booting the phone. Here's what I do: I unzip the folder (for example a theme made with the UOT Kitchen) and I copy over the framework-res.apk from the unzipped folder to my Working Folder of the Kitchen (to system/framework) and I overwrite the original framework-res.apk.
And NO: I didn't choose a battery mod or a bootanimation in the UOT Kitchen....
Hope you guys can help me
I might be wrong but doesn't the new file have to be signed? I know there is a signing option in the kitchen.
Sent from my PC36100 using Tapatalk
It's a system .apk so it doesn't have to be signed.
I can't shed any light on the subject, but here's a bump.
Are you replacing the whole "framework-res.apk" file? If so then you will need to resign your entire ROM. Why? When you change a system file ("framework-res.apk", "com.htc.framework.apk", "twframework-res", "rosie.apk", etc.) it no longer has a matching "signature" for all the files it serves images to. Plug your phone into your computer and open up "ddms" in your android_sdk > tools folder to watch what happens when the phone boots up.
A workaround (The way I do it, it's more fun IMHO) is to open up your .apk files in 7zip (or if you're on a mac BetterZip) and add the images from the themed .apk to your stock .apk. This way makes it so your original .apk has the same signature as your other system files yet has the new images from the other files that you wanted. I've had a lot of luck with this method. I don't know if it will still work if you change any .xml files as I have not messed with those yet.
I've subscribed to this thread so if you have any questions post back here or you can PM me if you want. I'm on XDA all day, every day so I'll try to help as much as I can.
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
DomiKamp said:
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
Click to expand...
Click to collapse
The kitchen signs the .zip that you flash when you build it. It does not sign any .apks for you on its own. However, there is an option to sign .apks within the kitchen.
In my opinion, taking all of the images and figuring out how it all works is fun. I feel like I've already learned quite a bit from just digging around and moving files around.
As for the .xml files, you can decompile the .apk and edit them and then recompile the .apk. I'm actually looking into this today. It sounds like some work but hopefully I'll get it figured out.
Sounds like fun indeed So, I'll just have to try it. Where can I find the "Settings" for the Notification Bar? Thanks
The variois status*.xml files in the res/layout folder of the framework-res.apk and the status*.smali files in the services.jar.
What? If I want to implement a Theme made with the UOT Kitchen (without battery) I should just copy over those files to my existing res-framework.apk OR copy over the whole res-framework.apk (the new one) and sign it?
EDIT: Just tried it with a theme from the UOT Kitchen and it worked perfectly. I've just signed the res-framework.apk and the htc.com.resources.apk (or whatever) in the Kitchen, flashed it on my Phone and it just worked like a Charm. But I have got a 50% Transparent Notification Bar and all the system icons (Battery and time/date) are still black and not transparent! Has anyone got a idea where to change this? (.xml or whatever)...And does anyone know where I can find the HTC Wallpapers? I want to change them a little bit
HeyItsLou said:
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
HeyItsLou, I looked up your ROM thread but couldn't locate the video tutorial.... do you mind providing the url? Specifically, I am trying to add to the list of wallpapers in a ROM. (I have setup apktool but not sure where/which folder to add my wallpapers in Framework-res.apk Launcher.apk before recompiling/signing). Thanks.
You COULD use the Theme Porter by daneshm90. It will only port the PNG s for it so things like clock colour n stuff will be lost, but it will get you alot closer...
http://forum.xda-developers.com/showthread.php?t=737526
Sent from my HTC Hero using XDA App
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
DomiKamp said:
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
Click to expand...
Click to collapse
Isnt that what I said in the 2nd post -.- lol jk. Glad you got it working!
Yes! And that's why I tried it. And it worked! Thanks Husker and, of course, everybody else!
Glad you got it working. Welcome to the development side of android!
Sent from my PC36100 using XDA App
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
bestialbub said:
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Click to expand...
Click to collapse
I was curious about this too. I always edit the framework-res of any ROM I flash using a custom set of images I have and have never signed the apk afterwards and it has always worked. Maybe cause I'm only replacing images? I usually do this with framework-res and twframework-res and they both can sometimes grow by 1MB or more. Just my experience.
Sent from my SAMSUNG-SGH-I897 using XDA App
DomiKamp said:
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
Click to expand...
Click to collapse
I think that in order to do the "welcome to" thing you'll have to edit the update-script file. I'm not 100% on it though. Look at a cm Rom and see what all is in there.
Sent from my HTC Evo 4G using XDA App
Just wondering if anyone had a 5mb mms zip or apk they could share. I got tired of flashing this and flashing that so I decided to go stock and just build my own from there with all the things I like and I was wondering if anyone had this mod. I really dont use it but if anyone has it I would like to have it. Thanks.
Just download a rom that has it and copy it out of /system/app
its not an apk that has it, its in the default.xml inside the mns folder
its hangs out here
/system/customize/mns/default.xml
what rom are you running i can likely make the change for you
thoughtlesskyle said:
its not an apk that has it, its in the default.xml inside the mns folder
its hangs out here
/system/customize/mns/default.xml
what rom are you running i can likely make the change for you
Click to expand...
Click to collapse
Stock deodexed Rom from Haux I think the name is.
I will look into it when I get some free time
Sent from my PG86100 using XDA App
smokin1337 said:
Just download a rom that has it and copy it out of /system/app
Click to expand...
Click to collapse
thoughtlesskyle said:
its not an apk that has it, its in the default.xml inside the mns folder
/system/customize/mns/default.xml
Click to expand...
Click to collapse
i haven't seen a lot on the details of this tweak .. interesting sprint would limit the size of mms messages .. probably for network congestion/bandwidth reasons.
using the same logic from the previous two quoted posts, if the 5mb limit adjustment is made in the /system/customize/mns/default.xml file, couldn't this file be pulled from a customized ROM and loaded onto another ROM and/or pushed onto the android device?
my curiosity got the best of me and i started searching ... i found a few of these modified default.xml files loaded on different custom EVO 3D ROMs SVN sites, meaning the whole ROM doesn't have to be downloaded. The individual files can be accessed directly.
Snyergy - /system/customize/MNS/default.xml
Virusrom - /system/customize/MNS/default.xml
quickly searching for the phrase "size" inside these files shows the location of the MMS size settings. there are quite a few lines for MMS size settings and one shows 5MB. copy/pasted below:
Code:
<item name="MMS_Msg_Size1">1M</item>
<item name="MMS_Msg_Size2">2M</item>
<item name="MMS_Msg_Size3">5M</item>
there very well could be more to the tweak than just one value on one line being adjusted. might want to examine the file further or if feeling brave, push the whole modified file over and test it out.
should be able to save these down to your computer and push over to your android device or load into your ROM .zip you will flash or modify your existing stock default.xml ... lots of options!
hopefully that helps! good luck with your own ROM!
joeykrim said:
i haven't seen a lot on the details of this tweak .. interesting sprint would limit the size of mms messages .. probably for network congestion/bandwidth reasons.
using the same logic from the previous two quoted posts, if the 5mb limit adjustment is made in the /system/customize/mns/default.xml file, couldn't this file be pulled from a customized ROM and loaded onto another ROM and/or pushed onto the android device?
my curiosity got the best of me and i started searching ... i found a few of these modified default.xml files loaded on different custom EVO 3D ROMs SVN sites, meaning the whole ROM doesn't have to be downloaded. The individual files can be accessed directly.
Snyergy - /system/customize/MNS/default.xml
Virusrom - /system/customize/MNS/default.xml
quickly searching for the phrase "size" inside these files shows the location of the MMS size settings. there are quite a few lines for MMS size settings and one shows 5MB. copy/pasted below:
Code:
<item name="MMS_Msg_Size1">1M</item>
<item name="MMS_Msg_Size2">2M</item>
<item name="MMS_Msg_Size3">5M</item>
there very well could be more to the tweak than just one value on one line being adjusted. might want to examine the file further or if feeling brave, push the whole modified file over and test it out.
should be able to save these down to your computer and push over to your android device or load into your ROM .zip you will flash or modify your existing stock default.xml ... lots of options!
hopefully that helps! good luck with your own ROM!
Click to expand...
Click to collapse
Oh wow!! Thank you so much for this!! I am trying it out now. I have been tweaking the stock ROM like crazy with changing scripts and this made perfect sense!! I just rebooted my phone so I will let you know how things go. After tweaking the stock ROM I ran a 1978 in Quadrant so Im doing something right I guess.
Edit:Yeah that didnt work. I guess you were correct. There is more to it than just changing those few numbers. Hmmmmmm........... Oh well. My ROM is running great so I think I can manage without the 5mb mms size. Thanks anyways tho.
youngpro83 said:
Oh wow!! Thank you so much for this!! I am trying it out now. I have been tweaking the stock ROM like crazy with changing scripts and this made perfect sense!! I just rebooted my phone so I will let you know how things go. After tweaking the stock ROM I ran a 1978 in Quadrant so Im doing something right I guess.
Edit:Yeah that didnt work. I guess you were correct. There is more to it than just changing those few numbers. Hmmmmmm........... Oh well. My ROM is running great so I think I can manage without the 5mb mms size. Thanks anyways tho.
Click to expand...
Click to collapse
freeza and steelh say the best way to achieve the adjusted mms size is through following this guide: [HOW-TO] [TEAM XPOSED] Disable MMS Compression
good luck and thx to steelh and freeza for pointing me in the right direction!
If you still need the apk let me know via pm. I have them and I can help you get it running on your rom.
Locked & Loaded
" Shooter on Deck "
Hi I'm running a Roggers rom for the LG P925 and I'm trying to use a custom apns-conf.xml file but I can't seem to get the rom to read these values.
By default the APNs that are displayed are the Roggers APN.
These APN values are not in the default apns-conf.xml but seem to be set via a apk called Flexprovider.apk. If I replace the default apns-conf.xml with a custom apns-conf.xml and select “reset to default” it always reloads the Roggers APN list.
If I remove the Flexprovider.apk and reset to default then the APN list is blank. Putting the apk back gives the APN list again.
I have also replaced the Flexprovider and apns-conf.xml with ones from a similar rom that gives me the APNs I’m after but still the APN stay blank.
I don’t know much about this (only want I have research on the web) but it look almost to me that there is a switch that is telling this rom not to read the apns-conf.xml file and use the Flexprovider files instead.
Has anyone else seen this before?
After a bit more digging and playing I found the answer, I needed to copy another directory over.
so to get this to work I needed to
Replace the flexprovider in \system\apps
Replace Flex folder in \system\etc
Replace apns-conf.xml in \system\etc
attached in the replacement app, folder and config if anyone else needs it
johnw230873 said:
After a bit more digging and playing I found the answer, I needed to copy another directory over.
so to get this to work I needed to
Replace the flexprovider in \system\apps
Replace Flex folder in \system\etc
Replace apns-conf.xml in \system\etc
attached in the replacement app, folder and config if anyone else needs it
Click to expand...
Click to collapse
A little bit late here....
how did you find out that the apns were set from the flexprovider.apk?
xiltepin said:
A little bit late here....
how did you find out that the apns were set from the flexprovider.apk?
Click to expand...
Click to collapse
he is wrong
u do not need any apk's and ****
just copy/replace the apns-conf.xml and then go to APN and from menu choose : "restore to default"
it will force load your new xml.reboot the phone
I have a EVO LTE running the latest stock rooted odexed ROM (3.16). There is a mod I want to make, and there is an APK (for DEODEX ROMS) available that matches my ROM version (stock 3.16)
Basically I want to add Roam only option to Phone.apk.
I took the modified apk that supposedly has the roam only option, created an .odex file for it, and signed it using the current Phone.odex using this method:
http://forum.xda-developers.com/showthread.php?t=1853569
I made sure my BOOTCLASSPATH was correct but every time I book with this Phone.apk and Phone.odex in place (that I created), I have no service.
Does anyone have any ideas on what I might be doing wrong? Or how to see and troubleshoot any error messages occuring with loading Phone.apk?
I'm only recently learning about odexing. Did you try it deodexed? Keep in mind the phone.apk you odexed probably already has a classes.dex within it. Is it zipaligned? Permissions and ownership are correct?
Wasting a couple hours on this, trying to figure it out and finally have. Rather than use iFont or something, I wanted to figure out how to make default system fonts for my daily driver--BarRin v3 currently. I edited the system_fonts.xml file and added some fonts, changed some file names, and got it working.
Includes: AlteHaas, AnkeSans, Azbuka06, Bitstream, Caviardreams, Comfortaa, DejaVuSans, MgOpenModerna, MuseoSans500, SuiGeneris, Ubuntu, Zrnic for now.
So here's what you need to do if you want to add system changeable fonts to stock ZV6 and BarRin:
1. Download and unzip attached HyFonts.zip
2. Using a file explorer w/ root (I personally like FX File Explorer but whatever works for you), copy and paste all the fonts from HYFonts folder to system/fonts after making system writable
3. copy the system_fonts.xml in HYFont folder to system/etc overwriting current one, change system back to read only
4. reboot
Profit
Enjoy
LTE to 4G icon
Got tired of looking at the "LTE" on statusbar, did some research including changing build prop and didn't like it (ie ro.build.target_county: US ro.build.target_operator: VZW). Changing Sprint's network icon png's for 3/4G would be too time consuming, so I changed only two icons that account for the the "LTE" on statusbar in LGSystemUI.apk, the rest of the icons are stock. Did not require any decompiling/recompiling, just replaced two png's after properly sizing/positioning them using GIMP and paint.net from an image found w/ google.
4G as seen in screenshot instead of LTE. For those that are interested download and extract zip file, copy/paste LGSystemUI.apk to device's system/priv-app w/ root explorer, reboot, profit
More 4G choices
here is another LGSystemUI w/LTE icon changed to 4G, screenshot of SPR version only, also attached are ATT 4G w/LTE letters, ATT 4G (noLTE letters). Follow instructions from post #2
Edit: sorry png images not showing up, just google att 4g icon for image
Thank you for the post! I had a thread over in Q&A looking for this information.
Just to verify, these fonts will show up in the stock font picker? And do I replace the existing system_fonts.xml with the new one or just copy the new one alongside the existing one?
Pierceye said:
Thank you for the post! I had a thread over in Q&A looking for this information.
Just to verify, these fonts will show up in the stock font picker? And do I replace the existing system_fonts.xml with the new one or just copy the new one alongside the existing one?
Click to expand...
Click to collapse
Replace the existing one with one from post. Here's a screenshot
@Valsorim Have you by any chance looked to see if this works for ZV8?
Pierceye said:
@Valsorim Have you by any chance looked to see if this works for ZV8?
Click to expand...
Click to collapse
Not yet, at work tonight, can check tomorrow
Edit: So tried adding fonts to ZV8, it's a no go for me. I will try to look at it soon, but not really liking stock ZV8, so sticking w BarRin v3 for now