[Q] Latest stable ROM to run on stock kernel - Android Q&A, Help & Troubleshooting

HI all
I already have my mini x10 pro U20i rooted with CWM and Busybox and I have been looking for the latest most stable ROM to run on the stock kernel.
Preferably something that can install the apps onto SDCard
And
Works well in low signal strength areas
I use apps mainly for PC Repair if that helps
X10 specs
Model U20i
Firmware version 2.1 update 1 no other updates available
Baseband Version M76XX-TSNCJOYLM-5340-4015
Kernel Version 2.2.29 [email protected] #1
Build Number 2.1.1.A0.6
If you need any more info please let me know what you need
many thanks in advance

The most stable Rom that I found:
http://forum.xda-developers.com/showthread.php?t=1415026
http://forum.xda-developers.com/showthread.php?t=1576160
http://forum.xda-developers.com/showthread.php?t=1911317

polimeno said:
The most stable Rom that I found:
http://forum.xda-developers.com/showthread.php?t=1415026
http://forum.xda-developers.com/showthread.php?t=1576160
http://forum.xda-developers.com/showthread.php?t=1911317
Click to expand...
Click to collapse
Hi polimeno
Thank you for your suggestions much appreciated
Since doing research into all this I have discovered that now the phone is rooted there is an app called Link2sd that will do the job I require without installing a new ROM.
All I have to do is is backup the SDcard and make 2 partitions
Features:
- Create and remove link for apk, dex and lib files of the applications you select
- Automatically link newly installed apps (optional)
- Move any user apps to SD even though the app does not support moving to SD (a.k.a. "force move", for Android 2.2 and higher)
- Shows the apps that support moving to SD with native apps2sd (for Android 2.2 and higher)
- Set the default install location of the apps; auto, internal, or external (for Android 2.2 and higher)
- Batch link, unlink, reinstall, uninstall, "move to SD", "move to phone" functions (multi-select mode)
- Uninstall system applications (bloatware removal)
- Freeze and un-freeze system and users applications
- Convert system apps into user apps
- Convert user apps into system apps
- Integrate "Updated" system apps into system (ROM)
- Clear data and cache of the application
- Clear all apps cache at once (1-tap cache cleaner without being root)
- List applications, show detailed size information and link status
- Sort and filter applications
- Search applications by name
- Display available space information of internal storage, SD card and SD card 2nd partition
What you need:
- root permission.
- a second partition on your SD card.
You should have two partitions on SD card and both should be primary.
The first FAT partition is your standard SD card storage. The second partition is used for application files and can be ext2, ext3, ext4 or FAT32.
Some phones lack the ext2, ext3 or ext4 file system support and you may get mount errors like "no such device", "invalid argument". These phones need ext2.ko or ext3.ko modules and even some additional modules to be able to mount. Using FAT32 on the second partition will eleminate such problems, because FAT32 is supported on all phones.
Link2SD does not create the second partition, you need to create it yourself. You can use any partition manager such as Minitool, Paragon, Easeus etc. for this.

Related

[Q] Is there a way to increase system storage on Viewpad 7?

