ADB doesn't work on 2.1 - XPERIA X10 Q&A, Help & Troubleshooting

So ive upgraded to 2.1 Via nordic method but ADB doesn't seem to work. It worked for one time after I upgraded and I removed some useless stuff such a moxier and stuff but now it doesn't really work. ADB pull works fine but when I try to mount the device with "adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system" it says "mount: Operation not permitted" and when I try to remove more files I get something like the file is read-only or something.

Same problem overhere.

xGary said:
So ive upgraded to 2.1 Via nordic method but ADB doesn't seem to work. It worked for one time after I upgraded and I removed some useless stuff such a moxier and stuff but now it doesn't really work. ADB pull works fine but when I try to mount the device with "adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system" it says "mount: Operation not permitted" and when I try to remove more files I get something like the file is read-only or something.
Click to expand...
Click to collapse
If you just type ADB SHELL, do you get $ back?
Then SU, get #
Do you Titanium, Busybox and Superuser working OK at the phone?

Related

Cannot mount as read/write, Please help

Trying to push files from adb to my phone but it wont let me because its a read only system.
I've done adb shell mount -o rw,remount /dev/block/mtdblock3 /system but it does not work, I'm running windows 7 could this be a problem?
Make sure that USB Debugging is enabled on the phone.
Settings...Applications...Development
C:\Users\Jake\Desktop\android-sdk-windows\tools>adb shell mount -o rw,remount /d
ev/block/mtdblock3 /system
mount: mounting /dev/block/mtdblock3 on /system failed: Invalid argument
C:\Users\Jake\Desktop\android-sdk-windows\tools>
It is enabled.
Are you in recovery mode when you're trying this? Or booted regularly?
If you're in recovery mode you'd mount it like this:
mount -o rw /dev/block/mtdblock3 /system
Jboxen said:
C:\Users\Jake\Desktop\android-sdk-windows\tools>adb shell mount -o rw,remount /d
ev/block/mtdblock3 /system
mount: mounting /dev/block/mtdblock3 on /system failed: Invalid argument
C:\Users\Jake\Desktop\android-sdk-windows\tools>
Click to expand...
Click to collapse
follow my tutorial for ADB set-up. http://forum.xda-developers.com/showthread.php?p=6054534#post6054534
I noticed you dont have SDK in C:/ root....
or a simple command like this should mount it as read/write:
adb remount
its what i have been doing and seems to do the same thing with less commands, unless someone can point out the difference for me.
Otherwise, try
mount -o rw,remount /dev/block/mtd3 /system
That should do it. The /dev/block/mtdblock3 is only required in recovery.
ECLIPS3 said:
or a simple command like this should mount it as read/write:
adb remount
its what i have been doing and seems to do the same thing with less commands, unless someone can point out the difference for me.
Click to expand...
Click to collapse
I would also like to know the difference between the two commands:
adb remount
and
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
DeezNotes said:
I would also like to know the difference between the two commands:
adb remount
and
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
i believe they both do the same thing. just one uses the same characters
Android22 said:
follow my tutorial for ADB set-up. http://forum.xda-developers.com/showthread.php?p=6054534#post6054534
I noticed you dont have SDK in C:/ root....
Click to expand...
Click to collapse
having the SDK in C:\ root is not a necessity. People do it because it is easy to do it that way.

[Tips] Getting +-60MB More Free Space of The Internal Memory

Do you have many apps installed and suddenly your device said that your internal memory is low? While this is happened, you also can't receive any sms...
Usually it happened when your /data partition comes below 22mb free space... But now I realize that I still have 60mb free space in my /system partition...
So to sum it up, I basically just move some of the .apk in /data/app/ into /system/app/
To do this, you can use:
- adb shell > su
- install Root Explorer or SU File Manager (easier)
- add your own method here
Then reboot. Remember that by doing these, your application will now becomes protected application... You can't update it with market and you can't uninstall it (except by using Titanium Backup)... So I just put some of my apps that I thought I will never update (such as some games that I install from SD card )
Now my /system partition only have 100kb free space
You also can freeing up /system free space by uninstalling some unneeded default apps that comes with your devices. For example, default trial RollerCoaster app or uninstall timescape...
More info for uninstalling this protected apps, go to forum.xda-developers.com/showthread.php?t=740338
Or you can uninstall protected apps directly using Titanium Backup... Backup it first in case you want to use it later...
One more thing, root required. To root, go to forum.xda-developers.com/showthread.php?t=739874 or forum.xda-developers.com/showthread.php?t=739845
P.S: I can't post a links yet
Brilliant tip - I might put this on my blog after testing it! Thank you!
Ok, Perfect!
It works. Thanks
Noice one.
Are you absolutely sure that protected apps can't be updated on the market?
Facebook and Maps came pre-installed for me and are protected; they also update regularly from the Market..
I think they'll update - you'll just get the new version installed to /data/ with the older version left in /system/
So when you get an update, you'll just need to manually delete the previous version from system and copy the new version back in its place (if that makes sense)
Very nice post, I have a question, should it be done by rooting your phone first?? Coz u said that u r using adb shell with super user, am I right?
Sent from my Xperia X10 Mini Pro
I found this post and thought that this was very usefull, so i went ahead and tried it out on my missys phone.
1st of all, ive done some heavy modifications to the general look and feel of the phone. Nearly all blue is gone. Changed it to baby pink. My girl likes Twilight saga alot, so i changed nearly all the app icons in the apk's, both the SE ones in /system/app and the ones in /data/app.
The changing of images, icons, bars and buttons, i will try and write another post on under the theme forum later.
So.. I went ahead and tried this:
Obviosly the phone is rooted, else i couldn't change anything in the phone =)
I tried to move MyBackup from /data/app to /system/app.
The app is installed and working like it should and i did:
Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
mount -o rw,remounr -t yaffs2 /dev/block/mtdblock3 /data
busybox mv /data/app/com.rerware.android.MyBackup.apk /system/app
reboot
What happens after this is... No icon in menu.. Can't find it anywhere.. Should it be renamed or what am i missing here?
I have then deleted the program. Installed it again from market. Found it in working order and tried things like:
Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
mount -o rw,remounr -t yaffs2 /dev/block/mtdblock3 /data
dd if=/data/app/com.rerware.android.MyBackup.apk of=/system/app/com.rerware.android.Mybackup.apk
reboot
Same result..
Another go..
Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
mount -o rw,remounr -t yaffs2 /dev/block/mtdblock3 /data
cat /data/app/com.rerware.android.MyBackup.apk > /system/app/com.rerware.android.MyBackup.apk
reboot
Again, no app icon anywhere on the phone..
Last i tried:
Code:
adb push c:\x10\apk\com.rerware.android.MyBackup.apk /sdcard/apk/com.rerware.android.MyBackup.apk
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
mount -o rw,remounr -t yaffs2 /dev/block/mtdblock3 /data
busybox install /sdcard/apk/com.rerware.android.MyBackup.apk /system/app
reboot
Still failing... so, what am i missing?
shadowillusion said:
Remember that by doing these, your application will now becomes protected application... You can't update it with market and you can't uninstall it (except by using Titanium Backup)...
Click to expand...
Click to collapse
All is correct.
But using appbrain - fastweb installer apps, you can see if a "protected" app is up to date or not in the application list of appbrain app too.
So you can uninstall it and re-install the update version (if you want)
I moved a lot of apps to /system
Thank you very very much for this tip
FastDuck said:
I found this post and thought that this was very usefull, so i went ahead and tried it out on my missys phone.
1st of all, ive done some heavy modifications to the general look and feel of the phone. Nearly all blue is gone. Changed it to baby pink. My girl likes Twilight saga alot, so i changed nearly all the app icons in the apk's, both the SE ones in /system/app and the ones in /data/app.
The changing of images, icons, bars and buttons, i will try and write another post on under the theme forum later.
So.. I went ahead and tried this:
Obviosly the phone is rooted, else i couldn't change anything in the phone =)
I tried to move MyBackup from /data/app to /system/app.
The app is installed and working like it should and i did:
Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
mount -o rw,remounr -t yaffs2 /dev/block/mtdblock3 /data
busybox mv /data/app/com.rerware.android.MyBackup.apk /system/app
reboot
What happens after this is... No icon in menu.. Can't find it anywhere.. Should it be renamed or what am i missing here?
I have then deleted the program. Installed it again from market. Found it in working order and tried things like:
Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
mount -o rw,remounr -t yaffs2 /dev/block/mtdblock3 /data
dd if=/data/app/com.rerware.android.MyBackup.apk of=/system/app/com.rerware.android.Mybackup.apk
reboot
Same result..
Another go..
Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
mount -o rw,remounr -t yaffs2 /dev/block/mtdblock3 /data
cat /data/app/com.rerware.android.MyBackup.apk > /system/app/com.rerware.android.MyBackup.apk
reboot
Again, no app icon anywhere on the phone..
Last i tried:
Code:
adb push c:\x10\apk\com.rerware.android.MyBackup.apk /sdcard/apk/com.rerware.android.MyBackup.apk
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
mount -o rw,remounr -t yaffs2 /dev/block/mtdblock3 /data
busybox install /sdcard/apk/com.rerware.android.MyBackup.apk /system/app
reboot
Still failing... so, what am i missing?
Click to expand...
Click to collapse
I think you are forgetting to reboot the phone!
Apps aren't showing if moved and the phone didn't reboot!
Dear,
when I move the file facebook from the folder: data/app to system/app with the root explorer on the mobile phone after reboot I can not see the icon on the screen
regards
juergen
Reboot again and you'll see it
Actually, apps do show without a reboot.
Problem is that there was references somewhere in the phone to the app when it resided in /data/app... So i copied the apk to the sdcard. Uninstalled the app and after root, mount i did a:
busybox install /sdcard/some/path/SomeApp.apk /system/app
it worked like a charm.. And it shows without a reboot..
FastDuck said:
Actually, apps do show without a reboot.
Problem is that there was references somewhere in the phone to the app when it resided in /data/app... So i copied the apk to the sdcard. Uninstalled the app and after root, mount i did a:
busybox install /sdcard/some/path/SomeApp.apk /system/app
it worked like a charm.. And it shows without a reboot..
Click to expand...
Click to collapse
works this also perfect with root explorer, when I not connected my phone to the pc?

