Display can 't initialize iptables table' filter ': you must be root,
My AndroidManifest. XML configuration will be a problem, the exec (" ls/data ") this command is normal, is not the iptables, strives for the bosses,
CodePudding user response:
Is the insufficient permissions,Need to phone ROOT, obtain ROOT
Process Process=Runtime. GetRuntime (). The exec (" su ");
DataOutputStream OS=null;
OS=new DataOutputStream (process. GetOutputStream ());
OS. Write (" iptables - nL - line - the number "getBytes ());
OS. WriteBytes (" \ n ");
OS. The flush ();