Using Titanium Backup to restore data backups from Clockworkmod Helium(carbon) - Ouya Q&A, Help & Troubleshooting

I don't have root on my devices and I'm a noob at it. My first question is, can Titanium Backup restore the data backups created by Helium? If not, what app can?
Second is, what is the most efficient way to get superuser installed on the OUYA using a PC? The thread in the dev section does not give me great confidence in following those instructions.
Sent from my GT-P3113 using Tapatalk 2

Might be able to install Titanium Backup on the OYA and restore apps and data.
For SuperUser:
Setup wired and/or wireless ADB as per http://forum.xda-developers.com/showthread.php?t=2272266
(Optional) Put adb.exe in your Windows PATH variable so you can run it from anywhere
Download and unzip the SuperUser files from http://d-h.st/BBk
Open an ADB shell and mount the system partition as read-write
Code:
adb shell
su
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
Install SU, SuperUser, and BusyBox (from the ZIP in step 3)
Code:
adb push su /sdcard/su
adb shell
su
cat /sdcard/su > /system/xbin/su
ln -s /system/xbin/su /system/bin/su
chmod 6755 /system/xbin/su
exit
exit
adb install com.koushikdutta.superuser.apk
adb install stericson.busybox.apk

I got titanium backup installed and all the superuser privileges. I am to tired to try to do the restores , it seems at a minimum I'll have to place the folders and files created by Helium in titanium backup"s default folders and see if they are recognized.
Sent from my GT-P3113 using Tapatalk 2

TadeoNYC said:
I got titanium backup installed and all the superuser privileges. I am to tired to try to do the restores , it seems at a minimum I'll have to place the folders and files created by Helium in titanium backup"s default folders and see if they are recognized.
Sent from my GT-P3113 using Tapatalk 2
Click to expand...
Click to collapse
Did this work for you? I also have some Helium backups from before my device was rooted, that I want to try to restore with Titanium. I would restore them with Helium... if the damn thing worked! It always restores the app, then never completes when it's trying to restore the app's data.

clarkg said:
Did this work for you? I also have some Helium backups from before my device was rooted, that I want to try to restore with Titanium. I would restore them with Helium... if the damn thing worked! It always restores the app, then never completes when it's trying to restore the app's data.
Click to expand...
Click to collapse
So far as I remember it wasn't possible, definitely not with TiBu. After routing OUYA I wound up rooting all of my devices, so transfers are easy now. I use Android Tuner pro not TiBu now, from my experience, and some others, android tuner is better at moving backups between devices.
Sent from my Nexus 7 using Tapatalk 4

Related

Busybox installation

can someone help me get busybox installed on my evo? thanks!
Find a busybox binary and copy it to /system/bin.
You can download a copy here. http://bit.ly/9otbTJ
Use "adb push" to push the file to the phone. A tutorial on using ADB can be found on this same forum.
I'm taking a guess here.. but couldn't you installed Titanium Backup from the market, then click "Problems?" and let it install Busybox for you? I'm not 100% sure that would work but I know I have Busybox on my phone because Titanium put it there. :shrug:
Titanium worked for me...at least to actually use Titanium which needs busybox to run so I assume it worked.
sph33r said:
I'm taking a guess here.. but couldn't you installed Titanium Backup from the market, then click "Problems?" and let it install Busybox for you? I'm not 100% sure that would work but I know I have Busybox on my phone because Titanium put it there. :shrug:
Click to expand...
Click to collapse
This is what I did. It wasn't installed by default, but Titanium Backup installed the latest version for me.
thank you guys i will give titanium a try!
i used titanium and it installed busybox 1.15.3 but i still get no busybox installed from metamorph
Hey what its it that these programs do?
Sent from my PC36100 using Tapatalk
jrdejavux said:
i used titanium and it installed busybox 1.15.3 but i still get no busybox installed from metamorph
Click to expand...
Click to collapse
Titanium Backup installs a private copy of busy box in /data. Metamorph is looking for it in the standard path.
any ideas how i can get it to work with metamorph? thanks
Titaminum Backup
TI Backup DID In fact work for me even with Metamorph Pro BUT I have my EVO Rooted I dont know how lol I used a combo all 3 roots but I have working 4g I have SU APP on the phone EVERTHING I tried worked in regards of root root explorer works fine I can move what ever I want ect is this a Fluke? I even Partitioned my 16GB class 2 MC transfered all data ect everything works like it should except RECOVERY I am working on that now and have a few devs I know looking into a new recovery also i think after recovery we will be ok I NEVER DID the OTA update and my SD card is fine and I have a EVO from the I/O Conference also let me know if I can help anyone eveything is pretty easy i was supprised
I get 'out of memory' error using adb push to /system/bin.
Partitioning
Hi Chumba8,
Quick question please, how did you partition your Sd card?
Will appreciate your response.
(Note: My Evo is rooted already)
I finally got busybox installed to /system/bin using the following procedure.
install Titanium
run Titanium
click the "problems" button and install Busybox
boot into recovery
adb shell
mount /system
cp /data/data/com.keramidas.TitaniumBackup/files/busybox /system/bin
cd /system/bin
./busybox --install -s .
kermit3 said:
I finally got busybox installed to /system/bin using the following procedure.
install Titanium
run Titanium
click the "problems" button and install Busybox
boot into recovery
adb shell
mount /system
cp /data/data/com.keramidas.TitaniumBackup/files/busybox /system/bin
cd /system/bin
./busybox --install -s .
Click to expand...
Click to collapse
Going to try this tonight, gosh I hope this works
any luck???
kermit3 said:
I finally got busybox installed to /system/bin using the following procedure.
install Titanium
run Titanium
click the "problems" button and install Busybox
boot into recovery
adb shell
mount /system
cp /data/data/com.keramidas.TitaniumBackup/files/busybox /system/bin
cd /system/bin
./busybox --install -s .
Click to expand...
Click to collapse
i tried this and now i get some files could not be extracted and setup. please make sure you have enough free space in /system

