Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
firewater S-OFF comes with NO WARRANTY (express or implied)
and NO GUARANTEE OF FITNESS for any particular task.
We have made every effort we can to make this a safe process for users
however the authors disclaim any liability for damage to your phone
or other materials or devices used during this process.
The entire risk of running firewater S-OFF lies with you, the user.
By using this software you acknowledge and accept that the authors
are not liable for any loss, material or otherwise howsoever caused.
firewater S-OFF may not be rehosted, repackaged, one-clicked, etc.
support is available @ #firewater on the freenode and andirc networks
support is much faster there vs. posting helpme threads on xda etc
Do not operate a motor vehicle after interacting with firewater
Do not inhale firewater or allow firewater to come in contact with eyes
firewater is best served at extremely cold temperatures
firewater has been known to cause temporary lapses in judgement
DO NOT TAUNT FIREWATER, YOU'VE BEEN WARNED
Running that command should just get you back to a prompt. Did you check to see if the permissions changed?
Code:
ls -l /data/local/tmp/firewater
If it's a file, if it is a directory, substitute ls -ld for ls -l. What is firewater in this instance, an executable?
Firewater is a executable file that contain command to security off my HTC One M8. I have to s-off my HTC M8 before i change to another custom firmware. I saw the video when they enter that command, should change to that folder or chmod 755 /data/local/tmp/firewater after that they type /data/local/tmp/firewater again and enter firewater question, yes or no. so simple like that. when answered Yes than the security will off
Can we just take a step back. What are you trying to achieve with the chmod command?
Next up. Are you aware what
Quote:
su
does? It takes you out of the standard login and takes you to root (superuser) privileges. Once you have entered your comand you should leave this level with a CTRL-D before continuing
@yancek had good advice above. Post the output of:
Code:
ls -l /data/local/tmp/firewater
A quick google of your error code (" error: only position independent executables (PIE) are supported.") suggests you may need to edit the variables in Application.mk and then re-compile.
@yancek had good advice above. Post the output of:
Code:
ls -l /data/local/tmp/firewater
A quick google of your error code (" error: only position independent executables (PIE) are supported.") suggests you may need to edit the variables in Application.mk and then re-compile.
C:\Users\Lukman\Desktop\platform-tools>adb shell
shell@htc_m8:/ $ su
root@htc_m8:/ # chmod 755 /data/local/tmp/firewater
root@htc_m8:/ # /data/local/tmp/firewater
error: only position independent executables (PIE) are supported.
1|root@htc_m8:/ #
i don't think you will ever be able to start an executable from an android device like this, through the adb shell.
android is actually very secure on that level, with SELinux and whatnot.
in any case, there's a clear error message. it has nothing to do with permissions.
did you do a web search for the error message?
This output shows that "chmod 755" was successful. (7 = rwx, 5 = rx)
I'd suggest that you mark this thread "solved" and create a new discussion for your error: "only position independent executables (PIE) are supported." Make clear in the title that your question relates to Android development using adb and firewater. This will increase the odds that a user with the relevant expertise reads your thread.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.