LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 06-11-2017, 04:42 AM   #1
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Rep: Reputation: Disabled
How to root your android phone


I have Android Marshmallow on my smartphone and would like to install LineageOS onto it.

I have bought a new microSD card for my phone and this can be put into a USB adapter to connect to my PC.
I haven't rooted a phone before so I will need some real basic help.

Firstly, how do I backup my current rom onto my SD card?

Secondly, how can I be certain the LineageOS rom I download from a 3rd party site is legit?
Is there a sha256sum (checksum) I can do?
 
Old 06-12-2017, 01:32 AM   #2
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 525

Rep: Reputation: 95
Hi,

This is LinuxQuestions site for ... Linux Questions.
Why don't you post in its sister site AndroidQuestions?
Had you tried Google?
 
Old 06-12-2017, 01:27 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
xda developers -- I'd go there, do an extensive search on the phone I owned (make and model) to see if it is supported within that sight for root, and new ROMS and restores before rooting my phone.
 
1 members found this post helpful.
Old 06-12-2017, 02:02 PM   #4
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tshikose View Post
Hi,

This is LinuxQuestions site for ... Linux Questions.
Why don't you post in its sister site AndroidQuestions?
Had you tried Google?
This is the Linux Mobile forum on LQ.
The forum describes itself thusly:

''This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Firefox OS, Sailfish OS, Maemo, MeeGo, Ubuntu Mobile, WebOS, Open Mobile Alliance and other similar projects and products.''
You can see this info at the top of this webpage.

Android uses the Linux kernel.
This is why this forum exists on LQ.

Quote:
Why don't you post in its sister site AndroidQuestions?
I refer you to my previous answer.

Quote:
Had you tried Google?
But that's just a search engine.
We join forums to get help from people who want to help others.
Thank you for your reply.
 
1 members found this post helpful.
Old 06-12-2017, 02:29 PM   #5
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
xda developers -- I'd go there, do an extensive search on the phone I owned (make and model) to see if it is supported within that sight for root, and new ROMS and restores before rooting my phone.
Yep, I saw it.
I was registering for the site but there's a captcha you have to pass.
Only problem is NoScript add-on on Firefox will only show the captcha if you allow 'goggle.com'.

Interestingly, it's the same when registering with LQ.
You need to pass a captcha - but you can only see it if you enable NoScript to allow goggle to show its script on the webpage.
Of course, this is the same webpage where you've just input your username and password.

Ha ha. I really shouldn't care about such coincidences!

The best secure rom on android is apparently 'Replicant' (it's funded by the Free Software Foundation).
But it only works on a few phones - like the Samsung Galaxy S3!.

I don't mind buying a 2012 phone today cos the S3 still does the job (IMO).
However, I bought a different phone and it doesn't support Replicant.
 
1 members found this post helpful.
Old 07-04-2017, 09:03 PM   #6
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Rep: Reputation: Disabled
I'd like to root Android more easily as well. Nobody's really focusing on that. I'd really like full functionality on the terminal without having to plug into a computer.

The install part is easy and you should be able to move everything in it around using a terminal or file manager on your computer. Save what you want and implant the new OS on the card just like it was a USB stick.

I dislike Android. Leave it in a drawer under a speaker and even then its got tape on the cameras. Worse than Windows. Looking into replacements.

An if there's a checksum, the site will have it right under the iso download. Again, do it from a computer. Android is useless.

Good luck on that.

Edit:

Got me curious so I rooted mine. Strange process. I used an app called Kingoroot. Tried it out on a Huawei and an Oppo and worked on one of two (the Oppo). Just a dice throw really. Decent odds though. Not on Google Play (probly' 'cuz its an exploit).
Found Busybox and Smanager on my way though the jungle as well. Pretty cool. The phone is much more interesting now.

Last edited by Barkester; 07-05-2017 at 02:55 AM.
 
Old 07-09-2017, 12:41 PM   #7
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Barkester View Post
The install part is easy and you should be able to move everything in it around using a terminal or file manager on your computer. Save what you want and implant the new OS on the card just like it was a USB stick.
Are you saying install a full linux distro onto a microSD, insert the microSD into your android phone and then boot from microSD?

Because that would be a great idea!
Unfortunately, I don't think it's possible due to politics.

Quote:
Got me curious so I rooted mine. Strange process. I used an app called Kingoroot. Tried it out on a Huawei and an Oppo and worked on one of two (the Oppo). Just a dice throw really. Decent odds though. Not on Google Play (probly' 'cuz its an exploit).
When you download Kingroot or any files, is there a checksum you can do?
How do we know the downloads are secure and legit?
Also, how do we know rooting your phone doesn't make you an even easier target for mass surveillance?
Thanks for your reply, btw.

Quote:
Found Busybox and Smanager on my way though the jungle as well. Pretty cool. The phone is much more interesting now.
What do these programs do on a rooted phone?
 
Old 07-09-2017, 09:20 PM   #8
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Rep: Reputation: Disabled
? 1. Yes. But its a special modem-like hard-boot using a key combination for your make and model. One example is to hold both the up volume and the power simultaneously. You will get a menu that will be able to run a fresh install from the card. Get your model number and surf for your combo.

Politics? Maybe in the states, but there are very legit reasons for doing it. Changing a language. Clean installs. You can get factory Androids or customized. All kinds. 'Probly illegal there but screw them.

? 2. Can do, but its still an issue of trust with the proprietor of Kingoroot. He is regularly updating new updates and they are exploits. He could well put anything in there.
Honestly, rooting your phone using any methods I've seen are no doubt a bad idea if your phone has things you wish to keep private. I am only messing with mine because its easy for me to reinstall and my phone is taped and stays home under the speaker where its drowned in dubstep and raggae. It has nothing on it, stays home and is blind, deaf and dumb.
If there was any value in it at all, I wouldn't root it. I would access and change it from the terminal in a linux system on a pc. Even then I wouldn't give it much trust. Stupid phones are what you want for security. Play your games on a PSX or something if you gotta.

? 3. I happen to have this up now : http://smanager.wikidot.com/docs:smanager-manual for Smanager.
Busybox is a nice rooted applet manager. Both require rooting to work.

They are fun to mess with and you can always just reinstall after you've learned your way around and had your fun. It is a weird Linux. Definitely not the secure way to go though. Only playtime.

And thats pretty much everything I know thats Android-specific. Hope it helps.
 
1 members found this post helpful.
Old 07-22-2017, 03:48 AM   #9
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Barkester View Post
? 1. Yes. But its a special modem-like hard-boot using a key combination for your make and model. One example is to hold both the up volume and the power simultaneously. You will get a menu that will be able to run a fresh install from the card. Get your model number and surf for your combo.
If I can boot my phone from an OS on microSD, then that is something!
Is there a Youtube tutorial showing this?

The linux OS for the phone must be a special one so it still allows phone calls to be made.

Is there a website with more info on this?
 
Old 07-22-2017, 04:53 AM   #10
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
AFAIK ubuntu touch is the main linux project that might work on some phones not all
https://wiki.ubuntu.com/Touch/Devices

XDA forum is still the best place for you to go....sorry but its true!

one of the main issues is this....some makes of android do not publish their kernel headers...a breach I believe of the GPL
if you do not have the headers for your specific device a number of things won't work so you risk have a linux pc on the phone but
no---sim radio/wifi/touch screen (ouch), proximity sensor, accel sensor (for rotation) the list goes on.

good luck
 
1 members found this post helpful.
Old 01-12-2018, 05:11 AM   #11
KindachiShota
LQ Newbie
 
Registered: Oct 2017
Location: Japan
Posts: 11

Rep: Reputation: Disabled
It was helpful for me.
I did it successfully.
Thank you...
 
Old 01-12-2018, 05:50 AM   #12
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
You can't install a custom rom on your phone if it is not compatible. LineageOS has a list of mobiles for which it produces roms - it has to be the exact make and model - and yes, it has check so you can satisfy yourself that the rom is legit.

Kingroot is hit and miss at rooting but you need to root so you can add a custom recovery (like twrp, the best IMHO). You can then boot to recovery and backup your existing system (a must) and install the new rom.

Oops! I didn't notice this was so old.

Last edited by petelq; 01-13-2018 at 12:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: This Android malware can secretly root your phone and install programs LXer Syndicated Linux News 0 06-22-2016 01:30 PM
[SOLVED] What is the Safest way to ROOT an android phone? angel115 Linux - Mobile 14 08-13-2015 02:20 AM
LXer: How to Root Your Froyo Android Smart Phone` LXer Syndicated Linux News 0 10-08-2011 05:00 PM
[SOLVED] Android Phone snjksh Linux - Mobile 1 05-04-2011 11:44 AM
"how to get root access in android phone emulator" preetb123 Linux - Mobile 3 02-19-2011 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration