No, don't just overwrite the folder or you'll overwrite original files (libraries moved by Link2SD) with it's own links.when i tried to link instagram's data, there's already instagram's folder in sdext with different size, should i replace it?
I've been replace my REX from TD 1502 REX but always force close??
Do u or any one have new REX??.. please share it.
Thx
Sent from my GT-S6102 using stockrom DXFL1 + iduos 1.3.1 kernel
No, don't just overwrite the folder or you'll overwrite original files (libraries moved by Link2SD) with it's own links.
Easiest way to avoid this is to first move the /data/sdext2/data/[appname] folder back to /data/data to overwrite all links with their original files. Afterwards you can go on as described and move the folder back to sdext2.
@kaorukail: You should add this warning to the first post
No, don't just overwrite the folder or you'll overwrite original files (libraries moved by Link2SD) with it's own links.
Easiest way to avoid this is to first move the /data/sdext2/data/[appname] folder back to /data/data to overwrite all links with their original files. Afterwards you can go on as described and move the folder back to sdext2.
@kaorukail: You should add this warning to the first post
so, i have to overwrite data/data/instagram with folder from /data/sdext/data/instagram?
Okay, I'll add it to first post,
Thanks for reminding!
The easiest way is to remove the link of lib files in Link2SD, then just copy the whole app data folder to /data/sdext2/data/ and create link just like the usual
Sent from my GT-S6102 using xda premium
Link2SD can't work correctly when the whole data folder of an App is linked and it tries to move a library to the lib Sub-folder.
It always throws an error when trying to use the Relink all Application Files function.
I could work around this issue by linking all Sub-folders separately but leaving the folder lib as it is to keep Link2SD working.
I did this successfully with all Apps moved by Link2SD. It's much more work if you do it with all Sub-folders so you may want to only move/link the bigger ones.
With Apps that aren't moved by Link2SD it shouldn't be a problem to link the whole data folders.
@kaorukail: You should add a description of this method to the first post if you can confirm the issue with Link2SD.
Edit: after I wrote this I saw you've edited the first post and recommend to configure Link2SD to never link data and remove existing data links before moving the whole folder.
Does this also prevent the issue with the "Relink all Application Files" function? It would be much easier than what I did.
I never talked about LIB files. Link2SD can move SO files (libraries) placed in /data/data/[appname]/lib Sub-folders.As far as I know, if you relink all application files it doesn't relink all library files, so it should prevent that issue too
Also: you shouldn't link LIB files, not data links
I never talked about LIB files. Link2SD can move SO files (libraries) placed in /data/data/[appname]/lib Sub-folders.
The issue occurred after I moved folders from /data/sdext2/data back to /data/data to overwrite the Link2SD links with their original targets and then moved the completed folders back to /data/sdext2/data and created links to the folders under /data/data.
Disabling "Move Application Libraries" in Link2SD afterwards didn't prevent the error message when trying to "Relink all Application files".
Maybe Link2Sd doesn't get confused when you remove all library links with Link2SD itself before you link all application data to clear these entries from its database. I'm quite sure this will work but for me it's not really confirmed at the moment.
However, after I went the more complicated way I described above the whole thing is working fine for me and saved about 20MB space.
Many thanks for your useful Guide.:good:
i was success to link, but after my phone reboot it's always force close. did i do something wrong?
Thanks Bro...Ah too bad...
Cannot link in "multy select" or "sellect all" option in REX
So... Only one by one option to link...
I've been try this many night...
But anyway thanks for share.
Help me much...
Thanks May God Bless U...
Dikirim Ti GT-S6102 Kuring Nganggo Tapatalk 2
@MNgez:
I'm sure it's working fine the way you did it. But why you are waisting 55 MB space on the (faster) system partition? Here's my way to get the same result:
- Use Titanium Backup Pro => menu => Integrate System-Dalvik into ROM. This will move the dalvik-cache data of all system apps to /system/app creating an [appname].odex file even for deodexed apps.
- Link all user apps from sdcard and /data/app to sdext2 with Link2SD and be sure to also move their dalvik-cache.
Now you won't see any unlinked data in /data/dalvik-cache. Moving the dalvik-cache of system apps to the system partition potentially makes them working faster. 55 MB should be enough space for all system apps (~35 MB on my device) but be sure there's about 10 MB left. You'll probably need it when you want to integrate updates of system apps and the new version is larger than the previous one.
I additionally linked all folders in /data/data containing large files to sdext2 and use an init.d script that removes all files in /data/anr, /data/log, /data/lost+found, data/tombstones and /data/system/dropbox. Especially /data/log can contain a large amount of useless files wasting much space on the /data partition.
To get more space on the system partition I repacked all the larger apps (>500KB) by simply opening the APK in 7-Zip, dragging the resources.arsc file to the desktop and immediately dragging it back to the archive again. This reduces the size of many apps to 30-50% of their original size (You'll have to do this again after an app was updated).
Here are the results:
#!/system/bin/sh
# cleaner
rm /data/anr/*
rm /data/cache/*
rm /data/log/*
rm /data/tombstones/*
rm /data/system/dropbox/*
rm /data/lost+found/*
rm /dev/log/main
Thanks mr kundal...Yeah, I removed more than 45 apps from /system/app and moved about 35 of my own apps there. I replaced Launcher, Music, Keyboard, Gallery, Browser etc. and moved Link2SD, Titanium Backup and much more that's essential enough for me to have it working even when I remove the SD-card. I think it's good to move as much as possible to /system/app. Leaving more than 10-15 MB free space there is wasting space in my eyes. But everyone may use his own preferred strategy.
On my device free space is 30 MB at the moment because I recently gained about 36 MB free space by the repacking method I described (I didn't repack apps that updates every few days like Titanium because I don't want to repack them after every update). It was down to 9 MB before and I'll move some more apps there.
If an app doesn't work when converted to system app it's because it can't find it's libraries anymore. Moving the libraries from /data/data/[appname]/lib to /system/lib before converting it makes it working in most cases (don't forget to do this again before integrating an update).
The script (from a thread of kurotsugi) is very simple:
Code:#!/system/bin/sh # cleaner rm /data/anr/* rm /data/cache/* rm /data/log/* rm /data/tombstones/* rm /data/system/dropbox/* rm /data/lost+found/* rm /dev/log/main
If you want to link data files manually, the EASIEST way is NOT to link any lib files with Link2SD. Leave it unlinked, so you can easily link the ENTIRE data folder.
First, you must have link2sd, so that you have sdext2 folder in your /data/ , like this :
Then open your Root Explorer.
You will see your root directory like this :
Then tap the data folder :
After that, scroll down until you see data folder in your data folder (Dataception)
Then tap it.
Now it should shows all your app data in folder like this :
Now choose the App Data Folder that we want to link,
in this case I use com.sec.android.app.sns (SNSProvider that I deodexed in my previous post)
Then long press the folder, and it should show dialog box like this, select Copy.
After that, go back to data folder, and locate your sdext2 folder
Tap sdext2 folder, and locate data folder in it.
Then tap it, and tap Paste.
Then scroll down and see your com.sec.android.app.sns in it, then long press it.
The dialog box should show up, scroll down and select Link to this folder.
After that, back to /data folder
Then tap data folder in data folder again to enter it. After that, scroll down to see com.sec.android.app.sns folder, we are going to delete it.
Long press the folder, the dialog box should show up, tap delete, tap yes.
Then tap create link, and voila! your com.sec.android.app.sns folder is linked to your SDCard second partition!
It should look like this :
Open your Root Explorer. Then navigate to /data/dalvik-cache like this, and you will see dalvik cache files :
Then scroll down to see the dalvik cache file that we want to link,
In this case I'll link PhoneSky (Google Play Store) so we search for the file that has phonesky in it.
Then long press the system@app@PhoneSky.apk@classes.dex, the dialog box should shows up, select Move.
Navigate back to /data, then tap sdext2
Scroll down, until you see dalvik-cache folder, tap it.
You should see dalvik-cache files in it, then just tap paste.
Then scroll down until you see your newly dalvik cache file, Long press in it
The Dialog box should shows up, scroll down and tap Link to this file.
Go back to /data folder, navigate into dalvik-cache folder and tap it.
After you're in /data/dalvik-cache folder, tap Create Link
If it succeed, it should look like this :
Voila! Your dalvik cache file has been linked to your SDCard second partition, and Link2SD recognize your manual link! Enjoy!
I never talked about LIB files. Link2SD can move SO files (libraries) placed in /data/data/[appname]/lib Sub-folders.
The issue occurred after I moved folders from /data/sdext2/data back to /data/data to overwrite the Link2SD links with their original targets and then moved the completed folders back to /data/sdext2/data and created links to the folders under /data/data.
Disabling "Move Application Libraries" in Link2SD afterwards didn't prevent the error message when trying to "Relink all Application files".
Maybe Link2Sd doesn't get confused when you remove all library links with Link2SD itself before you link all application data to clear these entries from its database. I'm quite sure this will work but for me it's not really confirmed at the moment.
However, after I went the more complicated way I described above the whole thing is working fine for me and saved about 20MB space.
Many thanks for your useful Guide.:good:
Yup... i prefer not to move or link all dalvik cache to sd card. It's not only slowing down our device, but also many apps would not run, force close or make make our device not running properly. So make sure to move what u need. But let it be in internal for some apps spacially for system apps.it's possible, but it will slow down your phone, because there's some file that should remain in data partition, because it's faster than sdcard second partition.
Thanks MNGez! btw, how did you manage to view your second partition in Titanium Backup? You're using Link2SD, right?
Thanks Kundal for sharing!
hmm..any way to mass move all of the data contents?
Is it possible to do that, by replacing /sd-ext with /data/sdext2/data in the thread given below:
http://xdaforums.com/showthread.php?t=696148
Thanks Bro...
Perfecto... After soo long nights and many nights
Just to find..., How is the Simpliest Way to Linked Dalvic Chache to sd-Ext2?
Since I Don't really care about Data Folder, so I'm Just Linked some data and APK to sd-ext2
The hardest Way is When Linking one by one Dalvic chace to sd-ext2.
But finally i've got the solution...
1. Before I Do this i push to Kill apps thats running in Back ground
2. Copy All for data in /data/dalvik-cache to /data/sdext2/dalvik-cache
3. I Refer to Push to Link to folder /data/sdext2/dalvik-cache for folder /data/dalvik-cache.
After /data/dalvik-cache is Linked to /data/sdext2/dalvik-cache yes there is a small footnote in the folder "-->dalvik-cache"
4. No Need to Delete Data to Make Sure its Running well after reboot
5. Reboot...
6. CHECK IT OUT a small footnote in the folder "-->dalvik-cache" in /data/dalvik-cache is missing but Open the folder
WOW... All Dalvik is Linked...
Perfecto... :good: :good: :good:
This is The way its look...
Before ====== And ====== After
Atleast Now i Save at least more than 160 MB...
@MNgez:
I'm sure it's working fine the way you did it. But why you are waisting 55 MB space on the (faster) system partition? Here's my way to get the same result:
- Use Titanium Backup Pro => menu => Integrate System-Dalvik into ROM. This will move the dalvik-cache data of all system apps to /system/app creating an [appname].odex file even for deodexed apps.
- Link all user apps from sdcard and /data/app to sdext2 with Link2SD and be sure to also move their dalvik-cache.
Now you won't see any unlinked data in /data/dalvik-cache. Moving the dalvik-cache of system apps to the system partition potentially makes them working faster. 55 MB should be enough space for all system apps (~35 MB on my device) but be sure there's about 10 MB left. You'll probably need it when you want to integrate updates of system apps and the new version is larger than the previous one.
I additionally linked all folders in /data/data containing large files to sdext2 and use an init.d script that removes all files in /data/anr, /data/log, /data/lost+found, data/tombstones and /data/system/dropbox. Especially /data/log can contain a large amount of useless files wasting much space on the /data partition.
To get more space on the system partition I repacked all the larger apps (>500KB) by simply opening the APK in 7-Zip, dragging the resources.arsc file to the desktop and immediately dragging it back to the archive again. This reduces the size of many apps to 30-50% of their original size (You'll have to do this again after an app was updated).
Here are the results:
yup... just like that...
same as me... thanks bangets bro...
now how about if i want to move back some data to original one in internal.
is it just copas it to internal...
Dikirim Ti GT-S6102 Kuring Nganggo Tapatalk 2