APN-Problems? - Maybe a solution to it. - Samsung Galaxy W I8150

Hey all,
I read some have problems setting up an apn in the settings menu, caused by a so-called funny sim. I did not encounter such a problem with the roms I used from the devs here.
But I want to give a you something that might work for you besides other funny solutions I read. ^^
Here we go:
Firstly do a backup of your device or just the file were are going to change, do it like you prefer. Saver is an full nand-backup.
Secondly grab the Rom you want to flash and replace the apns-conf.xml in /system/etc inside the zip with the one I provide.
Thirdly wipe everything like always and flash the zip, reboot and be happy if apns get loaded for you. ;-)
If it is not, maybe your carrier is not in the file, so check this first.
This may not work:
Second grab the apns-conf.xml attached with this post. Extract the xml file.
Copy the file onto your device and than move it with an root browser to /system/etc. You could also adb push the file to /system/etc, if you know how to.
I think a reboot is necessary.
You could also push the file via adb when you are in the recovery after doing a backup, so you haven't to start up the system move the file and reboot again.
Let me know if it works, other ways to solve this are welcome.
Hope it helps some of you.
Credits to the Cyanogenmod-Team and the others how worked on this file.

lightwars said:
Hey all,
I read some have problems setting up an apn in the settings menu, caused by a so-called funny sim. I did not encounter such a problem with the roms I used from the devs here.
But I want to give a you something that might work for you besides other funny solutions I read. ^^
Here we go:
First do a backup of your device or just the file were are going to change, do it like you prefer. Saver is an full nand-backup.
Second grab the apns-conf.xml attached with this post. Extract the xml file.
Copy the file onto your device and than move it with an root browser to /system/etc. You could also adb push the file to /system/etc, if you know how to.
I think a reboot is necessary.
You could also push the file via adb when you are in the recovery after doing a backup, so you haven't to start up the system move the file and reboot again.
Let me know if it works, other ways to solve this are welcome.
Hope it helps some of you.
Click to expand...
Click to collapse
The zip file is damaged. From what I found, the version of the apns could be the cause of this problem.

Reupload
yewsiong said:
The zip file is damaged. From what I found, the version of the apns could be the cause of this problem.
Click to expand...
Click to collapse
Yes, right you are. I reuploaded a working one. Tried it myself ;-)

lightwars said:
Yes, right you are. I reuploaded a working one. Tried it myself ;-)
Click to expand...
Click to collapse
Did u try it on Cow v7 ROM?

yewsiong said:
Did u try it on Cow v7 ROM?
Click to expand...
Click to collapse
First like wrote, I never encounter some issues relating apn.
But I tested Cow v7 Rom.
I take the zip file and replace the apn-conf.xml in the archive with the one I provided. Then I wipe everything and flashed the Zip.
After the boot I look up the apn settings in the menu and a set of entries were loaded for my carrier. So, I would say for me I worked.
Just doing a little other way, than I described in OP. I will write it down there.

lightwars said:
First like wrote, I never encounter some issues relating apn.
But I tested Cow v7 Rom.
I take the zip file and replace the apn-conf.xml in the archive with the one I provided. Then I wipe everything and flashed the Zip.
After the boot I look up the apn settings in the menu and a set of entries were loaded for my carrier. So, I would say for me I worked.
Just doing a little other way, than I described in OP. I will write it down there.
Click to expand...
Click to collapse
Yup~ I have tried it too. It works~

I try on cm9 but unlucky for me, it still didn't work.. I still can not add apn in my device..
But thanks anyways..
^.^
Sent from my GT-I8150 using XDA

yewsiong said:
Yup~ I have tried it too. It works~
Click to expand...
Click to collapse
Great, it did for you. ^^
yufenn said:
I try on cm9 but unlucky for me, it still didn't work.. I still can not add apn in my device..
But thanks anyways..
^.^
Sent from my GT-I8150 using XDA
Click to expand...
Click to collapse
Sorry to hear, have you look into the file, if your carrier is listed. Just search inside the file for the name, cause there are so many. If not try to copy a existing apn config in the file and change it to your carriers settings.
By the way if it works, you don't have to set up a apn, cause it will be loaded after the start, maybe just wait a minute or soo. But it could be that CM9 and ICS in general handles apns a different way.

