How to delete folders in /system? - Samsung Galaxy Tab A series Questions & Answers

Hello everyone!
I've just rooted my sm-t595 with Magisk 19.1 and disabled dm-verity, but I cannot still delete folders in /system. Does anyone know how to disable this protection?
Thanks a lot!

GuestD1029 said:
Hello everyone!
I've just rooted my sm-t595 with Magisk 19.1 and disabled dm-verity, but I cannot still delete folders in /system. Does anyone know how to disable this protection?
Thanks a lot!
Click to expand...
Click to collapse
Thats because the /system partition is mounted as read only. To mount the /system partition as read and write type the following command. (Type su prior to this command)
Code:
mount -o rw,remount /system

Related

[Q] Writing to /system?

I can't mount r/w through root explorer.. I also tried mounting in recovery but it wont stick when the phone boots up.. anyone know how to do it?
assuming you have root, open a terminal and type the following
su
busybox mount -o remount /system
i am rooted, and i tried it.. still a no go on the r/w.. its not that big of a deal at this point i guess, just seeing if anyone knew what the deal was
my busybox won't update either.. saying i may not have nandroid backup or it was unable to remount..
my bad sorry. the second command should be
busybox mount -o remount,rw /system
awesome.. worked

How to remove the demo games?

I went to /system/app and found most applications, but the only thing that I really want to find are the demo games, and for some reason I can't find them! I even went to /data/app and found the apk packages there, I deleted them but the games are still installed.
Any ideas?
Are they in /cust?
if i have not remembered wrongly, the demo games r in /system/app/..
what specific game(s) do u want to remove? i can give u the location tonight after work (as i stored the paths in my home pc..)
FYI. Mine are all in /cust/pccw/hk/app.
simplistian said:
FYI. Mine are all in /cust/pccw/hk/app.
Click to expand...
Click to collapse
is it possible\safe to delete them?
if u meant those "Ironman", "Prince of Persia", etc., then its okay to delete them..
i did..
My phone didnt have any demo games and i found it weird couse in all the reviews i saw them in the menu screen...
my memory didnt fail me.. the 4 games that i removed were all in /system/app/
BubbleBash2.apk (Launcher: Bubble Bash 2)
IronMan2.apk (Launcher: Iron Man 2)
PrinceofPersiaZero.apk (Prince of Persia)
UNO.apk (Launcher: UNO)
btw, im with the hong kong B135 version..
@flipmodegr
yeah, it seems that ROM for Wind is cleaner..
nice to hear that its normal for the greek phones
yes, Wind Gr gives a stock android rom (not even hauwei has added anything) so its clean like water
Thanks everyone I found them in /cust/roadhound/au/app but for some reason I can't mount the location as R/W using Root Explorer.. my phone IS rooted.. I don't know why it does not let me mount it as R/W.. therefore I can't delete them!!
Any ideas on this?
Thanks
Tcm9669 said:
Thanks everyone I found them in /cust/roadhound/au/app but for some reason I can't mount the location as R/W using Root Explorer.. my phone IS rooted.. I don't know why it does not let me mount it as R/W.. therefore I can't delete them!!
Any ideas on this?
Thanks
Click to expand...
Click to collapse
Try using adb or you could try in terminal emulator:
Mount R/W
Code:
mount -o remount,rw /dev/block/mmcblk0p12 /system
Mount R/O
Code:
mount -o remount,ro /dev/block/mmcblk0p12 /system
I can mount /system as R/W.. I just cant mount that directory in R/W .. it just opens as R/O even if I mount /system as R/W
Tcm9669 said:
I can mount /system as R/W.. I just cant mount that directory in R/W .. it just opens as R/O even if I mount /system as R/W
Click to expand...
Click to collapse
Oops sorry. See Below.
Try using adb or you could try in terminal emulator:
Mount R/W
Code:
mount -o remount,rw /dev/block/mmcblk0p1 /cust_backup
Mount R/O
Code:
mount -o remount,ro /dev/block/mmcblk0p1 /cust_backup
And the apps are in cust_backup/image/cust_data/roadhound/au/app. The /cust directory is just a link to the cust_backup direcctory. Which is why you cant mount it RW
Tried in Terminal Emulator, said
mount: Operation not permitted
Click to expand...
Click to collapse
then tried with sudo and said
sudo: permission denied
Click to expand...
Click to collapse
Tcm9669 said:
Tried in Terminal Emulator, said then tried with sudo and said
Click to expand...
Click to collapse
Root is su
Ahh, I tried
sudo <<command here>>
su worked! Thanks finally removed them ... WOHO!
Thank you very much mate.. oz oz oz, oi oi oi!
I want to remove those demos too, is it possible with stock non-rooted system?
No.. you need to root it. It's quite easy to do.

