LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-16-2015, 10:23 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post adb can't remove a file from my Cell phone.


Hello.
My Android is infected with "Luck Try" and the virus file is "Kinguser.apk" but adb can't delete it :

shell@android:/ # rm /system/app/Kinguser.apk
rm failed for /system/app/Kinguser.apk, Read-only file system
255|shell@android:/ #

I'm root but it is read only

Any idea?
 
Old 06-16-2015, 01:07 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Try adding the -f option to the rm command.
Code:
rm -f /system/app/Kinguser.apk
Or, try changing the permissions on the file, then try to delete it.
Code:
chmod a+w  /system/app/Kinguser.apk
then try to delete it.
 
Old 06-16-2015, 01:19 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919
what does the mount command show. is /system mounted as read-only ?

maybe something like
Code:
mount -o remount,rw /system
?

Last edited by schneidz; 06-16-2015 at 01:22 PM.
 
Old 06-16-2015, 02:29 PM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by bigrigdriver View Post
Try adding the -f option to the rm command.
Code:
rm -f /system/app/Kinguser.apk
Or, try changing the permissions on the file, then try to delete it.
Code:
chmod a+w  /system/app/Kinguser.apk
then try to delete it.
I did both and when I use "-f" it tell me that "-f" not exist. about "chmod" it is not working.
 
Old 06-17-2015, 10:54 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
The next thing I suggest trying is to install something like AVAST Mobile Security or 360 Mobile Security (there are others as well). Install ONLY ONE antivirus on your Android. Put it through it paces. It should remove the virus files.

Read more here: http://www.pcadvisor.co.uk/how-to/go...image-3605390/
 
Old 06-17-2015, 12:09 PM   #6
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,189
Blog Entries: 2

Rep: Reputation: 277Reputation: 277Reputation: 277
I'm curious how that apk was written to the system partition...
 
Old 06-20-2015, 03:59 AM   #7
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
I removed it handy and factory reset but I see "Lucky Try!" on Android
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adb can see my phone but fastboot can't :( hack3rcon Linux - Software 4 06-16-2015 01:19 AM
cell phone SimplyInquisitive Linux - Newbie 7 09-12-2012 09:39 PM
Cell phone Distro wh33t Linux - Distributions 5 07-14-2008 03:02 PM
Cell phone help phantom_cyph General 0 10-29-2007 07:36 PM
need new cell phone rmakers General 0 08-16-2006 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration