[Q] SU File Permission - HTC Wildfire S

Can anyone tell me what the file permissions for su should be?
I have:
Code:
sh-3.2# ls -l /system/bin/su
-rwxrwxrwx 1 501 root 22228 Nov 10 2011 /system/bin/su

It should be rwx r-x r-x

Related

[Q] chmod: /system/etc/init.d/ Not a directory

I am following a manual which says
Code:
adb shell chmod 755 /system/etc/init.d/95havsvdd
but his is what I get when I try to chmod on a this file I have uploaded minute before:
Code:
chmod: /system/etc/init.d/95havsvdd: Not a directory
Can anyone help?

[Q] Rooting, pushed file not found?!?

Hey all! Desperately seeking help here: I'm rooting my MyTouch 3g slide, and have successfully completed all the steps up to this point where I need to run "rageagainstthecage-arm5.bin" from the devices "/data/local/tmp/" folder. The previous steps are as follows from cyanogen's wiki page:
"On the computer, open terminal and run the following commands:"
Code:
adb push rageagainstthecage-arm5.bin /data/local/tmp/
adb shell
chmod 755 /data/local/tmp/rageagainstthecage-arm5.bin
/data/local/tmp/rageagainstthecage-arm5.bin
Click to expand...
Click to collapse
All of these with the exception of the last line are successful. After running chmod 755, I typed the following:
Code:
ls -l /data/local/tmp/
I get the following result:
Code:
-rwxr-xr-x 1 root root 5392 Aug 25 2010 rageagainstthecage-arm5
.bin
but finally, entering
Code:
/data/local/tmp/rageagainstthecage-arm5.bin
I get
Code:
/sbin/sh: /data/local/tmp/rageagainstthecage-arm5.bin: not found
It's there. I don't get it. Heeeelllpp meeeeeeee
Here's a log:
Code:
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push rageagainstth
ecage-arm5.bin /data/local/tmp/
292 KB/s (5392 bytes in 0.018s)
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell
~ # chmod 755 /data/local/tmp/rageagainstthecage-arm5.bin
chmod 755 /data/local/tmp/rageagainstthecage-arm5.bin
~ # /data/local/tmp/rageagainstthecage-arm5.bin
/data/local/tmp/rageagainstthecage-arm5.bin
/sbin/sh: /data/local/tmp/rageagainstthecage-arm5.bin: not found
~ # ls -l /data/local/tmp/
ls -l /data/local/tmp/
-rwxr-xr-x 1 root root 5392 Aug 25 2010 rageagainstthecage-arm5
.bin
~ #

[Solved] How to make changes to /system stick? (rooted HTC One)

How can I change files in the /system partition on a rooted HTC One? I...
1. Mount /system as read-write
2. Rename a file and confirm that it has changed
3. Remount /system as read only
The changes I made in step 2 have been forgotten. How can I get around this?
C:\Program Files (x86)\HTC\HTC Sync Manager\HTC Sync>adb shell
[email protected]:/ $ su
su
[email protected]:/ # cd system/app
cd system/app
1|[email protected]:/system/app # ls -l GM*
ls -l GM*
-rw-r--r-- root root 5215731 2014-01-17 11:15 GMS_Maps.apk
-rw-r--r-- root root 6884656 2008-08-01 22:00 GMS_Maps.odex
[email protected]:/system/app # mv GMS_Maps.apk GMS_Maps.apk.old
255|[email protected]:/system/app # mount -o rw,remount /system
mount -o rw,remount /system
[email protected]:/system/app # mv GMS_Maps.apk GMS_Maps.apk.old
mv GMS_Maps.apk GMS_Maps.apk.old
[email protected]:/system/app # ls -l GM*
ls -l GM*
-rw-r--r-- root root 5215731 2014-01-17 11:15 GMS_Maps.apk.old
-rw-r--r-- root root 6884656 2008-08-01 22:00 GMS_Maps.odex
[email protected]:/system/app # mount -o ro,remount /system
mount -o ro,remount /system
[email protected]:/system/app # ls -l GMS*
ls -l GMS*
-rw-r--r-- root root 5215731 2014-01-17 11:15 GMS_Maps.apk
-rw-r--r-- root root 6884656 2008-08-01 22:00 GMS_Maps.odex
[email protected]:/system/app #
Solved... the stock kernel is write protected. You have to install a non-protected kernel, such as BulletProof. Make sure you choose the one that matches your Android and Sense versions. Copy the ZIP to your HTC One, boot into recovery, install zip and reboot... then use Root Explorer or ES File Explorer to delete /system/app/GMS_Maps.apk and /system/app/GMS_Maps.odex. No more Maps 7.x! Thanks nkk71 for the tip.