System r/o

Hello fellow xda'ers,
A few weeks I am experiencing a problem with my moto x style. The problem is that i don't have access anymore to my system folder. I have full root access, I can use rooted apps, but i can't switch my file system to r/w. Also when I boot into recovery I can flash roms etc, they are fully working, but once again, no system access. Also when I try to mount the system folder in recovery it seems it won't stick. Also when I use root explorer it says it switched to r/w but in fact it is r/o..
Can someone please hint me out what I could do to fix this problem?
Thanks in advance,
Bump
Have you tried something like this in terminal as root, or via ADB root?
Code:
mount -o rw,remount,rw /system
Then for r/o...
Code:
mount -o ro,remount,ro /system
quakeaz said:
Have you tried something like this in terminal as root, or via ADB root?
Then for r/o...
Click to expand...
Click to collapse
Thanks for your reply. But i still can't get system access.
bartjeh1991 said:
Thanks for your reply. But i still can't get system access.
Click to expand...
Click to collapse
Did you receive an error running the command? You are root, correct? Possibly just use:
Code:
mount -o remount,rw /system
Then run...
Code:
mount | grep system
Mine is read-only, but this should tell you if yours is rw or not.
Code:
u0 a114 clark:/ mount | grep system
/dev/block/bootdevice/by-name/system /system ext4 [B]ro[/B],seclabel,relatime,data=ordered 0 0
quakeaz said:
Did you receive an error running the command? You are root, correct? Possibly just use:
Then run...
Mine is read-only, but this should tell you if yours is rw or not.
Click to expand...
Click to collapse
I get this message everytime i run the commands you give me.

Flashing ARISE fails cause r/o system

Hello everyone
following Problem: tried to Flash ARISE. but flashing ARISE fails cause r/o system
... opened terminal in TWRP and Mount | grep /System
Output: /dev/block/platform/msm_sdcc.1/by-name/system /system ext4 rw,seclabel,relatime,data=ordered
so i see, ist rw...but i cant Flash... still get read-only file error..
i also tried mount -o remount,rw /System
Mount | grep /System, again, and Output also same as before...
Output: /dev/block/platform/msm_sdcc.1/by-name/system /system ext4 rw,seclabel,relatime,data=ordered
still get Read-only file System Error...
someone have a solution or an advise? when i go to Mount in TWRP i can check System (without active Checkbox for ro mounting), and still got the Errors...
aivilon said:
Hello everyone
following Problem: tried to Flash ARISE. but flashing ARISE fails cause r/o system
... opened terminal in TWRP and Mount | grep /System
Output: /dev/block/platform/msm_sdcc.1/by-name/system /system ext4 rw,seclabel,relatime,data=ordered
so i see, ist rw...but i cant Flash... still get read-only file error..
i also tried mount -o remount,rw /System
Mount | grep /System, again, and Output also same as before...
Output: /dev/block/platform/msm_sdcc.1/by-name/system /system ext4 rw,seclabel,relatime,data=ordered
still get Read-only file System Error...
someone have a solution or an advise? when i go to Mount in TWRP i can check System (without active Checkbox for ro mounting), and still got the Errors...
Click to expand...
Click to collapse
Unlock the system partition by typing "reboot disemmcwp" in the system or TWRP terminal or ADB shell
kossie12 said:
Unlock the system partition by typing "reboot disemmcwp" in the system or TWRP terminal or ADB shell
Click to expand...
Click to collapse
tried this... phone reboots, i hold power up to go directly back to twrp... still no rw...
here is what log of ARISE says:
cp: can't create directory '/system/etc/sws': Read-only file system
cp: can't create directory '/system/etc/srs': Read-only file system
cp: can't create '/system/etc/permissions/com.huawei.audioalgo.xml': Read-only file system
cp: can't create '/system/etc/firmware/isp_dts.img': Read-only file system
cp: can't create '/system/etc/firmware/hifi_6403_tfa.img': Read-only file system
cp: can't create '/system/etc/firmware/hifi_6403.img': Read-only file system
cp: can't create '/system/etc/firmware/hifi_6402_2spk.img': Read-only file system
cp: can't create '/system/etc/firmware/hifi_6402.img': Read-only file system
cp: can't create directory '/system/etc/firmware/can_nxp': Read-only file system
cp: can't create directory '/system/etc/dts': Read-only file system
cp: can't create directory '/system/etc/codec': Read-only file system
cp: can't create directory '/system/etc/audio': Read-only file system
cp: can't create '/system/framework/com.huawei.audioalgo.jar': Read-only file System
#EDIT1:
Still the same error after
umount /System
Mount -o rw /system
Could you try in terminal app?
Su
reboot disemmcwp
kossie12 said:
Could you try in terminal app?
Su
reboot disemmcwp
Click to expand...
Click to collapse
Su not found
Sudo not found
aivilon said:
Su not found
Sudo not found
Click to expand...
Click to collapse
Seems like you are not rooted. Arise needs a rooted device
kossie12 said:
Seems like you are not rooted. Arise needs a rooted device
Click to expand...
Click to collapse
Lol not possible cause I have SuperSU on it installed runs perfectly asked me for permission for applications if they need root
kossie12 said:
Seems like you are not rooted. Arise needs a rooted device
Click to expand...
Click to collapse
I also installed Los without any problems
aivilon said:
I also installed Los without any problems
Click to expand...
Click to collapse
It was possible to make a new file in /etc and in /system with root explorer... The reload was possible without an error
kossie12 said:
Seems like you are not rooted. Arise needs a rooted device
Click to expand...
Click to collapse
Think i found the problem...
/System gets dismounted every time i try to flash ARISE
After i mount it rw over terminal, its there, flash ARISE, try to remount, cant find in /proc/mount
Wtf
aivilon said:
Think i found the problem...
/System gets dismounted every time i try to flash ARISE
After i mount it rw over terminal, its there, flash ARISE, try to remount, cant find in /proc/mount
Wtf
Click to expand...
Click to collapse
Not sure why that is happening..
Maybe someone else can help you.
I didn't run into any problems installing, but im on stock B10 (G variant).
kossie12 said:
Not sure why that is happening..
Maybe someone else can help you.
I didn't run into any problems installing, but im on stock B10 (G variant).
Click to expand...
Click to collapse
I think file system was corrupted... Restored the system from the 03.03.17, mounted over mount menu in twrp, installed...
Seems that it has worked for now cause i have esra, viper4arise etc... Strange
aivilon said:
I think file system was corrupted... Restored the system from the 03.03.17, mounted over mount menu in twrp, installed...
Seems that it has worked for now cause i have esra, viper4arise etc... Strange
Click to expand...
Click to collapse
Good to hear it works for you now.
Now its time to enjoy some music :laugh:
kossie12 said:
Good to hear it works for you now.
Now its time to enjoy some music :laugh:
Click to expand...
Click to collapse
Thanks ?
Jep a little bit better, but still not perfect :silly:

Need help: ad-blocking via hosts file android 7 nougat

Hello dear community,
I'm now struggling for some days to enable ad-blocking on my Huawei Nova with Android 7 Nougat (CAN-L01C432B340). I simply only need root to edit the hosts file and then un-root my device (that can be easily done by flashing boot.img via fastboot again). Reason for un-root is to be able to play Pokemon Go which has a root-block.
Following steps have been tried with root enabled
First things first: The normal way of using AdAway to create a hosts file does not work anymore: It seems to be impossible to remount the /system partition with r/w (read more) with the app.
So I tried many things so far to gain r/w while Android is booted up
Reversed the order on how we give the options to mount as suggested in chainfires posts: mount -o rw,remount /system fails (same does mount -o remount,rw /system)
Installing busybox to have another (probably working) mount command: Installation fails because of no rw on /system (doh)
Flashing busybox installable zip: The binaries seem to be gone when Android is booted up (but are visible in TWRP)
Using another busybox installer seem to be able to at least temporary flash busybox to /system/bin. Yet, busybox mount -o rw,remount /system did not make /system rw.
Flashing systemless AdAway also fails (similar to flashing busybox, the files are written but mystically, all changes are gone after booting into android).
Now I unrooted my device
Then I thought, why not use TWRP and mount the partition with rw there and copy my own custom-made hosts-file to /system. And hey, mounting with rw works! Also even writing and all kind of stuff.
But now the bummer: No matter what I do, the hosts file, formerly written to e.g. the /system partition is reverted back to default after a reboot to android. The strange thing: My modification is still there and visible in TWRP
Investigating on how the hosts file is managed in a booted-up android, I found out, /system/etc/hosts is symlinked to /vendor/etc/hosts.
So I mounted the /vendor partition in TWRP and copied the hosts file there.
mount /dev/block/platform/soc/7824900.sdhci/by-name/vendor /system && cp /external_sd/hosts /system/etc
After a reboot, I noticed /vendor/etc/hosts (= /system/etc/hosts) just has the default entries :crying: Strangely, when I now root my device again, the hosts-file shows my entries (but I need to be un-rooted )
It seems like that all changes done to any partition are somehow reverted back by the kernels drive-mapper. Does anyone have an idea on how to write a hosts-file to my system, which persists when I boot up android and does not require to be permanently rooted?

Categories

Resources