Decompile APK to change appdata path from internal to sdcard - Android Q&A, Help & Troubleshooting

Guys any idea how to change the default appdata storage...
\data\data\com.google.android.apps.currents
to
sdcard\Android\data\com.google.android.apps.currents
coz currents stores both cache and data to internal mem...which takes a whopping 100-150mb itself
can i change some vaules to make it store in the sdcard instead.....
I dont know why Google does some stupid stuff it does...

and pl dont suggest s2e app2sd, link2sd etc etc...
i already use s2e...w/o data moved ...
i want data on internal only

bump

Just download 1Tap Cache Cleaner and clear your app caches once in a while. All apps accumulate some cached data so you can free space by clearing them. It's much easier this way.
Sent from my Desire HD using xda premium

sashank said:
Just download 1Tap Cache Cleaner and clear your app caches once in a while. All apps accumulate some cached data so you can free space by clearing them. It's much easier this way.
Sent from my Desire HD using xda premium
Click to expand...
Click to collapse
what a douche ...
what a fool you are...
:rofl:
how im i suppose to read the content after clearing the cache...
so what then waste my mobile data again and again to re sync the same content which was cached earlier...
the caches are not create so that you can have fun deleting them...
and be proud of your achievement

bump

Remap Cache folder to SD card
So the combined size of Currents cache and content is more free than your internal memory? Not a for sure fix, but looks like folks were able to use terminal commands to remap their market cache to SD card, could try modifying the instructions found here, but substituting the folders that apply to your problem with Google Currents.
Check it out here...
http://forum.xda-developers.com/showpost.php?p=19042043&postcount=4
Quoted for anyone else with the problem.
rxwookie said:
That one I think I understand... but, unfortunately the answer is that the Dalvik cache partition (where the market APK's are downloaded to) on many original Samsung devices (i.e. Fascinate) is only about 35 MB in size. Anything larger will get rejected as being too big. Most of the newest devices have a larger download partition.
I've seen a few posts on different forums on remapping the download cache to a different, larger partition... but nothing specific to our devices. I've tried following other posts just to see if it works, but suceeded only in either having no effect or messing it up worse and having to reinstall the ROM (not a big deal, but frustrating).
Until one of the smart people here tells us how to remap **our** cache to a larger partition... I'd do a Google search for the APK of the app you are trying to install. That worked for me to install an app about 40 MB in size.
** edit **
I see that you were able to download the app after deleting everything in the cache folder. I guess your device is lucky enough to have a larger download partition than mine does
Glad to see you got it to work!
** 2nd edit - How to remap your market cache to the SD card **
-- UPDATE -- (Thanks to grickson here at XDA)
Problem: Insufficient Storage Space Available (Android Market)
Possible Solution: Remap cache folder to your SD card
** WARNING **
I am not responsible if you mess up your device doing the following. It manually remaps your market cache to your SD card to give you extra space. The only caveat is that if you remove your SD card (or while the SD card is unmounted) the market will not work. If you are worried about losing market functionality, DON'T try this. If you mistype (or the world suddenly tips over or some other unforeseen consequence), you can ruin your ability to run the Android Market at all. Please remember, you can repeatedly clear your Dalvik cache as often as needed to continue downloading apps. you can also get most larger APK's if you spend a few minutes browsing for them. You have been warned!
** END WARNING **
1.) Download and install a terminal emulator
2.) Open the terminal emulator and type su
3.) Allow the app to always have root access and exit
4.) Restart the terminal emulator and type su, the prompt should change to a #
5.) Type the following commands:
# cd /data/data/com.android.vending
# rm -R cache
# mkdir /sdcard/cache/
# mkdir /sdcard/cache/marketCache
# ln -s /sdcard/cache/marketCache cache
- What these commands do are (in order): change directory to your cache folder, delete the entire cache folder, create a directory on your SD card named cache, create a subdirectory in that one called marketCache, link the phone's market cache to the newly created folder on your SD card
To reverse this process (hopefully):
1.) Open the terminal emulator and type su
2.) Type the following commands:
# cd /sdcard/cache/
# rm -R marketCache
# mkdir /data/data/com.android.vending/cache
# ln -s /data/data/com.android.vending/cache cache
Alternately, (from what I understand) you can just repartition your device and reinstall your ROM of choice using ODIN and your market should be back to the way it was.
Click to expand...
Click to collapse