Cannot mount with ADB

Hello all,
I am trying to push a file to my system, however I do not seem to be able to mount my system partition.
When I try to execute the following command, I always get the error "Operation not permitted" :
Code:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
My phone is rooted and my USB debugging is on !!
Anyone no what could cause this. It has always worked when I was still on 1.6 (rooted) and now it doesn't allow me access.
When I use Rootexplorer, I have R/W access, so root works.
Anyone has any tips or advise ?
Try...
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
Tried that, and get permission denied
Should have added, make sure your screens on on the phone and allow SuperUser access when you type su.
never mind, one sec

[Q] problems modifying apks?

hey guys,
ive just started to learn how to modify apks and use adb.
my problem is that after i pull the file, i modify the icon i want to change, re-sign it and push it back to the phone. after i reinstall, the icons have not changed :S i re-pulled it, and the icons in the drawable_hdpi file are the one i wanted.
also, completely unrelated to that.... in adb when i try to run adb remount, it says permission denied, but im rooted and i even tried running the shell root beforehand aswell.
i ran a search and followed the various instructions from the different threads and forums but im just stuck at that point
thanks guys
kylec said:
also, completely unrelated to that.... in adb when i try to run adb remount, it says permission denied, but im rooted and i even tried running the shell root beforehand aswell.
Click to expand...
Click to collapse
If you're getting permission denied how have you pushed it back?
XperiaX10iUser said:
If you're getting permission denied how have you pushed it back?
Click to expand...
Click to collapse
i push it to the sdcard lol because it wont let me push to the system/app folder nor the data/app folder. i check my screen and a pop up appears saying that superuser granted access, so i have that.
kylec said:
i push it to the sdcard lol because it wont let me push to the system/app folder nor the data/app folder.
Click to expand...
Click to collapse
Then it's no wonder your icons haven't changed if you haven't installed it to the phone.
Try, but keep your phones screen on whilst you try it...
adb shell (enter)
su (enter)
...allow super user access on phone...
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
XperiaX10iUser said:
Then it's no wonder your icons haven't changed if you haven't installed it to the phone.
Try, but keep your phones screen on whilst you try it...
adb shell (enter)
su (enter)
...allow super user access on phone...
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
Click to expand...
Click to collapse
ok i just tried that. when i typed su, it echoed and on my phone it said "unknown has been grandted superuser permissions" so i didnt need to click allow or anything.
then i typed the mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system and got mount: operation not permitted
any ideas?
kylec said:
any ideas?
Click to expand...
Click to collapse
Try...
cd C:\android-sdk-windows\tools
adb shell
su
chmod 4755 /system/bin/sh
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
...and report back.
XperiaX10iUser said:
Try...
cd C:\android-sdk-windows\tools
adb shell
su
chmod 4755 /system/bin/sh
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
...and report back.
Click to expand...
Click to collapse
yup that worked, i got an echo without errors
EDIT: ok after that i then tried to push the apk to the system/app and also the data/app folders, but i got a different error this time.
it said failed to copy .apk permission denied
kylec said:
it said failed to copy .apk permission denied
Click to expand...
Click to collapse
Try, in a terminal on the phone...
su
chmod 4755 /system/bin/sh
I always struggle trying to get permissions after I've first rooted but can never remember the exact sequence, but do know it's a combination of what I've suggested.
XperiaX10iUser said:
Try, in a terminal on the phone...
su
chmod 4755 /system/bin/sh
I always struggle trying to get permissions after I've first rooted but can never remember the exact sequence, but do know it's a combination of what I've suggested.
Click to expand...
Click to collapse
ill give it a try after uni lol. thanks for all the help mate, its awesome having a place to get advice and help
EDIT: finally got it working... i pushed the file to sdcard then used the terminal emulator and used:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
cd sdcard
cat x.apk /data/app/x.apk
and that worked perfectly lol

mount: can't find /system in /proc/mounts

Hello,
im new here and i rooted my OP 5t and it still works. But when i want to make another app to an System app i always get this Error : "mount: can't find /system in /proc/mounts".
I tried it with Link2SD or Terminal Emulator but nothing works.
Can somebody maybe help me with this problem ?
@N3xus97
Try
Code:
adb shell "mount -o rw,remount /system"
jwoegerbauer said:
@N3xus97
Try
Code:
adb shell "mount -o rw,remount /system"
Click to expand...
Click to collapse
I already did this but it doesn't work for me.
But there is a password on the TWRP is it possible that this cause the error ?
@N3xus97
Don't know because I'm not using TWRP.
BTW: /system isn't a mount point.

Categories

Resources