[Q] How do you delete bloatware via adb

Ive done this before and for the life of me i cannot remember how to do this, and ive been searching xda and google for a half hour now, can anybody help me out. How do you remove stock apps via adb?
Thanks guys
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /system/app
# rm xxx.apk
Replace xxx with app names. Case sensitive.
Edit: ignore $ and # when typing the commands
well this is weird, i know i have root but when i try those commands thru cmd on pc, i get error sh-3.2 it won't let me su but when i do it in terminal on phone it works fine
androidtoy09 said:
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /system/app
# rm xxx.apk
Replace xxx with app names. Case sensitive.
Edit: ignore $ and # when typing the commands
Click to expand...
Click to collapse
Do I need to remove the odex files as well?
Sent from DynamikD's R00t3d & OC G2
Advisable to, yes. Also, reboot and clear cache in recovery for best results.
What is the command to list "dir" to get the app names? I've done this on my mytouch3g as well but rusty
Edit: It's "ls" lol.
Ok, so I just attempted this and get this error:
rm failed for Twitter.apk, Read-Only file system
Click to expand...
Click to collapse
And I also would like to remove these:
amazonmp3.apk
Email.apk
com.google.android.apps.finance-1.apk
Web2GoShortcut.apk
Twitter.apk
Web2GoShortcut.odex
Email.odex
What is a .odex file?
Sent from my T-Mobile G2 using XDA App
Make sure is not a typo.
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
Anyone know the name of the photobucket APK?
So now that we have Perma-ROOT, is it safe to delete these bloatwares without worrying about future OTA's?
And what's a .odex file? How do we delete this? Can we just delete these apps thru Titanium Backup and then boot into Recovery to clear cache?
*EDIT* - n/m i see how to delete the .odex files now
What's the .apk name for Photobucket?
*EDIT* - Got it... it's PbAndroid.apk
Need help!
Well those are the commands to remove a app how do you push a apk file back onto the /system/app. I want to push a Bluetooth.apk file from the old ROM to the new OTA and see if that helps with the Bluetooth issue I'm having with the new OTA.
If your perma rooted why not just install titanium backup and uninstall the app. If your temp rooted then you can only disable the app cuz if you delete the apps it'll only reappear after a reboot.
Becuz titanium does not let u remove apps, if it was that easy I think everyone would do it
fryrice8850 said:
Becuz titanium does not let u remove apps, if it was that easy I think everyone would do it
Click to expand...
Click to collapse
It doesn't? Then what the heck does titainium do when I press uninstall? This is a serious question.. not sarcasm.
Sent from my T-Mobile G2 using XDA App
Nvm u need to select "problems" and it will download busybox on ur g2 and then u can uninstall stock apps...
fryrice8850 said:
Nvm u need to select "problems" and it will download busybox on ur g2 and then u can uninstall stock apps...
Click to expand...
Click to collapse
Then it really is that easy... and everyone should do it.
Sent from my T-Mobile G2 using XDA App
how would the remount command change for the MyTouch4G?
nemesys571 said:
how would the remount command change for the MyTouch4G?
Click to expand...
Click to collapse
Don't think it would.
BTW you can also try this remount command for either, I was advised that it's preferable to use and it's certainly easier:
mount -o remount, rw /system

