Hi everyone!
First, I want to thanks for the great help you give me with all the other thread I found on XDA!
But for now I have a think that's giving me headache.
I am searching how can I give root access to any application from google play or from anywhere.
The reason is that I want to use an application that create a web server and can access cache(which is only possible with root access).
Because I need an other device to connect to the server and use this files.
The application is "Web Server ultimate" but I does not have root access.
Is it possible to give this app root access? if Yes how? and if not do you have any other idea?
Thanks
Note : The application that need the file is created with Corona SDK and this cannot be change.
Ok well I am a noob . . .
I post my answer(if it's help...)
I just think a little and realize that I just need right on the files and folder...
So I just use chmod like anybody would do...
Sorry for the useless thread... >_<
No no, it's not a useless thread. (believe me, I've seen much more incredible threads)
Are you able to share with me the answer?
I do not have experience with chmod, and in theory, I want root access something like:
directly selecting a file from those restricted directories and hitting share to Dropbox (or any non root enabled app).
In normal case, it'll fail with an error. (Dropbox at least).
Oh yes no trouble I'll explain :
-first to use "chmod" you have to go to the "terminal emulator" application (I use the one from cyanogen but you can find some other in the store.)
-then write "su" to give root access to your terminal
-then go to the directories you want to change right (use linux shell command to move (eg. “cd”)) (if you need help : search "command linux shell" for more info )(sorry I can't give you url because I am just a new user)
-after that you will have to change right for every file you need using chmod command. For example : you can use "chmod 777 [File]" to give the right of writing, reading and execute the file to everything in your phone but beware of the right you give or remove because some application or even the system can have trouble (more info in wikipedia chmod )
-don't forget to do the same think for every folder that go to your file(if they don't have the right)
and after that every application that does not have root access can access the file (with the right you give).
For example : a file manager that does not have root access have the right to use the File I needed
And for more question don't hesitate
PS : I am not responsible if you do somethings bad with chmod so be careful with chmod command and enjoy it ^^ :laugh:
Related
Ive been googling on the intranet machine for awhile now and cant find out how to get the binary for this or just zipalign my apks another way. I am using ROM toolbox pro.
xxbgjhn159xx said:
Ive been googling on the intranet machine for awhile now and cant find out how to get the binary for this or just zipalign my apks another way. I am using ROM toolbox pro.
Click to expand...
Click to collapse
Download it and put it in /system/xbin. Then chmod it to 755. IF you need steps on how to do this, let me know.
http://dl.dropbox.com/u/34706306/zipalign
Yea I do. Im not sure what chmod it to 755 means. I know how to dl it n put it in the /system/xbin. Anywhere in there Im guessing.
Will this run the whole thing? Or is this just the binary for it? Would I still use ROM Toolbox run zipalign? THANKS a lot Ive been trying to find a fix for awhile.
Quick explanation:
Open a terminal emulator, navigate to /system/xbin with the "cd" command, and type "chmod 755 whateverthefileis". That'll change the permissions. If you want an explanation of what you're actually doing, you can read below. It's not necessary if you're not interested though.
If you're curious:
I guess I'll attempt briefly explaining the chmod command and Linux (Unix, Android, etc) permission notation. What do you want the file's permissions to be? In Linux, a file has an owner (who is the most intimately tied to the file), a group (which allows you to assign fewer privileges than the owner, but more control than default) and other (which means anyone not specified by the previous 2 conditions). For each of these groups, you can assign read, write, and execute permissions. These are written as rwx triplets. The notation "rwx" means full read, write, and execute permissions to whatever category of user that triplet is referring to. If you want to deny one of those permissions, replace the letter by the "-" placeholder. So "r-x" would mean that category of users wouldn't have write permissions. Files have these permissions listed in rwx triplets for the owner first, then the group, then others and are lead by what will usually be an initial "-" placeholder. So a file with permissions listed as "-rwxrw-r--" has an initial "-" placeholder like usual, followed by full rwx permissions for the owner, read and write permissions for the group, and read permissions for everyone else. You can view the permissions of any file by opening a terminal emulator, navigating to the directory where it is located and typing "ls -l" which will list details about each file in the directory, including permissions.
The chmod command in the form that was mentioned above, condenses the triplet describing the permissions for each group into a single number. It does this by treating permissible operations in each triplet as a 1, and operations that are denied as a 0. So if the owner's permissions are described as "rw-", this would translate into "110". This number is then read as binary and converted to decimal. 110 in binary equals 6 in decimal. So what "chmod 755 whateverfile" means is change the permissions of whateverfile to allow the owner full rwx permissions, allow members of the group the file belongs to read and execute permissions. And allow everyone else read and execute permissions as well. So "755" means "111|101|101" if you expand those back to the binary. And if we replace each 1 with the number it is representing, it will look like "rwxr-xr-x".
imchairmanm said:
Quick explanation:
Open a terminal emulator, navigate to /system/xbin with the "cd" command, and type "chmod 755 whateverthefileis". That'll change the permissions. If you want an explanation of what you're actually doing, you can read below. It's not necessary if you're not interested though.
Click to expand...
Click to collapse
I probably should check the threads I post assistance to a little more often. Thanks for responding.
I cant put the file into my /system/xbin. It says error permission denied or something like that. I cant save it straight to there either.
Type "su" and then hit Enter. When the box comes up for allowing privileges, allow them. Now try again.
Sent from my DROID X2 using Tapatalk
Hey everyone, I got this to work using ROM Toolbox Pro's root browser. Thanks for all the help!!!
how long did the script take? i'm already on about 30 minutes and am just curious if it'll be done before i leave the office @ 5.
works
Moon Shadow - NM said:
Download it and put it in /system/xbin. Then chmod it to 755. IF you need steps on how to do this, let me know.
http://dl.dropbox.com/u/34706306/zipalign
Click to expand...
Click to collapse
Works! thanks..
zipalign missing
Just logging in & want to say thanks for the help.
Nice tip for the starters as I am. Thanks
Moon Shadow - NM said:
Download it and put it in /system/xbin. Then chmod it to 755. IF you need steps on how to do this, let me know.
http://dl.dropbox.com/u/34706306/zipalign
Click to expand...
Click to collapse
May i know where you got that file from?
nuthng kinda happens after doin chmod...normal?
Sent from my Micromax Infinity P275 using xda premiumf
Dear All,
I have been accidentally move the /system/bin/sh file to my SD card,
now, all my app which need root was not function..
What should I do now...?
Please help..... T_T
Move it back.
thankz for reply..
But, any suggestion to move back?
cause now I can't move it back via my phone file manager as the sh file was a
read only file..
Please advise any suggestion that how i can move back
really need advise...
peter tham said:
thankz for reply..
But, any suggestion to move back?
cause now I can't move it back via my phone file manager as the sh file was a
read only file..
Please advise any suggestion that how i can move back
really need advise...
Click to expand...
Click to collapse
You can probably use adb or Terminal Emulator (Free on market) directly on your phone.
Regards
SprigganMaster said:
You can probably use adb or Terminal Emulator (Free on market) directly on your phone.
Regards
Click to expand...
Click to collapse
Dear SprigganMaster,if I use terminal emulator,what was the initial command?
Cause the 'sh' file I move from system,it seem like a script ,and when I open the scree of emulator,I can't type any things...
For your info,I move the 'sh' file from /system /bin/ folder to my SD card /folder.
by using apk root explore,as a result,without the 'sh' script file in /system/bin folder,when I can't access to root explore anymore-force close.
Then I can't move back the 'sh' file to the system/bin folder.
All those root apk does not work anymore...
Now,I am trying my best to get a way to move back the 'sh' file (which is read only file) to my system folder...
Can u guide me about it? Using terminal emulator or any alternative way to move back the file into system?
Waiting your prompt reply and really appreciate it.
Thankz....^^
Hello peter tham,
Please note : my phone is not rooted. I can't try these solutions and I'm quite new to android. Maybe someone with more experience could help you.
I'm not sure if Terminal Emulator use the sh file too but we can try...
To move file, the command is mv.
To copy a file, the command is cp.
Adapt this command with the correct folder where you put the sh file :
Code:
cp /FOLDER/sh /system/bin/
You will need to be root to copy a file to /system folder.
Usually, to gain root privileges, you use the command su.
If Terminal Emulator does not work, you can try with adb.
1- Download sh file to your computer.
2- open a shell (on windows : cmd, on linux whatever you're using as shell)
3- plug your phone in Charge Only mode with USB debuging On
4- Push the file with a command like this one :
Code:
adb push foo.txt /sdcard/foo.txt
adb push <local> <remote>
You can find more info on adb here :
http://wiki.cyanogenmod.com/wiki/ADB
and here :
http://developer.android.com/guide/developing/tools/adb.html
Good Luck
my NT is not working, if you can please click here to help me
anyway, before that - when it was working, i tried to root it by using this method:
http://forum.xda-developers.com/showthread.php?t=1354487
at debloat menu, i chose "extreme" because i want to delete all of B&N content. i just want a normal android tablet, i know i can still read books by using the NOOK app for android.
so i chose extreme mode. and the command prompt window closed right after that.
so my NT was rooted, but not successfully, it was even worse than it was before i rooted.
i open the batch file (NookandZergy.bat) to see what the command lines are to find the reason why it didn't work. and i saw this:
adb shell rm -r /system/app/Accessories.apk
Click to expand...
Click to collapse
i opened command prompt, and typed this. and i got something like "failed because the file is not exist." -> i knew the batch script was wrong in some ways. i was going to unroot and root again with the option "full debloat" (not extreme), but before i do that, i was trying to remove netflix, i wanted to type this to the command line to see what will happen.
adb shell rm -r /system/app/netflix.apk
Click to expand...
Click to collapse
but i accidentally type adb shell rm -r /system/app/, and then it removed everything in /system/app/
i got the error in the nook tablet's screen, i don't remember what the error is, but when i pressed "force close", it kept showing me that error, i tried about 20 times but still not work.
i turned off my NT, and when i boot it, it stuck at "read forever",
that's why i created this thread.
my question is: how do i do "extreme debloat"? i want to remove everything from B&N. can you please give me the correct "command lines" to do this? and how to use that "command lines"?
prepare a sdcard to boot into ClockworkMod (CWM) which is a custom recovery (replaces stock recovery). And from there flash this ROM, for extreme-debloat is easy you can modify the script just to debloat or i can make it for you. First focus in restore your system.
As i said in my last post in your other thread read my FAQ and you will find your what you need there, if you have any question me or any other user will try to help.
PS: here is post i made for a user about how to re-bloat but the thing is that i post the list of all the B&N apps for reference to you so it might be helpfull.
~ Veronica
i have a little knowledge about batch file, so i think i can edit the script
(just edit the wrong file name -> make it become correct file name)
but i don't know what files are inside the folder /system/app/
for example: the file Accessories.apk is not exist, so how should i edit the script
nooktablet said:
i have a little knowledge about batch file, so i think i can edit the script
(just edit the wrong file name -> make it become correct file name)
but i don't know what files are inside the folder /system/app/
for example: the file Accessories.apk is not exist, so how should i edit the script
Click to expand...
Click to collapse
Well you got the error probably 'cause when you ran the script it removed that file so when you typed the same command again it won't remove it because is already gone.
In the link i provided is the list of all the B&N applications that are removed in the extreme debloat option. So you basically have keep that part of the code plus the intro to get in adb shell.
In that post you will also find a link to the complete system/app folder just in case you by "playing around" with adb remove any important system app, so you can push it back.
~ Veronica
lavero.burgos said:
Well you got the error probably 'cause when you ran the script it removed that file so when you typed the same command again it won't remove it because is already gone.
In the link i provided is the list of all the B&N applications that are removed in the extreme debloat option. So you basically have keep that part of the code plus the intro to get in adb shell.
In that post you will also find a link to the complete system/app folder just in case you by "playing around" with adb remove any important system app, so you can push it back.
Click to expand...
Click to collapse
no, when i chose extreme debloat, it closed the command prompt window, before it closed, i saw something "failed...". when i typed the command again it showed "failed...", i'm sure it's exactly what it said before,
and i know after debloat, it should go back and do other command like "thank you for using" (i read the batch file). i also saw B&N apps were still on my NT, debloat didn't work because of the missing file -> the script stopped.
btw, you said i can use adb to push the apps back. so that means i can also use adb to remove apps? can i not debloat when rooting, and after root, i use adb to remove apps later? will adb work at that time?
and can i use adb to explore what files are in the /system/app/ folder? or any other program?
nooktablet said:
no, when i chose extreme debloat, it closed the command prompt window, before it closed, i saw something "failed...". when i typed the command again it showed "failed...", i'm sure it's exactly what it said before,
and i know after debloat, it should go back and do other command like "thank you for using" (i read the batch file). i also saw B&N apps were still on my NT, debloat didn't work because of the missing file -> the script stopped.
btw, you said i can use adb to push the apps back. so that means i can also use adb to remove apps? can i not debloat when rooting, and after root, i use adb to remove apps later? will adb work at that time?
and can i use adb to explore what files are in the /system/app/ folder? or any other program?
Click to expand...
Click to collapse
Yes adb works at anytime even in dockworkers (CWM) .
To know how to use adb go to my FAQ (link below in my signature) and look in the how-to's made by me section for the how to use and install adb.
"adb shell rm -r" is one of the adb commands and is used for remove files.
adb shell = is to get superuser permissions (root/su)to run advanced commands.
rm = remove
-r = recursive
~ Veronica
Sent from my Nook Tablet using xda premium
my question is based on this thread
1th about modifying bin files.
if i want v10 versions i should modify the bin files like artit's post in this thread .the 6th step.
but if i want v20 versions i should modify the bin files like this thread
am i right?
2th is about uploading files to the phone.
artit has said "all files should upload to your phone" in this thread .i just wonder how to upload and when to upload?
well i think i should connect my phone to pc by cable and run the commands
cd C:\root
adb push su /data/local/tmp/
adb push busybox /data/local/tmp/
adb push Superuser.apk /data/local/tmp/
adb push rooting.sh /data/local/tmp/
adb shell chmod 777 /data/local/tmp/busybox
adb shell chmod 777 /data/local/tmp/rooting.sh
Click to expand...
Click to collapse
before flashing .then after flashing i should connect my phone to pc and run another commands
adb shell rm /data/local/tmp/rooting.sh
adb shell touch /data/local/tmp/rooting.sh
adb shell chmod 755 /data/local/tmp/rooting.sh
Click to expand...
Click to collapse
.
am i right ? if i am right .i can't understand can i upload files to the specific location on the phone by adb whitout rooting ? and will the files exist in the phone after flashing?(won't they be coverd?)
3th i can't find infomation in the 12th step of this thread about "CWM Recovery Installation on Jelly Bean" by the link.
can someone give me a guide of that?
4th the last question .about the 13th step of this thread about "BUSYBOX Re-Installation".
how can i do it like this ?
i am very very thankful to your answer!!!
1th about modifying bin files.
if i want v10 versions i should modify the bin files like artit's post in this thread .the 6th step.
but if i want v20 versions i should modify the bin files like this thread
am i right?
It's depend on what software version you are on.
For my V10D, I edit 5th .bin file.
For my V10E, I edit 6th .bin file.
You should search in hex edit for the file you should edit.
2th is about uploading files to the phone.
artit has said "all files should upload to your phone" in this thread .i just wonder how to upload and when to upload?
well i think i should connect my phone to pc by cable and run the commands before flashing .then after flashing i should connect my phone to pc and run another commands .
am i right ? if i am right .i can't understand can i upload files to the specific location on the phone by adb whitout rooting ? and will the files exist in the phone after flashing?(won't they be coverd?)
You can upload file (and more) with adb tool. And you can upload files to your phone without rooting if you have writing permission in that directory. Most rooting methods use /data/local/tmp to store rooting stuff because that directory is writable to all users. Please follow cmahendra guide, it has script that do most upload tasks for you.
3th i can't find infomation in the 12th step of this thread about "CWM Recovery Installation on Jelly Bean" by the link.
can someone give me a guide of that?
Um.. In that thread you just download and install .apk file. Make sure you enable "allow installation of non-market apps" in System Setting > security menu before install (to install just click that file in file explorer).
4th the last question .about the 13th step of this thread about "BUSYBOX Re-Installation".
how can i do it like this ?
The step is in http://forum.xda-developers.com/showpost.php?p=38948923&postcount=141
Open Play store and search for "busybox" and choose one that you like.
i am very very thankful to your answer!!!
http://forum.xda-developers.com/showthread.php?t=2173465
Also check 2th (Oops 2nd) post.
thanks very very much
artit said:
1th about modifying bin files.
if i want v10 versions i should modify the bin files like artit's post in this thread .the 6th step.
but if i want v20 versions i should modify the bin files like this thread
am i right?
It's depend on what software version you are on.
For my V10D, I edit 5th .bin file.
For my V10E, I edit 6th .bin file.
You should search in hex edit for the file you should edit.
2th is about uploading files to the phone.
artit has said "all files should upload to your phone" in this thread .i just wonder how to upload and when to upload?
well i think i should connect my phone to pc by cable and run the commands before flashing .then after flashing i should connect my phone to pc and run another commands .
am i right ? if i am right .i can't understand can i upload files to the specific location on the phone by adb whitout rooting ? and will the files exist in the phone after flashing?(won't they be coverd?)
You can upload file (and more) with adb tool. And you can upload files to your phone without rooting if you have writing permission in that directory. Most rooting methods use /data/local/tmp to store rooting stuff because that directory is writable to all users. Please follow cmahendra guide, it has script that do most upload tasks for you.
3th i can't find infomation in the 12th step of this thread about "CWM Recovery Installation on Jelly Bean" by the link.
can someone give me a guide of that?
Um.. In that thread you just download and install .apk file. Make sure you enable "allow installation of non-market apps" in System Setting > security menu before install (to install just click that file in file explorer).
4th the last question .about the 13th step of this thread about "BUSYBOX Re-Installation".
how can i do it like this ?
The step is in http://forum.xda-developers.com/showpost.php?p=38948923&postcount=141
Open Play store and search for "busybox" and choose one that you like.
i am very very thankful to your answer!!!
Click to expand...
Click to collapse
thank you very much!
and i have make the questions from 2th to 4th clear by your answer.
but about the 1th one . you have disunderstood me . i am not mean which file to modify but the strings by which i find the very bin file through searching in hex editor. is the strings different from every versions ?
thanks for your answer
cmahendra said:
http://forum.xda-developers.com/showthread.php?t=2173465
Also check 2th (Oops 2nd) post.
Click to expand...
Click to collapse
thank you very much
i have read your guide many times . and now i have made it clear .just a small detail question which i reply to artit.
and i want to modify bin files by myself.
Hi all sorry this may be a really simple question but I'm struggling with it as I'm new to this and shell
I have an android device (its a custom tablet tablet) that's routed via kingoroot with SU access via adb so im all sorted there,
I I need to overwrite a text file in a folder but it's in use, when I try to copy so cp I get "text file busy" message, I have tried finding the process that's using is and killing that via kill (process id) but it just restarts again it's back under a new id.
Basically I need to overwrite a text file with another with the same name while keeping all the permissions for the old file intact.
This should be simple but it's killing me,
sorry really new at this.