Have you got an good idea for helping the others??
Hey,
I want to encourrage everyone to post, if he or she has an idea to try out.
Am I thought falsely that more than just a handfull had problems with apn settings?!?
And if you had tried out your idea, post it please.

Maybe another solution could be in the frame-res.apk there you found the file apns.xml. But I was not successful in building the apk with apktool after modifying it.
Can some try it, or know a way to build the apk from a folder?
Gesendet von meinem GT-I8150

lightwars said:
Maybe another solution could be in the frame-res.apk there you found the file apns.xml. But I was not successful in building the apk with apktool after modifying it.
Can some try it, or know a way to build the apk from a folder?
Gesendet von meinem GT-I8150
Click to expand...
Click to collapse
After u recompile it by using apktool, there will be an apk in dist folder. U need to sign the apk before using it.
Alternatively, after recompiling the apk, there will be a folder called "build" and it has a file called resources.arsc, use 7-zip to open the original framework-res.apk and replace the resources.arsc
Then u are done.

yewsiong said:
After u recompile it by using apktool, there will be an apk in dist folder. U need to sign the apk before using it.
Alternatively, after recompiling the apk, there will be a folder called "build" and it has a file called resources.arsc, use 7-zip to open the original framework-res.apk and replace the resources.arsc
Then u are done.
Click to expand...
Click to collapse
Thanks,I read about that how to do it and not take the own, which was built. But the apktool fail to built anything.I will upload a pic soon, to show you.
Gesendet von meinem GT-I8150

lightwars said:
Thanks,I read about that how to do it and not take the own, which was built. But the apktool fail to built anything.I will upload a pic soon, to show you.
Gesendet von meinem GT-I8150
Click to expand...
Click to collapse
That will be great. Did u use the correct command?
for decompile:
Code:
apktool d -f framework-res.apk
for recompile
Code:
apktool b -f framework-res

Yeah I used them, but never mind. Somehow it worked this time, but with some errors, maybe I changed the file in a way it could not be resolved from the compiler or something like this.
I also use now a other program to modify it.

Alternative Method
My solution is slightly different
(note your phone must be rooted)
Install stock rom 2.3.6 for your region and set up phone.
Using root explorer copy csc folder, found in the system folder, to your computer.
Using WinRAR or similar open (do not extract) the rom zip you wish to flash ( note only roms based on 2.3.6 will work), drill down to the system and open it if you find a csc folder there open it and compare with yours, most custom roms don't have this folder.
Add your csc folder using WinRAR and check it has worked Close WinRAR it should have rebuilt the zip.

Related

7-zip cant modify files

I am looking to modify my phone.apk to change the color of a few buttons and the android guy that shows up when in a call. I have done this in the past and it seemed like then it was as simple as deleting the files in 7-zip and replacing with the file I wanted. Am I missing something or is it not that simple. Every time I try to move a file or delete it its says "not Implimented" or un supported compression method. I know how to push and pull files through adb so if I could just get the .png images where I want them then I would be all set. I have looked everywhere but cant seem to come up with a solution.
Thanks Jason
PS. the files are from another rom I am simply trying to use them in my current rom so the .png file should not be corrupt or broken.
You can't edit apk's with any zip extractors
Sent from my Incredible using xda premium
Albinoman said:
You can't edit apk's with any zip extractors
Sent from my Incredible using xda premium
Click to expand...
Click to collapse
Not true, regular image files can (should) be able to be draged out, edited, and droped back in an apk using 7-zip.
nighthawklude99 said:
I am looking to modify my phone.apk to change the color of a few buttons and the android guy that shows up when in a call. I have done this in the past and it seemed like then it was as simple as deleting the files in 7-zip and replacing with the file I wanted. Am I missing something or is it not that simple. Every time I try to move a file or delete it its says "not Implimented" or un supported compression method. I know how to push and pull files through adb so if I could just get the .png images where I want them then I would be all set. I have looked everywhere but cant seem to come up with a solution.
Thanks Jason
PS. the files are from another rom I am simply trying to use them in my current rom so the .png file should not be corrupt or broken.
Click to expand...
Click to collapse
My guess would be that the apk was decompiled at some point before, but not recompiled right, or with the right program. Which phone.apk are you having issues with, the one on your phone or the one your pulling the pngs from?
I am having problems with the phone.apk I pull from my phone with adb, with the phone.apk that is in the original rom, and the phone.apk that is in a nanadroid back up. The rom I am running is anthem 3.3. I am starting to think that there is a problem with 7-zip on my computer. Is there a setting I need to change? I have even ran 7-zip as administrator to see if that helped.
nighthawklude99 said:
I am having problems with the phone.apk I pull from my phone with adb, with the phone.apk that is in the original rom, and the phone.apk that is in a nanadroid back up. The rom I am running is anthem 3.3. I am starting to think that there is a problem with 7-zip on my computer. Is there a setting I need to change? I have even ran 7-zip as administrator to see if that helped.
Click to expand...
Click to collapse
Sounds like your install of 7z may be messed up. I just tried it to make sure something didnt change in an update and it works fine for me still with default configuration.