[GUIDE] 11/22/2010 - Restore Swype after upgrading to CyanogenMod

If you were like me, you rushed right into installing CyanogenMod. Whoops, found out there is no swype installed. What to do?
Hopefully you made a nandroid backup like me. I didn't want to do a full nandroid restore just to extract the files. So I did this...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
UPDATED 11/22/2010 - Okay, some people have requested a "newbie friendly" solution. I have created an APK which will help automate this procedure, without the need for ADB. If you have already applied CyanogenMod, then use this APK to select an older Clockwork Backup that has your licensed Swype. It will then extract and install the files for you. I have only tested on the G2.
http://www.mediafire.com/?j7dnv321ej0mrch
I'll possibly do some updates to:
a) cache swype for future installs (to make restores super quick)
b) add other extractions of 'your' saved files (i.e. google apps)
c) add more options for handling cache/files/etc.
I hope this helps. Enjoy!
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
# --------------------------------------------------------------------------------------------
# How to recover your swype files from your nandroid backup
# Quick and dirty extract
# Prepare a staging area on your computer
mkdir nandtmp
cd nandtmp
# Copy your old nandroid (pre CM) backup to your staging area..........
# i.e. /androidbackups/clockworkmod/backup/2010-11-01.02.02.02
cp $WHEREVER_OLD_IMAGE_IS/system.img .
# extract files...
unyaffs system.img
adb remount
# Push the swype files back to your Android device
adb push ./system/lib/libSwypeCore.so /system/lib/
adb push ./system/app/Swype.apk /system/app/
# Some users have had issues with not seeing Swype in the options (possibly non read/write system?), so they just installed the APK. If you install it, make sure the lib file has been pushed first.
# i.e. adb install /sdcard/Swype.apk
# Update permissions for good measure (may not be needed)
chmod 644 /system/app/Swype.apk
chmod 644 /system/lib/libSwypeCore.so
# I rebooted, but have heard reports that it is not necessary
adb reboot
# Now in Menu>Settings:Language & keyboard unselect the Android keyboard and make sure Swype keyboard is checked.
A similar process can be done directly on your phone.
# --------------------------------------------------------------------------------------------
Hope that helps others restore Swype (or other files they desire) without having to do a full Nand restore.
-oldsk00lz
getting force close on swype as soon as I uncheck the android keyboard, not a huge deal but I do kinda miss swype
ranyvern said:
getting force close on swype as soon as I uncheck the android keyboard, not a huge deal but I do kinda miss swype
Click to expand...
Click to collapse
Did you push libSwypeCore.so to /system/lib yet?
For some reason it still doesn't show up in the keyboard list, any idea why?
Sent from my T-Mobile G2 using XDA App
Ok, what you're supposed to do is, you actually have to install the swype.apk. its not enough to copy it to the /system/app directory adb install Swype.apk or use root file explorer click on the apk file and choose install.
Sent from my T-Mobile G2 using XDA App
or you can open up cyanogenmod(unzip) and download a stock g2 rom and then just put the files in the proper places, then zip cm again and flash(i did this all from my phone ast night because i was too lazy to go to the computer)
have you tried to go to swype.com and signing up for there beta testing. Not sure if still open but does not hurt to try. I reinstall from the beta testing website and is working great on CM6.1 on my G2
k50aker said:
For some reason it still doesn't show up in the keyboard list, any idea why?
Click to expand...
Click to collapse
Be more specific. What have you done so far? Did you go into Settings > Keyboard and enable Swype yet?
I tried a few times before but could never get this dumb unyaffs to work for me.
i get
Microsoft Windows XP [Version 5.1.2600]
C:\g2orgsys>unyaffs systemg2.img
28852 [main] unyaffs 3212 _cygtls::handle_exceptions: Exception: STATUS_ACCESS
_VIOLATION
30677 [main] unyaffs 3212 open_stackdumpfile: Dumping stack trace to unyaffs.e
xe.stackdump
348883 [main] unyaffs 3212 _cygtls::handle_exceptions: Exception: STATUS_ACCESS
_VIOLATION
375003 [main] unyaffs 3212 _cygtls::handle_exceptions: Error while dumping stat
e (probably corrupted stack)
Idk im pretty lazy sometimes, if you can provide some help on this, i would GREATLY appreciate it.
oh and I tried, quickly, to get the emulator working but failed! Im sure its probably something ez I missed. :/
Stryder5 said:
Be more specific. What have you done so far? Did you go into Settings > Keyboard and enable Swype yet?
Click to expand...
Click to collapse
Yea, it wasn't there, again, in my case pushing it in to the /app folder did NOT work, I had to intall the apk maually like any other app. Of course only after pushing the lib file.
adb push libSwypeCore.so /system/lib
adb install Swype.apk
Unyaffs is supposed to work on windows? I didn't know that. I use linux, you sould try it and get used to it, it would save you a lot of trouble.
Sent from my T-Mobile G2 using XDA App
k50aker said:
Yea, it wasn't there, again, in my case pushing it in to the /app folder did NOT work, I had to intall the apk maually like any other app. Of course only after pushing the lib file.
adb push libSwypeCore.so /system/lib
adb install Swype.apk
Unyaffs is supposed to work on windows? I didn't know that. I use linux, you sould try it and get used to it, it would save you a lot of trouble.
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
Hmmm... I saw the swype in the settings after doing adb pushes and a reboot.
In reality, I had unchecked both Android keyboard, and Swype keyboard. Then went to a text field, and got a request for Android input. I then went back into settings and checked Swype, and then it just worked. I didn't need to install the APK. For those not seeing swype as an option, did you confirm that system was remounted and that files were copied? Did you reboot?
As for unyaffs, I was lazy. I just downloaded a binary for OSX from here: http://forum.xda-developers.com/showthread.php?p=7931772 . I haven't tried a Windows version of unyaffs.
-oldsk00lz
k50aker said:
Unyaffs is supposed to work on windows? I didn't know that. I use linux, you sould try it and get used to it, it would save you a lot of trouble.
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
thats kinda sucks. lil more trouble then I was hoping for but I got a few LiveCDs somewhere.
How hard would it be to get this running through adb shell, on the phone? lol
wilnotdie said:
thats kinda sucks. lil more trouble then I was hoping for but I got a few LiveCDs somewhere.
How hard would it be to get this running through adb shell, on the phone? lol
Click to expand...
Click to collapse
wilnotdie - You should be able to do this directly on your phone, as well. Of course, you would need to mount your system read/write and cp files versus adb push.
i.e.
mount -o rw,remount -t ext3 /dev/block/mmcblk0p25 /system
cp /sdcard/nandtmp/system/lib/libSwypeCore.so /system/lib/libSwypeCore.so
cp /sdcard/nandtmp/system/app/Swype.apk /system/app/Swype.apk
Hope that helps.
-oldsk00lz
oldsk00lz said:
wilnotdie - You should be able to do this directly on your phone, as well. Of course, you would need to mount your system read/write and cp files versus adb push.
i.e.
mount -o rw,remount -t ext3 /dev/block/mmcblk0p25 /system
cp /sdcard/nandtmp/system/lib/libSwypeCore.so /system/lib/libSwypeCore.so
cp /sdcard/nandtmp/system/app/Swype.apk /system/app/Swype.apk
Hope that helps.
-oldsk00lz
Click to expand...
Click to collapse
Oh mybad, not that way. Was thinking of using the phone as my linux box instead of a pc. In theory it should work, just need to compile for use on the phone?
But Im guessing its not gonna be this ez lol
I didn't do any ADB pushes I just used root explorer to move the libswype file to lib directory then used the installer on the root explorer to install and it loaded right up for me. Only problem I'm getting is the double tap to edit isn't working now for some reason.
I pulled the files from the ota_root_noboot.zip from
http://forum.xda-developers.com/showthread.php?t=836042
Okay here is what I did and it worked. Using SU File manager (found in the market if you search "root explorer") and on the stock ROM, copy the lib and apk files from /system/app and /system/lib. I copied them to the root of my sd card. Wipe everything and install CM and the addon. Grab SU File manager again and find the lib file on your SD card. copy it. There are two little buttons on the top of SU File manager with an S and a D. I pressed both of them to mount system and data as read/write. Go to system/lib and paste the lib file. Verify that it is there and since there are so many files sort by size its like 998kb. Then just use SU File Manager or astro or whatever to find Swype.apk on your sd card. Install it from there. With Astro click it and "open app manger." Then go to keyboard settings and enable it as an input method. Go to swype settings and it should not FC if you did this stuff correctly. Set your settings and enjoy! Oh yea dont forget to uninstall and refund SU File manager
Hey Jkoenig00 did you have any issues with the double tap to edit?
Worked flawlessly and now I have swype running on CM. This should be stickied or something!
So for those of us who don't know what ADB is or how to use it...
are we screwed?
Is there a noob friendly method?
convolution said:
So for those of us who don't know what ADB is or how to use it...
are we screwed?
Is there a noob friendly method?
Click to expand...
Click to collapse
You can use root explorer. Download one of the stock roms. Access it through root explorer and copy the 2 files from the stock rom folders to its respective folder on your device. Then install the apk from within root explorer. Set everything up in your keyboard settings and your golden. Can be done in minutes.
Sent from my T-Mobile G2 using XDA App

[Q] Help needed

I just rooted my phone and i am trying to delete some of the apps that come with the phone.
I have found these steps in the forms but the problem is that, if I open a CMD and type this, it is not accepted.
I am guessing there is a step missing
1. type in the command line on your PC
Code:
adb shell
2. now you need to get super user rights:
Code:
su
3. you need to remount the system partition
Code:
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
4. change to the /system/app directory and you can now rename/delete all files in there
I hope you make a copy of this folder, so you can always revert back to factory default. A hardreset doesn't restaure the deletet apps, so be carefull. Also you need to check on your own IF you can really delete a app or not. I don't know what features you use.
hamd3000 said:
I just rooted my phone and i am trying to delete some of the apps that come with the phone.
I have found these steps in the forms but the problem is that, if I open a CMD and type this, it is not accepted.
I am guessing there is a step missing
1. type in the command line on your PC
Code:
adb shell
2. now you need to get super user rights:
Code:
su
3. you need to remount the system partition
Code:
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
4. change to the /system/app directory and you can now rename/delete all files in there
I hope you make a copy of this folder, so you can always revert back to factory default. A hardreset doesn't restaure the deletet apps, so be carefull. Also you need to check on your own IF you can really delete a app or not. I don't know what features you use.
Click to expand...
Click to collapse
You can use root explorer, an apk that uses superuser permissions, or, maybe you didn't reboot the cellphone, when you root your, always reboot, in order to take the "effect"
try freezing app. Easier and safer. If you want to delete. Root explorer or try super manager.
Sent from my MB525 using XDA App
I do have super user permission , but i still dont know what to do
hamd3000 said:
I do have super user permission , but i still dont know what to do
Click to expand...
Click to collapse
Did you try with Titanium Backup ?, I think you can freeze, clear data and unninstall it !, let me know if I'm wrong
Download supermanager app from market. Enable root function. Get to phone dir. System then app
Sent from my MB525 using XDA App
tava2003 said:
Did you try with Titanium Backup ?, I think you can freeze, clear data and unninstall it !, let me know if I'm wrong
Click to expand...
Click to collapse
worked like a charm

[Q] How do i transfer files to GNex when in recovery mode?

So i've made a mistake. I forgot to download GAPPS but i've already done a factory reset and installed a new rom. I cant seem to mount the usb storage trough clockwork recovery. Is there a way to push the zip file to the device?? Or what should i do?
Thanx
xclusiv8 said:
So i've made a mistake. I forgot to download GAPPS but i've already done a factory reset and installed a new rom. I cant seem to mount the usb storage trough clockwork recovery. Is there a way to push the zip file to the device?? Or what should i do?
Thanx
Click to expand...
Click to collapse
If you only forgot gapps you can restart, the ROM and the phone will work fine you just won't have Google apps. Once it's on you can just copy the file like usual and return to recovery and flash it
Sent from my Galaxy Nexus using xda premium
Good question though. What IF he didnt flash the ROM, how do you get a file on the SDcard if you cant mount it in recovery?
adb push ./"filename.zip" /sdcard
Phone will boot just fine w/o GAPPS.
But you can just use adb push <FILE> <DIRECTORY>
for example:
Code:
adb push gapps.zip /sdcard/
Thanx for the help guys =)
This happens to me all the time. The Mounts section of CWM select "mount as USB" drive. Windows should see this drive and transfer away.
merge5 said:
This happens to me all the time. The Mounts section of CWM select "mount as USB" drive. Windows should see this drive and transfer away.
Click to expand...
Click to collapse
GN internal storage can't be mounted as USB - not even in recovery.
The only way I've found to push/pull files in CWM on the GN is over ADB. If the files in /sdcard/ don't appear, go into mounts and storage, and mount /data. Then try again.
/sdcard/ is nothing more than a symlink to /data/media.
I transfer files over ADB with
'adb push update.zip /data/media/'
no need to mount /data before.
just reboot open up your computer and youll see the gnex just transfer the gapps to your sd card and then reboot in recovery to flash
cmstlist said:
GN internal storage can't be mounted as USB - not even in recovery.
The only way I've found to push/pull files in CWM on the GN is over ADB. If the files in /sdcard/ don't appear, go into mounts and storage, and mount /data. Then try again.
Click to expand...
Click to collapse
Good point. I stand corrected. That was how I did it on my OG Droid. Sorry for the confusion.
bk201doesntexist said:
/sdcard/ is nothing more than a symlink to /data/media.
I transfer files over ADB with
'adb push update.zip /data/media/'
no need to mount /data before.
Click to expand...
Click to collapse
I'm not sure why but CWM on my phone used to auto mount /data and now it doesn't anymore. So to see anything from adb in recovery, I now have to go to mounts first.
Sent from my Galaxy Nexus using Tapatalk
cmstlist said:
I'm not sure why but CWM on my phone used to auto mount /data and now it doesn't anymore. So to see anything from adb in recovery, I now have to go to mounts first.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
What cwm version are you on, for instance?
Latest CWM touch as of today, and also tried it with latest CWM non-touch.
Incidentally I just bumped into a caveat of transferring files to the GN in recovery mode. The permissions are set strangely when you push files over ADB in recovery, and as a result when booted into the OS I was unable to rename any of the pushed files/folders or put new files in. Since the DCIM directory was one that I'd pushed over, new photos weren't saving. And I did not have permission to change permissions.
This is pretty much a brute force method - so I rebooted into recovery again, mounted /data, did adb shell, cd sdcard, and then:
chmod -R 777 *
And upon booting back into the OS, everything works properly again.
I know that messing with permissions is usually a dangerous thing. My logic was that anything stored in /sdcard is supposed to be a file that any app would be allowed to access as long as it has SD permissions - it's been that way in every version of the OS through to 4.0.
But anyway, if there's something I should do to decrease the "unsafeness" of this situation, please advise me. I guess in theory this would give a malicious app permission to execute code from /sdcard, which would make me more vulnerable?
EDIT: Okay more to report. To see the permissions properly when booted into the OS, you have to go into /data/media rather than /sdcard (same directory but permissions appear differently).
When I went in there and typed ls -n, I found that all the files I had pushed in recovery have UID & GID of 0. All files I had created afterwards had UID & GID of 1023. That explains everything. The owner is root for files that came from ADB in recovery, and media_rw for files created in the OS.
I can use chown, but it looks like the version of chown that comes with busybox does not have -R recursion implemented. Hrm. Aha! In CWM, chown does support -R. And we're off to the races. So from recovery I did:
cd /data/media
chown -R media_rw.media_rw *
cmstlist said:
Latest CWM touch as of today, and also tried it with latest CWM non-touch.
Incidentally I just bumped into a caveat of transferring files to the GN in recovery mode. The permissions are set strangely when you push files over ADB in recovery, and as a result when booted into the OS I was unable to rename any of the pushed files/folders or put new files in. Since the DCIM directory was one that I'd pushed over, new photos weren't saving. And I did not have permission to change permissions.
This is pretty much a brute force method - so I rebooted into recovery again, mounted /data, did adb shell, cd sdcard, and then:
chmod -R 777 *
And upon booting back into the OS, everything works properly again.
I know that messing with permissions is usually a dangerous thing. My logic was that anything stored in /sdcard is supposed to be a file that any app would be allowed to access as long as it has SD permissions - it's been that way in every version of the OS through to 4.0.
But anyway, if there's something I should do to decrease the "unsafeness" of this situation, please advise me. I guess in theory this would give a malicious app permission to execute code from /sdcard, which would make me more vulnerable?
EDIT: Okay more to report. To see the permissions properly when booted into the OS, you have to go into /data/media rather than /sdcard (same directory but permissions appear differently).
When I went in there and typed ls -n, I found that all the files I had pushed in recovery have UID & GID of 0. All files I had created afterwards had UID & GID of 1023. That explains everything. The owner is root for files that came from ADB in recovery, and media_rw for files created in the OS.
I can use chown, but it looks like the version of chown that comes with busybox does not have -R recursion implemented. Hrm. Aha! In CWM, chown does support -R. And we're off to the races. So from recovery I did:
cd /data/media
chown -R media_rw.media_rw *
Click to expand...
Click to collapse
that would explain it: i always use /data/media, didn't find any permission issues yet. thanks.

Categories

Resources