[GUIDE] Fix SuperSU on DragonBoard 410c (root)

Ensure you have drivers setup properly and are able to adb shell to your 410c
Install SuperSU 2.46 over adb or "Chainfire SuperSU" from Google Play if you have it installed
Download UPDATE-SuperSU-v2.46.zip and extract it to your microSD card that you use for your 410c
adb root
adb shell
cd /mnt/media_rw/sdcard1/UPDATE-SuperSU-v2.46/
cp ./arm/chattr.pie /data/local/tmp/chattr.pie
chmod 0755 /data/local/tmp/chattr.pie
mount -o rw,remount /system
cp /mnt/media_rw/sdcard1/UPDATE-SuperSU-v2.46/arm64/supolicy /system/xbin/supolicy
chmod 0755 /system/xbin/supolicy
cp /mnt/media_rw/sdcard1/UPDATE-SuperSU-v2.46/arm64/libsupol.so /system/lib64/libsupol.so
chmod 0755 /system/lib64/libsupol.so
cp /mnt/media_rw/sdcard1/UPDATE-SuperSU-v2.46/arm64/su /system/xbin/su
chmod 0755 /system/xbin/su
cp /mnt/media_rw/sdcard1/UPDATE-SuperSU-v2.46/arm64/su /system/xbin/daemonsu
chmod 0755 /system/xbin/daemonsu
/system/xbin/daemonsu –d
Exit but DO NOT restart your 410c yet
On your 410c, open the SuperSU app and select “Normal” to finish the process
I followed through all the steps in your post, but when I opened the SuperSU app in the end, it still shows the message that "There is no SU binary installed, and SuperSU cannot install it...". Do you have any idea what else I could try to fix it? Thanks!!
Root access is granted but once device reboots root access is denied. Also where is “Normal” in SuperSU?

[h815] /system read only

Hi xda,
i need some help,
i have à h815 with bl unlock, twrp 3.0.0.0, stock V20d, root, xposed but i can not change permission in system partition #strange
root browser, solid explorer, es, can copy or rename in system partition but when i change permission, the operation failed and the system partition past to read-only and unable to remount
same with adb (i use adb insecure) , :
C:\Users\user>adb shell
[email protected]:/ $ su
su
[email protected]:/ # getenforce
getenforce
Enforcing
[email protected]:/ # setenforce permissive
setenforce permissive
[email protected]:/ # getenforce
getenforce
Permissive
[email protected]:/ #
C:\Users\user>adb shell #enable adb insecure (chainfire app)
[email protected]:/ # ls system/media -la
ls system/media -la
drwxr-xr-x root root 2016-01-15 10:28 audio
-rw-r--r-- root root 8979780 2016-01-15 10:28 bootanimationold.zip
drwxr-xr-x root root 2016-01-15 10:28 gallery
drwxr-xr-x root root 2016-01-15 10:28 ims
-rw-r--r-- root root 4281625 2016-01-15 10:28 shutdownanimation.zip
[email protected]:/ # cp sdcard/download/bootanimation.zip system/media/bootanimation.zip
nload/bootanimation.zip system/media/bootanimation.zip <
cp: system/media/bootanimation.zip: Read-only file system
1|[email protected]:/ # mount -o remount rw /system
mount -o remount rw /system
[email protected]:/ # cp sdcard/download/bootanimation.zip system/media/bootanimation.zip
nload/bootanimation.zip system/media/bootanimation.zip <
[email protected]:/ # ls system/media -la
ls system/media -la
drwxr-xr-x root root 2016-01-15 10:28 audio
-rw------- root root 46802200 2016-03-03 14:54 bootanimation.zip
-rw-r--r-- root root 8979780 2016-01-15 10:28 bootanimationold.zip
drwxr-xr-x root root 2016-01-15 10:28 gallery
drwxr-xr-x root root 2016-01-15 10:28 ims
-rw-r--r-- root root 4281625 2016-01-15 10:28 shutdownanimation.zip
[email protected]:/ # chmod 0644 system/media/bootanimation.zip
chmod 0644 system/media/bootanimation.zip
chmod: chmod 'system/media/bootanimation.zip' to 100644: Read-only file system
1|[email protected]:/ # rm system/media/bootanimation.zip
rm system/media/bootanimation.zip
rm ro system/media/bootanimation.zip (y/N):y
y
rm: system/media/bootanimation.zip: Read-only file system
1|[email protected]:/ # mount -o remount rw /system
mount -o remount rw /system
mount: Read-only file system​
any idea ?
thanks & sorry for my frenchy english
anybody have a idea ??

Categories

Resources