any more suggestions guys...

vNa5h said:
Guys any idea how to change the default appdata storage...
\data\data\com.google.android.apps.currents
to
sdcard\Android\data\com.google.android.apps.currents
coz currents stores both cache and data to internal mem...which takes a whopping 100-150mb itself
can i change some vaules to make it store in the sdcard instead.....
I dont know why Google does some stupid stuff it does...
Click to expand...
Click to collapse
Hello,
regarding ur following post :
http://forum.xda-developers.com/showthread.php?t=2123131
Have u found any solutions yet ?? if so please share as i'm facing the same problem. The App "New Scientist" stores about 2GB data in /data/data/com.newscientist.blabla folder,, and it takes up almost all of phone's memory.
I want to change this directory to sdcard.,, and as you already mentioned in ur post,, link2sd, foldermount etc are waste of time but don't know why people keep quoting them whenever i ask this.
As you've raised this issue about an year ago,, hopefully you might've fount out a solution/ work around. If so please help. Thank you,

coolvipcandy said:
Hello,
regarding ur following post :
http://forum.xda-developers.com/showthread.php?t=2123131
Have u found any solutions yet ?? if so please share as i'm facing the same problem. The App "New Scientist" stores about 2GB data in /data/data/com.newscientist.blabla folder,, and it takes up almost all of phone's memory.
I want to change this directory to sdcard.,, and as you already mentioned in ur post,, link2sd, foldermount etc are waste of time but don't know why people keep quoting them whenever i ask this.
As you've raised this issue about an year ago,, hopefully you might've fount out a solution/ work around. If so please help. Thank you,
Click to expand...
Click to collapse
I have the same issue. Since this was posted 2 years ago I hope you have solved it. I want app data which gets download internally to be saved in my internal storage.
I have edited the apk so that it gets installed in my internal storage but I can't find a way for app data.
Thanks in advance.

Karandeep Padam said:
I have the same issue. Since this was posted 2 years ago I hope you have solved it. I want app data which gets download internally to be saved in my internal storage.
I have edited the apk so that it gets installed in my internal storage but I can't find a way for app data.
Thanks in advance.
Click to expand...
Click to collapse
sorry for late reply, i didn't find any promising solution and finally got myself a phone with bigger space.

Its 2020 , has anyone found a way to change apps data path ? I thought could fix problem when trying Kali linux on phone even though moved it to sd card . I installed VMOS and moved it but same problem .

Related

app2sd problem ,anyone please help me

