LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, Firefox OS, Sailfish OS, Maemo, MeeGo, Ubuntu Mobile, WebOS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org

Notices


Reply
  Search this Thread
Old 07-01-2017, 01:33 AM   #1
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

Rep: Reputation: 17
can Android be decompiled and have an os thrown on?


It has the kernel so can't that be kept and other parts taken off while as root? Then throw on an os and reboot, right?

Last edited by Cyberman; 07-01-2017 at 01:35 AM.
 
Old 07-01-2017, 09:47 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,684

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
It can, and has been. They're called mods, e.g. Cyanogenmod. Yes it has the kernel but it goes to some lengths to avoid giving root access. It's best to see Android as a separate google OS.

Start thinking about what software you want to run. What OS does that need?
 
Old 07-01-2017, 08:04 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,857
Blog Entries: 18

Rep: Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337
I recently heard that attempts to monetized Cyanogenmod had not gone well and that, as a result, the project forked. I haven't heard any recent developments, but I do know persons who have routinely used it for years.

Later:

Because of the above, if you want to use Cyanogen, I would recommend research doing your homework before deciding what to try.

Last edited by frankbell; 07-01-2017 at 08:11 PM. Reason: More info
 
Old 07-02-2017, 04:04 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,684

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
I considered rooting my old phone.

CM12 is up until the year's end. No promises thereafter. There's redundancies, and I get the impression the original genius may be missing, or simply redirected at another goal. Finance is an issue. There is a fork, or rather a successor, but no release from him yet. What it needed was someone like Samsung to absorb it, but that never happened.

It takes one kind of guy to make something work - the genius & effort that go into creation is one thing. It takes another set of qualities and a level head to stay in the one place maintaining and slowly improving adding features to that code. In this case, the linux OS is changing continually, as is Android. This is a huge mental drain for the genius creator kind of guy who wants a challenge.
 
Old 07-02-2017, 05:31 AM   #5
petelq
Member
 
Registered: Aug 2008
Location: UK
Distribution: openSUSE(Leap and Tumbleweed) and, at the moment, leap 15 alpha
Posts: 233

Rep: Reputation: Disabled
Some of the people from CM have set up Lineageos and are carrying on. They've got plenty of ROMs on their site. Check it out. I'm actually using one of their 'overnights'.
 
Old 07-03-2017, 04:15 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,684

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Let's hope they make a go of it. What was really good about CM and indeed other mods was the swift response to security issues. It's difficult to make a financial success of that lark.

I got myself a new phone recently with Android-7.0, but it knows more about me than I know about it :-/.
 
Old 07-03-2017, 11:43 AM   #7
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

Original Poster
Rep: Reputation: 17
These responses imply messing with Read-only memory, as I've read about LineageOS.

My idea was find a way for root to be used to to rm tons of stuff, have some kind of app/download start writing the OS onto storage memory, and then reboot. The kernel is there as are the modules. I don't know how practical that is, but I think it would be. There shouldn't really be a need to directly mess with hardware.

Quote:
Soon after the introduction of HTC Dream (named the "T-Mobile G1" in the United States) mobile phone in September 2008, a method was discovered to attain privileged control (termed "root access") within Android's Linux-based subsystem.[20] Having root access, combined with the open-source nature of the Android operating system, allowed the phone's stock firmware to be modified and re-installed onto the phone.
source: https://en.wikipedia.org/wiki/CyanogenMod

Why would firmware need to be messed with? The kernel is already there... just get root and the rest should take care of itself, right?
I mean, ok, a lot of phones probably have variations in their kernel, but I reason there is something similar amongst them that should allow ease of transition.
Quote:
In the following year, modified firmwares for the Dream were developed and distributed by Android enthusiasts. One, maintained by a developer named JesusFreke, became popular among Dream owners. In August 2009, JesusFreke stopped work on his firmware and suggested users to switch to a version of his ROM that had been further enhanced by developer Cyanogen (the online name used by Steve Kondik, a Samsung software engineer[21]) called "CyanogenMod" (user adaptations being often known as modding).[22]
source: https://en.wikipedia.org/wiki/CyanogenMod


As an aside, but not so relevant, the most complex thing I've read of was how someone found a way to take a Windows install, decompile it, thrown a Linux OS on, but it could only be sustained until a reboot. So, I believe well enough that since the kernel and modules are already there (thus, no hardcore reverse engineering needed if at all), then all that's needed is getting rid of a bunch of the software and over-writing it with the OS. My familiarity with Live Linux OS's leads me to believe it should be easy enough since the kernel and modules are already there.

Last edited by Cyberman; 07-03-2017 at 11:49 AM.
 
Old 07-03-2017, 12:34 PM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,684

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
I had a G1, or the European equivalent back in the day. I rooted it and installed CM, but even with root I couldn't do much. There's a lot of your questions answered on xda-developers.com/
Quote:
Why would firmware need to be messed with? The kernel is already there... just get root and the rest should take care of itself, right?
I don't think so. Android has a kernel, not necessarily your desired kernel. By firmware I take it you mean the niggly bits linux doesn't have - like software for phoning, radio control, drivers for all the chips and clever functions, graphics, sound, etc. That's actually the OS. Firmware is software for the intelligence in peripherals, loaded into the peripheral. That's not necessarily the case with today's phones. It's best to think of them as less powerful computers. The sound chip or GPU may have firmware, and you're right, no need to mess with that.
 
Old 07-04-2017, 10:17 PM   #9
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Rep: Reputation: Disabled
I found the "Paranoid" OS on a Chinese site which was Android with ALL Google software removed. Didn't work on mine. Good try though.
 
Old 07-06-2017, 04:35 AM   #10
petelq
Member
 
Registered: Aug 2008
Location: UK
Distribution: openSUSE(Leap and Tumbleweed) and, at the moment, leap 15 alpha
Posts: 233

Rep: Reputation: Disabled
Lineageos doen't load any GAPPS unless you do so separately. You need a minimum GAPPS for the playstore downloads but if you don't want that you don't need to install it. But android is a google system so there's some google in there anyway.
Unfortunately google seems very difficult to avoid these days.
 
Old 07-06-2017, 11:58 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,684

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Google is basically impossible to avoid these days, but OTOH they have so much data on everyone that what can't be done automatically isn't done at all. They must get terabytes of data from Android systems. Pity the poor bugger sent in to find what one user is getting up to over the last 3 months!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: Another Thrown Under The Bus LXer Syndicated Linux News 0 04-16-2010 09:12 PM
new to expect, thrown into fire KBUTLER1 Programming 3 04-01-2010 03:11 PM
use cdck to tell if an old CD-RW should be thrown away newbiesforever LinuxQuestions.org Member Success Stories 0 02-02-2008 04:45 PM
I want to be thrown into a distro, not skip into one... Pengers Linux - Distributions 14 08-05-2007 02:18 PM
/sbin/setsysfont error thrown. bobo_daclown Linux - General 3 12-23-2002 02:28 PM

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

All times are GMT -5. The time now is 05:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration