[Q] Rooted S5 can not remove apk file in /system/app - Galaxy S 5 Q&A, Help & Troubleshooting

My Samsung Galaxy have been inject some virus in /system/app. Now I root my phone and run rm command by root user, but still can not remove the apk file. The system show:
rm failed for /system/app/providerdown.apk, Operation not permitted
I want to know why the root use don't have the permission to remove some file?
I post the cmd log of my operation:
[email protected]:/system/app # ll -la |grep providerdown.apk
-rwsr-sr-x root root 178557 2015-06-11 14:07 providerdown.apk
[email protected]:/system/app # mount -o remount,rw /system
[email protected]:/system/app # rm -rf /system/app/providerdown.apk
rm failed for /system/app/providerdown.apk, Operation not permitted
Any one can help me and Thank you for your ANSWER!

Help me
Any one can help me, the virus popup advertise 100+ times per day, it's let me crazy......

If you are *certain* that this is the app that is causing the popups, and you have root access, you can use an app like Root Explorer to manually delete the app....
Make sure you set the folder location from RO to RW first
Sent from my rooted, debloated stocKK kn0x0 SM-G900F

Related

[Q] Problems deodexing Droid 2

Hi,
I have been trying to deodex my droid 2 in order to install custom themes via xUltimate using the manual method. I get to the point where you copy the /sdcard/done_app/* to /system/app and /sdcard/done_frame, etc via adb and I keep getting an error message stating that there is no directory named /sdcard/done_app/ although it is there. Any ideas? Is there a one click deodex for droid 2 yet?
Thanks in advance,
Andrew
Follow up, bump
Follow up - tried deodexing again, using directions and files from this thread:
I am running Android 2.2.20 VZ Droid 2
I put the deodexed folders on the root of the sdcard.
Here is where I get stuck (This is getting frustrating:
C:\android-sdk_r071-windows\android-sdk-windows\tools
# su
su
# stop
stop
# mount -o remount,rw /dev/block/system /systems
mount -o remount,rw /dev/block/system /system
# cp /sdcard/done_app/* /system/app/
cp /sdcard/done_app/* /system/app/
cp: /sdcard/done_app/*: No such file or directory
hophead75 said:
Follow up - tried deodexing again, using directions and files from this thread:
I am running Android 2.2.20 VZ Droid 2
I put the deodexed folders on the root of the sdcard.
Here is where I get stuck (This is getting frustrating:
C:\android-sdk_r071-windows\android-sdk-windows\tools
# su
su
# stop
stop
# mount -o remount,rw /dev/block/system /systems
mount -o remount,rw /dev/block/system /system
# cp /sdcard/done_app/* /system/app/
cp /sdcard/done_app/* /system/app/
cp: /sdcard/done_app/*: No such file or directory
Click to expand...
Click to collapse
i don't really want to state something obvious...but seems like /sdcard/done_app/ doesn't exists OR the sdcard is not mounted (connected in the wrong mode? wrong settings in winamp so that the sdcard is always mounted when usb is connected?)
Yeah, it needed to be in pc mode. I guess that should have been obvious, but i couldn't root my phone in pc mode, had to use usb mass storage so I used that for everything.

How change permissions dir APP by ADB shell?

Hi i have problem with Kindle Fire,
i changed permissions folder system/app with app Root explorer and then I restart Kindle Fire and now dont want start. I think this is problem permissons for this directory.
Pleas can you send me setting permissions folder APP and how i can change it by ADB SHELL?
I have tried:
adb shell
su
chmod 644 app
Unable to chmod app: Read-only file system
THX very much .-(
Sory my english is very bad.
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
chmod 755 /system/app
or look here:
http://forum.xda-developers.com/showthread.php?t=1356257
guys please use the search function !
I have tried it but:
$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount: Operation not permitted
$ chmod 755 /system/app
chmod 755 /system/app
Unable to chmod /system/app: Read-only file system
THX I'm a little desperate
pitrsonek said:
I have tried it but:
$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount: Operation not permitted
$ chmod 755 /system/app
chmod 755 /system/app
Unable to chmod /system/app: Read-only file system
THX I'm a little desperate
Click to expand...
Click to collapse
you need root before you can do any of those (i.e. su)
But i think i have root because I install Google market and other app. Or how i can check if i have root?
THX!
c:\Program Files (x86)\Android\android-sdk\platform-tools>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
4D1A002600000001 device
c:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell
$ ls
ls
config
dropbox
cache
sdcard
acct
mnt
vendor
d
etc
ueventd.rc
ueventd.omap4430.rc
ueventd.goldfish.rc
system
sys
sbin
proc
init.rc
init.omap4430.rc
init.goldfish.rc
init
default.prop
data
root
dev
$
at the $ prompt type
su
should turn to # instead of $
Then you are Root.
krelvinaz said:
at the $ prompt type
su
should turn to # instead of $
Then you are Root.
Click to expand...
Click to collapse
Yes, what he said...you're confusing having root on the command line for "I installed su and superuser to their correct locations"
adb shell
$ su
su
[1] + Stopped (signal) su
$ su
su
[2] + Stopped (signal) su
[1] Segmentation fault su
$
I have try install root by this manual: http://rootkindlefire.com/kindle-fire-root/how-to-root-kindle-fire/
I see device when i write: adb devices
I have executed runme.bat
but SU dont go
pitrsonek said:
adb shell
$ su
su
[1] + Stopped (signal) su
$ su
su
[2] + Stopped (signal) su
[1] Segmentation fault su
$
I have try install root by this manual: http://rootkindlefire.com/kindle-fire-root/how-to-root-kindle-fire/
I see device when i write: adb devices
I have executed runme.bat
but SU dont go
Click to expand...
Click to collapse
Something is wrong with your device then.
as a first step look if you have superuser.apk in \system\app\
Ho i dont have Superuser.apk in /system/app/
b63 said:
as a first step look if you have superuser.apk in \system\app\
Click to expand...
Click to collapse
Doesn't really matter if su is not working. Superuser.apk is just a wrapper for su and he's trying to do things on the command line so su is what he's calling to, not SuperUser.apk.
He either didnt root correctly to begin with or he did something after that messed things up. Temp rooting with zergRush and redoing things is most likely what he needs to do.
Is ther somebody who can help me online on gtalk? I will pay you by PayPal. If anybody has freetime send me PM. THX
Ther is content dir app:
c:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell
$ ls /system/app
ls /system/app
-------------------------------------------------------------------------
ATVAndroidClient.apk
AccountAndSyncSettings.apk
AmazonVenezia.apk
ApplicationsProvider.apk
AudibleAndroidApplication-venezia.apk
CSApp-unsigned.apk
CalendarProvider.apk
CertInstaller.apk
Cloud9-unsigned.apk
Cloud9SystemBrowserProvider-unsigned.apk
Contacts.apk
ContactsProvider.apk
DefaultContainerService.apk
DownloadProvider.apk
DownloadProviderUi.apk
DrmProvider.apk
Email.apk
Facebook.apk
Gallery3D.apk
HTMLViewer.apk
IMDb-2.3.apk
KindleForOtter.apk
LatinIME.apk
Launcher.apk
LiveWallpapers.apk
LiveWallpapersPicker.apk
MagicSmokeWallpapers.apk
MarketIntentProxy.apk
MediaProvider.apk
MyAccount-unsigned.apk
OOBE-unsigned.apk
OTASilentInstall.apk
OtterAppManager.apk
OtterTutorial.apk
PackageInstaller.apk
PicoTts.apk
Provision.apk
Pulse-amazon.apk
QuickSearchBox.apk
QuickSettings.apk
Quickoffice_AMAZON_4.1.408_VC.apk
Settings.apk
SettingsProvider.apk
SystemUI.apk
TtsService.apk
UserDictionaryProvider.apk
VisualizationWallpapers.apk
VpnServices.apk
Windowshop.apk
air_runtime.apk
amazonmp3-unsigned.apk
com.amazon.dcp.apk
oem_install_flash_player_signed.apk
Superuser.apk
Vending.apk
$
agree - but it's an indication that his device is not rooted
i would suggest to install superoneclick to the computer and root again
all you need is here : http://forum.xda-developers.com/showpost.php?p=19789892&postcount=35
pitrsonek said:
Is ther somebody who can help me online on gtalk? I will pay you by PayPal. If anybody has freetime send me PM. THX
$
Click to expand...
Click to collapse
Maybe on Thursday I can. Busy until then.
I just run SuperOneClick and there is log http://jsfiddle.net/tVnDv/ from this program.
Kindle Fire is Back
Jupiiie Kindle Fire is back.
So first i try SuperOneClikck install root, but this code doesnt go:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
chmod 755 /system/app
Then i tried unroot and this code go?
How my Kindle Fire start ,-) Its crazy but true.
Thank you very much guys...
glad to help ...
pitrsonek said:
Jupiiie Kindle Fire is back.
So first i try SuperOneClikck install root, but this code doesnt go:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
chmod 755 /system/app
Then i tried unroot and this code go?
How my Kindle Fire start ,-) Its crazy but true.
Thank you very much guys...
Click to expand...
Click to collapse
I'm having the same issue, but when I go to change the mount permissions I get permission denied. Anyone care to give me some insight on how to fix it?
you have the $ prompt !!!
type su - the prompt has to change to #
then do the commands ...

Copying Vending.apk - Can't 'cp' after running SU

I am trying to move the vending.apk into system/app from the command line.
I was going to use ES File manager. However, when I try to do 'root explorer' it fails. I do still believe I have a working root because SU works from the adb shell..
Here is what is driving me crazy, I can't seem to move or copy the file from the adb shell after I root and mount the folder as read/write.
I run these commands to set permissions and mount it read/write.
SU
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
However after running SU it returns 'cp not found' when I try to run cp to copy the file. Example...
# cp /mnt/sdcard/Vending.apk /sytem/appVending.apk
cp: not found
If I try to move it, it returns this error.
# mv /mnt/sdcard/Vending.apk /system/app/Vending.apk
failed on '/mnt/sdcard/Vending.apk' - Cross-device link
Is there something else I need to do to move or copy after running SU?
You would first have to fix the mount command because it's not a yaffs2 filesystem, and it's not /dev/block/mtdblock3. The correct command should be "mount -o remount,rw -t ext4 /dev/block/mmcblk0p9". Then try to copy it over to /system/app.
If it still fails, you can adb push it to /system/app after having mounted the partition in read/write.
i just moved it with explorer myself
Try to rename it from .apk to .jpg and copy it with ES File Manager. If it's successful rename it back to .apk after it's in /system/app.

Can not root and Update OTA again after unroot.

When I rooted ,I backup and delete some some flexT9 input file, then I find out I can not recive SMS after root .
So I unroot ,now I get OTA update but it's says error about I miss some flexT9 file.I can not restore file without root.
Now I can never root again ,and I can not even UPDATE OTA because system fille ar change.
What can I do NOW ?
Just make a full restore, root, ota rootkeeper, backup, temp unroot, OTA, re-root with OTA-Rootkeeper, install your apps.
I try restore, but sitll the same,I can't root...
Do you use OTA RootKeeper to unroot?
If so, you have a su-backup in /system which you an use to get the full root back.
Even when RootKeeper fails to restore, you an do in the shell.
JA.de said:
Do you use OTA RootKeeper to unroot?
If so, you have a su-backup in /system which you an use to get the full root back.
Even when RootKeeper fails to restore, you an do in the shell.
Click to expand...
Click to collapse
I do found the su-backup in /system.
How to get it back? How to do in the shell? I am new on Android. Thanks!
Download the zip which works before OTA2
Extract it to /sdcard/Download
Install Termial Emulator Form market ("Android Terminal Emulator", ConnectBot or so)
Start it and type: /system/su-backup
Prompt change to #
Type:
mount -o rw,remount /system
rm /system/xbin/su
rm /system/bin/su
dd if=/system/su-backup of=/system/xbin/su
ln -s /system/xbin/su /system/bin/su
chmod 6755 /system/xbin/su
rm /system/xbin/busybox
dd if=/sdcard/Download/busybox of=/system/xbin/busybox
chmod 755 /system/xbin/busybox
/system/xbin/busybox --install /system/xbin/
dd if=/sdcard/Download/Superuser.apk of=/system/app/Superuser.apk
chmod 644 /system/app/Superuser.apk
mount -o ro,remount /system
exit
exit
Terminate the Emulator.
I have some trouble with rerooting. I've just done the following:
Rooted the TPT
Installed RootKeeper
Backup up root
Temp unroot
Installed OTA2
Tried to reroot - no success
RootKeeper says "filesystem supports root protection" and "protected su copy available"​When clicking Restore root it says "root su restored", but the checklist still says its not rooted (titanium backup says the same)​
Installed superuser from market
Tried to reroot again - still no success
Installed Terminal Emulator
Wrote /system/su-backup - and received "Permission denied"
Wrote mount -o rw,remount /system - and received "mount: Operation not permitted"
Any suggestions on how to get root back?
@krister461:
Just do what I have written.
You must have /system/su-backup, I think.
JA.de said:
@krister461:
Just do what I have written.
You must have /system/su-backup, I think.
Click to expand...
Click to collapse
I did try, see step 9-11.
I do have /system/su-backup, but I get permission denied when trying to use it from the terminal window.
type:
cd /system
ls -l su-backup
Owner should be: root
Group should be: root
Permissions have to be: rwsr-sr-w
If so - all is good and you have made a mistake.
If Not - :-(
Following your instructions, my screen says:
-rwsr-sr-x root root
and then mentions the Rootkeeper backup and it's size.
Am I okay?
toenail_flicker said:
Following your instructions, my screen says:
-rwsr-sr-x root root
and then mentions the Rootkeeper backup and it's size.
Am I okay?
Click to expand...
Click to collapse
Mine says the same.
Sorry for the w at the last character of the Permissions.
My fault. You are right. The x is correct.
I made another mistake.
Type cd /system before /system/su-backup
/system is not in PATH.
Good luck.
So our permissions are correct? We are okay? I'm sorry, just new to root and adb. Thanks
Yes all is okay. Only you have to start with
cd /system
in the shell. That's all.
I still get permission denied :-S
Just checked: cd /system is not necessary.
/system/su-backup gives you root (and
the #-prompt).
@krister461:
Did you type "/system/su-backup"?
The shell is case sensitive.
Is filesize the same as the su in the
zipfile?
Maybe your terminal emulator did not work properly.
The two that I mentioned are okay.
I am using Android Terminal Emulator, and writing it correctly. If I misspell it it says "not found".
Thanks for your help so far though

[guide] how to deodex stock 4.3 firmware

To make this work you must be on stock rooted firmware!!!
I made a quick guide how to root stock 4.3 firmware, and can be found here
I'm not responsible for any damage caused by using this on your phone!!!
Let's start:
1 - you need deodexed app and deodexed framework. download and unzip. will result 2 folders (app & framework) wich must be copied on your phone (int sdcard)
2 - download adb from attach and unzip
3 - enable USB debugging mode (go to settings > about phone > tap on Build Number 7 times, until a message appears saying 'You are now a Developer.') than go to settings > Developer Options and enable USB Debugging Mode
4 - go to adb folder and open a command window (hold shift and right click on mouse button / choose "open command window here")
5 - connect your phone to pc with usb cable
>>> ml6_deodexed_zipaligned_apps_framework
>>> na1_deodexed_zipaligned_apps_framework
Now enter folowing codes:
>>> adb shell
>>> su (if you are using adb shell in su for the first time, keep phone screen on. after entering "su" code, super user request prompt in phone. press allow!!!)
>>> stop (touchscreen will not be active until reboot, don't worry!)
>>> mount -o rw,remount /system/ /system/ (mounting system r/w)
>>> cp /sdcard/app/* /system/app/ (copy deodexed system applications) (this will take 3 - 5 min)
>>> rm /system/app/*.odex (remove odex files)
>>> chmod 0644 /system/app/*.apk (this fix permissions in system/app)
>>> cp /sdcard/framework/* /system/framework/ (copy deodexed framework)
>>> rm /system/framework/*.odex (remove odex files)
>>> mount -o ro,remount /system/ /system/ (mounting system r/o)
>>> reboot (your phone will reboot) (this will take a little)
Code:
adb shell
su
stop
mount -o rw,remount /system/ /system/
cp /sdcard/app/* /system/app/
rm /system/app/*.odex
chmod 0644 /system/app/*.apk
cp /sdcard/framework/* /system/framework/
rm /system/framework/*.odex
mount -o ro,remount /system/ /system/
reboot
Now you have a deodexed stock rom!!!
do not forget to press thanks
i recommend to remove all knox files from your phone.
to do this you need an application to modify your system files ( i use root explorer )
to remove knox delete this files:
system > app > ContainerAgent.apk / ContainerEventsRelayManager.apk / KLMSAgent.apk / KNOXAgent.apk /
KnoxAttestationAgent.apk / KNOXStore.apk / KNOXStub.apk
system > containers (delete entire folder)
system > etc > secure_storage > com.sec.knox.store (delete entire folder)
reserved...
Well written buddy :good:
I would like to see a "how to zipaligned" the apks also.
robalm said:
Well written buddy :good:
I would like to see a "how to zipaligned" the apks also.
Click to expand...
Click to collapse
attached app are deodexed & zipaligned
Sent from my GT-N7100 using xda app-developers app
Good idea thanks to you
You forgot to add "how to deodex stock 4.3 ML6 firmware"
robalm said:
You forgot to add "how to deodex stock 4.3 ML6 firmware"
Click to expand...
Click to collapse
root the rom and folow instructions.
app & framework are from ML6
Sent from my GT-N7100 using xda app-developers app
cosmyndemeter said:
root the rom and folow instructions.
app & framework are from ML6
Sent from my GT-N7100 using xda app-developers app
Click to expand...
Click to collapse
All worked fine, but i do not like to have old apps and framework on a newer rom version.
robalm said:
All worked fine, but i do not like to have old apps and framework on a newer rom version.
Click to expand...
Click to collapse
explain pls. what rom you have?
cosmyndemeter said:
explain pls. What rom you have?
Click to expand...
Click to collapse
n7100dduena1.
robalm said:
n7100dduena1.
Click to expand...
Click to collapse
uploading na1_deodexed_zipaligned_apps_framework.
download link on #1 post
cosmyndemeter said:
uploading na1_deodexed_zipaligned_apps_framework.
download link on #1 post
Click to expand...
Click to collapse
Thank you for this, I had wondered whether the app & framework were universal. I had not seen it was from the ML6.
Thanks for working on the NA1.
YOSEFE said:
Thank you for this, I had wondered whether the app & framework were universal. I had not seen it was from the ML6.
Click to expand...
Click to collapse
i think app are same, framework can be different
my stock rom flashed is mk9, but is use na1_deodexed_zipaligned_apps_framework without any problem
na1_deodexed_zipaligned_apps_framework uploaded
cosmyndemeter said:
na1_deodexed_zipaligned_apps_framework uploaded
Click to expand...
Click to collapse
Thank you very much.
Going there now.
OP,
can you tell me what is wrong with my phone causing the errors with this?
C:\Users\Me...\Downloads\adb\adb>adb shell
[email protected]:/ $ su
su
[email protected]:/ # stop
stop
[email protected]:/ # mount -o rw,remount /system/ /system/
mount -o rw,remount /system/ /system/
[email protected]:/ # cp /sdcard/app/* /system/app/
cp /sdcard/app/* /system/app/
[email protected]:/ # rm /system/app/*.odex
rm /system/app/*.odex
rm failed for /system/app/*.odex, No such file or directory
255|[email protected]:/ # chmod 0644 /system/app/*
chmod 0644 /system/app/*
Unable to chmod /system/app/mcRegistry: Permission denied
10|[email protected]:/ # cp /sdcard/framework/* /system/framework/
cp /sdcard/framework/* /system/framework/
[email protected]:/ # rm /system/framework/*.odex
rm /system/framework/*.odex
rm failed for /system/framework/*.odex, No such file or directory
255|[email protected]:/ # chmod 0644 /system/framework/*
chmod 0644 /system/framework/*
[email protected]:/ # mount -o ro,remount /system/ /system/
mount -o ro,remount /system/ /system/
[email protected]:/ # reboot
reboot
Thanks.
YOSEFE said:
OP,
can you tell me what is wrong with my phone causing the errors with this?
C:\Users\Me...\Downloads\adb\adb>adb shell
[email protected]:/ $ su
su
[email protected]:/ # stop
stop
[email protected]:/ # mount -o rw,remount /system/ /system/
mount -o rw,remount /system/ /system/
[email protected]:/ # cp /sdcard/app/* /system/app/
cp /sdcard/app/* /system/app/
[email protected]:/ # rm /system/app/*.odex
rm /system/app/*.odex
rm failed for /system/app/*.odex, No such file or directory
255|[email protected]:/ # chmod 0644 /system/app/*
chmod 0644 /system/app/*
Unable to chmod /system/app/mcRegistry: Permission denied
10|[email protected]:/ # cp /sdcard/framework/* /system/framework/
cp /sdcard/framework/* /system/framework/
[email protected]:/ # rm /system/framework/*.odex
rm /system/framework/*.odex
rm failed for /system/framework/*.odex, No such file or directory
255|[email protected]:/ # chmod 0644 /system/framework/*
chmod 0644 /system/framework/*
[email protected]:/ # mount -o ro,remount /system/ /system/
mount -o ro,remount /system/ /system/
[email protected]:/ # reboot
reboot
Thanks.
Click to expand...
Click to collapse
did you this for stock rooted odexed rom
because it seems this is not stock odexed firmware
cosmyndemeter said:
na1_deodexed_zipaligned_apps_framework uploaded
Click to expand...
Click to collapse
Thanks for this.
I have posted you a question here because of the errors I am getting.
YOSEFE said:
Thanks for this.
I have posted you a question here because of the errors I am getting.
Click to expand...
Click to collapse
and i asked if you are in stock odexed firmware with root...

Categories

Resources