Hi,
I got a few spare androids' and i'm considering giving them to my kids (11 and 12) to play around with it and enjoy the android experience. however I don't want them being able to put 3rd party applications. how do i go about removing the option of "unknown sources" and maybe wifi from the settings.apk.
I'm not new to java and xml but sort of new to android development, I've tried several ways to remove it from the apk only (ark, ddx, baksmali, apksign) I did it in so many ways that i can't remember them all. I've also tried to decode the apk with apktool, ddx, baksmali, and creating a new project from existing source in eclipse, and I couldn't figure out what parts I have to modify to get it working (i kept on getting errors in eclipse so i wasn't even able to compile and test it in DDMS-eclipse).
Also i would like to know if maybe it is necessary to port the whole kernel source into eclipse?
I've searched all over the internet for a information for this specific thing and I couldn't find anything.
Btw, I'm using nix lucid.
Thanks In advance.
any help would be appreciated!
how about flash the supere rom without the google apps? that way they wont be able to access the market..
lagu805 said:
how about flash the supere rom without the google apps? that way they wont be able to access the market..
Click to expand...
Click to collapse
I know, the problem is not the market, i can pull it out from the phone with adb in a second w/o superE, but they can still install stuff on it with a sd card, and I would hate to not put in a file browser on the phone.
I think it would be a good idea to make a rom that's made for kids, for playing games and stuff without me worrying about it.
I'm sure that they will try to figure out a way to get around the "no market on the phone" and I should not underestimate a kid (even a 12 year old). I've seen him getting around lots of technological obstacle's.
I think that the world could use a kid's version of android, you know, get them hooked when they're young. The last thing i would like to hear from my kids is talking about iPhone or Windows. We're all linux in our house
Interesting. I too gave Magics to my 11 & 12 yr olds, one without a data plan and the other without a SIM at all. I think the right way might be multiuser like we already do on the desktops. Sudo would be a nice touch but I'd be happy to login as admin to install or whatnot.
Multiuser is something I'd like to see anyway with most or some settings on a per user basis. Or at least just for security, normal login can't do critical tasks that might cause issues. I think we'll hear about this again once we hear about some seriously dangerous apps/scams/viri on the phones.
In the meantime your best bet is education and rules about what can and can't be done. Then once per week or so you take the phone and check things out, update as needed, etc. So far my kids have little interest in breaking the rules and are happy browsing the market for fun things.
I think the only way to achieve this is to download the AOSP, edit the sources to remove the options and then compile your own ROM.
3rdcoast said:
Interesting. I too gave Magics to my 11 & 12 yr olds, one without a data plan and the other without a SIM at all. I think the right way might be multiuser like we already do on the desktops. Sudo would be a nice touch but I'd be happy to login as admin to install or whatnot.
Multiuser is something I'd like to see anyway with most or some settings on a per user basis. Or at least just for security, normal login can't do critical tasks that might cause issues. I think we'll hear about this again once we hear about some seriously dangerous apps/scams/viri on the phones.
In the meantime your best bet is education and rules about what can and can't be done. Then once per week or so you take the phone and check things out, update as needed, etc. So far my kids have little interest in breaking the rules and are happy browsing the market for fun things.
Click to expand...
Click to collapse
well, it is just a nix and SUDO should be possible, but setting this up is a quite a project and I don't think this is a one day project.
As for educating, I think they know right from wrong and I don't think that they will willingly break the rules, the market however is full of apps that are not meant for young kids..... what do you think they're going to do when they bump in to one of those apps? .
Actually what i wanted to do is to give them a phone with a line and no data plan so they can play games or watch movies, If the kids want to use the internet, there are more than enough boxes at home they can use. This phone is strictly for voice text and games.
What I want to accomplish in general, is having a child safe phone, and have the other parents here who want their kids to have to have an android, enjoy it. My way of giving back to the community.
But to have a phone that will be suitable for the purpose (not just for my kids) the data has to be completely disabled, and wifi is going to be the issue. putting on an encryption on wifi is a joke, ever heard of aircrack? I'm sure there are lots of determined horny 15 year olds that will get around that. (am i paranoid?)
Case_ said:
I think the only way to achieve this is to download the AOSP, edit the sources to remove the options and then compile your own ROM.
Click to expand...
Click to collapse
That's exactly what i want to do. The question is how do I do it?
Again, I'm not a complete noob, I just never played around with android as an OS. so if I can have the first push here here what I'm supposed to do to start this I would really appreciate it.
As I've said in my first post, I tried a few things and i couldn't get it right. what part of this don't i get??
Thanks a lot.
well your not even going in the right direction..
do you have an IDE with compiler and the android SDK all set up? then you can check on dferrera post on how to compile android from source... its listed in this forum.. please search
if your not a programmer or have no idea what classes - functions etc are then this might now be an option for you that is something you can be instructed on
you are going to need to learn to compile android from source and modify it, this is a very big task mate - be prepared, and no one can answer all the questions for u
alan090 said:
well your not even going in the right direction..
do you have an IDE with compiler and the android SDK all set up? then you can check on dferrera post on how to compile android from source... its listed in this forum.. please search
if your not a programmer or have no idea what classes - functions etc are then this might now be an option for you that is something you can be instructed on
you are going to need to learn to compile android from source and modify it, this is a very big task mate - be prepared, and no one can answer all the questions for u
Click to expand...
Click to collapse
Thanks for the reply, but i can't seem to get java5 working on 10.04 (the 10.04 repos have only java6 but i did add the old repos and ran in to some issues), I had it working on 9.04 though. anyone made it run on 10.04? or should I downgrade (or run it in VB) to 9.04/.10?
k50aker said:
Thanks for the reply, but i can't seem to get java5 working on 10.04 (the 10.04 repos have only java6 but i did add the old repos and ran in to some issues), I had it working on 9.04 though. anyone made it run on 10.04? or should I downgrade (or run it in VB) to 9.04/.10?
Click to expand...
Click to collapse
Add these 2 lines to the end of /etc/apt/sources.list file
Code:
deb http://pl.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ jaunty universe
then do:
Code:
sudo apt-get update
sudo apt-get install sun-java5-jdk
@k50aker
Hiding Wifi and other things should be quite easy task, but... how do you want to protect against system reinstallation? They could download any ROM from internet and install it in just 10 minutes. Backuping is easy too, so they could have 2 systems installed and switch between them when their dad comes home.
Android phones aren't desktops. You can't have root and don't give it to other users of a device.
Mod. edit: not dev related, moved to general
I wouldn't want to hide WiFI, the device is useless without connectivity, much cheaper toys out there for that if I wanted stand alone.
My two children each have a Magic and this is my experience, none of the worries that many parents seem to fear. They are well behaved and so far no problems and they are ready for 2.1 since 1.5 is just too confining even for them. Education goes a long way.
The best choice I made was to not put a SIM in one of the phones. WiFI is ideal since she is nearly always in a zone. This has gotten her used to IM instead of texting. Same effect but costs nothing. A SIP app works almost as well as SIM voice. Someday I'll do a data only SIM so she has total coverage, she'll understand that heavy data is to be done over WiFI and cell data is for VoIP and for times when it is really needed and can't wait.
However it would be nice if there was a limited setting requiring admin password for certain functions. But really, there hasn't been any problems but my kids might be grateful enough to not abuse the rights I give them. Best advice besides education if they are very young is to not SIM until after they get into the alternatives and not be addicted to texting. The older one has learned to watch her usage patterns and has to pay if she goes over budget.
Switch33 said:
Add these 2 lines to the end of /etc/apt/sources.list file
Code:
deb http://pl.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ jaunty universe
then do:
Code:
sudo apt-get update
sudo apt-get install sun-java5-jdk
Click to expand...
Click to collapse
those ropes are for jaunty not for lucid, and I have tried that before anyway and this is what i get:
Code:
desktop:~$ sudo apt-get install sun-java5-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
sun-java5-jdk is already the newest version.
The following packages were automatically installed and are no longer required:
libwv2-4
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up sun-java5-doc (1.5.0-19-0ubuntu0.9.04) ...
This package is an installer package, it does not actually contain the
J2SDK documentation. You will need to go download one of the
archives:
jdk-1_5_0-doc.zip jdk-1_5_0-doc-ja.zip
(choose the non-update version if this is the first installation).
Please visit
http://java.sun.com/j2se/1.5.0/download.html
now and download. The file should be owned by root.root and be copied
to /tmp.
[Press RETURN to try again, 'no' + RETURN to abort] no
Abort installation of J2SDK documentation
dpkg: error processing sun-java5-doc (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
sun-java5-doc
E: Sub-process /usr/bin/dpkg returned an error code (1)
Brut.all said:
@k50aker
Hiding Wifi and other things should be quite easy task, but... how do you want to protect against system reinstallation? They could download any ROM from internet and install it in just 10 minutes. Backuping is easy too, so they could have 2 systems installed and switch between them when their dad comes home.
Android phones aren't desktops. You can't have root and don't give it to other users of a device.
Click to expand...
Click to collapse
You are right, but one of the later steps I thought about would be a custom boot and custom or no recovery. But I will figure that out later in the project.
But i will probably change my direction on this (wifi etc.) based on what you guys say.
Related
Is ubuntu possible on our u8800?
http://www.youtube.com/watch?v=xN4c61ETCWg maybe, try it
Without having seen the youtube vid that d3xtr0 linked, I'll post this link:
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
sebgus said:
Without having seen the youtube vid that d3xtr0 linked, I'll post this link:
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
Click to expand...
Click to collapse
lit's the same source
It will probably work if this device supports "loop devices" whatever that is? anyone know or tried it succsessfully?
skifyr123 said:
It will probably work if this device supports "loop devices" whatever that is? anyone know or tried it succsessfully?
Click to expand...
Click to collapse
I had no time to try it, maybe later in the week.
skifyr123 said:
It will probably work if this device supports "loop devices" whatever that is? anyone know or tried it succsessfully?
Click to expand...
Click to collapse
It supports loop device. I just tried to mount a loop device with a loop image and it worked.
EDIT: With flibblesan's r5 kernel but it should be supported by stock kernel anyway
You are aware that ubuntu has no proper support for touchscreens; even if it runs you won't gain anything by doing that. When I installed a linux a few months ago on another device it worked, then I was fascinated about one minute and then I decided that there is no use for it an deleted it eventually.
I just do not understand why it is so important to get a desktop-os running on a smartphone. Battery drains fast, no support for the radio etc.
XphX said:
You are aware that ubuntu has no proper support for touchscreens; even if it runs you won't gain anything by doing that. When I installed a linux a few months ago on another device it worked, then I was fascinated about one minute and then I decided that there is no use for it an deleted it eventually.
I just do not understand why it is so important to get a desktop-os running on a smartphone. Battery drains fast, no support for the radio etc.
Click to expand...
Click to collapse
Its not important, but funny and cool if it works (on this device). How did you do it?
Until recently I still had my old samsung-omnia-winmo6.5-phone. There was an app for linux available; you just had to install an imagefile to the sd-card. The fun did last for a minute and then I realized I cannot do anything with this small screen and that it was pretty much useless.
I think that a lot of people here will just read the topic and think "omg this is amazing, now I can have my desktop-os on the phone, great" and later they realize how much time they just wasted.
If it really is fun for you guys, I won't try and stop you
How about using linux programs? i think that it may be quite useful sometimes... Put honestly... it is just for funright now... but it may be helpful if we could dual boot.... maybe in the future
I got this working, it isn't that slow as you could imagine, firefox takes around 30 sec to start and load the front page. That said, the keyboard works but is way off and impossible to use (I push "d" and "f" shows up and so on).
if anyone understand this the keyboard will be fixed:
In VNC’s xstartup file: $HOME/.vnc/xstartup
You have to add the line export XKL_XMODMAP_DISABLE=1 before
/etc/X11/Xsession or gnome-session (in case you use GNOME)
Screenshot actually taken with an ubuntu tool, I have set the resolution to 1200*800 in the virtual enviriment.
Here is a video with Huawei Ideos X5 running Ubuntu: http://www.youtube.com/watch?v=8SaoneDtNqA&feature=BFp&list=WL01C152CD7D31A7C8&index=1
Will try this later tonight and let you guys know if it works. Just have to work first >.<
The significance of linux running is to have a backup operating system to use on the phone if the Oracle / Google dispute over Java begins to really disrupt the market.
Think also freedombox.org, your own personal, secure and anonymous cloud system as a refuge if a dictatorship emerges or particularly nasty rise of corporatism occurs.
At heart, our U8800's can easily be linux box server with up to 32Gb of onboard storage with wi-fi AND gsm network connections. Being battery operated, if the thought police decend upon your community, you could take it to another place, unknown to the nasty guys, and re-establish mesh network connection to get reports of civil rights abuses out to the rest of the world.
Reason enough to have the capability to run Ubuntu Server edition (or any other Linux Server flavour)?
If you're interested to see what's already possible, even within Android (Linux will deliver more power), install "File Expert" from the market to get your very own web file server, right there in your phone.
-- wrong post just ignore --
XphX said:
Until recently I still had my old samsung-omnia-winmo6.5-phone. There was an app for linux available; you just had to install an imagefile to the sd-card. The fun did last for a minute and then I realized I cannot do anything with this small screen and that it was pretty much useless.
I think that a lot of people here will just read the topic and think "omg this is amazing, now I can have my desktop-os on the phone, great" and later they realize how much time they just wasted.
If it really is fun for you guys, I won't try and stop you
Click to expand...
Click to collapse
You didn't Found a better ubuntu boot-file, x5 faster, keyboard works, WIFI, pre-installed with many programs ( Open Office for work.. etc) easy to use with touch screen. here is how it works: http://www.youtube.com/watch?v=KUG9aC_tH5s
And the files/instructions: http://forum.xda-developers.com/showthread.php?t=962023
Let me start off by saying I am not a developer. And Im not too familiar with Linux either. Just goes to show that this isnt too difficult
To get ubuntu on the Atrix please go here first:
[MOD] Full Linux (Debian) inside WebTop! v0.2.6 [2011/07/07] [14.15 GMT+2:00] - xda-developers
Follow the steps. Must have CMW installed, rooted etc.
I was unsuccessful with webtop2sd. You might have good results with it, but for me it didnt.
Once you flash this cmw file, reboot you phone and enter into webtop (if you need the HDMI hack, you will find that on XDA). You will now see 3 new icons. Leafpad, Lxterminal, and a penguin. Click on the penguin, and you it will say found image. Click ok.
If your unfamiluar with linux, this will look french to you. Once it launches (the first time after reboot will take some time, be patient). Hit enter, enter again and scroll down to Shells, then hit enter on Bash. Now this is where the fun begins.
Enter synaptic. If that doesnt work you might need to install it. apt-get install synaptic. After thats opened search for gnome-panel, right click and select "mark for installation". Hit apply and go for a coffee. This will take a long time, and make sure your on wifi. This is a huge download.
Here is a list of working applications so far :
Epiphany web browser
Epiphany IM
Evolution Mail
Iceweasle
AbiWord
GNU image manipulation
All of the games
Im working on getting usb-to-ethernet dongle working.I can see it, just cant get access to it.
Almost all of the pre-installed applications with gnome work. EXCEPT sound. This is driving me nuts. I am unable to find a sound driver (gstreamer) that works. If anyone here figures it out let me know. And if anyone out there have programs that work let me know. I can always add it to the list. Im very green to Linux, and just playing around at this point. Im no developer, and most of your questions can be answered on XDA forums.
I have the same setup, and you can add openoffice.org and geany packages to the "functional" list. I use openoffice's writer every day and have found no missing functions. Geany is working, but does not build and compile, so it's basically a color-coded text editor (still useful for note-taking my language classes). I did NOT use synaptic to get these. I simply used the bash script (in the same manner you described for your synaptic install) to apt-get install openoffice.org and geany respectively. Nice thread,
-omni
Where you able to get sound working??
g2tegg said:
Where you able to get sound working??
Click to expand...
Click to collapse
My sound through the Webtop is functional, yes. I'm not sure if you were talking about gnome-specific apps (I wouldn't know, because I'm not using gnome panel), but anything through mobile view or iceweasel (not including flash) plays stereo through the Webtop. I didn't do anything special to get it working, it always just has. I hope you figure out your problem.
-omni
With epiphany did you encounter a problem where it uses xulrunner-1.9.2 instead of xulrunner-1.9 and fails to start the gecko engine? The epiphany version that is available through synaptic after fixing apt-get dependencies and sources uses xul1.9 once and works right then uses xul1.9.2 every time after that and fails. Epiphany lists both xul versions as deps so i, unsuccessfully, tried to lock xul1.9 and install a fake xul1.9.2. Any help would be awesome.
I did manage to make Webtop2SD work after I created a 4 GB partition on my ExtSD through Webtop2sd partitioning tool.
Here's what I got working (installed through Synaptic):
XFCE4 (full suite)
OpenOffice
GIMP
EPDFViewer
Fillezilla FTP client
VLC Media Player (marginal results)
Ristretto Image viewer
ABE's Amazing Adventure (game with full working sound)
I was hoping to have some sort of ScummVM, MAME and SNES emulator to run, but unfortunately they don't even after a successfull install.
Cheers!
Rayan
Sent from my Atrix using Tapatalk
@ g2tegg
I know it's a bit late for commenting lol. And probably my post may be off-topic. But was your issue the <no sound coming from HDTV via HDMI> one?
I also had this issue in webtop going on for like 3 months (like flashing and reflashing webtop to no end), until I stumbled upon this Motorola forum:
h**p://supportforums.motorola.com/message/330591#330591
(had to mod link because I didn't reach the minimum amounts of posts to allow links -_-)
Basically, if you switch display resolution to anything other than 1280x720, sound will not redirect to HDTV. And as for me, after switching to 1280x720, I had to reboot my Atrix in order to finally have sound . No need to find for drivers.
My sound would work within the Webtop apps from Motorola. But if I wanted to use a Linux MP3 player, watch a video etc there would be no sound. Kept getting a gstreamer error.
Hi g2tegg,
I have Atrix with iBlur ROM. I installed the WebTopMOD zip file using CWM and have the folder with linux image in sdcard-ext. But when I reboot the phone and plg it in Atrix Lapdock I don't see the icons like: penguin etc.
Could you please help.
Got it working !!
katlimaal said:
Hi g2tegg,
I have Atrix with iBlur ROM. I installed the WebTopMOD zip file using CWM and have the folder with linux image in sdcard-ext. But when I reboot the phone and plg it in Atrix Lapdock I don't see the icons like: penguin etc.
Could you please help.
Click to expand...
Click to collapse
Try to reflash the webtop and then the mod again. There is a thread in the developers area I believe called webtop mod v1 or something like that. When I get the chance I will try to dig it up. Driving in a snowstorm at the moment slightly hinders my searchability haha. Good ol Ontario I tell ya
quick question: are these persistent? can I make a desktop icon for these or do I have to apt-get them everytime?
seems counter intuitive to not be able to "hard" install the applications
V DidDy 210 said:
quick question: are these persistent? can I make a desktop icon for these or do I have to apt-get them everytime?
seems counter intuitive to not be able to "hard" install the applications
Click to expand...
Click to collapse
You dont have to apt-get everytime. The installed applications are on either the phones hard drive or the SD card. Only thing you will have to do is start the gnome panel every session, which is easy enough.
g2tegg said:
You dont have to apt-get everytime. The installed applications are on either the phones hard drive or the SD card. Only thing you will have to do is start the gnome panel every session, which is easy enough.
Click to expand...
Click to collapse
Yeah after tinkering with them for enough time I figured that out!
only question is how do I figure out where they are located on my phone? I can't find a DEBIAN folder anywhere on my device (sd or sd-ext) my webtopmod folder is on my internal storage btw
thanks for the response!
If you use webtopmod's debian chroot (the white shell) they'll be in the linuxdisk file, as it's actualy a filesystem in itself. You won't be able to 'directly' access them. I recommend switching to webtop2SD. I didnt' want to, but everything is native that way and most things run better anyways, I installed xfce4 and got rid of that stupid awn dock at the bottom and put in a little bar. Now it feels like linux!
My apps so far:
OpenOffice 3
XChat
rdesktop (doesn't work, keymap doesn't work)
gimp (not used yet)
Any other useful ones people know of? I don't need an email client... the phone's gmail app is sufficient enough, and if I need more support I'll just use gmail. Kind of wish I could get an updated firefox, or a tun/tap module so i could use hamachi.
Mgamerz said:
If you use webtopmod's debian chroot (the white shell) they'll be in the linuxdisk file, as it's actualy a filesystem in itself. You won't be able to 'directly' access them. I recommend switching to webtop2SD. I didnt' want to, but everything is native that way and most things run better anyways, I installed xfce4 and got rid of that stupid awn dock at the bottom and put in a little bar. Now it feels like linux!
My apps so far:
OpenOffice 3
XChat
rdesktop (doesn't work, keymap doesn't work)
gimp (not used yet)
Any other useful ones people know of? I don't need an email client... the phone's gmail app is sufficient enough, and if I need more support I'll just use gmail. Kind of wish I could get an updated firefox, or a tun/tap module so i could use hamachi.
Click to expand...
Click to collapse
I installed chromium, and it's running smoother than firefox ever did. Haven't really had a reason to install anything else, but i think i'm gonna get fxce4 because the current dock at the bottom annoys me
Sent from my MB860 using xda premium
^yeah after using it exclusively for the past day or so it's quite capable but I can also see the limitations of debian through chroot. I'd ideally like to get rid of the webtop all together and just have kde or gnome (i'm not picky, xcfe4 would work for me too)
but I'm assuming if I do webtop2sd I can have ubuntu with gnome installed no problem?
I went through the process of putting all of my gnuSTEP icons on the webtop and it's very much like my current gnuSTEP machine (supremely capable btw when using a debian core) I haven't run into any real problems using the chroot method, save for not being able to put shortcuts on the AWN bar and the occasional, but when I get my lapdock in the mail and start exclusively using this when I'm out and about I'll look into doing webtop2sd. I need to get a bigger sd card too, I have a 16 but I'd rather have a 32 external only for webtop and the 10 or so internal for android I don't listen to music on my android (I own a zune) so 10 should be plenty to just have apps and android
---------- Post added at 02:23 AM ---------- Previous post was at 02:20 AM ----------
Alcapone263 said:
I installed chromium, and it's running smoother than firefox ever did. Haven't really had a reason to install anything else, but i think i'm gonna get fxce4 because the current dock at the bottom annoys me
Sent from my MB860 using xda premium
Click to expand...
Click to collapse
Did you use the jaunty hack to get chromium working?
I successfully installed chromium but every page loads for a second and then crashes. I didn't really look into the chromium hack (I don't think I use jaunty for anything and synaptic/apt-get can get all the repositories I need) but it seemed intensive especially to get flash.
I've found that while firefox has FANTASTIC flash support (like, really good and speedy, no chops) I just end up using konqueror for regular internet tasks. I can't seem to get it to install flash (I don't know how to install .deb packages) but it's speedy for other things and makes an excellent file manager
If you could get chromium without 2.3.5 i'd get it... but 2.3.5 offers what appear to be no benefits at all, correct?
Just kinda scared to have to rebuild from a bricked phone.
Trolling from my ATRIX 4G's XDA premium app, still on the gold medal winner of worst customer satisfaction for the second year in a row! Congrats!
I upgraded to 2.3.5 it has the new firefox, it runs fine from what I've seen
I'm trying to install synaptic by "apt-get install synaptic", but it shows several "Failed to fetch http://ftp.debian.org/debian/......" messages.
How can I fix this?
I am thinking of getting a Nexus 4 (or a Nexus 5 if such a thing appears in the not too distant future) as my first smartphone, with the eventual possibility of running Ubuntu for Android if and when it becomes available. However, for now the only capability I need the phone for is to be able to open up a Linux style command line terminal on the phone where I can ssh into a couple of other Linux based devices I have, via wifi, so I can run some "C" executables that I have written on these other devices. These other devices are running SSH servers. Is this doable? Do I need a special app or a special ROM, etc.
I assume you mean to run the C executable on the remote machine... not the phone itself?
If yes, then: YES, you can do that. And there are many ways to do it.
At the most basic, the only app that you would need is a Terminal Emulator app (several terminal apps are available for free... some are better than others). From that, you can do what you want. Any of the good ones will work just like any other Terminal on a PC.
But there are other apps that will make it easier because typing out commands, on a phone, isn't the funnest thing ever. Copy-pasting commands is an obvious way to make it easier...
But there are even easier ways than that...
ConnectBot (ssh-agent-patch) app would allow you to ssh into a remote host with a single tap (even using public-private key authentication if you want). Then you can run your ./command (or copy-paste it).
You can even VNC into a remote host and control it graphically (assuming a VNC server is running on the host machine).
You can even go the other way too... you can run an ssh server on the phone and access it from your PC.
Like all ssh capabilities, all of this can be done over the internet too, you aren't limited to WiFi LAN.
Also, on all of my file explorers (on all of my computers AND my Phones) I've made shortcuts for easy file sharing too (all using pub/private key authentication for security). Not only does that make file transfers super easy no matter what machine I have my hands on at the moment, but it also makes my desktop PC at home my own personal cloud server to my phone. Who needs dropbox?
Basically anything you can do with ssh on a computer, it can be done on an Android phone.
ps... if you re-compiled your C executables for the Android system... you could even run them natively on the phone.
iowabeakster said:
I assume you mean to run the C executable on the remote machine... not the phone itself?
Click to expand...
Click to collapse
Yes.
Fantastic, thanks for the detailed answer. I wanted to know right away before I wasted my time, but now am googling around for all the details. I have a raspberry pi running Debian that I need to communicate with and it is headless (No monitor, keyboard, etc., just a wifi dongle) so this would be perfect. I also have desktop computers that run a bunch of OS's (Centos, Scientific Linux, Fedora, Ubuntu, etc) that I might want to connect to.
From what I understand, all of that can be done without modifying the phone (rooting, etc.), correct?
However, down the road I may want to try and root it anyway, because the bigger set of Linux commands offered by Busybox would nice. I have been putting off getting a smartphone because of the cost, but the Nexus 4 with something like straight talk is the same monthly price as my 400 minutes of just talk with Verizon, so it is time. The coverage and uptime with Verizon is really good, but the costs are just not keeping up with the times.
From what I understand, all of that can be done without modifying the phone (rooting, etc.), correct?
Click to expand...
Click to collapse
good question.
I don't know with absolute certainty what functions would require root (I always root right away... so I don't ever think about it... like you said... additional functions... and I forget about it).
Basic, ssh-client functions should not require root. Running the ssh-server on the phone, that I mentioned, certainly does require root though. I know that my Terminal Emulator and File explorer apps have root access, but root is not needed just for the ssh-client functions (I am pretty sure).
Rooting on the nexus 4 is pretty easy. Rooting does require the installation of a custom recovery (at least temporarily). That is something that sounds like it would take someone like a you only a few minutes to do (not counting the time you would likely spend reading about it before hand... and installing the android sdk on a PC). Certainly, no other mods other than rooting would be needed.
iowabeakster said:
good question.
I don't know with absolute certainty what functions would require root (I always root right away... so I don't ever think about it... like you said... additional functions... and I forget about it).
Click to expand...
Click to collapse
Great, I will probably just root the phone after using the phone for a while; I have zero experience with smartphones, plus I want to make sure that the phone works properly. The important thing is that it will do exactly what I need it for.
Last question. I see there are several guides for rooting and unlocking the bootloader.....Any recommendation of which one to use? I see that the one written by Jubakuba "Ultimate Nexus Root Guide" has pointers to urls that are broken (Therefore many critical steps are missing), and apparently it has been that way for quite a while.
I started looking for what I thought the best guide... but I gotta do some stuff... I will be back in a couple hours (hopefully with a good suggestion).
I will piece together a guide tomorrow morning from all the various "how-to" guides out there for you. So many of them are geared towards Windows users, and they start babbling about installing and removing drivers and stuff that you won't bother with in Linux. But I need sleep, right now. It'll just be some copying and pasting from a few of them out there. It shouldn't take long.
iowabeakster said:
I started looking for what I thought the best guide... but I gotta do some stuff... I will be back in a couple hours (hopefully with a good suggestion).
I will piece together a guide tomorrow morning from all the various "how-to" guides out there for you. So many of them are geared towards Windows users, and they start babbling about installing and removing drivers and stuff that you won't bother with in Linux. But I need sleep, right now. It'll just be some copying and pasting from a few of them out there. It shouldn't take long.
Click to expand...
Click to collapse
It's not necessary to go through all of that; I thought there was maybe one document that a lot of people were using. It is really up to me to start reading up on the subject.
Just bit the bullet and placed an order for the Nexus 4 before it is out of stock again.
Found some simple instructions for unlocking and rooting the Nexus 4:
http://forums.androidcentral.com/nexus-4-rooting-roms-hacks/224861-guide-nexus-4-unlock-root.html
Also found better descriptions of what the various terms floating around mean and what each piece of software does, however it is on the Galaxy S III section of this forum, so obviously I am not going to follow any of the procedures listed:
http://forum.xda-developers.com/showthread.php?t=1927113
Here's my favorite instructional...
http://forum.xda-developers.com/showthread.php?p=37823933#post37823933
iowabeakster said:
Since googling around to find a good "How to" for Android noobs, I kind of felt like I could maybe help a few other folks out there too So, I went ahead and made my own "How to".
Click to expand...
Click to collapse
Nice.
I just ran across this, and thought about you... looks like a nice new SSH client. I've never used it. But Jerry at Android Central is a pretty serious Linux nerd, so I do put some stock in his recommendations. Just thought I'd throw it out there for you to see.
http://www.androidcentral.com/apps-week-juicessh-7x7-audible-android-and-more
iowabeakster said:
I just ran across this, and thought about you... looks like a nice new SSH client. I've never used it. But Jerry at Android Central is a pretty serious Linux nerd, so I do put some stock in his recommendations. Just thought I'd throw it out there for you to see.
http://www.androidcentral.com/apps-week-juicessh-7x7-audible-android-and-more
Click to expand...
Click to collapse
Well, I had the phone for a couple of weeks and I think I turned it on twice. I really didn't get addicted and start to install apps until I used the GPS feature for a long trip I took yesterday. First time using a GPS....Yeah, just a little behind the times.
So, without rooting, today I installed the following apps which gives me everything I need:
ConnectBot. Works great and allows me to ssh to my Linux boxes.
Terminal Emulator. For basic command access.
FreebVNC. Has a secure tunnel feature built in, so you don't have to go through the whole two step process of setting up a tunnel and then running VNC through the tunnel. Also, it has a zoom feature, access to special keys and mouse emulation.
Wifi Analyzer. Gives you access points, signal strength, etc. There was another app that I added to that app to easily connect to the access points.
Fing. Network Info like mac addresses, etc.
Still will root eventually and install Busybox. However, now that I can access my raspberry pi remotely, my priority is to finish writing my software programs and building electronics for a project that uses that little ARM computer.
pjc123 said:
I am thinking of getting a Nexus 4 (or a Nexus 5 if such a thing appears in the not too distant future) as my first smartphone, with the eventual possibility of running Ubuntu for Android if and when it becomes available. However, for now the only capability I need the phone for is to be able to open up a Linux style command line terminal on the phone where I can ssh into a couple of other Linux based devices I have, via wifi, so I can run some "C" executables that I have written on these other devices. These other devices are running SSH servers. Is this doable? Do I need a special app or a special ROM, etc.
Click to expand...
Click to collapse
For a ssh client, try ConnectBot. I have been using this since the G1 came out for work (Sys Admin) and home.
For a better keyboard, check out Hacker's Keyboard.
SpookyTunes said:
For a ssh client, try ConnectBot. I have been using this since the G1 came out for work (Sys Admin) and home.
For a better keyboard, check out Hacker's Keyboard.
Click to expand...
Click to collapse
As mentioned above, I already installed ConnectBot and it has nice features. However, I am interested in the keyboard (keys in the right place, Crtrl/Tab/Esc keys, etc.), so I will be installing that next.
Yep, ConnectBot is the old standard (if there is such a thing in Android world). I use it.
I've pretty much always used Jack Palevich's Terminal Emulator app. Very small and lightweight. It's always done everything I've ever needed to do. But there are many Terminal apps to choose from. I usually stop trying apps, when I find one that meets my needs, and stick with it until it doesn't... I started using that Terminal my first week with my first Android, after trying a couple of others. I've never used anything since.
Hacker's keyboard is an awesome suggestion! Thanks man! How have I survived without this!
For VNC purposes (which I rarely use) I use androidVNC. I've never tried anything else since I use it so rarely. It seems to do everything I can imagine it should. Mostly I use it to mess with my wife's head with some "ghost in the shell" pranks when she is using her laptop. She will scream from the living room, "WTF!!!! My computer just told me it's going to eat my brains tonight!"
And I'm just innocently sitting there reading emails on my phone "That is strange, honey."
iowabeakster said:
For VNC purposes I use androidVNC.
Click to expand...
Click to collapse
I actually looked at androidVNC first due to the amount of reviews and positive ones, but I liked the extra features of FreebVNC even though it violates my following policy. I have found, just like shopping at Amazon, that in general the quantity and quality of reviews quickly narrows the search dramatically from the huge database of products/apps. The only side effect of this is to weed out excellent apps that are new and could be excellent, but just like major operating system updates, with anything new I let them weed out the bugs first.
iowabeakster said:
I've never tried anything else since I use it so rarely.
Click to expand...
Click to collapse
I totally agree with you that I don't ever see myself using the VNC client on the smartphone again other than just as a novelty. What does intrigue me is putting a VNC server on the smartphone. I wonder if there would be a way to use an external computer's mouse and keyboard to control the gui portion of the smartphone while displaying it on the computer's large screen, the problem being that the smartphone is touch based; that is something that I could see using.
iowabeakster said:
I use it to mess with my wife's head with some "ghost in the shell" pranks.
Click to expand...
Click to collapse
Me and a friend used to do similar pranks at work, messing each others displays, keyboards, etc. I think the best non-computer prank that someone did to me while I was on vacation was to line one of my desk drawers with plastic and fill it full of goldfish. The best prank that some colleagues did, was to inflate a weather balloon in our departmental director's office and turn the nozzle away from the door so he couldn't get in.
I just botched my install of BotBrew by switching from sid to Wheezy. Sid appears to be all sorts of buggy and is even warned to be so on Debian's site. I even managed to mess up my tablet completely by trying to move the old directory so I could start fresh but keep the old stuff for reference as I reinstalled/recompiled everything.
Now that I'm on a fresh slate seeing as BotBrew is three years now without update is there anything better out there to set up a Linux environment that I can compile things in and perhaps turn into a nice fully featured Linux install to share with people?
I was halfway through the dependencies for Cinnamon (my favorite WM) before I somehow killed Python beyond repair so forgive me for my rants. Getting that far (about 12 solid hours work) and having to start over is... taxing on the nerves.
Thanks in advance for your advice.
mascondante said:
I just botched my install of BotBrew by switching from sid to Wheezy. Sid appears to be all sorts of buggy and is even warned to be so on Debian's site. I even managed to mess up my tablet completely by trying to move the old directory so I could start fresh but keep the old stuff for reference as I reinstalled/recompiled everything.
Now that I'm on a fresh slate seeing as BotBrew is three years now without update is there anything better out there to set up a Linux environment that I can compile things in and perhaps turn into a nice fully featured Linux install to share with people?
I was halfway through the dependencies for Cinnamon (my favorite WM) before I somehow killed Python beyond repair so forgive me for my rants. Getting that far (about 12 solid hours work) and having to start over is... taxing on the nerves.
Thanks in advance for your advice.
Click to expand...
Click to collapse
If you're looking for an easy way to run a full linux environment on Android(through chroot) I would recommend trying Linux on Android (found at http://linuxonandroid.org/). Download from Play store .
It has many linux distributions to choose from and has worked perfectly for me. I tend to start ssh server on the linux chroot and connect to it locally with VX Connectbot most of the time when I'm using it.
(How were u planning to run Cinnamon on android? Vncserver?)
I like Linux on Android. The only thing I don't like is it uses an image file instead of a directory on my device. Makes moving stuff back and forth kind of a pain. I use http://sourceforge.net/projects/libsdl-android/files/apk/XServer-XSDL/ and set my display location to XServer-XSDL in the chroot and any app I launch opens in XServer.
I'm thinking of taking a crack at making my own Ubuntu bootstrap as I prefer it to Debian. Not sure if the prebuilt would work or if I could set up an image without using QEMU.
After another all-nighter I must say I have huge respect for anyone who builds Linux from scratch. I was lucky enough to have a repo that had some of the packages I needed but at least 50% of the dependencies I needed had to be compiled. And naturally they had dependencies that had to be compiled and so on. I don't know how many layers deep I had to go. I lost count.
mascondante said:
I like Linux on Android. The only thing I don't like is it uses an image file instead of a directory on my device. Makes moving stuff back and forth kind of a pain. I use http://sourceforge.net/projects/libsdl-android/files/apk/XServer-XSDL/ and set my display location to XServer-XSDL in the chroot and any app I launch opens in XServer.
Click to expand...
Click to collapse
You could always mount the iso image to a directory and access all the files that way. Or just access /sdcard or /external_sd from within linux chroot.
I tried XServer-XSDL but it had bad keyboard lag when typing quickly(letters appear very slowly) -- especially with an external keyboard. Do you experience that?
xIsei said:
You could always mount the iso image to a directory and access all the files that way. Or just access /sdcard or /external_sd from within linux chroot.
I tried XServer-XSDL but it had bad keyboard lag when typing quickly(letters appear very slowly) -- especially with an external keyboard. Do you experience that?
Click to expand...
Click to collapse
Thank you for the advice. If I start to go insane from my efforts I'll give that a whirl.
I believe it lagged but as I didn't have a WM open just a simple app called SheepShaver it wasn't as noticeable. To be perfectly honest I'm not sure that I remember.
For anyone who cares I finally built Cinnamon. It won't launch. Clutter is complaining about the screen. Something to do with libEGL getting pissed because of the setup I'm using. https://mail.gnome.org/archives/commits-list/2014-June/msg03415.html shows a commit that should fix that. I'm trying to compile it but like the rest of my experiences it's not as simple as compile and done. More like knock out a tree of dependencies, sacrifice your first born, pray and cross your fingers hoping something else isn't going to go wrong. Kind of disappointing. Cinnamon is such a beautifully simplistic yet still very pleasant looking WM.
For now I'll keep beating my head against a wall until I pass out or break it down. Will share once I'm done. I plan on switching it from Debian to Linux Mint if possible. A fully working Linux Mint seems like an adventurous goal to shoot for. But for now it's daylight and this child of the darkness needs some sleep. I'd love it if some senior developers subbed to this and shared their ideas and collaborated with me. I've only got one friend to call on for help and he's a FreeBSD guy so his help only goes so far. Thanks.
WARNING: This is not a place for you to come to say how great you think Chainfire is. I'm not calling his character into question, only his methodologies and the character of the outfit he sold out to (and I don't question the act of selling out, that's business, pays the bills, and puts kids through college). The debates about what people prefer and why are as old as the first software. And of course, I will not tell you what to do, no matter how much I disagree with you. If you UNDERSTAND what I have to say, then THIS software is for you. If you don't, you are probably better off with binaries.
The root situation on Android 5.x left a lot to be desired. There was basically just one distributor of a functional substitute user command (su), and it was binary. Recently, ownership of that binary and all of its history has become the property of a previously unknown legal entity called "Coding Code Mobile Technology LLC". While it was presented as a positive thing that that entity has a great involvement with android root control, this is actually a VERY frightening development.
The people at CCMT are no strangers to the root community. They have invested in, or own, a number of popular root apps (though I am not at liberty to disclose which ones) - chances are, you are running one of them right now. I believe SuperSU has found a good home there, and trust time will not prove me wrong.
Click to expand...
Click to collapse
There are precisely two motives I can imagine for buying up all the root control software for Android;
1) monetizing it, which is contrary to the user's best interests,
2) something very frightening and dangerous involving the potential exploitation of everybody's devices.
You don't know the owners, and they are distributing a binary, so who the heck knows WHAT is going on.
Now a few important considerations with respect to your security and privacy;
1) Obfuscated binary cannot be sanely audited.
2) Function of this binary depends on the ability to manipulate selinux policies on the fly, including RELOADING the policy altogether and replacing it with something possibly completely different. Frankly, I've never heard a single reason why this should be necessary.
3) While a root control application may give you nice audits over other software that is using its service, it can *EASILY* lie about what it is doing itself. It can delete logs, it can share root with other applications that they have made deals with, it can directly sell you out to spammers, etc.
That is WAY too dangerous, and not worth the risk.
Frankly, you are safer if you disable selinux AND nosuid, and just run the old style of root where you set a copy of sh as 6755. And that is FRIGHTENINGLY dangerous.
So not satisfied with this state of root, and especially now with a new unknown entity trying to control the world, we bring you the rebirth of the ORIGINAL Superuser:
https://github.com/phhusson/Superuser
https://github.com/lbdroid/AOSP-SU-PATCH (this one is mine)
From the history of THAT Superuser:
http://www.koushikdutta.com/2008/11/fixing-su-security-hole-on-modified.html
Yes, look at the Superuser repo above and see whose space it was forked from.
Note: This is a work in progress, but working VERY well.
Use my patch against AOSP to generate a new boot.img, which includes the su binary.
Features:
1) selinux ENFORCING,
2) sepolicy can NOT be reloaded.
3) It is NOT necessary (or recommended) to modify your system partition. You can run this with dm-verity!
The source code is all open for you to audit. We have a lot of plans for this, and welcome suggestions, bug reports, and patches.
UPDATE NOVEMBER 19: We have a new github organization to... "organize" contributions to all of the related projects. It is available at https://github.com/seSuperuser
UPDATE2 NOVEMBER 19: We have relicensed the code. All future contributions will now be protected under GPLv3.
*** Regarding the license change; according to both the FSF and the Apache Foundation, GPLv3 (but not GPLv2) is forward compatible with the Apache License 2.0, which is the license we are coming from. http://www.apache.org/licenses/GPL-compatibility.html . What this means, is that it is *ILLEGAL* for anyone to take any portion of the code that is contributed from this point onward, and use it in a closed source project. We do this in order to guarantee that this VITAL piece of software will remain available for EVERYONE in perpetuity.
Added binaries to my the repo at https://github.com/lbdroid/AOSP-SU-PATCH/tree/master/bin https://github.com/seSuperuser/AOSP-SU-PATCH/tree/master/bin
These are *TEST* binaries ONLY. Its pretty solid. If you're going to root, this is definitely the best way to do so.
The boot.img has dm-verity and forced crypto OFF.
The idea is NOT to use as daily driver, while I can make no warranties at all regarding the integrity of the software, I use it myself, as do others, and its pretty good.
What I would like, is to have a few lots of people try it out and report on whether things WORK, or NOT.
IF NOT, as many details as possible about what happened, in particular, the kernel audit "adb shell dmesg | grep audit". On non-*nix host platforms that lack the grep command, you'll probably have to have to add quotes like this in order to use android's grep: "adb shell 'dmesg | grep audit'".
How to try:
0) Starting with a CLEAN system.img, get rid of supersu and all of its tentacles if you have it installed, if it was there, it will invalidate the tests.
1) Install the Superuser.apk. Its just a regular untrusted android application. Yes, there is a security hole here, since we aren't (yet) authenticating the communications between the android application and the binaries, or validating the application by signature, or anything else that would prevent someone from writing a bad Superuser.apk. This is on the list of things to do.
2) fastboot flash boot shamu-6.0-boot.img
3) test everything you can think of to see if it works as expected.
Note: there are some significant visual glitches in the android application, but nothing that makes it unusable.[/quote] @craigacgomez has been working on fixing up the UI. Its really paying off!!!
How you can reproduce this YOURSELF, which we RECOMMEND if you feel like daily driving it (in addition, make sure that you UNDERSTAND everything it does before you decide to do that, you are responsible for yourself;
You can build it any way you like, but I do my android userspace work in eclipse, so that is what I'm going to reference. Import the project from phhusson's git, including SUBMODULES. Right click the Superuser project --> Android Tools --> add native support. The library name you choose is irrelevant, since it won't actually build that library. Right click project again --> Build configurations --> Build all. This will produce two binaries under "libs", placeholder (which we won't be using), and su. You need the su binary. Then right click project again --> run as --> android application. This will build Superuser.apk, install it, and launch it.
Next:
repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.0_r1
repo sync
Then apply su.patch from my git repo.
UNFORTUNATELY, the repo command isn't smart enough to apply a patch that it created itself. That means that you are going to have to split up the patch into the individual projects and apply them separately to the different repositories. This isn't that hard of a step though, since there are only FOUR repositories I've modified... build/ (this just makes it possible to build with a recent linux distro that doesn't have an old enough version of openjdk by using oraclejdk1.7. The boot.img doesn't actually need the jdk to install anyway -- its just part of the checking stage, so its up to you.), device/moto/shamu/, external/sepolicy/, system/core/.
After applying the patches, copy the su binary you generated with eclipse into device/moto/shamu/
Then ". build/envsetup.sh; lunch aosp_shamu-userdebug; make bootimage". That should take a minute or two to complete and you will have a boot.img built from source in out/target/product/shamu/
NEW UPDATE!!!!
While I haven't yet gotten around to running a complete cleanup (very important family stuff takes priority), I *HAVE* managed to find a half hour to get on with the Android-N program. If anybody takes a peek at the AOSP-SU-PATCH repository on the AOSP-N branch, you should find some interesting things there.
One warning first though... I updated the patches to apply against the N source code, and then updated some more to actually compile, and compiled it all. BUT HAVE NOT HAD THE OPPORTUNITY TO TEST IT YET.
Nice thing you came up. Sounds awesome.
We should have an alternate to all LLC thing, no matter how much respect (I owe you Chainfire thing) we got for the man who created CF Root (since Galaxy S days) and SupeeSU.
wow, tyvm for this! Will definitely test for ya and let you know.
I already applied your patch, built my own binaries and the boot.img but won't have a chance to test anything until tomorrow. Would love to get this %100 working fine and yeah, will use this from here on out instead of supersu.
Thanks again and yeah, will post when I have something ^^
I will be following progress closely, as should others. Without something like this, many in the community may naively let a corporate entity control root access on their devices. This is extremely frightening, it may not happen right away but if you believe the an entity will not monetize or exploit the current situation I believe you are sadly mistaken.
I could be wrong, however, it's not a risk I will take lightly and no one else should either.
Thanks for this.
Nice work!! Will be following this thread closely.
Time for me to learn eclipse. And do a heck of a lot more reading.
Larzzzz82 said:
Time for me to learn eclipse. And do a heck of a lot more reading.
Click to expand...
Click to collapse
Just note that I use eclipse because I'm used to it. Its become the "old" way for android dev.
i just paid for superSU is this the same people?
TheLoverMan said:
i just paid for superSU is this the same people?
Click to expand...
Click to collapse
I'm not sure what you are asking... are you asking if I am in any way affiliated with supersu, then you probably failed to read the first post in this thread altogether.
Charging money for a binary blob to use root on your device is borderline criminal, and unquestionably immoral. I'm sorry to hear that they got something out of you.
This is pretty great. I'll be watching this as well.
Perhaps this is not the place to take the tangent but why does root behave as it does and not more similar to a standard linux distro? It seems like it would be much more secure to have a sudo function as opposed to an all encompassing root. I'll admit I'm not that familiar with the inner working of the android OS but off hand I can't think of any program that absolutely needs to be automatically granted root every time it wants to run (I'm sure there are but even in this case the power user could chown it to standard root).
Wouldn't it be much more secure if you had to go in to developer options (which are already hidden by default) and turn on the option for sudo. This would then require a sudo-user password (perhaps even different than the standard lock screen password). Need to run a adblock update? Enter the password. Need to run Titanium backup? Enter the password... etc. Much more secure than a push of "accept".
Sorry for off topic but it's always made me wonder and seems like it would be root done right (see how I tied that back to the topic ) If elevating programs/tasks to a superuser was more secure perhaps it would not need to be such an issue...
^ Some root functionality is just too common for a Linux like sudo password to be usable at all. I'll give 2 examples:
1. Since Lollipop Google disabled access to mobile network settings for third party apps. Now it's only possible with root. I have an app that together with Tasker automates my network changing. That network app needs root access EVERY time there is any changes to the connected network and when it wants to change the settings.
Phone connects to a different cell tower? Root needed to detect this and determine the mobile network status.
You can figure how many times this is required per day.
2. I use Greenify to force some misbehaving apps to sleep after the screen goes off. It needs to request root every time it wants to sleep one of those apps. In other words every time I use them, after my screen goes off and I turn it back on I'd be facing both my secure lockscreen and the sudo password.
There's are plenty of other apps that need to request root access on a regular basis. These were just a few examples. If you only need root for TiBu then a sudo password type of security measure would work. In my case all I'd be doing with my phone would be typing that password again and again.
Beyond what is said above, to my understanding... What "root" is is just a way to install the "su" binary to your phone, with a nice GUI to make it more friendly for phone/tablet use.
Being rooted, if memory serves, is being able to access and change any file in your root directory, at least that's a simplified way to see it. The SU app is a GUI that is mostly used to control the ability of apps to access and change the root directory.
Sent from my Nexus 6 using Tapatalk
Interesting thread. Thanks for your work....subscribed
doitright said:
There are precisely two motives I can imagine for buying up all the root control software for Android;
1) monetizing it, which is contrary to the user's best interests,
2) something very frightening and dangerous involving the potential exploitation of everybody's devices.
Click to expand...
Click to collapse
I would suggest that there is a third potential motive here - that having control over the "only" way of rooting Android devices might be attractive to Google.
I've read a few articles suggesting that they would prefer to prevent people from rooting their phones (partially so that they can monetise Android Pay - which requires a Trusted Computer Base, which means unrooted - as well as controlling Ad Blockers, which affect a revenue stream). I also suspect that only a tiny minority of Android users - and most of them are probably on here - actually root their devices.
Regardless of the motives, having a technological monoculture is never a good thing, especially when it is delivered as a binary owned by an unknown organisation.
(No disrespect to Chainfire - I have had many years of root access to my devices thanks to his efforts.)
scryan said:
Beyond what is said above, to my understanding... What "root" is is just a way to install the "su" binary to your phone, with a nice GUI to make it more friendly for phone/tablet use.
Click to expand...
Click to collapse
Not quite.
"root" is the *name* of a privileged user, with user id of 0.
The "su" command (short for substitute user), is used to substitute your current user for another user, but most particularly root.
Every application and many subsystems in Android are granted each their own user, which are very restrictive, hence the need to escalate to root to obtain necessary privileges.
Philip said:
I would suggest that there is a third potential motive here - that having control over the "only" way of rooting Android devices might be attractive to Google.
Click to expand...
Click to collapse
What does that have to do with the third party? I doubt very much that Google would appreciate the security of their users being compromised by a 3rd party.
urrgevo said:
Being rooted, if memory serves, is being able to access and change any file in your root directory, at least that's a simplified way to see it. The SU app is a GUI that is mostly used to control the ability of apps to access and change the root directory.
Click to expand...
Click to collapse
Nope. The root directory can be setup to be accessible by specific users just by applying the appropriate permissions to the files.
The root directory and root user are not specifically related.
doitright said:
What does that have to do with the third party? I doubt very much that Google would appreciate the security of their users being compromised by a 3rd party.
Click to expand...
Click to collapse
Because the "third party" might actually be Google (or an organisation funded by them).
---------- Post added at 15:05 ---------- Previous post was at 15:02 ----------
doitright said:
Every application and many subsystems in Android are granted each their own user, which are very restrictive, hence the need to escalate to root to obtain necessary privileges.
Click to expand...
Click to collapse
Shouldn't need to su to root to do this - that's what setuid and setgid are for.