Monday, April 14, 2014

Delete system application code


As stated, the program is the built-in phone, with system privileges, and now want to get out function
delete system applicationsHas this idea, and the command to remove system applications, like the first rm system / app / xxx.apk then use the uninstall uninstall
But the next test found no success to delete apk that follow it gone
Or there is to know what God has done great attention is code execution
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
There is also a third-party application like to explore next is how to achieve access to root my phone and root permissions why it failed to get it
Know cattle wing ah
Reply:
Applications also require elevated privileges (su), then in order to have the appropriate permissions to root.
Reply:
You write that command is possible, but before the rm system / app / xxx.apk to add that "chmod 777 system / app / xxx.apk" that is, to file in that directory has read and write permissions, the other does not need to with uninstall the, apk delete system applications already uninstalled the application, and on root permissions problem, 2L answer should be a positive solution
Reply:
reference to the third floor wenyiqingnianiii reply:
you write that command is possible, but before the rm system / app / xxx.apk to add that "chmod 777 system / app / xxx.apk "that is, to file in that directory has read and write permissions, and then uninstall the addition is not required, apk delete system application has been uninstalled applications, the permissions on the root problem, 2L answer should be positive solution


reference to the second floor ultrapro reply:
applications also require elevated privileges (su), then in order to have the appropriate permissions to root.

Thanks to two replies, which are tried
The current instruction is such
Order
su
mount-o remount, rw-t yaffs2 / dev/block/mtdblock3 / system \ n
chmod 777 / system / app / xxx.apk \ n
rm / system / app / xxx.apk \ n
exit \ n

To delete another young artists not only clean uninstall file in the data still need to uninstall residue to clean out

Reply:
references, 4th Floor tanwei4199 reply:
Quote: references to the third floor wenyiqingnianiii reply:

You write that command is possible, but before the rm system / app / xxx.apk to add that "chmod 777 system / app / xxx.apk" that is, to file in that directory has read and write permissions, the other does not need to with uninstall the, apk delete system applications already uninstalled the application, and on root permissions problem, 2L answer should be a positive solution


reference to the second floor ultrapro reply:
applications also require elevated privileges (su), then in order to have the appropriate permissions to root.

Thanks to two replies, which are tried
The current instruction is such
Order
su
mount-o remount, rw-t yaffs2 / dev/block/mtdblock3 / system \ n
chmod 777 / system / app / xxx.apk \ n
rm / system / app / xxx.apk \ n
exit \ n

To delete another young artists not only clean uninstall file in the data still need to uninstall residue to clean out
now able to delete it, to point it. . . .
Reply:
references, 5th Floor wenyiqingnianiii reply:
Quote: references to the 4th floor tanwei4199 reply:

Quote: references to the third floor wenyiqingnianiii reply:

You write that command is possible, but before the rm system / app / xxx.apk to add that "chmod 777 system / app / xxx.apk" that is, to file in that directory has read and write permissions, the other does not need to with uninstall the, apk delete system applications already uninstalled the application, and on root permissions problem, 2L answer should be a positive solution


reference to the second floor ultrapro reply:
applications also require elevated privileges (su), then in order to have the appropriate permissions to root.

Thanks to two replies, which are tried
The current instruction is such
Order
su
mount-o remount, rw-t yaffs2 / dev/block/mtdblock3 / system \ n
chmod 777 / system / app / xxx.apk \ n
rm / system / app / xxx.apk \ n
exit \ n

To delete another young artists not only clean uninstall file in the data still need to uninstall residue to clean out
now able to delete it, to point it. . . .

Delete egg ah is not to say No
Reply:
cited landlord tanwei4199 reply:
such as the title, the program is built into the phone, with system privileges, and now want to get out function to delete system applications
Has this idea, and the command to remove system applications, like the first rm system / app / xxx.apk then use the uninstall uninstall
But the next test found no success to delete apk that follow it gone
Or there is to know what God has done great attention is code execution


After executing su root, you can directly execute command to delete pm pm but can not seem to clear data command to delete data

Command: system / bin / pm uninstall xxx or stem / bin / pm uninstall-k xxx

pm uninstall: removes a package from the system Options:.
-K: keep the data and cache directories around after package removal.
Reply:
reference to the 7th floor ConnectionUtils reply:
Quote: references landlord tanwei4199 reply:

As stated, the program is the built-in phone, with system privileges, and now want to get out function
delete system applicationsHas this idea, and the command to remove system applications, like the first rm system / app / xxx.apk then use the uninstall uninstall
But the next test found no success to delete apk that follow it gone
Or there is to know what God has done great attention is code execution


