Sample code for factory reset - C++ or Other Android Development Languages

Hey guys I want a sample c program to factory reset android or wipe everything on a android phone.
Sent from my GT-S7500 using Tapatalk 2

if doing an app for android for that, just delete everything in /data (using su and rm -rf) except your apk´s data,apk and dex
if doing for a pc, just use adb shell and format cache (depends on the partiton layout of the phone) and rm -rf /data (both while on root console)

opssemnik said:
if doing an app for android for that, just delete everything in /data (using su and rm -rf) except your apk´s data,apk and dex
if doing for a pc, just use adb shell and format cache (depends on the partiton layout of the phone) and rm -rf /data (both while on root console)
Click to expand...
Click to collapse
How to do that?
sorry I am new to app development
Sent from my GT-S7500 using Tapatalk 2

Related

Moving Dalvik-cache to cache partition

I dont want to use app2sd as I feel it a bit unnecessary and I really don't need too much more space. I saw WES incorporated moving dalvik cache to the cache partition (cache part is 80 megs that will never get fully used on the slide). I asked in his thread twice but it seems it'll never be seen. Any way, I did some searching and found a script that does exactly what I want. This would also be useful for those like me that just want a few more mb's of internal storage and dont want to use apps2sd. I'm not a developer so I just want to put this here for our devs to mod or give the okay on if this will work on the slide.
I got the script attached from this thread. You can also read in more detail on what exactly it is I'm wanting to do here http://forum.samdroid.net/f9/relocate-dalvik-cache-free-up-space-1117/
I just want to know what has to be done if anything to get this working on the Slide. Thanks
I was able to get dalvik-cache to /cache by going into clockworkmod recovery and accessing from adb:
mv /data/dalvik-cache /cache/dc
ln -s /cache/dc /data/dalvik-cache
After the files are moved and the symlink is created, you should have no problems when rebooting.
However, I came across a problem when I flashed the radio, since it wiped the cache partition. If you are missing all your installed apps in android, it might be that the cache partition was wiped. You need to recreate the /cache/dc folder and reboot.
Thanks for the input. finally someone! ..thats good to know Im going to try it now, I didnt think it would be as simple as a move command.. any reason the radio wipes the cache partition? did dalvik recreate itself after the wipe in /data? and were ALL the apps gone or just the few that took up the memory?
turboyo said:
I didnt think it would be as simple as a move command..
Click to expand...
Click to collapse
Don't forget to make the symbolic link. That is the important command, not the move one.
turboyo said:
Thanks for the input. finally someone! ..thats good to know Im going to try it now, I didnt think it would be as simple as a move command.. any reason the radio wipes the cache partition?
Click to expand...
Click to collapse
I realize I wasn't completely clear. I don't know why the OTA radio update wiped my cache partition. Perhaps someone familiar with the update process (ChiefzReloaded) can explain this.
turboyo said:
did dalvik recreate itself after the wipe in /data?
Click to expand...
Click to collapse
If you wipe only the cache partition, you will need to recreate the dir /cache/dc but not the symlink. If you wipe only the data partition, you will need to recreate the symlink, but not the dir. If you want to clear the dalvik-cache, just delete all the files in /cache/dc (they should be recreated on next boot). If you are accustomed to 'rm -R /data/dalvik-cache' to clear the dalvik-cache, you'll have to re-setup the symlink (and possibly the /cache/dc dir as well).
turboyo said:
and were ALL the apps gone or just the few that took up the memory?
Click to expand...
Click to collapse
None of the apps are 'gone' per se, but since the /data/dalvik-cache dir is just a symlink to a non-existant dir (/cache/dc), the system can't create a dir that already exists (/data/dalvik-cache) and can't write anything to a dir that doesn't exist (/cache/dc), so it won't show any of the apps. It is an easy fix to just recreate the /cache/dc dir and reboot. None of your apps need to be reinstalled, since they are still in the /data/app dir.
reukiodo said:
None of the apps are 'gone' per se, but since the /data/dalvik-cache dir is just a symlink to a non-existant dir (/cache/dc), the system can't create a dir that already exists (/data/dalvik-cache) and can't write anything to a dir that doesn't exist (/cache/dc), so it won't show any of the apps. It is an easy fix to just recreate the /cache/dc dir and reboot. None of your apps need to be reinstalled, since they are still in the /data/app dir.
Click to expand...
Click to collapse
Awesome, that cleared it up. Will be doing this now.
alright bringing this back up, works great but .. Just in case how do we move dalvik back to data with out loosing apps or anything?
turboyo said:
alright bringing this back up, works great but .. Just in case how do we move dalvik back to data with out loosing apps or anything?
Click to expand...
Click to collapse
I'm guessing you can do these in recovery:
rm /data/dalvik-cache
mv /cache/dc /data/dalvik-cache
rm -rf /cache/dc
But I haven't tested it. In theory it should work. The first command removes the symlink, the second moves the existing cache to the original location of dalvik-cache, and the last removes the copy of dalvik-cache on the cache partition.
I have tried this process, but shouldn't I see an increase in internal memory if you go to sdcard / phone storage?
Please advise, I am not totally clear of tthe process.
Can someone help?
I am very interested on this
UnkzDomain said:
I'm guessing you can do these in recovery:
rm /data/dalvik-cache
mv /cache/dc /data/dalvik-cache
rm -rf /cache/dc
But I haven't tested it. In theory it should work. The first command removes the symlink, the second moves the existing cache to the original location of dalvik-cache, and the last removes the copy of dalvik-cache on the cache partition.
Click to expand...
Click to collapse
It's up to you, but I would suggest just letting Android regenerate the cache...
rm /data/dalvik-cache
rm -R /cache/dc
riverajuan said:
I have tried this process, but shouldn't I see an increase in internal memory if you go to sdcard / phone storage?
Please advise, I am not totally clear of the process.
Can someone help?
I am very interested on this
Click to expand...
Click to collapse
It depends on how many applications you have installed, but you should see at least some kind of increase if you move the dalvik-cache off of /data and onto the /cache partition.
reukiodo said:
I was able to get dalvik-cache to /cache by going into clockworkmod recovery and accessing from adb:
mv /data/dalvik-cache /cache/dc
ln -s /cache/dc /data/dalvik-cache
After the files are moved and the symlink is created, you should have no problems when rebooting.
However, I came across a problem when I flashed the radio, since it wiped the cache partition. If you are missing all your installed apps in android, it might be that the cache partition was wiped. You need to recreate the /cache/dc folder and reboot.
Click to expand...
Click to collapse
I've moved dalvik-cache to /cache with a symlink. However, everytime i booted, /cache was 770 and not 771.
To solve this, I just add a little script in /system/etc/init.d
#!/system/bin/sh
#
# Change 770 to 771 /cache to enable dalvik-cache
/system/bin/chmod 0771 /cache
echo "*** cache updated ***"
exit
Name it for ex. 02cache and chmod 755 it.
reboot and the /cache should be 771 now and dalvik-cache should work fine without patching anything (I have a stock rooted froyo rom)
sibere said:
I've moved dalvik-cache to /cache with a symlink. However, everytime i booted, /cache was 770 and not 771.
To solve this, I just add a little script in /system/etc/init.d
#!/system/bin/sh
#
# Change 770 to 771 /cache to enable dalvik-cache
/system/bin/chmod 0771 /cache
echo "*** cache updated ***"
exit
Name it for ex. 02cache and chmod 755 it.
reboot and the /cache should be 771 now and dalvik-cache should work fine without patching anything (I have a stock rooted froyo rom)
Click to expand...
Click to collapse
forgive the newbness but to make that a script file do you just make that script into a .txt file and add it to system/etc/init.d? what exactly are you naming the file?
turboyo said:
forgive the newbness but to make that a script file do you just make that script into a .txt file and add it to system/etc/init.d? what exactly are you naming the file?
Click to expand...
Click to collapse
the init.d is a script. open it up and add those lines to it. then just save (do not change the file name when you save it)
turboyo said:
forgive the newbness but to make that a script file do you just make that script into a .txt file and add it to system/etc/init.d? what exactly are you naming the file?
Click to expand...
Click to collapse
I did it with "vi", a linux text editor.
You can name it whatever you like. the 2 first numbers are for the order of execution if you have more than 1 script in /etc/init.d/
sibere said:
I've moved dalvik-cache to /cache with a symlink. However, everytime i booted, /cache was 770 and not 771.
To solve this, I just add a little script in /system/etc/init.d
#!/system/bin/sh
#
# Change 770 to 771 /cache to enable dalvik-cache
/system/bin/chmod 0771 /cache
echo "*** cache updated ***"
exit
Name it for ex. 02cache and chmod 755 it.
reboot and the /cache should be 771 now and dalvik-cache should work fine without patching anything (I have a stock rooted froyo rom)
Click to expand...
Click to collapse
I have a Motorola Droid running froyo 2.2 FRG83 rooted. I don't have a /system/etc/init.d file, what's the correct permissions for it? And shouldn't the 771 actually be on /cache/dc instead of /cache as all the 771 does vs the 770 is add the execute bit for others so basically it changes from rwxrwx--- to rwxrwx--x.
Also, I am curious what happened before you added the script to change the permissions, were you able to still use the terminal app to get into the shell after booting?
To get /system/etc, you must boot into recovery mode
And I DO confirm to set 771 to /cache because the system rests it to 770 on each boot. For children folders, you can set 777, this will be kept even after a reboot.
Beleive me, that's how it works
Sent from my HTC Desire using XDA App
sibere said:
To get /system/etc, you must boot into recovery mode
And I DO confirm to set 771 to /cache because the system rests it to 770 on each boot. For children folders, you can set 777, this will be kept even after a reboot.
Beleive me, that's how it works
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
There is no need to boot into recovery mode to get to /system/etc which is the same as /etc. All you need to do is use either root explorer app or get the terminal shell prompt and then get into the directory after you mount it as read+write. Besides, how do you get into the /system/etc directory with recovery mode?
I know /cache is set to 770 after boot but since /cache/dc is the directory that you're dealing with and the only difference between 770 and 771 is the 1 adds the execution by others to the permissions so it doesn't give others read+write anyways as that requires another 6 so why wouldn't just setting 771 on /cache/dc work. Before you did the 771 on /cache, are you still able to boot and use the phone and the apps?
Almighty1 said:
There is no need to boot into recovery mode to get to /system/etc which is the same as /etc. All you need to do is use either root explorer app or get the terminal shell prompt and then get into the directory after you mount it as read+write. Besides, how do you get into the /system/etc directory with recovery mode?
I know /cache is set to 770 after boot but since /cache/dc is the directory that you're dealing with and the only difference between 770 and 771 is the 1 adds the execution by others to the permissions so it doesn't give others read+write anyways as that requires another 6 so why wouldn't just setting 771 on /cache/dc work. Before you did the 771 on /cache, are you still able to boot and use the phone and the apps?
Click to expand...
Click to collapse
This would normally be the case, however the slide doesn't have S-off like other phones, so we can't mount with r/w like you would.
Ace42 said:
This would normally be the case, however the slide doesn't have S-off like other phones, so we can't mount with r/w like you would.
Click to expand...
Click to collapse
Interesting. I guess what I'm trying to figure out is what happens if /cache is at 770, will the phone just force close on everything making it a brick at that point?
To get to /system/esltc in recovery, connect your phone to your PC and use adb
If you leave 770 to /cache, dalvik VM will not get access to the directory and will rebuild dalvik-cache in /data.
But man, if you don't trust me, you can always try yourself and make your own experiments
Sent from my HTC Desire using XDA App

[Q]how to delete the clockworkmod file? do not want the backup any more!

i'm on clockworkmod 5.0.2.3, my device is galaxy tab 10.1 P7510. i backup it with Titanium Backup. i've done CWM backup, i do know the CWM's backup file is sdcard/clockworkmod, but i can't delete it, either on my tablet or computer!! i've tried ES file and RE, nothing changes,,,,and the CWM file is as large as 1G, but i can't see anything in it! is that a new function of 5.0.2.3, to hide and protect its file? i've format the whole SDcard on my computer, and everything's gone, BUT the CLOCKWORKMOD file!!!!!! i'm crazy!!!!!
wohenyingyu01 said:
i'm on clockworkmod 5.0.2.3, my device is galaxy tab 10.1 P7510. i backup it with Titanium Backup. i've done CWM backup, i do know the CWM's backup file is sdcard/clockworkmod, but i can't delete it, either on my tablet or computer!! i've tried ES file and RE, nothing changes,,,,and the CWM file is as large as 1G, but i can't see anything in it! is that a new function of 5.0.2.3, to hide and protect its file? i've format the whole SDcard on my computer, and everything's gone, BUT the CLOCKWORKMOD file!!!!!! i'm crazy!!!!!
Click to expand...
Click to collapse
try makeing a new backup file in recovery as this should overright the last one
the file is probably corrupt
or using root explorer find the file and check the that folder is R/W
i dnt know if you can doo this on the sd card
You should be able to delete any file on the "SD card". Personally, although I use titanium backup as a great tool, CWM's backup is so easy and reliable for me.
thank u but it doesn't work. new backup changes nothing but make it biger, it seems that i can delete it by RE, but if i refresh i appears again. is there any way to format?
BroBot175 said:
try makeing a new backup file in recovery as this should overright the last one
the file is probably corrupt
or using root explorer find the file and check the that folder is R/W
i dnt know if you can doo this on the sd card
Click to expand...
Click to collapse
Tubes6al4v said:
You should be able to delete any file on the "SD card". Personally, although I use titanium backup as a great tool, CWM's backup is so easy and reliable for me.
Click to expand...
Click to collapse
yep, but it confuses me if the backup exists forever.......
wohenyingyu01 said:
yep, but it confuses me if the backup exists forever.......
Click to expand...
Click to collapse
aha me to :L did you try the root explorer way?
BroBot175 said:
aha me to :L did you try the root explorer way?
Click to expand...
Click to collapse
yep, it doesn't work.....finally i flash the rom with formating scripts through odin, it seems xwkg4, and flash back. now everything's gone~
You can rename and delete backups with the rom manager app from the market.
http://market.android.com/details?id=com.koushikdutta.rommanager
while in recovery:
adb shell mount /data
adb shell rm -r /data/media/clockworkmod/backup/DATED_FOLDER
Are you talking about the nandroid backup? If so, open the CWM recovery and the option to delete backups is there...
Also, you do realize that the CWM backup is not the same thing as the titanium backup, right? CWM backup is the whole system; titanium is just apps and settings...
got the same problem and tried a lot
slack04 said:
Are you talking about the nandroid backup? If so, open the CWM recovery and the option to delete backups is there...
Also, you do realize that the CWM backup is not the same thing as the titanium backup, right? CWM backup is the whole system; titanium is just apps and settings...
Click to expand...
Click to collapse
hi, i got the same issue and have tried to figure it out for hours and turn to here for help finally. my clockworkmod recovery's version is 5.5.0.4, probably. and i flashed 5.8.3.1 minutes ago.
i've tried to delete the backups in rom manager, but still can't and was told error occured while deleting.
and i tried to remove them in adb shell, rm command, and it says permission denied.
Code:
[email protected]:/sdcard/clockworkmod/backup # rm -r 2005-06-01.07.50.08
rm -r 2005-06-01.07.50.08
rm failed for 2005-06-01.07.50.08, Permission denied
255|[email protected]:/sdcard/clockworkmod/backup #
really need reply if anyone else is confused with the same problem ...
chenxian352 said:
hi, i got the same issue and have tried to figure it out for hours and turn to here for help finally. my clockworkmod recovery's version is 5.5.0.4, probably. and i flashed 5.8.3.1 minutes ago.
Click to expand...
Click to collapse
Is 5.8.3.1 for this tablet? If not...
chenxian352 said:
and i tried to remove them in adb shell, rm command, and it says permission denied.
Code:
[email protected]:/sdcard/clockworkmod/backup # rm -r 2005-06-01.07.50.08
rm -r 2005-06-01.07.50.08
rm failed for 2005-06-01.07.50.08, Permission denied
255|[email protected]:/sdcard/clockworkmod/backup #
Click to expand...
Click to collapse
In recovery (CWM) or android? Try with the -f switch (rm -rf), and do it in recovery from your PC (don't forget to mount the partition).
BTW, I can delete cwm backups in android with Root Explorer without problem.
slack04 said:
Is 5.8.3.1 for this tablet? If not...
Click to expand...
Click to collapse
If his tablet is the GT-P7510 model, yes.
slack04 said:
Is 5.8.3.1 for this tablet? If not...
Click to expand...
Click to collapse
sure about that, i got the recovery from clockworkmod.com.
i formatted it in windows, and everything was deleted but the clockworkmod folder! ghostly exist
something i just thought.. i'm using windows 7, when the tablet connect to my laptop, windows recognize it as a portable device. it's special i guess. is there any way to let it be removable disk?
---------- Post added at 04:43 AM ---------- Previous post was at 04:17 AM ----------
MapleSyrup said:
In recovery (CWM) or android? Try with the -f switch (rm -rf), and do it in recovery from your PC (don't forget to mount the partition).
BTW, I can delete cwm backups in android with Root Explorer without problem.
If his tablet is the GT-P7510 model, yes.
Click to expand...
Click to collapse
thx for reply. yes my tablet is GT-P7510. i can't delete them in re explorer, delete failed.
could you please tell me how to mount the partition?
chenxian352 said:
could you please tell me how to mount the partition?
Click to expand...
Click to collapse
One way is, in cwm, select "mount and storage" > "mount /data"
The other way is with adb (you're going to use it any way)
Code:
adb root
Code:
adb shell
Code:
mount /dev/block/mmcblk0p8 /data
If you keep getting the same error, try deleting everything inside the backup directory, I mean the 2005-06-01.07.50.08 directory.
Code:
cd /sdcard/clockworkmod/backup/2005-06-01.07.50.08
Inside the directory (be 100% sure to be in 2005-06-01.07.50.08 or you're going to delete something important. Always be careful when using the rm -rf * command)
Code:
rm -rf *
Or in one line
Code:
rm -rf /sdcard/clockworkmod/backup/2005-06-01.07.50.08/*
Then, delete the directory:
Code:
rmdir /sdcard/clockworkmod/backup/2005-06-01.07.50.08/
problem solved! thanks MapleSyrup
really thanks MapleSyrup! i executed all commands after normally powerup.
i just did them in cmw mode, all worked!
when normally powerup, in adb shell, command line prompt start with
Code:
[email protected]:/ #
in cmw(recovery) mode, it changes to
Code:
~ #
and no 'Permission denied' anymore when execute rm
i'm not English actually, literal words may be incorrect, hope readers could get it.
thanks sincerely. i've spent almost half day on the issue, you cant imagine how happy i am now, ha
MapleSyrup said:
One way is, in cwm, select "mount and storage" > "mount /data"
The other way is with adb (you're going to use it any way)
Code:
adb root
Code:
adb shell
Code:
mount /dev/block/mmcblk0p8 /data
If you keep getting the same error, try deleting everything inside the backup directory, I mean the 2005-06-01.07.50.08 directory.
Code:
cd /sdcard/clockworkmod/backup/2005-06-01.07.50.08
Inside the directory (be 100% sure to be in 2005-06-01.07.50.08 or you're going to delete something important. Always be careful when using the rm -rf * command)
Code:
rm -rf *
Or in one line
Code:
rm -rf /sdcard/clockworkmod/backup/2005-06-01.07.50.08/*
Then, delete the directory:
Code:
rmdir /sdcard/clockworkmod/backup/2005-06-01.07.50.08/
Click to expand...
Click to collapse
I'm a little more of a newb here, and Don't understand the above stuff. I'm having the exact same issue.
ROM Manager basically just messed up my phone to the point that I can't delete backups in clockworkmod. Also the backups are showing 0 bytes in size even though they've taken up 3 gigs on my SDCard
I Got ROM manager to install the latest CWM, which is great. I Then was trying it out, and noticed you can do a backup right from it. It Loads CWM and performs a normal Nandroid backup.
Here is the issue, It shows that it has take up the space on my SDCard, but the folder contents are empty in clockworkmod/backups
Also, I can't delete them at all. I Tried ES Explorer and nothing worked. Said denied.

Need a little linux fu

I have a folder on my phone from a botched install of trickdroid that hung. it's Trickdroid/Wallpaper. anyway, I can't delete it
rm-r from root shell said permission denied. I tried chown root and that didn't work either.
I can't change the folder permissions in root explorer either.
Any ideas?
rm -rf?
Sent from my HTC One using Tapatalk 2
Nothing worked rm -rf chown chmod nothing
I eneded up formatting sdcard in recovery
Funny how did you get rid of this? Tried formatting in recoverY AND no dice.....
Sent from my HTC One using xda premium
I formatted in cwm ecovery.

Sony tablet S after root

Hello everyone, I made the root using the "all in one" by condi.
the root is fine except that when I use the 'app' root app delete "to delete the files of sony, tells me that I need root permissions.
the version of Android 4.0.3 is R5A.
can someone help me? thanks
----------EDIT---------
with titanium backup I found out where they are system applications
/ locale / vendor / app. I tried to move "crash bandicoot" in / local / system / app and it says it is a read-only file so I can not uninstall it.
suggestions?
Athawulf said:
Hello everyone, I made the root using the "all in one" by condi.
the root is fine except that when I use the 'app' root app delete "to delete the files of sony, tells me that I need root permissions.
the version of Android 4.0.3 is R5A.
can someone help me? thanks
----------EDIT---------
with titanium backup I found out where they are system applications
/ locale / vendor / app. I tried to move "crash bandicoot" in / local / system / app and it says it is a read-only file so I can not uninstall it.
suggestions?
Click to expand...
Click to collapse
Try remounting root file system writable.
smgdev said:
Try remounting root file system writable.
Click to expand...
Click to collapse
thanks for the reply,
how to do what you told me?
Athawulf said:
thanks for the reply,
how to do what you told me?
Click to expand...
Click to collapse
Try root explorer or similar from Google Play
or try from terminal
su
mount -o remount,rw /system
or from pc
adb shell
su
mount -o remount,rw /system
stifilz said:
Try root explorer or similar from Google Play
or try from terminal
su
mount -o remount,rw /system
or from pc
adb shell
su
mount -o remount,rw /system
Click to expand...
Click to collapse
I used adb shell
mount: operation not permitted
Check your tablet screen after entering the su command, there should be a window asking you to grant root access. Give root access and you should be able to continue with the remount command.
Sent from my Sony Tablet S using xda app-developers app

How to install large games with small internal storage

Hello I recently rooted because of my small internal storage that will not allow me to install apps. Like modern combat 4 and Nfs most wanted because I cannot move them to extsdcard I tried link2sd but had the same result dose anyone know if I can get apps to install to the extsdcard instead of the internal without flashing? Any help would be appreciated
Sent from my LG-P769 using xda app-developers app
realbro657 said:
Hello I recently rooted because of my small internal storage that will not allow me to install apps. Like modern combat 4 and Nfs most wanted because I cannot move them to extsdcard I tried link2sd but had the same result dose anyone know if I can get apps to install to the extsdcard instead of the internal without flashing? Any help would be appreciated
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
If you have root & busybox installed you can run this script.
Code:
#!/system/bin/sh
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:61 /mnt/sdcard
busybox sleep 3
if busybox mount | grep vold/179:61; then
mount -o bind /data/media /storage/external_SD
rm /storage/external_SD/external_sd
chmod -R 777 /sdcard
chmod -R 777 /data/media
fi
Sent from my LGMS769 using XDA Premium 4 mobile app
kuma82 said:
If you have root & busybox installed you can run this script.
Code:
#!/system/bin/sh
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:61 /mnt/sdcard
busybox sleep 3
if busybox mount | grep vold/179:61; then
mount -o bind /data/media /storage/external_SD
rm /storage/external_SD/external_sd
chmod -R 777 /sdcard
chmod -R 777 /data/media
fi
Sent from my LGMS769 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
where do you run this command from? i tried to run it from adb and it didn't work it said "#! wasn't found"
pitbullmommy45245 said:
where do you run this command from? i tried to run it from adb and it didn't work it said "#! wasn't found"
Click to expand...
Click to collapse
Try running with terminal app... It's there in play store...and you don't input #... You open terminal... Type su... Then try running script...
Sent from my Xperia Neo V using xda app-developers app
pitbullmommy45245 said:
where do you run this command from? i tried to run it from adb and it didn't work it said "#! wasn't found"
Click to expand...
Click to collapse
place this file "swapint2ext.txt" on your sdcard and type the following
with a terminal emulator
Code:
su
./sdcard/swapint2ext.txt [B](if on your internal sdcard)[/B]
./sdcard/external_sd/swapint2ext.txt [B](if placed in your external sd)[/B]
with adb
Code:
adb shell
su
./sdcard/swapint2ext.txt [B](if on your internal sdcard)[/B]
./sdcard/external_sd/swapint2ext.txt [B](if placed in your external sd)[/B]
There is a lot more info on the subject in the general section. Look for the titles starting with swap internal or something similar. There are like 3 different threads on the subject. I'll send you a link later with some more info, but that will be later later
kuma82 said:
place this file "swapint2ext.txt" on your sdcard and type the following
with a terminal emulator
Code:
su
./sdcard/external_sd/swapint2ext.txt [B](if placed in your external sd)[/QUOTE]
Hi,
i have "don´t permission", when i type this one in terminal emulator.
Any idea? My phone is rooted. I rename the "swapint2ext.txt in .sh", is this correct? And the path is "sdcard0", is this also correct?
And also i try to execute the "swapint2ext.sh" with the Root Explorer. Works fine, but i can´t install Fifa 14 for example. Not enough place...
Thanks Thomas
Click to expand...
Click to collapse
+1 from the above post. i tried to run it in smanager and it said permission denied. i tried to do adb and terminal on the phone and it said it couldn't find the file.
pitbullmommy45245 said:
+1 from the above post. i tried to run it in smanager and it said permission denied. i tried to do adb and terminal on the phone and it said it couldn't find the file.
Click to expand...
Click to collapse
You are getting permission denied because it needs root access. Read this
http://forum.xda-developers.com/showpost.php?p=45268460&postcount=1
More info coming Hold up.
Sent from my LGMS769 using XDA Premium 4 mobile app
kuma82 said:
You are getting permission denied because it needs root access. Hold up.
Sent from my LGMS769 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
We have root access!
thomasoeli said:
Hi,
i have "don´t permission", when i type this one in terminal emulator.
Any idea? My phone is rooted. I rename the "swapint2ext.txt in .sh", is this correct? And the path is "sdcard0", is this also correct?
And also i try to execute the "swapint2ext.sh" with the Root Explorer. Works fine, but i can´t install Fifa 14 for example. Not enough place...
Thanks Thomas
Click to expand...
Click to collapse
Read this post
http://forum.xda-developers.com/showpost.php?p=45268460&postcount=1
Sent from my LGMS769 using XDA Premium 4 mobile app
---------- Post added at 03:12 PM ---------- Previous post was at 03:05 PM ----------
More info
http://forum.xda-developers.com/showthread.php?p=36627662
http://forum.xda-developers.com/showthread.php?p=36948542
Sent from my LGMS769 using XDA Premium 4 mobile app
realbro657 said:
Hello I recently rooted because of my small internal storage that will not allow me to install apps. Like modern combat 4 and Nfs most wanted because I cannot move them to extsdcard I tried link2sd but had the same result dose anyone know if I can get apps to install to the extsdcard instead of the internal without flashing? Any help would be appreciated
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
You can also try this guide if you are still searching for solution

Categories

Resources