2013年9月22日星期日

android adb shell into the terminal , this terminal can run the executable program

RT,
Just like typical linux , like have a program in the current directory ,. / temp (temp for the program ) , so that to perform this temp program . Now I have a program into sdcard directory, run it, prompts permission denied, ---- rwxr-x system sdcard_rw 84777 2011-04-12 09:57 pppoe pppoe this is the program authority, I chmod 777 when it will not change its permissions . This is why ah ? ?
------ Solution ---------------------------------------- ----
PPPOE program requires phone ROOT privileges , brush.
------ Solution ---------------------------------------- ----
+1


------ Solution ------------------------------------ --------
America has chmod permissions
whether the person you are free to modify system files how such a system might be unsafe release
------ Solution --------------- -----------------------------
If it is 2.2 system, you can push to / mnt / asec directory, then chmod 777 can be used to modify , sdcard can not modify the permissions , linux compiled on the need to use the arm of the cross compiler tool to run , and if it is not -static compiler relies ld-linux library , you need to copy over the installation directory from the arm , I have used cross compiler , ndk tried both methods can compile pure C program on android shell or HyperTerminal to run
------ Solution ------------- -------------------------------
Note that / mnt / asec directory after phone reboot once inside things on the emptied
------ Solution ----------------------------------- ---------
not already have two pppoe software yet
these are Chinese people do
a pppoew and wifipppoe rp-pppoe
are the
------ eference ------------------------------ ---------
not , this is what I used pppoe rp-pppoe compiled , I copy it directly to the android to go, and then directly run in the shell , this is not to the application layer . ~
------ eference ---------------------------------------
ydoraemon answer provided is a positive solution

没有评论:

发表评论