Manually inputting APN - Nexus 4 Q&A, Help & Troubleshooting

Is there a way around it? Each time I flash a ROM I have to manually input the APN settings for AIO wireless. Its not a big deal, but I'd like to save a step when flashing.
Thanks!
Sent from my Nexus 4 using Tapatalk 4

Cbelflower321 said:
Is there a way around it? Each time I flash a ROM I have to manually input the APN settings for AIO wireless. Its not a big deal, but I'd like to save a step when flashing.
Thanks!
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
You can edit the xml file in /system/etc/apns-conf.xml to include your APN, then make a backup or flashable-zip. Manually replace the file each time you install a new ROM, or better yet, use flashable zip.

What would be the best way to create a flashable zip? I have seen a few blank ones floating around, and ways to do it from the PC, but I'm looking to do it from my phone.
Sent from my Nexus 4 using Tapatalk 4

Cbelflower321 said:
What would be the best way to create a flashable zip? I have seen a few blank ones floating around, and ways to do it from the PC, but I'm looking to do it from my phone.
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
I attached a flashable zip for you. You can try it, if your apn isn't in there just extract the apns-conf.xml from the zip, add your apn in the same format the others are in, then put back in zip.

obtained said:
I attached a flashable zip for you. You can try it, if your apn isn't in there just extract the apns-conf.xml from the zip, add your apn in the same format the others are in, then put back in zip.
Click to expand...
Click to collapse
Thank you very much! For future reference, how did you go about creating the flashable zip provided?
Sent from my Nexus 4 using Tapatalk 4

Cbelflower321 said:
Thank you very much! For future reference, how did you go about creating the flashable zip provided?
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
I didn't actually make that. I got it from somewhere a while ago and remembered that I had it. But flashable zips are usually quite simple. Just add/remove files and directories to the zip and edit the updater script to reflect what you want extracted.
Sent from my Nexus 4 using xda premium

obtained said:
I didn't actually make that. I got it from somewhere a while ago and remembered that I had it. But flashable zips are usually quite simple. Just add/remove files and directories to the zip and edit the updater script to reflect what you want extracted.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Thank you for your help! I unzipped the file you gave me and entered my APN settings then rezipped it. You learn something new each day!
Sent from my Nexus 4 using Tapatalk 4

Related

I have a question about making a zip file

I would like to put a bunch of the zip files I flash and throw them all together and flash just one zip file. Anyone have any insight for me?
Sent from my SPH-D700 using XDA App
You should be able to extract the file structure of ur multiple zips and consolidate them into one flshable. Not sure how to explain it better than that though. What all are u flashing?
ksmullins88 said:
I would like to put a bunch of the zip files I flash and throw them all together and flash just one zip file. Anyone have any insight for me?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Sent from my SPH-D700 using XDA App
p3dr0maz said:
You should be able to extract the file structure of ur multiple zips and consolidate them into one flshable. Not sure how to explain it better than that though. What all are u flashing?
Click to expand...
Click to collapse
More then likely you will need to change the install script depending on the file structure of .zips you added to one .zip
Sent from my MyFrankenstein EC05OCE using XDAPA...
Umm its a big variety of apps and mods. Like the volume hck, keyboard patch, stuff like that. Do you guys think this would be hard to do?
Sent from my SPH-D700 using XDA App

[Req] NS4G System Dump

