I am using SSHDroid to connect to the android from PC via SSH.when I am starting the SSHDroid it showing root : off .I am not getting why root is off and also if it is off how to ON that one.
Then I have connected to Android via SSH from my computer.Now when I have connected to the terminal of android there I am not the root there it showing $ symbol that means I am a normal user ,not the root(#). so my doubt is how to become root.
Is there any way to become root in that terminal or noway we can be root. I need this because I can't able to execute many commands as a normal user.sudo and su is also not working and showing permission denied.
Can any one kindly tell what to do next .This is very important for my project.
Thnaks
pradiptart said:
I am using SSHDroid to connect to the android from PC via SSH.when I am starting the SSHDroid it showing root : off .I am not getting why root is off and also if it is off how to ON that one.
Then I have connected to Android via SSH from my computer.Now when I have connected to the terminal of android there I am not the root there it showing $ symbol that means I am a normal user ,not the root(#). so my doubt is how to become root.
Is there any way to become root in that terminal or noway we can be root. I need this because I can't able to execute many commands as a normal user.sudo and su is also not working and showing permission denied.
Can any one kindly tell what to do next .This is very important for my project.
Thnaks
Click to expand...
Click to collapse
I don't think you can become root without knowing the password and with most if not all linux OS, to change the password you have to boot in single session to change that without knowing the password from the start.
You could try login, but still without the password you won't become root.
I know with the iPhone ( dark days of my life lol ) the su password was alpine, try googling around for your devices default root password.
Once you find it, you should be able to change it using, su or sudo passwd and it will ask for current then new password.
If someone else knows the default password or if you even need it, I would gladly sit back and read about it as this is my next project as well.
default password .
fallen00sniper said:
I don't think you can become root without knowing the password and with most if not all linux OS, to change the password you have to boot in single session to change that without knowing the password from the start.
You could try login, but still without the password you won't become root.
I know with the iPhone ( dark days of my life lol ) the su password was alpine, try googling around for your devices default root password.
Once you find it, you should be able to change it using, su or sudo passwd and it will ask for current then new password.
If someone else knows the default password or if you even need it, I would gladly sit back and read about it as this is my next project as well.
Click to expand...
Click to collapse
As i know the default password is admin.but I do not know the password is for root or general user, as when i am giving the password to android in ssh connection I am connection to the general user terminal of the android.
How to be root in this case.Is there any way if yes kindly tell ...
Thanks..
pradiptart said:
As i know the default password is admin.but I do not know it is for what means root or only for general user as when i am giving the password to android in ssh connection I am connection to the general user terminal of the android.
How to be root in this case.Is there any way if yes kindly tell ...
Thanks..
Click to expand...
Click to collapse
If you don't know what root is, then you had better not mess with it.
Before I answer your question, I want to explain a little about root in the simplest terms.
Running as root you can seriously destroy an OS if you do not know what you are doing, so be careful not to delete something your not absolutely sure about.
ok, if you want to run as root, two ways you can do this.
#1 connect to the ssh server on your phone as the normal user, once connected type -> login press return / enter -> wait for prompt -> type root press return / enter -> type admin press return / enter.
that should make you root.
#2 connect as root and wait for password prompt and type admin and press return / enter.
If either of these methods fail to give you root access, then the android OS has deviated from linux more than I expect or you have the wrong password.
To become root, you phone must be rooted. SSHDroid by itself will not give you root access if the phone isn't rooted. I guess "root : off" means your phone isn't rooted in the first place, hence SSHDroid not able to escalate you to root.
I didn't take into account to ask if the device was rooted, some light reading from the android market may help you understand root more.
Open Google play and search for all about root and select the one listed under apps, install, read and understand what root is.
It may only scratch the surface, but It's a start.
Sent from my ADR6425LVW using xda app-developers app
fallen00sniper said:
I didn't take into account to ask if the device was rooted, some light reading from the android market may help you understand root more.
Open Google play and search for all about root and select the one listed under apps, install, read and understand what root is.
It may only scratch the surface, but It's a start.
Sent from my ADR6425LVW using xda app-developers app
Click to expand...
Click to collapse
Thanks for you reply again..
Now Let me know what are the commands available for a non root user.
As it is not possible for me to find out a generic rooting solution for all the android as it is different and depends upon the android and phone.
But in my project I may not know which type of android to which i am connecting only ssh command .so I am thinking to do the task what I need in my project after login by ssh using the normal user ,so can u tell me what are the commands that available for a non-root user and a root user.
Thanks
All Linux commands should be available, Google Linux command line for a complete list, basically it is the same as sitting in front of a computer running linux, but with command line only.
As for a generic root, if you have a resound, I suggest following the directions I did to unlock and root with amon ra, my post gives a brief description of the steps I had taken with links.
http://forum.xda-developers.com/showthread.php?t=1790625
Sent from my ADR6425LVW using xda app-developers app
fallen00sniper said:
I don't think you can become root without knowing the password and with most if not all linux OS, to change the password you have to boot in single session to change that without knowing the password from the start.
You could try login, but still without the password you won't become root.
I know with the iPhone ( dark days of my life lol ) the su password was alpine, try googling around for your devices default root password.
Once you find it, you should be able to change it using, su or sudo passwd and it will ask for current then new password.
If someone else knows the default password or if you even need it, I would gladly sit back and read about it as this is my next project as well.
Click to expand...
Click to collapse
I know my password but I cant get command for root i tried putting "su" but dont work
(my phone isnt rooted)
Techlord210 said:
I know my password but I cant get command for root i tried putting "su" but dont work
(my phone isnt rooted)
Click to expand...
Click to collapse
Then that’s why, have to be rooted to gain root.
fallen00sniper said:
Then that’s why, have to be rooted to gain root.
Click to expand...
Click to collapse
well i cant root my phone because i cant get its frimware package
Techlord210 said:
well i cant root my phone because i cant get its frimware package
Click to expand...
Click to collapse
You’ll have to solicit a dev to help you get a dump and then they can help gaining root possibly.
Su doesn’t work because it isn’t present, no root commands will work at all, you may be able to have a tethered root.
Related
I'm sure the answer to this question is somewhere there, but I cannot find it. There is plenty of information on how to root your phone or tablet, but not on how the root works on Android.
When I work on my Linux box I usually use a "normal", limited user. Only when I need to install something, I switch to superuser, or root, using "su" or "sudo".What happens on a rooted Android? Do all apps run with root privileges all the time? Or rather some sort of "su" command is unlocked, and an app can access it when required. Can I give and revoke superuser powers to an app?
It is always safer to run all programs or apps with limited privileges, so when they misbehave, the risk to system integrity is minimal. If everything runs in root mode, it might just spectacularly crash one day.
In this context, how does adaway work? Does it start with the system, sitting in the background and using its root privileges to intercept and filter incoming HTTP packages? If I understand this correctly, it should then work with any browser?
Sorry for asking several questions in one topic, but I'd appreciate if someone could briefly explain the whole thing.
There is a superuser app, which seems to be doing the same job as gksu does on a linux desktop. Apps can request root, you can allow/deny. If you use the shell, su works as normal (just no password) - but connectbot needs to be given root privileges in order for this to succeed.
Have a strange one I don't know how to fix. Purchased a Pyle PTBL102BCD tablet for the Mrs. to use basically as an ebook reader (according to About, running 4.2.2). When it came in I started sideloading apps to prepare it for her (I do not have a Google account), and searched on the Net about rooting the device. Found a one-click that worked with a different Pyle tablet, so I gave it a shot.
Now I have root access _only_ through the adb shell. None of the apps (including Superuser.apk itself as tested by updating /system/bin/su) can get root access, yet I have no problem running root through an adb shell - remounted file systems, even performed an su which is the only instance Superuser.apk's log shows. Root access in the shell remains between reboots, so it's not a temporary root.
If the adb shell has root, I _should_ be able to use it to grant access to everything else, and I've followed a few different "manual" root instructions (having different permission settings for su and busybox), with no joy. So long as I connect with a USB cable and type on the Windows machine, I'm god. On the tablet itself...not so much.
I hope that someone with a more intimate knowledge of Android internals can point me in the right direction for achieving root completely. Currently have Titanium Backup and ConnectBot (long java errors when I attempt to su there) installed to test root, Superuser v3.1.3 and su v3.1.1. Permissions on su are -rwsr-sr-x. And the human is confused.
Did you get anywhere with this? I have the same problem. What one-click did you use?
mfurlend said:
Did you get anywhere with this? I have the same problem. What one-click did you use?
Click to expand...
Click to collapse
Side note; REALLY hate the new forum software. With all the untrusted Google and Amazon javascript (which my company firewalls), it's a pain for me to even log in let alone post replies. (And I wonder if I'm the only person in the world sick to death of all the unnecessary ajax garbage...)
Anywho, used Kingo, rooted and unrooted a few times, until I finally acquired complete root on the thing. Once I did, I could run Samba, and once that worked, I could more easily transfer files and apks to the tablet.
Still don't understand why it was left in such a...weird...state - having root by default in adb is just a scary thing!
thanks for the information. I tried doing that but I encountered various problems. Eventually, after trying to do it manually, I totally screwed up the device. Now it won't boot.. I still have access to adb. I need to flash this thing. Do you know what the stock ROM is?
mfurlend said:
Do you know what the stock ROM is?
Click to expand...
Click to collapse
No...I can give you the Kernel version info (3.0.36+ [email protected] #48) and build number (rk3168_k11_4.2.2_v20131230), but other than that no clue.
I'm new to Android on PC, so the question. (I'm somewhat versed in Linux, though.)
Why the need to root Remix OS for PC, if we can become root by pushing Alt+F1?
When I open the Terminal, I get [email protected] /$, while Alt+F1 gives me [email protected]_86_64:/#
I couldn't become root by writing su in the Terminal, but would be root in Alt+F1. Additionally, what are the commands in Android/Remix OS?
What advantages you get by rooting the hard disk installation?
There are a lot of different apps out there that require root permissions to function. While many of them would not really be applicable to RemixOS, or at least could be worked around using the root console, others still have their uses. For one, I'd rather trust Titanium Backup to backup my app data rather than manually copying things with the root console.
Granted, the root console is a very useful feature and does allow for a lot of tweaking, but without app access it's not the full story.
Actually, I want to, that what is the benefit if I am using root console
atiqursumon said:
Actually, I want to, that what is the benefit if I am using root console
Click to expand...
Click to collapse
Being able to take ota's without returning to the stock system.img. But you can tweak more if you have a rooted system.img.
Remix OS is a "desktop" user experience, and anywhere in the desktop's i want my Administrator rights .
The idea to root our phones/tablets came from the experience from the desktop era.
Personally, i think Root should be at least a choice officially for RemixOS
PlutoDelic said:
Remix OS is a "desktop" user experience, and anywhere in the desktop's i want my Administrator rights .
Personally, i think Root should be at least a choice officially for RemixOS
Click to expand...
Click to collapse
I would also like to have Administrator rights. If I root the system.img, rename it from root.img to system.img, would I be able to become root in the Terminal? If so, what would be the command? Is it su? Can I make a user, or rename the user from u0_a77 and can I change localhost to some other name? What would be my root password?
Right now, I can get to root terminal by Alt+F1, but I feel as the root is at Jide, and they can do whatever without my knowing it. The password for root is there, not with me. I am thinking the Linux way here. Android is anyway Linux, most probably Gentoo.
I don't use a tablet, only an android phone, and the only time I go to internet is to check the bus timetable. Never thought of rooting the phone. Now with Remix OS, and Phoenix OS, I'd like to dig in. Hopefully, with you guys help.
ostrolk said:
I would also like to have Administrator rights. If I root the system.img, rename it from root.img to system.img, would I be able to become root in the Terminal? If so, what would be the command? Is it su? Can I make a user, or rename the user from u0_a77 and can I change localhost to some other name? What would be my root password?
Right now, I can get to root terminal by Alt+F1, but I feel as the root is at Jide, and they can do whatever without my knowing it. The password for root is there, not with me. I am thinking the Linux way here. Android is anyway Linux, most probably Gentoo.
I don't use a tablet, only an android phone, and the only time I go to internet is to check the bus timetable. Never thought of rooting the phone. Now with Remix OS, and Phoenix OS, I'd like to dig in. Hopefully, with you guys help.
Click to expand...
Click to collapse
Yes, root is su; no there isn't a password (conditional access to SU is what apps like SuperSU are for - you could password protect apps if you really wanted to).
The u0_a* is the owner/group of the app itself, every app gets its own owner/group (I think this is part of the selinux security measures; despite RemixOS running with SELinux off (permissive)).
I have systemless root working if anyone wants to try; just writing a short how to atm.
HypoTurtle said:
Yes, root is su; no there isn't a password (conditional access to SU is what apps like SuperSU are for - you could password protect apps if you really wanted to).
The u0_a* is the owner/group of the app itself, every app gets its own owner/group (I think this is part of the selinux security measures; despite RemixOS running with SELinux off (permissive)).
I have systemless root working if anyone wants to try; just writing a short how to atm.
Click to expand...
Click to collapse
Being in permissive mode means SELinux allow more access to the system. Sometimes having SELinux enforcing affects performance because it will deny the system access to certain modules like Bluetooth, WiFi, etc. Also you can set a password in SuperSU and set apps so they always ask for permission before granting root access you have to enter the master password.
HypoTurtle said:
I have systemless root working if anyone wants to try; just writing a short how to atm.
Click to expand...
Click to collapse
Yes, I would like that. If you could write about the commands, it would be much nicer.
ostrolk said:
Yes, I would like that. If you could write about the commands, it would be much nicer.
Click to expand...
Click to collapse
I've posted it here at the top; it will take me a while to get a 32bit setup built though...
Okay so I was told to come here because my phone doesn't have its' own forum yet (Not at all surprising..), so I'm just going to quote my post back on the other thread that told me to come here instead.
Mc Fow1er said:
Okay so I've had this phone for little over 10 months now and within that time I've managed to achieve root (unreliable but it works at the very least) in that time as well as learned a fair amount about Linux and android alike (Not a whole lot but I know some stuff) though I've now come to the point of I actually want to give my phone a proper root instead of this faulty solution I have currently. I (barely) managed to get my phone rooted using Kingoroot and I've played plenty with my phones' innards in that time, removed system apps, added my own selection to the system but some apps in my phone that use root don't work even with root permission granted which is why I'm wanting to replace Kingoroot with ChainFires' SuperSU binaries, could anybody help me with simple instructions for someone who doesn't actually know very much regarding how root and SU bins work inside of android? My phone's using 4.4.2 kitkat.
Just a few disclaimers first to get misconceptions out the way:
1. I do not have a custom recovery nor is one available for my phone (Samsung galaxy young 2 (SM-S130H) for those who want to know)
2. I'm currently unable to use the internet on my phone as I lack Wi-Fi to do so (router is dead) so I'm manually installing app packages through ADB, so if something needs an internet connection on my phone it's not going to work for me, for now..PC still has net access.
3. I have access to ADB shells' SU but not ADB root so I hope you don't need that from me.
4. This phone does not have a fastboot mode. (That I can find anyway..) Only a download mode from what I've found.
Can anybody help me out with telling me what I'll need to be doing in regards to getting this done?
Click to expand...
Click to collapse
So, can anyone here knowledge on the matter can assist me with this instead of me having to figure it out on my own?
I tried using kingo-root and kingroot, both on phone and on computer. I am not sure where to proceed from there, but i will say it got to around 90%. The reason I want to root is to disable the boot animation or startup sound(s), which is not usually disabled automatically when I have my phone on mute. I tried the sound disabler app, it seems to not be working (the startup sound still plays).
----------------------------------------------------------------------------------------------------
Well I also noticed you can do a command get ver all, but its going to require someone with that has better phone skills than of my own .. also try command while connected to computer "adb pull system" without the quotes it got to 82% for me before it wouldn't write no more still have the files for system if anyone needs them for rewriting or porting in the bootloader ... also by the way i dont know if this will help but i have got the some of these it may be helpful?.. its in the pic.
Root revvl plus coolpad
Hi do you root the revvl plus how can I do please help me thankful
TRY THIS
SmartPhoneDeveloper said:
I tried using kingo-root and kingroot, both on phone and on computer. I am not sure where to proceed from there, but i will say it got to around 90%. The reason I want to root is to disable the boot animation or startup sound(s), which is not usually disabled automatically when I have my phone on mute. I tried the sound disabler app, it seems to not be working (the startup sound still plays).
----------------------------------------------------------------------------------------------------
Well I also noticed you can do a command get ver all, but its going to require someone with that has better phone skills than of my own .. also try command while connected to computer "adb pull system" without the quotes it got to 82% for me before it wouldn't write no more still have the files for system if anyone needs them for rewriting or porting in the bootloader ... also by the way i dont know if this will help but i have got the some of these it may be helpful?.. its in the pic.
Click to expand...
Click to collapse
Hi there,
Well you can use various different methods of Rooting your Mobile, try using One-click Root or use any other rooting software
As far as I have gotten but better than nowhere...
There's a file in the etc folder in the system folder at your root. Use Termux to command "cd /system/etc/" Then command "ls". You can see a unique file called xtra_root_cert.pem in that folder. Command "apt install joe"... Then "joe xtra_root_cert.pem" You can get the certificate hash from the text displayed. That is as far as I have gotten. Lord knows what to do with it. It's some sort of password to unlock the root I think... Maybe not but highly likely. Any devs know what to do with it or how to use it?
WatchYerBak said:
There's a file in the etc folder in the system folder at your root. Use Termux to command "cd /system/etc/" Then command "ls". You can see a unique file called xtra_root_cert.pem in that folder. Command "apt install joe"... Then "joe xtra_root_cert.pem" You can get the certificate hash from the text displayed. That is as far as I have gotten. Lord knows what to do with it. It's some sort of password to unlock the root I think... Maybe not but highly likely. Any devs know what to do with it or how to use it?
Click to expand...
Click to collapse
That would be an SSL certificate.
Any news about rooting this ?
I saw a log in a forum, where MAGISK SU was running on the phone...