What files do i have to remove to uninstall the megabassbeatsmod posted bykurotsugi

Well i'm sorry but i'm not allowed to post in the specific topic regarding the megabasbeatsmod and i'd like to remove this mod. One user in this topic asks the same question and the author says just remove the files manually but which files exactly have to be removed
mickeyindahouse said:
Well i'm sorry but i'm not allowed to post in the specific topic regarding the megabasbeatsmod and i'd like to remove this mod. One user in this topic asks the same question and the author says just remove the files manually but which files exactly have to be removed
Click to expand...
Click to collapse
Just reflash to the stock rom. there is no way to remove it
Sent from my GT-S5360 using xda premium
abhijitro said:
Just reflash to the stock rom. there is no way to remove it
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Well author says it's possible so i hope it really is and someone else comes up with an answer or confirms what you are saying.
you'll need to delete a lot of files. extract my zip file, and make a list of files in these folder. after that, with root explorer go to see these folder:
1. /system/app : delete only 'audioeffectservice.apk'
2. /system/bin : delete all files listed in my zip file
3. /system/etc : delete all files listed in my zip file
4. /system/framework : delete all files listed in my zip file
5. /system/lib : delete all files listed in my zip file except libaudioeffect_jni.so.
don't delete anything else.
kurotsugi said:
you'll need to delete a lot of files. extract my zip file, and make a list of files in these folder. after that, with root explorer go to see these folder:
1. /system/app : delete only 'audioeffectservice.apk'
2. /system/bin : delete all files listed in my zip file
3. /system/etc : delete all files listed in my zip file
4. /system/framework : delete all files listed in my zip file
5. /system/lib : delete all files listed in my zip file except libaudioeffect_jni.so.
don't delete anything else.
Click to expand...
Click to collapse
it would have been a lot easier if he had a cwm back up
leodasal2 said:
it would have been a lot easier if he had a cwm back up
Click to expand...
Click to collapse
...or a rom to flash anytime needed in sdcard (lol)
kurotsugi said:
...or a rom to flash anytime needed in sdcard (lol)
Click to expand...
Click to collapse
Yeah i should have back-upped it but well it's a rather fresh install but not fresh enough to consider reverting back to stock again On the other side, i have enough roms on my sd-card to install so no problems with that
kurotsugi said:
you'll need to delete a lot of files. extract my zip file, and make a list of files in these folder. after that, with root explorer go to see these folder:
1. /system/app : delete only 'audioeffectservice.apk'
2. /system/bin : delete all files listed in my zip file
3. /system/etc : delete all files listed in my zip file
4. /system/framework : delete all files listed in my zip file
5. /system/lib : delete all files listed in my zip file except libaudioeffect_jni.so.
don't delete anything else.
Click to expand...
Click to collapse
Thanx a lot !
mickeyindahouse said:
Thanx a lot !
Click to expand...
Click to collapse
Yep kurotsugi is the Mr.Dependable in G-Y forums..You can just follow his posts without any doubt and he is always helpful to others
PS I don't really find the reason to remove this.. I've never felt a mod better than this and I've tried all mods.. Anyways its your wish
hitme987 said:
Yep kurotsugi is the Mr.Dependable in G-Y forums..You can just follow his posts without any doubt and he is always helpful to others
PS I don't really find the reason to remove this.. I've never felt a mod better than this and I've tried all mods.. Anyways its your wish
Click to expand...
Click to collapse
Well i allready had the feeling that i wouldn't have to doubt Mr. Dependable Very nice of him that he helped me out with my question and so fast
Well maybe you're right and i've to re-consider it but gf said it looked like sound came from to far away, but i liked it actually because i like that kind of effect. Tho i'm not sure if it came from the mod or else but now i can compare it better when i can revert it back and i'll check it with flac format this time instead of mp3. So didn't made up my mind up yet actually about this mod

Please need help regarding meta-inf

i installed "4.0.3 Leak On Screen Buttons" which was in zip having two folders
1 - meta- inf [which has a com folder (with files in it update-binary and updater-script) and with three files CERT.RSA, MANIFEST.MF and CERT.SF]
2 - system (in it framework-res.apk)
so i installed this zip via cwm, but i didn't liked the concept as it wasn't looking good,etc
so as i had already backed up my original framework-res.apk , so using root explorer i moved it back in sys/framework folder
restarted my phone and all got fine....
Though my question is as those files : update-binary and updater-script ---- CERT.RSA, MANIFEST.MF and CERT.SF are not searchable and i guess should not be deleted as they were just updated .. so still would they be impacting my phone or its all kool as i havn't been able to search them or delete them ?!
is it important to find and delete them or its no need for that and its ok ?!
Hope someone understands what i am trying to ask and reply appropriately please i would highly appreciate the same!
Think them like busybox (so you can mount delete etc)
And script file, that includes commands to do.
Every cwm zip files includes them. when you install zip file, these commands executed.
Sent from my LT18i using xda premium
eryen said:
Think them like busybox (so you can mount delete etc)
And script file, that includes commands to do.
Every cwm zip files includes them. when you install zip file, these commands executed.
Sent from my LT18i using xda premium
Click to expand...
Click to collapse
Awesome!
Just ease me by telling that so its nothing but just used for commands, so i need not to be worried for them could be hampering my phone's performance ?!
a yes answer will do
eryen said:
Think them like busybox (so you can mount delete etc)
And script file, that includes commands to do.
Every cwm zip files includes them. when you install zip file, these commands executed.
Sent from my LT18i using xda premium
Click to expand...
Click to collapse
shantusingh said:
Awesome!
Just ease me by telling that so its nothing but just used for commands, so i need not to be worried for them could be hampering my phone's performance ?!
a yes answer will do
Click to expand...
Click to collapse
Just to clarify,
That folder contains the Zip signatures and file manifests. as well as the CWM controll scripts. ect. these should never be coppied to the phone on a flash. likewise if you edit them the zip will prob not work without resigning the zip.
Pvy.
pvyParts said:
Just to clarify,
these should never be coppied to the phone on a flash. likewise if you edit them the zip will prob not work without resigning the zip.
Pvy.
Click to expand...
Click to collapse
thank you for your reply but now this got way over my head, m not that deep into this stuff so would appreciate if i get a simple answer to my question only please?
like asked in first post that i installed this zip via cwm, but i didn't liked the concept as it wasn't looking good,etc
so as i had already backed up my original framework-res.apk , so using root explorer i moved it back in sys/framework folder
restarted my phone and all got fine....
Though my question is as those files : update-binary and updater-script ---- CERT.RSA, MANIFEST.MF and CERT.SF are not searchable and i guess should not be deleted as they were just updated .. So still would they be impacting my phone or its all kool evn if as i havn't been able to search them and delete them ?!
is it important to find and delete them or its no need for that and its all ok now as i just moved the original framework back ?!
shantusingh said:
thank you for your reply but now this got way over my head, m not that deep into this stuff so would appreciate if i get a simple answer to my question only please?
like asked in first post that i installed this zip via cwm, but i didn't liked the concept as it wasn't looking good,etc
so as i had already backed up my original framework-res.apk , so using root explorer i moved it back in sys/framework folder
restarted my phone and all got fine....
Though my question is as those files : update-binary and updater-script ---- CERT.RSA, MANIFEST.MF and CERT.SF are not searchable and i guess should not be deleted as they were just updated .. So still would they be impacting my phone or its all kool evn if as i havn't been able to search them and delete them ?!
is it important to find and delete them or its no need for that and its all ok now as i just moved the original framework back ?!
Click to expand...
Click to collapse
Sorry if I didn't make it clear.
They are not flashed. Hence you can't find them. So no need to worry.
Pvy.
Sent from my TEAM Powered Arc S
pvyParts said:
Sorry if I didn't make it clear.
They are not flashed. Hence you can't find them. So no need to worry.
Pvy.
Sent from my TEAM Powered Arc S
Click to expand...
Click to collapse
Awesome thank you! I understood they just help in probably installing that particular app giving its own correct signatures and file manifests w.e so it gets installed via cwm and nothing more . And as i just backed up my original framework-res.apk to framework folder so its ofcourse all back to normal, though my phone is fine always as it was, I just had this doubt in my mind and m glad it got cleared thanks again!!
Cheers!!
Where did you place the Meta-INF files? I know system files goto system/framework but I cant find where Meta-INF files go. I'm using a root file manager.
chipdawg said:
Where did you place the Meta-INF files? I know system files goto system/framework but I cant find where Meta-INF files go. I'm using a root file manager.
Click to expand...
Click to collapse
You are not correct about the system files. And I recommend you do some more reading on how these zips work.
Metainf is FOR THE ZIP. And has been prety well explained above.
Pvy
Sent from my GT-P5110 using Tapatalk 2

[Q] Modify "updater-script"

Does anyone know how to modify the "updater-script" that is within the following file path: cm-10-20120818-NIGHTLY-d2spr.zip\META-INF\com\google\android
I just want to modify one line within the updater-zip. I tried using notepad plus by copying the "updater-zip", modifying the line I wanted to and then copying and pasting back into the CM-10 update zip (in the above mentioned file path), but I get errors. I think its an issue with file "signing" or the fact the original update-script is packed "compressed", and when I edit it, it compress's the file.
The reason I am doing this is I want to be able to dual boot my stock rom and the C10 nightlies. The current procdure allows for CM9 only but in the link below a developer found a work around where he calls for updating the script - he does not explain how to do so (I am new to to this). See link below to see what I mean:
http://forum.xda-developers.com/showpost.php?p=28906564&postcount=49
Is there an easy fix for this? Can this be done on the phone. I want to avoid having to deal with "apk signing" etc. Thanks!
i imagine ur errors are when you install?
Try mine https://dl.dropbox.com/s/6gzr055iyb1v6hp/updater-script?dl=1 you probly just got a typo somewhere. Make sure u delete .txt from my attachment as it will probly be added when you DL it. Same goes for the one ur editing. Notepad adds .txt. make sure ur deleting the extension. Mine worked perfect so if it doesn't post the error u get in recovery.
and this can be done on the phone I use root explorer but u have to unzip, edit then rezip the entire cm10 file. Easier to hit the PC and use 7zip or even windows explorer.
billard412 said:
Try mine https://dl.dropbox.com/s/6gzr055iyb1v6hp/updater-script?dl=1 you probly just got a typo somewhere. Make sure u delete .txt from my attachment as it will probly be added when you DL it. Same goes for the one ur editing. Notepad adds .txt. make sure ur deleting the extension. Mine worked perfect so if it doesn't post the error u get in recovery.
and this can be done on the phone I use root explorer but u have to unzip, edit then rezip the entire cm10 file. Easier to hit the PC and use 7zip or even windows explorer.
Click to expand...
Click to collapse
This worked perfectly Billiard. I can now dual boot CM 10 and also revert back to my normal TW rom with a simple reboot. Thanks again !

[Q]Build a Flashable .zip (CWM)