Can someone with a stock NS4G use root explorer to zip '/system' and post it here, (you don't have to be rooted to do this).
To do that open root explorer, long press system and select zip this folder, the finished zip file will be system.zip in /sdcatd/speedsoftware/zip.
I can mirror after that so you don't have to host the file.
That would help us see the differences from the GSM nexus. I will also use it to make a zip for people who want to go back to stock after messing up or something, and make a deodexed version so people can theme there NS4G.
Sent from my Nexus S using XDA Premium App
reddv1 said:
Can someone with a stock but rooted NS4G use root explorer to zip "/system" and post it here. I can mirror after that so you don't have to host the file.
To do that open root explorer, long press system and select zip this folder, the finished zip file will be system.zip in /sdcatd/speedsoftware/zip.
That would help us see the differences from the GSM nexus. I will also use it to make a zip for people who want to go back to stock after messing up or something, and make a deodexed version so people can theme there NS4G.
Sent from my Nexus S using XDA Premium App
Click to expand...
Click to collapse
both of those things have already been posted in the dev section.
*will post system in a sec
**nvm, you want stock rooted, thats not me
I haven't seen a stock flashable rom, just one that uses Odin to do that, and all the deodexd versions there are modified with custom kernels and apps.
Can you point me to a totally stock rom
Sent from my Nexus S using XDA Premium App
mikeyinid said:
both of those things have already been posted in the dev section.
*will post system in a sec
**nvm, you want stock rooted, thats not me
Click to expand...
Click to collapse
No just stock, I edit my OP for a stock no root needed.
Sent from my Nexus S using XDA Premium App
No one up for the challenge? A nandroid backup will be just as good.
Sent from my Nexus S using XDA Premium App
reddv1 said:
Can someone with a stock NS4G use root explorer to zip '/system' and post it here, (you don't have to be rooted to do this).
To do that open root explorer, long press system and select zip this folder, the finished zip file will be system.zip in /sdcatd/speedsoftware/zip.
I can mirror after that so you don't have to host the file.
That would help us see the differences from the GSM nexus. I will also use it to make a zip for people who want to go back to stock after messing up or something, and make a deodexed version so people can theme there NS4G.
Sent from my Nexus S using XDA Premium App
Click to expand...
Click to collapse
Do you still need this?
r80ies said:
Do you still need this?
Click to expand...
Click to collapse
Yes preferably stock and not rooted.
Sent from my Nexus S using XDA Premium App
hopefully you can figure something out
snandlal said:
Sorry it took so long
Click to expand...
Click to collapse
Thanks so much! I was asking it as a favor, so you didn't take long at all. You can take it down if you want, I'll mirror it soon.

Resize CyanogenMod nav bar

Hey guys how do i resize CM nav bar?
Sent from my Nexus 4 using xda app-developers app
Theres no actual option in the rom, but you could check out this: http://forum.xda-developers.com/showpost.php?p=38102614&postcount=25
I would make nandroid before flashing it just in case
Nandroid whats that? Ohh and i checked the forum out but it wasn't helpful any other forums?
Sent from my Nexus 4 using xda app-developers app
JayMix said:
Nandroid whats that? Ohh and i checked the forum out but it wasn't helpful any other forums?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Nandroid is the backup you make through recovery
Okay. Well i have searched around several times and i can't seem to fine anything that on resizing CMs nav bar.
Sent from my Nexus 4 using xda app-developers app
You can't change it from within CM, but you can flash different mods in recovery (like the one posted above) to change it manually.
Ill be honest if You dont know what a nandroid is you may want to take some time and do some basic research before you end up bricking your phone. Messing with the OS of a device is NOT fool proof. Things can go wrong and then you are stuck with a non working device that you cant return.
Ok just learned what nandroid is and so i guess the next step is to nandroid backup my phone and then flash the mod from the link right?
Sent from my Nexus 4 using xda app-developers app
JayMix said:
Ok just learned what nandroid is and so i guess the next step is to nandroid backup my phone and then flash the mod from the link right?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Yep. And if something goes wrong after flashing the mod (systemui crashing, bootloop, etc) just restore the nandroid.
Sent from my HTC Desire using xda app-developers app
Hey guys it didn't work what did i do wrong?
Sent from my Nexus 4 using xda app-developers app
JayMix said:
Hey guys it didn't work what did i do wrong?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
You probably didnt do anything wrong, its just that the mod didnt work lol.
Try out this tutorial. It should work, but its a bit of work.
These are the lines that you have to change:
Code:
<dimen name="navigation_bar_height">[COLOR="Red"]38.0[/COLOR]dip</dimen>
<dimen name="navigation_bar_height_landscape">[COLOR="red"]38.0[/COLOR]dip</dimen>
<dimen name="navigation_bar_width">[COLOR="red"]38.0[/COLOR]dip</dimen>
The link you provided is broken.
Sent from my Nexus 4 using xda app-developers app
JayMix said:
The link you provided is broken.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
That's odd. It was just working fine...and now it says account suspended .
Anyways this is basically what you have to do(may require some other searching):
-navigate to system/framework and copy the framework-res.apk to your computer
-decompile framework-res.apk
-in the decompiled folder navigate to /res/values/ and open the file named dimens.xml in a text editor
-edit the lines that I posted above to your liking
-recompile framework-res.apk and push it back to the phone. Also make sure the permissions are set to rw-r-r
Hey what does bar width do? hey I am having issues signing and pushing files back to my phone?
Sent from my Nexus 4 using xda app-developers app
JayMix said:
Hey what does bar width do?
Click to expand...
Click to collapse
You should keep it the same as the height. All three values should be the same
hey I am having issues signing and pushing files back to my phone?
Click to expand...
Click to collapse
Whats the issue? You cant just put a question mark at the end of your vague statement and expect someone to figure out your problem
Sorry typo, by the way thx for all your help so far. I have edited my framework nav bar to 36 but i dont know how to replace my original framework.
Sent from my Nexus 4 using xda app-developers app
you should try a rom with more control built in like aokp, slim, or pa if you want to change stuff more and dont quite know how to mod system files correctly
anyway, heres what i found with a quick google: http://forum.xda-developers.com/showthread.php?t=2159270
its pretty complicated but the instructions are clear
---------- Post added at 08:39 PM ---------- Previous post was at 08:35 PM ----------
JayMix said:
Sorry typo, by the way thx for all your help so far. I have edited my framework nav bar to 36 but i dont know how to replace my original framework.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
just copy the original framework incase you want to go back to it and paste the modded framework in place of the original framework and reboot you phone
JayMix said:
Sorry typo, by the way thx for all your help so far. I have edited my framework nav bar to 36 but i dont know how to replace my original framework.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
-Make a nandroid backup just in case
-Download an root file manager. I would recommend root explorer (paid), but there are other free ones like es file explorer.
-Copy the framework-res.apk from your computer to your phone. (just use the usb cable and transfer it over using MTP)
-Open the root file manager and copy the framework-res.apk from where you put it
-Navigate to system/framework and rename the existing framework-res.apk to framework-res.apk.bak
-Paste the new framework-res.apk
-Long press the new framework-res.apk and go to permissions and change them to rw-r-r
-reboot
yep I do that but as soon as I get done renaming framework.apk.bak the phone restarts and goes into boot loop.
I reflash CM10.1 and nandroid backup and everything is fine again. then I tryed just replacing framework but same thing happens.
ohh and mbucks911 the reason why I dont use AOKP is becasue my battery life with AOKP is terrible it causes my phone to run at around 38c which is warm enough to make my hands sweat and my battery drains 10% for every 10mins my screen is on. when I use CM my phone barely gets over 30c and operates around 27c for every and 10% of my battery thats almost 2 hours of sot thats why i am trying to stick with CM.
JayMix said:
yep I do that but as soon as I get done renaming framework.apk.bak the phone restarts and goes into boot loop.
I reflash CM10.1 and nandroid backup and everything is fine again. then I tryed just replacing framework but same thing happens.
Click to expand...
Click to collapse
Try using adb to push it.
Code:
adb remount
adb push \path\to\framework-res.apk /system/framework/
adb reboot

Stock rooted nexus 4 on LTE T-Mobile

Well im trying to get Lte to stick on my stock nexus 4 but it just doesn't work.Do I have to do something special to get it to stick? On my other ROMs it sticks wonderfully.For some reason on stock it doesn't any help my friend'!!?
Sent from my Nexus 4 using XDA Premium HD app
What radio are you using and what are your APN settings?
Sent from my Nexus 4 using Tapatalk 4 Beta
Radio .33 and apn are changed to fast.T-Mobile.com I don't known how to make another APN
Sent from my Nexus 4 using XDA Premium HD app
I got LTE to stick, stock 4.2.2
Took a lot of research but tomorrow I'll post in detail. It's actually really easy. I'm just too tired tonight to grab all the links and whatnot.
Sent from my Nexus 4 using xda premium
ingenious247 said:
I got LTE to stick, stock 4.2.2
Took a lot of research but tomorrow I'll post in detail. It's actually really easy. I'm just too tired tonight to grab all the links and whatnot.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Thanks bro
Sent from my Nexus 4 using XDA Premium HD app
Ok, here you go - Read everything below first, before you do any of this please.
The usual "I'm not responsible for anything that happens to your phone" statement applies.
First, make sure you flash either the .27 or .33 radio. I chose .27 as it is the most stable for me in my area. You can find the radios here:
http://forum.xda-developers.com/showthread.php?t=2087227&page=1
Once you have flashed the radio, then flash the audio fix (using the old LTE radios on stock 4.2.2 kills the in-call audio - this file will fix it, just flash in recovery).
You also need to flash the build.prop fix. Both the audio fix and build.prop fix flashable zips are here:
http://forum.xda-developers.com/showthread.php?t=2327199&page=3
Once you have flashed both of those, you're going to need to replace your apns-config.xml file - I have attached the file to use so that you don't have to do the edits (just unzip the file first). In root explorer or ES file explorer (both work fine) navigate to /system/etc and rename the existing apns-config.xml file to apns-config.xml.bak. Then paste the file I attached to this post in the same folder (/system/etc) and rename it to apns-config.xml. Make sure you set the permissions to rw-r--r--
Now comes the crappy part. You have to factory reset your phone. But the good news is, once you do, you have permanent LTE on rooted stock 4.2.2. Yep it's that simple.
Please keep in mind, if you have already modded your build.prop in previous attempts, it's important to delete it and restore your .bak build.prop file if you want to use the flashable zip I linked you to. The flashable zip won't check to see if the mods are already in there, it will just write them in, thus possibly duplicating entries.
If you're build.prop already has these lines added:
telephony.lteOnGsmDevice=1
ro.telephony.default_network=9
ro.ril.def.preferred.network=9
And this line removed:
telephony.lteOnCDMADevice=0
then you don't need to flash the build.prop zip.
Let me know if you have any questions.
I just realized I didn't change the name of the apns file I attached, so you don't need to rename my attachment. Just rename the existing apns file before pasting.
Sent from my Nexus 4 using xda premium
ingenious247 said:
I just realized I didn't change the name of the apns file I attached, so you don't need to rename my attachment. Just rename the existing apns file before pasting.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
I did everything as stated it worked once I rebooted it went back to h+ waited 20 min to 4 g showed up
Sent from my Nexus 4 using XDA Premium HD app
I should have mentioned, once you factory reset, you cannot ever go into the apn settings or the #*#*4636*#*# phone menu or it breaks it
Try doing it again and remember to factory reset right after you change the apns file. Before you factory reset go into the #*#*4636*#*# phone menu and set it to LTE/GSM/CDMA, then wait for 4G to show active then FDR
Thanks
Sent from my Nexus 4 using XDA Premium HD app

[Q] Ruined my internal storage.

Hi,
I have a 32 gb Nexus 10 but I only have 13 gb internal.
I have flashed the factory image manually and before that I had 27 gb free..
How can I fix this problem?
Sent from my Nexus 10 using xda app-developers app
mrgnex said:
Hi,
I have a 32 gb Nexus 10 but I only have 13 gb internal.
I have flashed the factory image manually and before that I had 27 gb free..
How can I fix this problem?
Sent from my Nexus 10 using xda app-developers app
Click to expand...
Click to collapse
You made the mistake of flashing the Nexus10 16GB image instead of the 32BG image. Do a search and you will find solutaions to this issue.
Sorry but do not have the links handy.
3DSammy said:
You made the mistake of flashing the Nexus10 16GB image instead of the 32BG image. Do a search and you will find solutaions to this issue.
Sorry but do not have the links handy.
Click to expand...
Click to collapse
Thank you for replying. I rooted my tablet and read that someone got the same issue after rooting so maybe that's the problem.. I can't find an Android 4.3 factory image for 32 GB manta.. I only see one on the official site... Can you guide me in the right direction?
Sent from my Galaxy Nexus using XDA Premium HD app
mrgnex said:
Thank you for replying. I rooted my tablet and read that someone got the same issue after rooting so maybe that's the problem.. I can't find an Android 4.3 factory image for 32 GB manta.. I only see one on the official site... Can you guide me in the right direction?
Sent from my Galaxy Nexus using XDA Premium HD app
Click to expand...
Click to collapse
Here are some links I collected a long while ago on the subject. They maybe out of date so you will need to judge for yourself.
From OLD notes: A 32GB N10 after flashing ROM changed to 16GB, here are suggested solution threads:
- http://forum.xda-developers.com/showpost.php?p=34306292&postcount=13
- A little clearer advise: http://forum.xda-developers.com/showpost.php?p=34732092&postcount=22
- More: http://forum.xda-developers.com/showpost.php?p=37104739&postcount=23
Good luck
3DSammy said:
Here are some links I collected a long while ago on the subject. They maybe out of date so you will need to judge for yourself.
From OLD notes: A 32GB N10 after flashing ROM changed to 16GB, here are suggested solution threads:
- http://forum.xda-developers.com/showpost.php?p=34306292&postcount=13
- A little clearer advise: http://forum.xda-developers.com/showpost.php?p=34732092&postcount=22
- More: http://forum.xda-developers.com/showpost.php?p=37104739&postcount=23
Good luck
Click to expand...
Click to collapse
Thank you. I saw that the flash-all.bat script should solve it. But I didn't have that script. I only got a file that I renamed to .zip that contained the .img's.. Do I have a bad download?
Sent from my Galaxy Nexus using XDA Premium HD app
mrgnex said:
Thank you. I saw that the flash-all.bat script should solve it. But I didn't have that script. I only got a file that I renamed to .zip that contained the .img's.. Do I have a bad download?
Sent from my Galaxy Nexus using XDA Premium HD app
Click to expand...
Click to collapse
If I were you I'd download the images again, just to don't risk, here's a link:
https://developers.google.com/android/nexus/images#mantaray
I got mine there, try downloading again and installing, remember to flash base before! This way it's assured the new bootloader will be installed.
"This Story Ends Where It Began" - Octavarium (Dream Theater)
Sent from my GT-I9505
XxLordxX said:
If I were you I'd download the images again, just to don't risk, here's a link:
https://developers.google.com/android/nexus/images#mantaray
I got mine there, try downloading again and installing, remember to flash base before! This way it's assured the new bootloader will be installed.
"This Story Ends Where It Began" - Octavarium (Dream Theater)
Sent from my GT-I9505
Click to expand...
Click to collapse
Err which base? I think it's a bad download. The wifi here sucks.. So I think I must wait till I'm home. I don't have any flashable files. I download the .tar from the site and that contains a file without extension.. That's the weird part. When I rename that file to *.zip it contains the .img's (boot, cache, recovery, system and userdata. I can't flash the *.zip via fastboot. It tells me something about a bad signature. So when I flash them manually it boots but I only get 13 GB internal storage..
Sent from my Galaxy Nexus using XDA Premium HD app
mrgnex said:
Err which base? I think it's a bad download. The wifi here sucks.. So I think I must wait till I'm home. I don't have any flashable files. I download the .tar from the site and that contains a file without extension.. That's the weird part. When I rename that file to *.zip it contains the .img's (boot, cache, recovery, system and userdata. I can't flash the *.zip via fastboot. It tells me something about a bad signature. So when I flash them manually it boots but I only get 13 GB internal storage..
Sent from my Galaxy Nexus using XDA Premium HD app
Click to expand...
Click to collapse
If you have a PC all you need to do is unzip the .tar file and run the flash-all.bat command via fastboot, I think it is the only safe way to make sure all your partitions are going to be correct after it completes. You can't flash .zip files via fastboot.
hope it helps.
Erik
ricco333 said:
If you have a PC all you need to do is unzip the .tar file and run the flash-all.bat command via fastboot, I think it is the only safe way to make sure all your partitions are going to be correct after it completes. You can't flash .zip files via fastboot.
hope it helps.
Erik
Click to expand...
Click to collapse
Thats the problem. I don't have a flash-all.bat. I get a file with an unknown extension..
Sent from my Galaxy Nexus using XDA Premium HD app
These are the files you are supposed to get when you unzip the tar file, if you don't have the flash-all then it could be a bad download, I can upload the file later if you still needed it, but I think you should try, if possible, to download the entire Nexus 10 image from Google again.
Erik
Sent from my LG-E980 using Tapatalk 4
ricco333 said:
These are the files you are supposed to get when you unzip the tar file, if you don't have the flash-all then it could be a bad download, I can upload the file later if you still needed it, but I think you should try, if possible, to download the entire Nexus 10 image from Google again.
Erik
Sent from my LG-E980 using Tapatalk 4
Click to expand...
Click to collapse
Well, I downloaded it 3 times (maybe 4). This evening I'm going home and there is better wifi. So I will download it again and I will tell if it worked. Thank you for helping.
Sent from my Galaxy Nexus using XDA Premium HD app
So I downloaded the JWR66Y update and it updated flawlessly. I only had a bootloop. I erased cache but that didn't work. So I flashed cache.img and userdata.img again. It booted but I still have only 13 GB available.
Sent from my Galaxy Nexus using XDA Premium HD app
I fixed it. I did a factory reset via settings and I had all my storage back.
Sent from my Galaxy Nexus using XDA Premium HD app

Categories

Resources