Lineage OS : SD card as internal storage


Question

I have set SD card as internal storage on custom ROM Lineage 14.1. Today, I have installed a official nightly, no issues during installation(on twrp, I cannot read external SD card). And, after reboot the file explorer, shows only internal storage(external SD shows only in Settings->Storage).




  1. Do I need to migrate data to shared SD card, each time, after Nightly installation?


  2. Earlier, when I set SD card as internal storage, I moved about 700+ MB to shared, and after nightly installation, it took 800+ Mb.


  3. Some applications can't move data to shared SD card (Whatsapp, Flipkart, Google apps). I know that it is decided by the android system. How to move them, without using root or any other application.


  4. TWRP Recovery sometimes rarely not showing external SD card.(TWRP version 3.1.0). How to solve?



Answer

After asking this question, I have installed two nightly on my device.




  • March_13 : lineage-14.1-20170313-nightly-armani-signed.zip


  • March_20 : lineage-14.1-20170320-nightly-armani-signed.zip




Now, I can finalize something about this.




  1. You don't need to migrate data after each installation(nightly).


    • if it is a clean install(after factory reset), then you need to migrate data`.

    • if you are installing another ROM, then you need to setup as new by formatting sd card.(backup before installation to avoid data loss)


  2. Storage size may increase due to application data usages, but, you don't need to migrate it again.


    • If you are flashing another ROM, don't format internal storage(format these partitions /boot, /data, /system and cache. This adoptable storage cannot be used on the newly installed ROM, but it will be available during installation [on recovery menu]).

    • Also, if you're backing up current ROM, Adopted SD card data is also get backed up, but the app that uses SD card as storage will loss data after restore (You need to install those apps again).


  3. System decides which applications should save data on external sd card.(usually system apps and Gapps can use only internal storage, some user apps can be moved to external SD )

  4. External SD card speed is slower than internal storage. Also, it may be the bug of TWRP recovery, which will be solved in future new releases.


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