After executing su root, you can directly execute command to delete pm pm but can not seem to clear data command to delete data

Command: system / bin / pm uninstall xxx or stem / bin / pm uninstall-k xxx

pm uninstall: removes a package from the system Options:.
-K:. Keep the data and cache directories around after package removal

Tried pm install when the silent installation but did not succeed until this is to remove the application of this system is also unable to estimate
Reply:
reference to the 6th floor tanwei4199 reply:
Quote: references, 5th Floor wenyiqingnianiii reply:

Quote: references to the 4th floor tanwei4199 reply:

Quote: references to the third floor wenyiqingnianiii reply:

You write that command is possible, but before the rm system / app / xxx.apk to add that "chmod 777 system / app / xxx.apk" that is, to file in that directory has read and write permissions, the other does not need to with uninstall the, apk delete system applications already uninstalled the application, and on root permissions problem, 2L answer should be a positive solution


reference to the second floor ultrapro reply:
applications also require elevated privileges (su), then in order to have the appropriate permissions to root.

Thanks to two replies, which are tried
The current instruction is such
Order
su
mount-o remount, rw-t yaffs2 / dev/block/mtdblock3 / system \ n
chmod 777 / system / app / xxx.apk \ n
rm / system / app / xxx.apk \ n
exit \ n

To delete another young artists not only clean uninstall file in the data still need to uninstall residue to clean out
now able to delete it, to point it. . . .

Delete egg ah is not to say impossible
I tried it, you can delete. . You show me your log
Reply:
mount-o remount, rw-t yaffs2 / dev/block/mtdblock3 / system \ n This command is what a case, written directly mount-o remount, rw / system / app can ah
Reply:
reference to the 8th floor tanwei4199 reply:
Quote: references to the 7th floor ConnectionUtils reply:

Quote: references landlord tanwei4199 reply:

As stated, the program is the built-in phone, with system privileges, and now want to get out function
delete system applicationsHas this idea, and the command to remove system applications, like the first rm system / app / xxx.apk then use the uninstall uninstall
But the next test found no success to delete apk that follow it gone
Or there is to know what God has done great attention is code execution


After executing su root, you can directly execute command to delete pm pm but can not seem to clear data command to delete data

Command: system / bin / pm uninstall xxx or stem / bin / pm uninstall-k xxx

pm uninstall: removes a package from the system Options:.
-K:. Keep the data and cache directories around after package removal

When tried to silently install pm install before but did not succeed this time is to remove the system applied this estimate also unable
pm uninstall command is useless, that is to uninstall third-party applications
Reply:
reference to the 10th floor wenyiqingnianiii reply:
mount-o remount, rw-t yaffs2 / dev/block/mtdblock3 / system \ n This command is what a situation direct write mount-o remount, rw / system / app can ah

This is a readable and writable way linked to online search command
In addition, because of what I just did not log, so I can not determine which step in the end there is a problem
This command execution log to see how this is not very understanding
Only know that the result is not deleted
Reply:
log log there ah, probably because there is no authority,
Reply:
reference to the 13th floor wenyiqingnianiii reply:
log log there ah, probably because there is no authority,,

Is the general log output? I did not have a closer look
Reply:
Directly in the dos command inside try not to know
Reply:
reference to the 14th floor tanwei4199 reply:
Quote: references to the 13th floor wenyiqingnianiii reply:

log log there ah, probably because there is no authority,,

Is the general log output? I did not have a closer look
This write helper classes. .
Reply:

public class ScriptUtil {
public static final String REMOVE_APP_LIMIT = "chmod 771 / data / app \ n";
public static final String ADD_APP_LIMIT = "chmod 551 / data / app \ n";

public static final String TAG = "ScriptUtil";
/ **
* Object
output interface* /
private ScriptHandler scriptHandler = null;
/ **
* Handler object
* /
private Handler handler = null;
/ **
* Command input
* /
private String strCommand = null;

/ **
* Constructor
*
* @ Param strCommand
* Command executed
* @ Param scriptHandler
* Output interface object
* /
public ScriptUtil (String strCommand, ScriptHandler scriptHandler) {
this.scriptHandler = scriptHandler;
this.strCommand = strCommand;
}

public ScriptUtil () {
/ / TODO Auto-generated constructor stub
}

/ **
* Key: Perform the command
* /
public void execCommand () {
handler = new Handler ();
ShellCommandThread thread = new ShellCommandThread ();
thread.start ();
}

/ **
* The thread io operation
* /
private class ShellCommandThread extends Thread {
/ **
* Process object
* /
private Process process = null;
/ **
* Buffer flow
correct information* /
private BufferedReader brCorrect = null;
/ **
* Error message buffer flow
* /
private BufferedReader brError = null;

private DataOutputStream dos = null;
/ **
* 0: Successful non-0: Failed
* /
int code = -1;

@ Override
public void run () {
try {
process = Runtime.getRuntime () exec ("su");.

dos = new DataOutputStream (process.getOutputStream ());

dos.writeBytes (strCommand + "");

brCorrect = new BufferedReader (new InputStreamReader (
process.getInputStream ()));
brError = new BufferedReader (new InputStreamReader (
process.getErrorStream ()));
String strTemp = new String ();

dos.flush ();

dos.close ();

StringBuffer strTempCorrect = new StringBuffer ();
StringBuffer strTempError = new StringBuffer ();
while ((strTemp = brCorrect.readLine ())! = null) {
strTempCorrect = strTempCorrect.append (strTemp + "\ n");
}
strTemp = new String ();
while ((strTemp = brError.readLine ())! = null) {
strTempError = strTempError.append (strTemp + "\ n");
}
code = process.waitFor ();
Log.d (TAG, "code:" + code);
Log.d (TAG, "strTempCorrect" + strTempCorrect.toString ());
Log.e (TAG, "strTempError" + strTempError.toString ());
handler.post (new ScriptRunnable (code,
strTempCorrect.toString (), strTempError.toString ()));

} Catch (IOException e) {
e.printStackTrace ();
} Catch (InterruptedException e) {
e.printStackTrace ();
} Finally {
try {
if (brCorrect! = null) {
brCorrect.close ();
brCorrect = null;
}
if (brError! = null) {
brError.close ();
brError = null;
}
if (dos! = null) {
dos.close ();
dos = null;
}
if (process! = null) {
process = null;
}

} Catch (IOException e) {
e.printStackTrace ();
}
}
}
}

private class ScriptRunnable implements Runnable {
private int resultCode;
private String strCorrect;
private String strError;

/ **
* Constructor
*
* @ Param resultCode
* Pending
* @ Param strCorrect
* Correct operation information output
* @ Param strError
* Information output
operation errors* /
public ScriptRunnable (int resultCode, String strCorrect, String strError) {
this.resultCode = resultCode;
this.strCorrect = strCorrect;
this.strError = strError;
}

@ Override
public void run () {
if ((strCorrect.equals ("")) && (! strError.equals (""))
&& (ResultCode! = 0)) {
scriptHandler.onFailed (strError);
} Else {
scriptHandler.onSuccess (strCorrect);
}
}
}

/ **
* Operating correctly and the error message interface
* /
public interface ScriptHandler {

/ **
*
* @ Param succesMsg
* Output information
proper operation* /
void onSuccess (String strCorrect);

/ **
*
* @ Param failedMsg
* Output information
operation errors* /
void onFailed (String strError);

/ / Void onTimeOut (String timeOutMsg);
}
}

Reply:
cited 15 floor wenyiqingnianiii reply:
dos inside the test under the direct command not to know

Big Brother is not to say it all the normal command-line operation
So I would like to ask that some instructions executable code in the code
achieve no results ah
Reply:
That is, the program is useless to get to the root privileges
Reply:
There is no way you do not have root privileges to delete system applications. Code execution inside, you can look at android google linux command execution, first obtain su then execute linux rm / system / app / (apk name on the line), as far as I know there are some systems will produce odex file of the same name, a deleted OK.
Reply:
cited 20 floor shen332401890 reply:
is no way you do not have root privileges to delete system applications. Code execution inside, you can look at android google linux command execution, first obtain su then execute linux rm / system / app / (apk name on the line), as far as I know there are some systems will produce odex file of the same name, a deleted OK.


cited 19th floor wenyiqingnianiii reply:
program that is useless to get to the root privileges


Rm command says is dropping so I think it is feasible root privileges permissions problem of how to get this program
Now I can guarantee is that the program is a push to system / app and there is a platform signature phone lines at the command line is how to get root privileges
root ofAlso looks like I downloaded some programs require root privileges to get the results say that the reasons for the failure does the phone?
Reply:
. Process process = Runtime.getRuntime () exec (new String [] {"/ system / xbin / su", "-c", cmdString});
BufferedReader br = new BufferedReader (new InputStreamReader (p.getInputStream ()));
String line = null;
while ((line = br.readLine ())! = null) {
Log.i (TAG, line);
}

proc.getErrorStream () command can be executed the wrong message
Reply:
cited 21 floor tanwei4199 reply:
Quote: 20th Floor shen332401890 cited reply:

There is no way you do not have root privileges to delete system applications. Code execution inside, you can look at android google linux command execution, first obtain su then execute linux rm / system / app / (apk name on the line), as far as I know there are some systems will produce odex file of the same name, a deleted OK.


cited 19th floor wenyiqingnianiii reply:
program that is useless to get to the root privileges


Rm command says is dropping so I think it is feasible root privileges permissions problem of how to get this program
Now I can guarantee is that the program is a push to system / app and there is a platform signature phone lines at the command line is how to get root privileges
root ofAlso looks like I downloaded some programs require root privileges to get the results say that the reasons for the failure does the phone?
See license management software, is not it refused to authorize the
Reply:
I do not know what you do, but if you can Try this line of thinking, hidden. APK hide the system, but this is deceiving.
Reply:
cited 23 floor wenyiqingnianiii reply:
Quote: references 21 F tanwei4199 reply:

Quote: 20th Floor shen332401890 cited reply:

There is no way you do not have root privileges to delete system applications. Code execution inside, you can look at android google linux command execution, first obtain su then execute linux rm / system / app / (apk name on the line), as far as I know there are some systems will produce odex file of the same name, a deleted OK.


cited 19th floor wenyiqingnianiii reply:
program that is useless to get to the root privileges


Rm command says is dropping so I think it is feasible root privileges permissions problem of how to get this program
Now I can guarantee is that the program is a push to system / app and there is a platform signature phone lines at the command line is how to get root privileges
root ofAlso looks like I downloaded some programs require root privileges to get the results say that the reasons for the failure does the phone?
See license management software, is not it refused to authorize the

The amount of my test machine that basically had no security software installed licensed software also has a code of wood under your hair with a display of 10061 not allowed to su appears to have failed to obtain permission
Reply:
reference to the 24th floor shen332401890 reply:
I do not know what you do, but if you can try this idea, hidden. APK hide the system, but this is deceiving.

How to hide to make it actually does not work you can try is now understood as a function
Reply:
cited 22 floor hotkarriver reply:.
Process process = Runtime.getRuntime () exec (new String [] {"/ system / xbin / su", "-c", cmdString});
BufferedReader br = new BufferedReader (new InputStreamReader (p.getInputStream ()));
String line = null;
while ((line = br.readLine ())! = null) {
Log.i (TAG, line);
}

proc.getErrorStream () command can be executed error message

Ah thanks to young artists made a tool code "/ system / xbin / su", "-c"-c this is what I try to be the first
Reply:
reference to the 27th floor tanwei4199 reply:
Quote: references 22 F hotkarriver reply:

. Process process = Runtime.getRuntime () exec (new String [] {"/ system / xbin / su", "-c", cmdString});
BufferedReader br = new BufferedReader (new InputStreamReader (p.getInputStream ()));
String line = null;
while ((line = br.readLine ())! = null) {
Log.i (TAG, line);
}

proc.getErrorStream () command can be executed error message

Ah thanks to young artists made a tool code "/ system / xbin / su", "-c"-c this is what I try to be the first

Behind-c connect command instructions
Reply:
cited 28 floor hotkarriver reply:
Quote: references to the 27th floor tanwei4199 reply:

Quote: references 22 F hotkarriver reply:

. Process process = Runtime.getRuntime () exec (new String [] {"/ system / xbin / su", "-c", cmdString});
BufferedReader br = new BufferedReader (new InputStreamReader (p.getInputStream ()));
String line = null;
while ((line = br.readLine ())! = null) {
Log.i (TAG, line);
}

proc.getErrorStream () command can be executed error message

Ah thanks to young artists made a tool code "/ system / xbin / su", "-c"-c this is what I try to be the first

-C indicates the connection behind the command

Ah consistent with the information obtained was not allowed to su seems to be able to change the mobile phone test
Reply:
http://blog.csdn.net/commonslok/article/details/8148810
Reply:
How root
Reply:
reference to the 30th floor shen332401890 reply:
http://blog.csdn.net/commonslok/article/details/8148810

The usefulness of it what system application permissions are very very simple reboot
Reply:
cited 32 floor tanwei4199 reply:
Quote: references to the 30th floor shen332401890 reply:

http://blog.csdn.net/commonslok/article/details/8148810

The usefulness of it what system application permissions are very very simple reboot


This is just to hide the application
Reply:
cited 33 floor shen332401890 reply:
Quote: references 32 floor tanwei4199 reply:

Quote: references to the 30th floor shen332401890 reply:

http://blog.csdn.net/commonslok/article/details/8148810

The usefulness of it what system application permissions are very very simple reboot


This is just to hide the application

Ah understand under a root tool looked down to find the phone has failed su root but it is really tangled execution

No comments:

Post a Comment