Hi folks,
I'm relatively new to XDA and similarly new to smartphones. My old dumbphone broke down and finally got an android device, samsung galaxy note, I really liked the huge screen.
I've been using linux for 2 decades now and chose an android device because everyone was telling me how it is linux-based which sounded like a good selling point. I'm quite pleased actually but have a few questions all of them related to my expectations that the OS will be linux-like:
1. I've been reading about rooting the phone and the like, but nobody explained the basics: why is it a special procedure to root the phone, why isn't it simply multi-user like any desktop linux? You could log in like a normal user or like root and that would be it. I guess there are serious reasons for the current design but it certainly doesn't seem natural at all.
2. In linux I can always figure out what the UI does in terms of the command line, so for instance if I use something on the UI (click an icon or bring up a menu) I can almost always do the same from the command line. This way I really know what's going on and if needed I can customize things. Case in point: right now I have to tap the phone a couple of times until I get to the broadband data transfer ON/OFF switch. It would be really neat to have an icon on the home screen that would do this. But I can't figure out what "command" needs to get executed to bring up the data transfer ON/OFF switch, so I really don't know how to create such an icon. This is just an example, I could come up with others easily, stuff I'd like to do, but can't figure out what happens under the hood. And it seems people create all sorts of simple trivial apps for these kinds of simple trivial tasks, when it should be possible to hack something up really fast. Any pointers on how to see what a UI interaction does and how to replicate it in a slightly different context? For example the broadband data transfer ON/OFF switch on the home screen?
3. I'm missing bash and top, ping, kill, cat, ls, etc, etc, Is there such a thing? (I already found connectbot but it would be nice to have scp and ssh inside a shell).
4. On my linux notebook I have a bunch of ad servers in /etc/hosts redirected somewhere else so they don't consume my bandwidth and don't clutter the webpage I'm trying to read. Can I have something similar on the phone? Is there something like an editor? I normally use vi, would be great to have that on the phone.
5. What controls the startup applications on boot? There are a bunch of stuff I bet I don't need but can't tell the phone to not start them. I guess I need to "root" the phone for this, but see question 1 Something related, I heard it's not possible to delete the factory installed bloatware without "rooting" the phone, is that true?
I guess that's it if anyone would make me feel as at home on the android phone as I feel at home on a linux desktop/notebook/etc I would be really grateful!
Cheers,
Daniel
1) Because the phone manufacturers lock Avg. Joe out of the system files to keep them from doing potential harm to the software. It saves your carrier millions per year in technical support costs.
2) Hold your finger down on an open section of the homescreen to open up a menu that will allow you to create shortcuts to important commands. You may also wish to install a custom Launcher that has more customizable features compared to whatever stock Launcher your carrier put on it.
Addendum: Root your phone, then install "Terminal Emulator" from the Play Store. Type in "su" and you'll then have superuser access to your phone's command line. From that point, it's pretty much exactly what you'd expect from Linux.
3) See Addendum to 2.
4) You could do it yourself, or let others do it for you. Root your phone, then install "AdFree" from the Play Store. Set up AdFree to automatically update and you're good to go.
5) 2 ways to get rid of bloatware, either root and use the Terminal to delete it yourself, or root and install a custom ROM that already has it removed. I highly, highly suggest rooting and switching to Cyanogenmod 9 as soon as possible. Go to your phone's specific forum on this site for instructions for practically everything you could ever want to do with your phone.
Note to 5: Your carrier sticks its bloatware into your system files, instead of in your user accessible app data. To change system files in any way, you'll need root access to your phone.
Here's a link to the development section for the Galaxy Note, please read all the rules and very thoroughly read all instructions before actually doing anything to change your device in any way:
http://forum.xda-developers.com/forumdisplay.php?f=1349
sreza said:
1) Because the phone manufacturers lock Avg. Joe out of the system files to keep them from doing potential harm to the software. It saves your carrier millions per year in technical support costs.
Click to expand...
Click to collapse
I see, makes some sense for them, but I'm wondering if Microsoft can afford to have an Administrator account exist on Windows, why can't android be shipped that way (rhetorical question).
Addendum: Root your phone, then install "Terminal Emulator" from the Play Store. Type in "su" and you'll then have superuser access to your phone's command line. From that point, it's pretty much exactly what you'd expect from Linux.
Click to expand...
Click to collapse
Looks like this is what I have to do
I highly, highly suggest rooting and switching to Cyanogenmod 9 as soon as possible.
Click to expand...
Click to collapse
On the cyanogenmod website I don't see samsung galaxy note listed as a supported device.
http://forum.xda-developers.com/forumdisplay.php?f=1349
Click to expand...
Click to collapse
Thanks, this is very helpful.
Another n00b question: how the hell does one quit the default browser? It looks like there is no way to close the last remaining window.
fetchinson said:
I see, makes some sense for them, but I'm wondering if Microsoft can afford to have an Administrator account exist on Windows, why can't android be shipped that way (rhetorical question)
On the cyanogenmod website I don't see samsung galaxy note listed as a supported device.
Another n00b question: how the hell does one quit the default browser? It looks like there is no way to close the last remaining window.
Click to expand...
Click to collapse
Because Windows can't afford to alienate power users by locking down their system. If they did, they'd be Apple. Also, remember that it's not Google that's locking you out of root, it's the phone manufacturer/carrier; which aren't exactly known for being bastions of ethics...
Windows is actually starting to lock you out of functions with Windows 8, the ARM version of Win8 can't sideload applications.
Cyanogenmod might not be officially supported for the Note, but there's probably a few devs on the Note's forum that are unofficially making a port. Try this ROM:
http://forum.xda-developers.com/showthread.php?t=1552554
There is a way to close the final window if you go into the browser menu and close it, but it's really not necessary. Android will auto-close old background tasks if you start to run low on memory. You may also want to look into downloading a different browser from the Play Store. I've never bothered, but I've heard good words about Opera Mobile. Dolphin HD is absurdly popular, but at it's heart it's basically the stock browser reskined, which offends my sensibilities, lol.
Also, if you're on ATT, you may want to check out these instructions on how to get unlimited data on smartphones for $15 per month:
http://forum.xda-developers.com/showthread.php?t=1446373
Thanks for all the useful info!
While looking further around on the phone I stumbled upon another thing which would be quite trivial on ordinary linux: how do I see the creation/acces/modification times for any file? I've installed Terminal Emulator from github, "ls" works, but not "ls -al".
Also, how do I check if there is any network access at all or if an application tries to access the network or not? On linux I would run the program though strace and that would show me all system calls so I would see what the application is up to. For instance the S Note application (it's a samsung note taking application for the Note) takes a long time when I save a note, which makes me think maybe it wants to sync the file to a samsung cloud service or something like that. How do I check what takes so long for this app, in particular if it wants to access the network or just plain slow?
fetchinson said:
Thanks for all the useful info!
While looking further around on the phone I stumbled upon another thing which would be quite trivial on ordinary linux: how do I see the creation/acces/modification times for any file? I've installed Terminal Emulator from github, "ls" works, but not "ls -al".
Click to expand...
Click to collapse
With the terminal, I'm not sure, but you could download one of many file managers from the Play Store and view the files' properties through that.
Edit: I have Terminal Emulator from the Play Store, and "ls -al" works fine for me (see screenshot). I'm also using Bash for my shell, so that could be it. Also, see about Busybox below.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Also, how do I check if there is any network access at all or if an application tries to access the network or not? On linux I would run the program though strace and that would show me all system calls so I would see what the application is up to. For instance the S Note application (it's a samsung note taking application for the Note) takes a long time when I save a note, which makes me think maybe it wants to sync the file to a samsung cloud service or something like that. How do I check what takes so long for this app, in particular if it wants to access the network or just plain slow?
Click to expand...
Click to collapse
You can probably find an app in the Play Store with that functionality. Wireshark is in there, so I'm sure something like strace has been done.
Also, look into installing Busybox from the Play Store. It provides a lot of the normal Linux terminal commands you might be missing.
EndlessDissent said:
Edit: I have Terminal Emulator from the Play Store, and "ls -al" works fine for me (see screenshot). I'm also using Bash for my shell, so that could be it.
Click to expand...
Click to collapse
Sweet! So how did you get Bash? Is it something working together with Terminal Emulator or a separate application (whatever the appropriate android lingo is )? If I search the play store for "bash" I don't really get anything resembling a shell, but probably I'm just overlooking something obvious. Installing this would be a great start.
EndlessDissent said:
Also, look into installing Busybox from the Play Store. It provides a lot of the normal Linux terminal commands you might be missing.
Click to expand...
Click to collapse
Thanks, this looks great too!
Going the Other way
Hi
Android and it UI's is not like any X11 based desktop, but buying an android devices is what got me into using linux as my main desktop and I tend to think as them as one and them same at a command line level at least.
If you comfortable with building from source you can cross compile any tools you are missing.
They numerous time saving widgets and the like on google play. i.e wifi toggling which sit right on your main screen.
You'll find that most utilities and useful stuff has been ported to android.
If you want to use vim I would download "terminal ide" which is an IDE which runs on android, if your familiar with java you can create application directly on the devices
it also contains bash, busybox and more.
Busybox is a multicall binary. Androids native one is called toolbox and can be found in /system/bin. If you want to port your favourite bash scripts over then there's script managers which will run scripts at startup etc.
Obviously with these optimized binary all the help and in the case of android toolbox, any command not need by the system is general left out. It's not meant for as a general purpose shell.
Trivia: splitting up you parameters when using toolbox can sometime help e.g "ls -l -a" works where as "ls -al" didn't
You can remount the root and /system as read writable, a man of twenty years linux doesn't need the dangers of that explaining.
There's a plethora of Root tools for removing system packages and general tweaking, google play is you friend in this case.
If the android UI really does not live up to your expectations than you always install Ubuntu.
When you rooted your device and unlocked you bootloader and basically voided any manufacturers warrenty (not something I care about, but I t seems important to some people ) that came with the device you just got a computer with a different cpu architecture, so the opportunities are limitless with what you can do with it
Have Fun!
T
Related
This is easier than making a cup of coffee.
Pictures below as attachment couldnt figure how to put the pic here edit figured it out now im just lazy.
you dont have to do it the hard way
Everyone (edit: i thought so at the time)will want this "Fully" (note below) funtioning Ubuntu system
or you can make your own here: http://forum.xda-developers.com/showthread.php?t=913622
I will be maintaning and updating as time permits
Phone has to be rooted: http://forum.xda-developers.com/wiki/index.php?title=HTC_Supersonic/Guides_&_Tutorials
NEW IMAGE 3.5 gigibyte
Lucid base image (only added: lxde and tightvncserver): Zip http://www.megaupload.com/?d=GLMYVCMN User: "dad" Passwd:ffffffff
Remove app2sd and settings- applications- manage applications- sdcard "move all apps to phone" or it will not work!
I suggest you install gnome-panel
I use it and i find no speed differance!
trying to get :upstart services" to work im looking into compiling a kernel with "CONFIG_TMPFS enabled, to initiate a workaround, because "upstart" services wont work in a chroot.
Stock Maverick : http://www.megaupload.com/?d=56AT71WD
Karmic Sucks programs stop opening after some short time, so i gave up.
Tested with: CM7 http://mirror.teamdouche.net/get/supersonic/update-cm-7.0.0-RC1-Supersonic-signed.zip
CM6: http://mirror.teamdouche.net/get/supersonic/update-cm-6.1.2-Supersonic-signed.zip
myn-WarmTwoPointTwo-11-05-2010-RLS-3
Unzip
Copy the "ubuntu" folder to your sd card
Go to market download "Terminal" and android VNC Viewer
Open terminal and type: (without the quotes), "su" then "cd /sdcard/ubuntu"
then "sh ./ubuntu.sh"
then "bootubuntu"
then "vncserver :0 -geometry 1024x800"
Thats it, go to android VNC Viewer and use dad for nickname, "ffffffff" for the password, "localhost", for address, 5900 for the port, Use 24bit veiwing settings, then go.
to shutdown you will have to power off phone and power back on.
Enter in your :"Initial Command",in the settings of Android Terminal:
su
cd /sdcard/ubuntu
sh ./ubuntu.sh
bootubuntu
So everytime you want to start ubuntu just open terminal
to start VNC SERVER automaticly you will have to add to the bottom of your /home/.bashrc file this:
cd /
rm -r -f /tmp
mkdir /tmp
vncserver :0 -geometry 1024x800
Thats it, your off ENJOY
Notes: Its as fully funtioning for myself, cant speak for everyone
This is in Beta stages I am an old Visual Basic dabbler as a hobby, and am not very fluent in the lenux operating system. However this "ubuntu on mobile device" has rekindled a lost desire to program.
I will update changes as i get the time
If anyone would like to contribute their lenux expertese to iron out the bugs, i and so many others would appreciate it
Issues to work on:
:no sound
NOTE: A big kernel level problem is the lack of sound. Most of the kernels we use as a base for our ports are designed for Google Android. Android doesn't use the standard Linux sound System ALSA. An ALSA wrapper for the EVO DSP kernel system must be written.
:Setting up users and groups (used kusers but seemed to slow system a bit, needs kde-common) But is very tolorable, I actually use dolphin. (cant get nautilus to create folders or files (destination read only? u got me)).
:hacked /root/.bashrc for easy login help (when using terminal runs .bashrc. dont know anotherway to start hamachi on login and also vncserver tries to restart)
:keyboard mapping (mapping arrow keys to the abc keyboard it has arrow keys, esc,etc...)
: No way to exit or turn off ubuntu. You have to turn off phone, to turn off ubuntu.
nce in a while the programs refuse to open, it has somthing to do with ?. you have to restart ubuntu again.
I suppose a fluent ubuntu/lenux person could help change usernames and such, using the terminal,set proper permissions and such
Im using CyanogenMod Rom its the only one that works with Hamachi
your rom will most likely work, however networking wont!
Tips:
ownload VNC for your computer and modify your ubuntu desktop on your computer screen (that way i dont need my glasses) (use "ifconfig" to find ip address)
:You can even use VNC to view the build while in qemu emulation, after installing lxde and tightvncserver in the emulation. (watch out for seg faults)
:In terminal, preferances-initial command, enter the "cd /sdcard/ubuntu ...etc ," that way its a one click to login .
:Get "abc keyboard" from market it has the esc, arrow keys etc... ( extra keys only good outside chroot, the "terminal", on your android desktop)
:If your not familiar with ubuntu, you use synaptic package manager to install programs
:When u share over himachi or start smbd, programs will stop opening.
.
Trust me everything i want it use it for seems to be pretty zippy, but just give a little xtra time for programs to load the first time. (Firefox may take 90 sec. to load the first time. After that its a snap)
I Would like to check into this
The no sound issue is getting to me, I may wait for that as that is an essential to my all in one device.
THANKS FOR THE HARD WORK. I LOVE UBUNTU
you really have to try it and tell everyone about it cant believe its not one of the hottest topics
I Would like to check into this
any way to delete this post....didn't mean to submit, came back to send like i didn't send it but ending up sending twice
apologies
Sounds pretty cool, I will defiantly have to give this a try. Question though, is this installing over top of the rom I am currently using. Example I am using the MIUI 1.22, if I install this is this like dual booting or will it just uninstall every time I reboot the phone??
Is it still uploading? I really want to try this!
corybucher said:
Sounds pretty cool, I will defiantly have to give this a try. Question though, is this installing over top of the rom I am currently using. Example I am using the MIUI 1.22, if I install this is this like dual booting or will it just uninstall every time I reboot the phone??
Click to expand...
Click to collapse
This will sit on your sdcard and ride side by side with your android system (you can use your phone at the same time)
IT DOES NOT EFFECT YOUR PHONE IN ANY WAY
wasnt shouting just wanted everyone to see
ioos said:
Is it still uploading? I really want to try this!
Click to expand...
Click to collapse
Download away!
This is awesome! I can't wait to get home and give it a try.
This is gonna be a great weekend. Between this and the flashable ROMs that are starting to roll out for my nook color, I might be sprouting antennae by Monday.
So wep cracking soon...? That's about the only thing I want/need Linux for.
Sent from the void...
wuclan48 said:
So wep cracking soon...? That's about the only thing I want/need Linux for.
Sent from the void...
Click to expand...
Click to collapse
How would one go about this "wep cracking thing"
please explain further
Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)
**most wpa specifications are not crackable yet and those that are often have a very stringent set of requirements (off the top of my head: most require someone to be legitimately connected to the access point and very simple passwords with low encryption.
On topic, though, this is sweet. Hope I can get something like this on my galaxy tab too!
EDIT: If you really need to know this (please only for testing... not to mooch people's internet) Google "wep cracking on backtrack"
The short simple answer is you sniff packets that the wireless access points send out and manipulate them to decrypt the key.
EDIT 2: I just realized you are also the guy who made this. Let me answer a few questions.
1) For audio you probably need to find a way to register the hardware with a Linux Audio Mixer. I'm guessing Ubuntu uses ALSA? I'd have to look that up
2) For users, kusers is part of the KDE desktop system. Ubuntu uses GNOME. People generally only use one or the other (unless they're trying to show off). That's probably why it either a) won't work or b) not work well and take up lots of extra space
3) It's Linux, not Lenux (but that's fine I can sense English isn't your first language... it's not mine either, but that's fine ^^)
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Sorry i just used the wizard and made a zip file with winzip 12.1
Quote"Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)"
Thanks for the info
laydros said:
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Click to expand...
Click to collapse
shame on me .
Your right im a noob and really know too much about it yet i just like having ubuntu on my phone.
Ill do better next time
People talking about cracking WEP and stuff, this probably doesn't have a driver to put the wireless card to put the card in monitor mode.
laydros said:
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Click to expand...
Click to collapse
Have the same problems, did you happen to find anything to open it with? I searched a little on google myself but all I find is software that needs to be purchased.
Homefix said:
Quote"Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)"
Thanks for the info
Click to expand...
Click to collapse
AFAIK, WEP can be easily cracked. WPA or WPA2 though, will require bruteforcing, there is no way around it.
corybucher said:
Have the same problems, did you happen to find anything to open it with? I searched a little on google myself but all I find is software that needs to be purchased.
Click to expand...
Click to collapse
I will repackage it, but it might take 3-4 hrs to upload, sorry.
ill get right on it
by default android seems to royally suck at it. i'm hoping for a way to force android to give all available resources to the active app? to me it seems like common sense but it seems that everything is ran on an average priority which means whatever i'm doing is battling it out with random other things in the background whereas the active app (the one i'm using) is more important than anything else android is doing.
It was one of the root-required task managers on the market... It allowed you to increase some number that might have been priority-related, but that's all I remember. Hopefully those hints will give you something to look for.
Sent from my Wildfire S
Just use zeppelinrox's V6-turbocharger and the "bulletproof" tweaks, you'll have to do it manually for each app you want to stick around, but it works like a charm. And it's free, unlike the Market apps...
hmm, any idea for the market app?
Searched around the bulletprof, but its a little difficult
Why not use "htop"?
With a rooted phone & terminal emulator & hackers keyboard this is not a problem
The only difficulty is to find the right process - they are all named app_(?) (or similar).
But if the process really needs the whole system resources you could easily identify it!
Yup, all it takes is :
-a rooted phone (you need it to modify the system settings)
- a terminal emulator [any one will do. I use Better Terminal Emulator but it's the Rolls Royce of terminals, because I spend quite a lot of time scripting with the BASH shell, so a good terminal is mandatory for comfort of use ]
- a little knowledge of shell (all you need to know is how to open the terminal, the "su" command to switch to superuser mode, "top" to see which are the running processes, "echo" to send the value into the required variable, and "kill" to kill a running process if need be), not really rocket science...
Now if you insist on using an app (that's probably not free), be my guest..
But don't ask me which one to use, because I ain't got a friggin' clue about that..
User Management
Dropbox link - While it's available on Dropbox, I'd really prefer it if you would use the Google Play option, as it help me keep statistics on device usage, and allows you to send error reports in case of problems
As recently discovered, Jelly Bean contains experimental and unofficial multi user support.
I've written an app for rooted Jelly Bean devices that allows anyone to use a simple GUI interface to do the following, without even touching the command line:
Create a user
View list of existing users
Rename users
Delete users
Switch to another user
The Primary user can be renamed, but not deleted. I disabled its deletion as it near-bricks the device, as detailed here (along with fix if you somehow manage it).
There is a donate version as well, but I won't be linking to that as it seems to be against the rules.
NOTICE: The SD Card permissions are required to rename the users. I couldn't find a way to save to the file system, so I read the user's file using the cat shell command, edited it with the new name, saved it to the SD Card and then used the cat command to overwrite the initial file. It's hacky, but it works.
I'd appreciate it if you could try out the app, perhaps buy it if you like it
Comments/suggestions are always welcome
As of now, the only way to switch back to the Primary user is if you hold down the power button and select the Primary user from there. This is because root access does not persist for any app, including Superuser itself across different accounts.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
FAQ
What commands were used?
All were executed in a # (root) shell
To create a user (leave the quotes in if the username being create has a space. Single word names don't need them):
Code:
pm create-user "user name"
To delete a user (replace <user-id> with the user's ID):
Code:
pm remove-user <user-id>
To list all users:
Code:
pm list-users
To switch to another user (replace <user-id> with the user's ID):
Code:
am switch-user <user-id>
To rename a user:
There is no command for this. I used the cat command to read the user's xml file (/data/system/users/<user-id>.xml) into a string array, replaced the user name, saved the file to the SD Card and used the cat command again to overwrite the original file. To reboot after the rename I used:
Code:
reboot
What could come handy is setting profiles for personal n General usage, most people use various call hiding, media hiding apps to hide personal stuff, the ideal way will be to unlock the phone with two patterns at the screen lock level, one pattern unlock for general profile the other for personal use where your personal call logs, media for gets unlocked automatically, there's an app call switch me, but it requires rebooting which is not practically usable
Sent from my GT-N7000 using xda premium
sanghaviraj said:
What could come handy is setting profiles for personal n General usage, most people use various call hiding, media hiding apps to hide personal stuff, the ideal way will be to unlock the phone with two patterns at the screen lock level, one pattern unlock for general profile the other for personal use where your personal call logs, media for gets unlocked automatically, there's an app call switch me, but it requires rebooting which is not practically usable
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
This is really not what the app was designed for. This app was meant to be a simple GUI interface to try out the limited multi user support without having to go to a terminal emulator or adb each time you wanted to do something like create or modify a user. The features you request should be implemented by Google themselves, as they likely will be in upcoming upgrades, and not by a third party app.
Any other comments/suggestions from anybody?
cool app
Good job brotha!
Billy
Raghav Sood said:
Any other comments/suggestions from anybody?
Click to expand...
Click to collapse
Could you show a screen shot of the final build main menu (the user selection screen)? Does this show up when you first boot up your phone/tablet?
Thanks!
TBayTom said:
Could you show a screen shot of the final build main menu (the user selection screen)? Does this show up when you first boot up your phone/tablet?
Thanks!
Click to expand...
Click to collapse
The third screenshot does show the user selection screen. You can tap on any one of the users, and a Context Menu shows up allowing you to rename, switch to, and delete that user.
Here is a screenshot of the menu:
This app does not start up on boot. Once booted, you must manually use the Primary account to open the app. This is because the app is simply meant to allow you to create and manage the users without using the terminal with a nice GUI, not attempt to replace or provide functionality that can only come from Google.
One suggestion: Landscape mode
Raghav Sood said:
User Management
As recently discovered, Jelly Bean contains experimental and unofficial multi user support.
I've written an app for rooted Jelly Bean devices that allows anyone to use a simple GUI interface to do the following, without even touching the command line:
Create a user
View list of existing users
Rename users
Delete users
Switch to another user
The Primary user can be renamed, but not deleted. I disabled its deletion as it near-bricks the device, as detailed here (along with fix if you somehow manage it).
There is a donate version as well, but I won't be linking to that as it seems to be against the rules.
NOTICE: The SD Card permissions are required to rename the users. I couldn't find a way to save to the file system, so I read the user's file using the cat shell command, edited it with the new name, saved it to the SD Card and then used the cat command to overwrite the initial file. It's hacky, but it works.
I'd appreciate it if you could try out the app, perhaps buy it if you like it
Comments/suggestions are always welcome
Click to expand...
Click to collapse
dietrichmd said:
One suggestion: Landscape mode
Click to expand...
Click to collapse
Sure. I'll push an update with it in a few hours
You may want to look at UserDetailSettings.java in the Settings app for the package manager code to enable/disable apps per user.
https://android.googlesource.com/platform/packages/apps/Settings/+/jb-release/src/com/android/settings/users/UserDetailsSettings.java
Not sure if it's easy or not but your app driven by a nfc tags open some interesting scenario like when i give the phone to my wife and she say: "oh, what a mess my iphone have few icons..."
or a shared phone usage for team ... or something like the chamaleon gui that when I arrive at home i switch the user from the profession usage to the private ones. Should be nice.
Is this doable?
Zemaree said:
Not sure if it's easy or not but your app driven by a nfc tags open some interesting scenario like when i give the phone to my wife and she say: "oh, what a mess my iphone have few icons..."
or a shared phone usage for team ... or something like the chamaleon gui that when I arrive at home i switch the user from the profession usage to the private ones. Should be nice.
Is this doable?
Click to expand...
Click to collapse
Yes. Both of these are doable. However, this isn't the purpose of the app. Though considering the amount of requests I've received for such features, I'll be making another app that does all this and more very soon.
So other than creating/naming etc is there any functionality like choosing apps/restrictions for accounts at this stage?
works as advertised keeps all apps from primary user on the guest accounts they just don't see any info becuase its like just installing them. Good job.
ellesshoo said:
So other than creating/naming etc is there any functionality like choosing apps/restrictions for accounts at this stage?
Click to expand...
Click to collapse
Well, @bradymobile did post a link to the source code of a User Specific Settings screen a few posts back. However, this appears to be in accessible from the normal Settings menu, and so I'm currently looking for the correct intent to open it up. Beyond that, you can use Nova or Apex as the launcher for the guest user(s), and hide all the apps you don't want to be visible there.
on latest cm10 the user management app doesnt seem to be able to gain root. In fact, even superuser isnt granted root once you switch to an account other than the primary. suerpuser denies itself and the user mangement app.
mallman said:
on latest cm10 the user management app doesnt seem to be able to gain root. In fact, even superuser isnt granted root once you switch to an account other than the primary. suerpuser denies itself and the user mangement app.
Click to expand...
Click to collapse
This is because apparently root doesn't persist across user accounts. The only way to switch back to the primary account is by using the power menu options. I haven't quite figured out why the root won't persist. It happens to all apps that need root.
Raghav Sood said:
This is because apparently root doesn't persist across user accounts. The only way to switch back to the primary account is by using the power menu options. I haven't quite figured out why the root won't persist. It happens to all apps that need root.
Click to expand...
Click to collapse
that is interesting. i would ask if the superuser permissions have changed upon switch but obviously you're not rooted so you cant tell. Following closely so god luck and thanks for the dev!
UPDATE: 09/12/2016 (dd:mm:yyyy, just in case).
The guide has been updated! . Enjoy it guys :fingers-crossed:.
I'm not responsible for anything that happens with your phone, also, some people experienced some bricks on certain devices, so, just take care where you put paths and data because your phone maybe vulnerable to bricks!
Hi guys, assuming that you read the disclaimer above, so you understand what you're doing, also, and not less important, that this will most likely void your phone's warranty.
Ok, let's go.
Firstly... what's Freenet? From Wikipedia
Freenet is a peer-to-peer platform for censorship-resistant communication. It uses a decentralized distributed data store to keep and deliver information, and has a suite of free software for publishing and communicating on the Web without fear of censorship. Both Freenet and some of its associated tools were originally designed by Ian Clarke, who defined Freenet's goal as providing freedom of speech on the Internet with strong anonymity protection
Click to expand...
Click to collapse
As Freenet started, they don't gave any signal of being ported as an APK for Android (or something like this) so, we'll enjoy the availability of OpenJDK for ARMEL and ARMHF thankfully to the development of Raspberry Pi and Arduino (and whatever else kind of free hardware).
What do I need?
You need to:
Download and install "Linux Deploy" (from Google Play)
Download and install a SSH Client (for Android) or this one (for Windows/Linux/Mac PC) (how to use below).
At least, 768 mb of free space on your internal or external memory (anywhere you want to put your distro)
Free space on your internal memory, or a SD Card. If you're going to use your SD Card make sure it's working well.
A good internet connection (to retrieve the packages) [ 6 mbps or more recommended ]
System Requirements
CPU: 1 GHz dual-core (any)
RAM: 512 mb
SD Card: 8GB Class 4 Memory Card(at least)
First part: Installing a Linux Distribution on your Android Device
Open "Play Store", search for "Linux Deploy" (or open the Play Store link written above).
Tap the first result and install it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Open "Linux Deploy" and tap the "Download" icon.
Then, set the settings below like this (unless you want to modify them and you know what you're going to do)
Distribution: Debian - I suggest to not change it, because OpenJDK/Oracle Java have trouble with other distros in ARMEL and / or ARMHF.
Distribution suite: wheezy - I suggest to not change it, because OpenJDK/Oracle Java have trouble with other distros in ARMEL and / or ARMHF.
Source path: http://ftp.debian.org/debian/
Installation type: File
Installation path: /sdcard/linux.img - to install to the internal memory (unless your phone isn't partitioned with a fake internal SD, else this will be your external SD), if you are planning to use your external SD leave it untouched or if you changed it write the variable ${EXTERNAL_STORAGE} instead of /sdcard.
Image size (MB): Whatever you want more than 768, in MegaBytes. - I suggest 3 GB ( 3000 MB* ) to make sure that the OS will have space for all what it wants to save.
File system: Auto
User name: android
User password: android
SSH > Enable: tick
It should look like those screenshots:
Marked parts with a red square are the most important things you should change as explained above.
That's all, don't touch anything else, unless you know what it does.
Now, get back to the application's main screen and tap "Menu" (your device's menu button or the three dots button at the top of the screen) and then "Install", it will give a popup saying: "Start installation of GNU/Linux system?"; tap "OK".
Allow the application to get root permissions.
WARNING: I've noticed a programming error in the software which makes it unable to wait the user to allow the superuser permissions. That way, the program fails sometimes to start the installation. If that happens, just tap Stop and then repeat the installation steps above and it'll work.
Then, wait until it installs the OS, and make sure you don't close the app and don't lose WiFi, losing WiFi connection will result in an unfinished and non-working Linux installation, then you'll need to delete "linux.img" and re-install, so take care; also for battery, make sure that it's nicely and lovely charged.
The installation, depending on your CPU, RAM and Internet Bandwith, will take up to, aproximately 3 or 4 hours.
For me, it took one hour (downloading at 6 Mbps).
When the installation ends, you'll see something like:
[xx:xx:xx] <<< deploy
Click to expand...
Click to collapse
(where x(s) were the current time when the process ended)
That for the last line.
It should look similar to this screenshot:
Second part: Preparing your distro for Java and Freenet
When you see the message explained in the above screenshot, you're able to tap "Start".
Tap "Start", and then "Ok". It should look like those screenshots:
When it successfully (or not) starts, it'll say:
[xx:xx:xx] <<< end: start
Click to expand...
Click to collapse
Like this:
Then, you'll see on the NavBar your IP address, for me, it is "192.168.1.115" (local). We're actually going to use Putty from Windows. A basic Putty usage will be explained in the next screenshots:
Browse to http://www.putty.org and click in the download page link:
Do the steps in order as shown in the screenshot:
Open putty.exe (yeah, I'm captain obvious)
Fill the text box with your phone's local IP address and then click "Open".
Hit "Yes" for that warning.
Congratulations! If everything's fine, you should see something like this:
Once done, type the next command hitting enter after every command:
Code:
sudo -s
nano script.sh
Then, copy this code:
Code:
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
(thanks to WebUpd8 for the repo and the commands list for Wheezy)
And paste it in Putty's window right-clicking anywhere in the window's black space.
Now run:
Code:
sh script.sh
Follow the installation steps shown by the script and don't forget to accept any of the terms and conditions shown by Oracle's Java installer.
When it installs, you can type:
java
To check if it works; if it works it'll give you the help menu.
Okay, then, type:
wget 'https://freenetproject.org/jnlp/freenet_installer.jar'
And then:
java -jar freenet_installer.jar
When you complete the wizard, you need to run it, so, do
cd <where you put it>
And then do
sudo nano run.sh
edit the line where it says "./bin/wrapper...." and "./bin/1run.sh...." change them to "/bin/wrapper..." and "/bin/1run.sh...., then, save with CTRL + O and Y.
Right now, you can do:
./run.sh start
Let Freenet do the first run, when it completes (about 10 minutes), visit in your Android browser that URL:
http://127.0.0.1:8888/
Complete the wizard, and then, you're done, you can use Freenet exactly as you do with your PC
Third part: My phone is lagging and Freenet / whole Distro aren't responding! What should I do?
Remember, nothing is perfect, an entire OS running behind another is a nicely big task assuming that it's an ARM processor and it's running on a phone, but you can do something to get it a bit more responsive; just do it:
Clean your RAM before opening your browser, to make sure that all other trash is removed
Have your phone in a cold state, at least during Freenet bootup and during node announcement
Shut it down properly (stop Freenet with CTRL + C and then, after all is closed tap STOP on the Linux Deploy's UI)
Freeze bad programmed apps, such as: Files Managers (almost all of them), Google Now (Google Search App), Facebook, Fancy Widgets, Google Play Services, Google Play Store, Messenger, Whatsapp and almost every game
Switch to another ROM that's better managed than stock or your current custom; for the Alcatel One Touch Idol 6030a I suggest to switch to DragonPL wich is the better that I found for that phone, anyway it's for the MT6882, I checked that it works perfectly!
And, at last, reboot your phone, it might be good; if you reboot it, please make sure that you do a Full Reboot and not a Software Reboot, because of doing a Software Reboot may leave some data loaded to RAM and it will be exactly the same (or worse) that leaving it as it is.
Hope you enjoy it! Leave a "Thanks" if you like it!
Very big THANKS!
I personally tested the this guide, it's awesome!
Anyway I suggest to include a little guide to install oracle java8 since openjdk7 is quite old and Freenet complains about it.
Personally it's not a big deal, but for others can be difficult.
EDIT: I'm on SM G850F and it runs perfectly.
Cobmaster said:
I personally tested the this guide, it's awesome!
Anyway I suggest to include a little guide to install oracle java8 since openjdk7 is quite old and Freenet complains about it.
Personally it's not a big deal, but for others can be difficult.
EDIT: I'm on SM G850F and it runs perfectly.
Click to expand...
Click to collapse
Thanks for your contribution at making this guide better.
I believe the Java thing can be solved by just updating apt-get's database and running the installation command changing the 7 for an 8. Please reply if it's just that or tell me what you did to get it to work with Java 8 and I'll add it to the guide.
Also, it's likely to be outdated. I thought no one was going to see it anymore, I'll update it later . Just tell me that, please.
EDIT: I've updated the thread with all the new requirements and setup. All done, enjoy it .
Smith Jones said:
This is insightful.
Click to expand...
Click to collapse
Thanks . I hope you enjoy Freenet's power .
facuarmo said:
Thanks for your contribution at making this guide better.
I believe the Java thing can be solved by just updating apt-get's database and running the installation command changing the 7 for an 8. Please reply if it's just that or tell me what you did to get it to work with Java 8 and I'll add it to the guide.
Also, it's likely to be outdated. I thought no one was going to see it anymore, I'll update it later . Just tell me that, please.
EDIT: I've updated the thread with all the new requirements and setup. All done, enjoy it .
Click to expand...
Click to collapse
I was about to write a reply, but you are fast! Good job!
:good::good:
Cobmaster said:
I was about to write a reply, but you are fast! Good job!
:good::good:
Click to expand...
Click to collapse
Thanks. Your post made me re-read the thread and notice how outdated it was, .
This is probably a hell of a way to make a first post, but whatever.
So, in preparation for the wall of text upcoming, a tl;dr: kingoroot for windows (and probably the android app as well) calls "dumpsys iphonesubinfo" over adb for no discernible reason, obtaining the IMEI of every phone one attempts to root with kingoroot. In addition, the application tries to obtain some other nasty things, like the phone's GSM baseband version number and battery information, all of which are entirely useless for something claiming to just root a phone.
Ok, so first for some backstory. I recently got a prepaid ZTE paragon from best buy for 5 dollars. The hardware is pretty good for the price:
-Qualcomm 410
-1 GB RAM
-sd card slot
- IPS screen
Unfortunately, the phone is running Android 4.4.4 out of the box. Because of this, every trustworthy rooting app I could find failed on the phone, as all of the relevant bugs have been patched. So, I turned to China to give me my su jollies, and indeed, Kingoroot managed to root my phone with little trouble. This got me curious: what exactly was that windows executable doing on the phone anyway? And that's where this all begins....
I first tried to sniff the adb traffic between the computer and the phone. Unfortunately, there is no way to do this: adb sessions are isolated from one another, and so there is no real way to see what the Kingo adb thread was doing from a different shell. So, I went one level deeper and scanned ALL of the USB packet traffic on the computer with USBPcap. After opening up the hex dump, this worked a treat: I could see plaintext in the packets corresponding to adb shell commands. After several hours of skimming through the several megabyte dump, I could see roughly what the Kingo app was doing on the phone: It determines some system information (the model number, whether or not the phone is already rooted, some more unsavory stuff I'll get onto later), then copies over the apk of the splash screen that you get on your phone. When you click the button to root the phone, the executable copies over a lot of files to /data/local/tmp (some root essentials like the su binary and busybox, the main exploit binary called "kingo", and some scripts to ensure root persistence after the main root), chmods busybox, the root exploit, and su to give execution rights, and runs "./kingo kingo", which after several seconds creates a temporary instance of the su binary which you can call over adb at that point. (Interestingly, this must be run as "./kingo kingo" to work; anything else causes a segfault. Some form of password protection, maybe?) It then runs some scripts and rearranges some files with this newfound root access to maintain persistence, deletes all the files it brought over, and quits.
My main interest here was determining the root exploit Kingo were using to root the phone, and so after factory resetting the phone, I rooted it again using the app and copied over any files I could see in /data/local/tmp from a second adb instance. This gave me the set of files Kingo was using to root the phone, and after another reset, running the magic exploit offline indeed gave me temporary root access to the device (I haven't fully figured out how to make persistence work, but that is not the main issue here). So, after some hunting around on the internet to see if anyone else had gotten any information on this magic executable, I found some threads here on XDA claiming that Kingo was stealing some information about your phone and sending it to the Chinese mafia or something. Naturally, I was somewhat upset by this: I was running this in my good Windows VM! Now I have to reset it! But this again piqued my interest, and so I went to see if Kingo really was doing anything malicious.
For those who are unfamiliar with the story, Kingo was caught obtaining the IMEIs of phones which were rooted with the app. This upset a lot of people, and so with version 1.2.2, the Kingo developers claimed to have removed the ability to capture phone IMEIs. (Of course now, I know this is a pile of ****, but let's keep going.) So, first things first, I pulled out my packet log of the rooting endeavor and searched for my ZTE's IMEI. And with this, I found in the packet log:
Code:
529 17.074812 5.2 host USB 58 URB_BULK in:
Device ID = 865895021744484
Oh dear....
(Note that I'm not planning on using this phone for any networking over the cellular modem. I don't really care if this phone's IMEI is stolen. That is actually the phone's IMEI, btw)
Looking a little higher into the packet log revealed that Kingoroot was calling "dumpsys iphonesubinfo" over adb shell to obtain this information, and looking around some more revealed the following gems:
Code:
535 17.102832 host 5.2 USB 56 URB_BULK out
getprop gsm.version.baseband
and
Code:
547 17.124868 host 5.2 USB 43 URB_BULK out
dumpsys battery
Now I don't know about you, but I can't for the life of me figure out why a rooting program needs access to my IMEI, my GSM baseband version (!) and my battery information just to root the phone. To add insult to injury, all of this is done after
Code:
388 13527122 5.2 host USB 108 URB_BULK in
Qdevice::ro.product.name=P821A21;ro.product.model=Z753G;ro.product.device=faerie;
was sent over by the phone, indicating that all of the identifying device information that should have been sent was already sent.
This is only the shady stuff kingo is doing before the root happens too! After root privileges have been obtained, there is an unsettling amount of time taken until the application claims to be done and when it appears to actually be done.
I haven't looked through the whole packet log yet, but just from a brief look at the post-root adb commands packet 15710 has the executable calling "getprop", and who knows what the Chinese mafia are going to do with all of that information!
So, in conclusion, I set out to figure out how KingoRoot for windows roots android phones, but also determined that Kingo never really stopped doing shady **** as they claimed. To anyone who wants to take a look at the files I found for themselves, here (www (dot) filedropper (dot) com (slash) kingo)(I still can't post urls) is a link to everything I found during my little experiment. In that zip is the USB packet log for others to find some interesting information in (just open in wireshark) , the files kingo uses to root my Android 4.4.4 phone (I humbly defer to people who know more about binary reversing than I do to figure out what the hell that binary does), and some instructions to rooting a ZTE paragon z753g with this binary should you happen to have such a phone yourself. I realize that disclosing a root executable is not a particularly good idea, but considering the process to obtain it is so straightforward, I don't think not providing it is stopping anyone who wants to do something nefarious. If someone tells me to take it down, I will, however.
In addendum, I have a couple requests of anyone reading this. If you have a phone you don't particularly care about, download USBPcap, ADB, and the kingoroot executable and get the USB packet log during the whole interaction and the contents of /data/local/tmp (just copy that directory to a known safe place, like /sdcard/Download). Im curious if
1) Kingo actually uses different exploits for different phones and
2) the IMEI and baseband firmware version are always sent over
Finally, if anyone out there is good at binary reversing, I am curious about what exploit the "kingo" file is using to root the phone. When I look again at this process, nothing particularly screams that this actually requires the debugging bridge to work; presumably a rogue .apk could do the same thing. (Or worse yet, an ACE exploit like Stagefright) Although the Kingoroot Android app did not root the phone I used for this experiment, I have reason to believe that the same or a similar exploit is being used there, as opening a simultaneous adb shell reveals su privileges being obtained at a certain point of the process, although presumably the process fails because the persistence creating scripts didn't work for some reason.
So, in actual conclusion, Kingoroot is untrustworthy, panic and run
Thanks for this thread.
Kingoroot didn't root the phone, but stole the IMEI. This is 100% theft.
---------- Post added at 05:56 PM ---------- Previous post was at 05:35 PM ----------
zzazzdsa said:
This is probably a hell of a way to make a first post, but whatever.
So, in preparation for the wall of text upcoming, a tl;dr: kingoroot for windows (and probably the android app as well) calls "dumpsys iphonesubinfo" over adb for no discernible reason, obtaining the IMEI of every phone one attempts to root with kingoroot. In addition, the application tries to obtain some other nasty things, like the phone's GSM baseband version number and battery information, all of which are entirely useless for something claiming to just root a phone.
Ok, so first for some backstory. I recently got a prepaid ZTE paragon from best buy for 5 dollars. The hardware is pretty good for the price:
-Qualcomm 410
-1 GB RAM
-sd card slot
- IPS screen
Unfortunately, the phone is running Android 4.4.4 out of the box. Because of this, every trustworthy rooting app I could find failed on the phone, as all of the relevant bugs have been patched. So, I turned to China to give me my su jollies, and indeed, Kingoroot managed to root my phone with little trouble. This got me curious: what exactly was that windows executable doing on the phone anyway? And that's where this all begins....
Click to expand...
Click to collapse
Does Helium Backup work on this phone? I also bought this phone for $5.
I don't really need to root this phone. I just need to disable some System apps for my privacy.
Some members want root at any cost. You're not posting anything that's not already known.
But as with anything, flash at your own risk. That is the bottom line in this hobby.
Read, research, decide. The responsibility is on members to flash what they want. So, use it or dont. Not much more to say. :good:
And SU ??
Sent from my SM-A700FD using Tapatalk
Awesome post. Thanks!
Two comments/questions:
1. I bought two of these phones for my girls (3 years old and 1 year old). I want to load some games and some videos. I need to root so that I can load apps onto the SD card, etc. Should I worry about using Kingoroot or just go for it? They aren't going to be doing email.. at most taking pictures probably. Maybe Dropbox access. Pandora. So some (of mostly my) credentials going over the air.
2. The link you didn't post (see what i did there?) doesn't work any more. Care to upload it elsewhere? Feel free to PM me if you want.
Edit: I should also say this.. these are the only android phones I've ever owned. But I do consider myself very tech savvy (few programming languages, very comfortable at a unix command line, etc). So if there's any newbie android advice for securing a phone for kid use I'm happy to hear it!). Thanks
I have only used KingRoot on a Blu device and then which, gave to my father.
Thanks for all the work, another vendor of my list.
couldn't get Kingo to work
So inspired by the above post I tried Kingo and it didn't work. After much screwing around with Windows in VirtualBox I got Kingoroot installed and it even said it rooted it - but I couldn't get anything (i.e. SuperUser) to work correctly. Mind sharing your method for getting it to work?
@zzazzdsa You gotta do some research on Kingroot
They claim on their website that they parented up with XDA....
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Newyork! said:
@zzazzdsa You gotta do some research on Kingroot
They claim on their website that they parented up with XDA....
Click to expand...
Click to collapse
Nope. Lol
No affiliation. But anyone can put anything out there on the interwebz.
So i haven't had much time to play around with this some more, but I can post a rough guide to making a sniffing setup if you want to play along at home.
First, you're going to need a windows computer. It doesn't matter if it's virtualized, it just needs to have USB support enabled (via native support in VMware or the PUEL extension pack in VirtualBox)
Second, you will need to download adb for windows, USBPcap, and wireshark. All of those can be found with minimal googling. Once you have installed all three, you are ready to go.
Plug in your phone, enable adb on the phone, start USBPcap and an adb shell, and then start kingoroot.
Let kingoroot do its thing. While it is rooting the phone, pay close attention to the directory /data/local/tmp over adb. If anything interesting appears there, copy it over to a safe directory, like the emulated SD card.
Once the phone is rooted, close USBPcap, open wireshark, and comb through the packet log with a fine-toothed comb to find plaintext adb commands which will make the exploit work. A useful tip: the packet log will be extremely long, but almost all of the length will be due to the packet capture picking up file transfers as well. You can filter out these long file transfer sequences without losing any useful information.
zzazzdsa said:
So i haven't had much time to play around with this some more, but I can post a rough guide to making a sniffing setup if you want to play along at home.
First, you're going to need a windows computer. It doesn't matter if it's virtualized, it just needs to have USB support enabled (via native support in VMware or the PUEL extension pack in VirtualBox)
Second, you will need to download adb for windows, USBPcap, and wireshark. All of those can be found with minimal googling. Once you have installed all three, you are ready to go.
Plug in your phone, enable adb on the phone, start USBPcap and an adb shell, and then start kingoroot.
Let kingoroot do its thing. While it is rooting the phone, pay close attention to the directory /data/local/tmp over adb. If anything interesting appears there, copy it over to a safe directory, like the emulated SD card.
Once the phone is rooted, close USBPcap, open wireshark, and comb through the packet log with a fine-toothed comb to find plaintext adb commands which will make the exploit work. A useful tip: the packet log will be extremely long, but almost all of the length will be due to the packet capture picking up file transfers as well. You can filter out these long file transfer sequences without losing any useful information.
Click to expand...
Click to collapse
How did you get kingoroot to root your ZTE Paragon? I thought this phone cannot be rooted.
Get a virtual Windows machine running. Download the pc app at kingoapp com. Plug in, root. The problem is getting apps like super su to work given lack of /system write access. get that figured out and I'll give you a few gold stars. Because from what I can tell that's all that's holding me back from moving my apps to the sd card.
OMG LOL!
Then What? They are going to sell my imei number
With as much due respect for someone I've never met: so what? It's a $5 phone. If they get your imei and something bad happens I'll personally refund your $5.
If you're really nervous about that run your virtual machine thru a mitm proxy and filter out anything that looks like your imei.
Sounds like a very shady enterprise overall.
Wasn't planning on using it anytime soon but thank you for the heads up.
Just goes to show, when in doubt come here first.
Hi, my only concern is many novice use wifi at work is there a risk to hijacking a system via
Wifi, if the imei is the security password key used
By many phone services that allow access to towers.
Sweet i didnt know that thanks for the information.
Imei is not a security password.
It's used to identify the phone when programming a number to it (which then gets stored on your sim card)
Verizon won't even tell you the imei associated with a line unless your the account holder.
Curious what the mobile app installation of kingroot saves.
Sent from my unknown using XDA Free mobile app
wonderful article
iam the victim of the kingroot imei stealing