Marshmallow: Changing and connecting to an APN


Question

Okay, before anyone can downvote this or anything silly, I need to clarify a few things:




  1. This is for Android 6.0 (Marshmallow)

  2. I'm using a FlashFire-Rooted Cherry Mobile One (technically called Android One Sprout8)

  3. Prior to upgrading into Marshmallow, I am able to do these steps.

  4. This is not a duplicate of this particular ticket or this one, please.



Scenario

I want to use a certain APN (for a certain cellular network) which does not connect to the internet without a corresponding VPN. To do that, in the previous versions of Android, I simply create an APN with the corresponding configurations, switch to it by tapping the radio button, then the Android system connects to that APN, even if it can't connect to the common internet.



In Marshmallow, (or at least the stock ROM I flashed?) this doesn't work, and the it connects to the default network APN. It's similar to how my other phone, ZenFone 2, works, but with LTE (always defaulting to the nearest working APN; otherwise HSPA+ works.)



Is there some way to force the APN into this system? But I wouldn't want to downright delete my old APNs, as I still would want to connect to them when needed.


Answer

Thanks for the insight of user157947 though, I found something that helped:



I set all the Bearers in all my other APNs to something jibberish (not applicable in my country, like IS95A). I haven't seen this feature in Lolipop though (it was only LTE iirc)



To set it back to the original APN, set the Bearer to Unspecified then set your custom APN to IS95A.



I think I can also use this feature as well to force a custom APN on LTE on Marshmallow.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes