yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] craigacgomez:
This is probably what you are looking for...

Embedded in the boot image a folder cfroot with the SuperSU apk file, the su binary and the necessary init scripts and there is a binary under sbin does the remaining steps of copying the files to the respective places. It is not an exploit, it merely uses the boot image and the boot process to "install" SuperSU. You do not need a custom recovery to root your phone, merely the capability to copy the superuser files to the /system partition.

In more detail:

1. Embedded in the ramdisk is a folder "cfroot" with "99SuperSUDaemon, install-recovery.sh, su and Superuser.apk".

2. In the sbin folder in the ramdisk is a binary "cfautoroot" which does stuff like copy the above files to the correct locations and set the appropriate permissions, etc.

3. This file is called through the "recovery" script/binary in the sbin folder

4. The "recovery" script/binary is executed as a startup server via the init system in "init.rc" within the ramdisk

The result:

When you boot up, the superuser files are copied to the respective locations with the right permission, thereby rooting the system
[Nexus 5 Q&A, Help & Troubleshooting] Casteel:
OK! Now we're getting closer :)

Thank you very much.

But I still have some confusions...

You said:

How did the "cfautoroot" got to my phone sbin folder?

How do I get the capability to copy the superuser files to the system partition?

Putting things in these folders and set their appropriate permissions doesn't require root from the first place?

How is the init.rc calling the recovery script to run the cfautoroot? shouldn't I need root access to modify init.rc?

[Is the CF-Auto-Root source code available somewhere to see all these files you're talking about?]

It sounds like only unlocking the bootloader is giving me some sort of "root" capabilities to do all these stuff. is it true?

Will this method work in non Nexus devices either?

And what are all those "exploits" that so many rooting guides are talking about?

I'm guessing it desn't have anything with rooting Nexus devices since rooting them is kind of part of their existence, isn't it?

Thanks again! :good:
[Nexus 5 Q&A, Help & Troubleshooting] craigacgomez:
"cfautoroot" is a binary created by Chainfire which is embedded in the sbin folder in the kernel ramdisk. It's in the CF Auto Root boot image. Android kernels are essentially Linux kernels and have an init process which is basically a bootstrap/startup process. init.rc is part of this process. It is run when the kernel boots up. Anything within the init process is low-level and essentially run as "root". It kick-starts various other processes like zygote which is the Android process management system. This will help you understand the init process a bit better (http://www.mekya.com/blog/2012/03/android-initialization-from-init-rc-to-third-party-code/). In the init.rc file is a line which "executes" the file /sbin/recovery (which is embedded in the ramdisk along with cfautoroot). This in turn "executes" cfautoroot which takes care of copying the superuser files to the correct locations and setting the correct permission. All this is done within the init process and has elevated (root) permission.

Unlocking the bootloader does not root your phone. It simply allows you to flash "unsigned" (custom) boot images.

Any phone with the ability to flash a custom boot image can make use of this process.

Exploits make use of holes or workarounds to either flash a custom boot image or inject files into the system partition without unlocking the bootloader and are only needed if you cannot unlock the phone bootloader.

Hope this helps!
[Nexus 5 Q&A, Help & Troubleshooting] Don_Lard:
Thank you for asking the question and being polite yet persistent about getting your answer. I have been trying to get to this answer myself for some time now.
[Nexus 5 Q&A, Help & Troubleshooting] Casteel:
Great! now we're even closer :victory:

So in the boot process I have elevated privilages, that basically what I was missing.

But this bootable image file is not an image of the OS, isn't it?

It is an image of the kernel?

It is some sort of pre-handled file system that the device is booted into and than startup the OS?

Or something like that...?

Thanks for your patient and the very quiqc responses!

We're almost there... :o
[Nexus 5 Q&A, Help & Troubleshooting] craigacgomez:
The boot image is not the OS image. It contains the kernel and the ramdisk. The ramdisk is the basically the root filesystem (/) which the kernel mounts, after which the init process begins and init.rc is called. Nothing is ever persisted or modified in the root filesystem unless it is done during the init process or it is embedded in the ramdisk
[Nexus 5 Q&A, Help & Troubleshooting] Casteel:
Nice.

I thought the root file system is part of the OS image.

So basically, I can have the same OS installed on my devices with different file systems according to what is defined in boot?

One last question and I will stop bother you :p

Why is the image file device related?

Meaning, why nexus 4, 5 and 7 have different CF-Auto-Root?

(Nexus 7 even got several).

Thanks again!
[Nexus 5 Q&A, Help & Troubleshooting] craigacgomez:
Yes, you could theoretically change the way your filesystem is defined via the boot image, but Android as an OS expects some things.

And each device has different autoroot files because they have different kernels and some differences in some init scripts specific to the hardware. Some devices like the Nexus 7 have multiple version (LTE & non-LTE for example) and there are hardware differences and different kernels.
[Nexus 5 Q&A, Help & Troubleshooting] Casteel:
A thousand thanks, Craig Gomez!

You really helped.

I truely appreciate the patient and the kindful responses.

It was a nice first experience in this forum.

Thank you very much!
[Nexus 5 Q&A, Help & Troubleshooting] craigacgomez:
Glad I could help you... It's what communities are all about... Sharing knowledge and experiences.

Sent from my Nexus 5
[Nexus 5 Q&A, Help & Troubleshooting] PhilipTD:
Excellent thread. Thanks to OP and members who responded.
[Upgrading, Modifying and Unlocking] madmax86:
every custom rom causes problems with the touch.

or give guarantees?

log
[G2 Q&A, Help & Troubleshooting] podge3:
My new LG came with D80210b-466-92 firmware and I flashed it with the UK T-Mobile version - also tried the Eur open version.

However, while the phone took the firmware upgrade, its still showing the old version of firmware i.e. D80210b-466-92. I've done the hard reset and the phone restarts in Chinese. Once I change to English its fine and all the Chinese apps are gone but its still showing the old firmware???

If I flash, say, the D80210a EUR firmware, the version changes to D80210a-466-92, not D80210a-EUR-xx as I would expect.

I have flashed about 8 firmwares (including Kitkat) and the last five digits (country code) never change but the first 7 always change as they should. The flashed firmware does seem to work OK, just the version does not update.

Any ideas?
[G2 Q&A, Help & Troubleshooting] stefan063:
Same thing with mine G2,I also asked,but no one knows why!!! Maybe there is some catch?!?!?
[G2 Q&A, Help & Troubleshooting] podge3:
Yeah, no one seems to know, its a real head scratcher.

466-92 is the Taiwanese country code AFAIK.

I don't think it affects the phone at all but I would like to know why it happens. Its the only seems to affect phones with the 466-92 firmware.
[G2 Q&A, Help & Troubleshooting] podge3:
No ideas anyone?
[G2 Q&A, Help & Troubleshooting] kepiro:
answer

hy

i was having the same questions about the "466-92" code.

here is the catch...

the country/region code is encrypted in hardware of the phone, meaning the phone was build for that region and cannot be changed in any mode! - this answer i obtained from LG customer service.

still, you can put any of stock roms for your device (d802 in my case) and will work, all of them are original and compatible with device, working with same parameters (differences are in fact some apps in addition or in minus for some regions/countries that are bloatware anyway), so the basic is same for all (ex. 20a, 20b, 20c, 20h or 20d or other letters released)

NOTE 1. you can put any of stock rom for your device BUT only with a custom flashing program (ex. LG_flash_tool - which i use);

NOTE 2. if you wanna update or change your software with LG Mobile Support Tool (default and official program from LG to change/upgrade software), the phone will receive the software version for the region/country accordingly to THAT number/code from the end of the software name (D80220c-

466-92

- in my case).

if you own a taiwanese version of d802 it will show the "466-92" all the time and with any version of software !

for questions or other details - contact me or reply

drink a beer for me

---------- Post added at 11:55 AM ---------- Previous post was at 11:49 AM ----------

for country/region codes of your phone model search google, it's easy to find - and see what region your phone was made for

every region/country or group of countries have a version of software by default

ex. taiwan has the kitkat version 20c - d80220c-466-92, europe open has kk 20d - d80220d-eur-xx, and so on....

search fot them, there are plenty of forums and discussions

excuse my english ;)
[Galaxy S II Q&A, Help & Troubleshooting] s/sleep/hack/g:
Hey guys. I have looked into almost every topic on this website that I could find about unlocking the phone. Tried most apps. But not successful! Even when I enter

*#7465625#

nothing appears! I strongly believe that the network has been frozen. I could not find somewhere to tell me if I have reached the number of allowed tries nor how to crack a network freeze!

Any help or threads I have no found (been searching for the past 4 hours) will be very much appreciated!
[8125, K-JAM, P4300, MDA Vario Software Upgrading] rsenden:
I've noticed in several threads that some people (including me) are experiencing dropped connections while making voice calls. Maybe in this thread we can find the cause of this and hopefully also a solution.

Symptoms are that while making a voice call, the call is dropped after a few minutes (mostly somewhere between 2 and 5 minutes). When this happens the GSM connection seems to be lost completely, e.g. the GSM connection indicator in the top bar indicates that it is searching for a network. After a few seconds the GSM connection is re-established again, but the call is lost.

Some possible causes that me and other people are thinking about: Using US radio ROM in Europe, having GPRS applications active, automatic network selection, or having the password screen activated after x minutes of inactivity.

As far as I've seen, most people experiencing this problem are running one of the AKU 2.3 ROM's. I'm running the MrClean AKU 2.3 ROM:

From Settings -> System -> Device Information:

ROM Version 2.24.10.1 WWE

ROM date: 4/17/06

Radio version: 02.25.11

Protocol version: 4.1.13.12

From Settings -> System -> About:

OS 5.1.192 (Build 14955.2.3.0)

I'm using an MDA Vario on the T-Mobile NL network. Running applications include:

ActiveSync over GPRS/PushMail (via mail2web.com)

Agile Messenger over GPRS

Magic Button

Calendar+

I've got automatic network selection enabled, as well as the automatic password lock activating after 5 minutes of inactivity.

When replying, please included the same information as I did and any other information/questions that might be usefull. I'm interested in this information from people that are experiencing the same problem, but also from people that are not experiencing this.

Let's hope we can find a solution for this.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] gremlin000:
This happens to me as well. I hear a click noise followed by a total reset of the radio. The service search starts anew and within 20 seconds I'm back in business. Pretty irritating for business calls, however.

I am running the O2 2.21.4.1 WWE with a radio ROM of 02.07.10
[8125, K-JAM, P4300, MDA Vario Software Upgrading] the blues:
im having the same problem. running summiters new 2.24 aku 2.3 test2 rom. 3rd party apps running are newspanel, weatherpanel, and agile messeger. we NEED to fix this
[8125, K-JAM, P4300, MDA Vario Software Upgrading] TauTau:
same here...

Mr Clean 2.3

no GPRS

PZP

SBSH Pocket Breeze, Weather and iLauncher

PI

SmartsKey

AltTab

maybe it could have to do something with sleep-mode? Like that the device when going to sleep mode (or just switches off backlight) puts down GSM for a short period? At least I noted, that my screen was dark when it happened...
[8125, K-JAM, P4300, MDA Vario Software Upgrading] DUlrich1227:
NO issues at all to report here but if you need me to try or change anything on my phone to test i will

PHONE:

cingular 8125 (purchased may 2) * not sure if that matters but you never know

spb pocket plus

cingular express mail (work email) inprocess of upgrading exch. servers to 2003

prss feed reader

1gb storage card (music / videos)

total commander

registry wizard

OS 5.1.195(BUILD 14955.2.3.0)

ROM 2.2410.1 WWE

ROM DATE: 4/17/06

RADIO VER: 02.25.11

PROTOCOL VER: 4.1.13.12

ExtRom: 2.25.11.102

IPL/SPL 2.24

Backlight set to 3min (battery power) / 10 min powered

Power settings

BATTERY POWER: UNCHECKED

EXTERNAL POWER : TURN OFF AFTER 10 min

l
[8125, K-JAM, P4300, MDA Vario Software Upgrading] gamescan:
This is just an out-of-the-blue thought, but have any of you with issues tried getting a new SIM?

I had an instance once where a SIM of mine would accept incoming calls but would not make outgoing calls (on any phone). After troubleshooting with the carrier and determining that everything was as it should be on the account the rep finally suggested that I try a new SIM. The theory was that the SIM had been partially damaged somehow (most likely from electric shock by moving it in and out of differnet phones) and couldn't properly authenticate.

Popped over to the store, got a new SIM and all was well.

Now, I'm not saying that getting a new SIM will solve your problem, but it's the only thing that comes to mind. Everyone who's having trouble, are the SIMs you are using older chips?
[8125, K-JAM, P4300, MDA Vario Software Upgrading] DUlrich1227:
a 2nd question would be

are you sims unlocked or just CID

i just CID unlocked my phone ..

.. just wondering
[8125, K-JAM, P4300, MDA Vario Software Upgrading] cybiker123:
new sim card helps

i was having the same issues with my phone dropping calls about every 5 to 10 minutes and i just went to the cingular store with the new rom and all on my phone and told the guy in there that they never gave me a 3g sim with my phone when i bought it and they had just used my old sim and swapped into it and the guy at the cingular store just took my old sim out copied over my numbers for me on his computer and then stuck the new 3g sim in my phone and i haven't had any issues with it since and that was probably 5 days ago or so it has been just great so that might make a difference

it even made it make the toast that summiter programmed this new rom to make perfectly now instead of burning it all the damn time

freakin sim cards always over charging my toast

hahahaha
[8125, K-JAM, P4300, MDA Vario Software Upgrading] the blues:
Re: new sim card helps

hmm. plausible. im headed to the cingular store tomorow to see if this will work for me as well. I'll post back tomorow
[8125, K-JAM, P4300, MDA Vario Software Upgrading] Dr Puttingham:
I'm a little confused on 3g sim's fixing this??? This 8125 isn't 3g ready but is 2.5 edge from all I've read up on. Supposedly the Hermes later this year will be Cingular's 3g PDA. I must be missing something here I guess....

Steven

chow
[8125, K-JAM, P4300, MDA Vario Software Upgrading] aron7awol:
I've experienced this a few times in the last few hours.

I'm currently on Automatic network selection. I'll try changing to manual and see if that helps.

The only program I have running that uses GPRS is PocketWeather, which updates every 15 mins. That could be causing problems. The longest conversation I've had on this AKU2.3 ROM (xelencin's, which I've been running for only 24 hours) is 48 minutes. So if PocketWeather is causing the problem, it's not doing it every time.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] cuboosh:
i am not expercing this at all. im running aku2.3 (mr.clean) and have 0 problems w/ dropped calls
[8125, K-JAM, P4300, MDA Vario Software Upgrading] cuboosh:
i am not running any gprs apps tho. and i send alot of MMS but i can talk for hrs without any issue.. just got off a 3.5hr phone call no problem at all.. thank god for my jabra cuz i couldnt hold this 1000000000lb phone upto my ear for 3 1/2 hrs lol
[8125, K-JAM, P4300, MDA Vario Software Upgrading] TauTau:
your ears must be bleeding :shock:

I have a totally new SIM in that phone, since I got it with providerchange... now if I only could remember, if I had the same problem with my old O2 SIM that I had in there previously (phone came 3 month earlier than SIM)
[8125, K-JAM, P4300, MDA Vario Software Upgrading] Panja:
I do not have any problem (yet...)!!

I'm running this rom.

"Cingular 8125 users: custom AKU 2.3 ROM available"

OS: 2.24.10.1 WWE

RADIO: 02.25.11

ROM Date: 4/17/06

Ext Rom: Removed

OS: 5.1.195 (Build 14955.2.3.0)

T-Mobile NL

ActiveSync on GPRS (PushMail via 4smartphones.net , constant connection)

Automatic network selection: enabled

Password lock or any other lock: disabled

CID and simunlocked
[8125, K-JAM, P4300, MDA Vario Software Upgrading] DUlrich1227:
well i just checked my phone and i have a pretty blue 3g sim in there as well..

THE PLOT THICKENS ! :wink:

ps you can tell if it is 3g (cingular at least) by taking it out and looking at the back

dave
[8125, K-JAM, P4300, MDA Vario Software Upgrading] TauTau:
hm, what exactly is 3G, or, where does the SIM differ? As far as I know, 3G is just a description of services (Videoconferencing?)
[8125, K-JAM, P4300, MDA Vario Software Upgrading] rsenden:
I'm not sure what kind of SIM I have; it says T-Mobile on one side, and just some gold connections and a lot of numbers on the other side. Any way to find out? It is quite a new SIM, about 4 months old. I have another prepaid SIM at home that I'll try, but it's T-Mobile as well and I got it only a few weeks earlier.

I've now got GPRS applications disabled, and switched network selection to manual. However, I don't make that many long phone calls, so can't tell yet whether it makes a difference.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] TauTau:
is there a way to log the length of a phonecall? In call history it isn't visible...
[8125, K-JAM, P4300, MDA Vario Software Upgrading] demps:
I have cing 8125, have used various roms. I think that it's pocket weather connecting for an update that is cutting off my phone calls, usually between 3 and 5 minutes. I turned off pw updates and I was still on at 14 minutes. I have posted about this at sbsh forum
[8125, K-JAM, P4300, MDA Vario Software Upgrading] foxbat121:
Most applications don't use .NET CF at all, especially the ones need to access connections and other hardware stuffs.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] jmel:
I suppose :)

I haven't the first clue! I'm just using the roms that are suggested here, the one kjason and cameronj suggested...

All I can say is that I would like a rom with pushmail, that doesnt go freaking crazy when I run agile messenger all the time :D Any suggestions? or have we proven that right now its not possible?

If it was safe, and I knew I could go backwards, I'd try the latest 2.3 official cingular rom, and see if it had the same issue...
[8125, K-JAM, P4300, MDA Vario Software Upgrading] foxbat121:
It has been mentioned that the original 2.17 ROM (AKU 2.0) or any other AKU 2.0 ROMs are fine and support push email.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] jmel:
I had read the same about the 2.2 one that I mentioned, :S

So I'm not sure what to do... I also (because I'm a relatively new owner of the phone) don't know exactly what changed from 2.0 to 2.2 to 2.3, so I dont know if I'd be missing something or not...

I just wish we could figure out what the problem was, and when it was introduced...
[8125, K-JAM, P4300, MDA Vario Software Upgrading] the blues:
i had the aku 2.3 rom and successfully downgraded to the 2.17 rom using awizard cid unlock and installing the 1.05 rom
[8125, K-JAM, P4300, MDA Vario Software Upgrading] jmel:
Well, I spent some time and re-read this thread from page 1.

It appears that there are a few knowns here:

any 2.2 or 2.3 aku rom has the issue, even the one kjason posted. I made it die after much testing tonight. It may not die as fast, but i can get it to disconnect.

the only working rom that doesnt appear to disconnect is a 2.17 rom, with aku 2.0

apparently 2.0 boots slower, and lacks (obviously) changes from 2.0 to 2.3

This rom is here:

http://xdaforums.com/viewtopic.php?t=48587

I am reluctant to try it just yet because of the slow boot times. I just figured I'd post this as sorta a wrap up in case someone is unsure after 7 or so pages of my stupid posts where I was confused. my apologies for that.

One last thing that I'd like to toss in is that in that thread, I noticed on page 7, two people complained about dropped calls after 5 mins... and that kinda concerns me... then a bit later, someone said something about wifi not working correctly (and I saw that earlier too). Just thought i'd mention that in the context here.

Tomorrow I will do some testing with that rom, and report back my findings.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] kevev:
Re: Good News!

also dont forget this rom works great too! No droped calls. 8)
[8125, K-JAM, P4300, MDA Vario Software Upgrading] jmel:
2.17 rom is working great so far, going to give it my usual lunchtime test, and see how it holds up.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] foxbat121:
So it is clear to me that it is AKU2.2+ caused this issue.

If it is important for you to run 3rd party internet app all the time, stick with AKU2.0 ROMs. Yes, it boots up slower but you only boot your phone once in a few weeks.

To me, I never use those applications, AKU2.3 ROM is the best one so far for me.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] kjason:
Quick question....

Has anyone successfully been able to run a weather app (ie PocketWeather or Weatherpanel) on an AKU2.2+ ROM without having dropped calls?

I am positive, at least for me, that PocketWeather is the culplrit for my disconnects. I would switch to a different weather app if they were reported to work.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] foxbat121:
I use weather panel but don't use automatic update. I just ran a test. When I was in a voice call, I tried to manually force the Weather Panel to connect and update. Nothing happened. It won't do it. Also, push email/activesync won't connect either if I tries to force it to connect.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] Dr Puttingham:
I probably run the most basic phone when it comes to apps. The only things I install is Adobe Reader, MS Voice and Smartskey. That's it! And the last week or so has been pure hell with the dropped calls. I run no internet apps, purely a direct push device. It has become the norm for me to hear the voice mail notification while the phone never rang and there's no missed call in the history. Most annoying! I don't remember this many dropped calls in the past and I've installed every ROM here since I got my phone at the beginning of the year.

Most bizarre.

Steven

chow
[8125, K-JAM, P4300, MDA Vario Software Upgrading] jmel:
Push mail still requires the phone to send out the ping over gprs, so imo, you might want to try the 2.17 rom as I said above.

No problems here since yesterday when I changed it.