[Q] 4.0.3 HTC Temp Root Question - HTC EVO 3D

Hello everybody,
i have gained root access to my phone via backup/restore method through adb where local.prop is stored in /data/. So when i log onto my phone with adb i have root access. I copied busybox, su and the superuser.apk to the right place and removed the local.prop file again. After a reboot I was hoping to remove some crapware off my phone but to my surprise the binaries i copied vanished from the filesystem. So the phone reverted the changes by itself. I did this process several times copying busybox and su to various places referred to by $PATH, but it´s everytime the same after i reboot. The files are gone.
After the first attempts failed i tried to make changes to my phone while logged in as root. I wanted to uninstall unnecessary packages with "pm uninstall" but that failed also. The command just responds "failed". Even when /system is mounted rw (it remounts itself to ro after a while though). I´ve also made changes to /init.rc but they are also gone after a reboot as other changes i´ve made. Basically i wasn´t able to accomplish anything with root access no matter what i did.
So what i want to know is how this black magic works andy why i cant do anything with root. I know how to achieve real root through htc dev and various other methods.
Thanks for reading!

nasenstueber said:
Hello everybody,
i have gained root access to my phone via backup/restore method through adb where local.prop is stored in /data/. So when i log onto my phone with adb i have root access. I copied busybox, su and the superuser.apk to the right place and removed the local.prop file again. After a reboot I was hoping to remove some crapware off my phone but to my surprise the binaries i copied vanished from the filesystem. So the phone reverted the changes by itself. I did this process several times copying busybox and su to various places referred to by $PATH, but it´s everytime the same after i reboot. The files are gone.
After the first attempts failed i tried to make changes to my phone while logged in as root. I wanted to uninstall unnecessary packages with "pm uninstall" but that failed also. The command just responds "failed". Even when /system is mounted rw (it remounts itself to ro after a while though). I´ve also made changes to /init.rc but they are also gone after a reboot as other changes i´ve made. Basically i wasn´t able to accomplish anything with root access no matter what i did.
So what i want to know is how this black magic works andy why i cant do anything with root. I know how to achieve real root through htc dev and various other methods.
Thanks for reading!
Click to expand...
Click to collapse
is your RECOVERY.img
and beside i dont really think your /system is fully mounted rw

mauricio.valladolid said:
is your RECOVERY.img
and beside i dont really think your /system is fully mounted rw
Click to expand...
Click to collapse
Thanks for the reply. i use mount -o remount,rw /system as mount command to get read/write permission on /system. If there is something more to do please let me know. And if the behavior i ve seen is caused by the recovery.img is there something i can do about it?

nasenstueber said:
Thanks for the reply. i use mount -o remount,rw /system as mount command to get read/write permission on /system. If there is something more to do please let me know. And if the behavior i ve seen is caused by the recovery.img is there something i can do about it?
Click to expand...
Click to collapse
why dont you just install ext4 recovery and flash supersu.zip?
I really dont get it why are you trying to do it the hard way

Related

[Tutorial] Root Your EVO3D with Automated Scripts

Simple to use. Useful for those who want ROOT access via ADB or Device for Backup, etc. It is a modified scripts from Doomlord and some1 in the CDMA threads...
Prerequisites
1) Uninstall all HTC Sync & Drivers
2) Download and install http://downloads.unrevoked.com/HTCDriver3.0.0.007.exe
3) Make sure your device Display is set to NEVER TURN OFF & not locked in the lockscreen
Instructions
1. Download attachment
2. Extract to C:\
3. Execute file Step 1
4. Execute file Step 2. If doesnt work, go to C:\files and execute Step 2
5. Remount SD card again from the DEVICE SETTINGS page
This will work for all devices not limited to EVO 3D.
For locked bootloaders (any versions), this will result in a temporary ROOT access, and will be lost after reboot.
Please feedback for whichever H-Boot this works on.
Thanks to our following comrades...
Team Revolutionary with their ZergRush exploit
http://forum.xda-developers.com/show...1296916&page=2
DoomLord with the automated script
http://forum.xda-developers.com/show....php?t=1321582
For the third guy I cant remember where.. maybe the CDMA section with the permatemproot stuff..
With this script, Titanium Backup and Root Explorer will definitely work even on LOCKED bootloaders (will lose root after reboot, just rerun the script)
For problems especially with SUPERUSER FCs, please download and run the .bat file in the UNROOT.zip. This will clean the system of all old temp root stuffs like superusers, etc...
Appreciate your thanks..
i dun understand why but it didn't work as did ur last tool, it always saids adb server out-of-date, re running or sth, it does the same in every step, and when it comes to moving files/manipulating permissions, i just get loads of errors
I'm on HBOOT 1.49.0012
P.S. i cant unlock using HTC Unlock method too no matter how many times i try (i read the instructions carefully and followed them closely) but still got unlock token check failed error......
tomanlam said:
i dun understand why but it didn't work as did ur last tool, it always saids adb server out-of-date, re running or sth, it does the same in every step, and when it comes to moving files/manipulating permissions, i just get loads of errors
I'm on HBOOT 1.49.0012
P.S. i cant unlock using HTC Unlock method too no matter how many times i try (i read the instructions carefully and followed them closely) but still got unlock token check failed error......
Click to expand...
Click to collapse
Reboot your device and try again... see edited post above..
Not sure about HTC Unlock method...
For UNLOCKED evos, it will give permanent ROOT access
For LOCKED evos, it will give temporary ROOT access
If you have problem unlocking, try grabbing a RUU file here and reflash your ROM... maybe factory reset wont hurt either...
it has run thru all the process with success, but when i try to open root explorer it show superuser force close???
looknsee said:
it has run thru all the process with success, but when i try to open root explorer it show superuser force close???
Click to expand...
Click to collapse
Also the Same thing happened to me !!!!
Yup, not working here either.
It says it installs everything ok, but when I go to update the su binary, it force closes out. When I use TI backup, it says I don't have root access.
Hope this helps so that we can at least get temp root. I just want to remove the bloatware!
Thanks for the hard work in any event!
tried this on sensation xl and it worked, root access to some apps like root explorer but terminal says access denied. it seems to unmount the internal sd card which programs need to run and only a reboot remounts sdcard but obviously root is gone after reboot. hope one of the XL devs can use this to create a working solution for our XL
ObsoleteSoldier said:
Yup, not working here either.
It says it installs everything ok, but when I go to update the su binary, it force closes out. When I use TI backup, it says I don't have root access.
Hope this helps so that we can at least get temp root. I just want to remove the bloatware!
Thanks for the hard work in any event!
Click to expand...
Click to collapse
dont need to update the SU binary.. just run the scripts and they are good to go...
however, SYSTEM/APP are in locked partition of the bootloader.. you may need to unlock your bootloader first.. but you may remove some in the Data/app llike gmail and stuffs (i prefer Exchange email than using Gmail app)
shingers5 said:
tried this on sensation xl and it worked, root access to some apps like root explorer but terminal says access denied. it seems to unmount the internal sd card which programs need to run and only a reboot remounts sdcard but obviously root is gone after reboot. hope one of the XL devs can use this to create a working solution for our XL
Click to expand...
Click to collapse
If your bootloader is unlocked, then you may be able to reboot and still have root..
Can I use these scripts to get root access without s-off ?
wasdly said:
Can I use these scripts to get root access without s-off ?
Click to expand...
Click to collapse
S-OFF not required.
FULL ROOT if UNLOCKED BOOTLOADERS
TEMP ROOT if LOCKED BOOTLOADERS
Reason : Files in SYSTEM partition are locked, hence changes made are temporary and will be lost after reboot
Yep full root acheived with u.locked bootloader on HTC sensation xl. Confirmed and working
Sent from my HTC Nexus One using xda premium
Just tried on my HK Evo3D (HBoot 1.49.0012, completely stock, no HTC unlock) and it works. But it took me a few trials to get it working.
For those who have problems with the script (e.g., permission problems during the script) try:
(In the following steps, make sure ur evo3d is disconnected from ur pc when you reboot it. Just to make sure that it is clean.)
1) reboot your phone
2) run the unroot script
3) reboot once more
4) run the root script "Step 1.bat"
5) *** go into the "files" directory ***, and run the "Step 2.bat"
6) at this step you should see the superuser is installed (check the app drawer)
7) go to Settings to mount your sd card
I have managed to root it and run through a titanium backup successfully. Thanks for the great work!
Though temp root is gained, system is still mounted as read-only
tried these, neither one worked:
1) adb remount
"remount failed: Read-only file system"
2) su; busybox mount -o remount,rw /system
No messages, no errors. But still system is in ro mode:
# busybox mount -o remount,rw /system
busybox mount -o remount,rw /system
# mount | grep system
mount | grep system
/dev/block/mmcblk0p22 on /system type ext4 (ro,relatime,barrier=1,data=ordered)
3) su; fixit; busybox mount -o remount,rw /system
Same result.
Seems, after running "Step 1.bat", the /system is temporary mounted as "rw", (that's why the script could complete without warnings/errors). But after Step 2 finishes, /system is back to "ro" no matter what...
Any insights?
ktchana said:
Just tried on my HK Evo3D (HBoot 1.49.0012, completely stock, no HTC unlock) and it works. But it took me a few trials to get it working.
For those who have problems with the script (e.g., permission problems during the script) try:
(In the following steps, make sure ur evo3d is disconnected from ur pc when you reboot it. Just to make sure that it is clean.)
1) reboot your phone
2) run the unroot script
3) reboot once more
4) run the root script "Step 1.bat"
5) *** go into the "files" directory ***, and run the "Step 2.bat"
6) at this step you should see the superuser is installed (check the app drawer)
7) go to Settings to mount your sd card
I have managed to root it and run through a titanium backup successfully. Thanks for the great work!
Click to expand...
Click to collapse
ktchana said:
Though temp root is gained, system is still mounted as read-only
tried these, neither one worked:
1) adb remount
"remount failed: Read-only file system"
2) su; busybox mount -o remount,rw /system
No messages, no errors. But still system is in ro mode:
# busybox mount -o remount,rw /system
busybox mount -o remount,rw /system
# mount | grep system
mount | grep system
/dev/block/mmcblk0p22 on /system type ext4 (ro,relatime,barrier=1,data=ordered)
3) su; fixit; busybox mount -o remount,rw /system
Same result.
Seems, after running "Step 1.bat", the /system is temporary mounted as "rw", (that's why the script could complete without warnings/errors). But after Step 2 finishes, /system is back to "ro" no matter what...
Any insights?
Click to expand...
Click to collapse
1) Reboot phone
2) Connect in DEBUG MODE
3) Run Step 1 script
4) Run Unroot script
5) Reboot phone
6) Connect in DEBUG MODE
7) Run Step 1
8) Run Step 2
You may have previously attempted some other methods, therefore you need to clean the system first...
If your bootloader is LOCKED, you still can gain TEMPORARY ROOT access and run you Titanium Backup (restore settings, data apps).. however, the SYSTEM partition is still locked, which means, whatever changes you done to the SYSTEM partition (like restoring some SYSTEM apps) will be lost after reboot.
I got forceclose with the superuser.
I dont know why, but i guess the root process was finished
Got temp root and su support with untampered stock (vodafone branding), unlocked bootloader HBoot 1.49.0018 on HTC EVO 3D GSM shooteru
System continues to be (expectedly) in ro mode.
Lost access to SD card, had to reboot to use it again...
Permanently disabled without any problems some apps that were bugging me - Thanks
Christoph
bdigitalstudio said:
1) Reboot phone
2) Connect in DEBUG MODE
3) Run Step 1 script
4) Run Unroot script
5) Reboot phone
6) Connect in DEBUG MODE
7) Run Step 1
8) Run Step 2
You may have previously attempted some other methods, therefore you need to clean the system first...
If your bootloader is LOCKED, you still can gain TEMPORARY ROOT access and run you Titanium Backup (restore settings, data apps).. however, the SYSTEM partition is still locked, which means, whatever changes you done to the SYSTEM partition (like restoring some SYSTEM apps) will be lost after reboot.
Click to expand...
Click to collapse
Thanks for your inputs. But my phone was completely stock and I have never tried other root methods before trying this one.
I observed that, /system actually get rw for a short time after the mount -o remount,rw command in step 1. But somehow it will get back to ro by itself. The time is unpredictable in a sense that sometimes step 1 script cannot finish successfully (cannot copy busybox, su to /system because it changes back to ro so quickly).
I know that the SYSTEM rw is just an overlay and all changes will be gone once rebooted. I am asking this because I just wonder if I could playaround and test something like changing fonts without s-off or HTC unlock.
---------- Post added at 05:13 AM ---------- Previous post was at 05:10 AM ----------
-Ho- said:
I got forceclose with the superuser.
I dont know why, but i guess the root process was finished
Click to expand...
Click to collapse
After temp root, go to market and install superuser again. Then run apps like titanium backup and it should work. At least in my case.
---------- Post added at 05:18 AM ---------- Previous post was at 05:13 AM ----------
chw9999 said:
Got temp root and su support with untampered stock, unlocked bootloader HBoot 1.49.0018 on HTC EVO 3D GSM shooteru
System continues to be (expectedly) in ro mode.
Lost access to SD card, had to reboot to use it again...
Permanently disabled without any problems some apps that were bugging me - Thanks
Christoph
Click to expand...
Click to collapse
After temp root the SD card is unmounted, that's why you can't use it. Did you go to Settings to mount the SD card again?
ktchana said:
Thanks for your inputs. But my phone was completely stock and I have never tried other root methods before trying this one.
I observed that, /system actually get rw for a short time after the mount -o remount,rw command in step 1. But somehow it will get back to ro by itself. The time is unpredictable in a sense that sometimes step 1 script cannot finish successfully (cannot copy busybox, su to /system because it changes back to ro so quickly).
I know that the SYSTEM rw is just an overlay and all changes will be gone once rebooted. I am asking this because I just wonder if I could playaround and test something like changing fonts without s-off or HTC unlock.
---------- Post added at 05:13 AM ---------- Previous post was at 05:10 AM ----------
After temp root, go to market and install superuser again. Then run apps like titanium backup and it should work. At least in my case.
---------- Post added at 05:18 AM ---------- Previous post was at 05:13 AM ----------
After temp root the SD card is unmounted, that's why you can't use it. Did you go to Settings to mount the SD card again?
Click to expand...
Click to collapse
Re-do it again only the first time got FC from superuser
After i got the FC, i cleared the data of superuser
Everything seems work
Thanks
ktchana said:
After temp root the SD card is unmounted, that's why you can't use it. Did you go to Settings to mount the SD card again?
Click to expand...
Click to collapse
Yep, it dawned on me and I found that option - now I can use Titan to backup everything
Is there a possibility to add automatic remounting the SD into the script using adb? I am not really familiar with this...
Thanks again
Christoph

[Q] How to ADB push?

I'm trying to push files to /system via ADB. However I'm having problems (getting permission errors). I am running Eclipse 2.0.2, so yes, my phone is rooted, I have su and busybox.
Phone is connected to PC and is set as "USB Mass Storage".
USB Debugging is ON
Here is my CMD log:
Code:
C:\android-sdk\tools>adb remount
remount failed: Operation not permitted
I tried to remount and it failed
Code:
C:\android-sdk\tools>adb push C:\myfile.apk /system
failed to copy 'C:\myfile.apk' to
'/system/myfile.apk': Read-only file system
I tried to push, and got a READ-ONLY FILE SYSTEM error (keep this in mind)
Code:
C:\android-sdk\tools>adb shell
$ adb push C:\myfile.apk /system
adb push C:\myfile.apk /system
adb: permission denied
I try to push inside of ADB shell. Nothing again...
Code:
$ su
su
# mount -o remount,rw /dev/block/mtdblock4 /system
mount -o remount,rw /dev/block/mtdblock4 /system
# exit
exit
I go into SU and attempt to remount the /system
Code:
$ adb push C:\myfile.apk /system
adb push C:\myfile.apk /system
adb: permission denied
$ exit
exit
I go back up to ADB shell and try to push again... same error as before
Code:
C:\android-sdk\tools>adb push C:\myfile.apk /system
failed to copy 'C:\myfile.apk' to '/system/myfile.apk': Permission denied
I go back to the main command line and try to push again. This time I get PERMISSION DENIED. This error is different than before.
Any help on the matter?
I've read about ro.secure needing to be set to 1, but I need to edit the boot.img in order to do this, correct? Does that require an unlocked bootloader? Is root ADB even possible on the DX2.
Thanks!
I am no expert (don't even know if i know enough to b called a newb) but maybe try a root explorer. I use es file explorer because it's free. In settings check root explorer and mount file system. I received similar errors and this solved my problem.
Sent from my DROID X2 using XDA App
I'm familiar with root explorer, it's easy. I'm wanting to be able to use ADB though. Your post made me try something new though. I plugged my phone into my PC, then went into root explorer and mounted everything as RW. But, still was unable to push via ADB. Thanks for the reply though
So, how can I get ADB working?
wesf90 said:
I'm familiar with root explorer, it's easy. I'm wanting to be able to use ADB though. Your post made me try something new though. I plugged my phone into my PC, then went into root explorer and mounted everything as RW. But, still was unable to push via ADB. Thanks for the reply though
So, how can I get ADB working?
Click to expand...
Click to collapse
I was using adb also and had similar problems. After i changed those settings i was able to push a file. I had to have system mounted.
Sent from my DROID X2 using XDA App
No luck on my end :/
Sorry i couldn't be more help. I am new to adb and may have done more to get it working. I'm sure there's someone else around here that can help u out.
Sent from my DROID X2 using XDA App
Make sure there are no spaces in the file path to your android-sdk folder. Can't say if this is your issue but its worth a shot as it has always caused weird problems with android development since day one.
Sent from my DROID X2 using Tapatalk
Ro.secure is in your local.prop on the root of your phone. As far as your issue you have to reset permissions in order to push to /system. I saw that you were trying to do that but with no success. I believe I know what will help but I will have to find it and repost.
http://forum.xda-developers.com/showthread.php?t=1133528
Ok look at the command lines at the bottom of the op. You are going to use adb shell. Follow that almost exactly but adjust according to your directories. Should go into adb shell, gain su permissions, mount /system rw, push your apk, then don't worry about remounting as ro, just reboot. Pay close attention to spaces.
Sent from my DROID X2 using xda premium
CadenH said:
Ro.secure is in your local.prop on the root of your phone. As far as your issue you have to reset permissions in order to push to /system. I saw that you were trying to do that but with no success. I believe I know what will help but I will have to find it and repost.
http://forum.xda-developers.com/showthread.php?t=1133528
Ok look at the command lines at the bottom of the op. You are going to use adb shell. Follow that almost exactly but adjust according to your directories. Should go into adb shell, gain su permissions, mount /system rw, push your apk, then don't worry about remounting as ro, just reboot. Pay close attention to spaces.
Sent from my DROID X2 using xda premium
Click to expand...
Click to collapse
Took me a few days to be able to getting around to trying this, but it didn't work :/ I'm still getting all of the same errors. The /system just doesn't seem to want to mount as RW (even though it is possible when using root explorer).
As for ro.secure in my local.prop, I'm able to edit this but it resets on reboot because (from what I've read) this is a file generated by the kernel
Anyone else have ideas?
Wes
wesf90 said:
Took me a few days to be able to getting around to trying this, but it didn't work :/ I'm still getting all of the same errors. The /system just doesn't seem to want to mount as RW (even though it is possible when using root explorer).
As for ro.secure in my local.prop, I'm able to edit this but it resets on reboot because (from what I've read) this is a file generated by the kernel
Anyone else have ideas?
Wes
Click to expand...
Click to collapse
Moon shadow has a post in development to mount system rw
It's some type of script u run before adb or something
I don't know anything bout adb
But I do know he created it for this reason
Check it out
It's prolly got the info you need
ashclepdia said:
Moon shadow has a post in development to mount system rw
It's some type of script u run before adb or something
I don't know anything bout adb
But I do know he created it for this reason
Check it out
It's prolly got the info you need
Click to expand...
Click to collapse
Thanks for that! It's not quite what I'm aiming to eventually do, but did give me more insight on how the whole adb/shell/su systems work. From inside of su, I was able to mount the /system as RW, however I'm only able to do this from inside of SU. I want to be able to do this from the initial CMD so that I can ADB PUSH from my computer to the phone.
Here's my latest log:
Code:
C:\android-sdk>adb shell
[[TRYING TO MOUNT FROM ADB SHELL]]
$ mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
mount: Operation not permitted
[[TRYING TO MOUNT FROM ADB SHELL USING BUSYBOX]]
$ busybox mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
busybox mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
mount: permission denied (are you root?)
[[GO TO SU]]
$ su
su
[[MOUNTING AS RW SUCCESSFUL]]
# mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
[[COPYING A FILE INSIDE /SYSTEM SUCCESSFUL]]
# cp framework/framework-res.apk framework/framework-res-test.apk
cp framework/framework-res.apk framework/framework-res-test.apk
[[REMOUNTING /SYSTEM AS RO]]
# mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
[[ATTEMPTING TO COPY AGAIN, FAILED]]
# cp framework/framework-res.apk framework/framework-res-test2.apk
cp framework/framework-res.apk framework/framework-res-test2.apk
cp: can't create 'framework/framework-res-test2.apk': Read-only file system
#
So now the question is, how do I mount as R/W so I can use ADB push?
Wes
Maybe its because im tired but im confused as to why it wont let you push your files if you have remounted as rw. At that point it should be cake. You gained access to system by remounting it as rw successfully already.
Sent from my DROID X2 using xda premium
wesf90 said:
So now the question is, how do I mount as R/W so I can use ADB push?
Wes
Click to expand...
Click to collapse
Try:
Code:
adb devices
adb remount
adb push [filename] [destination]
adb reboot
the "adb remount" remounts the fs RW instead of the default RO.
I'm no expert in ADB, but I had run into the same issue as you and for me the fix was to go into ADB SHELL , then type SU to get SU access, then type exit twice to get out of shell completely. Then I tried pushing the APK and it worked fine with no read only errors.
This worked for me on my SGS2, could work for you ! Goodluck !
Come to IRC and I can help you with this. http://webchat.freenode.net Come to the #cm7dx2 channel. I'm usually there... Look for the nick(s) Moon|Work|(something), Moon|Home|(something), or MoonShadow-NM. If the (something) says Busy, I might not answer right away. If it says Away, I'm away from the keyboard and you won't receive a response until I return.
Ciao!
Any update
did you ever get this figured out? I'm having the same frustrations on mine. Mine won't install the 2.3.5 update due to it not recognizing the Quickoffice.apk and I'm trying to push the files manually, but I'm having no luck getting past the same you've posted here.
hellhunter said:
did you ever get this figured out? I'm having the same frustrations on mine. Mine won't install the 2.3.5 update due to it not recognizing the Quickoffice.apk and I'm trying to push the files manually, but I'm having no luck getting past the same you've posted here.
Click to expand...
Click to collapse
I've got a better idea to fix your issue brotha!
From my nexus tappin the talk
<edit post successful>
hellhunter said:
did you ever get this figured out? I'm having the same frustrations on mine. Mine won't install the 2.3.5 update due to it not recognizing the Quickoffice.apk and I'm trying to push the files manually, but I'm having no luck getting past the same you've posted here.
Click to expand...
Click to collapse
Do this
Sbf to 2.3.4
(or 2.3.3& take one ota To get to 2.3.4...however you want to do it..just be bone stock 2.3.4 )
Root your device.
BUT DO NOT USE ZERGRUSH TO ROOT
Use petes Motorola one click root method.
Then continue the process as normal from there on out.
Trust me in this. Zergrush root method is not playing nice with your /system partition, (if you notice during the root process it might say something like "making room in system,"= or "moving/deleting app to make room" something similar)
And when it does that, it's messing up how the update checks for untouched stock apps.
Let me know how it goes.
This solution has worked for COUNTLESS others so far, zergrush has always been the culprit when it comes to failing to find certain apk or system file that needs to be there for the update to install.
From my nexus tappin the talk
<edit post successful>
jamesh0317 said:
Try:
Code:
adb devices
adb remount
adb push [filename] [destination]
adb reboot
the "adb remount" remounts the fs RW instead of the default RO.
Click to expand...
Click to collapse
This won't work with Eclipse since it's not using 2nd init. I asked this question in the Eclipse forums and Nitro responded with the following:
Not without using 2nd init. All of that works due to being able to load its own init.rc which starts services and passes parameters, etc.. during boot time. It is possible to make a stock rom use 2nd init. CM9 will not even have root enabled by default. The only other way to push stuff is to enable root shell prior to pushing.
Click to expand...
Click to collapse
I know that CM7 allows using the adb remount, but that's because it's using 2nd init. I had also asked the question about why CM7 defaults to root shell when you adb shell into it and that's why he mentions how CM9 won't have root enabled by default.
The way I push to Eclipse is to run root explorer on my phone and mount the directory r/w. Then, I can use "adb push" to the phone.
ashclepdia said:
Do this
Sbf to 2.3.4
(or 2.3.3& take one ota To get to 2.3.4...however you want to do it..just be bone stock 2.3.4 )
Root your device.
BUT DO NOT USE ZERGRUSH TO ROOT
Use petes Motorola one click root method.
Then continue the process as normal from there on out.
Trust me in this. Zergrush root method is not playing nice with your /system partition, (if you notice during the root process it might say something like "making room in system,"= or "moving/deleting app to make room" something similar)
And when it does that, it's messing up how the update checks for untouched stock apps.
Let me know how it goes.
This solution has worked for COUNTLESS others so far, zergrush has always been the culprit when it comes to failing to find certain apk or system file that needs to be there for the update to install.
Click to expand...
Click to collapse
I think I may have tried that in one of my iterations. Originally I had it rooted with One-Click and then I was having issues with the 2.3.5 OTA update (quickoffice.apk) and at this point I've SBF'ed and rooted it probably 5 times this week so far. Rooted with both One-click and zergRush at various times. Actually I think every time except this last time has been with one-click. So I don't think that has seemed to make a difference for me so far. I can try it again, but if there's any other advice to throw out in the mean time, I'll take it.
Alternatively, I may take the new phone (the first replacement they sent had 2.3.5 on it, but a bad menu key causing the phone to flip out), load Titanium Backup on it, backup all the system apps and restore them to my original phone. Worst case is I have to SBF it again. But that seems like a logical process since I will have two phones available.

Setting system root as RW default

Hey there?
I've got a question which I can't seem to find anywhere else and YES I have searched this forum and google. However, I may miss it.
Anyway, I've mapped my android phone as a network drive using Samba and changed the smb.conf file to show the System Root directory as well. However, system root is default set as R/O so to mange files USING my computer I need to change the permission to R/W using a file manager (such as root explorer). This is annoying, as I have to keep doing this in order to write to certail directories.
What I wish to do is create a massive guide on all of this to help out the community, however I need one little bit of information.
I would like the / directory (root) to be mounted as R/W as default so that I can quickly edit files on my PC without having to constantly change it to R/O.
If this has been answered before, I do apologize.
Thanks in advance.
Regards,
xxSHABSxx
EDIT:
To make things a bit clearer.
I want something that will automatically mount my phone's root dir into rw upon boot, without custom apps/having to manually mount as rw everytime it reboots. And yes I understand there are apps that do this.
Yes, the root file system is read-only, but it's also volatile. It's restored from the initramfs in the boot image each time you reboot the phone, so only mounting it writeable, doesn't do you very much anyway.
In /init.rc you find a line:
Code:
mount rootfs rootfs / ro remount
This remounts your root read-only. Remove this, and it'll stay writeable. But again, all edits to the root file system are volatile. To change this, you must flash a new boot.img
An easier way would be a root-app remounting it writable again after boot.
kuisma said:
Yes, the root file system is read-only, but it's also volatile. It's restored from the initramfs in the boot image each time you reboot the phone, so only mounting it writeable, doesn't do you very much anyway.
In /init.rc you find a line:
Code:
mount rootfs rootfs / ro remount
This remounts your root read-only. Remove this, and it's stay writeable. But again, all edits to the root file system are volatile. To change this, you must flash a new boot.img
An easier way would be a root-app remounting it writable again after boot.
Click to expand...
Click to collapse
Ahh I figured as much, since Google didn't offer any solutions to me. And flashing is way much more effort than simply having an app that does it for you.
Anyway thanks for the reply!
xxshabsxx said:
Ahh I figured as much, since Google didn't offer any solutions to me. And flashing is way much more effort than simply having an app that does it for you.
Click to expand...
Click to collapse
Or do like I did, move the root to a real ext3 non-volatile file system instead.

[Q] not able to mount system as read/write properly

Hey guys,
I'm having a problem with ES file explorer. After several days I managed to root my HUawei U8800 Ideos X5 (Android 2.3.5) and obviously one of the next steps is installing CWMR. Unfortunately I'm failing here too. I tried to copy the recovery.img to the .cust_backup/image, but it keeps to say copy failed. Root access was given and I checked all four boxes in root settings. Someone in a german forum told me to update the binarys in SU, which failed too (it says sth like copy su to /system -> failed!). I'm not even sure ES FE would work if the binarys would be current.
Is there someone who can help me? Any ideas?
I already tried the app Mount /system (rw / ro). It didn't work with this too.
Thanks a lot.
no ideas?
You must have the /system folder mounted for read and write, default is read-only.
Different folders in the file structure could be located on different file systems, the easiest way to be sure that you have read and write access were you want to put files, imho, is by using root explorer.
If you are rooted and ES have root permissions then the problem is that the folder is non-writable. I don't know the app you tried to use to mount the /system as r/w but it's easy to do in root explorer or through adb shell with a little bit of *nix knowledge (su and mount -o remount,rw).
Should work from terminal emulator app as well.
C:\Users\...>adb push C:\recovery.img /.cust_backup/image/
failed to copy 'C:\recovery.img' to '/.cust_backup/image//recovery.img': Read-on
ly file system
before I typed
adb shell
$ su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
Doesn't work. adb etc. is installed.
I'm really desperate about this now, I think something is really wrong with my system partiture or something like that. I consider formatting it, the problem I obviously have is that without CWMR I have no clue how to do that and how to flash an OS after it. Does someone have ideas about the whole issue? Interesting facts about my device: Often I'm not able to flash a stock ROM, it stops somewhere in the middle of the process. Rooting works often, but not always with SuperOneClick or zergrush. At the moment my superuser app says "root app_63" in a red font instead of "root root" in a green font, at least I have current binaries at the moment, but this doesn't work always as well. Seems like I am pretty alone with all these problems, that's why I want to format /system...
Please help me! Thanks
Give root explorer a try!
Sent from my OC ed mind.!
Why would you think that would work? ES File Explorer does basically the same...
Dont EVER try to format /system or u r gonna end up completely bricked. Just take your phone to a service centre and see what can be done. If you are under warranty, replace the mobile.
Hope i helped .
Sent from my GT-S5360 using XDA-Developers App.

[Q] [help]how to get system folder permission for hdx7

I just play andorid device a few days, but My hdx7 is a little bricked because i deleted some system app. Now I can log in fire os, have adb, usb connected and internal storge, even i can operate device setting app, but i can't open the other app because i don't have a desktop.
I compare system/app folder with the same folder in the amazon bin, found that the folder lack of scores of app, but the other system folder is the same. So I hope can adb push app folder to the system folder, but the pemission denied. I try to remount or mount, it can't work.
if adb root, then "adbd cannot run as root in production builds.
if adb push apk to the app folder, then “permission denied".
if adb remount, then ”remount failed: Operation not permitted".
and I have try adb shell like that:
# su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# chmod 777 /system
# exit
it didn't work.
my hdx7 have rooted.
My Questions are:
1. If I could push the app folder to the system folder and reset to factory, is my hdx saved?
2. How to get the system folder rw in the situation?
thx for any prompt, although i am a rookie but i will try my best, i wish the adept can help me and will be enormously grateful. Sorry for my poor english.
It sounds to me that you had lost root.
kschang said:
It sounds to me that you had lost root.
Click to expand...
Click to collapse
So i have tried root again like "http://forum.xda-developers.com/showthread.php?t=2544965" said
But it didn't work, please see the attach, But I don't know why.
Sorry for that i'm rookie to andorid and ask so many questions.
randolphling said:
So i have tried root again like "http://forum.xda-developers.com/showthread.php?t=2544965" said
But it didn't work, please see the attach, But I don't know why.
Sorry for that i'm rookie to andorid and ask so many questions.
Click to expand...
Click to collapse
Hmmm... It says you still have root (the prompt changed after "su")
I personally don't use ADB much. I have Root Explorer (grabbed it legally for free from Amazon ages ago) and Wifi Explorer Pro (same method) so I basically WiFi myself the files I need sideloaded then move them around on the device itself. But if you've lost launcher, you have deeper issues.
Have you tried ADB push any launcher? Or even a download store like 1Mobile or Aptoide?
ADB is basically a Linux shell debug into Android, so you need to learn some Unix shell commands. I'm sure you can find ADB guides with the basic commands, like "ls", "cp", and so on.
You need to check the directory and see if the system/app and other system directories are still there. This is one reason I only play with the copy of ROM I have (see Safestrap Recovery).

Categories

Resources