Hi, I've downloaded a good mms.apk and I would like to test it on my phone, but I can't make a flashable package with it to flash in CWM. I've seen many tutorials on how to do it, however none of them worked for me. It keeps saying "Error in .... Status 0" bla bla bla.
I'm a it of a noob on this, so it must be my error.. :silly:
The .APK is in attachment. If anyone can pack it into a flashable CWM I would be very thankful.
Thanks in advance.
S0ul
Maybe you can add mms.apk to system/app and set permissions to
RW
R
R
And reboot.
Verstuurd van mijn GT-S5660
FlemishDroid said:
Maybe you can add mms.apk to system/app and set permissions to
RW
R
R
And reboot.
Verstuurd van mijn GT-S5660
Click to expand...
Click to collapse
I also tried that. Didn't work. The messaging app didn't even appear
S0ul_ said:
I also tried that. Didn't work. The messaging app didn't even appear
Click to expand...
Click to collapse
it depends on what it's intended for...if you use the cm& mms.apk on stock it wount work it will force close, I tryed to take the mms.apc from experiatized based on stock rom and put it on another stoch but it didnt work. What I'm trying to say is that eaven if you did the thing corectly it might not be for your rom
dark'em said:
it depends on what it's intended for...if you use the cm& mms.apk on stock it wount work it will force close, I tryed to take the mms.apc from experiatized based on stock rom and put it on another stoch but it didnt work. What I'm trying to say is that eaven if you did the thing corectly it might not be for your rom
Click to expand...
Click to collapse
That's not the case. I assure you. Besides, I have already tried to do that with another Mms.apk and it didn't work as well and I had to flash it with CWM (luckly, a member of XDA packed the whole thing into a flashable .zip)
I just can't create a flashable package. I've tried everything and it failed always :/
S0ul_ said:
That's not the case. I assure you. Besides, I have already tried to do that with another Mms.apk and it didn't work as well and I had to flash it with CWM (luckly, a member of XDA packed the whole thing into a flashable .zip)
I just can't create a flashable package. I've tried everything and it failed always :/
Click to expand...
Click to collapse
same here I first used winzip then when it did not work someome in xda told me that I need to use 7zip...but stil nothing :crying:
dark'em said:
same here I first used winzip then when it did not work someome in xda told me that I need to use 7zip...but stil nothing :crying:
Click to expand...
Click to collapse
Yeah. Same problem. Tried Auto-Sign and everything
the most important is the Meta-Inf folder.
this contains the scripts that the recovery runs, and reads how to install the files, set permissions, symlinking etc..
you can take the whole Meta-inf folder from an existing ROM for gio, and move it to a new map.
folders should look like the following
META-INF > google > android > updaterscript and updatebinary
you need to edit the updater script. remove ALL lines except
mount /system ext4 ....mount
Package_extract(system) /system/
System folder > App folder > your apk you want to have in your rom
now .zip these files, winrar or 7zip doesn't care, as long as it is .zip and not .7zip or .rar you're fine.
flash it, and just to be sure you might want to mount system manually before flashing.
S0ul_ said:
Hi, I've downloaded a good mms.apk and I would like to test it on my phone, but I can't make a flashable package with it to flash in CWM. I've seen many tutorials on how to do it, however none of them worked for me. It keeps saying "Error in .... Status 0" bla bla bla.
I'm a it of a noob on this, so it must be my error.. :silly:
The .APK is in attachment. If anyone can pack it into a flashable CWM I would be very thankful.
Thanks in advance.
S0ul
Click to expand...
Click to collapse
Try with that in attachments
Hope it'll work!
voetbalremco said:
the most important is the Meta-Inf folder.
this contains the scripts that the recovery runs, and reads how to install the files, set permissions, symlinking etc..
you can take the whole Meta-inf folder from an existing ROM for gio, and move it to a new map.
folders should look like the following
META-INF > google > android > updaterscript and updatebinary
you need to edit the updater script. remove ALL lines except
mount /system ext4 ....mount
Package_extract(system) /system/
System folder > App folder > your apk you want to have in your rom
now .zip these files, winrar or 7zip doesn't care, as long as it is .zip and not .7zip or .rar you're fine.
flash it, and just to be sure you might want to mount system manually before flashing.
Click to expand...
Click to collapse
mackief said:
Try with that in attachments
Hope it'll work!
Click to expand...
Click to collapse
Thanks for all your work, however, I couldn't install it. When I try to open the messaging app it says "Application not installed"
Does this by any mean has something to do with incompatibilities?
I'm running CM9 AOKP.
S0ul_ said:
Thanks for all your work, however, I couldn't install it. When I try to open the messaging app it says "Application not installed"
Does this by any mean has something to do with incompatibilities?
I'm running CM9 AOKP.
Click to expand...
Click to collapse
Yeah. It could be for different Android versions, or because it's compiled from another kind of dpi screen... make sure that the app could work on CM9 AOKP for your device.
Sent from my GT-S5660 using xda app-developers app

Categories

Resources