I update from Cronos Droid Version 1.4 to 1.4.1
In 1.4 rom ,there was about 140M left in my telephone memory
after the update , there is only 108M left in the telephone memory
then I did this:
adb shell
su
cp -a /data/app /system/sd/
rm -r /data/app
ln -s /system/sd/app /data/app
reboot
there is still 108M left
Then I find the apks exist under data/app also exist under system/sd/app
if i delete the apk under data/app,the same apk will also disappear
WHY
PS after full wipe and I flash the 1.4.1 ,reboot,flash the app2sd.zip ,the phone died,the 1.4.1 means this one :StableCronos_4.1_528_fix_sign.zip
108 sounds about right mate it sounds like before it was moving dalvik cache to sd card as well and now it is not
If you installed some apps from HTC Sync, the copy of the apks could still be on your phone. I can't use adb from work to tell you where it is exactly, but I think it's in /data/local (or something like that, it's in a "local" folder)
Isn't it possible the new rom takes 32mb memerie more than your older rom? I don't know the differences between the roms, but it might be it..
skedone said:
108 sounds about right mate it sounds like before it was moving dalvik cache to sd card as well and now it is not
Click to expand...
Click to collapse
So,how can i move dalvik cache to sd card
kouray said:
If you installed some apps from HTC Sync, the copy of the apks could still be on your phone. I can't use adb from work to tell you where it is exactly, but I think it's in /data/local (or something like that, it's in a "local" folder)
Click to expand...
Click to collapse
yes,you are right
but why the apps in the /data/app??
if you really want to move your Dalvik cache to your sd-card you could flash the latest Ra-Hero recovery image.
it has an option to move Dalvik + apps to your sd-card ( this won't enable apps2sd though )

[TUT] Remove Some of the Bloatware

Hello again everybody.
Here is a little tutorial to get rid of the crap thats shipped with the phone
and get it on a sweet diet of slimfast.
If you think to yourself "HEY! that shouldn't be removed!"
I most likely removed it because there is a Market alternative.
*Always be careful when modifying /system*
First we need to remount our phone and make /system/app - R/w
adb remount
then type:
adb shell
*In Shell ($)
su (IMPORTANT)
cd /system/app/
ls
Now you can start removing the bloat.
rm Launcher.* (ONLY IF YOU HAVE AN ALTERNATIVE LAUNCHER INSTALLED!)
rm Maps.*
rm SystemTutorial.*
rm LatinIME.* (MAKE SURE YOU HAVE ANOTHER KEYBOARD INSTALLED)
rm Email.*
rm Calculator.*
rm EmotionWeather.*
rm EmotionPhotoWidget.*
rm EmotionCalendar.*
rm EmotionPhotoAlbumWidget.*
rm EmotionBookmarksWidget.*
rm EmotionEvents.*
rm Twidroid.*
rm EmotionMemo.*
rm EmotionRSSReader.*
rm EmotionVideoWidget.*
rm EmotionClockWidget.*
rm HwIME.*
as always, reboot.
and, as with most things in the filesystem, this can also be done
with Root Explorer
If you messed something up, it probably wasn't meant to be
removed and most likely wasn't listed above. Start over from scratch...
unless you made back-up of course
If i missed anything, shoot me a message!
You honestly consider Calculator, Maps and Email "bloatware"?
raduque said:
You honestly consider Calculator, Maps and Email "bloatware"?
Click to expand...
Click to collapse
if they can be downloaded (and be more up to date from the market) then yeah.
You don't need to delete them to download the updated versions. My tablet prompted me to update them as soon as I connected to wifi and logged into my google account.
Updates take more space
When you update a Android app that is part of the rom it takes up 1.5 to 2x the storage than if you just simply download the newest version.
crispien said:
When you update a Android app that is part of the rom it takes up 1.5 to 2x the storage than if you just simply download the newest version.
Click to expand...
Click to collapse
That honestly means nothing to me. I don't load 500 apps on my devices.
raduque said:
That honestly means nothing to me. I don't load 500 apps on my devices.
Click to expand...
Click to collapse
look, when you delete /system files obviously it doesn't touch the /data... obviously... now your /system is on your INTERNAL partition so removing these files frees up space on your INTERNAL memory, and as for obviously downloading the updated apps from the market does update them YES AND INSTALLS THEM INTO /data, but it does not delete the OLD outdated version which still reside in /system which need to be updated and is taking up space, i hope this helps you understand whats going on... hopefully.
joenilan said:
look, when you delete /system files obviously it doesn't touch the /data... obviously... now your /system is on your INTERNAL partition so removing these files frees up space on your INTERNAL memory, and as for obviously downloading the updated apps from the market does update them YES AND INSTALLS THEM INTO /data, but it does not delete the OLD outdated version which still reside in /system which need to be updated and is taking up space, i hope this helps you understand whats going on... hopefully.
Click to expand...
Click to collapse
Yes, I understand this. But, they are two separate partitions. The S7 does not dynamically resize partitions. /system and /data are completely self-contained, and the size of either does not effect the other.
Space on /system, does not effect space on /data. I don't know how much plainer I can say this. All you're doing is freeing space on /system, but nothing goes there except pre-installed *system* files!
The bolded, underlined, italicized is the part that doesn't make any sense. It's taking up space in /system, which has no bearing on space in /data. Period, end of sentence, full stop. I'm not saying anything more on this matter, because I don't think you're going to get it.
raduque said:
Yes, I understand this. But, they are two separate partitions. The S7 does not dynamically resize partitions. /system and /data are completely self-contained, and the size of either does not effect the other.
Space on /system, does not effect space on /data. I don't know how much plainer I can say this. All you're doing is freeing space on /system, but nothing goes there except pre-installed *system* files!
The bolded, underlined, italicized is the part that doesn't make any sense. It's taking up space in /system, which has no bearing on space in /data. Period, end of sentence, full stop. I'm not saying anything more on this matter, because I don't think you're going to get it.
Click to expand...
Click to collapse
probably not, i can't get through the fog of cocky responses. instead of being a helpful person.
joenilan said:
probably not, i can't get through the fog of cocky responses. instead of being a helpful person.
Click to expand...
Click to collapse
Well, that's an interesting way of saying that you don't understand what I'm saying.
http://forum.xda-developers.com/showpost.php?p=11476068&postcount=9
Repeat after me:
"/system space is completely separate from /data space. One has no bearing on the other"
Once you have saved some room on /system/app, you can then move some of the apps that you have in /data/app to that directory. I have done this for swype, adw, facebook, google apps, documents to go for example, this is saving me an extra precious 40M.
dear joenilan..
pls help..i have remove the home launcher .replace with vtl.
i do factory reset and forgot restore with Titanium before
now face boot loop ..what should i do now.
dont have cwm in my ideos
thx big for advice
rgds
sasmitadani :
Flash a new room,
http://forum.xda-developers.com/showthread.php?t=1043349
http://phonedock.net/huawei-ideos-s7-froyo-2-2-2-update.html
http://www.androidtablets.net/forum...uawei-ideos-s7-official-firmware-2-2-2-a.html
I would also request that the OP's post be removed, or huge big letters of warnings or better described procedures be added, this can be very harmful and really makes no sense.

[Q] Where is Google Play download cache located?

Hello.
I'm facing the infamous problem of "not enough space" when downloading from the market, while I actually have plenty of space. The ultimate solution seems to be moving download cache to the SD card (symbolic link). The problem is that the download cache with ICS and Google Play isn't located in /cache/download anymore, and I have been unable to find where it is located both searching with Google and browsing the filesystem.
Any help?
Look in the market for opda system tuner lite, it'll clean it right up
Go to /data/app/ and delete the Titanium Backup ODEX. If this doesn't work, read the PM I'm about to send you (moda will complain it's illegal (it isn't for this purpose though)).
Sent from my GT-I9100 using XDA
Hello. Thank you both for replying, but you both answered a different question than the question I asked. I have already tried to clean market cache, to no success, and I believe very strongly that the solution is moving download cache to the SD card. I found lots of people with Google having my very same problem and fixing it this way. The problem is that I am now using MIUI ICS with Google Play, and the download cache location is different. Does anyone know where the download cache is located with ICS / Google Play Store?
Just to be 100% sure I also tried okmijnlp solution, and as I was expecting it didn't fix the problem.
Ok, solved the problem myself. The folder I had to link to SD card is /data/data/com.android.providers.downloads/cache. This worked on a MIUI v4 ROM (after rebooting).
Black Antitoon said:
Ok, solved the problem myself. The folder I had to link to SD card is /data/data/com.android.providers.downloads/cache. This worked on a MIUI v4 ROM (after rebooting).
Click to expand...
Click to collapse
Could you please advice how you have changed this, as i am new Android user hence not much aware how do go about it.
Hello.
I have bad news for you: after writing my last post here I realised that the problem wasn't actually solved (it only worked fine for a few hours), so linking that folder to the SD card is not a solution to the problem I was experiencing. However you are likely to need to link some folder to another one on your phone at some time, so I am explaining you these steps anyway.
First, you need to be on a rooted ROM. If you aren't, then have a look on the forum about your device here on xda and good luck for the rooting process.
Afterwards, you need the "Terminal emulator" application. If you don't have it, please download it from the market. Then run it and enter the following command:
Code:
su
This will give root rights to the terminal emulator app.
Now you can run the following commands.This will create the new folder on your SD card:
Code:
mkdir /sdcard/downloads
This should move all the contents of the "cache" directory into the new directory which you have just created:
Code:
mv /data/data/com.android.providers.downloads/cache/* /sdcard/downloads/
This should delete the now empty cache folder:
Code:
rm /data/data/com.android.providers.downloads/cache
This will finally created a symbolic link which has the same name of the old cache folder but points to the new folder on your SD card:
Code:
ln -fs /sdcard/download /data/data/com.android.providers.downloads/cache
I am not a Linux expert and I haven't tested these commands on my phone right now, so I'm not 100% sure that I haven't done any mistakes.
thanks for your reply
the solution didnt work for me as i dont have same .com folder. i tried searching on google and below steps helped in resolving the cache issue
1. You gonna need Android Terminal Simulator or equivalent terminal app. This will also require your Android rooted.
2. Type ’su’ (root permission request will be showned, you need to approve it).
3. Type ‘cd /’
4. Type ‘umount /cache’
5. Type ‘mount -o rw,remount -t rootfs rootfs /’ (to set the folder access to rw – read write)
6. Type ‘rmdir /cache’ (delete cache folder)
7. I personally using root explorer to do point 5-6
8. Type ‘mkdir /sdcard/cache’
9. Type ‘ln -s /sdcard/cache /cache (to link cache folder to /sdcard/cache – which should have bigger partition size)
Now i am able to download 30MB application on my phone from market.
Black Antitoon said:
Ok, solved the problem myself. The folder I had to link to SD card is /data/data/com.android.providers.downloads/cache. This worked on a MIUI v4 ROM (after rebooting).
Click to expand...
Click to collapse
Yes, it works for me using the root explorer under CM10.0. Thanks.
Hi!
I'm having the same trouble with not enough space, and when i run these command, it says operation not permitted. What to do? :/ It says thatsome sd card doesn't allow links?
Have you typed "su"? What happened then?
In any case, let me repeat that the procedure above eventually did NOT solve the download cache problem, if this is what you are looking for. The only solution for me was switching to a different ROM.
It's not need to use the console (Terminal Emulator). Just do the following:
1. Install Root Browser Lite (grand rood permissions if neccessary)
2. Delete the /data/data/com.android.providers.downloads/cache folder
3. Create the /sdcard/cache folder
4. Go to sdcard, select the new created cache folder by long press and choose 'Create shortcut' from list, you will see 2 buttons, 'Create' and 'Cancel'
5. Go to /data/data/com.android.providers.downloads/ and tap 'Create' button below
6. Enjoy!
You can use any other root file manager, of course.
The download cache was also at /data/data/com.android.providers.downloads/cache/ on the 4.2.1 jellybean ROM I'm running right now as well.
Thanks for posting the info!
wilderwind said:
It's not need to use the console (Terminal Emulator). Just do the following:
1. Install Root Browser Lite (grand rood permissions if neccessary)
2. Delete the /data/data/com.android.providers.downloads/cache folder
3. Create the /sdcard/cache folder
4. Go to sdcard, select the new created cache folder by long press and choose 'Create shortcut' from list, you will see 2 buttons, 'Create' and 'Cancel'
5. Go to /data/data/com.android.providers.downloads/ and tap 'Create' button below
6. Enjoy!
You can use any other root file manager, of course.
Click to expand...
Click to collapse
Thank you for your extremely clear explanation!
Nevertheless, despite having resolved the problem of lack of space for downloading apps from the store, with the help of your expertise, now everytime i reboot the device it shows me the message "android.process.media has stopped..."
I know it is related with the shortcut for the cache downloads.
Do you know how can I fix it?
Thank you.
TX a lot
Black Antitoon said:
Ok, solved the problem myself. The folder I had to link to SD card is /data/data/com.android.providers.downloads/cache. This worked on a MIUI v4 ROM (after rebooting).
Click to expand...
Click to collapse
+1000

[Q] lost+found directory in /data

Hi, I'm using an LG Optimus L9 and running 4.3 bassed PAC-man rom.
The internal memory is 4GB and after installing a few apps, I started getting "Not enough storage space" warnings.
So, I checked the /data folder and found that there's directory called lost+found which is taking up a lot of space (Above 1.5GB).
I tried deleting files using ES Explorer with the data folder mounted as R+W, but it says "error deleting files"
Is it safe to delete the lost+found folder?
And if yes, how can I delete it since I'm unable to delete it with a file explorer app.
It would be really great if could recover thelost internal memory
void00 said:
Hi, I'm using an LG Optimus L9 and running 4.3 bassed PAC-man rom.
The internal memory is 4GB and after installing a few apps, I started getting "Not enough storage space" warnings.
So, I checked the /data folder and found that there's directory called lost+found which is taking up a lot of space (Above 1.5GB).
I tried deleting files using ES Explorer with the data folder mounted as R+W, but it says "error deleting files"
Is it safe to delete the lost+found folder?
And if yes, how can I delete it since I'm unable to delete it with a file explorer app.
It would be really great if could recover thelost internal memory
Click to expand...
Click to collapse
I don't think there is a problem doing that and change the permission to rwx-rwx-r try and report
sangalaxy said:
I don't think there is a problem doing that and change the permission to rwx-rwx-r try and report
Click to expand...
Click to collapse
I tried deleting the folder through adb shell.
Issued following commands:
adb shell
su
# cd /data
# rm -r lost+found
Click to expand...
Click to collapse
The output was "rm failed for lost+found. Operation not permitted"
Also tried this mounting /data as rw but no luck.
Tried chmod 775 on lost+found but no luck either.
Always getting operation not permitted message.
void00 said:
I tried deleting the folder through adb shell.
Issued following commands:
The output was "rm failed for lost+found. Operation not permitted"
Also tried this mounting /data as rw but no luck.
Tried chmod 775 on lost+found but no luck either.
Always getting operation not permitted message.
Click to expand...
Click to collapse
try r+w+x
sangalaxy said:
try r+w+x
Click to expand...
Click to collapse
Still getting the same error. Operation not permitted.
void00 said:
Still getting the same error. Operation not permitted.
Click to expand...
Click to collapse
may be something preventing it
try a reset and simply format the data in cwm do backup first
sangalaxy said:
may be something preventing it
try a reset and simply format the data in cwm do backup first
Click to expand...
Click to collapse
Using TWRP.
If I backup first, it will also back up the lost+found data
And restoring data will bring it back.
I did format data and system before flashing the rom. So I don't know why the lost+found has so large size.
What should I do?
void00 said:
Using TWRP.
If I backup first, it will also back up the lost+found data
And restoring data will bring it back.
I did format data and system before flashing the rom. So I don't know why the lost+found has so large size.
What should I do?
Click to expand...
Click to collapse
ok so don't backup
if anything goes wrong you can still flash the stock right??
sangalaxy said:
ok so don't backup
if anything goes wrong you can still flash the stock right??
Click to expand...
Click to collapse
hmm, i'll try flashing CWM and then do a format of every partition and freshly flash the rom.
Will report back if there's the same problem.
UPDATE:
Formatted all the partitions including /data/media using CWM
Did a fresh install of rom.
I've got my internal memory back
Thanks!
my 2 cents...
my 2 cents... I've opened the lost+found folder with the file manager (this https://play.google.com/store/apps/details?id=com.rhmsoft.fm), after enabling the root explorer functionality, and deleted a bunch of the biggest files, just checking they were at least 2-3 months old. Rebooted to make sure everything is fine and dandy, and now I've got enough free space, sun is chirping, birds are shining, life is beautiful :silly: :victory:
fabiosirigu said:
my 2 cents... I've opened the lost+found folder with the file manager (this *edited original link*), after enabling the root explorer functionality, and deleted a bunch of the biggest files, just checking they were at least 2-3 months old. Rebooted to make sure everything is fine and dandy, and now I've got enough free space, sun is chirping, birds are shining, life is beautiful :silly: :victory:
Click to expand...
Click to collapse
I was having the same problem. My phone is Samsung Galaxy S2 (GT-i9100). I was on stock Jellybean. But it was starting to feel sluggish and slow. So, having heard about the new Android Kitkat's lower memory requirements and smoother performance, i decided to install Cyanogenmod 11 on it.
Installation was not without problems. At first i flashed Clockworkmod Recovery 6.0.2.9. The phone bricked into a bootloop with a yellow triangle on it. Flashing the Cyanogenmod 11 resulted an error of "Status 7". So i searched for the latest Clockworkmod Recovery, which was at 6.0.4.5. After flashing the 6.0.4.5, Cyanogenmod 11 installed successfully. Performance was really smooth. No lags, no jitter, and everything worked like a charm.
The problem started when i re-installed my applications. Suddenly i got a message of "insufficient storage". This has never happened before. Note, that i previously had large games on my phone like Real Racing 3 and Bard's Tale. This time, i haven't even installed those large games. So i looked at my Storage, and found out that i only had 141mb of free space. But the weird thing is, my reported Apps was only 353mb, from 1.97GB internal storage. So there was over 1GB of storage just vanished.
I browsed for a solution to this problem, and landed on this thread. After reading reply from fabiosirigu, i decided to brave myself, and deleted the content of the lost+found folder (but not the folder itself). I accessed the folder with the built-in File Manager from Cyanogenmod, and set it to "Root Access Mode", and select all folder in the folder, and deleted it. The deletion took quite a few minutes, which felt like ages. Just sat on my bed, crossed my fingers, hoped that nothing will go wrong.
After the deletion, i rebooted my phone. the cyanogenmod logo appeared, and the system booted as usual. I just exhaled a massive sigh of relieve. I went straight to the internal storage, and now it is showing the correct report, 1.67GB of free space.
Thank you for your reply fabiosirigu. Really solved my problem.
lost+found genesis
Let somebody correct me if I'am wrong.
lost+found directory is standard for some unix/linux filesystems. All ext(s) 2, 3 and 4 contains it by default.
The operating system collects unidentified, broken files and its parts inside of l+f dir.
No one of these junks is used by running system.
So - you can look in l+f for some lost, missing files. If you don't miss for any (who knows it better?) then you don't need l+f content.

Using CWM to remove apps

Firstly, apologies if this is the wrong forum to post this but to me it looked the most obvious :laugh:
I'm trying to get a CWM install.zip package (writing it myself) to delete user apps (aka bloatware) - I'm using the installer-script way of doing things.
Here's what I've tried.
Method 1:
mount data
remove_recursive("/data/app")
umount data
Result 1:
blank directory is there on rebooting into JB
Method 2:
mount data
remove("/data/app/bloatware.apk")
umount data
Result 2:
Individual apk files are removed
So you ask, I got it nailed so what's the problem? The problem is either method results in ghost apps appearing in Settings/App where the app name appears in the com.developer.name format and is zero bytes. I can then uninstall it via the normal Uninstall button and It goes away but how can I properly remove it from inside CWM ? Are there files/databases where the apps are stored that need to be purged?
Secondly, whilst I have your attention , what is the proper way to mount the internal Sdcard, I've tried /sdcard,/mnt then going into sdcard, /storage then using /sdcard0 but nothing works either deleting directories or add them. Any ideas anyone?
Many thanks
Adrian

Categories

Resources