Hello!
I've just rooted Viewpad 7 and installed EUViewpad7 v1.7b firmware.
In Quick System Info app it says I have only 4 kb free "system storage" left.
I'd like to try to increase internal storage size, perhaps at expense of some internal storage or somesuch (since apps run from SD thanks to apps2sd)
And yes, the ROM already has apps2sd, so I don't think I can move any more stuff to SD without breaking everything...
Is increasing "system storage" possible ?
1. Link2sd way
- Rooted
- Partition EXT3 or 4 in your micro-sd, size whatever u want (1024 mb recommend).
- Open Link2sd's app select ext3 or 4.
- Reboot
2. a2sd way
- Rooted
- Install CMW.
- Partition EXT3 or 4 in your micro-sd, size whatever u want (1024 mb recommend).
- Install a2sd from recovery mode.
- Install a2sd gui from Google play.
- move data from app or in terminal [type su>enter>type a2sd datasd>enter>auto reboot]
3. Google move to sd-card, apps2sd or app way
- Install app that the name say move to sd or something.
- Not help.
And like other developer alway said, Do it with your own risk.
Sorry for my weak english.
I think a2sd is already installed and all the apps that can be moved to SD are on SD already (a2sd comes with EUViewpad7 v1.7b by default, and I did create all the partitions and stuff on SD. Also, terminal emulator -> a2sd check says that I have apps and dalvik cache running from SD)
So. moving apps 2 sd is unlikely to yield much relief since they all are already there
Any other ideas on getting more "system storage" ?
If your a2sd run perfect, your rom space will not decreate even if u install a lot of app.
Sent from my ViewPad7 using xda premium
Yeah.
Though I would still rather have it larger, you know, just in case (also curious about it on general principle of finding out new stuff)
indyend said:
If your a2sd run perfect, your rom space will not decreate even if u install a lot of app.
Sent from my ViewPad7 using xda premium
Click to expand...
Click to collapse
+++1 on that, many others have successfully used A2SD on the EU v1.7b ITE ROM like myself, it's been documented in extensive details in the custom Rom's thread, please re-read and follow the steps outlined, and, backup anything & everything important on the mSD card first.
I'm guessing that the mSD card wasn't fully reformatted and setup properly.
Quick key steps: make sure you do a full dalvik, cache & system wipe first (after backing up via CWM 2.x - recommended verison over 4.x or newer 5.x) and format ext3/4 with 1MB space, move/copy ZIP file back to ROM and select it to flash/install, continue with full setup, power down & restart.
You will need to re-install Titanium Backup & A2SDGUI from Market (it's now Google Play, once your account is setup/restored) and check your memory/storage with A2SDGUI, it should show plenty of available/free space for internal, system/rom and SD/ext card usage.
If not, re-check your steps and repeat it for proper installation. If it's working, A2SD will dynamically move & free up plenty of space for Apps, I have over 50 (market) apps of them in addition to the default/custom Rom's Apps, and 2 verisons (soon to be 3) of Angry Birds running on it.
A 8GB mSD is the minimum that I would use, a 16GB mSD is better with all the CWM files that you will store on it, plus MP3 and videos, etc.
FYI - mine device's readings are:
Internal memory free (total) 93MB (171MB)
SD-Ext free (total) 555MB (914MB)
/cache/free (total) 86MB (88MB)
Ram free (total) 226MB (415MB)
A corrupt installation will not display all of the above. I have yet to come across after trying other App2SD apps out in the "Market" that work and can free up so much "extra" for the Vpad7 ... YMMV
Good luck & if you are not sure, please post your results/space as shown under A2SD as written by DT.
Link of my space and u will see how much free of my viewpad7. And the most important is no app on m-sd. It's all in ext3.
http://db.tt/YTSbK5Ss
Sent from my ViewPad7 using xda premium
Okay, guess I'll just have to stop worrying lol

[Q] darktremor & sd-ext

i often have this problem: There is an app2sd-gui DT script included in the rom... and this automatically places apps to the fat partition on the sd card ..
now, i always partition my sdcards with a second ext4 partition and prefer to use that one as an sd-ext directory and use linking to place my apps and all the stuff on my sd.
This allows me to use virtually unlimited storage and keep my internal memory completely free... (i also have a htc wildfire with CM7 and this setup; there i have about 70 apps installed. the internal memory has about 10 MB in use with some files i really wanted to have there so they always start fast like go keyboard, go contacts ex and my ringtones / alarm sounds. All other files are on my 16 gb sd card)
With a lot of the roms i've been trying i just can't get this working on my galaxy ace... especially the ICS roms i can't see my EXT4 partition as /SD-EXT for some reason, but often it gets mounted as /System/SD and thus link2sd cannot use my second partition.
Especially if app2sd is builtin as a system app this seems to be a problem. Has anyone ideas on how i could get this working again with these roms?
BoGy1980 said:
i often have this problem: There is an app2sd-gui DT script included in the rom... and this automatically places apps to the fat partition on the sd card ..
now, i always partition my sdcards with a second ext4 partition and prefer to use that one as an sd-ext directory and use linking to place my apps and all the stuff on my sd.
This allows me to use virtually unlimited storage and keep my internal memory completely free... (i also have a htc wildfire with CM7 and this setup; there i have about 70 apps installed. the internal memory has about 10 MB in use with some files i really wanted to have there so they always start fast like go keyboard, go contacts ex and my ringtones / alarm sounds. All other files are on my 16 gb sd card)
With a lot of the roms i've been trying i just can't get this working on my galaxy ace... especially the ICS roms i can't see my EXT4 partition as /SD-EXT for some reason, but often it gets mounted as /System/SD and thus link2sd cannot use my second partition.
Especially if app2sd is builtin as a system app this seems to be a problem. Has anyone ideas on how i could get this working again with these roms?
Click to expand...
Click to collapse
You have to edit the a2sd-script wich should be located in /etc/init.d/
But using "Link2sd" would be much easier. It is a well structured app and the usage is simple, because the first time (when you open the app) you have to choose your partition and the mountscript will be created automatically.
You can get Link2SD from this xda-thread or the play store
BoGy1980 said:
i often have this problem: There is an app2sd-gui DT script included in the rom... and this automatically places apps to the fat partition on the sd card ..
now, i always partition my sdcards with a second ext4 partition and prefer to use that one as an sd-ext directory and use linking to place my apps and all the stuff on my sd.
This allows me to use virtually unlimited storage and keep my internal memory completely free... (i also have a htc wildfire with CM7 and this setup; there i have about 70 apps installed. the internal memory has about 10 MB in use with some files i really wanted to have there so they always start fast like go keyboard, go contacts ex and my ringtones / alarm sounds. All other files are on my 16 gb sd card)
With a lot of the roms i've been trying i just can't get this working on my galaxy ace... especially the ICS roms i can't see my EXT4 partition as /SD-EXT for some reason, but often it gets mounted as /System/SD and thus link2sd cannot use my second partition.
Especially if app2sd is builtin as a system app this seems to be a problem. Has anyone ideas on how i could get this working again with these roms?
Click to expand...
Click to collapse
sd-ext is for CYANOGENMOd only...in stock based rom's u wont find a sd-ext..so s2e wont work.... but charmingly link2sd works....
now if it isn't working what shall u do???
-- if it says mount script not created,, partiotion is busy,,,, reflash the rom or i tried flashing another rom on wich link2sd worked and then reflashing the rom u want... install link2sd apk.. choose ext4 partition reboot.... (it works u can switch from cm7 to stock it wont be a problem)
- if ur sd-ext partition is of ext3 type,,, still choose ext4 on link2sd partition type screen
Fly-High said:
You have to edit the a2sd-script wich should be located in /etc/init.d/
But using "Link2sd" would be much easier. It is a well structured app and the usage is simple, because the first time (when you open the app) you have to choose your partition and the mountscript will be created automatically.
Click to expand...
Click to collapse
I always try to use links2sd; but if app2sd(gui) is installed it won't work.
I'd like to edit the init.d 'mount' script, but i don't know how to open thiis since it always says it cannot be found when i try to open it for editing or even for reading.
(i'm trying to open it with an app that has SU rights like Total Commander)
i have some experience with android and installing custom roms ; but i don't have real experience with editing files in a live OS.
Or should i edit the files in the APK before installing it? (isn't this going to break the APK's CRC-key rendering the file unusableN)
I already thank you guys for reading and sharing your knowledge...
I found it
I could edit the mountsd file in the original ZIP (which is not a crc'ed APK )
then reflash my device.
I removed everything in the mountsd file except this;
Code:
#!/system/bin/sh
#
# mount ext partition from sd card
(so this is what's left)
then i installed S2E & Link2SD, i let link2sd initialize it's scripts and pataboom; i got access again after the next reboot of my device ... finally i have a galaxy ace with unlimited space (or at least kinda limitless compared to the 120mb you get)
i was so used to the big space since it worked like a shine on my htc wildfire (like 60+ apps and only a few mb in use by some apps i really wanted on the internal memory so they start up fast anytime (no interference when other apps are running/starting).
I really love link2sd since it allows you to put apps on external memory and still use the widgets/services/.... while app2sd can't do that
thx again for your help guys! (although i did a lot of fo the job myself too

[Q] A Few Questions about Internal Storage and minimizing its usage.

Hello all .
I have a Android Phone that has very low Internal Storage. (After STOCK mod restore, there is only 100 MB internal storage free .).
So, naturally I want to put all the apps that I install now to External SD Card.
I've tried App2SD and Link2SD already.
But, when i used App2SD, the internal storage was still dropping as I installed more and more apps. (App2SD was working, meaning app2sd did move the apps to SD, but still there was decrease in free Internal Memory).
Then, I tried Link2SD. This gave me the same result as App2SD. This was better than App2SD though, meaning the decrease in Internal Memory was slower compared to App2SD.
Now, here's my question : I want a proper technique to move EVERYTHING app related to SD card when i install an app.
Here is an Idea :
Can i create links to Directories in Internal Memory and move the Directories to external SD card ?
i know i can create links to files. but is it possible to link whole directories ? (If the app tries to create new files or directories, the link must work in such a way that new files and directories are created in External SD....... this must be invincible or transparent to the App..)
Some more of my Ideas :
Recently, I came across this : [TOOL] DirectoryBind - move data to external_sd (GameLoft, Shadowgun etc.) ROOT req. - xda-developers
Can I Bind the whole "/data/app" and "/data/data" and "/data/dalvik-cache" to External SD Card ?
Will it cause any OS instability ? or any other problems ?
And i have 1 more question :
When i install a new Application, I wanna know all the directories that it uses.
These i know : /data/app (for apk), /data/data (for data) and /data/dalvik-cache (for odex) ... Where else does the application use storage space ?
This i wanna know coz, im going to try to Bind the Directories using the tool i mentioned above. Or try to create Links...
Thanks a lot fellow XDA-Developers.... :highfive:.
If its of any help, my android device is "Karbonn A5i" .
Bump
.:Death_Angel:. said:
Bump
Click to expand...
Click to collapse
Int2Ext sript is what you're looking for You will have to partition your sdcard. First partition Fat(32), second partition Ext2/3/4. The scripts are meant to flash immediately after flashing the rom via cwm as other recoveries are not doing well with the scripts.
Int2Ext scripts move all app data to the Ext partition on your sdcard
Int2Ext+ scripts will move most of the data to Ext partition but will still use some of the internal storage as its faster this way.
Keep in mind that moving all data to sdcard will slow down your device
Thanks a lot LS.xD for your reply. I hit a few bumps along the road, but its working like charm now .
Here are the problems that I faced :
1) I didn't have Init.d Support in my Phone.
Solution : Universal Init.d - Android Apps on Google Play
This Doesn't work at all : [GUIDE][XSP]Easy init.d support for Stock ROMs - xda-developers
2) The Int2Ext script installation resulted in an Error (in ClockworkMod) (Status 0 Error.).
Solution : http://forum.xda-developers.com/showpost.php?p=29421274&postcount=66
After getting past those things, everything is working just fine now (I'm using INT2EXT) .
Again, Thanks a lot LS.xD for you help.

Link2Sd Plus apps not working

Hi everyone.
Recently i rooted my phone Xperia M4 Aqua E2303
I have Android 5.0 (26.1.A.3.92)
My Sd card: SanDisk Extreme 16GB
I've created another partition on my microSD card (EXT4, Primary)
I installed and bought Link2Sd Plus.
Link2SD Version 4.0.12
Some apps doesn't work when moved by link2sd app. They don't want to open.
Should I still leave some files on internal memory to keep apps (for example Messenger/Snapchat/Instagram) available to open?
When i move an app to SD i check every checkbox.
-Link application file
-Link dalvik-cache file
-Link library files
-Link internal data(available after buying Plus which i've already got)
Should I maybe change format of partiton to EXT2?
have you tried not moving the internal data? there might be incompatibility across partitions when it comes to internal data
Same problem here,..
Some Linked apps (chrome,uc,etc..) not starting up.
Helppp
Yes, your androed is 5.0
You can use EXT2 or vfat (VFAT IS NOT FAT32)
After create the scripts, you will get Link2sd working like the old times, ODEXING the apps, and forget the name dalvik-cache forever.
You can odex your apps with universal odexes using apktool armel 4.1 found on xda searchthread.
Or here:
http://4pda.ru/forum/index.php?showtopic=482809
Note:
Don't persist trying linking data,libs,and dalvik on androed 4.1+
This will crash after the first reboot after the linking.
dalvik is a death name.
After odex your linked apps, you need to link the new odexes in sdext2 mannually, in the same dir0 of the relative apps.
I use rootExplorer that is more efficient, or sManager that had batch linker.
Sent from Somefon

[MOD][STOCK] Int2Ext.mikewse for Xperia 2011 Stock ICS firmware

ABOUT
This is a solution for the dreaded warning about running low on internal memory on 2011 Xperia phones. My own Xperia Mini Pro has only 420MB of internal storage and this fills up quickly when installing apps. In this post I provide instructions and scripts to use the external SD card to extend the available internal storage, a so called “int2ext” solution which there are many flavours of.
The goal has been to solve the storage problem while at the same doing as small changes as possible to the system as possible (not unlocking bootloader, not installing custom recovery, etc).
Note that when the SD card is used to extend internal storage you should never power on the phone without the SD card inserted. Failing that you will probably need to factory reset and start over with the installation.
The whole 2011 Xperia range should be compatible, maybe other devices too.
BACKGROUND
After trying (and failing) with a number of the other solutions for enlarging internal storage with the external SD card, I've made my own solution that works on the Xperia Mini Pro (XMP) stock ICS ROM. In the second post I describe some properties of my implementation that may count as advantages for some, YMMV though.
COMPARED TO OTHER SOLUTIONS
See second post for technical description.
PREREQUISITES
Sony-Ericsson stock ICS ROM installed on your phone (you don’t need unlocked bootloader, recovery or any other mods)
Remove any other similar apps or tweaks (Link2SD, Apps2SD, INT2EXT etc) as they may interfere with this implementation. The installation script will abort if any of these are found.
USB Debugging enabled in your phone’s Developer settings.
Micro-SD card to install in the phone’s SD slot.
Cydia Impactor (optional)
Download from http://www.cydiaimpactor.com/.
Flashtool (optional)
Download from http://www.flashtool.net/. I have used version 0.9.18.6 which worked fine for the XMP while 0.9.20.0 had some problems. I have been told this has been fixed in 0.9.21.0 but have not verified it myself.
DOWNLOAD SCRIPTS
You find zip files as attachments at the bottom of this post.
INSTALLING
Check current firmware CDA (optional)
It is good to have a record of the exact firmware variant and version currently installed in case you need to flash back the stock ROM.
Go to the right place in the phone’s service menu:
open Phone Dialer
dial the secret code appropriate for your phone (for XMP it is *#*#7378423#*#*)
go into Service Info
go into Software Info
Note down the CDA number shown under the Customization Number heading
(see also http://www.hanfei.name/what-is-cust...xperia-device-and-how-to-view-or-find-it.html)
Partition your SD card
Your SD card should be partitioned as an MBR disk with (at least) two primary partitions:
The first partition should be formatted as FAT32 and will become your new (and smaller) SD card storage that you seen when connecting the phone to a computer.
The second partition should be formatted as Linux Ext2 and will become your extended internal storage.
You can have more partitions after these but these scripts will only care about the first two. I use a 16GB SD card and split even with 8GB to each partition.
There are many ways to perform the partitioning; I put the card in the SD slot on my computer and use the Minitool Partition Wizard Free Edition (http://www.minitool.com/partition-manager/partition-wizard-home.html) under Windows. For kicks you can install it using the Chocolatey auto-installer (https://chocolatey.org/packages/partitionwizard) if you like. You have more info about Minitool and other tools here:
http://forum.xda-developers.com/wiki/index.php?title=SD_card_partitioning
Note 1: Remember to set that partitions should be primary as some tools may default to logical and not primary partitions.
Note 2: You probably want to copy all your SD card files to your computer while partitioning and formatting, and copy them back after, as all data will be erased on the SD card.
Prepare your phone
Insert the partitioned SD card.
Enable USB debugging in Developer settings.
Have a USB cable ready for connecting between your phone and computer.
Root
If you have already rooted you can skip this step. All you need is the su binary on the system - you don't need the SuperSU app installed.
I use Cydia Impactor to root:
connect phone
select "# drop SuperSU su to /system/xbin/su"
click Start
(see also http://forum.xda-developers.com/showthread.php?t=2399464)
You can verify that it worked by opening a root shell.
I do this from Cydia Impactor:
menu Device > Open Shell…
type “su” at the prompt
type “id”
“uid=0(root)” should be shown
Update Busybox
The existing Busybox on the XMP is too old and will not support the way directories are mounted here. I have used Busybox 1.22.1 so I highly recommend that you install this version using the procedure below. If you already have this or a higher version installed you can skip this step but please verify that you have all the needed applets in your Busybox binary by checking against all the busybox aliases at the top of my scripts.
I use Flashtool to upgrade Busybox:
connect phone
Device menu > Install busybox
choose version 1.22.1
Install init.d support
The stock ROM does not have init.d support so we need to add it. If you have already added init.d support using some other software then you can skip this step.
Unpack the init.d.mikewse-<nn>.zip file to a directory (f ex init.d.mikewse) on your SD card.
Open a root shell on the phone using Cydia Impactor:
menu Device > Open Shell…
su
Install by running the install script:
Code:
sh /sdcard/init.d.mikewse/install.sh
You can verify the installation by checking the existence of the init.d directory:
Code:
ls -d /system/etc/init.d
The init.d function will be active after the next reboot and you can see messages from it in the kernel log:
Code:
dmesg | grep init.d
Install int2ext support
Unpack the int2ext.mikewse-<nn>.zip file to a directory (f ex int2ext.mikewse) on your SD card.
Open a root shell on the phone using Cydia Impactor:
menu Device > Open Shell…
su
Install by running the install script:
Code:
sh /sdcard/int2ext.mikewse/install.sh
You can verify the installation by checking the existence of the int2ext boot file:
Code:
ls /system/etc/init.d/40int2ext
The int2ext function will be active after the next reboot and you can see messages from it in the kernel log:
Code:
dmesg | grep int2ext
You should also be able to see the new larger size of your storage in the Storage menu of system settings.
Tweak what’s put on the SD card
The default int2ext script is set up with a good compromise between what files are delegated to the SD card vs are kept in the original location in internal storage. Apk files and app data are delegated to the SD card while unpacked app code (dalvik-cache) is kept on internal storage for speed and availability.
If you are installing a large number of apps your dalvik-cache may grow too large for internal storage. You can check how much it has filled up from a root shell:
Code:
df /mnt/int-stor
and also see how much of this is due to files in dalvik-cache:
Code:
du -s /mnt/int-stor/dalvik-cache
If you are hitting the limit then you can configure delegation of dalvik-cache to the SD card:
open a text editor with the 40int2ext file that you unzipped to the SD card in the int2ext.mikewse directory
edit the line
Code:
EXTDIRS="app app-private data"
so it becomes
Code:
EXTDIRS="app app-private data dalvik-cache"
then reinstall int2ext by running the install script again
REFLASH STOCK ROM
If you want to start from fresh or need to recover from some failure in the installation then you can flash back the stock ROM using Flashtool.
First let Flashtool download and assemble the appropriate stock ROM for you:
click XperiFirm icon in toolbar (furthest to right)
select your phone model
select the appropriate CDA (collected at the beginning of this post)
click the release info in the right pane to start download
Then flash it to the phone:
click Flash icon in toolbar (furthest to left)
choose Flashmode
follow instructions (for XMP press Volume Down)
If you have any questions or problems regarding Flashtool there are lots of threads on XDA were you can find solutions about drivers etc.
CREDIT / INSPIRATION / OTHER ALTERNATIVES
Extend internal storage
CronMod-INT2EXT http://forum.xda-developers.com/showthread.php?t=1716124
Int2ext fixed for Xperia mini http://forum.xda-developers.com/xpe...fix-loosing-network-flashing-int2ext-t3039205
Link2SD http://forum.xda-developers.com/showthread.php?t=919326
Apps2SD http://forum.xda-developers.com/android/apps-games/apps2sd-partition-sd-card-link-apps-to-t3122919
Mounts2SD http://forum.xda-developers.com/showthread.php?t=2432479
init.d support
init.d Terminit http://forum.xda-developers.com/showthread.php?t=1933849
init.d for stock ROM http://forum.xda-developers.com/showthread.php?t=1417375
Bye now and hope it works well for you
DEVELOPER INFO
If you publish a modified version of these scripts or include them in a ROM then please give credit by linking to this thread.
GOALS AND TECHNICAL DESCRIPTION
Here's a few thoughts that have influenced the implementation:
Working for autostart apps, widgets etc
I have seen mentions that Link2SD and others have problems with redirecting widgets and other types of early-start apps. I have not seen this myself and suspect this may have to do with other factors (f ex doing install steps in the wrong sequence may bork your installed apps).
Anyway, I have verified that my solution works with all apps (early-start, system and downloaded) on the XMP.
No extra bells and whistles
Many of the available solutions add extra "nice to have" features to make scripts more universal or maybe optimize speed on some devices. I actually ran into problems with some of these optimizations on the XMP so deciced to only perform what is exactly necessary on the XMP and nothing else. This script only performs mounting of partitions and moving of files therein.
Mount the /data base directory on external SD card
Several other solutions keep /data mounted on internal storage and just redirects /data/app and others to the SD card. That is good in theory but at least on the XMP this causes you to still get warnings that storage is full as the phone detects that your apps take up more space than fits in /data. With my solution the phone will see the enlarged /data partition and will f ex report this correctly in the Storage menu.
Keep most /data subdirs uninterrupted on internal storage
There are some critical directories on /data that should be available without interruption from boot and onwards. Having these come and go during startup can lead to different problems such as signal loss (correlated to /data/radio). To avoid surprises this script only keeps the typical hogger directories app, app-private and data on the SD card and rebinds everything else back to internal storage in one rbind-mount command that eliminates interruption of these subdirs.
If you want you can customize which /data subdirectories are used on the SD card by simply editing the EXTDIRS variable in the 40int2ext script. Existing files will be moved accordingly on the next boot.
Simple install script run from terminal instead of flashing from recovery
Stock ROM doesn't have recovery with flash function so I have instead made simple install scripts that you run from the Android shell.
Follow standard principles
Like several other solutions this script hooks the debuggerd binary as that seem to be triggered earliest during startup. I also look for installations of other solutions and will abort if any are found as that could lead to problems.
Naming is kept similar to other solutions apart from the strange habit to use "sd-ext" as the name for internal storage. In my implementation internal storage is mounted to /mnt/int-stor and the external SD card to /mnt/sd-ext.
CHANGE LOG
1.0 (2016-05-03)
Inital version

Categories

Resources